/* 基础样式设置 */
: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;
    --background-light: #f8f3e3;
}

* {
    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; /* 防止页面的弹性滚动 */
    position: relative;
}

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;
    position: relative;
}

.content-container {
    background: var(--background-color);
    min-height: calc(100vh - 150px); /* 减去头部和页脚的大致高度 */
    position: relative;
    z-index: 10;
}

/* Header Section */
.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;
}

/* Home Page */
.page {
    display: none;
    position: relative;
    min-height: calc(100vh - 150px); /* 确保页面内容至少占满视口高度减去头部和页脚 */
}

.page.active {
    display: block;
}

.main-content {
    position: relative;
    min-height: calc(100vh - 150px); /* 确保主内容区域填充足够高度 */
}

.red-section {
    background-color:#ece2d8;
    width: 100%;
    height: 25vh;
    display:flex;
    align-items: center;
    justify-content: space-between;

}




.gray-section {

    position: relative;
    background-color: #ece2d8;
    width: 100%;
    height: 60vh;
    display: flex;
    padding: 20px 100px;
    z-index: 5;
}

.chinese-text {
    position: absolute;
    bottom: 30px;
    left: 50px;
    font-size: 90px;
    line-height: 1.5em;
    color: #a66554;
    font-family:宋体;
}

.english-text p {
    position: absolute;
    bottom: 60px;
    right: 50px;
    font-size: 18px;
    line-height: 2em;
    text-align: right;
    color: #a66554;
    font-family: 黑体;
}


.button-container {
    position: absolute;
    margin-bottom: -70px;
    left: 0;
    width: 100%;
    height: 65px;
    text-align: center;
}

.button {
    width: 196px;
    height: 100%;
    background-color:#a66554;
    border: none;
    padding: 20px 50px;
    border-radius: 40px;
    font-size: 24px;
    color: var(--light-color);
    cursor: pointer;
    font-family: var(--font-primary);
    box-shadow: var(--box-shadow);
    transition: var(--transition);
}

.button:hover {
    background-color: var(--dark-color);
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
}

.button:active {
    transform: translateY(1px);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.image-circle {
    margin-top: -120px;
    border-radius: 50%;
    overflow: hidden;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    z-index: 100;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.2);
}

.image-circle img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Understand Page */
.understand-content {
    display: flex;
    width: 100%;
    height: 80vh;
    position: relative;
}

.understand-left {
    width: 40%;
    background-color:#ece2d8;
    height: 80vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 40px;
    position: relative;
    z-index: 10;
}

.understand-title {
    font-size: 60px;
    line-height: 1.5em;
    margin-bottom: 20px;
    font-weight: bold;
    font-family: 宋体;
    color: #a66554;
}


.understand-right {
    width: 60%;
    height: 80vh;
    position: relative;
    z-index: 20;
}

.understand-right img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}



.scene-nav {
    display: flex;
    justify-content: center;
    gap: 150px;
    margin: 20px 0;
    position: relative;
    z-index: 30;
}

.scene-button {
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    font-family: var(--font-primary);
}

.scene-button:hover {
    opacity: 0.8;
}

.scene-button.active {
    color: var(--primary-color);
}

.scene-circle {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background-color: #ccc;
    margin-bottom: 5px;
    transition: var(--transition);
}

.scene-button.active .scene-circle {
    background-color: var(--primary-color);
}

/* Scene Pages */
.scene-container {
    display: flex;
    width: 100%;
    height: 80vh;
    position: relative;
}

.scene-image {
    width: 40%;
    height: 100%;
    position: relative;
    z-index: 50;
}

.scene-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.scene-info {
    width: 60%;
    height: 100%;
    background-color:#ece2d8;
    padding: 30px;
    position: relative;
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
}

.scene-title {
    font-family: 宋体;
    font-size: 50px;
    margin-bottom: 10px;
    font-weight: bold;
    color: #593f1e;
    text-align: center;
}

.scene-subtitle {
    font-family: var(--font-primary);
    font-size: 30px;
    margin-bottom: 35px;
    font-weight: normal;
    color: var(--text-light);
    text-align: center;
}

.scene-text {
    height: 35vh;
    font-size: 20px;
    line-height: 2em;
    margin-bottom: 30px;
    color: var(--text-light);
    text-align: center;
    max-width: 700px;
    font-family: var(--font-secondary);
}

.flower-options {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 40px;
    margin-top: 20px;
}

.flower-option {

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
}

.flower-image {
    width: 170px;
    height: 170px;
    margin-left: 20px;
    overflow: hidden;
    margin-bottom: 10px;
    border-radius: 10px;
    background-color: var(--light-color);
    box-shadow: var(--box-shadow);
}

