/* ============================================================
   河南省非物质文化遗产共创平台 - 全局样式
   主题：中式文化美学（朱砂红 / 鎏金 / 宣纸 / 墨色 / 青玉）
   ============================================================ */
:root {
    --primary: #a3242c;            /* 朱砂红 */
    --primary-dark: #7c1a21;
    --primary-light: #c9413f;
    --gold: #c19a4b;               /* 鎏金 */
    --gold-light: #e0c887;
    --gold-soft: #f3e7c9;
    --ink: #241a12;                /* 墨色 */
    --ink-2: #3a2e22;
    --ink-3: #5c4a36;
    --paper: #faf5ec;              /* 宣纸 */
    --paper-2: #f3ebdb;
    --paper-3: #ece1c8;
    --jade: #3f7c6b;               /* 青玉 */
    --jade-dark: #2f5f52;
    --blue: #2f5a8f;               /* 青花 */
    --blue-dark: #1f3a5f;
    --muted: #8a7a63;
    --border: #e7dcc6;
    --success: #2f8f5f;
    --warning: #d08a2e;
    --danger: #b0245a;
    --radius: 12px;
    --radius-sm: 8px;
    --radius-lg: 20px;
    --shadow: 0 10px 40px rgba(36, 26, 18, 0.10);
    --shadow-hover: 0 16px 50px rgba(36, 26, 18, 0.16);
    --transition: all .3s cubic-bezier(.4, 0, .2, 1);
    --font-serif: 'Noto Serif SC', 'Songti SC', 'STSong', 'SimSun', 'KaiTi', serif;
    --font-sans: -apple-system, BlinkMacSystemFont, 'PingFang SC', 'Microsoft YaHei', 'Noto Sans SC', 'Segoe UI', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html { scroll-behavior: smooth; }

body {
    background-color: var(--paper);
    color: var(--ink);
    line-height: 1.7;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    font-family: var(--font-sans);
    background-image:
        radial-gradient(circle at 15% 10%, rgba(193, 154, 75, 0.05), transparent 30%),
        radial-gradient(circle at 85% 20%, rgba(163, 36, 44, 0.04), transparent 35%);
}

h1, h2, h3, h4, .serif { font-family: var(--font-serif); letter-spacing: 1px; }

a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }

