/* 大云寺网站 - 传统古典风格样式 */

/* 全局样式重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* 根元素变量定义 */
:root {
    /* 传统色彩 */
    --primary-gold: #D4AF37;
    --deep-red: #8B0000;
    --dark-brown: #3C2415;
    --light-gold: #F5DEB3;
    --text-dark: #2C1810;
    --text-light: #5D4E37;
    --bg-light: #FFF8DC;
    --bg-white: #FFFFFF;
    --border-color: #D2B48C;
    
    /* 字体 */
    --font-primary: 'Noto Serif SC', serif;
    --font-size-base: 16px;
    --line-height-base: 1.6;
    
    /* 间距 */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 3rem;
    --spacing-xl: 4rem;
    
    /* 阴影 */
    --shadow-soft: 0 2px 10px rgba(44, 24, 16, 0.1);
    --shadow-medium: 0 4px 20px rgba(44, 24, 16, 0.15);
    --shadow-strong: 0 8px 30px rgba(44, 24, 16, 0.2);
}

/* 基础排版 */
body {
    font-family: var(--font-primary);
    font-size: var(--font-size-base);
    line-height: var(--line-height-base);
    color: var(--text-dark);
    background-color: var(--bg-light);
    overflow-x: hidden;
}

/* 容器 */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-sm);
}

/* 标题样式 */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    margin-bottom: var(--spacing-sm);
    color: var(--text-dark);
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }

/* 链接样式 */
a {
    color: var(--deep-red);
    text-decoration: none;
    transition: all 0.3s ease;
}

a:hover {
    color: var(--primary-gold);
}

/* 顶部导航 */
.header {
    background: linear-gradient(135deg, var(--dark-brown) 0%, var(--deep-red) 100%);
    color: var(--light-gold);
    padding: var(--spacing-sm) 0;
    box-shadow: var(--shadow-medium);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.logo h1 {
    color: var(--primary-gold);
    font-size: 2.2rem;
    font-weight: 700;
    margin: 0;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.logo .subtitle {
    color: var(--light-gold);
    font-size: 0.9rem;
    margin: 0;
    opacity: 0.9;
}

.nav-list {
    list-style: none;
    display: flex;
    gap: var(--spacing-md);
    margin: 0;
}

.nav-link {
    color: var(--light-gold);
    font-weight: 500;
    padding: var(--spacing-xs) var(--spacing-sm);
    border-radius: 4px;
    transition: all 0.3s ease;
    position: relative;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary-gold);
    background: rgba(212, 175, 55, 0.1);
    transform: translateY(-1px);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--primary-gold);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 80%;
}

/* 首页横幅 */
.hero {
    background: linear-gradient(
        rgba(44, 24, 16, 0.7),
        rgba(139, 0, 0, 0.5)
    ), url('../images/hero-bg.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    min-height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--bg-white);
    position: relative;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('../images/pattern-overlay.png');
    opacity: 0.1;
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-title {
    font-size: 4rem;
    font-weight: 700;
    margin-bottom: var(--spacing-sm);
    text-shadow: 3px 3px 6px rgba(0,0,0,0.5);
    color: var(--primary-gold);
    letter-spacing: 0.1em;
}

.hero-subtitle {
    font-size: 1.5rem;
    margin-bottom: var(--spacing-md);
    color: var(--light-gold);
    font-weight: 300;
}

.hero-description {
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto var(--spacing-lg);
    line-height: 1.8;
    opacity: 0.95;
}

.cta-button {
    display: inline-block;
    background: linear-gradient(135deg, var(--primary-gold), var(--deep-red));
    color: var(--bg-white);
    padding: var(--spacing-sm) var(--spacing-lg);
    border-radius: 50px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    box-shadow: var(--shadow-strong);
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 40px rgba(44, 24, 16, 0.3);
    color: var(--bg-white);
}

/* 章节通用样式 */
section {
    padding: var(--spacing-xl) 0;
}

.section-header {
    text-align: center;
    margin-bottom: var(--spacing-xl);
}

.section-title {
    position: relative;
    display: inline-block;
    font-size: 2.5rem;
    color: var(--dark-brown);
    margin-bottom: var(--spacing-sm);
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-gold), var(--deep-red));
    border-radius: 2px;
}

.section-subtitle {
    font-size: 1.2rem;
    color: var(--text-light);
    font-weight: 300;
    margin: 0;
}

/* 关于我们 */
.about {
    background: var(--bg-white);
    position: relative;
}

.about::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('../images/lotus-pattern.png');
    opacity: 0.03;
    pointer-events: none;
}

