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

body {
    font-family: 'SimSun', serif;
    background-color: #f5f5dc;
    color: #333;
    scroll-behavior: smooth;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}



/* 点赞动画 */
@keyframes likeAnimation {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.3);
    }
    100% {
        transform: scale(1);
    }
}

/* 用户信息模态框样式 */
.user-detail {
    display: flex;
    gap: 2rem;
    align-items: flex-start;
}

.user-avatar-large {
    flex: 0 0 150px;
    border-radius: 50%;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.user-avatar-large img {
    width: 100%;
    height: 150px;
    object-fit: cover;
}

.user-info {
    flex: 1;
}

.user-info h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: #9E2A2B;
    font-family: 'Ma Shan Zheng', 'STZhongsong', serif;
}

.user-info p {
    margin-bottom: 1.5rem;
    line-height: 1.6;
    color: #333333;
}

.user-image {
    margin-bottom: 1.5rem;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.user-image img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.user-message {
    margin-bottom: 1.5rem;
    padding: 1rem;
    background-color: #f9f9f9;
    border-radius: 8px;
    border-left: 4px solid #9E2A2B;
}

.user-message h4 {
    margin-bottom: 0.5rem;
    color: #666666;
    font-size: 1rem;
}

.user-message p {
    margin-bottom: 0;
    line-height: 1.6;
    color: #333333;
    font-style: italic;
}

.user-preferences h4 {
    margin-bottom: 1rem;
    color: #666666;
    font-size: 1rem;
}

.preference-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.preference-tag {
    padding: 0.3rem 0.8rem;
    background-color: #F8F5EE;
    border-radius: 12px;
    font-size: 0.9rem;
    color: #9E2A2B;
    font-family: 'Microsoft YaHei', sans-serif;
}

/* 减少动画偏好 */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
    
    .hero-slide,
    .color-wheel,
    .dynasty-image,
    .timeline-node.active {
        animation: none !important;
    }
}

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

/* 图片懒加载 */
img[loading="lazy"] {
    opacity: 0;
    transition: opacity 0.3s ease;
}

img[loading="lazy"].loaded {
    opacity: 1;
}

/* 顶部导航栏 */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    background-color: #8B1E1E;
    color: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.3);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    border-bottom: 1px solid #7a1a1a;
    height: 80px;
    box-sizing: border-box;
}

.logo {
    font-size: 1.5rem;
    font-weight: bold;
    font-family: 'Ma Shan Zheng', 'STKaiti', 'KaiTi', serif;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

/* 导航菜单 */
.menu {
    display: flex;
    gap: 2rem;
}

.menu a {
    color: #fff;
    text-decoration: none;
    font-size: 1rem;
    transition: all 0.3s ease;
    padding: 0.5rem 1rem;
    border-radius: 4px;
}

.menu a:hover {
    background-color: rgba(255,255,255,0.2);
    transform: translateY(-2px);
}

/* 导航栏控制 */
.navbar-controls {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.sound-control {
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.sound-control:hover {
    background-color: rgba(255,255,255,0.2);
    transform: scale(1.1);
}

.sound-icon {
    font-size: 1.2rem;
}

.user-avatar {
    position: relative;
    cursor: pointer;
    display: flex;
    align-items: center;
}

/* 返回首页按钮（导航栏内） */
.back-to-home-nav {
    color: #fff;
    text-decoration: none;
    font-size: 0.9rem;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    transition: all 0.3s ease;
    background-color: rgba(255,255,255,0.1);
    margin-right: 1rem;
}

.back-to-home-nav:hover {
    background-color: rgba(255,255,255,0.2);
    transform: translateY(-2px);
}

.avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #fff;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.avatar::before {
    content: '👤';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 1.5rem;
}

.user-avatar:hover .avatar {
    transform: scale(1.1);
    box-shadow: 0 0 0 4px rgba(255,215,0,0.5);
}

.user-avatar:hover .avatar::after {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    border-radius: 50%;
    background: linear-gradient(45deg, #ff6b6b, #4ecdc4, #45b7d1, #96ceb4, #ff6b6b);
    z-index: -1;
    animation: gradientRotate 2s linear infinite;
}

.avatar-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    padding: 0.5rem 0;
    min-width: 150px;
    display: none;
    z-index: 1000;
}

.user-avatar:hover .avatar-dropdown {
    display: block;
}

.avatar-dropdown a {
    display: block;
    padding: 0.8rem 1.5rem;
    color: #333;
    text-decoration: none;
    transition: all 0.3s ease;
}

.avatar-dropdown a:hover {
    background-color: #faf0e6;
    color: #8a1a1a;
}

@keyframes gradientRotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Hero Section */
.hero-section {
    position: relative;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    margin: 0;
    padding: 0;
    z-index: 10;
}

.hero-slides {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
}

.hero-slide.active {
    opacity: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: #fff;
    max-width: 800px;
    padding: 80px 2rem 0;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.hero-title {
    font-size: 4rem;
    font-family: 'Ma Shan Zheng', 'STZhongsong', serif;
    margin-bottom: 1rem;
    display: flex;
    justify-content: center;
    gap: 0.5rem;
}

.title-char {
    opacity: 0;
    animation: fadeInUp 0.8s ease forwards;
    display: inline-block;
}

.hero-subtitle {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    opacity: 0;
    animation: fadeInUp 1s ease forwards;
    animation-delay: 0.5s;
    text-align: center;
    max-width: 800px;
    line-height: 1.4;
}

.hero-cta {
    background-color: #8B1E1E;
    color: #fff;
    border: none;
    padding: 1rem 2rem;
    font-size: 1.1rem;
    font-weight: bold;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
    opacity: 0;
    animation: fadeInUp 1s ease forwards;
    animation-delay: 1s;
    text-decoration: none;
    display: inline-block;
}

.hero-cta:hover {
    background-color: #6b1515;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(139,30,30,0.5);
}

/* 添加渐变遮罩 */
.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0,0,0,0.4), rgba(245,245,220,0.6));
    z-index: 1;
}

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

/* 响应式设计 */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
        gap: 0.2rem;
    }
    .hero-subtitle {
        font-size: 1.2rem;
    }
    .hero-cta {
        padding: 0.8rem 1.5rem;
        font-size: 1rem;
    }
    .hero-slide {
        background-position: center center;
    }
}

/* 通用部分样式 */
.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: #8a1a1a;
    font-family: 'Ma Shan Zheng', 'STZhongsong', serif;
}

.section-intro {
    text-align: center;
    font-size: 1.2rem;
    margin-bottom: 3rem;
    color: #666;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

/* 色彩灵感画廊 */
.color-gallery {
    position: relative;
    height: 100vh;
    width: 100vw;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding-top: 8rem;
    margin-top: 0;
    z-index: 1;
}

/* 背景视频层 */
.gallery-background {
    position: absolute;
    top: 80px;
    left: 0;
    width: 100%;
    height: calc(100% - 80px);
    z-index: 1;
}

.bg-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.8;
    transition: playback-rate 0.6s ease;
}

