/* heritage-detail.css - 建筑遗产详情页（建筑博览风 · 保护指标可视化 · 红色系色阶） */

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

:root {
    --bg: #0a0806;
    --bg-2: #14100c;
    --bg-3: #1c1710;
    --card: #16110c;
    --gold: #d4a24c;
    --gold-bright: #f0c674;
    --gold-deep: #8b6f3a;
    --gold-glow: rgba(212, 162, 76, 0.28);
    --paper: #ede5d8;
    --paper-2: rgba(237, 229, 216, 0.72);
    --paper-3: rgba(237, 229, 216, 0.45);
    --border: rgba(212, 162, 76, 0.15);
    --border-2: rgba(212, 162, 76, 0.35);
    --radius-sm: 6px;
    --radius: 10px;
    --radius-lg: 14px;
    --radius-xl: 20px;
    --mono: "SF Mono", "JetBrains Mono", "Consolas", "Monaco", monospace;
    --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "PingFang SC", "Microsoft YaHei", sans-serif;
}

html { scroll-behavior: smooth; }

body {
    background: var(--bg);
    color: var(--paper);
    font-family: var(--sans);
    font-size: 16px;
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    min-height: 100vh;
    overflow-x: hidden;
    background-image:
        radial-gradient(circle at 15% 20%, rgba(212,162,76,0.04) 0%, transparent 45%),
        radial-gradient(circle at 85% 80%, rgba(212,162,76,0.03) 0%, transparent 45%);
    background-attachment: fixed;
}

/* ============ HERO ============ */
.hero-full {
    position: relative;
    width: 100%;
    height: 640px;
    overflow: hidden;
    background: #000;
}
.hero-bg-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.58) contrast(1.06) saturate(0.95);
    transform: scale(1.02);
    transition: transform 15s ease-out;
    z-index: 0;
}
.hero-full:hover .hero-bg-img { transform: scale(1.06); }

.hero-scrim {
    position: absolute;
    inset: 0;
    z-index: 1;
    background:
        linear-gradient(180deg,
            rgba(10, 8, 6, 0.45) 0%,
            rgba(10, 8, 6, 0.1) 35%,
            rgba(10, 8, 6, 0.55) 70%,
            rgba(10, 8, 6, 1) 100%
        ),
        linear-gradient(90deg, rgba(10, 8, 6, 0.4) 0%, transparent 50%);
}

.hero-inner {
    position: absolute;
    inset: 0;
    z-index: 2;
    max-width: 1280px;
    margin: 0 auto;
    padding: 40px 48px 80px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.hero-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 20px;
    flex-wrap: wrap;
}
.hero-tag {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 20px;
    background: rgba(8, 6, 4, 0.6);
    border: 1px solid var(--border-2);
    border-radius: 100px;
    backdrop-filter: blur(8px);
    font-family: var(--mono);
    font-size: 0.72rem;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: var(--gold);
}
.hero-tag::before {
    content: "";
    display: inline-block;
    width: 6px; height: 6px;
    border-radius: 50%;
    background: var(--gold);
    box-shadow: 0 0 10px var(--gold-glow);
}
.hero-num {
    font-family: var(--mono);
    font-size: 0.8rem;
    letter-spacing: 3px;
    color: var(--gold);
    font-weight: 700;
    padding: 10px 18px;
    border: 1px solid var(--border-2);
    border-radius: 100px;
    background: rgba(8, 6, 4, 0.6);
    backdrop-filter: blur(8px);
}

.hero-bottom {
    display: flex;
    flex-direction: column;
    gap: 20px;
    max-width: 820px;
}
.hero-title {
    font-size: clamp(2.8rem, 7vw, 5.2rem);
    font-weight: 900;
    line-height: 1.02;
    letter-spacing: -0.03em;
    color: #fff;
    text-shadow: 0 4px 60px rgba(0,0,0,0.75), 0 2px 20px rgba(0,0,0,0.5);
    margin: 0;
}
.hero-sub-row {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}
.hero-sub-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border-radius: 100px;
    font-size: 0.9rem;
    font-family: var(--mono);
    letter-spacing: 1px;
    background: rgba(0,0,0,0.5);
    border: 1px solid var(--border);
    color: var(--paper);
    backdrop-filter: blur(6px);
}
.hero-sub-tag i { color: var(--gold); font-size: 0.85em; }