.about-text {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.about-text h3 {
    color: var(--deep-red);
    font-size: 1.4rem;
    margin: var(--spacing-lg) 0 var(--spacing-sm) 0;
    position: relative;
    padding-left: var(--spacing-md);
}

.about-text h3::before {
    content: '◆';
    position: absolute;
    left: 0;
    color: var(--primary-gold);
    font-size: 0.8em;
}

.about-text p {
    color: var(--text-light);
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: var(--spacing-md);
    text-align: justify;
}

/* 各地大云寺 */
.temples {
    background: var(--bg-light);
}

.temples-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-lg);
    margin-top: var(--spacing-xl);
}

.temple-card {
    background: var(--bg-white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
}

.temple-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-strong);
}

.temple-image {
    height: 200px;
    overflow: hidden;
    position: relative;
}

.temple-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.temple-card:hover .temple-image img {
    transform: scale(1.05);
}

.temple-info {
    padding: var(--spacing-md);
}

.temple-info h3 {
    color: var(--dark-brown);
    font-size: 1.3rem;
    margin-bottom: var(--spacing-xs);
}

.temple-period {
    color: var(--primary-gold);
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: var(--spacing-sm);
    background: rgba(212, 175, 55, 0.1);
    padding: 2px 8px;
    border-radius: 12px;
    display: inline-block;
}

.temple-desc {
    color: var(--text-light);
    line-height: 1.6;
    margin-bottom: var(--spacing-md);
}

.temple-link {
    color: var(--deep-red);
    font-weight: 600;
    border: 2px solid var(--deep-red);
    padding: var(--spacing-xs) var(--spacing-sm);
    border-radius: 25px;
    transition: all 0.3s ease;
    display: inline-block;
}

.temple-link:hover {
    background: var(--deep-red);
    color: var(--bg-white);
    transform: translateX(3px);
}

/* 佛教文化 */
.culture {
    background: var(--bg-white);
}

.culture-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacing-lg);
    margin-top: var(--spacing-xl);
}

.culture-item {
    text-align: center;
    padding: var(--spacing-lg);
    background: var(--bg-light);
    border-radius: 12px;
    border: 2px solid var(--border-color);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.culture-item::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(212, 175, 55, 0.05), transparent);
    transform: rotate(45deg);
    transition: all 0.3s ease;
    opacity: 0;
}

.culture-item:hover::before {
    opacity: 1;
    animation: shine 1.5s ease-in-out;
}

.culture-item:hover {
    transform: translateY(-5px);
    border-color: var(--primary-gold);
    box-shadow: var(--shadow-medium);
}

.culture-item h3 {
    color: var(--deep-red);
    margin-bottom: var(--spacing-sm);
    font-size: 1.3rem;
    position: relative;
    z-index: 2;
}

.culture-item p {
    color: var(--text-light);
    line-height: 1.6;
    position: relative;
    z-index: 2;
}

/* 页脚 */
.footer {
    background: linear-gradient(135deg, var(--dark-brown) 0%, var(--deep-red) 100%);
    color: var(--light-gold);
    padding: var(--spacing-xl) 0 var(--spacing-sm);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacing-lg);
    margin-bottom: var(--spacing-lg);
}

.footer-info h3 {
    color: var(--primary-gold);
    font-size: 1.5rem;
    margin-bottom: var(--spacing-sm);
}

.footer-info p {
    color: var(--light-gold);
    margin-bottom: var(--spacing-xs);
    opacity: 0.9;
}

.footer-links h4 {
    color: var(--primary-gold);
    margin-bottom: var(--spacing-sm);
}

.footer-links ul {
    list-style: none;
}

.footer-links li {
    margin-bottom: var(--spacing-xs);
}

.footer-links a {
    color: var(--light-gold);
    transition: all 0.3s ease;
    opacity: 0.8;
}

.footer-links a:hover {
    color: var(--primary-gold);
    opacity: 1;
    padding-left: 5px;
}

.footer-bottom {
    text-align: center;
    padding-top: var(--spacing-md);
    border-top: 1px solid rgba(212, 175, 55, 0.3);
    color: var(--light-gold);
    opacity: 0.8;
}

/* 动画效果 */
@keyframes shine {
    0% { transform: translateX(-100%) rotate(45deg); }
    100% { transform: translateX(100%) rotate(45deg); }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 平滑滚动 */
html {
    scroll-behavior: smooth;
}

/* 占位图片样式 */
.temple-image img[src*="placeholder"] {
    background: linear-gradient(135deg, var(--border-color), var(--light-gold));
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
    font-size: 14px;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        gap: var(--spacing-sm);
    }
    
    .nav-list {
        flex-wrap: wrap;
        justify-content: center;
        gap: var(--spacing-sm);
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.2rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .temples-grid {
        grid-template-columns: 1fr;
    }
    
    .culture-content {
        grid-template-columns: 1fr;
    }
    
    .container {
        padding: 0 var(--spacing-sm);
    }
}

@media (max-width: 480px) {
    .hero {
        min-height: 60vh;
        background-attachment: scroll;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    section {
        padding: var(--spacing-md) 0;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
} 