/* 半透明遮罩层 */
.gallery-overlay {
    position: absolute;
    top: 80px;
    left: 0;
    width: 100%;
    height: calc(100% - 80px);
    background: linear-gradient(
        to bottom,
        rgba(139, 30, 30, 0.15) 0%,
        transparent 30%,
        transparent 80%,
        rgba(0, 0, 0, 0.1) 100%
    );
    z-index: 2;
}

/* 文字信息层 */
.gallery-header {
    position: relative;
    z-index: 10;
    text-align: center;
    margin-bottom: 6rem;
    max-width: 900px;
    padding: 0 2rem;
}

.gallery-title {
    font-size: 56px;
    font-family: 'Ma Shan Zheng', 'STZhongsong', serif;
    color: #8B1E1E;
    margin-bottom: 1rem;
    letter-spacing: 4px;
    text-shadow: 2px 2px 4px rgba(255, 255, 255, 0.8);
    font-weight: bold;
}

.decorative-line {
    width: 60px;
    height: 2px;
    background-color: #8B1E1E;
    margin: 0 auto 1.5rem;
    box-shadow: 0 1px 3px rgba(255, 255, 255, 0.6);
}

.gallery-subtitle {
    font-size: 18px;
    color: #000;
    line-height: 1.8;
    max-width: 800px;
    margin: 0 auto;
    text-shadow: 2px 2px 4px rgba(255, 255, 255, 0.9);
    font-weight: bold;
}

/* 内容卡片层 */
.gallery-container {
    position: relative;
    z-index: 3;
    display: flex;
    width: 100%;
    height: 60vh;
    max-width: 1920px;
    margin: 0 auto;
}

.gallery-card {
    flex: 1;
    position: relative;
    overflow: hidden;
    transition: flex 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    cursor: pointer;
}

.gallery-card:hover {
    flex: 1.25;
}

.gallery-card:hover + .gallery-card,
.gallery-card:hover ~ .gallery-card {
    flex: 0.666;
}

/* 卡片内部结构 */
.card-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
    animation: colorBreath 2s ease-in-out infinite;
}

@keyframes colorBreath {
    0%, 100% {
        opacity: 0.25;
    }
    50% {
        opacity: 0.35;
    }
}

.card-content {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 3;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: #fff;
    text-align: center;
    padding: 4rem;
}

.card-number {
    font-size: 48px;
    font-family: 'DIN', 'Arial', sans-serif;
    opacity: 0.6;
    margin-bottom: 1rem;
}

.card-color-name {
    font-size: 72px;
    font-family: 'Ma Shan Zheng', 'STZhongsong', serif;
    margin-bottom: 1rem;
}

.card-desc {
    font-size: 16px;
    margin-bottom: 2rem;
}

/* 卡片详情（hover时显示） */
.card-details {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.4s ease;
    text-align: center;
}

.gallery-card:hover .card-details {
    opacity: 1;
    transform: translateY(0);
}

.color-swatch {
    width: 60px;
    height: 20px;
    margin: 0 auto 0.5rem;
    border-radius: 2px;
}

.color-hex {
    font-size: 14px;
    margin-bottom: 0.5rem;
}

.color-poem {
    font-size: 24px;
    font-family: 'Ma Shan Zheng', 'STZhongsong', serif;
    line-height: 1.4;
    max-width: 90%;
    margin: 0 auto;
}

/* 视频播放速率变化 */
.color-gallery:hover .bg-video {
    animation: videoSlowdown 0.6s ease forwards;
}

@keyframes videoSlowdown {
    to {
        playback-rate: 0.3;
    }
}

.color-gallery:not(:hover) .bg-video {
    animation: videoSpeedup 0.6s ease forwards;
}

@keyframes videoSpeedup {
    to {
        playback-rate: 0.8;
    }
}

/* 响应式设计 */
@media (max-width: 1440px) {
    .gallery-title {
        font-size: 48px;
    }
    
    .gallery-subtitle {
        font-size: 16px;
    }
    
    .card-number {
        font-size: 40px;
    }
    
    .card-color-name {
        font-size: 60px;
    }
    
    .card-desc {
        font-size: 14px;
    }
    
    .color-poem {
        font-size: 20px;
    }
    
    .gallery-container {
        height: 55vh;
    }
}

@media (max-width: 1024px) {
    .gallery-container {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        grid-template-rows: repeat(2, 1fr);
        height: 50vh;
    }
    
    .gallery-card {
        flex: none;
    }
    
    .gallery-card:hover {
        flex: none;
        transform: scale(1.05);
    }
    
    .gallery-card:hover + .gallery-card,
    .gallery-card:hover ~ .gallery-card {
        flex: none;
        transform: none;
    }
    
    .gallery-title {
        font-size: 40px;
    }
    
    .gallery-subtitle {
        font-size: 14px;
        padding: 0 1rem;
    }
    
    .card-number {
        font-size: 32px;
    }
    
    .card-color-name {
        font-size: 48px;
    }
    
    .card-desc {
        font-size: 12px;
    }
    
    .color-poem {
        font-size: 16px;
    }
}

@media (max-width: 768px) {
    .color-gallery {
        padding-top: 6rem;
    }
    
    .gallery-container {
        display: flex;
        flex-direction: column;
        overflow-y: auto;
        height: 40vh;
    }
    
    .gallery-card {
        height: 40vh;
        flex: none;
    }
    
    .gallery-header {
        margin-bottom: 4rem;
    }
    
    .gallery-card:hover {
        flex: none;
        transform: none;
    }
    
    .gallery-card:hover + .gallery-card,
    .gallery-card:hover ~ .gallery-card {
        flex: none;
        transform: none;
    }
    
    .gallery-title {
        font-size: 32px;
        letter-spacing: 2px;
    }
    
    .gallery-subtitle {
        font-size: 12px;
        padding: 0 1rem;
    }
    
    .card-number {
        font-size: 24px;
    }
    
    .card-color-name {
        font-size: 36px;
    }
    
    .card-desc {
        font-size: 10px;
    }
    
    .color-poem {
        font-size: 14px;
    }
    
    .decorative-line {
        width: 40px;
    }
}

@media (max-width: 480px) {
    .color-gallery {
        padding-top: 4rem;
    }
    
    .gallery-title {
        font-size: 24px;
    }
    
    .gallery-subtitle {
        font-size: 10px;
    }
    
    .gallery-header {
        margin-bottom: 3rem;
        padding: 0 1rem;
    }
    
    .card-number {
        font-size: 16px;
    }
    
    .card-color-name {
        font-size: 24px;
    }
    
    .card-desc {
        font-size: 8px;
    }
    
    .color-poem {
        font-size: 10px;
    }
    
    .card-content {
        padding: 1rem;
    }
    
    .gallery-container {
        height: 35vh;
    }
    
    .gallery-card {
        height: 35vh;
    }
}