.flower-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.flower-option span {
    margin-left: 20px;
    font-size: 16px;
    color: var(--text-color);
    text-align: center;
    line-height: 1.5;
    font-family: var(--font-primary);
}

.artist-info {
    font-size: 20px;
    color: var(--text-lighter);
    position: absolute;
    bottom: 20px;
    left: 20px;
    text-align: left;
    line-height: 1.5;
    font-family: var(--font-primary);
}

/* Back button */
.back-button {
    position: absolute;
    top: 20px;
    left: 20px;
    cursor: pointer;
    z-index: 200;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--primary-color);
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
}

.back-button:hover {
    background-color: var(--dark-color);
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
}

.back-button i {
    font-size: 20px;
    color: var(--light-color);
}

/* 插花之旅按钮 */
.journey-button-container {
    display: flex;
    justify-content:right;
    right: 50px;
    bottom: 120px;
    width: 100%;
    margin-top: 20px;
    margin-bottom: 20px;
    position:absolute;
    z-index: 50;
}

.journey-button {
    background-color: #a66554;
    color: var(--light-color);
    border: none;
    padding: 10px 20px;
    border-radius: 40px;
    font-size: 20px;
    text-align: center;
    cursor: pointer;
    font-family: 宋体;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
    display: inline-block;
    text-decoration: none;
}

.journey-button:hover {
    background-color: var(--dark-color);
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
}

.journey-button:active {
    transform: translateY(1px);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}




/* Footer Styles */
.site-footer {
    background-color: white;
    border-top: 1px solid var(--border-color);
    padding: 30px 0;
    margin-top: auto;
    position: relative;
    overscroll-behavior: none; /* 防止页脚处的弹性滚动 */
    bottom: 0;
    z-index: 50;
    width: 100%;
}

.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;
}

/* 动画效果 */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.fade-in {
    animation: fadeIn 0.5s ease forwards;
}

@keyframes scaleIn {
    from { transform: scale(0.8); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

.scale-in {
    animation: scaleIn 0.5s ease forwards;
}

/* 响应式设计 */
@media (max-width: 1200px) {
    .red-section {
        padding: 0 50px;
        font-size: 48px;
    }
    
    .chinese-text {
        left: 60px;
        font-size: 48px;
    }
    
    .english-text {
        font-size: 16px;
    }
    
    .scene-nav {
        gap: 100px;
    }
}

@media (max-width: 992px) {
    .understand-content {
        flex-direction: column;
    }
    
    .understand-left, .understand-right {
        width: 100%;
        height: 50vh;
    }
    
    .scene-container {
        flex-direction: column;
    }
    
    .scene-image, .scene-info {
        width: 100%;
        height: auto;
    }
    
    .scene-nav {
        gap: 50px;
    }
    
    .red-section {
        padding: 0 30px;
        font-size: 36px;
    }
    
    .chinese-text {
        left: 40px;
        font-size: 36px;
    }
}

@media (max-width: 768px) {
    :root {
        --inner-circle-size: 250px;
        --outer-circle-size: 440px;
    }
    
    .vase-button {
        width: 55px;
        height: 55px;
        transform: rotate(var(--angle)) translateX(200px) rotate(calc(-1 * var(--angle)));
    }
    
    .vase-button:hover {
        transform: rotate(var(--angle)) translateX(200px) rotate(calc(-1 * var(--angle))) scale(1.1);
    }
    
    .main-nav ul {
        gap: 20px;
    }
    
    .main-nav {
        display: none;
    }
    
    .logo {
        margin: 0 auto;
        text-align: center;
    }
    
    .footer-content {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }
}

@media (max-width: 576px) {
    .red-section {
        height: 15vh;
        padding: 0 20px;
        font-size: 28px;
    }
    
    .gray-section {
        height: 85vh;
        padding: 20px;
    }
    
    .chinese-text {
        left: 20px;
        font-size: 28px;
    }
    
    .english-text {
        font-size: 14px;
        right: 20px;
    }
    
    .image-circle {
        width: 250px;
        height: 250px;
    }
    
    .button {
        width: 160px;
        padding: 12px 30px;
        font-size: 20px;
    }
}

/* 自定义布局调整 */

/* 放大首页图片 */
.image-circle {
    width: 580px !important; /* 放大到500px */
    height: 580px !important; /* 放大到500px */
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.3) !important; /* 增强阴影效果 */
    top: 18vh !important; /* 调整顶部位置，适应更大的图片 */
}

/* 按钮位置上移 */
.button-container {
    bottom: 120px !important; /* 原始30px，上移至90px */
}

/* 瓶花谱替换为英文版 */
.red-section {
    font-family: 'Times New Roman', serif !important; /* 使用衬线字体更适合显示英文 */
    letter-spacing: 0.04em !important; /* 调整字母间距 */
    font-size: 50px !important; /* 缩小字体大小以适应更长的文字 */
    padding: 0 60px !important; /* 调整内边距 */
    justify-content: space-around !important; /* 均匀分布 */
}


/* 移动端响应式调整 */
@media (max-width: 1200px) {
    .red-section {
        font-size: 30px !important;
        padding: 0 40px !important;
    }
    
    .image-circle {
        width: 450px !important;
        height: 450px !important;
    }
}

@media (max-width: 992px) {
    .red-section {
        font-size: 24px !important;
        padding: 0 30px !important;
    }
    
    .image-circle {
        width: 400px !important;
        height: 400px !important;
    }
}

@media (max-width: 768px) {
    .image-circle {
        width: 350px !important;
        height: 350px !important;
    }
    
    .red-section {
        font-size: 20px !important;
        flex-direction: column !important;
        justify-content: center !important;
        align-items: center !important;
        padding: 10px !important;
    }
}

@media (max-width: 576px) {
    .image-circle {
        width: 300px !important;
        height: 300px !important;
    }
    
    .button-container {
        bottom: 60px !important;
    }
    
    .red-section {
        font-size: 18px !important;
        height: 25vh !important;
    }
}

/* 首页新主视觉：参考拼贴底图，文字和按钮保持可编辑、可响应 */
#home.page {
    min-height: 0;
}

