* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    color: #1b1b18;
    font-family: "Microsoft YaHei", "PingFang SC", Arial, sans-serif;
    background: #ffffff;
}

.site-header {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    min-height: 58px;
    padding: 8px clamp(24px, 6vw, 92px);
    background: rgba(255, 255, 255, 0.82);
    border-bottom: 1px solid rgba(255, 255, 255, 0.92);
    box-shadow: 0 18px 48px rgba(39, 31, 20, 0.12);
    backdrop-filter: blur(18px) saturate(150%);
    -webkit-backdrop-filter: blur(18px) saturate(150%);
}

.brand {
    color: #16110d;
    font-family: "STXingkai", "FZShuTi", "KaiTi", "Microsoft YaHei", cursive;
    font-size: clamp(26px, 3vw, 40px);
    font-weight: 700;
    line-height: 1;
    letter-spacing: 0.08em;
    text-decoration: none;
    text-shadow: 0 2px 8px rgba(255, 255, 255, 0.45);
    white-space: nowrap;
}

.header-sentence {
    margin: 0;
    color: rgba(18, 16, 13, 0.88);
    font-family: "KaiTi", "STKaiti", "Microsoft YaHei", serif;
    font-size: clamp(14px, 1.45vw, 20px);
    letter-spacing: 0.08em;
    text-align: right;
    text-shadow: 0 1px 10px rgba(255, 255, 255, 0.55);
}

.hero-section {
    position: relative;
    min-height: 680px;
    overflow: hidden;
    isolation: isolate;
}

.hero-image {
    position: absolute;
    inset: 0;
    z-index: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transform: scale(1.02);
}

.hero-shadow {
    position: absolute;
    inset: 0;
    z-index: 1;
    background: rgba(255, 255, 255, 0.02);
}

.hero-section .waves {
    position: absolute;
    left: 0;
    bottom: 0;
    z-index: 2;
    width: 100%;
    height: 5rem;
    margin-bottom: 0;
    pointer-events: none;
}

.hero-section .parallax > use {
    animation: move-forever 25s cubic-bezier(0.55, 0.5, 0.45, 0.5) infinite;
}

.hero-section .parallax > use:nth-child(1) {
    animation-delay: -2s;
    animation-duration: 7s;
}

.hero-section .parallax > use:nth-child(2) {
    animation-delay: -3s;
    animation-duration: 10s;
}

.hero-section .parallax > use:nth-child(3) {
    animation-delay: -4s;
    animation-duration: 13s;
}

.hero-section .parallax > use:nth-child(4) {
    animation-delay: -5s;
    animation-duration: 20s;
}

@keyframes move-forever {
    0% {
        transform: translate3d(-90px, 0, 0);
    }

    100% {
        transform: translate3d(85px, 0, 0);
    }
}