/* 灯箱模态框 */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.9);
}

.modal-content {
    background-color: #fefefe;
    margin: 5% auto;
    padding: 20px;
    border: 1px solid #888;
    width: 90%;
    max-width: 900px;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
    position: relative;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}

.modal-header h2 {
    color: #8a1a1a;
    font-family: 'STZhongsong', serif;
}

.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
}

.close:hover {
    color: #8a1a1a;
    transform: scale(1.2);
}

/* 色彩详情模态框 */
.color-detail {
    display: flex;
    gap: 2rem;
}

.detail-image {
    flex: 0 0 60%;
    border-radius: 8px;
    overflow: hidden;
}

.detail-image img {
    width: 100%;
    height: 400px;
    object-fit: cover;
}

.detail-info {
    flex: 1;
}

.color-preview {
    width: 120px;
    height: 120px;
    border-radius: 8px;
    margin-bottom: 1rem;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

.detail-info h3 {
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
    color: #8a1a1a;
    font-family: 'STZhongsong', serif;
}

.detail-info p {
    margin-bottom: 1rem;
    line-height: 1.6;
}

.detail-cta {
    background-color: #8a1a1a;
    color: #fff;
    border: none;
    padding: 0.8rem 1.5rem;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: bold;
}

.detail-cta:hover {
    background-color: #6b1515;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(138,26,26,0.3);
}

/* 品牌叙事区 */
.brand-narrative {
    padding: 8rem 2rem;
    background-color: #fff;
    position: relative;
    z-index: 1;
}

.narrative-item {
    display: flex;
    align-items: center;
    gap: 4rem;
    max-width: 1200px;
    margin: 0 auto 8rem;
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s ease;
}

.narrative-item.reverse {
    flex-direction: row-reverse;
}

.narrative-item.visible {
    opacity: 1;
    transform: translateY(0);
}

.narrative-item.visible .narrative-image img {
    transform: scale(1.0);
}

.narrative-item.visible .narrative-content h2,
.narrative-item.visible .narrative-content p {
    transform: translateY(0);
    opacity: 1;
}

.narrative-image {
    flex: 0 0 50%;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.narrative-image img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    transition: transform 0.8s ease;
    transform: scale(0.9);
}

.narrative-item:hover .narrative-image img {
    transform: scale(1.05);
}

.narrative-content {
    flex: 1;
}

.narrative-content h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    color: #8a1a1a;
    font-family: 'Ma Shan Zheng', 'STZhongsong', serif;
    transform: translateY(30px);
    opacity: 0;
    transition: all 0.8s ease;
    transition-delay: 0.2s;
}

.narrative-content p {
    font-size: 1.2rem;
    line-height: 1.8;
    color: #333;
    transform: translateY(30px);
    opacity: 0;
    transition: all 0.8s ease;
    transition-delay: 0.4s;
}

.narrative-item.visible .narrative-content h2 {
    transform: translateY(0);
    opacity: 1;
}

.narrative-item.visible .narrative-content p {
    transform: translateY(0);
    opacity: 1;
}