.container {
    width: 92%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* ============ 装饰云纹（SVG data-uri） ============ */
.cloud-pattern {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='80' height='80' viewBox='0 0 80 80'%3E%3Cpath d='M20 40c0-8 6-14 14-14 1-8 8-14 16-14s14 6 14 14c8 0 14 6 14 14H20z' fill='%23c19a4b' fill-opacity='0.06'/%3E%3C/svg%3E");
}

/* ============ 顶部导航 ============ */
header {
    background: linear-gradient(135deg, #241a12 0%, #3a2e22 60%, #2a1c14 100%);
    color: #f5ecd8;
    padding: 0;
    box-shadow: 0 3px 20px rgba(0, 0, 0, 0.25);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 2px solid var(--gold);
}

.nav-top {
    background: linear-gradient(90deg, var(--primary-dark), var(--primary));
    color: #f5e8c8;
    font-size: 0.8rem;
    padding: 4px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.nav-top .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
}

.nav-top a { color: #f5e8c8; opacity: .9; }
.nav-top a:hover { opacity: 1; text-decoration: underline; }
.nav-top-right { display: inline-flex; align-items: center; gap: 12px; }
.nav-self-check { margin-left: 6px; padding-left: 12px; border-left: 1px solid rgba(245,232,200,.28); opacity: .6 !important; }
.nav-self-check:hover { opacity: 1 !important; }

/* 头部通栏比内容区略宽，给一整行菜单留出空间（顶栏与主导航保持对齐） */
.nav-top .container,
header .container { width: 95%; max-width: 1360px; }

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.7rem 0;
    gap: 14px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: var(--font-serif);
    font-weight: bold;
    letter-spacing: 2px;
    flex-shrink: 0;
    white-space: nowrap;
}

.logo-mark {
    width: 48px;
    height: 48px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo-mark svg { width: 100%; height: 100%; }
.logo-mark img {
    width: 100%;
    height: 100%;
    max-width: none;
    display: block;
    object-fit: contain;
    border-radius: 50%;
    box-shadow: 0 0 0 2px rgba(224, 200, 135, .45), 0 3px 10px rgba(0, 0, 0, .38);
    transition: transform .3s cubic-bezier(.4, 0, .2, 1), box-shadow .3s;
}
.logo:hover .logo-mark img {
    transform: scale(1.06) rotate(-3deg);
    box-shadow: 0 0 0 2px rgba(224, 200, 135, .85), 0 6px 16px rgba(0, 0, 0, .45);
}

.logo-text { display: flex; flex-direction: column; line-height: 1.25; white-space: nowrap; }
.logo-text .zh { font-size: 1.45rem; color: #f5e8c8; white-space: nowrap; }
.logo-text .en { font-size: 0.62rem; color: var(--gold-light); letter-spacing: 3px; font-family: var(--font-sans); white-space: nowrap; }

.nav-links {
    display: flex;
    list-style: none;
    gap: 1px;
    align-items: center;
    flex-wrap: nowrap;
    min-width: 0;
}

.nav-links li { position: relative; flex-shrink: 0; }

.nav-links > li > a {
    color: rgba(245, 232, 200, 0.86);
    padding: 0.5rem 0.6rem;
    border-radius: 8px;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 0.88rem;
    line-height: 1.25;
    white-space: nowrap;
}

.nav-links > li > a:hover { background-color: rgba(193, 154, 75, 0.18); color: #fff; }
.nav-links > li > a.active { background: linear-gradient(135deg, var(--primary), var(--primary-dark)); color: #fff; }
.nav-links > li > .nav-ai-link { background-color: var(--gold-light); color: var(--ink); font-weight: 700; }
.nav-links > li > .nav-ai-link:hover { background-color: var(--gold-soft); color: var(--ink); }

/* 下拉菜单 */
.dropdown-content {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: #fffdf8;
    min-width: 210px;
    box-shadow: var(--shadow);
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    overflow: hidden;
    z-index: 200;
    padding: 6px;
}

.dropdown-content a {
    color: var(--ink-2);
    padding: 10px 12px;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: var(--transition);
    border-radius: 6px;
    font-size: 0.92rem;
}

.dropdown-content a:hover { background: var(--paper-2); color: var(--primary); }
.dropdown:hover .dropdown-content { display: block; }

/* 用户区（登录 / 注册 / 个人中心）：整块不参与收缩，避免被挤成竖排 */
.user-menu {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
    white-space: nowrap;
    margin-left: 4px;
}
.user-menu > .dropdown > a {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 0.5rem 0.6rem;
    border-radius: 8px;
    font-size: 0.88rem;
    color: rgba(245, 232, 200, 0.86);
    white-space: nowrap;
    transition: var(--transition);
}
.user-menu > .dropdown > a:hover { background-color: rgba(193, 154, 75, 0.18); color: #fff; }
.user-menu .dropdown-content { right: 0; left: auto; }
.user-name { display: inline-block; max-width: 110px; overflow: hidden; text-overflow: ellipsis; vertical-align: middle; }

/* 登录注册按钮 */
.nav-login-btn,
.nav-register-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    flex-shrink: 0;
    white-space: nowrap;
    font-size: 0.88rem;
    line-height: 1.25;
    border-radius: 24px;
    padding: 0.45rem 0.95rem !important;
    margin-left: 0 !important;
    transition: var(--transition);
}
.nav-login-btn {
    background: transparent;
    color: #f5e8c8;
    border: 1.5px solid var(--gold);
    font-weight: 600;
}
.nav-login-btn:hover { background: var(--gold) !important; color: #241a12 !important; transform: translateY(-1px); }

.nav-register-btn {
    background: linear-gradient(135deg, var(--gold), #a8853a);
    color: #241a12;
    border: 1.5px solid var(--gold);
    font-weight: 700;
}
.nav-register-btn:hover { background: var(--gold-light) !important; color: #241a12 !important; transform: translateY(-1px); }

.mobile-menu-btn { display: none; font-size: 1.5rem; cursor: pointer; color: #f5e8c8; flex-shrink: 0; }

/* ============ 轮播图 ============ */
.home-ai-link {
    display: flex;
    align-items: center;
    gap: clamp(0.6rem, 2vw, 1.15rem);
    margin: 1.1rem 0 0;
    padding: clamp(0.7rem, 2vw, 1rem) clamp(0.7rem, 2.5vw, 1.5rem);
    color: var(--ink);
    background: linear-gradient(105deg, var(--gold-soft), var(--paper));
    border: 1px solid var(--gold);
    border-radius: var(--radius);
    transition: var(--transition);
}

.home-ai-link:hover { border-color: var(--primary); box-shadow: var(--shadow); }
.home-ai-link:focus-visible, .nav-links > li > .nav-ai-link:focus-visible {
    outline: 2px solid var(--gold);
    outline-offset: 3px;
}

.home-ai-icon {
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    width: clamp(2.1rem, 5vw, 2.75rem);
    aspect-ratio: 1;
    border-radius: 50%;
    background-color: var(--primary-dark);
    color: var(--gold-soft);
}

.home-ai-copy { display: grid; gap: 0.15rem; line-height: 1.35; }
.home-ai-copy strong { font-size: clamp(1.05rem, 2vw, 1.35rem); }
.home-ai-copy > span { color: var(--ink-3); font-size: 0.83rem; }

.home-ai-action {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    flex: 0 0 auto;
    margin-left: auto;
    padding: 0.55rem clamp(0.55rem, 1.8vw, 1.05rem);
    border-radius: var(--radius-sm);
    color: var(--paper);
    background-color: var(--primary-dark);
    font-size: 0.88rem;
    font-weight: 700;
}

.home-ai-link:hover .home-ai-action { background-color: var(--primary); }

/* 首页两张 AI 入口卡：问答 + 实验室 */
.home-ai-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-top: 1.1rem; }
.home-ai-grid .home-ai-link { margin: 0; }
.home-ai-link.is-lab {
    background: linear-gradient(105deg, #eaf4ef, var(--paper));
    border-color: var(--jade);
}
.home-ai-link.is-lab .home-ai-icon { background-color: var(--jade-dark); }
.home-ai-link.is-lab:hover { border-color: var(--jade-dark); }
.home-ai-link.is-lab .home-ai-action { background-color: var(--jade-dark); }
.home-ai-link.is-lab:hover .home-ai-action { background-color: var(--jade); }
@media (max-width: 900px) {
    .home-ai-grid { grid-template-columns: 1fr; }
    .home-ai-grid .home-ai-link { margin: 0; }
    .home-ai-grid .home-ai-link + .home-ai-link { margin-top: 0; }
}

.carousel-container {
    width: 100%;
    height: 460px;
    overflow: hidden;
    position: relative;
    margin: 1.5rem 0;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-hover);
    border: 1px solid var(--border);
}

.carousel-slide { display: flex; width: 400%; height: 100%; transition: transform .65s cubic-bezier(.25, .46, .45, .94); }

.carousel-item {
    width: 25%;
    height: 100%;
    display: flex;
    align-items: center;
    padding: 3rem 6rem;
    color: #fff;
    position: relative;
    overflow: hidden;
    /* 轮播改用真实照片：铺满并按中心构图 */
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.carousel-item::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.12), transparent 50%);
}

.carousel-item::after {
    content: '';
    position: absolute;
    width: 560px; height: 560px;
    border-radius: 50%;
    border: 1.5px solid rgba(255, 255, 255, 0.12);
    top: -180px; right: -120px;
}

.carousel-inner { position: relative; z-index: 2; max-width: 560px; }

.carousel-badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.18);
    border: 1px solid rgba(255, 255, 255, 0.35);
    backdrop-filter: blur(6px);
    padding: 0.2rem 0.9rem;
    border-radius: 20px;
    font-size: 0.82rem;
    letter-spacing: 2px;
    margin-bottom: 1rem;
}

.carousel-inner h2 { font-size: 2.9rem; margin-bottom: 1rem; text-shadow: 0 3px 12px rgba(0,0,0,.3); line-height: 1.3; }
.carousel-inner p { font-size: 1.15rem; max-width: 520px; opacity: .93; margin-bottom: 1.8rem; line-height: 1.9; }

.carousel-control {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.22);
    backdrop-filter: blur(8px);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.3);
    width: 52px; height: 52px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.4rem;
    display: flex; align-items: center; justify-content: center;
    transition: var(--transition);
    z-index: 10;
}
.carousel-control:hover { background: rgba(0, 0, 0, 0.45); transform: translateY(-50%) scale(1.08); }
.prev-btn { left: 22px; }
.next-btn { right: 22px; }

.carousel-indicators {
    position: absolute;
    bottom: 22px; left: 50%;
    transform: translateX(-50%);
    display: flex; gap: 10px; z-index: 10;
}
.indicator {
    width: 10px; height: 10px;
    background: rgba(255, 255, 255, 0.45);
    border-radius: 50%;
    cursor: pointer;
    transition: var(--transition);
}
.indicator.active { background: #fff; width: 30px; border-radius: 6px; }

/* ============ 通用区块 ============ */
.section { padding: 2.5rem 0; }
.section-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1.5rem; flex-wrap: wrap; gap: 12px; }
.section-title { display: flex; align-items: center; gap: 12px; font-size: 1.7rem; color: var(--ink); }
.section-title::before { content: ''; width: 5px; height: 30px; background: linear-gradient(var(--primary), var(--gold)); border-radius: 3px; }
.section-title i { color: var(--primary); }
.section-more { color: var(--primary); font-size: 0.92rem; font-weight: 600; display: flex; align-items: center; gap: 6px; }
.section-more:hover { color: var(--primary-dark); }

/* ============ 数据统计 ============ */
.stats-strip {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary));
    border-radius: var(--radius-lg);
    padding: 2.2rem 2rem;
    color: #f5e8c8;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 1.5rem;
    box-shadow: var(--shadow);
    position: relative;
    overflow: hidden;
}
.stats-strip::before { content: ''; position: absolute; inset: 0; opacity: .12; background-image: radial-gradient(circle, #fff 1px, transparent 1px); background-size: 22px 22px; pointer-events: none; }

/* 统计数字：可点击交互卡片 */
.stat-cell {
    text-align: center;
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    padding: .55rem .6rem .7rem;
    border-radius: 14px;
    border: 1px solid transparent;
    color: inherit;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    transition: transform .28s cubic-bezier(.4, 0, .2, 1), background .28s, border-color .28s, box-shadow .28s;
}
a.stat-cell { text-decoration: none; }
.stat-cell .num {
    font-family: var(--font-serif);
    font-size: 2.4rem;
    font-weight: bold;
    color: #fff;
    line-height: 1.15;
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 1px;
}
.stat-cell .num b { font-weight: inherit; }
.stat-cell .num span { color: var(--gold-light); }
.stat-cell .lbl { font-size: 0.92rem; opacity: .9; margin-top: 4px; letter-spacing: 1px; }

a.stat-cell::after {
    content: '点击查看 →';
    font-size: .74rem;
    letter-spacing: 1px;
    color: var(--gold-light);
    opacity: 0;
    max-height: 0;
    overflow: hidden;
    transform: translateY(3px);
    transition: opacity .28s, max-height .28s, transform .28s;
}
a.stat-cell:hover,
a.stat-cell:focus-visible {
    background: rgba(255, 255, 255, .10);
    border-color: rgba(224, 200, 135, .48);
    transform: translateY(-4px);
    box-shadow: 0 12px 26px rgba(0, 0, 0, .22);
    outline: none;
}
a.stat-cell:hover::after,
a.stat-cell:focus-visible::after { opacity: 1; max-height: 22px; transform: none; }
a.stat-cell:focus-visible { box-shadow: 0 0 0 3px rgba(224, 200, 135, .55), 0 12px 26px rgba(0, 0, 0, .22); }
a.stat-cell:active { transform: translateY(-1px) scale(.985); }
@media (hover: none) {
    a.stat-cell::after { content: '点按查看 →'; opacity: .75; max-height: 22px; transform: none; }
}

/* ============ 分类网格 ============ */
.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
    gap: 1.1rem;
    border-radius: var(--radius-lg);
    scroll-margin-top: 110px;
}
.category-grid.flash { animation: catFlash .95s ease-out 2; }
@keyframes catFlash {
    0% { box-shadow: 0 0 0 0 rgba(193, 154, 75, .5); }
    100% { box-shadow: 0 0 0 26px rgba(193, 154, 75, 0); }
}
.category-card {
    background: #fffdf8;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.5rem 1.2rem 1.2rem;
    text-align: center;
    transition: var(--transition);
    cursor: pointer;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: inherit;
}
.category-card:hover,
.category-card:focus-visible { transform: translateY(-5px); box-shadow: var(--shadow-hover); border-color: var(--gold); outline: none; }
.category-card:focus-visible { box-shadow: 0 0 0 3px rgba(193, 154, 75, .5), var(--shadow-hover); }
.category-card:active { transform: translateY(-2px) scale(.99); }
.category-card .cat-count {
    position: absolute;
    top: .8rem;
    right: .85rem;
    font-size: .72rem;
    line-height: 1.6;
    color: var(--muted);
    background: var(--paper-2);
    border: 1px solid var(--border);
    border-radius: 999px;
    padding: 0 .5rem;
    transition: var(--transition);
}
.category-card:hover .cat-count { background: var(--gold-soft); border-color: var(--gold); color: var(--ink-2); }
.category-card .cat-icon {
    width: 56px; height: 56px;
    margin: 0 auto 0.9rem;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.5rem; color: #fff;
    transition: var(--transition);
}
.category-card:hover .cat-icon { transform: scale(1.08); }
.category-card h3 { font-size: 1.08rem; color: var(--ink); margin-bottom: 0.3rem; }
.category-card p { font-size: 0.8rem; color: var(--muted); line-height: 1.5; }
.category-card .cat-cta {
    margin-top: .8rem;
    font-size: .78rem;
    font-weight: 600;
    color: var(--primary);
    display: inline-flex;
    align-items: center;
    gap: 5px;
    opacity: 0;
    transform: translateY(4px);
    transition: opacity .28s, transform .28s;
}
.category-card:hover .cat-cta,
.category-card:focus-visible .cat-cta { opacity: 1; transform: none; }
@media (hover: none) {
    .category-card .cat-cta { opacity: .85; transform: none; }
}

/* ============ 项目卡片 ============ */
.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
}
.project-card {
    background: #fffdf8;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}
.project-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-hover); }