/* ============ 关键指标面板 ============ */
.metrics-panel {
    max-width: 1280px;
    margin: -60px auto 0;
    padding: 0 48px;
    position: relative;
    z-index: 5;
}
.metrics-card {
    background: var(--bg-2);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: 32px 36px;
    box-shadow: 0 30px 70px rgba(0, 0, 0, 0.7);
    position: relative;
    overflow: hidden;
}
.metrics-card::before {
    content: "";
    position: absolute;
    top: 0; left: 50%;
    transform: translateX(-50%);
    width: 60%; height: 1px;
    background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

/* ============ 保护级别：色阶条 ============ */
.level-block {
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding-bottom: 28px;
    margin-bottom: 24px;
    border-bottom: 1px solid var(--border);
}
.level-block-head {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 16px;
    flex-wrap: wrap;
}
.level-block-label {
    font-family: var(--mono);
    font-size: 0.75rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--gold);
}
.level-block-value {
    font-size: 1.45rem;
    font-weight: 800;
    color: var(--paper);
    letter-spacing: -0.01em;
    line-height: 1.3;
}

.level-scale {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 8px;
    margin-top: 4px;
}
.level-step {
    display: flex;
    flex-direction: column;
    gap: 10px;
    transition: all 0.3s ease;
}
.level-step-bar {
    height: 12px;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.6s cubic-bezier(0.25, 0.8, 0.25, 1);
    position: relative;
    overflow: hidden;
}
.level-step.filled .level-step-bar {
    background: var(--step-color, #b84c48);
    border-color: color-mix(in srgb, var(--step-color, #b84c48) 50%, transparent);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.3),
        0 0 12px color-mix(in srgb, var(--step-color, #b84c48) 55%, transparent);
}
.level-step.current .level-step-bar {
    background: var(--step-color, #ee5844);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.6),
        inset 0 -1px 0 rgba(0, 0, 0, 0.15),
        0 0 18px color-mix(in srgb, var(--step-color, #ee5844) 60%, transparent),
        0 0 0 1px color-mix(in srgb, var(--step-color, #ee5844) 60%, transparent);
    animation: levelBarBreath 2.6s ease-in-out infinite;
}
@keyframes levelBarBreath {
    0%, 100% {
        box-shadow:
            inset 0 1px 0 rgba(255, 255, 255, 0.6),
            inset 0 -1px 0 rgba(0, 0, 0, 0.15),
            0 0 12px color-mix(in srgb, var(--step-color, #ee5844) 45%, transparent),
            0 0 0 1px color-mix(in srgb, var(--step-color, #ee5844) 45%, transparent);
    }
    50% {
        box-shadow:
            inset 0 1px 0 rgba(255, 255, 255, 0.78),
            inset 0 -1px 0 rgba(0, 0, 0, 0.15),
            0 0 28px color-mix(in srgb, var(--step-color, #ee5844) 85%, transparent),
            0 0 0 1px color-mix(in srgb, var(--step-color, #ee5844) 75%, transparent);
    }
}
.level-step-label {
    font-family: var(--mono);
    font-size: 0.68rem;
    letter-spacing: 1.2px;
    text-align: center;
    color: var(--paper-3);
    transition: color 0.3s;
    line-height: 1.35;
}
.level-step.filled .level-step-label {
    color: var(--paper-2);
}
.level-step.current .level-step-label {
    color: var(--step-color, #ee5844);
    font-weight: 700;
    text-shadow: 0 0 12px color-mix(in srgb, var(--step-color, #ee5844) 55%, transparent);
}

/* ============ 三栏独立卡片：保存状态 / 参观条件 / 参观须知 ============ */
.preservation-block {
    display: flex;
    gap: 16px;
    padding-bottom: 28px;
    margin-bottom: 24px;
    border-bottom: 1px solid var(--border);
}

.mp-card {
    flex: 1 1 0;
    min-width: 0;
    background: var(--bg-3);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 22px 24px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    position: relative;
    overflow: hidden;
    transition: border-color 0.3s, box-shadow 0.3s;
}
.mp-card::before {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--gold-deep), transparent);
    opacity: 0.55;
}
.mp-card:hover {
    border-color: var(--border-2);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.45);
}

.mp-card-label {
    font-family: var(--mono);
    font-size: 0.72rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--gold);
    padding-bottom: 12px;
    border-bottom: 1px dashed var(--border);
}

.mp-card-value {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--paper);
    letter-spacing: -0.01em;
    line-height: 1.3;
    display: flex;
    align-items: center;
    gap: 10px;
    word-break: break-word;
}

/* 卡片内进度条 */
.mp-card .progress-bar {
    height: 10px;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 5px;
    overflow: hidden;
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.04);
    box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.6);
    margin-top: auto;
}
.mp-card .progress-fill {
    height: 100%;
    border-radius: 5px;
    background: linear-gradient(90deg, var(--progress-start, #f0c674), var(--progress-end, #d4a24c));
    transition: width 1.6s cubic-bezier(0.25, 0.8, 0.25, 1);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.3),
        inset 0 -1px 0 rgba(0, 0, 0, 0.2),
        0 0 14px var(--progress-glow, var(--gold-glow));
    width: 0;
    position: relative;
    overflow: hidden;
}
.mp-card .progress-fill::after {
    content: "";
    position: absolute;
    top: 0; left: -45%;
    width: 45%; height: 100%;
    background: linear-gradient(90deg,
        rgba(255,255,255,0) 0%,
        rgba(255,255,255,0.5) 40%,
        rgba(255,255,255,0.95) 50%,
        rgba(255,255,255,0.5) 60%,
        rgba(255,255,255,0) 100%);
    transform: skewX(-18deg);
    pointer-events: none;
    opacity: 0;
    filter: blur(0.4px);
}
.mp-card:hover .progress-fill::after {
    opacity: 1;
    animation: progressShine 2s ease-in-out infinite;
}
@keyframes progressShine {
    0%   { left: -45%; }
    55%  { left: 110%; }
    100% { left: 110%; }
}

/* 卡片内参观条件 */
.mp-card .visit-condition {
    display: flex;
    align-items: center;
    gap: 14px;
    margin: 0;
}
.mp-card .visit-condition-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--vc-color, #22c55e);
    background: color-mix(in srgb, var(--vc-color, #22c55e) 12%, transparent);
    border: 1.5px solid color-mix(in srgb, var(--vc-color, #22c55e) 45%, transparent);
    flex-shrink: 0;
    animation: visitIconBreath var(--vc-breath, 2.8s) ease-in-out infinite;
    position: relative;
}
.mp-card .visit-condition-icon::before {
    content: "";
    position: absolute;
    inset: -6px;
    border-radius: 50%;
    border: 1px solid color-mix(in srgb, var(--vc-color, #22c55e) 25%, transparent);
    animation: visitIconRipple var(--vc-breath, 2.8s) ease-out infinite;
}
.mp-card .visit-condition-text {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--paper);
    letter-spacing: -0.01em;
    line-height: 1.25;
    word-break: break-word;
}
@keyframes visitIconBreath {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 0 10px color-mix(in srgb, var(--vc-color, #22c55e) calc(var(--vc-glow, 0.5) * 60%), transparent);
    }
    50% {
        transform: scale(1.08);
        box-shadow:
            0 0 26px color-mix(in srgb, var(--vc-color, #22c55e) calc(var(--vc-glow, 0.5) * 130%), transparent),
            0 0 0 1px color-mix(in srgb, var(--vc-color, #22c55e) 40%, transparent);
    }
}
@keyframes visitIconRipple {
    0%   { opacity: 0.6; transform: scale(1); }
    70%  { opacity: 0;   transform: scale(1.35); }
    100% { opacity: 0;   transform: scale(1.35); }
}
.mp-card .visit-condition.vc-danger .visit-condition-icon {
    animation-timing-function: cubic-bezier(.5, 0, .5, 1);
}

/* 卡片内参观须知 */
.visit-notes-mini {
    margin: 0;
    font-size: 0.96rem;
    line-height: 1.75;
    color: var(--paper-2);
    letter-spacing: 0.2px;
    max-height: 110px;
    overflow-y: auto;
    padding-right: 8px;
}
.visit-notes-mini p {
    margin: 0 0 8px 0;
    padding-left: 16px;
    position: relative;
}
.visit-notes-mini p::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.72em;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--gold);
    box-shadow: 0 0 8px var(--gold-glow);
}
.visit-notes-mini p:last-child { margin-bottom: 0; }
.visit-notes-mini::-webkit-scrollbar { width: 4px; }
.visit-notes-mini::-webkit-scrollbar-track { background: transparent; }
.visit-notes-mini::-webkit-scrollbar-thumb {
    background: var(--gold-deep);
    border-radius: 2px;
}
.visit-notes-mini::-webkit-scrollbar-thumb:hover { background: var(--gold); }

/* ============ 底部信息条 ============ */
.metrics-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
    gap: 4px;
}
.metric-info-item {
    padding: 16px 18px;
    border-right: 1px dashed var(--border);
    transition: background 0.25s;
    border-radius: var(--radius-sm);
}
.metric-info-item:last-child { border-right: none; }
.metric-info-item:hover { background: rgba(212,162,76,0.03); }
.metric-info-label {
    font-family: var(--mono);
    font-size: 0.68rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--paper-3);
    margin-bottom: 8px;
}
.metric-info-value {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--paper);
    letter-spacing: 0.2px;
    line-height: 1.35;
    word-break: break-word;
}

/* 底部信息条中的车站链接 */
.metric-info-station .metric-station-link {
    color: var(--gold-bright);
    text-decoration: none;
    border-bottom: 1px dashed rgba(240, 198, 116, 0.35);
    transition: all 0.2s ease;
    display: inline-block;
}
.metric-info-station .metric-station-link:hover {
    color: #fff;
    border-bottom-color: var(--gold-bright);
}

/* ============ MAIN ============ */
.main-wrap {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 48px 80px;
}
.section-block {
    padding: 80px 0;
    position: relative;
}
.section-block + .section-block {
    border-top: 1px solid var(--border);
}
.chapter-head {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 44px;
    padding-bottom: 22px;
    border-bottom: 1px solid var(--border);
    position: relative;
    flex-wrap: wrap;
}
.chapter-head::after {
    content: "";
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 80px;
    height: 2px;
    background: linear-gradient(90deg, var(--gold), transparent);
}
.chapter-num-wrap {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 8px 16px;
    background: var(--bg-2);
    border: 1px solid var(--border);
    border-radius: 100px;
}
.chapter-num-dot {
    width: 10px; height: 10px;
    border-radius: 50%;
    background: var(--gold);
    box-shadow: 0 0 14px var(--gold-glow);
    flex-shrink: 0;
}
.chapter-num {
    font-family: var(--mono);
    font-size: 1rem;
    letter-spacing: 2px;
    color: var(--gold);
    font-weight: 700;
}
.chapter-name {
    font-size: clamp(1.8rem, 3.5vw, 2.4rem);
    font-weight: 800;
    color: var(--paper);
    letter-spacing: -0.015em;
    line-height: 1.2;
    margin: 0;
}
.chapter-name-en {
    font-family: var(--mono);
    font-size: 0.85rem;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: var(--paper-3);
    margin-left: auto;
}

/* ============ 画廊 ============ */
.gallery-main-frame {
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #000;
    overflow: hidden;
    border-radius: var(--radius-xl);
    cursor: zoom-in;
    position: relative;
    box-shadow:
        0 20px 50px rgba(0, 0, 0, 0.55),
        0 0 0 1px var(--border);
    transition: box-shadow 0.4s ease;
}
.gallery-main-frame::before {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--gold-bright), transparent);
    z-index: 2;
    opacity: 0;
    transition: opacity 0.3s;
}
.gallery-main-frame:hover::before { opacity: 1; }
.gallery-main-frame:hover {
    box-shadow:
        0 24px 60px rgba(0, 0, 0, 0.7),
        0 0 0 1px var(--border-2),
        0 0 60px rgba(212, 162, 76, 0.15);
}
.gallery-main-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity 0.35s, transform 1s;
    display: block;
}
.gallery-main-frame:hover img { transform: scale(1.015); }

.thumbs-strip {
    display: flex;
    gap: 12px;
    margin-top: 18px;
    overflow-x: auto;
    padding: 4px 2px 10px;
    scrollbar-width: thin;
}
.thumbs-strip::-webkit-scrollbar { height: 4px; }
.thumbs-strip::-webkit-scrollbar-track { background: transparent; }
.thumbs-strip::-webkit-scrollbar-thumb {
    background: var(--gold-deep);
    border-radius: 2px;
}
.thumb-cell {
    flex-shrink: 0;
    width: 120px;
    height: 82px;
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    cursor: pointer;
    transition: all 0.25s;
    background: #000;
    position: relative;
}
.thumb-cell img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.55;
    transition: opacity 0.25s;
    display: block;
}
.thumb-cell:hover {
    border-color: var(--border-2);
    transform: translateY(-3px);
}
.thumb-cell:hover img { opacity: 0.9; }
.thumb-cell.active {
    border-color: var(--gold);
    box-shadow: 0 0 0 1px var(--gold), 0 0 20px var(--gold-glow);
}
.thumb-cell.active img { opacity: 1; }

.gallery-caption-bar {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 24px;
    margin-top: 20px;
    padding: 18px 24px;
    background: var(--bg-2);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    border-left: 4px solid var(--gold);
}
.caption-main {
    font-size: 1rem;
    color: var(--paper-2);
    line-height: 1.7;
    flex: 1;
    min-height: 1.7em;
}
.caption-main:empty::before {
    content: "—";
    opacity: 0.3;
}
.caption-year {
    font-family: var(--mono);
    font-size: 0.88rem;
    color: var(--gold);
    letter-spacing: 2px;
    white-space: nowrap;
    padding: 6px 14px;
    border: 1px solid var(--border-2);
    border-radius: 100px;
}
.caption-year:empty { display: none; }

/* ============ 建筑志 ============ */
.facts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 16px;
}
.fact-card {
    padding: 22px 24px;
    background: var(--bg-2);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}
.fact-card::before {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--gold-deep), transparent);
    opacity: 0.6;
}
.fact-card:hover {
    border-color: var(--border-2);
    transform: translateY(-3px);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5);
}
.fact-label {
    font-family: var(--mono);
    font-size: 0.9rem;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.fact-label i { font-size: 0.9rem; }
.fact-value {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--paper);
    line-height: 1.45;
    letter-spacing: 0.2px;
    word-break: break-word;
}
.fact-card.full {
    grid-column: 1 / -1;
}
.fact-card.full .fact-value {
    font-size: 1rem;
    font-weight: 400;
    color: var(--paper-2);
    line-height: 1.85;
}

/* ============ 介绍 ============ */
.intro-block {
    display: flex;
    flex-direction: column;
    gap: 24px;
}
.intro-card {
    padding: 36px 40px;
    background: var(--bg-2);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    position: relative;
    overflow: hidden;
}
.intro-card::before {
    content: "";
    position: absolute;
    left: 0; top: 0; bottom: 0;
    width: 4px;
    background: linear-gradient(180deg, var(--gold-bright), var(--gold-deep));
    border-radius: var(--radius-xl) 0 0 var(--radius-xl);
    box-shadow: 0 0 20px var(--gold-glow);
}
.intro-card-head {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 24px;
    padding-bottom: 18px;
    border-bottom: 1px dashed var(--border);
}
.intro-card-icon {
    width: 46px;
    height: 46px;
    border-radius: var(--radius);
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gold);
    font-size: 1.25rem;
    flex-shrink: 0;
}
.intro-card-title {
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--paper);
    letter-spacing: -0.01em;
    line-height: 1.25;
    margin: 0;
}
.intro-card-body {
    font-size: 1.08rem;
    line-height: 2.05;
    color: var(--paper-2);
    letter-spacing: 0.3px;
}
.intro-card-body p {
    margin: 0 0 18px 0;
    text-align: justify;
}
.intro-card-body p:last-child { margin-bottom: 0; }

.intro-empty {
    padding: 60px 20px;
    text-align: center;
    color: var(--paper-3);
    font-family: var(--mono);
    font-size: 0.95rem;
    letter-spacing: 2px;
    border: 1px dashed var(--border);
    border-radius: var(--radius-xl);
    background: var(--bg-2);
}

/* ============ 访客（仅移动端） ============ */
.visitor-section {
    padding: 60px 0 40px;
}
.visitor-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 24px;
}
.action-card {
    padding: 22px 22px;
    background: var(--bg-2);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    position: relative;
    overflow: hidden;
    transition: border-color 0.3s;
}
.action-card::before {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--gold-deep), transparent);
    opacity: 0.6;
}
.action-card:hover { border-color: var(--border-2); }
.action-card-label {
    font-family: var(--mono);
    font-size: 0.68rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.action-card-label i { font-size: 0.9rem; }

.checkin-main-btn {
    width: 100%;
    padding: 14px;
    background: transparent;
    border: 1.5px solid var(--gold);
    border-radius: var(--radius);
    color: var(--gold);
    font-family: inherit;
    font-size: 0.92rem;
    font-weight: 700;
    letter-spacing: 3px;
    text-indent: 3px;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}
.checkin-main-btn:hover:not(:disabled) {
    background: var(--gold);
    color: var(--bg);
    box-shadow: 0 0 30px var(--gold-glow);
}
.checkin-main-btn:disabled {
    opacity: 0.35;
    cursor: not-allowed;
}
.checkin-tip {
    font-size: 0.78rem;
    color: var(--paper-3);
    text-align: center;
    margin-top: 12px;
    font-family: var(--mono);
    letter-spacing: 1px;
    min-height: 1.4em;
    line-height: 1.6;
}
.checkin-done-row {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding: 6px 0;
}
.checkin-done-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border: 1px solid var(--gold);
    border-radius: 100px;
    color: var(--gold-bright);
    font-size: 0.88rem;
    letter-spacing: 1px;
    background: rgba(212,162,76,0.06);
    box-shadow: 0 0 20px var(--gold-glow);
}
.checkin-done-badge i { color: #4CAF50; }
.checkin-redownload {
    font-size: 0.78rem;
    color: var(--gold);
    cursor: pointer;
    text-decoration: underline;
    text-underline-offset: 4px;
    letter-spacing: 1px;
}

.rating-stars-lg {
    display: flex;
    gap: 6px;
    font-size: 2rem;
    cursor: pointer;
    line-height: 1;
    margin-bottom: 14px;
}
.rating-stars-lg .star {
    color: rgba(237,229,216,0.1);
    transition: all 0.25s;
    user-select: none;
}
.rating-stars-lg .star.active {
    color: var(--gold-bright);
    text-shadow: 0 0 18px var(--gold-glow);
}
.rating-stars-lg.disabled .star { pointer-events: none; }
.rating-stars-lg.disabled .star.active {
    color: rgba(240,198,116,0.3);
    text-shadow: none;
}
.rating-info-line {
    font-size: 0.9rem;
    color: var(--paper-2);
    letter-spacing: 0.5px;
}
.rating-info-line .rating-num {
    font-family: var(--mono);
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--gold-bright);
    letter-spacing: 0;
    margin: 0 3px;
}
.rating-lock-tip {
    font-size: 0.78rem;
    color: var(--paper-3);
    margin-top: 10px;
    font-family: var(--mono);
    letter-spacing: 1px;
}

.comments-panel {
    margin-top: 16px;
}
.comments-panel-head {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    padding-bottom: 14px;
    margin-bottom: 18px;
    border-bottom: 1px solid var(--border);
}
.comments-panel-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--paper);
    letter-spacing: 0.5px;
}
.comments-panel-count {
    font-family: var(--mono);
    font-size: 0.78rem;
    color: var(--gold);
    letter-spacing: 2px;
}
.comment-form-box {
    margin-bottom: 20px;
    padding: 16px;
    background: var(--bg-2);
    border: 1px solid var(--border);
    border-radius: var(--radius);
}
.comment-form-box textarea {
    width: 100%;
    background: rgba(0,0,0,0.4);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--paper);
    font-family: inherit;
    font-size: 0.95rem;
    padding: 12px 14px;
    line-height: 1.7;
    resize: vertical;
    min-height: 80px;
    transition: border-color 0.2s, box-shadow 0.2s;
}
.comment-form-box textarea:focus {
    outline: none;
    border-color: var(--gold);
    box-shadow: 0 0 0 3px rgba(212,162,76,0.1);
}
.comment-form-box textarea::placeholder { color: var(--paper-3); }
.comment-submit-btn {
    margin-top: 12px;
    padding: 10px 26px;
    background: var(--gold);
    color: var(--bg);
    border: none;
    border-radius: 100px;
    font-family: inherit;
    font-size: 0.88rem;
    font-weight: 700;
    letter-spacing: 2px;
    cursor: pointer;
    transition: all 0.25s;
}
.comment-submit-btn:hover:not(:disabled) {
    background: var(--gold-bright);
    transform: translateY(-1px);
    box-shadow: 0 8px 24px var(--gold-glow);
}
.comment-submit-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}
.comment-item-new {
    padding: 16px 18px;
    background: var(--bg-2);
    border-radius: 0 var(--radius) var(--radius) 0;
    border-left: 3px solid var(--gold);
    margin-bottom: 10px;
    transition: all 0.25s;
}
.comment-item-new:hover {
    transform: translateX(3px);
    border-left-color: var(--gold-bright);
}
.comment-meta-new {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 12px;
    margin-bottom: 8px;
}
.comment-name-new {
    color: var(--gold);
    font-weight: 700;
    font-size: 0.92rem;
}
.comment-time-new {
    font-family: var(--mono);
    font-size: 0.72rem;
    color: var(--paper-3);
}
.comment-text-new {
    color: var(--paper-2);
    font-size: 0.95rem;
    line-height: 1.8;
}
.empty-comments {
    padding: 40px 20px;
    text-align: center;
    color: var(--paper-3);
    font-family: var(--mono);
    font-size: 0.88rem;
    letter-spacing: 2px;
    border: 1px dashed var(--border);
    border-radius: var(--radius);
}
.load-more-btn {
    padding: 10px 24px;
    background: transparent;
    border: 1px solid var(--gold);
    color: var(--gold);
    font-family: inherit;
    font-size: 0.85rem;
    letter-spacing: 2px;
    cursor: pointer;
    transition: all 0.25s;
    border-radius: 100px;
}
.load-more-btn:hover {
    background: var(--gold);
    color: var(--bg);
}

/* ============ 底部操作栏 ============ */
.action-bar {
    max-width: 1280px;
    margin: 0 auto;
    padding: 40px 48px 80px;
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
}
.action-btn-new {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 26px;
    background: var(--bg-2);
    border: 1px solid var(--border);
    color: var(--gold);
    text-decoration: none;
    font-family: inherit;
    font-size: 0.92rem;
    font-weight: 600;
    letter-spacing: 1.5px;
    cursor: pointer;
    transition: all 0.3s;
    border-radius: 100px;
}
.action-btn-new:hover {
    background: var(--gold);
    color: var(--bg);
    border-color: var(--gold);
    transform: translateY(-2px);
    box-shadow: 0 10px 26px var(--gold-glow);
}
.action-btn-new.close-btn {
    border-color: rgba(238, 88, 68, 0.4);
    color: #ee5844;
}
.action-btn-new.close-btn:hover {
    background: #ee5844;
    color: #fff;
    border-color: #ee5844;
    box-shadow: 0 10px 26px rgba(238, 88, 68, 0.35);
}

/* ============ Lightbox ============ */
.lightbox {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 10000;
    background: rgba(5, 4, 3, 0.97);
    backdrop-filter: blur(8px);
    align-items: center;
    justify-content: center;
    cursor: zoom-out;
}
.lightbox.active { display: flex; }
.lightbox img {
    max-width: 92%;
    max-height: 92%;
    object-fit: contain;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-2);
    box-shadow: 0 40px 80px rgba(0,0,0,0.85), 0 0 80px var(--gold-glow);
    cursor: default;
}
.lightbox-close {
    position: absolute;
    top: 24px; right: 30px;
    width: 48px; height: 48px;
    background: transparent;
    border: 1px solid var(--border-2);
    color: var(--gold);
    font-size: 1.6rem;
    line-height: 1;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s;
    z-index: 10001;
    font-family: inherit;
}
.lightbox-close:hover {
    background: var(--gold);
    color: var(--bg);
    transform: rotate(90deg);
}

/* ============ 响应式：900px ============ */
@media (max-width: 900px) {
    .hero-inner { padding: 32px; }
    .metrics-panel { padding: 0 32px; }
    .main-wrap { padding: 0 32px 50px; }
    .action-bar { padding: 30px 32px 60px; }
    .metrics-card { padding: 26px 24px; }
}

/* ============ 响应式：780px（三卡片竖排，修复高度塌陷） ============ */
@media (max-width: 780px) {
    .preservation-block {
        display: block;
    }
    .preservation-block .mp-card {
        flex: none;
        display: flex;
        margin-bottom: 12px;
        padding: 18px 20px;
        gap: 12px;
    }
    .preservation-block .mp-card:last-child {
        margin-bottom: 0;
    }
    .preservation-block .mp-card-value {
        font-size: 1.2rem;
        margin-top: 4px;
    }
    .preservation-block .mp-card .visit-condition-text {
        font-size: 1.2rem;
    }
    .preservation-block .mp-card .visit-condition-icon {
        width: 44px;
        height: 44px;
        font-size: 1.35rem;
    }
    .preservation-block .visit-notes-mini {
        max-height: none;
        font-size: 0.92rem;
    }
}

/* ============ 响应式：640px ============ */
@media (max-width: 640px) {
    .hero-full { height: 500px; }
    .hero-inner { padding: 22px 20px 70px; }
    .hero-title { font-size: 2.4rem; letter-spacing: -0.02em; }
    .hero-sub-tag { font-size: 0.78rem; padding: 6px 12px; }
    .hero-tag { font-size: 0.65rem; letter-spacing: 2.5px; padding: 8px 14px; }
    .hero-num { font-size: 0.7rem; padding: 8px 14px; }

    .metrics-panel { padding: 0 16px; margin-top: -40px; }
    .metrics-card { padding: 22px 18px; border-radius: var(--radius-lg); }
    .level-block { gap: 12px; padding-bottom: 22px; margin-bottom: 20px; }
    .level-block-value { font-size: 1.15rem; }
    .level-scale { gap: 5px; }
    .level-step { gap: 8px; }
    .level-step-bar { height: 10px; border-radius: 5px; }
    .level-step-label { font-size: 0.58rem; letter-spacing: 0.6px; }

    .metrics-info { grid-template-columns: repeat(2, 1fr); gap: 0; }
    .metric-info-item { padding: 12px 10px; }
    .metric-info-label { font-size: 0.62rem; letter-spacing: 1.5px; margin-bottom: 6px; }
    .metric-info-value { font-size: 0.92rem; }

    .main-wrap { padding: 0 20px 40px; }
    .section-block { padding: 55px 0; }
    .chapter-head { gap: 12px; margin-bottom: 30px; padding-bottom: 16px; }
    .chapter-num-wrap { padding: 6px 12px; gap: 8px; }
    .chapter-num-dot { width: 8px; height: 8px; }
    .chapter-num { font-size: 0.85rem; }
    .chapter-name { font-size: 1.5rem; }
    .chapter-name-en { font-size: 0.7rem; letter-spacing: 2.5px; margin-left: 0; width: 100%; }

    .gallery-main-frame { border-radius: var(--radius-lg); }
    .gallery-caption-bar {
        flex-direction: column;
        gap: 10px;
        padding: 14px 18px;
        border-radius: var(--radius);
    }
    .thumb-cell { width: 96px; height: 66px; border-radius: var(--radius-sm); }
    .thumbs-strip { gap: 8px; }

    .facts-grid { grid-template-columns: 1fr; gap: 10px; }
    .fact-card { padding: 18px; border-radius: var(--radius); }
    .fact-value { font-size: 1.05rem; }

    .intro-card { padding: 24px 22px; border-radius: var(--radius-lg); }
    .intro-card-head { padding-bottom: 14px; margin-bottom: 18px; gap: 10px; }
    .intro-card-icon { width: 38px; height: 38px; font-size: 1rem; }
    .intro-card-title { font-size: 1.3rem; }
    .intro-card-body { font-size: 1rem; line-height: 1.9; }

    .visitor-row { grid-template-columns: 1fr; gap: 12px; }
    .action-card { padding: 18px; border-radius: var(--radius); }
    .rating-stars-lg { font-size: 1.8rem; gap: 5px; }
    .checkin-main-btn { padding: 12px; font-size: 0.88rem; letter-spacing: 2px; text-indent: 2px; }

    .comment-form-box { padding: 14px; }
    .comment-item-new { padding: 14px 16px; }

    .action-bar { padding: 20px 20px 40px; gap: 8px; }
    .action-btn-new {
        padding: 12px 20px;
        font-size: 0.82rem;
        letter-spacing: 1px;
        flex: 1 1 calc(50% - 4px);
        justify-content: center;
    }

    .lightbox img { border-radius: var(--radius); }
}