:root {
    --primary-color: #8B4513;
    --secondary-color: #C67B4E;
    --accent-color: #B84A3C;
    --gold-color: #D4AF37;
    --dark-bg: #2C1810;
    --light-bg: #F5EDE0;
    --text-primary: #3D2914;
    --text-secondary: #6B5344;
    --font-serif: 'Noto Serif SC', 'Songti SC', serif;
    --font-sans: 'Noto Sans SC', 'PingFang SC', sans-serif;
    
    --ninigou-black: #1A1A1A;
    --ninigou-red: #C41E3A;
    --ninigou-cyan: #2E8B8B;
    --ninigou-white: #F5F0E6;
    --ninigou-yellow: #E6A817;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-sans);
    color: var(--text-primary);
    background-color: var(--light-bg);
    background-image: url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.03'/%3E%3C/svg%3E");
    overflow-x: hidden;
}

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(44, 24, 16, 0.95);
    backdrop-filter: blur(10px);
    transition: all 0.4s ease;
    box-shadow: 0 2px 20px rgba(44, 24, 16, 0.3);
}

.navbar.scrolled {
    background: rgba(139, 69, 19, 0.98);
    box-shadow: 0 4px 30px rgba(44, 24, 16, 0.4);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-icon {
    font-size: 28px;
}

.logo-text {
    font-family: var(--font-serif);
    font-size: 22px;
    font-weight: 600;
    color: var(--gold-color);
    letter-spacing: 2px;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav-menu a {
    text-decoration: none;
    color: #fff;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
    padding: 5px 0;
}

.nav-menu a:hover,
.nav-menu a.active {
    color: var(--gold-color);
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--ninigou-red), var(--gold-color));
    transition: width 0.3s ease;
}

.nav-menu a:hover::after,
.nav-menu a.active::after {
    width: 100%;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
}

.nav-toggle span {
    width: 25px;
    height: 2px;
    background: #fff;
    transition: all 0.3s ease;
}

.hero {
    min-height: 100vh;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: linear-gradient(180deg, rgba(44, 24, 16, 0.7) 0%, rgba(44, 24, 16, 0.5) 50%, rgba(44, 24, 16, 0.8) 100%),
                      url('https://neeko-copilot.bytedance.net/api/text_to_image?prompt=traditional%20Chinese%20Ninigou%20clay%20sculptures%20black%20background%20red%20yellow%20white%20blue%20patterns%20ancient%20primitive%20style%20documentary%20photography&image_size=landscape_16_9');
    background-size: cover;
    background-position: center;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, 
        rgba(44, 24, 16, 0.6) 0%, 
        rgba(44, 24, 16, 0.4) 40%,
        rgba(44, 24, 16, 0.6) 100%);
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 0 20px;
}

.hero-text {
    animation: fadeInUp 1s ease forwards;
}

.hero-subtitle {
    font-family: var(--font-serif);
    font-size: 18px;
    color: var(--ninigou-yellow);
    margin-bottom: 20px;
    letter-spacing: 8px;
    text-transform: uppercase;
}

.hero-title {
    font-family: var(--font-serif);
    font-size: 56px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 20px;
    letter-spacing: 6px;
    line-height: 1.3;
    text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.3);
}

.hero-desc {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 40px;
    letter-spacing: 3px;
}

.hero-tagline {
    font-family: var(--font-serif);
    font-size: 20px;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 15px;
    letter-spacing: 4px;
}

.hero-dynamic-subtitle {
    height: 40px;
    margin-bottom: 40px;
    overflow: hidden;
    position: relative;
}

.subtitle-item {
    display: none;
    font-family: var(--font-serif);
    font-size: 24px;
    color: var(--ninigou-yellow);
    letter-spacing: 6px;
    animation: slideUp 0.6s ease forwards;
}

.subtitle-item.active {
    display: block;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-btn {
    background: linear-gradient(135deg, var(--ninigou-red), var(--accent-color));
    color: #fff;
    border: none;
    padding: 15px 45px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(196, 30, 58, 0.35);
}

.hero-btn:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 35px rgba(196, 30, 58, 0.5);
}

.hero-carousel {
    margin-top: 70px;
    animation: fadeInUp 1s ease 0.5s forwards;
    opacity: 0;
}

.carousel-item {
    display: none;
    color: #fff;
    transition: all 0.5s ease;
}