.ancient-section {
    width: 100%;
    margin-top: 0;
    background: linear-gradient(180deg, #ffffff 0%, #eeeeee 100%);
}

.danmaku-box {
    position: relative;
    width: 100%;
    height: clamp(300px, 26vw, 360px);
    overflow: hidden;
    background: linear-gradient(180deg, #ffffff 0%, #f1f1f1 100%);
}

.ancient-image-box {
    position: relative;
    width: 100%;
    min-height: 680px;
    height: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.ancient-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 85%;
    transform: scale(1.02);
    z-index: 0;
}

.danmaku-layer {
    position: absolute;
    inset: 0;
    z-index: 1;
    overflow: hidden;
    pointer-events: none;
}

.danmaku-item {
    position: absolute;
    top: 0;
    left: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 6px 16px;
    color: var(--danmaku-color, rgba(32, 32, 32, 0.78));
    font-size: clamp(16px, 1.5vw, 24px);
    font-weight: 600;
    line-height: 1;
    letter-spacing: 0.08em;
    white-space: nowrap;
    background: rgba(255, 255, 255, 0.46);
    border: 1px solid rgba(255, 255, 255, 0.58);
    border-radius: 999px;
    box-shadow: 0 10px 26px rgba(0, 0, 0, 0.08);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    opacity: 0;
    pointer-events: auto;
    transform: translateX(100vw);
    will-change: transform;
}

.danmaku-item:hover {
    z-index: 3;
    color: rgba(20, 20, 20, 0.9);
    background: rgba(255, 255, 255, 0.82);
    border-color: rgba(255, 255, 255, 0.92);
    box-shadow: 0 14px 34px rgba(0, 0, 0, 0.14);
}

.floating-actions {
    position: fixed;
    right: clamp(18px, 3vw, 36px);
    bottom: clamp(20px, 4vw, 42px);
    z-index: 120;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.back-to-top {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    padding: 0;
    color: #ffffff;
    background: rgba(238, 166, 104, 0.82);
    border: 1px solid rgba(255, 218, 184, 0.92);
    border-radius: 999px;
    box-shadow: 0 14px 34px rgba(39, 31, 20, 0.18);
    cursor: pointer;
    opacity: 0;
    pointer-events: none;
    transform: translateY(14px);
    backdrop-filter: blur(16px) saturate(150%);
    -webkit-backdrop-filter: blur(16px) saturate(150%);
    transition: opacity 0.25s ease, transform 0.25s ease, background 0.25s ease, box-shadow 0.25s ease;
}

.back-to-top.is-visible {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

.back-to-top:hover {
    color: #ffffff;
    background: rgba(232, 143, 74, 0.94);
    box-shadow: 0 18px 42px rgba(39, 31, 20, 0.24);
    transform: translateY(-3px);
}

.back-to-top svg {
    width: 24px;
    height: 24px;
    fill: currentColor;
}

.floating-info-link,
.news-home-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    padding: 0;
    color: #ffffff;
    text-decoration: none;
    background: rgba(238, 166, 104, 0.9);
    border: 1px solid rgba(255, 218, 184, 0.96);
    border-radius: 999px;
    box-shadow: 0 12px 28px rgba(39, 31, 20, 0.16);
    backdrop-filter: blur(16px) saturate(150%);
    -webkit-backdrop-filter: blur(16px) saturate(150%);
    transition: transform 0.25s ease, background 0.25s ease, box-shadow 0.25s ease;
}

.floating-info-link svg,
.news-home-link svg {
    width: 23px;
    height: 23px;
    fill: currentColor;
}

.floating-info-link:hover,
.news-home-link:hover {
    background: rgba(232, 143, 74, 0.96);
    box-shadow: 0 16px 36px rgba(39, 31, 20, 0.22);
    transform: translateY(-3px);
}

.news-page {
    min-height: 100vh;
    background:
        radial-gradient(circle at top left, rgba(255, 212, 165, 0.52), transparent 32%),
        radial-gradient(circle at 90% 10%, rgba(183, 214, 255, 0.38), transparent 30%),
        linear-gradient(180deg, #fff8f0 0%, #f7efe6 48%, #fffaf4 100%);
}

.news-main {
    width: min(1540px, calc(100% - 168px));
    margin: 0 auto;
    padding: 118px 0 72px;
}

.news-hero {
    position: relative;
    margin-bottom: 34px;
}

.news-hero-card {
    position: relative;
    overflow: hidden;
    padding: clamp(34px, 6vw, 72px);
    color: #2d2117;
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(255, 238, 214, 0.78)),
        radial-gradient(circle at 85% 20%, rgba(238, 166, 104, 0.28), transparent 34%);
    border: 1px solid rgba(255, 255, 255, 0.92);
    border-radius: 34px;
    box-shadow: 0 24px 80px rgba(92, 61, 34, 0.14);
    backdrop-filter: blur(18px) saturate(140%);
    -webkit-backdrop-filter: blur(18px) saturate(140%);
}

.news-hero-card::after {
    position: absolute;
    right: -70px;
    bottom: -100px;
    width: 280px;
    height: 280px;
    content: "";
    background: linear-gradient(135deg, rgba(238, 166, 104, 0.28), rgba(255, 255, 255, 0));
    border-radius: 50%;
}

.news-eyebrow {
    display: inline-flex;
    align-items: center;
    margin-bottom: 14px;
    padding: 7px 14px;
    color: rgba(153, 86, 34, 0.92);
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    background: rgba(255, 235, 211, 0.76);
    border: 1px solid rgba(255, 209, 164, 0.74);
    border-radius: 999px;
}

.news-hero h1 {
    position: relative;
    z-index: 1;
    margin: 0;
    font-family: "STXingkai", "FZShuTi", "KaiTi", "Microsoft YaHei", cursive;
    font-size: clamp(46px, 8vw, 88px);
    line-height: 1;
    letter-spacing: 0.08em;
}

.news-hero p {
    position: relative;
    z-index: 1;
    max-width: 680px;
    margin: 18px 0 0;
    color: rgba(53, 40, 30, 0.76);
    font-size: clamp(16px, 2vw, 21px);
    line-height: 1.9;
}

.news-quick-links {
    position: sticky;
    top: 66px;
    z-index: 20;
    display: flex;
    flex-wrap: wrap;
    width: fit-content;
    gap: 12px;
    max-width: 100%;
    margin: -12px 0 22px;
    padding: 12px;
    background: rgba(255, 250, 245, 0.78);
    border: 1px solid rgba(255, 255, 255, 0.9);
    border-radius: 999px;
    box-shadow: 0 14px 38px rgba(92, 61, 34, 0.1);
    scroll-padding: 0 12px;
    backdrop-filter: blur(18px) saturate(145%);
    -webkit-backdrop-filter: blur(18px) saturate(145%);
}

.news-quick-links::-webkit-scrollbar {
    display: none;
}

.news-quick-links button {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    min-width: 70px;
    height: 38px;
    padding: 0 18px;
    color: rgba(80, 51, 31, 0.9);
    font-family: inherit;
    font-size: 15px;
    font-weight: 700;
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid rgba(255, 213, 173, 0.86);
    border-radius: 999px;
    box-shadow: 0 8px 22px rgba(92, 61, 34, 0.08);
    cursor: pointer;
    scroll-snap-align: center;
    transition: transform 0.25s ease, background 0.25s ease, color 0.25s ease, box-shadow 0.25s ease;
}

.news-quick-links button:hover,
.news-quick-links button.is-active {
    color: #ffffff;
    background: rgba(238, 166, 104, 0.94);
    box-shadow: 0 12px 26px rgba(224, 116, 66, 0.18);
    transform: translateY(-2px);
}

@media (min-width: 821px) {
    .news-quick-links {
        position: fixed;
        top: 50%;
        left: clamp(18px, 2.4vw, 42px);
        flex-direction: column;
        align-items: center;
        width: auto;
        max-width: none;
        gap: 14px;
        margin: 0;
        padding: 14px 10px;
        border-radius: 999px;
        transform: translateY(-50%);
    }

    .news-quick-links button {
        min-width: 46px;
        height: auto;
        min-height: 58px;
        padding: 12px 10px;
        line-height: 1.25;
        writing-mode: vertical-rl;
        text-orientation: upright;
        letter-spacing: 0.12em;
    }

    .news-quick-links button:hover,
    .news-quick-links button.is-active {
        transform: translateX(3px);
    }
}

.news-quick-links button:focus-visible,
.news-panel:focus-visible {
    outline: 3px solid rgba(238, 166, 104, 0.42);
    outline-offset: 4px;
}

.news-single {
    display: block;
}

.news-panel {
    display: none;
    overflow: hidden;
    padding: 24px;
    background: rgba(255, 255, 255, 0.76);
    border: 1px solid rgba(255, 255, 255, 0.88);
    border-radius: 28px;
    box-shadow: 0 20px 54px rgba(92, 61, 34, 0.12);
    backdrop-filter: blur(18px) saturate(145%);
    -webkit-backdrop-filter: blur(18px) saturate(145%);
}

.news-panel.is-active {
    display: block;
    animation: news-panel-in 0.28s ease both;
}

@keyframes news-panel-in {
    0% {
        opacity: 0;
        transform: translateY(12px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.news-panel-head {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 16px;
    align-items: start;
    margin-bottom: 18px;
}

.news-panel-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 54px;
    height: 54px;
    color: #ffffff;
    font-family: "KaiTi", "STKaiti", "Microsoft YaHei", serif;
    font-size: 24px;
    font-weight: 800;
    background: linear-gradient(135deg, rgba(238, 166, 104, 0.95), rgba(224, 116, 66, 0.92));
    border-radius: 18px;
    box-shadow: 0 12px 28px rgba(224, 116, 66, 0.22);
}

.news-panel-head span {
    color: rgba(196, 105, 52, 0.9);
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.14em;
}

.news-panel-head h2 {
    margin: 0 0 6px;
    color: #2b2118;
    font-size: clamp(22px, 3vw, 30px);
    line-height: 1.2;
}

.news-panel-head p {
    margin: 0;
    color: rgba(61, 46, 34, 0.68);
    font-size: 14px;
    line-height: 1.7;
}

.news-panel-meta {
    justify-self: end;
    padding: 7px 12px;
    color: rgba(145, 92, 54, 0.78);
    font-size: 12px;
    font-weight: 800;
    line-height: 1.5;
    white-space: nowrap;
    background: rgba(255, 246, 237, 0.82);
    border: 1px solid rgba(245, 221, 196, 0.88);
    border-radius: 999px;
}

.news-api-content {
    min-height: 0;
}

.population-view {
    display: grid;
    gap: 18px;
    width: 100%;
}

.news-panel[data-news-panel="population"],
.news-panel[data-news-panel="population"] .news-api-content,
.news-panel[data-news-panel="population"] .population-view {
    max-height: none;
    overflow: visible;
}

.population-summary-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    padding: 16px;
}

.population-summary-card,
.population-history-card {
    background: linear-gradient(135deg, rgba(255, 248, 240, 0.92), rgba(255, 255, 255, 0.72));
    border: 1px solid rgba(245, 221, 196, 0.9);
    border-radius: 20px;
}

.population-summary-card {
    display: grid;
    gap: 8px;
    padding: 16px;
}

.population-summary-card span,
.population-section-title span {
    color: rgba(145, 92, 54, 0.78);
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.08em;
}

.population-summary-card strong {
    color: rgba(42, 31, 22, 0.92);
    font-size: clamp(20px, 3vw, 30px);
    line-height: 1.2;
}

.population-history-card {
    min-width: 0;
    max-width: 100%;
    overflow: hidden;
}

.population-daily-charts {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.population-daily-charts .population-chart-card:first-child {
    grid-column: 1 / -1;
}

.population-daily-charts .population-chart-birth-death {
    grid-column: 1 / -1;
    width: 100%;
}

.population-daily-charts .population-chart-gender {
    grid-column: 1 / -1;
    width: 100%;
}

.population-section-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    position: relative;
    padding: 16px 18px;
    border-bottom: 1px solid rgba(245, 221, 196, 0.72);
}

.population-section-title strong {
    color: rgba(42, 31, 22, 0.72);
    font-size: 13px;
}

.population-section-actions {
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    gap: 14px;
    margin-left: auto;
}

.population-expand-summary {
    cursor: pointer;
    list-style: none;
}

.population-expand-body {
    overflow: hidden;
    height: 0;
    opacity: 0;
    transform: translateY(-8px);
    transition: height 0.34s ease, opacity 0.26s ease, transform 0.34s ease;
}

.population-expand[open] > .population-expand-body {
    height: auto;
    opacity: 1;
    transform: translateY(0);
}

.population-expand.is-animating > .population-expand-body {
    height: var(--population-expand-height, 0px);
}

.population-expand-summary::-webkit-details-marker {
    display: none;
}

.population-expand-arrow {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-right: 2px solid rgba(145, 92, 54, 0.78);
    border-bottom: 2px solid rgba(145, 92, 54, 0.78);
    transform: rotate(45deg);
    transition: transform 0.2s ease;
    flex: 0 0 auto;
}

.population-expand[open] > .population-expand-summary .population-expand-arrow {
    transform: rotate(225deg);
}

.movie-view {
    display: grid;
    gap: 18px;
}

.history-timeline-view {
    display: grid;
    grid-template-columns: 1fr;
    align-items: start;
    gap: 0;
    position: relative;
    padding-left: 0;
    min-width: min(760px, 100%);
}

.history-timeline-view::before {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 142px;
    width: 2px;
    content: "";
    background: linear-gradient(180deg, rgba(224, 116, 66, 0.18), rgba(224, 116, 66, 0.04));
    border-radius: 999px;
}

.history-timeline-item {
    display: grid;
    grid-template-columns: 128px minmax(0, 1fr);
    gap: 24px;
    position: relative;
    align-self: start;
    min-width: 0;
    padding: 10px 0;
    background: transparent;
    border: 0;
    border-radius: 0;
    box-shadow: none;
}

.history-item-link {
    color: inherit;
    text-decoration: none;
    cursor: pointer;
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.history-item-link:hover {
    transform: translateY(-2px);
}

.history-item-link:hover h3 {
    color: rgba(190, 86, 34, 0.98);
    text-decoration: underline;
    text-decoration-color: rgba(224, 116, 66, 0.82);
    text-decoration-thickness: 2px;
    text-underline-offset: 4px;
}

.history-item-link h3 {
    text-decoration: underline;
    text-decoration-color: rgba(224, 116, 66, 0.5);
    text-decoration-thickness: 2px;
    text-underline-offset: 4px;
}

.history-timeline-item:first-child.history-item-link h3 {
    text-decoration-color: rgba(224, 116, 66, 0.5);
}

.history-timeline-item:first-child {
    grid-template-columns: 128px minmax(0, 1fr);
    padding: 10px 0;
    background: transparent;
    border: 0;
    box-shadow: none;
}

.history-timeline-item::before {
    position: absolute;
    top: 22px;
    left: 136px;
    width: 12px;
    height: 12px;
    content: "";
    background: #fffaf4;
    border: 3px solid rgba(224, 116, 66, 0.82);
    border-radius: 50%;
    box-shadow: 0 0 0 6px rgba(224, 116, 66, 0.12);
}

.history-timeline-item:first-child::before {
    top: 22px;
    left: 136px;
    background: #fffaf4;
    border-color: rgba(224, 116, 66, 0.82);
    box-shadow: 0 0 0 6px rgba(224, 116, 66, 0.12);
}

.history-timeline-item time {
    display: grid;
    place-items: start end;
    min-width: 0;
    padding-top: 2px;
    color: rgba(145, 92, 54, 0.9);
    font-size: clamp(15px, 1.8vw, 18px);
    font-weight: 900;
    line-height: 1.15;
    text-align: right;
    white-space: nowrap;
}

.history-timeline-item:first-child time {
    color: rgba(145, 92, 54, 0.9);
    font-size: clamp(15px, 1.8vw, 18px);
    letter-spacing: 0;
}

.history-timeline-item div {
    min-width: 0;
    padding: 8px 0;
    border-left: 0;
}

.history-timeline-item:first-child div {
    border-left: 0;
}

.history-timeline-item h3 {
    margin: 0;
    color: rgba(42, 31, 22, 0.94);
    font-size: clamp(15px, 1.6vw, 17px);
    line-height: 1.55;
}

.history-timeline-item:first-child h3 {
    color: rgba(42, 31, 22, 0.94);
    font-size: clamp(15px, 1.6vw, 17px);
    line-height: 1.55;
}

.history-timeline-item p {
    margin: 5px 0 0;
    color: rgba(61, 46, 34, 0.68);
    font-size: 14px;
    line-height: 1.55;
}

.history-timeline-item:first-child p {
    color: rgba(61, 46, 34, 0.68);
    font-size: 14px;
}

.science-card-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.science-news-card {
    position: relative;
    display: grid;
    grid-template-columns: 1fr;
    min-width: 0;
    overflow: hidden;
    min-height: 0;
    padding: 12px 14px;
    background:
        linear-gradient(145deg, rgba(244, 251, 247, 0.94), rgba(255, 255, 255, 0.76)),
        radial-gradient(circle at 95% 8%, rgba(72, 148, 122, 0.16), transparent 36%);
    border: 1px solid rgba(198, 224, 214, 0.86);
    border-radius: 18px;
    box-shadow: 0 10px 24px rgba(37, 80, 68, 0.06);
}

.science-news-card.has-image {
    grid-template-columns: minmax(0, 1fr) 124px;
    gap: 12px;
}

.science-news-card::before {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 28px;
    height: 2px;
    content: "";
    background: linear-gradient(90deg, rgba(51, 126, 101, 0.9), rgba(129, 190, 164, 0));
    border-radius: 999px;
}

.science-news-card.has-image::before {
    display: none;
}

.science-news-image {
    order: 2;
    display: block;
    overflow: hidden;
    background: rgba(221, 241, 232, 0.72);
    border-radius: 12px;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.44);
}

.science-news-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.science-news-body {
    display: grid;
    align-content: start;
    gap: 6px;
    min-width: 0;
    padding: 0;
}

.science-news-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    color: rgba(31, 91, 78, 0.68);
    font-size: 12px;
    font-weight: 900;
}

.science-news-meta span,
.science-news-meta time {
    padding: 3px 7px;
    background: rgba(224, 246, 236, 0.66);
    border: 1px solid rgba(181, 224, 205, 0.68);
    border-radius: 999px;
}

.science-news-card h3 {
    margin: 0;
    color: rgba(25, 48, 43, 0.94);
    font-size: clamp(15px, 1.4vw, 17px);
    line-height: 1.4;
}

.science-news-card h3 a {
    color: inherit;
    text-decoration: none;
}

.science-news-card h3 a:hover {
    text-decoration: underline;
}

.science-news-card p {
    margin: 0;
    color: rgba(38, 62, 57, 0.72);
    font-size: 13px;
    line-height: 1.45;
}

.news-panel[data-news-panel="history"],
.news-panel[data-news-panel="daily"] {
    width: fit-content;
    max-width: 100%;
    margin-inline: auto;
}

.news-panel[data-news-panel="history"] .news-api-content,
.news-panel[data-news-panel="daily"] .news-api-content {
    width: fit-content;
    max-width: 100%;
    margin-inline: auto;
}

.news-panel[data-news-panel="history"] .history-timeline-view {
    width: fit-content;
    max-width: 100%;
    margin-inline: auto;
}

.daily-brief-view {
    overflow: hidden;
    width: fit-content;
    max-width: 100%;
    margin-inline: auto;
    background: linear-gradient(135deg, rgba(255, 252, 246, 0.96), rgba(245, 249, 255, 0.76));
    border: 1px solid rgba(226, 216, 196, 0.92);
    border-radius: 22px;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.62);
}

.daily-brief-head {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 16px;
    padding: 12px 16px;
    color: rgba(69, 54, 41, 0.86);
    background: rgba(255, 245, 230, 0.72);
    border-bottom: 1px solid rgba(226, 216, 196, 0.82);
}

.daily-brief-head span {
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.daily-brief-head strong {
    font-size: 18px;
    line-height: 1;
}

.daily-brief-list {
    display: grid;
    gap: 0;
    margin: 0;
    padding: 0;
    list-style: none;
    counter-reset: daily-brief;
}

.daily-brief-list li {
    display: grid;
    grid-template-columns: 46px minmax(0, 1fr);
    gap: 10px;
    padding: 10px 16px;
    color: rgba(43, 33, 24, 0.88);
    font-size: 15px;
    line-height: 1.75;
    counter-increment: daily-brief;
    border-bottom: 1px solid rgba(226, 216, 196, 0.56);
}

.daily-brief-list li span {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.daily-brief-list li:last-child {
    border-bottom: 0;
}

.daily-brief-list li::before {
    color: rgba(224, 116, 66, 0.9);
    font-size: 16px;
    font-weight: 950;
    content: counter(daily-brief, decimal-leading-zero);
}

.movie-rank-view {
    display: grid;
    gap: 12px;
}

.movie-rank-card {
    display: grid;
    grid-template-columns: 52px 64px minmax(0, 1fr);
    gap: 14px;
    align-items: center;
    padding: 14px;
    background: linear-gradient(135deg, rgba(255, 248, 240, 0.96), rgba(255, 255, 255, 0.78));
    border: 1px solid rgba(245, 221, 196, 0.86);
    border-radius: 18px;
}

.movie-rank-number {
    color: rgba(224, 116, 66, 0.92);
    font-size: 28px;
    font-weight: 950;
    line-height: 1;
    text-align: center;
}

.movie-rank-poster {
    display: grid;
    place-items: center;
    width: 64px;
    height: 86px;
    overflow: hidden;
    color: #ffffff;
    font-size: 26px;
    font-weight: 900;
    background: linear-gradient(135deg, rgba(36, 47, 59, 0.92), rgba(224, 116, 66, 0.82));
    border-radius: 12px;
}

.movie-rank-poster img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.movie-rank-main {
    display: grid;
    gap: 10px;
    min-width: 0;
}

.movie-rank-title-row {
    display: flex;
    align-items: start;
    justify-content: space-between;
    gap: 12px;
}

.movie-rank-title-row h3 {
    margin: 0;
    color: rgba(42, 31, 22, 0.96);
    font-size: 18px;
    line-height: 1.35;
}

.movie-rank-title-row span {
    flex: 0 0 auto;
    padding: 4px 8px;
    color: rgba(224, 116, 66, 0.92);
    font-size: 12px;
    font-weight: 900;
    background: rgba(255, 239, 222, 0.9);
    border-radius: 999px;
}

.movie-rank-meter {
    height: 8px;
    overflow: hidden;
    background: rgba(245, 221, 196, 0.68);
    border-radius: 999px;
}

.movie-rank-meter i {
    display: block;
    height: 100%;
    background: linear-gradient(90deg, rgba(224, 116, 66, 0.96), rgba(238, 166, 104, 0.84));
    border-radius: inherit;
}

.movie-rank-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 12px;
    color: rgba(61, 46, 34, 0.68);
    font-size: 13px;
    line-height: 1.5;
}

.movie-rank-meta strong {
    color: rgba(42, 31, 22, 0.94);
}

.population-chart-card {
    min-width: 0;
    overflow: hidden;
    padding: 18px;
    width: 100%;
    background: linear-gradient(135deg, rgba(255, 248, 240, 0.92), rgba(255, 255, 255, 0.72));
    border: 1px solid rgba(245, 221, 196, 0.9);
    border-radius: 20px;
}

.population-chart-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 12px;
}

.population-chart-head > span {
    color: rgba(145, 92, 54, 0.78);
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.08em;
}

.population-chart-key {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: 8px 14px;
    color: rgba(42, 31, 22, 0.78);
    font-size: 13px;
    font-weight: 800;
}

.population-chart-key-item {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    white-space: nowrap;
}

.population-chart-key-item span {
    color: inherit;
    font-size: inherit;
    font-weight: inherit;
    letter-spacing: 0;
}

.population-chart-legend-line {
    display: inline-block;
    width: 34px;
    height: 0;
    border-top: 4px solid rgba(224, 116, 66, 0.96);
    border-radius: 999px;
}

.population-chart-legend-line.population-chart-line-world {
    border-top-color: rgba(224, 116, 66, 0.96);
}

.population-chart-legend-line.population-chart-line-male {
    border-top-color: rgba(66, 133, 244, 0.96);
}

.population-chart-legend-line.population-chart-line-female {
    border-top-color: rgba(219, 87, 150, 0.96);
}

.population-chart-legend-line.population-chart-line-birth {
    border-top-color: rgba(52, 168, 83, 0.96);
}

.population-chart-legend-line.population-chart-line-death {
    border-top-color: rgba(221, 64, 54, 0.96);
}

.population-chart-legend-line.population-chart-line-net {
    border-top-color: rgba(126, 87, 194, 0.96);
}

.population-chart-scroll {
    width: 100%;
    max-width: 100%;
}

.population-chart-scroll.is-scrollable {
    overflow-x: auto;
    overflow-y: hidden;
    padding-bottom: 6px;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-x: contain;
    scrollbar-width: thin;
    scrollbar-color: rgba(224, 116, 66, 0.48) rgba(255, 246, 237, 0.92);
}

.population-chart {
    display: block;
    width: 100%;
    height: auto;
}

.population-chart-scroll.is-scrollable .population-chart {
    width: var(--population-chart-scroll-width, 100%);
    max-width: none;
}

.population-chart-scroll.is-scrollable::-webkit-scrollbar {
    height: 8px;
}

.population-chart-scroll.is-scrollable::-webkit-scrollbar-track {
    background: rgba(255, 246, 237, 0.92);
    border-radius: 999px;
}

.population-chart-scroll.is-scrollable::-webkit-scrollbar-thumb {
    background: rgba(224, 116, 66, 0.48);
    border-radius: 999px;
}

.population-chart-caption {
    margin-top: 10px;
    padding-top: 12px;
    color: rgba(42, 31, 22, 0.82);
    font-size: clamp(15px, 2vw, 18px);
    font-weight: 900;
    line-height: 1.6;
    text-align: center;
    border-top: 1px solid rgba(245, 221, 196, 0.72);
}

.population-chart-expand {
    margin-top: 10px;
    border-top: 1px solid rgba(245, 221, 196, 0.72);
}

.population-chart-expand-summary {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    position: relative;
    margin-top: 0;
    padding-top: 12px;
    padding-right: 30px;
    padding-left: 30px;
    cursor: pointer;
    border-top: 0;
}

.population-chart-expand-summary span {
    display: block;
    width: 100%;
    text-align: center;
}

.population-chart-expand-summary .population-expand-arrow {
    position: absolute;
    top: calc(50% + 3px);
    right: 4px;
}

.population-chart-expanded-content {
    padding: 16px 14px 10px;
    background: rgba(255, 248, 240, 0.6);
    border: 1px solid rgba(245, 221, 196, 0.8);
    border-radius: 16px;
}

.population-chart-subhead {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 10px;
}

.population-chart-subhead > span {
    color: rgba(145, 92, 54, 0.82);
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.06em;
}

.population-chart polyline {
    fill: none;
    stroke: rgba(224, 116, 66, 0.96);
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 4;
}

.population-chart circle {
    fill: #ffffff;
    stroke: rgba(224, 116, 66, 0.96);
    stroke-width: 3;
}

.population-chart-world .population-chart polyline,
.population-chart-world .population-chart circle {
    stroke: rgba(224, 116, 66, 0.96);
}

.population-chart-male .population-chart polyline,
.population-chart-male .population-chart circle {
    stroke: rgba(66, 133, 244, 0.96);
}

.population-chart-female .population-chart polyline,
.population-chart-female .population-chart circle {
    stroke: rgba(236, 92, 160, 0.96);
}

.population-chart polyline.population-chart-line-male,
.population-chart circle.population-chart-line-male {
    stroke: rgba(66, 133, 244, 0.96);
}

.population-chart polyline.population-chart-line-female,
.population-chart circle.population-chart-line-female {
    stroke: rgba(236, 92, 160, 0.96);
}

.population-chart-birth .population-chart polyline,
.population-chart-birth .population-chart circle {
    stroke: rgba(52, 168, 83, 0.96);
}

.population-chart-death .population-chart polyline,
.population-chart-death .population-chart circle {
    stroke: rgba(221, 64, 54, 0.96);
}

.population-chart text {
    fill: rgba(89, 66, 48, 0.72);
    font-size: 13px;
}

.population-chart-unit,
.population-chart-axis-label {
    fill: rgba(89, 66, 48, 0.7);
    font-weight: 700;
}

.population-chart-value-label {
    fill: rgba(42, 31, 22, 0.86);
    font-size: 12px;
    font-weight: 400;
}

.population-chart-x-label {
    fill: rgba(89, 66, 48, 0.68);
    font-weight: 700;
}

.population-chart-axis {
    stroke: rgba(145, 92, 54, 0.2);
    stroke-width: 1.5;
}

.population-chart-grid {
    stroke: rgba(145, 92, 54, 0.12);
    stroke-dasharray: 5 7;
    stroke-width: 1;
}

.population-chart-zero {
    stroke: rgba(145, 92, 54, 0.36);
    stroke-width: 1.6;
}

.population-chart-bar {
    stroke: none;
}

.population-chart-bar-birth {
    fill: rgba(52, 168, 83, 0.82);
}

.population-chart-bar-death {
    fill: rgba(221, 64, 54, 0.82);
}

.population-chart-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 16px;
    margin: -2px 0 10px;
    color: rgba(89, 66, 48, 0.76);
    font-size: 13px;
    font-weight: 800;
}

.population-chart-legend-item {
    display: inline-flex;
    align-items: center;
    gap: 7px;
}

.population-chart-legend-item i {
    width: 18px;
    height: 4px;
    border-radius: 999px;
}

.population-chart polyline.population-chart-line-birth,
.population-chart circle.population-chart-line-birth {
    stroke: rgba(52, 168, 83, 0.96);
}

.population-chart polyline.population-chart-line-death,
.population-chart circle.population-chart-line-death {
    stroke: rgba(221, 64, 54, 0.96);
}

.population-chart text.population-chart-line-birth {
    fill: rgba(36, 135, 66, 0.96);
    stroke: none;
}

.population-chart text.population-chart-line-death {
    fill: rgba(188, 50, 43, 0.96);
    stroke: none;
}

.population-chart text.population-chart-line-male {
    fill: rgba(46, 111, 214, 0.96);
    stroke: none;
}

.population-chart text.population-chart-line-female {
    fill: rgba(203, 72, 138, 0.96);
    stroke: none;
}

.population-chart polyline.population-chart-line-net,
.population-chart circle.population-chart-line-net {
    stroke: rgba(126, 87, 194, 0.96);
}

.population-chart text.population-chart-line-net {
    fill: rgba(103, 58, 183, 0.96);
    stroke: none;
}

.population-chart-legend-item i.population-chart-line-birth {
    background: rgba(52, 168, 83, 0.96);
}

.population-chart-legend-item i.population-chart-line-death {
    background: rgba(221, 64, 54, 0.96);
}

.population-table-wrap,
.movie-table-wrap {
    width: 100%;
    max-width: 100%;
    border: 1px solid rgba(245, 221, 196, 0.9);
    border-radius: 18px;
}

.movie-table-wrap {
    overflow: auto;
}

.population-table,
.movie-table {
    width: 100%;
    color: rgba(43, 33, 24, 0.86);
    font-size: 14px;
    line-height: 1.7;
    border-collapse: collapse;
    background: rgba(255, 250, 245, 0.78);
}

.movie-table {
    min-width: 560px;
}

.population-table th,
.population-table td,
.movie-table th,
.movie-table td {
    padding: 12px 14px;
    text-align: left;
    border-bottom: 1px solid rgba(245, 221, 196, 0.72);
    vertical-align: top;
}

.population-table th,
.movie-table th {
    color: rgba(145, 92, 54, 0.9);
    font-weight: 800;
    background: rgba(255, 239, 222, 0.68);
}

.movie-table th {
    white-space: nowrap;
}

.population-table tr:last-child th,
.population-table tr:last-child td,
.movie-table tr:last-child th,
.movie-table tr:last-child td {
    border-bottom: 0;
}

.movie-table td {
    min-width: 112px;
}

.movie-table .movie-name-cell {
    min-width: 150px;
    font-weight: 850;
}

.api-kv-grid {
    display: grid;
    gap: 10px;
}

.api-kv-item {
    display: grid;
    gap: 5px;
    padding: 12px 14px;
    background: rgba(255, 250, 245, 0.86);
    border: 1px solid rgba(245, 221, 196, 0.8);
    border-radius: 16px;
}

.api-kv-item span {
    color: rgba(145, 92, 54, 0.74);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.08em;
}

.api-kv-item strong {
    color: rgba(39, 31, 24, 0.9);
    font-size: 14px;
    line-height: 1.75;
    word-break: break-word;
}

.api-list {
    display: grid;
    gap: 12px;
}

.api-list-item {
    padding: 14px;
    background: rgba(255, 250, 245, 0.72);
    border: 1px solid rgba(245, 221, 196, 0.76);
    border-radius: 18px;
}

.api-text,
.api-empty {
    color: rgba(43, 33, 24, 0.82);
    font-size: 14px;
    line-height: 1.8;
    word-break: break-word;
}

.api-empty {
    padding: 18px;
    text-align: center;
    background: rgba(255, 246, 237, 0.8);
    border: 1px dashed rgba(238, 166, 104, 0.48);
    border-radius: 18px;
}

.api-notice {
    display: grid;
    gap: 6px;
    justify-items: center;
    background: linear-gradient(135deg, rgba(255, 248, 240, 0.92), rgba(255, 255, 255, 0.72));
    border-style: solid;
    box-shadow: 0 12px 30px rgba(92, 61, 34, 0.08);
}

.api-notice strong {
    color: rgba(145, 92, 54, 0.86);
    font-size: 15px;
}

.api-notice span {
    color: rgba(61, 46, 34, 0.62);
    font-size: 13px;
}

.api-muted {
    color: rgba(79, 63, 50, 0.45);
}

.api-link {
    color: rgba(205, 100, 42, 0.95);
    font-weight: 800;
    text-decoration: none;
}

.api-link:hover {
    text-decoration: underline;
}

.news-search-link {
    color: inherit;
    text-decoration: underline;
    text-decoration-color: rgba(224, 116, 66, 0.42);
    text-decoration-thickness: 2px;
    text-underline-offset: 4px;
    cursor: pointer;
}

.news-search-link:hover {
    color: rgba(205, 100, 42, 0.96);
    text-decoration: underline;
    text-decoration-color: rgba(224, 116, 66, 0.9);
}

.movie-search-link {
    display: inline-block;
    font-weight: inherit;
    line-height: 1.55;
}

.api-image-link {
    display: block;
}

.api-image {
    display: block;
    width: 100%;
    max-height: 420px;
    object-fit: cover;
    border-radius: 16px;
}

@media (max-width: 1280px) {
    .news-main {
        width: min(1180px, calc(100% - 36px));
    }
}

@media (max-width: 820px) {
    .site-header {
        min-height: 54px;
        padding: 8px 22px;
        gap: 18px;
    }

    .header-sentence {
        font-size: 14px;
        letter-spacing: 0.03em;
    }

    .hero-section {
        min-height: 600px;
    }

    .danmaku-box {
        height: 300px;
    }

    .ancient-image-box {
        min-height: 600px;
    }

    .back-to-top {
        width: 44px;
        height: 44px;
    }

    .floating-info-link {
        width: 44px;
        height: 44px;
    }

    .news-home-link {
        display: inline-flex;
        width: 44px;
        height: 44px;
    }

    .news-page .floating-actions {
        right: 14px;
        bottom: calc(16px + env(safe-area-inset-bottom));
        z-index: 140;
    }

    .news-main {
        width: min(100% - 28px, 1180px);
        padding-top: 104px;
    }

    .news-quick-links {
        top: 56px;
        flex-wrap: nowrap;
        width: 100%;
        overflow-x: auto;
        overflow-y: hidden;
        border-radius: 24px;
        scroll-snap-type: x proximity;
        scrollbar-width: none;
        -webkit-overflow-scrolling: touch;
        overscroll-behavior-x: contain;
    }

    .news-panel-head {
        grid-template-columns: auto 1fr;
    }

    .news-panel-meta {
        grid-column: 1 / -1;
        justify-self: start;
    }

    .news-panel[data-news-panel="history"],
    .news-panel[data-news-panel="daily"],
    .news-panel[data-news-panel="history"] .news-api-content,
    .news-panel[data-news-panel="daily"] .news-api-content,
    .news-panel[data-news-panel="history"] .history-timeline-view,
    .daily-brief-view {
        width: 100%;
    }

    .population-summary-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .population-daily-charts {
        grid-template-columns: 1fr;
    }

    .population-daily-charts .population-chart-card:first-child {
        grid-column: auto;
    }

    .science-card-grid {
        grid-template-columns: 1fr;
    }

    .science-news-card,
    .science-news-card.has-image {
        display: grid;
        grid-template-columns: 1fr;
        min-height: 0;
    }

    .science-news-image {
        order: 0;
    }

    .science-news-image {
        flex-basis: auto;
        aspect-ratio: 16 / 7;
    }

    .science-news-body {
        order: 1;
    }

    .history-timeline-view {
        display: grid;
        grid-template-columns: 1fr;
        gap: 0;
        position: relative;
        padding-left: 0;
        min-width: 0;
    }

    .history-timeline-view::before {
        display: block;
        left: 108px;
    }

    .history-timeline-item {
        grid-column: auto;
        grid-template-columns: 96px minmax(0, 1fr);
        gap: 20px;
        padding: 14px 0;
        background: transparent;
        border: 0;
        border-radius: 0;
        box-shadow: none;
    }

    .history-timeline-item:first-child {
        grid-column: auto;
        grid-template-columns: 96px minmax(0, 1fr);
        padding: 14px 0;
        background: transparent;
        border: 0;
        box-shadow: none;
    }

    .history-timeline-item::before {
        top: 28px;
        left: 102px;
        width: 13px;
        height: 13px;
        background: #fffaf4;
        border: 3px solid rgba(224, 116, 66, 0.82);
        box-shadow: 0 0 0 6px rgba(224, 116, 66, 0.12);
    }

    .history-timeline-item:first-child::before {
        top: 28px;
        left: 102px;
        background: #fffaf4;
        border: 3px solid rgba(224, 116, 66, 0.82);
        box-shadow: 0 0 0 6px rgba(224, 116, 66, 0.12);
    }

    .history-timeline-item time,
    .history-timeline-item:first-child time {
        color: rgba(145, 92, 54, 0.9);
        font-size: 14px;
        letter-spacing: 0;
        white-space: nowrap;
    }

    .history-timeline-item div {
        padding: 8px 0;
        background: transparent;
        border: 0;
        border-radius: 0;
    }

    .history-timeline-item:first-child div {
        border: 0;
    }

    .history-timeline-item h3,
    .history-timeline-item:first-child h3 {
        color: rgba(42, 31, 22, 0.94);
        font-size: 16px;
        line-height: 1.7;
    }

    .history-timeline-item p,
    .history-timeline-item:first-child p {
        color: rgba(61, 46, 34, 0.68);
        font-size: 14px;
    }

    .news-panel[data-news-panel="population"] .population-daily-record-table-card {
        overflow: hidden;
    }

    .news-panel[data-news-panel="population"] .population-daily-record-table-card > .population-expand-body > .population-expand-inner > .population-table-wrap {
        max-width: 100%;
        overflow-x: scroll;
        overflow-y: hidden;
        padding-bottom: 6px;
        -webkit-overflow-scrolling: touch;
        overscroll-behavior-x: contain;
        scrollbar-width: thin;
        scrollbar-color: rgba(224, 116, 66, 0.48) rgba(255, 246, 237, 0.92);
    }

    .news-panel[data-news-panel="population"] .population-daily-record-table-card > .population-expand-body > .population-expand-inner > .population-table-wrap > .population-table {
        min-width: 560px;
    }

    .news-panel[data-news-panel="population"] .population-daily-record-table-card > .population-expand-body > .population-expand-inner > .population-table-wrap > .population-table th,
    .news-panel[data-news-panel="population"] .population-daily-record-table-card > .population-expand-body > .population-expand-inner > .population-table-wrap > .population-table td {
        white-space: nowrap;
    }

    .news-panel[data-news-panel="population"] .population-daily-record-table-card > .population-expand-body > .population-expand-inner > .population-table-wrap > .population-table th:nth-child(n+3),
    .news-panel[data-news-panel="population"] .population-daily-record-table-card > .population-expand-body > .population-expand-inner > .population-table-wrap > .population-table td:nth-child(n+3) {
        min-width: 116px;
    }

    .news-panel[data-news-panel="population"] .population-daily-snapshot-table-card > .population-expand-body > .population-expand-inner > .population-table-wrap > .population-table th:first-child,
    .news-panel[data-news-panel="population"] .population-daily-snapshot-table-card > .population-expand-body > .population-expand-inner > .population-table-wrap > .population-table td:first-child {
        position: sticky;
        left: 0;
        z-index: 2;
        background: rgba(255, 250, 245, 0.98);
        box-shadow: 8px 0 12px -12px rgba(88, 57, 35, 0.35);
    }

    .news-panel[data-news-panel="population"] .population-daily-snapshot-table-card > .population-expand-body > .population-expand-inner > .population-table-wrap > .population-table th:first-child {
        z-index: 3;
    }

    .news-panel[data-news-panel="population"] .population-daily-record-table-card > .population-expand-body > .population-expand-inner > .population-table-wrap::-webkit-scrollbar {
        height: 8px;
    }

    .news-panel[data-news-panel="population"] .population-daily-record-table-card > .population-expand-body > .population-expand-inner > .population-table-wrap::-webkit-scrollbar-track {
        background: rgba(255, 246, 237, 0.92);
        border-radius: 999px;
    }

    .news-panel[data-news-panel="population"] .population-daily-record-table-card > .population-expand-body > .population-expand-inner > .population-table-wrap::-webkit-scrollbar-thumb {
        background: rgba(224, 116, 66, 0.48);
        border-radius: 999px;
    }

    .news-panel[data-news-panel="population"] .population-realtime-table-card > .population-table-wrap > .population-table {
        width: 100%;
        min-width: 0;
    }

    .news-panel[data-news-panel="population"] .population-realtime-table-card {
        width: 100%;
        max-width: 100%;
    }

    .news-panel[data-news-panel="population"] .population-realtime-table-card > .population-table-wrap {
        width: 100%;
        max-width: 100%;
    }

    .news-panel[data-news-panel="population"] .population-realtime-table-card > .population-table-wrap > .population-table th,
    .news-panel[data-news-panel="population"] .population-realtime-table-card > .population-table-wrap > .population-table td {
        min-width: 0;
        width: auto;
        padding-right: 12px;
        padding-left: 12px;
    }

    .news-panel[data-news-panel="population"] .population-realtime-table-card > .population-table-wrap > .population-table th:nth-child(n+3),
    .news-panel[data-news-panel="population"] .population-realtime-table-card > .population-table-wrap > .population-table td:nth-child(n+3) {
        min-width: 0;
    }

    .movie-table-wrap {
        position: relative;
        overflow-x: auto;
        overflow-y: hidden;
        -webkit-overflow-scrolling: touch;
        overscroll-behavior-x: contain;
        scrollbar-width: thin;
        scrollbar-color: rgba(224, 116, 66, 0.48) rgba(255, 246, 237, 0.92);
    }

    .movie-table {
        min-width: 760px;
    }

    .movie-table .movie-name-cell {
        position: sticky;
        left: 0;
        z-index: 2;
        min-width: 132px;
        max-width: 132px;
        white-space: normal;
        box-shadow: 10px 0 18px rgba(92, 61, 34, 0.08);
    }

    .movie-table th.movie-name-cell {
        z-index: 3;
        background: rgba(255, 232, 207, 0.98);
    }

    .movie-table td.movie-name-cell {
        background: rgba(255, 250, 245, 0.98);
    }

    .movie-table-wrap::-webkit-scrollbar {
        height: 8px;
    }

    .movie-table-wrap::-webkit-scrollbar-track {
        background: rgba(255, 246, 237, 0.92);
        border-radius: 999px;
    }

    .movie-table-wrap::-webkit-scrollbar-thumb {
        background: rgba(224, 116, 66, 0.48);
        border-radius: 999px;
    }

}

.movie-floating-head {
    position: fixed;
    z-index: 60;
    display: none;
    overflow: hidden;
    pointer-events: none;
    border: 1px solid rgba(245, 221, 196, 0.9);
    border-bottom: 0;
    border-radius: 16px 16px 0 0;
    box-shadow: 0 12px 28px rgba(92, 61, 34, 0.14);
}

.movie-floating-head.is-visible {
    display: block;
}

.movie-floating-head table {
    color: rgba(43, 33, 24, 0.86);
    font-size: 14px;
    line-height: 1.7;
    border-collapse: collapse;
    background: rgba(255, 250, 245, 0.98);
}

.movie-floating-head th {
    padding: 12px 14px;
    color: rgba(145, 92, 54, 0.9);
    font-weight: 800;
    text-align: left;
    white-space: nowrap;
    background: rgba(255, 232, 207, 0.98);
    border-bottom: 1px solid rgba(245, 221, 196, 0.72);
}

.movie-floating-head .movie-name-cell {
    position: sticky;
    left: 0;
    z-index: 2;
    min-width: 132px;
    max-width: 132px;
    white-space: normal;
    box-shadow: 10px 0 18px rgba(92, 61, 34, 0.08);
}

@media (max-width: 560px) {
    .site-header {
        align-items: flex-start;
        flex-direction: column;
    }

    .header-sentence {
        text-align: left;
    }

    .news-quick-links {
        top: 100px;
    }

    .population-summary-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 8px;
        padding: 10px;
    }

    .population-summary-card {
        padding: 10px 8px;
    }

    .population-summary-card span {
        font-size: 11px;
        letter-spacing: 0.03em;
    }

    .population-summary-card strong {
        font-size: clamp(14px, 5vw, 18px);
    }

    .population-section-title {
        align-items: center;
        flex-direction: row;
    }

    .population-section-title > span:first-child {
        min-width: 0;
        flex: 1;
    }

    .population-section-actions {
        flex: 0 0 auto;
    }

    .population-chart-gender .population-chart-head,
    .population-chart-birth-death .population-chart-head {
        flex-wrap: nowrap;
        gap: 8px;
    }

    .population-chart-gender .population-chart-head > span,
    .population-chart-birth-death .population-chart-head > span {
        flex: 1 1 auto;
        min-width: 0;
        white-space: nowrap;
        font-size: 13px;
        letter-spacing: 0.03em;
    }

    .population-chart-gender .population-chart-key,
    .population-chart-birth-death .population-chart-key {
        flex: 0 0 auto;
        flex-wrap: nowrap;
        gap: 6px;
        font-size: 11px;
    }

    .population-chart-gender .population-chart-key-item,
    .population-chart-birth-death .population-chart-key-item {
        gap: 4px;
    }

    .population-chart-gender .population-chart-legend-line,
    .population-chart-birth-death .population-chart-legend-line {
        width: 18px;
        border-top-width: 3px;
    }

    .daily-brief-head {
        align-items: start;
        flex-direction: column;
    }

    .daily-brief-list li {
        grid-template-columns: 44px minmax(0, 1fr);
        padding: 13px 14px;
    }

    .daily-brief-list li span {
        overflow: visible;
        text-overflow: clip;
        white-space: normal;
    }

}