.project-cover {
    height: 150px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    color: #fff;
    font-size: 3.4rem;
    overflow: hidden;
}

/* 封面兜底层（渐变+图标+名称）与真实图片层 */
.cover-fallback {
    position: relative;
    z-index: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.8rem;
    text-align: center;
}
.cover-name {
    font-family: var(--font-serif);
    color: rgba(255, 255, 255, 0.96);
    font-size: 1.18rem;
    letter-spacing: 2px;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
    font-weight: 600;
}
.cover-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
    opacity: 0;
    transition: opacity .45s ease;
}
.cover-img.loaded { opacity: 1; }

/* 等级角标：非遗项目 / 共创作品 / 共创项目 封面通用（左上角） */
.level-badge {
    position: absolute;
    top: 12px; left: 12px;
    z-index: 3;
    background: rgba(0,0,0,0.45);
    backdrop-filter: blur(4px);
    color: #f5e8c8;
    padding: 2px 10px;
    border-radius: 14px;
    font-size: 0.75rem;
    letter-spacing: 1px;
    border: 1px solid rgba(255,255,255,0.3);
    white-space: nowrap;
}

/* 封面右上角胶囊标签（作品类型 / 项目状态） */
.cover-pill,
.co-cover-pill {
    position: absolute;
    top: 12px; right: 12px;
    z-index: 3;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: rgba(0,0,0,0.45);
    backdrop-filter: blur(4px);
    color: #fff;
    padding: 2px 10px;
    border-radius: 14px;
    font-size: 0.72rem;
    letter-spacing: .5px;
    border: 1px solid rgba(255,255,255,0.28);
    white-space: nowrap;
}
.project-body { padding: 1.2rem; display: flex; flex-direction: column; flex-grow: 1; }
.project-body h3 { font-size: 1.25rem; color: var(--ink); margin-bottom: 0.4rem; }
.project-region { font-size: 0.82rem; color: var(--muted); margin-bottom: 0.6rem; display: flex; align-items: center; gap: 5px; }
.project-brief { font-size: 0.9rem; color: var(--ink-3); flex-grow: 1; margin-bottom: 1rem; }
.project-meta { display: flex; gap: 1rem; font-size: 0.82rem; color: var(--muted); border-top: 1px dashed var(--border); padding-top: 0.8rem; }
.project-meta span { display: flex; align-items: center; gap: 5px; }
.project-meta .likes { color: var(--danger); }