#home .main-content.home-hero {
    position: relative;
    height: clamp(620px, calc(100vh - 92px), 796px);
    min-height: 620px;
    overflow: hidden;
    background: #f3eadb;
}

#home .home-background {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100% !important;
    padding: 0 !important;
    display: block !important;
    background-color: transparent;
    background-image: url("图片/首页背景.png");
    background-size: cover;
    background-position: center center;
    z-index: 0;
}

#home .home-copy {
    position: relative;
    width: 100%;
    height: 100%;
    z-index: 2;
}

#home .chinese-text {
    position: absolute;
    top: 13.5%;
    left: clamp(32px, 8vw, 132px);
    bottom: auto;
    font-family: "STSong", "SimSun", "Noto Serif SC", serif;
    font-weight: 700;
    font-size: clamp(38px, 4vw, 64px);
    line-height: 1.2;
    letter-spacing: 0.08em;
    color: #a86050;
    text-align: left;
    white-space: nowrap;
}

#home .english-text {
    position: absolute;
    top: 49.5%;
    left: clamp(32px, 8vw, 132px);
    right: auto;
    width: min(350px, 29vw);
    min-width: 0;
}

#home .english-text p {
    position: static;
    max-width: none;
    margin: 0;
    font-family: "STSong", "SimSun", "Noto Serif SC", serif;
    font-size: clamp(13px, 1.02vw, 16px);
    line-height: 2;
    letter-spacing: 0.03em;
    color: #a86050;
    text-align: left;
}

#home .button-container {
    position: static;
    width: auto;
    height: auto;
    margin: clamp(48px, 7vw, 72px) 0 0;
    text-align: left;
}

#home .button {
    width: 205px;
    height: 56px;
    padding: 0 30px;
    border-radius: 999px;
    background: #a66554;
    color: #fffaf1;
    font-family: "STSong", "SimSun", "Noto Serif SC", serif;
    font-size: 18px;
    letter-spacing: 0.12em;
    line-height: 56px;
    box-shadow: 0 8px 18px rgba(100, 55, 40, 0.16);
}

#home .button:hover {
    background: #89503f;
    transform: translateY(-2px);
    box-shadow: 0 10px 22px rgba(100, 55, 40, 0.22);
}

#home .button:focus-visible {
    outline: 2px solid #89503f;
    outline-offset: 4px;
}

@media (max-width: 900px) {
    #home .home-background {
        background-position: 58% center;
    }

    #home .english-text {
        width: min(300px, 35vw);
    }

    #home .english-text p {
        font-size: 14px;
    }
}

@media (max-width: 700px) {
    #home .main-content.home-hero {
        height: 680px;
        min-height: 680px;
    }

    #home .home-background {
        background-position: 68% center;
    }

    #home .chinese-text {
        top: 9%;
        left: 24px;
        font-size: 46px;
    }

    #home .english-text {
        top: 39%;
        left: 24px;
        width: calc(100% - 48px);
    }

    #home .english-text p {
        font-size: 14px;
        line-height: 1.85;
    }

    #home .english-text br {
        display: none;
    }

    #home .button-container {
        margin-top: 40px;
    }
}
