/* 基础样式设置 */
:root {
    --primary-color: #8d6e63;
    --secondary-color: #a1887f;
    --background-color: #f5f5f5;
    --light-color: #efebe9;
    --dark-color: #4e342e;
    --text-color: #3e2723;
    --text-light: #8d6e63;
    --text-lighter: #bcaaa4;
    --border-color: #d7ccc8;
    --box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
    --font-primary: "SimSun", "Noto Serif SC", serif;
    --font-secondary: "Microsoft YaHei", "Noto Sans SC", sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    overscroll-behavior: none;
}

body {
    font-family: var(--font-secondary);
    color: var(--text-color);
    line-height: 1.6;
    background-color: var(--background-color);
    overflow-x: hidden;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overscroll-behavior: none;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul,
ol {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

button {
    cursor: pointer;
    border: none;
    font-family: inherit;
    transition: var(--transition);
}

.container {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 头部导航样式 */
.site-header {
    background-color: white;
    border-bottom: 1px solid var(--border-color);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 100;
    overscroll-behavior: none;
    margin-top: 0;
}

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

.logo {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.logo h1 {
    font-family: var(--font-primary);
    font-size: 1.5rem;
    font-weight: 500;
    color: var(--text-color);
    margin: 0;
    letter-spacing: 0.05em;
}

.subtitle {
    font-size: 1.1rem;
    color: var(--text-light);
    font-weight: 300;
    letter-spacing: 0.03em;
    margin-top: 2px;
}

.main-nav ul {
    display: flex;
    gap: 30px;
}

.main-nav li {
    position: relative;
}

.main-nav a {
    display: flex;
    flex-direction: column;
    align-items: center;
    color: var(--text-color);
    font-size: 0.9rem;
    padding: 5px 0;
}

.main-nav a:hover,
.main-nav a.active {
    color: var(--primary-color);
}

.main-nav a::after {
    content: "";
    position: absolute;
    bottom: -5px;
    left: 50%;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: var(--transition);
    transform: translateX(-50%);
}

.main-nav a:hover::after,
.main-nav a.active::after {
    width: 100%;
}

.en-text {
    font-size: 0.7rem;
    color: var(--text-lighter);
    margin-top: 2px;
    text-transform: uppercase;
    font-weight: 300;
    letter-spacing: 0.05em;
}

/* 中间区域样式 */
.scene-container {
    position: relative;
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    background-image: url("images/1.jpg");
    background-size: cover;
    background-position: center;
    min-height: 80vh;
    padding: 40px 0;
}

/* 场景内容样式 */
.scene-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 90%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

.content-left {
    width: 40%;
    color: white;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.name {
    font-size: 2.5rem;
    font-weight: bold;
    margin-bottom: 20px;
    font-family: var(--font-primary);
}

.des {
    margin: 20px 0;
    font-size: 1rem;
    line-height: 1.8;
}

.des-en {
    margin: 20px 0;
    font-size: 0.9rem;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.8);
    font-style: italic;
}

.see-more {
    padding: 10px 20px;
    background-color: white;
    color: var(--text-color);
    font-size: 0.9rem;
    border-radius: 20px;
    transition: all 0.3s ease;
    font-weight: 500;
}

.see-more:hover {
    background-color: rgba(255, 255, 255, 0.9);
    transform: translateY(-2px);
}

.content-right {
    width: 55%;
}

/* 图片库容器样式 */
.gallery-container {
    position: relative;
    width: 100%;
    overflow: hidden;
}

/* 图片库样式 */
.image-gallery {
    display: flex;
    transition: transform 0.5s ease;
    gap: 15px;
    width: 100%;
}

.gallery-item {
    flex: 0 0 calc((100% - 3.28rem) / 3);
    height: 300px;
    background-position: center;
    background-size: cover;
    border-radius: 20px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    overflow: hidden;
    position: relative;
}

.gallery-item-inner {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    transition: transform 0.5s ease;
}

.gallery-item:hover .gallery-item-inner {
    transform: scale(1.2);
}

/* 导航按钮样式 */
.scene-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(255, 255, 255, 0.7);
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10;
    font-size: 2rem;
}

.scene-nav-left {
    left: 20px;
}

.scene-nav-right {
    right: 20px;
}

.nav-icon {
    height: 2.5rem;
    font-size: 2.5rem;
    line-height: 0.8;
    color: var(--text-color);
}

/* 场景指示器样式 */
.scene-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 6px;
    z-index: 10;
}

.indicator-bar {
    width: 10px;
    height: 4px;
    border-radius: 2px;
    background-color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
}

.indicator-bar.active {
    background-color: white;
    width: 18px;
}

.indicator-bar:hover {
    background-color: rgba(255, 255, 255, 0.8);
}

/* 页脚样式 */
.site-footer {
    background-color: white;
    border-top: 1px solid var(--border-color);
    padding: 30px 0;
    margin-top: auto;
    position: relative;
    overscroll-behavior: none;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.footer-info h3 {
    font-family: var(--font-primary);
    font-size: 1.2rem;
    color: var(--dark-color);
    margin-bottom: 5px;
    font-weight: 500;
}

.footer-info p {
    color: var(--text-light);
    font-size: 0.9rem;
}

.footer-links {
    display: flex;
    gap: 20px;
}

.footer-links a {
    color: var(--text-light);
    font-size: 0.9rem;
}

.footer-links a:hover {
    color: var(--dark-color);
}

.copyright {
    text-align: center;
    color: var(--text-lighter);
    font-size: 0.85rem;
    border-top: 1px solid var(--border-color);
    padding-top: 20px;
}

/* 响应式设计 */
@media (max-width: 1200px) {
    .scene-content {
        padding: 0 40px;
    }
}

@media (max-width: 992px) {
    .scene-content {
        flex-direction: column;
        gap: 40px;
        text-align: center;
    }

    .content-left,
    .content-right {
        width: 100%;
    }

    .gallery-container {
        max-width: 600px;
        margin: 0 auto;
    }
}

@media (max-width: 768px) {
    /* 关键样式 - 使用更具体的选择器 */
    .site-header .main-nav {
        display: none !important; /* 使用 !important 确保优先级 */
    }
    
    .site-header .logo {
        margin: 0 auto !important;
        text-align: center !important;
    }
    
    .site-footer .footer-content {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }
}

@media (max-width: 576px) {
    .gallery-item {
        flex: 0 0 100%;
    }

    .name {
        font-size: 1.8rem;
    }

    .des,
    .des-en {
        font-size: 0.9rem;
    }

    .indicator-bar {
        width: 20px;
        height: 3px;
    }

    .indicator-bar.active {
        width: 35px;
    }
}

/* 文字淡入淡出效果 */
.name,
.des,
.des-en {
    transition: opacity 0.5s ease;
}

/* 场景背景淡入淡出效果 */
.scene-container {
    position: relative;
    transition: background-image 0s ease;
}

.scene-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 0.8s ease;
    z-index: 1;
    pointer-events: none;
}

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