/* ============ 传承人卡片 ============ */
.inheritor-card {
    background: #fffdf8;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.6rem;
    text-align: center;
    transition: var(--transition);
}
.inheritor-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-hover); border-color: var(--gold); }
.inheritor-avatar {
    width: 84px; height: 84px;
    margin: 0 auto 1rem;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 2.2rem;
    color: #fff;
    background: linear-gradient(135deg, var(--primary), var(--gold));
    box-shadow: 0 6px 18px rgba(163, 36, 44, 0.3);
}
.inheritor-card h3 { font-size: 1.2rem; }
.inheritor-level { display: inline-block; margin-top: 6px; padding: 2px 12px; border-radius: 14px; font-size: 0.75rem; background: var(--gold-soft); color: #8a6a1f; }
.inheritor-card .title { font-size: 0.88rem; color: var(--primary); margin: 0.6rem 0; }
.inheritor-card .bio { font-size: 0.84rem; color: var(--muted); line-height: 1.6; margin-bottom: 1rem; }
.inheritor-card .years { font-size: 0.8rem; color: var(--jade); }

/* ============ 共创作品卡片 ============ */
.work-card {
    background: #fffdf8;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}
.work-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-hover); }
.work-cover { height: 150px; display: flex; align-items: center; justify-content: center; color: #fff; font-size: 3.2rem; position: relative; overflow: hidden; }
.work-cat { position: absolute; top: 12px; right: 12px; z-index: 3; background: rgba(0,0,0,0.4); color: #fff; padding: 2px 10px; border-radius: 14px; font-size: 0.72rem; border: 1px solid rgba(255,255,255,0.28); white-space: nowrap; }
.work-body { padding: 1.2rem; display: flex; flex-direction: column; flex-grow: 1; }
.work-body h3 { font-size: 1.15rem; margin-bottom: 0.3rem; }
.work-author { font-size: 0.82rem; color: var(--muted); margin-bottom: 0.6rem; }
.work-desc { font-size: 0.88rem; color: var(--ink-3); flex-grow: 1; margin-bottom: 1rem; }
.work-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 1rem; }
.work-tags .tag { background: var(--paper-2); color: var(--ink-3); padding: 2px 9px; border-radius: 12px; font-size: 0.74rem; }
.work-actions { display: flex; gap: 1rem; align-items: center; font-size: 0.85rem; color: var(--muted); border-top: 1px dashed var(--border); padding-top: 0.8rem; }
.work-actions .vote-btn { cursor: pointer; color: var(--muted); transition: var(--transition); background: none; border: none; font-size: 0.85rem; display: flex; align-items: center; gap: 5px; }
.work-actions .vote-btn:hover { color: var(--primary); }
.work-actions .vote-btn.voted { color: var(--primary); }
.work-actions .vote-btn.voted i { font-weight: 900; }
.work-actions .likes { color: var(--danger); display: flex; align-items: center; gap: 5px; }

/* ============ 资讯/活动列表 ============ */
.list-row {
    display: flex;
    gap: 1.2rem;
    align-items: flex-start;
    padding: 1.3rem;
    background: #fffdf8;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    margin-bottom: 1rem;
    transition: var(--transition);
}
.list-row:hover { transform: translateX(4px); box-shadow: var(--shadow); border-color: var(--gold); }
.list-icon {
    width: 52px; height: 52px;
    flex-shrink: 0;
    border-radius: var(--radius-sm);
    display: flex; align-items: center; justify-content: center;
    font-size: 1.4rem; color: #fff;
    background: linear-gradient(135deg, var(--primary), var(--gold));
}
.list-content { flex-grow: 1; }
.list-content h3 { font-size: 1.12rem; margin-bottom: 0.3rem; }
.list-content .summary { font-size: 0.88rem; color: var(--muted); }
.list-meta { display: flex; gap: 1rem; font-size: 0.78rem; color: var(--muted); flex-wrap: wrap; margin-top: 0.4rem; }
.list-meta span { display: flex; align-items: center; gap: 4px; }

.status-badge { padding: 2px 12px; border-radius: 14px; font-size: 0.76rem; white-space: nowrap; }
.status-报名中 { background: #e3f2e7; color: var(--success); }
.status-进行中 { background: #e7edf6; color: var(--blue); }
.status-即将开始 { background: var(--gold-soft); color: #8a6a1f; }
.status-已结束 { background: #ece9e2; color: var(--muted); }

/* ============ 按钮 ============ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: #fff;
    padding: 0.7rem 1.5rem;
    border: none;
    border-radius: 24px;
    cursor: pointer;
    font-size: 0.95rem;
    font-weight: 600;
    transition: var(--transition);
    letter-spacing: 1px;
    text-decoration: none;
}
.btn:hover { background: linear-gradient(135deg, var(--primary-light), var(--primary)); transform: translateY(-2px); box-shadow: 0 8px 20px rgba(163, 36, 44, 0.3); color: #fff; }
.btn-outline { background: transparent; border: 1.5px solid var(--primary); color: var(--primary); }
.btn-outline:hover { background: var(--primary); color: #fff; }
.btn-gold { background: linear-gradient(135deg, var(--gold), #a8853a); color: #241a12; }
.btn-gold:hover { background: linear-gradient(135deg, #d4b46a, var(--gold)); color: #241a12; }
.btn-block { width: 100%; }
.btn-sm { padding: 0.45rem 1rem; font-size: 0.85rem; }
.btn:disabled, .btn[disabled] { opacity: .6; cursor: not-allowed; transform: none !important; box-shadow: none !important; }

/* ============ 表单 ============ */
.form-container {
    max-width: 480px;
    margin: 3rem auto;
    background: #fffdf8;
    padding: 2.6rem 2.4rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
}
.form-container h2 { color: var(--ink); margin-bottom: 1.6rem; text-align: center; font-size: 1.7rem; display: flex; align-items: center; justify-content: center; gap: 10px; }
.form-group { margin-bottom: 1.4rem; }
.form-group label { display: block; margin-bottom: 0.45rem; font-weight: 600; color: var(--ink-2); }
.form-control {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 0.98rem;
    transition: var(--transition);
    background: #fff;
    color: var(--ink);
    font-family: var(--font-sans);
}
.form-control:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(193, 154, 75, 0.18); }
.form-text { font-size: 0.78rem; color: var(--muted); margin-top: 4px; display: block; }
.form-footer { text-align: center; margin-top: 1.4rem; color: var(--muted); font-size: 0.92rem; }
.form-footer a { color: var(--primary); font-weight: 600; }
.form-footer a:hover { text-decoration: underline; }

.message { padding: 0.8rem 1rem; border-radius: var(--radius-sm); margin-bottom: 1rem; font-size: 0.9rem; }
.message.success { background: #e3f2e7; color: #1f6a43; }
.message.error { background: #fbe9ee; color: var(--danger); }

/* ============ 面包屑 ============ */
.breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 1.2rem 0;
    padding: 10px 16px;
    background: var(--paper-2);
    border-radius: var(--radius-sm);
    font-size: 0.88rem;
    flex-wrap: wrap;
}
.breadcrumb a { color: var(--primary); }
.breadcrumb a:hover { text-decoration: underline; }
.breadcrumb i { color: var(--muted); font-size: 0.7rem; }
.breadcrumb .current { color: var(--ink-3); font-weight: 600; }

/* ============ 页头 ============ */
.page-hero {
    background: linear-gradient(135deg, var(--ink) 0%, var(--ink-2) 100%);
    color: #f5e8c8;
    padding: 3rem 0;
    position: relative;
    overflow: hidden;
    border-bottom: 2px solid var(--gold);
}
.page-hero::before {
    content: '';
    position: absolute; inset: 0;
    background-image: radial-gradient(circle at 20% 50%, rgba(193,154,75,0.12), transparent 40%);
}
.page-hero .container { position: relative; z-index: 1; }
.page-hero h1 { font-size: 2.3rem; margin-bottom: 0.6rem; display: flex; align-items: center; gap: 12px; }
.page-hero h1 i { color: var(--gold-light); }
.page-hero p { opacity: .85; max-width: 720px; }

/* ============ 搜索与筛选 ============ */
.search-bar { display: flex; gap: 10px; margin-bottom: 1.2rem; }
.search-bar input {
    flex-grow: 1;
    padding: 0.7rem 1.2rem;
    border: 1px solid var(--border);
    border-radius: 24px;
    font-size: 0.95rem;
    background: #fff;
    min-width: 200px;
}
.search-bar input:focus { outline: none; border-color: var(--gold); }
.filter-options { display: flex; gap: 8px; margin-bottom: 1.6rem; flex-wrap: wrap; }
.filter-btn {
    padding: 6px 16px;
    border: 1px solid var(--border);
    background: #fffdf8;
    border-radius: 20px;
    cursor: pointer;
    transition: var(--transition);
    font-size: 0.86rem;
    color: var(--ink-3);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    text-decoration: none;
    line-height: 1.6;
}
.filter-btn:hover { border-color: var(--gold); color: var(--primary); }
.filter-btn:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.filter-btn.active { background: linear-gradient(135deg, var(--primary), var(--primary-dark)); color: #fff; border-color: var(--primary); }
.filter-btn.active i { color: var(--gold-light); }

/* 结果统计条 */
.result-summary {
    font-size: .86rem;
    color: var(--ink-3);
    margin: -0.4rem 0 1.1rem;
    min-height: 1.2em;
}
.result-summary b { color: var(--primary); font-weight: 600; }

/* ============ 详情页 ============ */
.detail-hero {
    background: #fffdf8;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    margin: 1.5rem 0;
    box-shadow: var(--shadow);
}
.detail-cover { height: 280px; display: flex; align-items: center; justify-content: center; color: #fff; font-size: 6rem; position: relative; overflow: hidden; }
.detail-cover::after { content: ''; position: absolute; inset: 0; background: linear-gradient(transparent, rgba(0,0,0,0.25)); }
.detail-info { padding: 2rem; }
.detail-info h1 { font-size: 2.1rem; margin-bottom: 0.8rem; }
.detail-meta { display: flex; flex-wrap: wrap; gap: 1.2rem; margin-bottom: 1.2rem; font-size: 0.9rem; color: var(--ink-3); }
.detail-meta span { display: flex; align-items: center; gap: 6px; }
.detail-meta i { color: var(--primary); }
.badge-level { background: var(--primary); color: #fff; padding: 2px 12px; border-radius: 14px; font-size: 0.78rem; }
.badge-cat { background: var(--gold-soft); color: #8a6a1f; padding: 2px 12px; border-radius: 14px; font-size: 0.78rem; }

.content-section { background: #fffdf8; border: 1px solid var(--border); border-radius: var(--radius); padding: 1.8rem; margin-bottom: 1.5rem; box-shadow: var(--shadow); }
.content-section h2 { font-size: 1.4rem; color: var(--ink); margin-bottom: 1rem; display: flex; align-items: center; gap: 10px; }
.content-section h2 i { color: var(--primary); }
.content-section h2::after { content: ''; flex-grow: 1; height: 1px; background: linear-gradient(90deg, var(--border), transparent); margin-left: 12px; }
.content-section p { color: var(--ink-3); margin-bottom: 0.8rem; line-height: 1.9; }
.feature-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 0.8rem; list-style: none; margin-top: 0.8rem; }
.feature-list li { background: var(--paper-2); padding: 0.8rem 1rem; border-radius: var(--radius-sm); display: flex; align-items: center; gap: 8px; font-size: 0.9rem; color: var(--ink-2); }
.feature-list li i { color: var(--gold); }
.tag-list { display: flex; flex-wrap: wrap; gap: 8px; }
.tag-list .tag { background: var(--paper-2); color: var(--ink-3); padding: 4px 14px; border-radius: 16px; font-size: 0.84rem; }

.action-bar { display: flex; gap: 12px; margin: 1.5rem 0; flex-wrap: wrap; }
.action-btn {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 0.65rem 1.4rem;
    border-radius: 24px;
    cursor: pointer;
    font-size: 0.92rem;
    font-weight: 600;
    transition: var(--transition);
    border: 1.5px solid var(--border);
    background: #fffdf8;
    color: var(--ink-2);
}
.action-btn:hover { border-color: var(--primary); color: var(--primary); transform: translateY(-2px); }
.action-btn.favorited { background: var(--primary); border-color: var(--primary); color: #fff; }

/* ============ 页脚 ============ */
footer {
    background: linear-gradient(135deg, #241a12, #1a110b);
    color: #cfc3ac;
    padding: 3.2rem 0 1.2rem;
    margin-top: auto;
    border-top: 3px solid var(--gold);
}
.footer-content { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 2rem; margin-bottom: 2rem; }
.footer-section h3 { color: #f5e8c8; margin-bottom: 1rem; font-size: 1.15rem; display: flex; align-items: center; gap: 8px; }
.footer-section h3 i { color: var(--gold); }
.footer-section p { font-size: 0.9rem; line-height: 1.8; }
.footer-section ul { list-style: none; }
.footer-section ul li { margin-bottom: 0.55rem; }
.footer-section a { color: #cfc3ac; transition: var(--transition); font-size: 0.9rem; }
.footer-section a:hover { color: var(--gold-light); padding-left: 5px; }
.footer-bottom { text-align: center; padding-top: 1.5rem; border-top: 1px solid rgba(255,255,255,0.08); font-size: 0.84rem; color: #8a7a63; }

/* ============ Toast ============ */
.toast {
    position: fixed;
    bottom: 24px; right: 24px;
    background: var(--success);
    color: #fff;
    padding: 0.9rem 1.4rem;
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-hover);
    display: none;
    align-items: center;
    gap: 10px;
    z-index: 2000;
    animation: slideIn .3s ease;
    max-width: 340px;
}
.toast-icon { font-size: 1.2rem; }
@keyframes slideIn { from { transform: translateX(120%); opacity: 0; } to { transform: translateX(0); opacity: 1; } }

/* ============ 模态框 ============ */
.modal { display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.5); z-index: 1500; align-items: center; justify-content: center; padding: 1rem; }
.modal.show { display: flex; }
.modal-content { background: #fffdf8; border-radius: var(--radius); width: 100%; max-width: 540px; box-shadow: var(--shadow-hover); border: 1px solid var(--border); }
.modal-header { display: flex; justify-content: space-between; align-items: center; padding: 1.4rem 1.6rem; border-bottom: 1px solid var(--border); }
.modal-header h3 { color: var(--ink); }
.modal-close { background: none; border: none; font-size: 1.5rem; cursor: pointer; color: var(--muted); }
.modal-body { padding: 1.6rem; max-height: 65vh; overflow-y: auto; }
.modal-footer { display: flex; justify-content: flex-end; gap: 0.8rem; padding: 1rem 1.6rem; border-top: 1px solid var(--border); }

/* ============ Tab 切换 ============ */
.tab-btn { color: var(--ink-2); }
.tab-btn.active { color: var(--primary); font-weight: 600; }
.tab-panel { display: none; }
.tab-panel.active { display: block; animation: fadeIn .3s ease; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: translateY(0); } }

/* ============ 个人中心 ============ */
.profile-header { margin: 1.5rem 0; }
.profile-header h1 { color: var(--ink); display: flex; align-items: center; gap: 10px; font-size: 1.9rem; }
.profile-content { display: grid; grid-template-columns: 290px 1fr; gap: 1.8rem; margin-bottom: 2.5rem; }
.profile-sidebar { display: flex; flex-direction: column; gap: 1.2rem; }

.profile-card { background: #fffdf8; border: 1px solid var(--border); border-radius: var(--radius); padding: 2rem 1.5rem; text-align: center; box-shadow: var(--shadow); }
.profile-avatar { position: relative; width: 110px; height: 110px; margin: 0 auto 1.2rem; }
.profile-avatar .avatar-svg { width: 110px; height: 110px; border-radius: 50%; filter: drop-shadow(0 6px 16px rgba(163,36,44,.3)); }
.avatar-edit-btn {
    position: absolute; bottom: 0; right: 0;
    background: var(--primary); color: #fff; border: 3px solid #fff;
    width: 38px; height: 38px; border-radius: 50%; cursor: pointer;
    display: flex; align-items: center; justify-content: center; transition: var(--transition);
}
.avatar-edit-btn:hover { background: var(--primary-dark); transform: scale(1.1); }
.profile-info h2 { margin-bottom: 0.3rem; }
.profile-info p { color: var(--muted); font-size: 0.9rem; }
.member-since { font-size: 0.82rem; margin-top: 0.5rem; }
.profile-stats { display: flex; justify-content: space-around; margin-top: 1.3rem; padding-top: 1.3rem; border-top: 1px dashed var(--border); }
.profile-stats .stat-value { font-family: var(--font-serif); font-size: 1.6rem; font-weight: bold; color: var(--primary); }
.profile-stats .stat-label { font-size: 0.8rem; color: var(--muted); }

.profile-menu { background: #fffdf8; border: 1px solid var(--border); border-radius: var(--radius); padding: 1.2rem; box-shadow: var(--shadow); }
.profile-menu h3 { color: var(--ink); margin-bottom: 0.8rem; font-size: 1.1rem; display: flex; align-items: center; gap: 8px; }
.profile-menu ul { list-style: none; }
.profile-menu li { margin-bottom: 0.4rem; }
.profile-menu-item {
    display: flex; align-items: center; gap: 10px;
    padding: 0.7rem 0.9rem; color: var(--ink-2);
    border-radius: var(--radius-sm); transition: var(--transition);
}
.profile-menu-item:hover { background: var(--paper-2); color: var(--primary); }
.profile-menu-item.active { background: linear-gradient(135deg, var(--primary), var(--primary-dark)); color: #fff; }

.profile-tab { display: none; background: #fffdf8; border: 1px solid var(--border); border-radius: var(--radius); padding: 2rem; box-shadow: var(--shadow); }
.profile-tab.active { display: block; }
.profile-tab h2 { color: var(--ink); margin-bottom: 1.4rem; display: flex; align-items: center; gap: 10px; font-size: 1.4rem; }

.goal-selector { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 0.8rem; margin-top: 0.4rem; }
.goal-option input { display: none; }
.goal-card { background: var(--paper); border: 2px solid var(--border); border-radius: var(--radius); padding: 1rem; text-align: center; cursor: pointer; transition: var(--transition); }
.goal-card:hover { border-color: var(--gold); }
.goal-option input:checked + .goal-card { border-color: var(--primary); background: rgba(163,36,44,.06); }
.goal-card i { font-size: 1.8rem; color: var(--primary); margin-bottom: 0.4rem; }
.goal-card h4 { font-size: 0.98rem; }
.goal-card p { font-size: 0.78rem; color: var(--muted); }

.checkbox-label { display: flex; align-items: center; gap: 10px; cursor: pointer; font-size: 0.95rem; }
.checkbox-label input { width: auto; }

.stats-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; }
.stat-card { background: var(--paper); border: 1px solid var(--border); border-radius: var(--radius); padding: 1rem; display: flex; align-items: center; gap: 0.9rem; }
.stat-icon { width: 48px; height: 48px; background: linear-gradient(135deg, var(--primary), var(--gold)); color: #fff; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 1.2rem; }
.stat-number { font-family: var(--font-serif); font-size: 1.6rem; font-weight: bold; color: var(--ink); }
.stat-label { font-size: 0.82rem; color: var(--muted); }

.achievements-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 1.2rem; }
.achievement-card { background: #fffdf8; border: 2px solid var(--border); border-radius: var(--radius); padding: 1.4rem; display: flex; align-items: center; gap: 1rem; position: relative; transition: var(--transition); }
.achievement-card:hover { box-shadow: var(--shadow); }
.achievement-card.locked { opacity: .65; }
.achievement-icon { font-size: 2.4rem; flex-shrink: 0; }
.achievement-content h4 { font-size: 1.02rem; }
.achievement-content p { font-size: 0.82rem; color: var(--muted); }
.achievement-badge, .achievement-lock { position: absolute; top: 10px; right: 10px; width: 28px; height: 28px; border-radius: 50%; display: flex; align-items: center; justify-content: center; }
.achievement-badge { background: var(--success); color: #fff; }
.achievement-lock { background: #ece9e2; color: var(--muted); }

.activity-item { display: flex; align-items: center; gap: 1rem; padding: 0.9rem; background: var(--paper); border-radius: var(--radius-sm); margin-bottom: 0.7rem; }
.activity-icon { width: 46px; height: 46px; background: linear-gradient(135deg, var(--primary), var(--gold)); color: #fff; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 1.1rem; flex-shrink: 0; }
.activity-content h4 { font-size: 0.98rem; }
.activity-content p { font-size: 0.82rem; color: var(--muted); }

.settings-section { margin-bottom: 1.5rem; }
.settings-section h3 { color: var(--ink); margin-bottom: 1rem; display: flex; align-items: center; gap: 8px; font-size: 1.15rem; }
.danger-zone { background: #fdf2f4; border: 2px solid #f3c6ce; border-radius: var(--radius); padding: 1.5rem; }
.danger-action h4 { color: var(--danger); margin-bottom: 0.4rem; }
.danger-action p { color: var(--ink-3); font-size: 0.88rem; margin-bottom: 0.8rem; }
.danger-actions { display: flex; flex-direction: column; gap: 1.3rem; }

/* ============ 数字展馆 ============ */
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 1.4rem; }
.gallery-card {
    background: #fffdf8;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}
.gallery-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-hover); border-color: var(--gold); }
.gallery-cover {
    height: 165px;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
}
.gallery-cover::after { content: ''; position: absolute; inset: 0; background: linear-gradient(transparent 55%, rgba(0,0,0,0.25)); z-index: 1; pointer-events: none; }
.gallery-info { padding: 0.95rem 1.05rem; display: flex; flex-direction: column; gap: 0.3rem; }
.gallery-info h3 { font-size: 1.12rem; color: var(--ink); }
.gallery-info .g-meta { font-size: 0.8rem; color: var(--muted); display: flex; align-items: center; gap: 5px; }
.gallery-info .g-brief { font-size: 0.84rem; color: var(--ink-3); line-height: 1.6; margin-top: 0.25rem; }

/* ============ 河南非遗分布地图 ============ */
.map-section {
    margin: 0 0 1.8rem;
    background: #fffdf8;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}
.map-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.9rem 1.4rem;
    border-bottom: 1px solid var(--border);
    flex-wrap: wrap;
    gap: 8px;
}
.map-head h3 { font-size: 1.2rem; display: flex; align-items: center; gap: 8px; }
.map-head h3 i { color: var(--primary); }
.map-legend { display: flex; gap: 1.2rem; font-size: 0.82rem; color: var(--muted); align-items: center; flex-wrap: wrap; }
.map-legend .dot-sample {
    width: 10px; height: 10px; border-radius: 50%;
    background: var(--primary); display: inline-block;
    box-shadow: 0 0 8px var(--primary); margin-right: 4px; vertical-align: middle;
}
.map-wrap {
    position: relative;
    padding: 1.2rem 0.8rem;
    background: linear-gradient(180deg, #faf5ec 0%, #f3ebdb 100%);
    display: flex;
    justify-content: center;
}
/* 原写法 width:100% 会把 500×500 的 viewBox 撑到约 1170×1170，图比屏幕还高；
   这里限制在 560px 内并居中，移动端仍自适应缩小 */
.map-svg { width: 100%; max-width: 560px; height: auto; display: block; }
.map-outline { fill: rgba(193, 154, 75, 0.10); stroke: var(--gold); stroke-width: 2; stroke-linejoin: round; }
.map-river { fill: none; stroke: #9fc3d8; stroke-width: 2.5; opacity: .75; }
.map-watermark {
    fill: rgba(163, 36, 44, 0.07);
    font-size: 92px;
    font-family: var(--font-serif);
    font-weight: bold;
    letter-spacing: 8px;
}
.map-city { cursor: pointer; }
.map-hit { pointer-events: all; }
.map-dot { fill: var(--primary); stroke: #fff; stroke-width: 1.5; }
.map-halo {
    fill: var(--primary);
    transform-box: fill-box;
    transform-origin: center;
    animation: haloPulse 2.4s ease-out infinite;
}
.city-label {
    fill: var(--ink-2);
    font-size: 13px;
    font-family: var(--font-serif);
    font-weight: 600;
    paint-order: stroke;
    stroke: #fffdf8;
    stroke-width: 3px;
    stroke-linejoin: round;
    pointer-events: none;
}
.map-city:hover .map-dot { fill: var(--gold); }
.map-city:hover .map-halo { fill: var(--gold); }
@keyframes haloPulse {
    0% { transform: scale(.45); opacity: .45; }
    70% { transform: scale(1.7); opacity: 0; }
    100% { transform: scale(1.7); opacity: 0; }
}
.map-tooltip {
    position: absolute;
    display: none;
    background: #fffdf8;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-hover);
    padding: 0.9rem 1rem;
    z-index: 30;
    min-width: 230px;
    max-width: 290px;
    pointer-events: auto;
}
.map-tooltip h4 { font-size: 1rem; color: var(--ink); margin-bottom: 0.5rem; display: flex; align-items: center; gap: 6px; }
.map-tooltip h4 i { color: var(--primary); }
.map-tooltip ul { list-style: none; max-height: 240px; overflow-y: auto; }
.map-tooltip li { padding: 0.42rem 0; border-bottom: 1px dashed var(--border); }
.map-tooltip li:last-child { border-bottom: none; }
.map-tooltip li a { color: var(--primary); font-weight: 600; font-size: 0.92rem; }
.map-tooltip li a:hover { text-decoration: underline; }
.map-tooltip li span { display: block; font-size: 0.78rem; color: var(--muted); line-height: 1.45; }
.map-tooltip .tooltip-more { display: inline-block; margin-top: 0.5rem; font-size: 0.82rem; color: var(--primary); font-weight: 600; }
.map-tooltip .tooltip-more:hover { text-decoration: underline; }
@media (max-width: 640px) {
    .map-tooltip { min-width: 190px; max-width: 230px; }
}

/* ============ 空状态 ============ */
.empty-state { text-align: center; padding: 3rem 1rem; color: var(--muted); }
.empty-state i { font-size: 3.2rem; margin-bottom: 1rem; color: var(--gold); opacity: .7; }
.empty-state h3 { color: var(--ink-2); margin-bottom: 0.4rem; }
.empty-state p { font-size: 0.9rem; margin-bottom: 1.2rem; }

/* ============ 响应式 ============ */
@media (max-width: 992px) {
    .profile-content { grid-template-columns: 1fr; }
    .carousel-item { padding: 2.5rem; }
}

/* 中等宽度：隐藏菜单图标并收紧间距，保证一行完整显示 */
@media (max-width: 1520px) {
    .nav-top .container, header .container { width: 96%; max-width: 1400px; }
    .nav-links > li > a > i:not(.fa-chevron-down) { display: none; }
    .nav-links > li > a { padding: 0.45rem 0.5rem; font-size: 0.85rem; }
    .nav-login-btn, .nav-register-btn { padding: 0.42rem 0.85rem !important; font-size: 0.85rem; }
    .user-menu > .dropdown > a { padding: 0.45rem 0.5rem; font-size: 0.85rem; }
    .logo-text .zh { font-size: 1.3rem; }
}

/* ≤1080px：折叠为汉堡菜单，菜单内恢复完整字号与图标 */
@media (max-width: 1080px) {
    .nav-links {
        display: none;
        position: absolute;
        top: 100%; left: 0; right: 0;
        background: linear-gradient(135deg, #241a12, #3a2e22);
        flex-direction: column;
        align-items: stretch;
        gap: 2px;
        padding: 1rem;
        box-shadow: 0 12px 30px rgba(0,0,0,.3);
        border-top: 1px solid var(--gold);
    }
    .nav-links.active { display: flex; }
    .nav-links li { width: 100%; }
    .nav-links > li > a { padding: 0.85rem 1rem; border-radius: 8px; font-size: 0.95rem; }
    .nav-links > li > a > i:not(.fa-chevron-down) { display: inline-block; }
    .mobile-menu-btn { display: block; }
    .dropdown-content { position: static; box-shadow: none; background: rgba(255,255,255,.06); }
    .dropdown-content a { color: #cfc3ac; }
    .dropdown-content a:hover { background: rgba(255,255,255,.1); color: #fff; }
    .user-menu { width: 100%; margin-left: 0; padding-top: .5rem; justify-content: flex-start; }
    .user-menu > .dropdown { width: 100%; }
    .user-menu > .dropdown > a { font-size: 0.95rem; padding: 0.85rem 1rem; }
    .user-menu .dropdown-content { right: auto; left: 0; }
}

@media (max-width: 768px) {
    .carousel-container { height: 400px; }
    .carousel-inner h2 { font-size: 2rem; }
    .carousel-inner p { font-size: 1rem; }
    .carousel-item { padding: 2rem; }
    .stats-grid { grid-template-columns: 1fr; }
    .footer-content { grid-template-columns: 1fr; }
}

@media (max-width: 576px) {
    .form-container { padding: 1.6rem; margin: 1.5rem auto; }
    .carousel-container { height: 360px; }
    .section-title { font-size: 1.4rem; }
    .detail-cover { height: 200px; font-size: 4rem; }
    .project-grid { grid-template-columns: 1fr; }
}

/* ============ 传承人头像（真人照片，缺图回退图标） ============ */
.inheritor-avatar { position: relative; overflow: hidden; }
.inheritor-avatar .inheritor-photo {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 18%;
    border-radius: 50%;
    display: block;
    z-index: 1;
}

/* ============ 详情页：工艺流程步骤列表 ============ */
.step-list {
    list-style: none;
    margin: 1rem 0 0;
    display: grid;
    gap: 0.7rem;
}
.step-list li {
    display: flex;
    align-items: flex-start;
    gap: 0.9rem;
    padding: 0.85rem 1.1rem;
    background: var(--paper-2);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 0.93rem;
    color: var(--ink-2);
    line-height: 1.75;
    transition: var(--transition);
}
.step-list li:hover { border-color: var(--gold); background: var(--gold-soft); }
.step-list .step-no {
    flex: none;
    width: 1.7rem;
    height: 1.7rem;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--gold));
    color: #fff;
    font-size: 0.82rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 0.15rem;
}
.step-list .step-text { flex: 1; }

/* ============ 导航右上角：离线演示小标识 ============ */
.nav-offline-chip {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    margin-left: 8px;
    padding: 1px 10px;
    border-radius: 999px;
    border: 1px solid rgba(224, 200, 135, .45);
    background: rgba(224, 200, 135, .14);
    color: #f3e2b8;
    font-size: .72rem;
    cursor: pointer;
    transition: var(--transition);
    white-space: nowrap;
}
.nav-offline-chip:hover { background: rgba(224, 200, 135, .28); color: #fff; }
.nav-offline-chip i { font-size: .7rem; }

/* ============ 离线演示模式提示条 ============ */
.co-offline-note {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin-bottom: 1rem;
    padding: .6rem .85rem;
    border: 1px dashed var(--gold);
    border-radius: var(--radius-sm);
    background: rgba(193, 154, 75, .08);
    font-size: .82rem;
    line-height: 1.65;
    color: var(--ink-3);
}
.co-offline-note i { color: var(--gold); margin-top: 2px; }
.co-offline-note b { color: var(--ink-2); }

/* ============ 后端未连接：全局可操作横幅 ============ */
.bk-banner {
    position: fixed;
    left: 50%;
    bottom: 18px;
    transform: translateX(-50%);
    z-index: 3000;
    width: min(780px, calc(100vw - 24px));
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px 14px;
    border-radius: 14px;
    background: #fff8ea;
    border: 1px solid #e8c98a;
    box-shadow: 0 14px 34px rgba(36, 26, 18, .22);
    animation: bkIn .3s ease both;
}
@keyframes bkIn {
    from { opacity: 0; transform: translate(-50%, 14px); }
    to { opacity: 1; transform: translate(-50%, 0); }
}
.bk-banner .bk-ico { color: var(--warning); font-size: 1.15rem; margin-top: 2px; flex: 0 0 auto; }
.bk-body { flex: 1; min-width: 0; font-size: .84rem; line-height: 1.7; color: var(--ink-2); }
.bk-body b { display: block; font-size: .93rem; color: var(--danger); margin-bottom: 2px; }
.bk-body code { background: rgba(0, 0, 0, .05); padding: 0 4px; border-radius: 4px; }
.bk-actions { display: flex; align-items: center; gap: 8px; flex: 0 0 auto; flex-wrap: wrap; }
.bk-btn {
    font-family: inherit; font-size: .8rem; font-weight: 600;
    padding: 6px 12px; border-radius: 8px;
    border: 1px solid var(--primary); background: var(--primary); color: #fff; cursor: pointer;
}
.bk-btn:hover { background: var(--primary-dark); }
.bk-btn:disabled { opacity: .6; cursor: not-allowed; }
.bk-link {
    font-size: .8rem; color: var(--primary); font-weight: 600; white-space: nowrap;
    border-bottom: 1px dashed rgba(163, 36, 44, .5);
}
.bk-x { border: none; background: none; font-size: 1.15rem; line-height: 1; color: var(--muted); cursor: pointer; padding: 2px 4px; }
.bk-x:hover { color: var(--ink); }
@media (max-width: 640px) {
    .bk-banner { flex-direction: column; align-items: stretch; gap: 8px; }
    .bk-actions { justify-content: flex-end; }
    body.has-bk-banner { padding-bottom: 176px; }
}
/* 横幅出现时给页面留出空间，避免挡住内容按钮 */
body.has-bk-banner { padding-bottom: 112px; }

/* ============ 小屏优化：统计数字两列 + 轮播箭头缩小 ============ */
@media (max-width: 576px) {
    .stats-strip {
        grid-template-columns: repeat(2, 1fr);
        gap: .7rem;
        padding: 1.1rem .9rem;
        border-radius: var(--radius);
    }
    .stat-cell { padding: .4rem .3rem .5rem; border-radius: 10px; }
    .stat-cell .num { font-size: 1.85rem; }
    .stat-cell .lbl { font-size: .78rem; letter-spacing: 0; }
    a.stat-cell::after { font-size: .66rem; }
    .stat-cell:last-child { grid-column: 1 / -1; }
    .carousel-control { width: 34px; height: 34px; font-size: .8rem; opacity: .78; }
    .logo-mark { width: 42px; height: 42px; }
    .logo-text .zh { font-size: 1.15rem; }
    .logo-text .en { font-size: .54rem; letter-spacing: 2px; }
    .category-grid { grid-template-columns: repeat(2, 1fr); gap: .8rem; }
    .category-card { padding: 1.1rem .8rem 1rem; }
    .category-card .cat-icon { width: 46px; height: 46px; font-size: 1.2rem; }
    .category-card h3 { font-size: .98rem; }
    .category-card p { font-size: .74rem; }
}


/* 仅屏幕阅读器可见（用于给页面补一个语义 h1，不改变视觉） */
.sr-only {
    position: absolute !important;
    width: 1px; height: 1px;
    padding: 0; margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* 共创项目卡片：任务状态小标签 */
.co-chip-row { display: flex; flex-wrap: wrap; gap: .3rem; margin-top: .45rem; }
.co-chip {
    display: inline-flex; align-items: center; gap: 4px;
    font-size: .72rem; line-height: 1;
    padding: 3px 7px; border-radius: 999px;
    color: var(--muted); background: rgba(138,122,99,.10);
    border: 1px solid transparent;
}
.co-chip i { font-size: .66rem; }
.co-chip-done { color: var(--success); background: rgba(47,143,95,.12); }
.co-chip-review { color: var(--warning); background: rgba(208,138,46,.14); }
.co-chip-doing { color: var(--blue); background: rgba(47,90,143,.12); }