/* 基础样式设置 */
: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;
    --circle-bg: #e2d7cf;
    --inner-circle-size: 500px;
    --outer-circle-size: 800px;
}

* {
    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;
}

.page-title h1 {
    font-family: var(--font-primary);
    font-size: 2rem;
    font-weight: 500;
    color: var(--text-color);
    margin-bottom: 5px;
}

.subtitle {
    font-size: 1rem;
    color: var(--text-light);
    font-weight: 300;
    letter-spacing: 0.05em;
}

/* 头部导航样式 - 从展示页面复制 */
.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: 宋体;
    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;
}

/* 主内容布局 */
main {
    display: flex;
    margin-bottom: 50px;
    padding: 50px 60px;
    position: relative;
    flex: 1;
}

.left-info, .right-info {
    width: 20%;
}

.right-info {
    position: relative; /* 为确认按钮提供定位上下文 */
    padding-bottom: 100px; /* 为固定位置的按钮留出空间 */
}

.selector-container {
    bottom: -px;
    width: 60%;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    z-index: 5; /* 提高z-index确保在上层 */
    /* 防止交互时的移动 */
    transform: translateZ(0);
    will-change: transform; /* 优化性能 */
    height: var(--outer-circle-size); /* 指定明确高度 */
    /* 内容溢出可见 */
    overflow: visible;
}

/* 信息区块样式 */
.info-block {
    margin-bottom: 30px;
    background-color: white;
    border-radius: 8px;
    padding: 30px;
    box-shadow: var(--box-shadow);
}

.info-block h3 {
    font-family: var(--font-primary);
    font-size: 1.5rem;
    color: var(--dark-color);
    margin-bottom: 10px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 10px;
}


.info-block p {
    margin-bottom: 10px;
    font-size: 0.9rem;
    line-height: 1.8;
}

.info-block p:last-child {
    margin-bottom: 0;
}

/* 花瓶选择区样式 */
.outer-circle {
    position: relative;
    width: var(--outer-circle-size);
    height: var(--outer-circle-size);
    border-radius: 50%;
    background-color: var(--circle-bg);
    box-shadow: inset 0 0 15px rgba(0, 0, 0, 0.1);
    display: flex;
    justify-content: center;
    align-items: center;
}

.inner-circle {
    position: absolute;
    width: var(--inner-circle-size);
    height: var(--inner-circle-size);
    border-radius: 50%;
    background-color: white;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 5;
}

.current-vase {
    width: 80%;
    height: 80%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.current-vase img {
    max-height: 100%;
    max-width: 100%;
    transition: transform 0.5s ease;
}

/* 花瓶按钮样式 */
.vase-button {
    position: absolute;
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background-color: white;
    box-shadow: var(--box-shadow);
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: var(--transition);
    /* 计算精确位置，使按钮恰好在外圆上 */
    transform: rotate(var(--angle)) translateX(calc(var(--outer-circle-size) / 2 - 40px)) rotate(calc(-1 * var(--angle)));
    z-index: 2;
    overflow: hidden;
}

.vase-button img {
    width: 90%;
    height: 90%;
    object-fit: contain;
    border-radius: 50%;
    transition: transform 0.3s ease;
}

.vase-button:hover {
    /* 同样更新悬停状态的位置计算 */
    transform: rotate(var(--angle)) translateX(calc(var(--outer-circle-size) / 2 - 40px)) rotate(calc(-1 * var(--angle))) scale(1.1);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
    z-index: 10;
}

.vase-button.active {
    box-shadow: 0 0 0 3px var(--primary-color), 0 5px 15px rgba(0, 0, 0, 0.2);
}

.vase-button:hover img {
    transform: scale(1.1);
}

/* 确认按钮样式 - 绝对定位固定位置 */
.confirm-button-container {
    position: absolute;
    bottom: 20px; /* 距离右侧信息区底部固定20px */
    left: 0;
    width: 100%;
    height: 60px;
    z-index: 20;
    text-align: center;
}

.confirm-button {
    background-color: var(--primary-color);
    color: white;
    font-size: 1.2rem;
    font-weight: 450;
    padding: 12px 30px;
    border-radius: 30px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
    width: 100%;
}

.confirm-button:hover {
    background-color: var(--dark-color);
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
}

.confirm-button:active {
    transform: translateY(1px);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

/* 花瓶信息样式 */
.vase-info {
    background-color: white;
    border-radius: 8px;
    padding: 20px;
    box-shadow: var(--box-shadow);
    margin-bottom: 30px;
    transition: all 0.3s ease;
}

.vase-info h2 {
    font-family: var(--font-primary);
    font-size: 1.5rem;
    color: var(--dark-color);
    margin-bottom: 15px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 10px;
}

.vase-details p {
    line-height: 1.8;
    margin-bottom: 10px;
}

/* 季节信息样式 */
.vase-taboos {
    background-color: white;
    border-radius: 8px;
    padding: 20px;
    box-shadow: var(--box-shadow);
    margin-bottom: 30px;
}

.vase-taboos h3 {
    font-family: var(--font-primary);
    font-size: 1.5rem;
    color: var(--dark-color);
    margin-bottom: 10px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 10px;
}

#seasonal-info {
    background-color: white;
    border-radius: 8px;
    padding: 20px;
    box-shadow: var(--box-shadow);
    margin-bottom: 30px;
}

#seasonal-info h3 {
    font-family: var(--font-primary);
    font-size: 1.5rem;
    color: var(--dark-color);
    margin-bottom: 10px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 10px;
}