/* 智能搭配工具入口 */
.color-tool {
    padding: 8rem 2rem;
    background: linear-gradient(135deg, #8b1e1e, #6b1515);
    color: #fff;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.color-tool::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    opacity: 0;
    z-index: 0;
}

.tool-container {
    display: flex;
    align-items: center;
    gap: 4rem;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.tool-left {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
}

.color-wheel {
    width: 350px;
    height: 350px;
    position: relative;
    border-radius: 50%;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.4);
    animation: rotate 25s linear infinite;
    background: conic-gradient(
        #9D2933 0deg 72deg,
        #007075 72deg 144deg,
        #E4A94B 144deg 216deg,
        #804E33 216deg 288deg,
        #45B7D1 288deg 360deg
    );
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.wheel-center {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 120px;
    height: 120px;
    background-color: #f5f5dc;
    border-radius: 50%;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'STZhongsong', serif;
    color: #8a1a1a;
    font-size: 1.2rem;
    font-weight: bold;
    box-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.color-schemes {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
    width: 100%;
}

.scheme-item {
    display: flex;
    gap: 0.5rem;
    background-color: rgba(255,255,255,0.1);
    padding: 1rem;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.scheme-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 15px rgba(255,255,255,0.2);
}

.scheme-color {
    width: 60px;
    height: 60px;
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
    transition: transform 0.3s ease;
}

.scheme-color:hover {
    transform: scale(1.1);
}

.tool-right {
    flex: 1;
}

.tool-right h2 {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    font-family: 'STZhongsong', serif;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
    color: #fff;
}

.tool-right p {
    font-size: 1.2rem;
    margin-bottom: 2.5rem;
    line-height: 1.8;
    opacity: 0.9;
    color: #fff;
}

.tool-cta {
    background-color: #fff;
    color: #8b1e1e;
    border: none;
    padding: 1.2rem 2.5rem;
    font-size: 1.2rem;
    font-weight: bold;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}

.tool-cta:hover {
    background-color: #f5f5dc;
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(255,255,255,0.3);
}

/* 时代卷轴交互区 */
.timeline-scroll {
    padding: 8rem 2rem;
    background-color: #f5f5dc;
    position: relative;
    z-index: 1;
}

.scroll-container {
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    overflow: hidden;
}

.timeline-axis {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 10px 0;
    position: relative;
    padding: 0 2rem;
}

.timeline-axis::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 2rem;
    right: 2rem;
    height: 2px;
    background-color: #8a1a1a;
    transform: translateY(-50%);
    z-index: 1;
}

.timeline-node {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: #8a1a1a;
    color: #fff;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    z-index: 2;
    font-family: 'STZhongsong', serif;
}

.timeline-node.active {
    transform: scale(1.2);
    box-shadow: 0 0 20px rgba(138,26,26,0.7);
    background-color: #6b1515;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(138,26,26,0.7);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(138,26,26,0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(138,26,26,0);
    }
}

.dynasty-content {
    position: relative;
    height: 550px;
    overflow: hidden;
    background-color: rgba(255, 248, 220, 0.5);
    border-radius: 8px;
    padding: 2rem;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.dynasty-item {
    position: absolute;
    top: 2rem;
    left: 2rem;
    right: 2rem;
    display: flex;
    gap: 2rem;
    align-items: center;
    opacity: 0;
    transform: translateX(100%);
    transition: all 0.8s ease;
}

.dynasty-item.active {
    opacity: 1;
    transform: translateX(0);
}

.dynasty-image {
    flex: 0 0 40%;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    animation: float 3s ease-in-out infinite;
    height: 450px;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.dynasty-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.dynasty-info {
    flex: 1;
    padding: 1rem;
}

.dynasty-info h3 {
    font-size: 3rem;
    margin-bottom: 0.5rem;
    color: #8a1a1a;
    font-family: 'STZhongsong', serif;
}

.dynasty-desc {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    color: #666;
    font-style: italic;
}

.dynasty-summary {
    font-size: 14px;
    color: #333;
    line-height: 1.6;
    margin-bottom: 2rem;
}

.explore-btn {
    display: inline-block;
    background-color: #8a1a1a;
    color: #fff;
    padding: 0.8rem 1.5rem;
    border-radius: 4px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
    margin-top: 1rem;
}

.explore-btn:hover {
    background-color: #6b1515;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(138,26,26,0.3);
}

.dynasty-colors {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.color-pill {
    padding: 0.5rem 1rem;
    border-radius: 20px;
    color: #fff;
    font-size: 0.9rem;
    font-weight: bold;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
}

.color-pill:hover {
    transform: scale(1.1);
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

.color-pill:hover::after {
    content: attr(data-rgb);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background-color: rgba(0,0,0,0.8);
    color: #fff;
    padding: 0.3rem 0.6rem;
    border-radius: 4px;
    font-size: 0.8rem;
    white-space: nowrap;
    margin-bottom: 5px;
}

.dynasty-features {
    display: flex;
    gap: 12px;
    margin-top: 1.5rem;
}

.feature-tag {
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    cursor: pointer;
    border: 1px solid #ddd;
    color: #fff;
}

.feature-tag:nth-child(1) {
    background-color: #8a1a1a;
}

.feature-tag:nth-child(2) {
    background-color: #E4A94B;
}

.feature-tag:nth-child(3) {
    background-color: #45B7D1;
}

.feature-tag:hover {
    transform: translateY(-2px);
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

.scroll-controls {
    position: absolute;
    top: 50%;
    left: 1rem;
    transform: translateY(-50%);
    z-index: 10;
}

.scroll-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: #8a1a1a;
    color: #fff;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.scroll-btn:hover {
    background-color: #6b1515;
    transform: scale(1.1);
    box-shadow: 0 4px 10px rgba(138,26,26,0.3);
}

.scroll-hint {
    text-align: center;
    margin-top: 1rem;
    color: #666;
    font-size: 0.9rem;
    font-style: italic;
}

/* 社区精选 */
.community-section {
    padding: 4rem 2rem;
    background-color: #faf0e6;
    position: relative;
    z-index: 1;
    min-height: 600px;
    margin: 40px 0;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

/* 顶部标题栏 */
.community-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto 3rem;
    gap: 1.5rem;
    text-align: center;
}

.header-left {
    flex: 1;
}

.section-title {
    font-size: 36px;
    font-family: 'Ma Shan Zheng', 'STZhongsong', serif;
    color: #9E2A2B;
    margin: 0 0 1rem 0;
    font-weight: 700;
}

.section-desc {
    font-size: 16px;
    color: #666666;
    line-height: 1.6;
    margin: 0;
    max-width: 800px;
    font-family: 'Microsoft YaHei', sans-serif;
    font-weight: 400;
}

.header-right {
    flex-shrink: 0;
}

.tab-group {
    display: flex;
    gap: 12px;
}

.tab-btn {
    padding: 0.5rem 1.5rem;
    background-color: #fff;
    border: 1px solid #9E2A2B;
    border-radius: 8px;
    cursor: pointer;
    transition: all 300ms ease;
    font-size: 0.9rem;
    color: #9E2A2B;
    font-family: 'Microsoft YaHei', sans-serif;
    font-weight: 400;
}

.tab-btn.active {
    background-color: #9E2A2B;
    color: #fff;
    border-color: #9E2A2B;
}

.tab-btn:hover {
    background-color: #f9f9f9;
}

.tab-btn.active:hover {
    background-color: #B83A34;
}

/* 中间核心内容区 */
.community-content {
    max-width: 1400px;
    margin: 80px auto 100px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.scroll-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background-color: #fff;
    color: #9E2A2B;
    border: 2px solid #9E2A2B;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 100;
    font-size: 1.4rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.scroll-btn:hover {
    background-color: #9E2A2B;
    color: #fff;
    transform: translateY(-50%) scale(1.15);
    box-shadow: 0 6px 20px rgba(158, 42, 43, 0.4);
}

.scroll-btn:active {
    transform: translateY(-50%) scale(0.95);
}

.prev-btn {
    left: 100px;
}

.next-btn {
    right: 230px;
}

.arrow-icon {
    font-weight: bold;
}

.card-grid {
    display: flex;
    gap: 24px;
    width: fit-content;
    transition: transform 0.3s ease;
}

@media (max-width: 1200px) {
    .card-grid {
        gap: 20px;
    }
}

@media (max-width: 900px) {
    .card-grid {
        gap: 16px;
    }
}

@media (max-width: 600px) {
    .card-grid {
        gap: 12px;
    }
}

.community-card {
    background-color: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: all 0.3s cubic-bezier(0.22, 1, 0.36, 1);
    display: flex;
    flex-direction: column;
    width: 280px;
    height: 180px;
}

.community-card.visible {
    animation: cardFadeIn 0.6s ease forwards;
}

@keyframes cardFadeIn {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.community-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.2);
}

.card-thumb {
    width: 100%;
    height: 200px;
    overflow: hidden;
    border-radius: 8px 8px 0 0;
}

.card-content {
    padding: 16px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 12px;
}

.author-info {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.author-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    overflow: hidden;
}

.author-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.author-details {
    flex: 1;
}

.card-title {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin: 0 0 4px 0;
    line-height: 1.3;
}

.author-name {
    font-size: 14px;
    color: #666;
    margin: 0;
}

.card-category {
    background-color: #f0f0f0;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    color: #666;
    white-space: nowrap;
}

.card-footer {
    margin-top: auto;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    padding-top: 12px;
    border-top: 1px solid #f0f0f0;
}

.like-count {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    color: #666;
}

.like-icon {
    color: #ff6b6b;
    font-size: 16px;
}

.card-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.community-card:hover .card-thumb img {
    transform: scale(1.03);
}

.card-content {
    padding: 40px 32px;
    background-color: #fff;
    border-radius: 0 0 12px 12px;
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 220px;
}

.card-title {
    font-size: 16px;
    font-weight: 600;
    color: #333333;
    margin: 0 0 12px 0;
    font-family: 'SimSun', serif;
    line-height: 1.4;
    word-wrap: break-word;
}

.card-author {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid #f0f0f0;
}

.author-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    position: relative;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.author-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.author-name {
    font-size: 14px;
    color: #666666;
    font-family: 'Microsoft YaHei', sans-serif;
    font-weight: 500;
    transition: color 0.3s ease;
}

.card-author:hover .author-name {
    color: #9E2A2B;
}

.card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
    padding-top: 12px;
}

.card-tag {
    padding: 0.3rem 1rem;
    background-color: #F8F5EE;
    border-radius: 16px;
    font-size: 12px;
    color: #9E2A2B;
    font-family: 'Microsoft YaHei', sans-serif;
    font-weight: 500;
    transition: all 0.3s ease;
    white-space: nowrap;
    min-width: 60px;
}

.card-tag:hover {
    background-color: #9E2A2B;
    color: #fff;
    transform: scale(1.05);
}

.card-like {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0.3rem 0.8rem;
    border-radius: 16px;
    background-color: #f9f9f9;
}

.card-like:hover {
    background-color: #fee;
    transform: scale(1.05);
}

.like-icon {
    font-size: 16px;
    transition: transform 0.3s ease;
}

.card-like:hover .like-icon {
    transform: scale(1.2);
}

.like-num {
    font-size: 13px;
    color: #666666;
    font-family: 'Microsoft YaHei', sans-serif;
    font-weight: 500;
}

/* 底部操作区 */
.community-footer {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 40px;
    max-width: 1920px;
    margin: 0 auto;
}

.pagination {
    display: flex;
    gap: 8px;
}

.pagination-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: #F5F5F5;
    cursor: pointer;
    transition: all 0.3s ease;
}

.pagination-dot.active {
    background-color: #9E2A2B;
    width: 12px;
}

.primary-btn {
    display: inline-block;
    padding: 0.75rem 2rem;
    background-color: #9E2A2B;
    color: #fff;
    text-decoration: none;
    border-radius: 8px;
    font-weight: bold;
    transition: all 0.3s ease;
    font-family: 'Microsoft YaHei', sans-serif;
    font-weight: 400;
    cursor: pointer;
}

.primary-btn:hover {
    background-color: #B83A34;
    transform: scale(1.05) translateY(-2px);
    box-shadow: 0 4px 15px rgba(158, 42, 43, 0.4);
}

.primary-btn:active {
    transform: scale(0.98);
}

/* 响应式设计 */
@media (max-width: 1920px) {
    .community-section {
        max-width: 1920px;
        margin-left: auto;
        margin-right: auto;
    }
    
    .card-grid {
        grid-template-columns: repeat(5, 1fr);
    }
}

@media (max-width: 1200px) {
    .community-section {
        padding: 8rem 40px;
    }
    
    .card-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .community-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1.5rem;
    }
    
    .header-right {
        width: 100%;
    }
    
    .tab-group {
        width: 100%;
        justify-content: space-between;
    }
    
    .tab-btn {
        flex: 1;
        text-align: center;
    }
}

@media (max-width: 768px) {
    .community-section {
        padding: 8rem 20px;
    }
    
    .card-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .section-title {
        font-size: 28px;
    }
    
    .community-footer {
        flex-direction: column;
        gap: 1rem;
    }
    
    .primary-btn {
        width: 100%;
        max-width: 300px;
        text-align: center;
    }
    
    .scroll-btn {
        width: 35px;
        height: 35px;
        font-size: 1rem;
    }
    
    .prev-btn {
        left: -17.5px;
    }
    
    .next-btn {
        right: -17.5px;
    }
}

@media (max-width: 480px) {
    .card-grid {
        grid-template-columns: 1fr;
        overflow-x: auto;
        padding-bottom: 1rem;
    }
    
    .community-card {
        min-width: 280px;
    }
}

/* 锦书AI小助手 */
.jinshu-helper {
    position: fixed;
    right: 20px;
    bottom: 30px;
    z-index: 9999;
    width: 400px;
    font-family: "Microsoft YaHei", "SimHei", serif;
}

/* 悬浮触发按钮 */
.jinshu-toggle {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background-color: #8b7d6b;
    color: #fff;
    text-align: center;
    line-height: 70px;
    font-size: 28px;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    border: none;
    margin-left: auto;
    transition: background 0.3s;
}

.jinshu-toggle:hover {
    background-color: #736653;
}

/* 聊天窗口（默认隐藏） */
.jinshu-window {
    display: none;
    background: #fff;
    border: 2px solid #c2b280;
    border-radius: 8px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
    overflow: hidden;
}

/* 标题栏 */
.jinshu-header {
    background: #8b7d6b;
    color: #fff;
    padding: 12px 15px;
    font-size: 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.jinshu-close {
    width: 24px;
    height: 24px;
    line-height: 24px;
    text-align: center;
    cursor: pointer;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.2);
}

.jinshu-close:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* 消息区域 */
.jinshu-messages {
    height: 450px;
    padding: 15px;
    overflow-y: auto;
    background: #faf6f0;
}

.jinshu-msg {
    margin-bottom: 12px;
    max-width: 85%;
    padding: 10px 14px;
    border-radius: 6px;
    line-height: 1.5;
    font-size: 15px;
}

.jinshu-msg.user {
    background: #e6d7b9;
    color: #333;
    margin-left: auto;
    border: 1px solid #d4c098;
}

.jinshu-msg.ai {
    background: #fff;
    color: #5a4b38;
    margin-right: auto;
    border: 1px solid #e0d2b8;
}

/* 加载提示 */
.jinshu-loading {
    text-align: center;
    color: #8b7d6b;
    font-style: italic;
    padding: 8px 0;
    font-size: 13px;
}

/* 输入区域 */
.jinshu-input-area {
    padding: 14px;
    border-top: 1px solid #c2b280;
    background: #f8f5f0;
    display: flex;
    gap: 10px;
}

#jinshu-input {
    flex: 1;
    padding: 12px 14px;
    border: 1px solid #c2b280;
    border-radius: 4px;
    font-size: 15px;
    outline: none;
}

#jinshu-send {
    padding: 12px 24px;
    background: #8b7d6b;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 15px;
}

