@import url('https://fonts.googleapis.com/css2?family=Ma+Shan+Zheng&family=Noto+Serif+SC:wght@400;700&family=ZCOOL+XiaoWei&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #2c7a7b;
    --secondary-color: #38b2ac;
    --accent-color: #81e6d9;
    --text-color: #2d3748;
    --light-bg: #f7fafc;
    --white: #ffffff;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --gold-accent: #D4AF37;
    --dark-teal: #1a5653;
}

body {
    font-family: 'Microsoft YaHei', 'PingFang SC', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--light-bg);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

header {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: 'Ma Shan Zheng', cursive;
    font-size: 1.8rem;
    font-weight: normal;
    display: flex;
    align-items: center;
    color: white;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
    letter-spacing: 0.1rem;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-links a {
    color: white;
    text-decoration: none;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    transition: background-color 0.3s;
}

.nav-links a:hover,
.nav-links a.active {
    background-color: rgba(255, 255, 255, 0.2);
}

.search-box {
    position: relative;
}

.search-box input {
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 20px;
    font-size: 0.9rem;
    width: 200px;
    background: rgba(255, 255, 255, 0.9);
    color: var(--text-color);
    outline: none;
    transition: all 0.3s;
}

.search-box input:focus {
    background: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.search-results {
    position: absolute;
    top: 100%;
    right: 0;
    width: 320px;
    max-height: 400px;
    overflow-y: auto;
    background: white;
    border-radius: 8px;
    box-shadow: var(--shadow-lg);
    margin-top: 0.5rem;
    display: none;
    z-index: 1001;
}

.search-result-item {
    padding: 0.8rem 1rem;
    cursor: pointer;
    border-bottom: 1px solid #f0f0f0;
    transition: background-color 0.2s;
}

.search-result-item:hover {
    background-color: #f8f9fa;
}

.search-result-item:last-child {
    border-bottom: none;
}

.search-result-name {
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 0.2rem;
}

.search-result-info {
    font-size: 0.85rem;
    color: #666;
}

.search-no-results {
    padding: 1rem;
    text-align: center;
    color: #999;
}

.hero-poster {
    min-height: 100vh;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.carousel-slides {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1s ease-in-out, transform 1s ease-in-out;
    transform: translateX(100%);
}

.carousel-slide.active {
    opacity: 1;
    transform: translateX(0);
}

.carousel-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(26, 86, 83, 0.85) 0%, rgba(44, 122, 123, 0.8) 50%, rgba(56, 178, 172, 0.85) 100%);
    pointer-events: none;
}

.carousel-indicators {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 12px;
    z-index: 10;
}

.indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.5);
    background: transparent;
    cursor: pointer;
    transition: all 0.3s ease;
}

.indicator:hover {
    border-color: white;
    background: rgba(255, 255, 255, 0.3);
}

.indicator.active {
    background: var(--gold-accent);
    border-color: var(--gold-accent);
}

.carousel-prev,
.carousel-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.5);
    background: rgba(255, 255, 255, 0.1);
    color: white;
    font-size: 24px;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 25;
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel-prev {
    left: 20px;
}

.carousel-next {
    right: 20px;
}

.carousel-prev:hover,
.carousel-next:hover {
    background: rgba(255, 255, 255, 0.3);
    border-color: white;
    transform: translateY(-50%) scale(1.1);
}

.hero-poster::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('https://trae-api-cn.mchost.guru/api/ide/v1/text_to_image?prompt=中国传统云纹纹理，简约设计，透明PNG素材&image_size=landscape_16_9') center/cover;
    opacity: 0.1;
    pointer-events: none;
    z-index: 1;
}

.hero-poster::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 50%);
    animation: rotate 30s linear infinite;
    z-index: 1;
}

.poster-content {
    position: relative;
    z-index: 15;
    text-align: center;
    color: white;
    padding: 2rem;
}