.carousel-item.active {
    display: block;
    animation: fadeIn 0.5s ease;
}

.carousel-item span {
    display: block;
    font-family: var(--font-serif);
    font-size: 30px;
    margin-bottom: 12px;
    color: var(--ninigou-yellow);
    text-shadow: 1px 1px 5px rgba(0, 0, 0, 0.3);
}

.carousel-item p {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.7);
}

.hero-scroll {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    cursor: pointer;
    color: #fff;
    text-align: center;
    animation: bounce 2s infinite;
}

.hero-scroll span {
    font-size: 14px;
    display: block;
    margin-bottom: 10px;
    color: var(--ninigou-yellow);
}

.scroll-arrow {
    width: 30px;
    height: 50px;
    border: 2px solid var(--ninigou-yellow);
    border-radius: 25px;
    position: relative;
    margin: 0 auto;
}

.scroll-arrow::after {
    content: '';
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    width: 6px;
    height: 6px;
    background: var(--ninigou-yellow);
    border-radius: 50%;
    animation: scrollDown 1.5s infinite;
}

.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-title {
    font-family: var(--font-serif);
    font-size: 36px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 15px;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -12px;
    left: 50%;
    transform: translateX(-50%);
    width: 70px;
    height: 3px;
    background: linear-gradient(90deg, var(--ninigou-red), var(--gold-color));
    border-radius: 2px;
}

.section-subtitle {
    font-size: 16px;
    color: var(--text-secondary);
    margin-top: 20px;
}

.explore {
    padding: 100px 20px;
    background: linear-gradient(180deg, #fff 0%, var(--light-bg) 100%);
}

.explore-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto 50px;
}

.explore-card {
    background: #fff;
    border: 1px solid rgba(139, 69, 19, 0.1);
    border-radius: 16px;
    padding: 40px 30px;
    text-align: center;
    transition: all 0.4s ease;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(139, 69, 19, 0.08);
}

.explore-card:hover {
    transform: translateY(-12px);
    box-shadow: 0 20px 50px rgba(139, 69, 19, 0.15);
    border-color: var(--gold-color);
}

.card-icon {
    font-size: 50px;
    margin-bottom: 22px;
    transition: transform 0.4s ease;
}

.explore-card:hover .card-icon {
    transform: scale(1.12);
}

.card-title {
    font-family: var(--font-serif);
    font-size: 22px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 15px;
}

.card-desc {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.7;
}

.quick-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.quick-btn {
    background: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    padding: 12px 30px;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.quick-btn:hover {
    background: var(--primary-color);
    color: #fff;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(139, 69, 19, 0.25);
}

.popular {
    padding: 100px 20px;
    background: var(--light-bg);
}

.popular-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 35px;
    max-width: 1200px;
    margin: 0 auto;
}

.popular-card {
    height: 420px;
    perspective: 1000px;
}

.popular-card .card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    transition: transform 0.6s;
    transform-style: preserve-3d;
}

.popular-card:hover .card-inner {
    transform: rotateY(180deg);
}

.card-front,
.card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    border-radius: 20px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 8px 30px rgba(139, 69, 19, 0.1);
}

.card-front {
    display: flex;
    flex-direction: column;
}

.card-image {
    height: 180px;
    background-size: cover;
    background-position: center;
    transition: transform 0.5s ease;
}

.popular-card:hover .card-image {
    transform: scale(1.05);
}

.card-content {
    padding: 25px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    flex: 1;
}

.card-icon {
    font-size: 40px;
    margin-bottom: 12px;
}

.card-content .card-title {
    margin-bottom: 10px;
}

.card-content .card-desc {
    font-size: 13px;
    margin-bottom: 15px;
    flex: 1;
}

.card-tags {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: center;
}

.tag {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: #fff;
    padding: 4px 12px;
    border-radius: 15px;
    font-size: 11px;
    font-weight: 500;
}

.card-back {
    transform: rotateY(180deg);
    background: linear-gradient(135deg, var(--dark-bg), #4A2C1A);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 30px;
}

.card-back-content {
    text-align: center;
    color: #fff;
}

.card-back-content h3 {
    font-family: var(--font-serif);
    font-size: 22px;
    margin-bottom: 15px;
    color: var(--ninigou-yellow);
}

.card-back-content p {
    font-size: 14px;
    line-height: 1.7;
    margin-bottom: 20px;
    color: rgba(255, 255, 255, 0.85);
}

.card-meta {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 25px;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.7);
}