#jinshu-send:hover {
    background: #736653;
}

/* 滚动条美化 */
.jinshu-messages::-webkit-scrollbar {
    width: 6px;
}

.jinshu-messages::-webkit-scrollbar-track {
    background: #f1e9d8;
}

.jinshu-messages::-webkit-scrollbar-thumb {
    background: #c2b280;
    border-radius: 3px;
}

/* 页脚 */
.footer {
    background-color: #8a1a1a;
    color: #fff;
    padding: 4rem 2rem 2rem;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('https://trae-api-cn.mchost.guru/api/ide/v1/text_to_image?prompt=traditional%20Chinese%20pattern%20subtle&image_size=landscape_16_9');
    background-size: cover;
    background-position: center;
    opacity: 0.1;
    z-index: 0;
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 4rem;
    max-width: 1200px;
    margin: 0 auto 3rem;
    position: relative;
    z-index: 1;
    padding: 0 2rem;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .footer-content {
        grid-template-columns: 1fr;
        gap: 3rem;
        text-align: center;
    }
    
    .footer-column.quick-links {
        text-align: center;
    }
    
    .footer-column.quick-links ul {
        text-align: center;
    }
}

.footer-column h3 {
    font-size: 1.6rem;
    margin-bottom: 2rem;
    font-family: 'Ma Shan Zheng', 'STZhongsong', serif;
    color: #f5f5dc;
}