.poster-badge {
    display: inline-block;
    padding: 0.8rem 2rem;
    background: linear-gradient(135deg, var(--gold-accent), #F5D78E);
    color: var(--dark-teal);
    font-family: 'ZCOOL XiaoWei', serif;
    font-size: 1.2rem;
    border-radius: 50px;
    margin-bottom: 2rem;
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.4);
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.poster-title-cn {
    font-family: 'STXingkai', 'KaiTi', 'Ma Shan Zheng', cursive;
    font-size: 8rem;
    margin-bottom: 1.5rem;
    letter-spacing: 1rem;
    background: linear-gradient(180deg, #FFFFFF 0%, #E0F7FA 50%, #FFFFFF 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.poster-title-sub {
    font-family: 'Noto Serif SC', serif;
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    font-weight: 700;
    letter-spacing: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.poster-divider {
    width: 200px;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--gold-accent), transparent);
    margin: 2rem auto;
}

.poster-description {
    font-family: 'Noto Serif SC', serif;
    font-size: 1.3rem;
    max-width: 700px;
    margin: 0 auto 3rem;
    line-height: 2;
    opacity: 0.95;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
}

.poster-stats {
    display: flex;
    justify-content: center;
    gap: 4rem;
    margin: 3rem 0;
    flex-wrap: wrap;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-family: 'Ma Shan Zheng', cursive;
    font-size: 4rem;
    color: var(--gold-accent);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.stat-label {
    font-family: 'Noto Serif SC', serif;
    font-size: 1.1rem;
    margin-top: 0.5rem;
    opacity: 0.9;
}

.poster-cta {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 3rem;
}

.poster-btn {
    display: inline-block;
    padding: 1rem 2.5rem;
    font-family: 'Noto Serif SC', serif;
    font-size: 1.1rem;
    font-weight: 700;
    text-decoration: none;
    border-radius: 50px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.poster-btn-primary {
    background: linear-gradient(135deg, var(--gold-accent), #F5D78E);
    color: var(--dark-teal);
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.4);
}

.poster-btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(212, 175, 55, 0.5);
}

.poster-btn-secondary {
    background: rgba(255, 255, 255, 0.15);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(10px);
}

.poster-btn-secondary:hover {
    background: rgba(255, 255, 255, 0.25);
    border-color: white;
    transform: translateY(-3px);
}

.poster-footer {
    margin-top: 4rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.poster-footer-text {
    font-family: 'Noto Serif SC', serif;
    font-size: 0.9rem;
    opacity: 0.7;
}

.traditional-decoration {
    position: absolute;
    font-size: 8rem;
    opacity: 0.1;
    color: white;
}

.decoration-top-left {
    top: 5%;
    left: 5%;
}

.decoration-bottom-right {
    bottom: 5%;
    right: 5%;
}

section {
    padding: 4rem 0;
}

.section-title {
    text-align: center;
    margin-bottom: 3rem;
    font-size: 2rem;
    color: var(--primary-color);
}

.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
}

.card {
    background: var(--white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform 0.3s, box-shadow 0.3s;
    cursor: pointer;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.card-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s ease-in-out infinite;
}

@keyframes loading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

.card-img[src*="via.placeholder.com"],
.card-img[src^="data:image/svg+xml"] {
    animation: none;
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
}

.card-content {
    padding: 1.5rem;
}

.card-title {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    color: var(--primary-color);
}

.card-category {
    display: inline-block;
    padding: 4px 12px;
    background-color: var(--accent-color);
    color: var(--primary-color);
    border-radius: 20px;
    font-size: 0.85rem;
    margin-bottom: 0.5rem;
}

footer {
    background-color: var(--primary-color);
    color: white;
    padding: 3rem 0 1.5rem;
    margin-top: 3rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.footer-section h4 {
    font-family: 'Ma Shan Zheng', cursive;
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: var(--gold-accent);
}

.footer-section p {
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    line-height: 1.8;
}

.footer-section ul {
    list-style: none;
    padding: 0;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section ul li a {
    color: white;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s;
}

.footer-section ul li a:hover {
    color: var(--gold-accent);
}

.footer-bottom {
    text-align: center;
    font-size: 0.9rem;
    opacity: 0.8;
}

.region-grid,
.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1.5rem;
}

.region-card,
.category-card {
    background: var(--white);
    border-radius: 12px;
    padding: 0;
    text-align: center;
    box-shadow: var(--shadow);
    transition: transform 0.3s;
    cursor: pointer;
    overflow: hidden;
}

.region-card:hover,
.category-card:hover {
    transform: translateY(-5px);
}

.region-carousel {
    position: relative;
    width: 100%;
    height: 180px;
    overflow: hidden;
}

.region-slides {
    position: relative;
    width: 100%;
    height: 100%;
}

.region-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
}

.region-slide.active {
    opacity: 1;
}

.region-indicators {
    position: absolute;
    bottom: 8px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 6px;
    z-index: 10;
}

.region-indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s;
}

.region-indicator.active {
    background: var(--gold-accent);
    transform: scale(1.2);
}

.region-title {
    font-family: 'Ma Shan Zheng', cursive;
    font-size: 1.8rem;
    margin: 1rem 0 0.5rem;
    color: var(--primary-color);
    letter-spacing: 0.2rem;
}

.region-count {
    font-size: 0.9rem;
    color: #666;
    padding-bottom: 1rem !important;
    margin: 0;
}

.region-icon,
.category-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.region-card h3,
.region-card p,
.category-card h3,
.category-card p {
    padding: 0 1rem;
}

.category-card h3,
.category-title {
    margin-top: 1rem;
    color: var(--primary-color);
    font-family: 'Ma Shan Zheng', cursive;
    font-size: 1.5rem;
}

.detail-container {
    background: var(--white);
    border-radius: 12px;
    padding: 3rem;
    box-shadow: var(--shadow);
    margin-top: 2rem;
}

.detail-header {
    display: flex;
    gap: 3rem;
    margin-bottom: 2rem;
}

.detail-img {
    width: 400px;
    height: 300px;
    object-fit: cover;
    border-radius: 12px;
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s ease-in-out infinite;
}

.detail-img[src*="via.placeholder.com"],
.detail-img[src^="data:image/svg+xml"] {
    animation: none;
    background: transparent;
}

.detail-info h1 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.breadcrumb {
    margin: 1rem 0;
    color: #718096;
}

.breadcrumb a {
    color: var(--secondary-color);
    text-decoration: none;
}

.about-content {
    background: var(--white);
    border-radius: 12px;
    padding: 3rem;
    box-shadow: var(--shadow);
}

@media (max-width: 768px) {
    .nav-links {
        flex-wrap: wrap;
        gap: 1rem;
    }

    .poster-title-cn {
        font-size: 3rem;
        letter-spacing: 0.2rem;
    }

    .poster-title-sub {
        font-size: 1.5rem;
        letter-spacing: 0.5rem;
    }

    .poster-description {
        font-size: 1rem;
        padding: 0 1rem;
    }

    .poster-stats {
        gap: 2rem;
    }

    .stat-number {
        font-size: 3rem;
    }

    .poster-cta {
        flex-direction: column;
        align-items: center;
    }

    .poster-btn {
        width: 80%;
        text-align: center;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .hero p {
        font-size: 1rem;
    }

    .detail-header {
        flex-direction: column;
    }

    .detail-img {
        width: 100%;
        height: 250px;
    }

    .traditional-decoration {
        font-size: 4rem;
    }

    .carousel-prev,
    .carousel-next {
        width: 40px;
        height: 40px;
        font-size: 20px;
    }

    .carousel-prev {
        left: 10px;
    }

    .carousel-next {
        right: 10px;
    }

    .carousel-indicators {
        bottom: 20px;
    }

    .indicator {
        width: 10px;
        height: 10px;
    }

    .search-box {
        width: 100%;
        order: -1;
        margin-bottom: 0.5rem;
    }

    .search-box input {
        width: 100%;
    }

    .search-box input:focus {
        width: 100%;
    }

    .search-results {
        width: 100%;
        right: 0;
    }

    nav {
        flex-wrap: wrap;
    }
}