/* ==========================================
   景安行 - 四大特效列表框 (Card Effects)
   ========================================== */

.ancient-cards-container {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: repeat(4, 1fr); /* 保持一行四个卡片列表 */
    gap: 24px;
    width: 100%;
    margin-top: 96px; /* 完美避开上方固定定位的导航栏，向下留出呼吸距离 */
    height: 540px; /* 限制容器最大展示高度，启用内部滑轮 */
    overflow-y: auto; /* 开启容器内部垂直滚动，防止撑爆 overflow: hidden 的父级图片盒子 */
    padding: 10px 40px 30px 40px;
    box-sizing: border-box;
    align-items: start;

    /* 极致纤细轻薄的高端透光滚动条 */
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.15) transparent;
}

/* Chrome/Edge/Safari 滚动条定制 */
.ancient-cards-container::-webkit-scrollbar {
    width: 6px;
}

.ancient-cards-container::-webkit-scrollbar-track {
    background: transparent;
}

.ancient-cards-container::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.15);
    border-radius: 99px;
}

.ancient-cards-container::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.35);
}

/* 导航栏 (Navigation Bar - Premium Capsule Dock) */
.ancient-nav-bar {
    position: absolute;
    top: 24px;
    left: 40px;
    right: 40px;
    z-index: 10;
    display: flex;
    justify-content: center;
    align-items: center;
    background: rgba(10, 10, 18, 0.6);
    backdrop-filter: blur(20px) saturate(160%);
    -webkit-backdrop-filter: blur(20px) saturate(160%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    padding: 8px 24px; /* 更紧凑高度 */
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.nav-brand {
    font-size: 15px;
    font-weight: 800;
    color: #ffffff;
    letter-spacing: 0.08em;
    display: flex;
    align-items: center;
    gap: 10px;
    text-shadow: 0 0 12px rgba(255, 255, 255, 0.25);
    user-select: none;
}

.nav-brand::before {
    content: '';
    display: inline-block;
    width: 6px;
    height: 6px;
    background: linear-gradient(135deg, #eeb068 0%, #ff7a7a 100%);
    border-radius: 50%;
    box-shadow: 0 0 12px #eeb068;
}

.nav-menu {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    gap: 22px; /* 舒适间距 */
    background: none;
    border: none;
    border-radius: 0;
}

.nav-item a {
    color: rgba(255, 255, 255, 0.45);
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    padding: 6px 4px;
    letter-spacing: 0.03em;
    display: block;
    position: relative; /* 为下划线定位 */
}

.nav-item a::after {
    content: '';
    position: absolute;
    bottom: -2px; /* 贴合底部 */
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, #eeb068 0%, #ff7a7a 100%);
    border-radius: 4px;
    transform: scaleX(0);
    transform-origin: center;
    transition: transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    box-shadow: 0 0 10px rgba(238, 176, 104, 0.6);
}

.nav-item a:hover {
    color: #ffffff;
}

.nav-item a:hover::after {
    transform: scaleX(0.5); /* 悬停微亮，极高档互动 */
}

.nav-item.active a {
    color: #ffd29e;
    text-shadow: 0 0 12px rgba(238, 176, 104, 0.3);
}

.nav-item.active a::after {
    transform: scaleX(1); /* 激活项满宽划线 */
}

.nav-item.active a:hover::after {
    transform: scaleX(1); /* 激活项悬停保持 */
}

.effect-card {
    position: relative;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(16px) saturate(140%);
    -webkit-backdrop-filter: blur(16px) saturate(140%);
    border: 1px solid rgba(255, 255, 255, 0.18);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    height: 350px;
    display: flex;
    flex-direction: column;
}

.card-inner {
    position: relative;
    z-index: 5;
    padding: 16px 20px;
    display: flex;
    flex-direction: column;
    height: 100%;
    box-sizing: border-box;
    justify-content: space-between;
}

.effect-display-box {
    width: 100%;
    height: 160px;
    border-radius: 12px;
    position: relative;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: inset 0 0 15px rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.card-desc-short {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.4;
    margin: 8px 0;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.card-title {
    font-size: 18px;
    font-weight: 700;
    color: #ffffff;
    margin-top: 0;
    margin-bottom: 12px;
    letter-spacing: 0.05em;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    border-left: 4px solid var(--theme-color, #eeb068);
    padding-left: 10px;
}

.card-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex-grow: 1;
}

.card-list li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    color: rgba(255, 255, 255, 0.92);
    font-size: 13.5px;
    line-height: 1.4;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
    transition: transform 0.2s ease;
}

.card-list li:hover {
    transform: translateX(6px);
}

.card-list li .bullet {
    flex-shrink: 0;
    font-size: 15px;
}

.card-list li .text {
    flex-grow: 1;
}

.card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 10px;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    padding-top: 10px;
}

.footer-info {
    display: flex;
    align-items: center;
    gap: 8px;
}

.card-footer .badge {
    background: var(--badge-bg, rgba(238, 176, 104, 0.25));
    border: 1px solid var(--badge-border, rgba(238, 176, 104, 0.5));
    color: var(--badge-color, #ffd29e);
    font-size: 10px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 4px;
    letter-spacing: 0.05em;
}

.card-footer .desc {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.6);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.detail-btn {
    font-size: 11px;
    font-weight: 600;
    color: var(--badge-color, #ffd29e);
    text-decoration: none;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 4px 14px; /* Standalone text pill padding */
    border-radius: 6px;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    display: flex;
    align-items: center;
    gap: 4px;
    letter-spacing: 0.05em;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

.detail-btn:hover {
    background: var(--badge-bg, rgba(238, 176, 104, 0.2));
    border-color: var(--badge-border, rgba(238, 176, 104, 0.45));
    color: #ffffff;
    box-shadow: 0 0 10px var(--badge-border, rgba(238, 176, 104, 0.35));
}

/* ==========================================
   景安行 - 独立特效容器
   ========================================== */
/* 1. 流光溢彩 (Card Neon) */
.card-neon {
    border: none;
    background: rgba(15, 15, 25, 0.5);
    --theme-color: #eeb068;
    --badge-bg: rgba(238, 176, 104, 0.2);
    --badge-border: rgba(238, 176, 104, 0.4);
    --badge-color: #ffd29e;
}

.neon-display {
    border: none;
    background: rgba(15, 15, 25, 0.6);
}

.neon-display::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: conic-gradient(
        from 0deg,
        transparent 20%,
        #eeb068 40%,
        #ff7a7a 60%,
        transparent 80%,
        #eeb068 100%
    );
    animation: neon-rotate 6s linear infinite;
    z-index: 1;
}

.neon-display::after {
    content: 'CORE';
    position: absolute;
    inset: 3px;
    background: rgba(20, 20, 30, 0.9);
    border-radius: 9px;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    font-weight: 700;
    color: #ffd29e;
    text-shadow: 0 0 6px #eeb068;
    letter-spacing: 0.1em;
    transition: background 0.3s ease;
}

.card-neon:hover .neon-display::after {
    background: rgba(20, 20, 30, 0.75);
}

.card-neon:hover {
    box-shadow: 0 0 35px rgba(238, 176, 104, 0.4);
    transform: translateY(-8px);
}

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

/* 2. 水波荡漾 (Card Wave) */
.card-wave {
    border: none;
    background: rgba(15, 15, 25, 0.5);
    --theme-color: #3f7ecb;
    --badge-bg: rgba(63, 126, 203, 0.2);
    --badge-border: rgba(63, 126, 203, 0.4);
    --badge-color: #a4ccff;
}

.wave-display {
    border: none;
    background: rgba(15, 15, 25, 0.6);
}

.wave {
    position: absolute;
    bottom: -170px;
    left: -50%;
    width: 200%;
    height: 250px;
    border-radius: 40%;
    transition: bottom 0.8s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.wave-1 {
    background: rgba(63, 126, 203, 0.25);
    animation: wave-spin 12s linear infinite;
    z-index: 1;
}

.wave-2 {
    background: rgba(73, 160, 109, 0.18);
    animation: wave-spin 16s linear infinite;
    z-index: 2;
    border-radius: 38%;
}

.wave-3 {
    background: rgba(255, 255, 255, 0.1);
    animation: wave-spin 20s linear infinite;
    z-index: 3;
    border-radius: 42%;
}

.card-wave:hover .wave {
    bottom: -80px;
}

.card-wave:hover {
    box-shadow: 0 0 35px rgba(63, 126, 203, 0.4);
    transform: translateY(-8px);
}

@keyframes wave-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* 3. 像素粒子 (Card Canvas) */
.card-canvas {
    border: none;
    background: rgba(15, 15, 25, 0.5);
    --theme-color: #b673d8;
    --badge-bg: rgba(182, 115, 216, 0.2);
    --badge-border: rgba(182, 115, 216, 0.4);
    --badge-color: #ecbfff;
}

.canvas-display {
    border: none;
    background: rgba(15, 15, 25, 0.6);
    cursor: pointer;
}

.card-canvas-element {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    border-radius: 12px;
}

.card-canvas:hover {
    box-shadow: 0 0 35px rgba(182, 115, 216, 0.4);
    transform: translateY(-8px);
}

/* 4. 白色波浪模板 (Card Wave Template) */
.card-wave-template {
    border: none;
    background: rgba(15, 15, 25, 0.5);
    --theme-color: #8b5cf6;
    --badge-bg: rgba(139, 92, 246, 0.2);
    --badge-border: rgba(139, 92, 246, 0.4);
    --badge-color: #c084fc;
}

.wave-template-display {
    border: none;
    background: linear-gradient(135deg, #ff8fb3 0%, #8b5cf6 100%);
    position: relative;
    overflow: hidden;
}

.wave-template-display .waves {
    position: absolute;
    left: 0;
    bottom: -4px;
    width: 100%;
    height: 48px; /* 极佳的精致预览高度 */
}

.wave-template-display .parallax-template > use {
    animation: move-forever-template 12s cubic-bezier(0.55, 0.5, 0.45, 0.5) infinite;
}

.wave-template-display .parallax-template > use:nth-child(1) {
    animation-delay: -2s;
    animation-duration: 4s;
}

.wave-template-display .parallax-template > use:nth-child(2) {
    animation-delay: -3s;
    animation-duration: 6s;
}

.wave-template-display .parallax-template > use:nth-child(3) {
    animation-delay: -4s;
    animation-duration: 8s;
}

.wave-template-display .parallax-template > use:nth-child(4) {
    animation-delay: -5s;
    animation-duration: 11s;
}

@keyframes move-forever-template {
    0% {
        transform: translate3d(-90px, 0, 0);
    }
    100% {
        transform: translate3d(85px, 0, 0);
    }
}

.card-wave-template:hover {
    box-shadow: 0 0 35px rgba(139, 92, 246, 0.45);
    transform: translateY(-8px);
}

/* 5. 3D倾斜与反光 (Card Tilt) */
.card-tilt {
    border: none;
    background: rgba(15, 15, 25, 0.5);
    --theme-color: #ffd29e;
    --badge-bg: rgba(255, 255, 255, 0.12);
    --badge-border: rgba(255, 255, 255, 0.3);
    --badge-color: #ffffff;
}

.tilt-display {
    border: none;
    background: rgba(15, 15, 25, 0.6);
    transform-style: preserve-3d;
    perspective: 500px;
    cursor: pointer;
}

.tilt-core {
    font-size: 14px;
    font-weight: 800;
    color: #ffffff;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.4);
    transform: translateZ(20px);
    z-index: 3;
    pointer-events: none;
    letter-spacing: 0.1em;
}

.glare-effect {
    position: absolute;
    inset: 0;
    background: radial-gradient(
        circle 120px at var(--mouse-x, 50%) var(--mouse-y, 50%),
        rgba(255, 255, 255, 0.22) 0%,
        transparent 80%
    );
    z-index: 2;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.4s ease;
    border-radius: 12px;
}

.tilt-display:hover .glare-effect {
    opacity: 1;
}

.card-tilt:hover {
    box-shadow: 0 0 35px rgba(255, 210, 158, 0.4);
    transform: translateY(-8px);
}

/* 6. 星际穿梭 (Card Space Travel) */
.card-space-travel {
    border: none;
    background: rgba(15, 15, 25, 0.5);
    --theme-color: #00d2ff;
    --badge-bg: rgba(0, 210, 255, 0.2);
    --badge-border: rgba(0, 210, 255, 0.4);
    --badge-color: #9feeff;
}

.space-travel-display {
    border: none;
    background: rgba(8, 9, 17, 0.8);
    cursor: pointer;
}

.card-space-travel:hover {
    box-shadow: 0 0 35px rgba(0, 210, 255, 0.4);
    transform: translateY(-8px);
}

/* 7. 星际穿梭 II (Card Space Travel II) */
.card-space-travel-2 {
    border: none;
    background: rgba(15, 15, 25, 0.5);
    --theme-color: #f59e0b;
    --badge-bg: rgba(245, 158, 11, 0.2);
    --badge-border: rgba(245, 158, 11, 0.4);
    --badge-color: #fcd34d;
}

.space-travel-2-display {
    border: none;
    background: rgba(0, 10, 20, 0.9);
    cursor: pointer;
}

.card-space-travel-2:hover {
    box-shadow: 0 0 35px rgba(245, 158, 11, 0.4);
    transform: translateY(-8px);
}

/* 响应式调整 */
@media (max-width: 1200px) {
    .ancient-cards-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
        margin-top: 100px;
        height: 520px;
        padding: 10px 20px 30px 20px;
    }
}

@media (max-width: 768px) {
    .ancient-cards-container {
        grid-template-columns: 1fr;
        gap: 20px;
        margin-top: 160px; /* 移动端导航栏折叠加高，设置更大的上边距避开 */
        height: 500px;
        padding: 10px 16px 30px 16px;
    }
    
    .ancient-nav-bar {
        position: absolute;
        top: 16px;
        left: 16px;
        right: 16px;
        flex-direction: column;
        gap: 12px;
        padding: 12px 16px;
    }
    
    .nav-menu {
        flex-wrap: wrap;
        justify-content: center;
        gap: 10px;
    }
    
    .nav-item a {
        font-size: 13px;
        padding: 4px 10px;
    }
    
    .effect-card {
        height: auto;
        min-height: 260px;
    }
    
    .ancient-image-box {
        min-height: auto;
        height: auto;
    }
    
    .nav-groups-container {
        flex-direction: column;
        gap: 16px;
        width: 100%;
        align-items: center;
    }
    
    .nav-group {
        flex-direction: column;
        align-items: center;
        gap: 8px;
        width: 100%;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
        padding-bottom: 16px;
    }
    
    .nav-group:last-child {
        border-bottom: none;
        padding-bottom: 0;
    }
    
    .dropdown-panel {
        position: relative;
        top: 0;
        left: 0;
        transform: none !important;
        opacity: 1 !important;
        pointer-events: auto !important;
        background: none;
        border: none;
        box-shadow: none;
        padding: 8px 0 0 0;
        width: 100%;
        display: flex;
        justify-content: center;
    }
    
    .dropdown-panel .nav-menu {
        flex-wrap: wrap;
        justify-content: center;
        gap: 6px;
    }
    
    .group-label {
        font-size: 11px;
    }
}

/* --- Grouped Navigation & Filter System (Stripe-Style Dropdown Panel) --- */
.nav-groups-container {
    display: flex;
    flex-direction: row;
    gap: 40px; /* 两组分类之间的开阔间距 */
    justify-content: center;
    align-items: center;
}

.nav-group {
    /* 移除了 position: relative; 以确保绝对定位的下拉面板可以寻回 .ancient-nav-bar 实现全宽展开 */
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 12px 0; /* 极佳的鼠标悬停感应过渡缓冲区 */
}

.group-label {
    font-size: 13px;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.6);
    letter-spacing: 0.06em;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 16px;
    border-radius: 100px;
    border: 1px solid rgba(255, 255, 255, 0.04);
    background: rgba(255, 255, 255, 0.02);
    user-select: none;
}

.nav-group:hover .group-label {
    color: #ffd29e;
    border-color: rgba(238, 176, 104, 0.3);
    background: rgba(238, 176, 104, 0.06);
    box-shadow: 0 0 15px rgba(238, 176, 104, 0.15);
}

.group-label .arrow {
    font-size: 9px;
    transition: transform 0.3s ease;
    opacity: 0.45;
    display: inline-block;
}

.nav-group:hover .arrow {
    transform: rotate(180deg);
    opacity: 0.95;
    color: #ffd29e;
}

/* 下拉全宽浮动面板 (Full-Width Megamenu Panel) */
.dropdown-panel {
    position: absolute;
    top: calc(100% + 4px); /* 贴紧触发区 */
    left: 0;
    right: 0;
    width: 100%; /* 完美契合导航栏总宽度 */
    transform: translateY(10px) scale(0.98);
    opacity: 0;
    pointer-events: none;
    z-index: 100;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    background: rgba(10, 10, 18, 0.85);
    backdrop-filter: blur(24px) saturate(160%);
    -webkit-backdrop-filter: blur(24px) saturate(160%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 12px 24px;
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.6), 0 0 30px rgba(255, 255, 255, 0.02);
    box-sizing: border-box;
    display: flex;
    justify-content: center; /* 整个分类菜单在全宽面板内水平居中 */
    align-items: center;
}

/* 创建无感 hover 隧道桥梁，消除触发区与下拉板之间的盲区 */
.dropdown-panel::before {
    content: '';
    position: absolute;
    top: -24px; /* 向上延伸覆盖导航栏底部的空隙，确保悬停状态连续 */
    left: 0;
    right: 0;
    height: 24px;
    background: transparent; /* 保持透明，无感连接 */
}

.nav-group:hover .dropdown-panel {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0) scale(1);
}

/* 下拉浮动面板内的菜单列表 */
.dropdown-panel .nav-menu {
    display: flex;
    gap: 12px; /* 间距拉开，显露独立盒子 */
    background: none;
    border: none;
    padding: 0;
    margin: 0;
    list-style: none;
    justify-content: center;
    align-items: center;
}

/* 独立盒子形式的菜单子项 */
.dropdown-panel .nav-item {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    box-sizing: border-box;
}

.dropdown-panel .nav-item a {
    color: rgba(255, 255, 255, 0.55);
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    padding: 8px 18px; /* 饱满的独立框体点击区 */
    letter-spacing: 0.02em;
    display: block;
}

/* 禁用下划线动效 */
.dropdown-panel .nav-item a::after {
    display: none !important;
}

/* 独立盒子 Hover 状态：微浮起与橙红流光亮边 */
.dropdown-panel .nav-item:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(238, 176, 104, 0.35);
    box-shadow: 0 4px 15px rgba(238, 176, 104, 0.15);
    transform: translateY(-2px); /* 独立盒子微悬浮起 */
}

.dropdown-panel .nav-item:hover a {
    color: #ffffff;
    text-shadow: 0 0 10px rgba(238, 176, 104, 0.3);
}

/* 独立盒子 Active 激活状态：尊贵的主渐变高透填充 */
.dropdown-panel .nav-item.active {
    background: linear-gradient(135deg, rgba(238, 176, 104, 0.2) 0%, rgba(255, 122, 122, 0.2) 100%);
    border-color: rgba(238, 176, 104, 0.4);
    box-shadow: 0 4px 12px rgba(238, 176, 104, 0.18);
}

.dropdown-panel .nav-item.active a {
    color: #ffffff;
    text-shadow: 0 0 8px rgba(255, 255, 255, 0.4);
}

/* 激活的独立盒子悬停状态 */
.dropdown-panel .nav-item.active:hover {
    background: linear-gradient(135deg, rgba(238, 176, 104, 0.26) 0%, rgba(255, 122, 122, 0.26) 100%);
    border-color: rgba(238, 176, 104, 0.5);
    transform: translateY(-2px);
}

/* Empty State Card */
.ancient-cards-container .empty-state-card {
    grid-column: 1 / -1; /* 跨越所有网格列 */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 60px 40px;
    border-radius: 16px;
    background: rgba(15, 15, 25, 0.4);
    backdrop-filter: blur(16px) saturate(140%);
    -webkit-backdrop-filter: blur(16px) saturate(140%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.25);
    opacity: 0;
    transform: scale(0.95);
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    max-width: 480px;
    margin: 40px auto;
}

.empty-icon {
    font-size: 40px;
    margin-bottom: 16px;
    filter: drop-shadow(0 0 10px rgba(238, 176, 104, 0.3));
}

.empty-title {
    font-size: 18px;
    font-weight: 700;
    color: #ffd29e;
    margin: 0 0 8px 0;
    letter-spacing: 0.05em;
}

.empty-desc {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.45);
    line-height: 1.6;
    margin: 0;
}