/* 中国省份服饰地图 - 新布局 */
.province-map-section {
    padding: 4rem 2rem;
    background-color: #f5f5dc;
}

.map-timeline-container {
    max-width: 1200px;
    margin: 0 auto;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    overflow: hidden;
}

/* 时代旋钮图 */
.timeline-carousel {
    background-color: #8a1a1a;
    padding: 1.5rem;
    text-align: center;
}

.dynasty-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

.dynasty-btn {
    padding: 0.8rem 1.5rem;
    border: none;
    border-radius: 25px;
    background-color: #f5f5dc;
    color: #8a1a1a;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'STZhongsong', serif;
}

.dynasty-btn:hover {
    background-color: #e0d5c0;
    transform: translateY(-2px);
}

.dynasty-btn.active {
    background-color: #6b1515;
    color: #fff;
}

/* 内容网格 */
.content-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    padding: 2rem;
}

/* 左侧地图 */
.map-left {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.map-container {
    width: 100%;
    height: 400px;
    background-color: #f9f9f9;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid #ddd;
}

.map-left h3 {
    font-size: 1.2rem;
    color: #8a1a1a;
    font-family: 'STZhongsong', serif;
    text-align: center;
}

/* 右侧九宫格 */
.grid-right {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

.grid-item {
    background-color: #f9f9f9;
    border-radius: 8px;
    padding: 1.5rem;
    border: 1px solid #ddd;
    transition: all 0.3s ease;
    cursor: pointer;
}

.grid-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    border-color: #8a1a1a;
}

.grid-item h4 {
    font-size: 1rem;
    color: #8a1a1a;
    margin-bottom: 0.5rem;
    font-family: 'STZhongsong', serif;
}

.grid-item p {
    font-size: 0.9rem;
    color: #666;
    line-height: 1.4;
}

/* 了解更多格子 */
.grid-item.know-more {
    background-color: #8a1a1a;
    color: #fff;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.grid-item.know-more h4 {
    color: #fff;
    margin-bottom: 1rem;
}

.know-more-btn {
    background-color: #fff;
    color: #8a1a1a;
    padding: 0.8rem 1.5rem;
    border-radius: 25px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
}

.know-more-btn:hover {
    background-color: #f5f5dc;
    transform: scale(1.05);
}

/* 响应式设计 */
@media (max-width: 768px) {
    .content-grid {
        grid-template-columns: 1fr;
    }
    
    .grid-right {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .map-container {
        height: 300px;
    }
}

@media (max-width: 480px) {
    .grid-right {
        grid-template-columns: 1fr;
    }
    
    .dynasty-buttons {
        flex-wrap: wrap;
    }
    
    .dynasty-btn {
        padding: 0.6rem 1.2rem;
        font-size: 1rem;
    }
}

.footer-column.quick-links {
    text-align: center;
}

.footer-column.quick-links ul {
    text-align: center;
}

.footer-column p {
    line-height: 1.7;
    margin-bottom: 1.8rem;
    opacity: 0.9;
    font-size: 1rem;
}

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

.footer-column ul li {
    margin-bottom: 1rem;
}

.footer-column ul li a {
    color: #fff;
    text-decoration: none;
    transition: all 0.3s ease;
    opacity: 0.9;
    display: inline-block;
    font-size: 1rem;
    position: relative;
}

.footer-column ul li a:hover {
    color: #f5f5dc;
    transform: translateY(-2px);
}

.footer-column ul li a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: #f5f5dc;
    transition: width 0.3s ease;
}

.footer-column ul li a:hover::after {
    width: 100%;
}

.footer-column.quick-links ul li a::after {
    left: 0;
    right: auto;
}

.subscribe-form {
    display: flex;
    gap: 0.8rem;
    position: relative;
    margin-top: 1.5rem;
    align-items: center;
}

.subscribe-form input {
    flex: 1;
    padding: 0.9rem 1.2rem;
    border: 2px solid rgba(245, 245, 220, 0.3);
    border-radius: 6px;
    font-size: 1rem;
    outline: none;
    transition: all 0.3s ease;
    background-color: rgba(255, 255, 255, 0.1);
    color: #fff;
}

.subscribe-form input::placeholder {
    color: rgba(245, 245, 220, 0.6);
}

.subscribe-form input:focus {
    box-shadow: 0 0 0 2px rgba(245, 245, 220, 0.5);
    border-color: #f5f5dc;
}

.subscribe-btn {
    background-color: #f5f5dc;
    color: #8a1a1a;
    border: none;
    padding: 0.9rem 1.8rem;
    border-radius: 6px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.subscribe-btn:hover {
    background-color: #fff;
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(245, 245, 220, 0.4);
}

.subscribe-success {
    position: absolute;
    bottom: -30px;
    left: 0;
    color: #f5f5dc;
    font-size: 0.9rem;
    font-weight: bold;
    animation: fadeIn 0.5s ease forwards;
}

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

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.2);
    padding-top: 2rem;
    text-align: center;
    position: relative;
    z-index: 1;
}

.decorative-border {
    height: 15px;
    background-image: url('https://trae-api-cn.mchost.guru/api/ide/v1/text_to_image?prompt=traditional%20Chinese%20pattern%20border%20ornamental&image_size=landscape_16_9');
    background-size: repeat-x;
    background-position: center;
    margin-bottom: 1rem;
    opacity: 0.8;
}

.copyright {
    font-size: 0.9rem;
    opacity: 0.8;
}

/* 模态框样式 */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.4);
}

.modal-content {
    background-color: #fefefe;
    margin: 10% auto;
    padding: 20px;
    border: 1px solid #888;
    width: 80%;
    max-width: 700px;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}

.modal-header h2 {
    color: #8a1a1a;
    font-family: 'STZhongsong', serif;
}

.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.close:hover {
    color: #8a1a1a;
}

/* 色彩详情模态框 */
.color-detail {
    display: flex;
    gap: 2rem;
}

.detail-image {
    flex: 0 0 50%;
    border-radius: 8px;
    overflow: hidden;
}

.detail-image img {
    width: 100%;
    height: 300px;
    object-fit: cover;
}

.detail-info {
    flex: 1;
}

.color-preview {
    width: 100px;
    height: 100px;
    border-radius: 8px;
    margin-bottom: 1rem;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

.detail-info h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: #8a1a1a;
    font-family: 'STZhongsong', serif;
}

.detail-info p {
    margin-bottom: 1rem;
    line-height: 1.6;
}

