/* --- 全局重置与字体 --- */
:root {
    --bg-color: #f7f4ed; /* 米宣纸色 */
    --text-color: #2c2c2c; /* 墨色 */
    --accent-red: #a82e2e; /* 朱砂红 */
    --accent-gold: #cfa86e; /* 鎏金色 */
    --nav-height: 70px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Noto Serif SC', 'KaiTi', 'STKaiti', serif; /* 优先使用宋体/楷体 */
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.8;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease;
}

/* --- 导航栏 --- */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    height: var(--nav-height);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 5%;
    background-color: rgba(247, 244, 237, 0.95);
    border-bottom: 1px solid rgba(0,0,0,0.05);
    z-index: 1000;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--accent-red);
    letter-spacing: 2px;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 30px;
}

.nav-links li a:hover {
    color: var(--accent-red);
}

/* --- 首屏 Hero Section (核心视觉) --- */
.hero {
    position: relative;
    height: 100vh;
    width: 100%;
    background-image: url('images/hero-bg.jpg'); /* 需替换图片 */
    background-size: cover;
    background-position: center;
    background-attachment: fixed; /* 视差滚动效果 */
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.15); /* 轻微遮罩 */
    background: linear-gradient(to right, rgba(247,244,237,0.8) 0%, rgba(247,244,237,0) 50%);
}

.hero-content {
    position: relative;
    z-index: 2;
    width: 80%;
    height: 70%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start; /* 左侧对齐 */
}

/* 竖排文字特效 */
.vertical-text-container {
    writing-mode: vertical-rl; /* 竖排从右向左 */
    text-orientation: upright;
    font-family: 'KaiTi', serif;
    margin-bottom: 2rem;
}

.main-title {
    font-size: 3.5rem;
    letter-spacing: 0.5rem;
    color: #000;
    margin-left: 20px;
    border-left: 1px solid var(--accent-red); /* 标题旁的红线 */
    padding-left: 15px;
}

.sub-title {
    font-size: 1.5rem;
    color: #555;
    margin-top: 2rem;
}

/* 印章效果 */
.seal {
    width: 60px;
    height: 60px;
    border: 3px solid var(--accent-red);
    color: var(--accent-red);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    border-radius: 4px;
    position: absolute;
    top: 10%;
    left: 150px; /* 根据排版调整 */
    opacity: 0.8;
    transform: rotate(-5deg);
}

.cta-btn {
    margin-top: 30px;
    padding: 10px 30px;
    border: 1px solid var(--text-color);
    background: transparent;
    color: var(--text-color);
    font-size: 1rem;
    transition: all 0.4s ease;
    writing-mode: horizontal-tb; /* 按钮横排 */
}

.cta-btn:hover {
    background: var(--accent-red);
    color: #fff;
    border-color: var(--accent-red);
}

/* --- 通用区块 --- */
.section-container {
    padding: 80px 10%;
    text-align: center;
    position: relative;
}

.bg-alt {
    background-color: #f0ebe0; /* 稍深的米色 */
}

.section-title {
    font-size: 2rem;
    margin-bottom: 40px;
    display: inline-block;
    border-bottom: 2px solid var(--accent-red);
    padding-bottom: 10px;
}

.text-block p {
    max-width: 800px;
    margin: 0 auto 20px auto;
    font-size: 1.1rem;
    text-align: justify; /* 两端对齐 */
}

/* --- 图片画廊 --- */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    padding-top: 20px;
}

.gallery-item {
    background: #fff;
    padding: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    transition: transform 0.3s ease;
}

.gallery-item:hover {
    transform: translateY(-5px);
}

.gallery-item img {
    width: 100%;
    height: 350px;
    object-fit: cover;
    filter: sepia(20%); /* 增加一点复古泛黄感 */
}

.caption {
    margin-top: 10px;
    font-family: 'KaiTi', serif;
    color: var(--accent-red);
}

/* --- 页脚 --- */
footer {
    background-color: #2c2c2c;
    color: #999;
    padding: 40px 0;
    text-align: center;
    font-size: 0.9rem;
}

/* --- 移动端适配 --- */
@media (max-width: 768px) {
    .main-title {
        font-size: 2.5rem;
    }
    
    .vertical-text-container {
        writing-mode: horizontal-tb; /* 手机端改回横排，防止显示错乱 */
        text-align: left;
    }

    .main-title {
        border-left: none;
        border-bottom: 1px solid var(--accent-red);
        margin-left: 0;
        padding-bottom: 10px;
    }
    
    .seal {
        display: none; /* 手机端隐藏印章以免遮挡 */
    }
    
    .hero {
        background-attachment: scroll; /* 手机端禁用视差 */
    }
}