.card-detail-btn {
    background: linear-gradient(135deg, var(--ninigou-red), var(--accent-color));
    color: #fff;
    border: none;
    padding: 12px 28px;
    border-radius: 25px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.card-detail-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(196, 30, 58, 0.4);
}

.card-detail-btn .arrow {
    transition: transform 0.3s ease;
}

.card-detail-btn:hover .arrow {
    transform: translateX(5px);
}

.card-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: linear-gradient(135deg, var(--ninigou-red), var(--accent-color));
    color: #fff;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(196, 30, 58, 0.3);
}

.popular-card .card-title {
    padding: 22px 22px 12px;
    margin-bottom: 10px;
    font-family: var(--font-serif);
}

.popular-card .card-desc {
    padding: 0 22px 22px;
    margin-bottom: 18px;
}

.card-btn {
    margin: 0 22px 22px;
    width: calc(100% - 44px);
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: #fff;
    border: none;
    padding: 13px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(139, 69, 19, 0.2);
}

.card-btn:hover {
    background: linear-gradient(135deg, var(--secondary-color), var(--primary-color));
    transform: scale(1.02);
}

.directory {
    padding: 100px 20px;
    background: linear-gradient(180deg, #fff 0%, var(--light-bg) 100%);
}

.directory-container {
    max-width: 1000px;
    margin: 0 auto;
}

.region-tabs {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 40px;
}

.region-tab {
    background: transparent;
    border: 2px solid rgba(139, 69, 19, 0.2);
    color: var(--text-secondary);
    padding: 12px 26px;
    border-radius: 30px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.region-tab.active,
.region-tab:hover {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-color: var(--primary-color);
    color: #fff;
    box-shadow: 0 6px 18px rgba(139, 69, 19, 0.2);
}

.region-content {
    background: #fff;
    border-radius: 20px;
    padding: 45px;
    min-height: 300px;
    box-shadow: 0 8px 35px rgba(139, 69, 19, 0.08);
}

.region-panel {
    display: none;
    animation: fadeIn 0.3s ease;
}

.region-panel.active {
    display: block;
}

.region-panel h3 {
    font-family: var(--font-serif);
    font-size: 24px;
    color: var(--text-primary);
    margin-bottom: 25px;
    padding-bottom: 14px;
    border-bottom: 3px solid var(--gold-color);
    display: flex;
    align-items: center;
    gap: 12px;
}

.region-icon {
    font-size: 28px;
}

.project-list {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 15px;
}

.project-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    background: var(--light-bg);
    border-radius: 12px;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.project-item:hover {
    background: #fff;
    border-color: var(--gold-color);
    box-shadow: 0 4px 15px rgba(139, 69, 19, 0.1);
    transform: translateX(5px);
}

.project-info {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
}

.project-name {
    font-size: 14px;
    font-weight: 500;
}

.project-detail-btn {
    background: transparent;
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
    padding: 6px 14px;
    border-radius: 15px;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.project-detail-btn:hover {
    background: var(--primary-color);
    color: #fff;
}

.level {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 10px;
    font-size: 11px;
    font-weight: 600;
    margin-right: 10px;
}

.level.national {
    background: var(--ninigou-red);
    color: #fff;
}

.level.provincial {
    background: var(--gold-color);
    color: #fff;
}

.level.municipal {
    background: var(--ninigou-cyan);
    color: #fff;
}

.inheritors {
    padding: 100px 20px;
    background: linear-gradient(135deg, var(--dark-bg), #4A2C1A);
}

.inheritors .section-title {
    color: #fff;
}

.inheritors .section-subtitle {
    color: rgba(255, 255, 255, 0.7);
}

.inheritors-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.inheritor-card {
    height: 380px;
    perspective: 1000px;
}

.inheritor-inner {
    position: relative;
    width: 100%;
    height: 100%;
    transition: transform 0.6s;
    transform-style: preserve-3d;
}

.inheritor-card:hover .inheritor-inner {
    transform: rotateY(180deg);
}

.inheritor-front,
.inheritor-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(5px);
    padding: 35px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.inheritor-card:hover {
    border-color: var(--gold-color);
}

.inheritor-avatar {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 22px;
    overflow: hidden;
}

.avatar-silhouette {
    width: 100%;
    height: 100%;
}

.inheritor-name {
    font-family: var(--font-serif);
    font-size: 20px;
    font-weight: 600;
    color: #fff;
    margin-bottom: 10px;
}

.inheritor-title {
    font-size: 12px;
    color: var(--gold-color);
    margin-bottom: 15px;
}

.inheritor-quote {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.7);
    font-style: italic;
    line-height: 1.6;
    max-width: 220px;
}

.inheritor-back {
    transform: rotateY(180deg);
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: #fff;
}

.inheritor-profile {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.inheritor-avatar-small {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    overflow: hidden;
    margin-bottom: 15px;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.inheritor-back h4 {
    font-family: var(--font-serif);
    font-size: 18px;
    margin-bottom: 8px;
}

.profile-project {
    font-size: 12px;
    color: var(--ninigou-yellow);
    margin-bottom: 12px;
}

.profile-desc {
    font-size: 12px;
    line-height: 1.6;
    margin-bottom: 20px;
    color: rgba(255, 255, 255, 0.85);
}

.inheritor-actions {
    display: flex;
    gap: 10px;
}

.action-btn {
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.4);
    color: #fff;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.action-btn:hover {
    background: #fff;
    color: var(--primary-color);
}

.action-btn.secondary {
    background: transparent;
}

.action-btn.secondary:hover {
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
}

.news {
    padding: 100px 20px;
    background: #fff;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.news-card {
    background: var(--light-bg);
    border: 1px solid rgba(139, 69, 19, 0.08);
    border-radius: 16px;
    padding: 30px;
    transition: all 0.4s ease;
    cursor: pointer;
    box-shadow: 0 4px 18px rgba(139, 69, 19, 0.06);
}

.news-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 18px 40px rgba(139, 69, 19, 0.12);
    border-color: var(--gold-color);
}

.news-date {
    font-size: 12px;
    color: var(--text-secondary);
    margin-bottom: 15px;
    padding-left: 20px;
    position: relative;
}

.news-date::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 6px;
    height: 6px;
    background: var(--ninigou-red);
    border-radius: 50%;
}

.news-title {
    font-family: var(--font-serif);
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 15px;
    line-height: 1.5;
}

.news-desc {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.7;
}

.gallery {
    padding: 100px 20px;
    background: linear-gradient(180deg, #fff 0%, var(--light-bg) 100%);
}

.gallery-quote {
    font-family: var(--font-serif);
    font-size: 20px;
    color: var(--primary-color);
    margin-top: 15px;
    font-style: italic;
}

.gallery-carousel {
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
}

.gallery-track {
    display: flex;
    gap: 25px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    padding: 20px 10px;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.gallery-track::-webkit-scrollbar {
    display: none;
}

.gallery-item {
    flex: 0 0 280px;
    height: 350px;
    border-radius: 16px;
    overflow: hidden;
    position: relative;
    cursor: pointer;
    scroll-snap-align: start;
    box-shadow: 0 8px 25px rgba(139, 69, 19, 0.15);
    transition: transform 0.3s ease;
}

.gallery-item:hover {
    transform: scale(1.03);
}

.gallery-image {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(44, 24, 16, 0.9) 0%, rgba(44, 24, 16, 0.3) 50%, transparent 100%);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-icon {
    font-size: 36px;
    margin-bottom: 15px;
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.gallery-caption {
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    font-family: var(--font-serif);
    text-align: center;
}

.carousel-nav {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin-top: 25px;
}

.carousel-btn {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    border: 2px solid var(--primary-color);
    background: transparent;
    color: var(--primary-color);
    font-size: 24px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel-btn:hover {
    background: var(--primary-color);
    color: #fff;
}

.carousel-dots {
    display: flex;
    gap: 8px;
}

.carousel-dots .dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(139, 69, 19, 0.3);
    cursor: pointer;
    transition: all 0.3s ease;
}

.carousel-dots .dot.active {
    background: var(--primary-color);
    width: 30px;
    border-radius: 5px;
}

.experience {
    padding: 100px 20px;
    background: var(--light-bg);
}

.experience-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.experience-card {
    height: 320px;
    perspective: 1000px;
}

.experience-inner {
    position: relative;
    width: 100%;
    height: 100%;
    transition: transform 0.6s;
    transform-style: preserve-3d;
}

.experience-card:hover .experience-inner {
    transform: rotateY(180deg);
}

.experience-front,
.experience-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    border-radius: 20px;
    background: #fff;
    box-shadow: 0 8px 30px rgba(139, 69, 19, 0.1);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 30px;
    text-align: center;
}

.experience-front {
    background: linear-gradient(135deg, #fff, var(--light-bg));
}

.experience-icon {
    font-size: 50px;
    margin-bottom: 20px;
}

.experience-title {
    font-family: var(--font-serif);
    font-size: 20px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 15px;
}

.experience-price {
    font-size: 32px;
    font-weight: 700;
    color: var(--ninigou-red);
    margin-bottom: 10px;
}

.experience-price span {
    font-size: 14px;
    font-weight: 400;
    color: var(--text-secondary);
}

.experience-meta {
    font-size: 13px;
    color: var(--text-secondary);
}

.experience-back {
    transform: rotateY(180deg);
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: #fff;
}

.experience-back h3 {
    font-family: var(--font-serif);
    font-size: 20px;
    margin-bottom: 15px;
}

.experience-back p {
    font-size: 14px;
    line-height: 1.7;
    margin-bottom: 25px;
    color: rgba(255, 255, 255, 0.9);
}

.experience-book-btn {
    background: #fff;
    color: var(--primary-color);
    border: none;
    padding: 12px 30px;
    border-radius: 25px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.experience-book-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
}

.map-section {
    padding: 100px 20px;
    background: #fff;
}

.map-container {
    max-width: 1000px;
    margin: 0 auto;
}

.interactive-map {
    position: relative;
    width: 100%;
    height: 450px;
    background: linear-gradient(135deg, var(--light-bg), #fff);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 8px 35px rgba(139, 69, 19, 0.1);
    background-image: url("data:image/svg+xml,%3Csvg width='400' height='300' viewBox='0 0 400 300' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M50 150 Q 100 100, 150 120 T 250 100 T 350 130' stroke='%23d4c4b0' fill='none' stroke-width='2'/%3E%3Cpath d='M30 200 Q 80 180, 130 190 T 230 170 T 330 200' stroke='%23d4c4b0' fill='none' stroke-width='2'/%3E%3Ccircle cx='180' cy='120' r='40' fill='%23e8dcc8'/%3E%3C/svg%3E");
    background-size: cover;
}

.map-point {
    position: absolute;
    cursor: pointer;
    z-index: 10;
}

.map-marker {
    font-size: 36px;
    display: block;
    animation: bounce 2s infinite;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.2));
}

.map-point:hover .map-marker {
    transform: scale(1.2);
}

.map-tooltip {
    position: absolute;
    bottom: 50px;
    left: 50%;
    transform: translateX(-50%) scale(0.8);
    background: #fff;
    border-radius: 15px;
    padding: 18px;
    min-width: 200px;
    box-shadow: 0 10px 35px rgba(0, 0, 0, 0.2);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    pointer-events: none;
}

.map-point:hover .map-tooltip {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) scale(1);
}

.map-tooltip h4 {
    font-family: var(--font-serif);
    font-size: 16px;
    color: var(--text-primary);
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--gold-color);
}

.tooltip-projects {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.tooltip-projects span {
    font-size: 13px;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 8px;
}

.map-legend {
    margin-top: 30px;
    padding: 20px 30px;
    background: var(--light-bg);
    border-radius: 15px;
    display: inline-block;
}

.map-legend h4 {
    font-family: var(--font-serif);
    font-size: 16px;
    color: var(--text-primary);
    margin-bottom: 15px;
}

.legend-items {
    display: flex;
    gap: 25px;
    flex-wrap: wrap;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--text-secondary);
}

.legend-icon {
    font-size: 20px;
}

.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 3000;
    display: none;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.lightbox.active {
    display: flex;
    opacity: 1;
}

.lightbox-close {
    position: absolute;
    top: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    border: none;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: #fff;
    font-size: 28px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.lightbox-close:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: rotate(90deg);
}

.lightbox-image {
    max-width: 90%;
    max-height: 85%;
    border-radius: 10px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

.about {
    padding: 100px 20px;
    background: linear-gradient(135deg, var(--dark-bg), #4A2C1A);
}

.about .section-title {
    color: #fff;
}

.about .section-subtitle {
    color: rgba(255, 255, 255, 0.7);
}

.about-content {
    max-width: 850px;
    margin: 0 auto;
    text-align: center;
}

.about-text {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.9;
    margin-bottom: 28px;
}

.about-list {
    list-style: none;
    margin-bottom: 35px;
}

.about-list li {
    font-size: 15px;
    color: rgba(255, 255, 255, 0.8);
    line-height: 2.2;
    padding: 10px 0;
}

.footer {
    background: #1a0f08;
    padding: 60px 20px;
    text-align: center;
    border-top: 3px solid var(--gold-color);
}

.footer-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 22px;
}

.footer .logo-text {
    color: #fff;
}

.footer-text {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 32px;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 32px;
    flex-wrap: wrap;
    margin-bottom: 32px;
}

.footer-links a {
    text-decoration: none;
    color: rgba(255, 255, 255, 0.6);
    font-size: 14px;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--gold-color);
}

.footer-copyright {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.35);
}

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-sidebar {
    position: fixed;
    top: 0;
    right: -500px;
    width: 480px;
    max-width: 90vw;
    height: 100%;
    background: #fff;
    z-index: 2001;
    transition: right 0.4s ease;
    overflow-y: auto;
    box-shadow: -10px 0 40px rgba(0, 0, 0, 0.2);
}

.modal-sidebar.active {
    right: 0;
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    border: none;
    background: var(--light-bg);
    border-radius: 50%;
    font-size: 24px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
}

.modal-close:hover {
    background: var(--primary-color);
    color: #fff;
}

.modal-content {
    padding: 40px;
}

.modal-header {
    margin-bottom: 30px;
}

.modal-header h2 {
    font-family: var(--font-serif);
    font-size: 28px;
    color: var(--text-primary);
    margin-bottom: 10px;
}

.modal-header .modal-badge {
    display: inline-block;
    background: var(--ninigou-red);
    color: #fff;
    padding: 5px 15px;
    border-radius: 15px;
    font-size: 12px;
    margin-right: 10px;
}

.modal-header .modal-location {
    font-size: 14px;
    color: var(--text-secondary);
}

.modal-image {
    width: 100%;
    height: 220px;
    background-size: cover;
    background-position: center;
    border-radius: 15px;
    margin-bottom: 25px;
}

.modal-section {
    margin-bottom: 25px;
}

.modal-section h3 {
    font-family: var(--font-serif);
    font-size: 18px;
    color: var(--text-primary);
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--gold-color);
}