.detail-cta {
    background-color: #8a1a1a;
    color: #fff;
    border: none;
    padding: 0.8rem 1.5rem;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.detail-cta:hover {
    background-color: #6b1515;
    transform: translateY(-2px);
}

/* 表单样式 */
.form-container {
    position: relative;
}

.form-tab {
    display: inline-block;
    padding: 10px 20px;
    cursor: pointer;
    border-bottom: 2px solid #ddd;
    margin-right: 20px;
    font-weight: bold;
    color: #666;
    transition: all 0.3s ease;
}

.form-tab.active {
    border-bottom-color: #8a1a1a;
    color: #8a1a1a;
}

.form-content {
    margin-top: 20px;
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
    color: #333;
}

.form-group input {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
}

.password-input {
    position: relative;
}

.eye-icon {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
}

.login-btn, .register-btn {
    width: 100%;
    padding: 10px;
    background-color: #8a1a1a;
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 10px;
}

.login-btn:hover, .register-btn:hover {
    background-color: #6b1515;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(138,26,26,0.3);
}

/* 个人用户中心页面样式 */
.profile-section {
    padding: 8rem 2rem 4rem;
    background-color: #f5f5dc;
    min-height: 100vh;
}

.profile-container {
    max-width: 1000px;
    margin: 0 auto;
    display: grid;
    gap: 2rem;
}

/* 用户信息卡 */
.user-info-card {
    background-color: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    overflow: hidden;
}

.card-header {
    background-color: #8a1a1a;
    padding: 1rem;
}

.decorative-border {
    height: 10px;
    background-image: url('https://trae-api-cn.mchost.guru/api/ide/v1/text_to_image?prompt=traditional%20Chinese%20pattern%20border%20ornamental&image_size=landscape_16_9');
    background-size: repeat-x;
    background-position: center;
}

.user-info-content {
    padding: 2rem;
    display: flex;
    align-items: center;
    gap: 2rem;
}

.avatar-section {
    flex: 0 0 120px;
}

.user-avatar-large {
    position: relative;
    width: 120px;
    height: 120px;
    border-radius: 50%;
    overflow: hidden;
    border: 4px solid #f5f5dc;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.user-avatar-large img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.avatar-edit-btn {
    position: absolute;
    bottom: 0;
    right: 0;
    background-color: #8a1a1a;
    color: #fff;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.avatar-edit-btn:hover {
    background-color: #6b1515;
    transform: scale(1.1);
}

.user-details {
    flex: 1;
}

.user-name {
    font-size: 1.8rem;
    font-weight: bold;
    color: #333;
    margin-bottom: 0.5rem;
    font-family: 'STZhongsong', serif;
}

.user-id, .register-date {
    color: #666;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.user-badge {
    margin: 1rem 0;
}

.badge {
    display: inline-block;
    background-color: #8a1a1a;
    color: #fff;
    padding: 0.3rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: bold;
}

.edit-profile-btn {
    background-color: #8a1a1a;
    color: #fff;
    border: none;
    padding: 0.8rem 2rem;
    border-radius: 4px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
}

.edit-profile-btn:hover {
    background-color: #6b1515;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(138,26,26,0.3);
}

/* 数据统计区 */
.stats-section {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.stat-card {
    background-color: #fff;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    display: flex;
    align-items: center;
    gap: 1.5rem;
    transition: all 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.stat-icon {
    font-size: 2rem;
    width: 60px;
    height: 60px;
    background-color: #f5f5dc;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.stat-content {
    flex: 1;
}

.stat-number {
    font-size: 1.5rem;
    font-weight: bold;
    color: #333;
    margin-bottom: 0.3rem;
}

.stat-label {
    color: #666;
    font-size: 0.9rem;
}

/* 功能菜单区 */
.menu-section {
    background-color: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    overflow: hidden;
}

.menu-card {
    padding: 1rem 0;
}

.menu-item {
    display: flex;
    align-items: center;
    padding: 1.5rem 2rem;
    cursor: pointer;
    transition: all 0.3s ease;
    border-bottom: 1px solid #f0f0f0;
}

.menu-item:last-child {
    border-bottom: none;
}

.menu-item:hover {
    background-color: #faf0e6;
}

.menu-icon {
    font-size: 1.2rem;
    margin-right: 1rem;
    width: 20px;
    text-align: center;
}

.menu-text {
    flex: 1;
    font-size: 1rem;
    color: #333;
}

.menu-arrow {
    color: #999;
    font-size: 0.8rem;
}

/* 底部操作区 */
.bottom-section {
    display: flex;
    justify-content: center;
    padding: 2rem 0;
}

.logout-btn {
    background-color: #e74c3c;
    color: #fff;
    border: none;
    padding: 1rem 3rem;
    border-radius: 4px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
}

.logout-btn:hover {
    background-color: #c0392b;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(231,76,60,0.3);
}

/* 头像上传模态框样式 */
.avatar-upload-section {
    padding: 1rem 0;
}

.current-avatar {
    text-align: center;
    margin-bottom: 2rem;
}

.current-avatar img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    border: 4px solid #f5f5dc;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.upload-options {
    text-align: center;
    margin-bottom: 2rem;
}

.upload-btn {
    display: inline-block;
    background-color: #8a1a1a;
    color: #fff;
    padding: 0.8rem 2rem;
    border-radius: 4px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: 1rem;
}

.upload-btn:hover {
    background-color: #6b1515;
    transform: translateY(-2px);
}

.upload-btn input {
    display: none;
}

.upload-hint {
    color: #666;
    font-size: 0.9rem;
}

.avatar-presets {
    margin-top: 2rem;
}

.avatar-presets h3 {
    margin-bottom: 1rem;
    color: #333;
}

.preset-avatars {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
}

.preset-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background-size: cover;
    background-position: center;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 3px solid transparent;
}

.preset-avatar:hover {
    border-color: #8a1a1a;
    transform: scale(1.1);
}

/* 编辑资料模态框样式 */
.gender-options {
    display: flex;
    gap: 1.5rem;
    margin-top: 0.5rem;
}

.gender-options label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: normal;
    cursor: pointer;
}

/* ==================== 中国省份服饰地图 ==================== */
.province-map-section {
    padding: 8rem 2rem;
    background-color: #f5f5dc;
    position: relative;
    z-index: 1;
}