#seasonal-info ul {
    margin: 15px 0;
    padding-left: 20px;
}

#seasonal-info ul li {
    margin-bottom: 8px;
    position: relative;
}

#seasonal-info ul li::before {
    content: '•';
    position: absolute;
    left: -15px;
    color: var(--primary-color);
}

.seasonal-details p {
    margin-bottom: 8px;
    font-size: 0.9rem;
    line-height: 1.8;
}

/* 响应式设计 */
@media (max-width: 1200px) {
    :root {
        --inner-circle-size: 350px;
        --outer-circle-size: 600px;
    }
    
    .vase-button {
        width: 70px;
        height: 70px;
        transform: rotate(var(--angle)) translateX(275px) rotate(calc(-1 * var(--angle)));
    }
    
    .vase-button:hover {
        transform: rotate(var(--angle)) translateX(275px) rotate(calc(-1 * var(--angle))) scale(1.1);
    }
}

@media (max-width: 992px) {
    main {
        flex-direction: column;
    }
    
    .left-info, .right-info, .selector-container {
        width: 100%;
    }
    
    .selector-container {
        order: -1;
        margin: 0 auto 50px;
    }
    
    .right-info {
        padding-bottom: 80px; /* 减少移动端下方留白 */
    }
    
    :root {
        --inner-circle-size: 300px;
        --outer-circle-size: 520px;
    }
    
    .vase-button {
        width: 60px;
        height: 60px;
        transform: rotate(var(--angle)) translateX(238px) rotate(calc(-1 * var(--angle)));
    }
    
    .vase-button:hover {
        transform: rotate(var(--angle)) translateX(238px) rotate(calc(-1 * var(--angle))) scale(1.1);
    }
}

@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) {
    :root {
        --inner-circle-size: 200px;
        --outer-circle-size: 340px;
    }
    
    .vase-button {
        width: 45px;
        height: 45px;
        transform: rotate(var(--angle)) translateX(155px) rotate(calc(-1 * var(--angle)));
    }
    
    .vase-button:hover {
        transform: rotate(var(--angle)) translateX(155px) rotate(calc(-1 * var(--angle))) scale(1.1);
    }
    
    .main-nav ul {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .main-nav li {
        margin-bottom: 10px;
    }
    
    .page-title h1 {
        font-size: 1.5rem;
    }
    
    .subtitle {
        font-size: 0.8rem;
    }
}

/* 动画效果 */
@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;
}

/* 页脚样式 - 从展示页面复制 */
.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;
}

.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;
}