.modal-section p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.8;
}

.modal-inheritors {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.modal-inheritor {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    background: var(--light-bg);
    border-radius: 12px;
}

.modal-inheritor-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--gold-color), var(--secondary-color));
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-serif);
    font-size: 18px;
    color: #fff;
}

.modal-inheritor-info h4 {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.modal-inheritor-info p {
    font-size: 12px;
    color: var(--text-secondary);
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(35px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes bounce {
    0%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    50% {
        transform: translateX(-50%) translateY(12px);
    }
}

@keyframes scrollDown {
    0% {
        transform: translateX(-50%) translateY(0);
        opacity: 1;
    }
    100% {
        transform: translateX(-50%) translateY(22px);
        opacity: 0;
    }
}

@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        background: linear-gradient(180deg, var(--primary-color), var(--dark-bg));
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
        padding-top: 50px;
        gap: 30px;
        transition: left 0.3s ease;
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-toggle {
        display: flex;
    }

    .hero-title {
        font-size: 36px;
        letter-spacing: 3px;
    }

    .hero-subtitle {
        font-size: 14px;
        letter-spacing: 4px;
    }

    .hero-desc {
        font-size: 14px;
    }

    .section-title {
        font-size: 28px;
    }

    .popular-grid,
    .explore-grid,
    .inheritors-grid,
    .news-grid,
    .experience-grid {
        grid-template-columns: 1fr;
    }

    .gallery-item {
        flex: 0 0 240px;
        height: 300px;
    }

    .experience-card {
        height: 350px;
    }

    .interactive-map {
        height: 350px;
    }

    .map-tooltip {
        min-width: 160px;
        padding: 12px;
    }

    .region-panel ul {
        grid-template-columns: 1fr;
    }

    .footer-links {
        gap: 20px;
    }
}