.map-container {
    max-width: 1200px;
    margin: 0 auto;
    height: 600px;
    background-color: rgba(255, 248, 220, 0.5);
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

/* 响应式设计 */
@media (max-width: 768px) {
    .navbar {
        flex-direction: column;
        gap: 1rem;
        padding: 1rem;
    }

    .menu {
        gap: 1rem;
        flex-wrap: wrap;
        justify-content: center;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1.2rem;
    }

    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }

    .narrative-item {
        flex-direction: column;
        text-align: center;
    }

    .narrative-item.reverse {
        flex-direction: column;
    }

    .narrative-image {
        flex: 0 0 100%;
    }

    .tool-container {
        flex-direction: column;
        text-align: center;
    }

    .dynasty-item {
        flex-direction: column;
        text-align: center;
    }

    .dynasty-image {
        flex: 0 0 100%;
    }

    .section-header {
        flex-direction: column;
        gap: 1rem;
        align-items: flex-start;
    }

    .community-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }

    .color-detail {
        flex-direction: column;
    }

    .detail-image {
        flex: 0 0 100%;
    }

    /* 省份地图响应式 */
    .province-map-section {
        padding: 4rem 1rem;
    }

    .map-container {
        height: 400px;
    }

}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .section-intro {
        font-size: 1rem;
        padding: 0 1rem;
    }

    .color-wheel {
        width: 250px;
        height: 250px;
    }

    .wheel-center {
        width: 80px;
        height: 80px;
    }

    .dynasty-image img {
        height: 300px;
    }

    .footer-content {
        grid-template-columns: 1fr;
    }

    .subscribe-form {
        flex-direction: column;
    }

    /* 个人用户中心响应式设计 */
    .profile-section {
        padding: 6rem 1rem 3rem;
    }

    .user-info-content {
        flex-direction: column;
        text-align: center;
        padding: 1.5rem;
    }

    .avatar-section {
        flex: 0 0 auto;
    }

    .user-avatar-large {
        width: 100px;
        height: 100px;
    }

    .user-name {
        font-size: 1.5rem;
    }

    .stats-section {
        grid-template-columns: 1fr;
    }

    .stat-card {
        padding: 1.5rem;
    }

    .menu-item {
        padding: 1.2rem 1.5rem;
    }

    .logout-btn {
        padding: 0.8rem 2rem;
    }

    .preset-avatars {
        grid-template-columns: repeat(2, 1fr);
    }

    .gender-options {
        flex-direction: column;
        gap: 1rem;
    }
}

/* 色彩灵感画廊 */
.color-gallery-page {
    min-height: 100vh;
    background-color: #000;
    position: relative;
}

/* 背景视频 */
.gallery-bg-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.gallery-bg-video.loaded {
    opacity: 1;
}

/* 页面内容 */
.gallery-page-content {
    position: relative;
    z-index: 1;
}

/* 标题区 */
.gallery-page-header {
    text-align: center;
    padding: 4rem 2rem 2rem;
    color: #fff;
}

.gallery-page-title {
    font-size: 48px;
    font-family: 'Ma Shan Zheng', 'STZhongsong', serif;
    color: #8B1E1E;
    margin-top: 40px;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.decorative-line {
    width: 100px;
    height: 2px;
    background-color: #8B1E1E;
    margin: 0 auto 1.5rem;
}

.gallery-page-subtitle {
    font-size: 18px;
    color: #fff;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

/* 分类卡片容器 */
.category-container {
    display: flex;
    justify-content: center;
    gap: 24px;
    padding: 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

/* 分类卡片 */
.category-card {
    flex: 0 0 18%;
    height: 70vh;
    border-radius: 12px;
    overflow: visible;
    position: relative;
    cursor: pointer;
    transition: flex 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    will-change: flex;
    margin-bottom: 120px;
}

.category-card:hover {
    flex: 0 0 28%;
}

.category-card:hover + .category-card,
.category-card:hover ~ .category-card {
    flex: 0 0 14%;
}

.category-image {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    transition: transform 0.6s ease;
    border-radius: 12px;
    overflow: hidden;
}

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

.category-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.4);
    transition: all 0.4s ease;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    border-radius: 12px;
}

.category-card:hover .category-overlay {
    background-color: rgba(0,0,0,0.2);
}

.category-name {
    writing-mode: vertical-rl;
    font-size: 36px;
    font-family: 'Ma Shan Zheng', 'STZhongsong', serif;
    color: #fff;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
    opacity: 0;
    animation: fadeInUp 0.8s ease forwards;
    animation-delay: calc(0.1s * var(--card-index, 1));
}

.category-en {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #fff;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
    opacity: 0;
    animation: fadeInUp 0.8s ease forwards;
    animation-delay: calc(0.1s * var(--card-index, 1) + 0.3s);
}

.category-color-bar {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 20px;
    opacity: 0;
    transition: all 0.4s ease;
    border-radius: 0 0 12px 12px;
}

.category-card:hover .category-color-bar {
    opacity: 1;
}

/* 色彩介绍区域 */
.category-desc {
    position: absolute;
    bottom: -100px;
    left: 0;
    width: 100%;
    padding: 15px;
    background: rgba(0, 0, 0, 0.7);
    border-radius: 0 0 12px 12px;
    text-align: center;
    opacity: 0;
    transition: all 0.4s ease;
}

.category-card:hover .category-desc {
    opacity: 1;
}

.desc-text {
    font-size: 18px;
    color: #f5f5dc;
    margin-bottom: 8px;
    line-height: 1.4;
    font-family: 'STZhongsong', serif;
}

.desc-poem {
    font-size: 17px;
    color: #E4A94B;
    font-style: italic;
    font-family: 'Ma Shan Zheng', cursive;
    letter-spacing: 1px;
}

/* 动画效果 */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 页面加载动画 */
.category-card {
    opacity: 0;
    animation: fadeInUp 0.8s ease forwards;
    animation-delay: calc(0.1s * var(--card-index, 1));
}

/* 响应式设计 */
@media (max-width: 1024px) {
    .category-container {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        grid-template-rows: repeat(2, 1fr);
        gap: 24px;
    }

    .category-card {
        flex: none;
        height: 40vh;
        margin-bottom: 100px;
    }

    .category-card:hover {
        flex: none;
        transform: scale(1.05);
    }

    .category-card:hover + .category-card,
    .category-card:hover ~ .category-card {
        flex: none;
        transform: none;
    }

    .category-desc {
        bottom: -90px;
    }
}

@media (max-width: 768px) {
    .category-container {
        display: flex;
        flex-direction: column;
        gap: 100px;
    }

    .category-card {
        flex: none;
        height: 30vh;
        width: 100%;
        margin-bottom: 0;
    }

    .category-name {
        writing-mode: horizontal-tb;
        font-size: 24px;
    }

    .category-desc {
        bottom: -80px;
        padding: 12px;
    }

    .desc-text {
        font-size: 17px;
    }

    .desc-poem {
        font-size: 16px;
    }
}

/* 返回首页按钮 */
.back-to-home {
    position: absolute;
    top: 100px;
    left: 2rem;
    background-color: rgba(139,30,30,0.8);
    color: #fff;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
    z-index: 10;
}

.back-to-home:hover {
    background-color: rgba(139,30,30,1);
    transform: translateY(-2px);
}