/* =========================================================
   Daily News 新版首页专用样式
   第一阶段：顶部网站栏
   ========================================================= */

.home-top-header {
    width: 100%;
    margin: 0;
    padding: 0;
    background: #07111f;
    border-bottom: 3px solid #e5b800;
    color: #ffffff;
    box-sizing: border-box;
}

.home-header-inner {
    width: min(100%, 1600px);
    min-height: 92px;
    margin: 0 auto;
    padding: 14px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
    box-sizing: border-box;
}

.home-brand {
    flex: 0 1 auto;
    min-width: 390px;
    display: flex;
    align-items: center;
    gap: 18px;
    color: #ffffff;
    text-decoration: none;
}

.home-brand-logo {
    width: 164px;
    min-width: 164px;
    height: 64px;
    padding: 8px 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 10px;
    background: linear-gradient(135deg, #f0c93d 0%, #2188e8 75%);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.28);
}

.home-brand-cn {
    display: block;
    margin-bottom: 2px;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.1;
    color: #ffffff;
}

.home-brand-en {
    display: block;
    font-size: 21px;
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: 0.3px;
    color: #ffffff;
    white-space: nowrap;
}

.home-brand-title {
    min-width: 0;
}

.home-brand-title h1 {
    margin: 0 0 5px;
    font-size: clamp(18px, 1.45vw, 25px);
    font-weight: 750;
    line-height: 1.2;
    color: #ffffff;
    white-space: nowrap;
}

.home-brand-title p {
    margin: 0;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.35;
    color: #cbd8e7;
}

.home-header-actions {
    flex: 1 1 auto;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
    min-width: 0;
}

.home-search-box {
    flex: 1 1 360px;
    max-width: 540px;
    min-width: 240px;
    height: 44px;
    display: flex;
    align-items: stretch;
    overflow: hidden;
    border: 1px solid #60758e;
    border-radius: 7px;
    background: #ffffff;
}

.home-search-box input {
    flex: 1;
    min-width: 0;
    height: 100%;
    padding: 0 14px;
    border: 0;
    outline: none;
    background: #ffffff;
    color: #182332;
    font-size: 15px;
    box-sizing: border-box;
}

.home-search-box input::placeholder {
    color: #7a8796;
}

.home-search-box button {
    flex: 0 0 auto;
    min-width: 72px;
    padding: 0 16px;
    border: 0;
    border-left: 1px solid #d5dce4;
    background: #087fd1;
    color: #ffffff;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
}

.home-search-box button:hover {
    background: #066db4;
}

.home-header-actions .auth-actions {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
}

.home-header-actions .auth-link,
.home-header-actions .auth-my,
.home-header-actions .auth-logout {
    min-height: 42px;
    padding: 8px 15px;
    border-radius: 6px;
    font-size: 15px;
    line-height: 1;
    white-space: nowrap;
}

.home-language-box {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    gap: 7px;
    white-space: nowrap;
}

.home-language-box label {
    font-size: 14px;
    color: #cbd8e7;
}

.home-language-box select {
    height: 42px;
    padding: 0 30px 0 11px;
    border: 1px solid #60758e;
    border-radius: 6px;
    outline: none;
    background: #ffffff;
    color: #17202c;
    font-size: 14px;
    cursor: pointer;
}

@media (max-width: 1180px) {
    .home-header-inner {
        align-items: flex-start;
        flex-direction: column;
        gap: 14px;
    }

    .home-brand {
        min-width: 0;
    }

    .home-header-actions {
        width: 100%;
        justify-content: flex-start;
        flex-wrap: wrap;
    }

    .home-search-box {
        max-width: none;
    }
}

@media (max-width: 720px) {
    .home-header-inner {
        padding: 12px;
    }

    .home-brand {
        width: 100%;
        align-items: flex-start;
    }

    .home-brand-logo {
        width: 138px;
        min-width: 138px;
        height: 58px;
    }

    .home-brand-en {
        font-size: 18px;
    }

    .home-brand-title h1 {
        white-space: normal;
        font-size: 17px;
    }

    .home-brand-title p {
        font-size: 13px;
    }

    .home-header-actions {
        display: grid;
        grid-template-columns: 1fr;
    }

    .home-search-box {
        width: 100%;
        min-width: 0;
    }

    .home-header-actions .auth-actions,
    .home-language-box {
        width: 100%;
        flex-wrap: wrap;
    }
}

/* =========================================================
   第二阶段：两级新闻导航
   ========================================================= */

.home-primary-nav,
.home-secondary-nav {
    width: 100%;
    margin: 0;
    box-sizing: border-box;
}

.home-primary-nav {
    position: sticky;
    top: 0;
    z-index: 900;
    background: #ffffff;
    border-bottom: 1px solid #d8e0e8;
    box-shadow: 0 3px 12px rgba(13, 31, 53, 0.08);
}

.home-secondary-nav {
    background: #f4f7fa;
    border-bottom: 1px solid #d8e0e8;
}

.home-nav-inner {
    width: min(100%, 1600px);
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    gap: 4px;
    overflow-x: auto;
    box-sizing: border-box;
    scrollbar-width: thin;
}

.home-nav-inner a {
    flex: 0 0 auto;
    position: relative;
    padding: 15px 18px;
    color: #1d2b3a;
    text-decoration: none;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.2;
    white-space: nowrap;
    transition:
        color 0.2s ease,
        background-color 0.2s ease;
}

.home-primary-nav .home-nav-inner a:hover {
    color: #087fd1;
    background: #f1f7fc;
}

.home-primary-nav .home-nav-inner a.active {
    color: #087fd1;
    background: #edf6fd;
}

.home-primary-nav .home-nav-inner a.active::after {
    content: "";
    position: absolute;
    right: 16px;
    bottom: 0;
    left: 16px;
    height: 3px;
    border-radius: 3px 3px 0 0;
    background: #087fd1;
}

.home-primary-nav .home-vip-nav {
    color: #9a6800;
    background: linear-gradient(180deg, #fff8d8 0%, #ffefaa 100%);
}

.home-primary-nav .home-vip-nav:hover {
    color: #704b00;
    background: linear-gradient(180deg, #fff3ba 0%, #ffe376 100%);
}

.home-secondary-nav-inner {
    gap: 0;
    padding-top: 2px;
    padding-bottom: 2px;
}

.home-secondary-nav .home-nav-inner a {
    padding: 11px 15px;
    color: #4b5968;
    font-size: 14px;
    font-weight: 600;
}

.home-secondary-nav .home-nav-inner a:hover {
    color: #087fd1;
    background: #e8f2fa;
}

@media (max-width: 900px) {
    .home-nav-inner {
        padding-right: 12px;
        padding-left: 12px;
    }

    .home-nav-inner a {
        padding: 13px 14px;
        font-size: 14px;
    }

    .home-secondary-nav .home-nav-inner a {
        padding: 10px 12px;
        font-size: 13px;
    }
}

/* ========================================
   首页动态网站 LOGO
   ======================================== */

.site-header-default-logo {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.site-header-logo {
    display: block;
    width: 100%;
    height: 100%;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    object-position: center;
    border-radius: 10px;
}

.site-header-logo[hidden],
.site-header-default-logo[hidden] {
    display: none !important;
}

@media (max-width: 900px) {
    .site-header-logo {
        border-radius: 8px;
    }
}

.home-brand-logo {
    padding: 0;
    overflow: hidden;
}

.site-header-logo {
    width: 100%;
    height: 100%;
    max-width: none;
    max-height: none;
    object-fit: cover;
    object-position: center;
    border-radius: 10px;
}

/* =========================================
   首页横幅广告轮播
   地图下方、首页频道导航上方
   ========================================= */

.home-ad-carousel-section {
    width: 100%;
    padding: 18px 24px;
    box-sizing: border-box;
    background: #061426;
}

.home-ad-carousel {
    position: relative;
    width: min(100%, 1600px);
    height: clamp(96px, 9vw, 150px);
    margin: 0 auto;
    overflow: hidden;
    border: 1px solid #1c5f8a;
    border-radius: 12px;
    background: #071a30;
    box-shadow:
        0 12px 30px rgba(0, 0, 0, 0.28),
        0 0 18px rgba(23, 145, 224, 0.12);
}

.home-ad-track {
    display: flex;
    width: 100%;
    height: 100%;
    transform: translateX(0);
    transition: transform 0.55s ease;
    will-change: transform;
}

.home-ad-slide {
    position: relative;
    flex: 0 0 100%;
    width: 100%;
    height: 100%;
    overflow: hidden;
    color: #ffffff;
    text-decoration: none;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}

.home-ad-image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    border: 0;
}

.home-ad-slide::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg,
            rgba(2, 18, 42, 0.2),
            rgba(1, 44, 94, 0.05),
            rgba(2, 18, 42, 0.25));
    pointer-events: none;
}

.home-ad-slide.has-image::before {
    display: none;
}

.home-ad-slide-1 {
    background:
        radial-gradient(circle at 15% 50%,
            rgba(255, 201, 62, 0.55),
            transparent 20%),
        linear-gradient(100deg,
            #03256f 0%,
            #0579e6 48%,
            #03205e 100%);
}

.home-ad-slide-2 {
    background:
        radial-gradient(circle at 18% 50%,
            rgba(44, 210, 255, 0.5),
            transparent 22%),
        linear-gradient(100deg,
            #041a57 0%,
            #006fbf 50%,
            #041741 100%);
}

.home-ad-slide-3 {
    background:
        radial-gradient(circle at 20% 50%,
            rgba(255, 184, 36, 0.48),
            transparent 22%),
        linear-gradient(100deg,
            #072465 0%,
            #084ea6 50%,
            #051735 100%);
}

.home-ad-slide-4 {
    background:
        radial-gradient(circle at 18% 50%,
            rgba(55, 220, 255, 0.5),
            transparent 21%),
        linear-gradient(100deg,
            #031e62 0%,
            #075ec7 50%,
            #031534 100%);
}

.home-ad-slide-5 {
    background:
        radial-gradient(circle at 18% 50%,
            rgba(255, 194, 64, 0.46),
            transparent 22%),
        linear-gradient(100deg,
            #072457 0%,
            #0679c8 48%,
            #041b41 100%);
}

.home-ad-placeholder {
    position: relative;
    z-index: 2;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    padding: 12px 76px;
    text-align: center;
    text-shadow:
        0 2px 3px rgba(0, 0, 0, 0.65),
        0 0 15px rgba(30, 170, 255, 0.7);
}

.home-ad-placeholder strong {
    display: block;
    color: #ffd447;
    font-size: clamp(22px, 3vw, 48px);
    line-height: 1.1;
    font-weight: 900;
    letter-spacing: 2px;
}

.home-ad-placeholder small {
    display: block;
    margin-top: 8px;
    color: #ffffff;
    font-size: clamp(12px, 1.15vw, 18px);
    font-weight: 700;
    letter-spacing: 1px;
}

.home-ad-arrow {
    position: absolute;
    z-index: 5;
    top: 50%;
    width: 38px;
    height: 52px;
    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: 8px;
    background: rgba(3, 20, 46, 0.62);
    color: #ffffff;
    font-size: 25px;
    line-height: 1;
    cursor: pointer;
    transform: translateY(-50%);
    transition:
        background 0.2s ease,
        border-color 0.2s ease;
}

.home-ad-arrow:hover {
    background: rgba(7, 122, 213, 0.9);
    border-color: #52c8ff;
}

.home-ad-arrow-prev {
    left: 12px;
}

.home-ad-arrow-next {
    right: 12px;
}

.home-ad-dots {
    position: absolute;
    z-index: 6;
    left: 50%;
    bottom: 8px;
    display: flex;
    align-items: center;
    gap: 7px;
    transform: translateX(-50%);
}

.home-ad-dot {
    width: 8px;
    height: 8px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.48);
    cursor: pointer;
    transition:
        width 0.2s ease,
        border-radius 0.2s ease,
        background 0.2s ease;
}

.home-ad-dot.is-active {
    width: 24px;
    border-radius: 8px;
    background: #ffd447;
}

@media (max-width: 820px) {
    .home-ad-carousel-section {
        padding: 12px;
    }

    .home-ad-carousel {
        height: clamp(90px, 24vw, 125px);
        border-radius: 9px;
    }

    .home-ad-placeholder {
        padding: 10px 50px;
    }

    .home-ad-placeholder strong {
        font-size: clamp(18px, 5vw, 30px);
    }

    .home-ad-arrow {
        width: 32px;
        height: 44px;
        font-size: 21px;
    }

    .home-ad-arrow-prev {
        left: 7px;
    }

    .home-ad-arrow-next {
        right: 7px;
    }
}

@media (max-width: 520px) {
    .home-ad-carousel {
        height: 96px;
    }

    .home-ad-placeholder {
        padding: 8px 38px 18px;
    }

    .home-ad-placeholder strong {
        font-size: 18px;
        letter-spacing: 0.5px;
    }

    .home-ad-placeholder small {
        margin-top: 5px;
        font-size: 11px;
    }

    .home-ad-arrow {
        width: 28px;
        height: 38px;
        font-size: 18px;
    }
}

/* ============================================================
   首页实用工具区
============================================================ */

.home-tools-section {
    width: 100%;
    padding: 22px 24px;
    box-sizing: border-box;
    background:
        linear-gradient(180deg,
            #061425 0%,
            #07182c 100%);
    border-bottom: 1px solid #173d5b;
}

.home-tools-inner {
    width: min(100%, 1600px);
    margin: 0 auto;
    display: grid;
    grid-template-columns:
        minmax(360px, 1.15fr) minmax(280px, 0.9fr) minmax(280px, 0.9fr);
    gap: 18px;
    align-items: stretch;
}

.home-tool-card {
    min-width: 0;
    padding: 20px;
    box-sizing: border-box;
    border: 1px solid #205a82;
    border-radius: 14px;
    background:
        linear-gradient(145deg,
            rgba(11, 43, 73, 0.96),
            rgba(4, 23, 42, 0.98));
    box-shadow:
        0 14px 32px rgba(0, 0, 0, 0.24);
    color: #eaf6ff;
}

.home-tool-card-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 14px;
}

.home-tool-kicker {
    display: block;
    margin-bottom: 4px;
    color: #27c3ff;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 1.5px;
}

.home-tool-card-header h2 {
    margin: 0;
    color: #ffd248;
    font-size: 25px;
    line-height: 1.2;
}

.calendar-today-button {
    flex: 0 0 auto;
    padding: 8px 12px;
    border: 1px solid #2788bd;
    border-radius: 8px;
    background: #0b4c73;
    color: #ffffff;
    font: inherit;
    font-size: 13px;
    cursor: pointer;
}

.calendar-today-button:hover {
    background: #0d6898;
}

.calendar-current-summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 14px;
    margin-bottom: 14px;
    border: 1px solid #1d5277;
    border-radius: 10px;
    background: rgba(3, 18, 34, 0.72);
}

.calendar-current-summary strong {
    color: #ffffff;
    font-size: 17px;
}

.calendar-current-summary span {
    color: #63d8ff;
    font-size: 14px;
    font-weight: 700;
}

.calendar-navigation {
    display: grid;
    grid-template-columns: 38px 1fr 38px;
    gap: 10px;
    align-items: center;
    margin-bottom: 12px;
}

.calendar-navigation h3 {
    margin: 0;
    color: #ffffff;
    font-size: 18px;
    text-align: center;
}

.calendar-navigation button {
    width: 38px;
    height: 36px;
    padding: 0;
    border: 1px solid #2c6d98;
    border-radius: 8px;
    background: #082642;
    color: #ffffff;
    font-size: 25px;
    line-height: 1;
    cursor: pointer;
}

.calendar-navigation button:hover {
    background: #0c476d;
}

.calendar-weekdays,
.calendar-days {
    display: grid;
    grid-template-columns:
        repeat(7, minmax(0, 1fr));
    gap: 6px;
}

.calendar-weekdays {
    margin-bottom: 6px;
}

.calendar-weekdays span {
    padding: 6px 0;
    color: #7ecdf4;
    font-size: 12px;
    font-weight: 700;
    text-align: center;
}

.calendar-days {
    min-height: 220px;
}

.calendar-day {
    min-height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4px;
    box-sizing: border-box;
    border: 1px solid transparent;
    border-radius: 8px;
    background: rgba(5, 30, 52, 0.7);
    color: #dcefff;
    font-size: 13px;
    cursor: default;
}

.calendar-day.is-outside {
    color: #57758d;
    background: rgba(3, 17, 30, 0.45);
}

.calendar-day.is-today {
    border-color: #ffd248;
    background: #0d5a82;
    color: #ffffff;
    font-weight: 800;
    box-shadow:
        0 0 0 2px rgba(255, 210, 72, 0.14);
}

.home-tool-placeholder {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 360px;
    text-align: center;
}

.home-tool-placeholder span {
    color: #28c4ff;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 1.4px;
}

.home-tool-placeholder strong {
    display: block;
    margin: 10px 0;
    color: #ffd248;
    font-size: 25px;
}

.home-tool-placeholder p {
    margin: 0;
    color: #9fc0d9;
    font-size: 14px;
    line-height: 1.6;
}

@media (max-width: 1180px) {
    .home-tools-inner {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }

    .home-calendar-card {
        grid-column: 1 / -1;
    }

    .home-tool-placeholder {
        min-height: 200px;
    }
}

@media (max-width: 760px) {
    .home-tools-section {
        padding: 14px 12px;
    }

    .home-tools-inner {
        grid-template-columns: 1fr;
    }

    .home-calendar-card {
        grid-column: auto;
    }

    .home-tool-card {
        padding: 16px;
    }

    .home-tool-card-header {
        align-items: stretch;
        flex-direction: column;
    }

    .calendar-today-button {
        width: 100%;
    }

    .calendar-current-summary {
        align-items: flex-start;
        flex-direction: column;
    }

    .calendar-days {
        min-height: 190px;
    }

    .home-tool-placeholder {
        min-height: 160px;
    }
}

/* ============================================================
   首页新闻三栏布局
============================================================ */

.home-content-layout {
    width: min(100%, 1800px);
    margin: 0 auto;
    padding: 34px 20px 50px;
    box-sizing: border-box;
    display: grid;
    grid-template-columns:
        minmax(260px, 300px) minmax(0, 1fr) minmax(260px, 300px);
    gap: 28px;
    align-items: start;
    background: #000000;
}

.home-left-sidebar,
.home-right-sidebar {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.home-center-content {
    min-width: 0;
}

.home-side-card {
    padding: 18px;
    box-sizing: border-box;
    border: 1px solid #205a82;
    border-radius: 14px;
    background:
        linear-gradient(145deg,
            rgba(11, 43, 73, 0.96),
            rgba(4, 23, 42, 0.98));
    box-shadow:
        0 14px 32px rgba(0, 0, 0, 0.24);
    color: #eaf6ff;
}

.home-side-card h2 {
    margin: 6px 0 14px;
    color: #ffd248;
    font-size: 23px;
    line-height: 1.2;
}

.home-side-card p {
    margin: 0;
    color: #9fc0d9;
    font-size: 14px;
    line-height: 1.6;
}

.home-calendar-card {
    min-height: 430px;
}

.home-fx-card {
    min-height: 190px;
}

.home-central-bank-card {
    min-height: 430px;
}

.home-content-layout .home-news-section {
    width: 100%;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.home-content-layout .home-news-list {
    width: 100%;
}

@media (max-width: 1280px) {
    .home-content-layout {
        grid-template-columns:
            minmax(250px, 280px) minmax(0, 1fr);
    }

    .home-right-sidebar {
        grid-column: 1 / -1;
    }

    .home-central-bank-card {
        min-height: 200px;
    }
}

@media (max-width: 880px) {
    .home-content-layout {
        grid-template-columns: 1fr;
        padding: 22px 12px 36px;
        gap: 18px;
    }

    .home-left-sidebar,
    .home-center-content,
    .home-right-sidebar {
        grid-column: auto;
    }

    .home-calendar-card,
    .home-fx-card,
    .home-central-bank-card {
        min-height: auto;
    }
}

/* ============================================================
   万年历农历日期样式
============================================================ */

.calendar-day {
    min-height: 48px;
    flex-direction: column;
    gap: 2px;
    padding: 5px 2px;
    line-height: 1.1;
}

.calendar-solar-day {
    display: block;
    color: #f5fbff;
    font-size: 14px;
    font-weight: 800;
    line-height: 1.1;
}

.calendar-lunar-day {
    display: block;
    max-width: 100%;
    overflow: hidden;
    color: #8fb7d1;
    font-size: 10px;
    font-weight: 500;
    line-height: 1.15;
    text-align: center;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.calendar-day.is-outside .calendar-solar-day {
    color: #4e718a;
}

.calendar-day.is-outside .calendar-lunar-day {
    color: #3f6077;
}

.calendar-day.is-today .calendar-solar-day {
    color: #ffffff;
}

.calendar-day.is-today .calendar-lunar-day {
    color: #ffe27b;
    font-weight: 700;
}

.calendar-days {
    min-height: 300px;
}

@media (max-width: 880px) {
    .calendar-day {
        min-height: 46px;
    }

    .calendar-solar-day {
        font-size: 13px;
    }

    .calendar-lunar-day {
        font-size: 10px;
    }

    .calendar-days {
        min-height: 285px;
    }
}

/* ============================================================
   万年历国家节假日选择
============================================================ */

.calendar-country-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 12px;
}

.calendar-country-row label {
    flex: 0 0 auto;
    color: #8fc8e8;
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
}

.calendar-country-row select {
    min-width: 0;
    flex: 1;
    height: 34px;
    padding: 0 9px;
    border: 1px solid #2b6d98;
    border-radius: 8px;
    outline: none;
    background: #071f36;
    color: #ffffff;
    font: inherit;
    font-size: 12px;
    cursor: pointer;
}

.calendar-country-row select:hover {
    border-color: #38a9e3;
}

.calendar-country-row select:focus {
    border-color: #36c8ff;
    box-shadow:
        0 0 0 2px rgba(54, 200, 255, 0.14);
}

.calendar-day.is-holiday {
    border-color:
        rgba(255, 88, 88, 0.5);
    background:
        rgba(111, 24, 38, 0.42);
}

.calendar-day.is-holiday .calendar-solar-day {
    color: #ff6b75;
}

.calendar-day.is-holiday .calendar-lunar-day {
    color: #ff9ca4;
    font-weight: 700;
}

.calendar-day.is-holiday.is-today {
    border-color: #ffd248;
    box-shadow:
        0 0 0 2px rgba(255, 210, 72, 0.15);
}

.calendar-day.is-substitute-holiday {
    border-style: dashed;
}

.calendar-holiday-status {
    min-height: 18px;
    margin: 8px 0 0;
    color: #76badf;
    font-size: 11px;
    line-height: 1.4;
    text-align: center;
}

.calendar-holiday-status.is-error {
    color: #ff8b94;
}

@media (max-width: 880px) {
    .calendar-country-row {
        align-items: stretch;
        flex-direction: column;
    }

    .calendar-country-row select {
        width: 100%;
    }
}

/* ============================================================
   首页三栏桌面端宽度与对齐优化
============================================================ */

@media (min-width: 1281px) {
    .home-content-layout {
        width: 100%;
        max-width: none;
        padding:
            28px 14px 50px;
        grid-template-columns:
            320px minmax(0, 1fr) 320px;
        gap: 18px;
    }

    .home-left-sidebar,
    .home-right-sidebar {
        width: 100%;
    }

    .home-side-card {
        width: 100%;
    }
}

/* ============================================================
   右侧央行利率模块位置微调
============================================================ */

@media (min-width: 1281px) {
    .home-right-sidebar {
        transform: translateX(-11px);
    }
}

/* ============================================================
   首页实时汇率模块
============================================================ */

.home-fx-card {
    min-height: 420px;
}

.home-fx-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 14px;
}

.home-fx-header h2 {
    margin: 6px 0 0;
}

.fx-refresh-button {
    flex: 0 0 auto;
    padding: 7px 10px;
    border: 1px solid #2b78a7;
    border-radius: 8px;
    background: #0b4c73;
    color: #ffffff;
    font: inherit;
    font-size: 12px;
    cursor: pointer;
}

.fx-refresh-button:hover {
    background: #0d6797;
}

.fx-refresh-button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.fx-base-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
}

.fx-base-row label {
    flex: 0 0 auto;
    color: #8fc8e8;
    font-size: 11px;
    font-weight: 700;
    white-space: nowrap;
}

.fx-base-row select {
    min-width: 0;
    flex: 1;
    height: 33px;
    padding: 0 8px;
    border: 1px solid #2b6d98;
    border-radius: 8px;
    outline: none;
    background: #071f36;
    color: #ffffff;
    font: inherit;
    font-size: 11px;
    cursor: pointer;
}

.fx-base-row select:focus {
    border-color: #36c8ff;
    box-shadow:
        0 0 0 2px rgba(54, 200, 255, 0.14);
}

.fx-status-message {
    min-height: 17px;
    margin: 0 0 9px;
    color: #77bddf;
    font-size: 10px;
    line-height: 1.4;
    text-align: center;
}

.fx-status-message.is-error {
    color: #ff8993;
}

.fx-rates-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.fx-rate-item {
    display: grid;
    grid-template-columns:
        minmax(0, 1fr) auto;
    gap: 8px;
    align-items: center;
    min-height: 35px;
    padding: 7px 9px;
    box-sizing: border-box;
    border: 1px solid #174b6e;
    border-radius: 8px;
    background: rgba(3, 22, 39, 0.68);
}

.fx-rate-currency {
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 7px;
}

.fx-rate-code {
    flex: 0 0 auto;
    color: #34c7ff;
    font-size: 12px;
    font-weight: 800;
}

.fx-rate-name {
    min-width: 0;
    overflow: hidden;
    color: #aac8da;
    font-size: 10px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.fx-rate-value {
    color: #ffffff;
    font-size: 12px;
    font-weight: 800;
    text-align: right;
    white-space: nowrap;
}

.fx-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-top: 10px;
    padding-top: 9px;
    border-top: 1px solid #17465f;
    color: #729eb8;
    font-size: 9px;
}

@media (max-width: 880px) {
    .home-fx-card {
        min-height: auto;
    }

    .fx-base-row {
        align-items: stretch;
        flex-direction: column;
    }

    .fx-base-row select {
        width: 100%;
    }
}

/*
 * ============================================================
 * 首页全球央行利率模块
 * ============================================================
 */

.home-central-bank-card {
    min-height: 420px;
    overflow: hidden;
}

.home-central-bank-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 10px;
}

.home-central-bank-header h2 {
    margin: 6px 0 0;
    color: #ffd21f;
    font-size: 24px;
    line-height: 1.15;
}

.central-bank-refresh-button {
    flex: 0 0 auto;
    min-width: 48px;
    min-height: 34px;
    padding: 6px 10px;
    border: 1px solid #247fb1;
    border-radius: 9px;
    background: #07537d;
    color: #ffffff;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition:
        background-color 0.2s ease,
        border-color 0.2s ease,
        opacity 0.2s ease;
}

.central-bank-refresh-button:hover {
    background: #086a9f;
    border-color: #36c8ff;
}

.central-bank-refresh-button:disabled {
    cursor: not-allowed;
    opacity: 0.55;
}

.central-bank-status-message {
    margin: 0 0 10px;
    padding: 0;
    color: #7edcff;
    font-size: 12px;
    line-height: 1.4;
    text-align: center;
}

.central-bank-status-message.is-error {
    color: #ff8a8a;
}

.central-bank-table-wrap {
    width: 100%;
    overflow-x: auto;
    border: 1px solid #16597a;
    border-radius: 10px;
    background: rgba(1, 27, 45, 0.72);
    scrollbar-width: thin;
}

.central-bank-table {
    width: 100%;
    min-width: 286px;
    border-collapse: collapse;
    table-layout: fixed;
    color: #ffffff;
    font-size: 10px;
}

.central-bank-table th,
.central-bank-table td {
    padding: 8px 3px;
    border-bottom: 1px solid rgba(38, 126, 166, 0.45);
    text-align: center;
    vertical-align: middle;
    white-space: nowrap;
}

.central-bank-table th {
    background: rgba(4, 60, 91, 0.92);
    color: #77dcff;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.2px;
}

.central-bank-table th:first-child,
.central-bank-table td:first-child {
    width: 72px;
    padding-left: 6px;
    text-align: left;
}

.central-bank-table th:not(:first-child),
.central-bank-table td:not(:first-child) {
    width: calc((100% - 72px) / 4);
}

.central-bank-table tbody tr:last-child td {
    border-bottom: 0;
}

.central-bank-table tbody tr:hover {
    background: rgba(0, 164, 230, 0.08);
}

.central-bank-name {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.central-bank-name strong {
    overflow: hidden;
    color: #31d1ff;
    font-size: 11px;
    line-height: 1.2;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.central-bank-name span {
    overflow: hidden;
    color: #9dc3d4;
    font-size: 9px;
    line-height: 1.15;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.central-bank-value {
    display: inline-block;
    color: #ffffff;
    font-size: 11px;
    font-weight: 800;
    line-height: 1.2;
    text-align: center;
    white-space: nowrap;
}

.central-bank-value.is-up {
    color: #ff7676;
}

.central-bank-value.is-down {
    color: #5be6a7;
}

.central-bank-value.is-unchanged {
    color: #ffffff;
}

.central-bank-empty-row td {
    padding: 22px 8px;
    color: #9dc3d4;
    font-size: 12px;
    text-align: center;
}

.central-bank-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-top: 10px;
    padding-top: 9px;
    border-top: 1px solid rgba(38, 126, 166, 0.5);
    color: #78bdd8;
    font-size: 9px;
    line-height: 1.3;
}

.central-bank-footer span:last-child {
    flex: 0 0 auto;
    color: #9dc3d4;
}

.central-bank-value.is-range {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1px;
    min-height: 52px;
    line-height: 1;
    white-space: normal;
}

.central-bank-range-line {
    display: block;
    width: 100%;
    font-size: 10px;
    font-weight: 800;
    line-height: 1.1;
    text-align: center;
    white-space: nowrap;
}

.central-bank-range-separator {
    display: block;
    width: 100%;
    color: #78bdd8;
    font-size: 10px;
    font-weight: 800;
    line-height: 1;
    text-align: center;
}

.central-bank-table tbody tr {
    min-height: 46px;
}

.central-bank-table td {
    min-height: 46px;
}

.central-bank-table tbody tr:first-child td {
    height: 68px;
}

@media (max-width: 1280px) {
    .home-central-bank-card {
        min-height: auto;
    }

    .central-bank-table {
        min-width: 300px;
    }
}

@media (max-width: 760px) {
    .home-central-bank-header h2 {
        font-size: 22px;
    }

    .central-bank-table {
        min-width: 520px;
        font-size: 11px;
    }

    .central-bank-table th,
    .central-bank-table td {
        padding: 9px 6px;
    }

    .central-bank-table th:first-child,
    .central-bank-table td:first-child {
        width: 110px;
    }

    .central-bank-value {
        font-size: 11px;
    }
}

/*
 * =========================================
 * 首页深色双层导航
 * =========================================
 */

.home-primary-nav,
.home-secondary-nav {
    width: 100%;
    margin: 0;
    box-sizing: border-box;
}

.home-primary-nav {
    position: sticky;
    top: 0;
    z-index: 900;
    background:
        linear-gradient(180deg,
            #07192d 0%,
            #061426 100%);
    border-top: 1px solid rgba(36, 184, 255, 0.18);
    border-bottom: 1px solid rgba(36, 184, 255, 0.34);
    box-shadow:
        0 8px 22px rgba(0, 0, 0, 0.28);
}

.home-secondary-nav {
    background:
        linear-gradient(180deg,
            #0a2138 0%,
            #071a2e 100%);
    border-bottom: 1px solid rgba(36, 184, 255, 0.26);
    box-shadow:
        0 6px 18px rgba(0, 0, 0, 0.2);
}

.home-nav-inner {
    width: min(100%, 1600px);
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    box-sizing: border-box;
}

.home-primary-nav-inner {
    min-height: 52px;
    gap: 4px;
}

.home-primary-nav .home-nav-inner a {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 52px;
    padding: 0 24px;
    color: #dcecff;
    background: transparent;
    border: 0;
    text-decoration: none;
    font-size: 15px;
    font-weight: 750;
    line-height: 1;
    white-space: nowrap;
    transition:
        color 0.2s ease,
        background-color 0.2s ease;
}

.home-primary-nav .home-nav-inner a:hover {
    color: #35c8ff;
    background: rgba(26, 135, 199, 0.14);
}

.home-primary-nav .home-nav-inner a.active {
    color: #ffd34e;
    background:
        linear-gradient(180deg,
            rgba(255, 205, 65, 0.14) 0%,
            rgba(255, 205, 65, 0.04) 100%);
}

.home-primary-nav .home-nav-inner a.active::after {
    content: "";
    position: absolute;
    left: 22px;
    right: 22px;
    bottom: 0;
    height: 3px;
    border-radius: 3px 3px 0 0;
    background: #ffd34e;
    box-shadow:
        0 0 10px rgba(255, 211, 78, 0.42);
}

.home-primary-nav .home-vip-nav {
    color: #ffd34e;
}

.home-secondary-nav-inner {
    min-height: 43px;
    gap: 2px;
    overflow-x: auto;
    scrollbar-width: thin;
    scrollbar-color:
        rgba(51, 198, 255, 0.45) transparent;
}

.home-secondary-nav .home-nav-inner a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    min-height: 43px;
    padding: 0 15px;
    color: #c6dcf2;
    background: transparent;
    border-radius: 7px;
    text-decoration: none;
    font-size: 13px;
    font-weight: 650;
    line-height: 1;
    white-space: nowrap;
    transition:
        color 0.2s ease,
        background-color 0.2s ease;
}

.home-secondary-nav .home-nav-inner a:hover {
    color: #37caff;
    background: rgba(24, 151, 220, 0.14);
}

.home-nav-caret {
    display: inline-block;
    width: 0;
    height: 0;
    margin-top: 1px;
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    border-top: 5px solid currentColor;
    opacity: 0.8;
    transform-origin: center;
    transition:
        transform 0.2s ease,
        opacity 0.2s ease;
}

.home-secondary-link:hover .home-nav-caret {
    opacity: 1;
    transform: translateY(1px);
}

@media (max-width: 900px) {
    .home-nav-inner {
        padding-left: 12px;
        padding-right: 12px;
    }

    .home-primary-nav-inner {
        overflow-x: auto;
    }

    .home-primary-nav .home-nav-inner a {
        min-height: 48px;
        padding: 0 17px;
        font-size: 14px;
    }

    .home-secondary-nav-inner {
        min-height: 41px;
    }

    .home-secondary-nav .home-nav-inner a {
        min-height: 41px;
        padding: 0 12px;
        font-size: 12px;
    }
}

/*
 * 禁用旧版分类导航文字 v
 */
.home-secondary-nav .home-secondary-nav-inner>a::after {
    content: none !important;
    display: none !important;
}

/*
 * 只显示新版小三角箭头
 */
.home-secondary-nav .home-secondary-nav-inner>a .home-nav-caret {
    display: inline-block !important;
}

.country-filter-menu {
    position: absolute;
    z-index: 1200;
    min-width: 180px;
    padding: 8px;
    border: 1px solid rgba(55, 202, 255, 0.42);
    border-radius: 10px;
    background: linear-gradient(180deg,
            rgba(8, 35, 59, 0.98) 0%,
            rgba(5, 24, 43, 0.98) 100%);
    box-shadow:
        0 14px 32px rgba(0, 0, 0, 0.34),
        0 0 16px rgba(55, 202, 255, 0.12);
}

.country-filter-menu[hidden] {
    display: none !important;
}

.country-filter-menu button {
    width: 100%;
    min-height: 38px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding: 0 12px;
    border: 0;
    border-radius: 7px;
    background: transparent;
    color: #dcecff;
    font-size: 14px;
    font-weight: 600;
    text-align: left;
    cursor: pointer;
    transition:
        color 0.2s ease,
        background-color 0.2s ease;
}

.country-filter-menu button:hover,
.country-filter-menu button.is-active {
    color: #37caff;
    background: rgba(24, 151, 220, 0.16);
}

@media (max-width: 900px) {
    .country-filter-menu {
        min-width: 160px;
    }

    .country-filter-menu button {
        min-height: 36px;
        font-size: 13px;
    }
}

/*
 * =========================================
 * 首页动态分类与国家菜单
 * =========================================
 */

.home-category-loading {
    flex: 0 0 auto;
    padding: 11px 15px;
    color: #7c8b99;
    font-size: 14px;
    font-weight: 600;
    white-space: nowrap;
}

.home-category-loading[data-state="error"],
.country-filter-loading[data-state="error"] {
    color: #d9534f;
}

.home-secondary-nav .home-nav-inner a.is-active {
    color: #087fd1;
    background: #dceefb;
}

.home-secondary-nav .home-nav-inner a.is-active::after {
    content: "";
    position: absolute;
    right: 13px;
    bottom: 0;
    left: 13px;
    height: 3px;
    border-radius: 3px 3px 0 0;
    background: #087fd1;
}

.country-filter-loading {
    padding: 10px 12px;
    color: #9fb3c7;
    font-size: 13px;
    font-weight: 600;
}

.country-filter-menu button.is-active {
    background: rgba(32, 151, 224, 0.28);
    color: #ffffff;
}

@media (max-width: 900px) {
    .home-category-loading {
        padding: 10px 12px;
        font-size: 13px;
    }
}

/* =========================================================
Daily News 新版首页专用样式
第一阶段：顶部网站栏
========================================================= */

.home-top-header {
    width: 100%;
    margin: 0;
    padding: 0;
    background: #07111f;
    border-bottom: 3px solid #e5b800;
    color: #ffffff;
    box-sizing: border-box;
}

.home-header-inner {
    width: min(100%, 1600px);
    min-height: 92px;
    margin: 0 auto;
    padding: 14px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
    box-sizing: border-box;
}

.home-brand {
    flex: 0 1 auto;
    min-width: 390px;
    display: flex;
    align-items: center;
    gap: 18px;
    color: #ffffff;
    text-decoration: none;
}

.home-brand-logo {
    width: 164px;
    min-width: 164px;
    height: 64px;
    padding: 8px 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 10px;
    background: linear-gradient(135deg, #f0c93d 0%, #2188e8 75%);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.28);
}

.home-brand-cn {
    display: block;
    margin-bottom: 2px;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.1;
    color: #ffffff;
}

.home-brand-en {
    display: block;
    font-size: 21px;
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: 0.3px;
    color: #ffffff;
    white-space: nowrap;
}

.home-brand-title {
    min-width: 0;
}

.home-brand-title h1 {
    margin: 0 0 5px;
    font-size: clamp(18px, 1.45vw, 25px);
    font-weight: 750;
    line-height: 1.2;
    color: #ffffff;
    white-space: nowrap;
}

.home-brand-title p {
    margin: 0;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.35;
    color: #cbd8e7;
}

.home-header-actions {
    flex: 1 1 auto;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
    min-width: 0;
}

.home-search-box {
    flex: 1 1 360px;
    max-width: 540px;
    min-width: 240px;
    height: 44px;
    display: flex;
    align-items: stretch;
    overflow: hidden;
    border: 1px solid #60758e;
    border-radius: 7px;
    background: #ffffff;
}

.home-search-box input {
    flex: 1;
    min-width: 0;
    height: 100%;
    padding: 0 14px;
    border: 0;
    outline: none;
    background: #ffffff;
    color: #182332;
    font-size: 15px;
    box-sizing: border-box;
}

.home-search-box input::placeholder {
    color: #7a8796;
}

.home-search-box button {
    flex: 0 0 auto;
    min-width: 72px;
    padding: 0 16px;
    border: 0;
    border-left: 1px solid #d5dce4;
    background: #087fd1;
    color: #ffffff;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
}

.home-search-box button:hover {
    background: #066db4;
}

.home-header-actions .auth-actions {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
}

.home-header-actions .auth-link,
.home-header-actions .auth-my,
.home-header-actions .auth-logout {
    min-height: 42px;
    padding: 8px 15px;
    border-radius: 6px;
    font-size: 15px;
    line-height: 1;
    white-space: nowrap;
}

.home-language-box {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    gap: 7px;
    white-space: nowrap;
}

.home-language-box label {
    font-size: 14px;
    color: #cbd8e7;
}

.home-language-box select {
    height: 42px;
    padding: 0 30px 0 11px;
    border: 1px solid #60758e;
    border-radius: 6px;
    outline: none;
    background: #ffffff;
    color: #17202c;
    font-size: 14px;
    cursor: pointer;
}

@media (max-width: 1180px) {
    .home-header-inner {
        align-items: flex-start;
        flex-direction: column;
        gap: 14px;
    }

    .home-brand {
        min-width: 0;
    }

    .home-header-actions {
        width: 100%;
        justify-content: flex-start;
        flex-wrap: wrap;
    }

    .home-search-box {
        max-width: none;
    }
}

@media (max-width: 720px) {
    .home-header-inner {
        padding: 12px;
    }

    .home-brand {
        width: 100%;
        align-items: flex-start;
    }

    .home-brand-logo {
        width: 138px;
        min-width: 138px;
        height: 58px;
    }

    .home-brand-en {
        font-size: 18px;
    }

    .home-brand-title h1 {
        white-space: normal;
        font-size: 17px;
    }

    .home-brand-title p {
        font-size: 13px;
    }

    .home-header-actions {
        display: grid;
        grid-template-columns: 1fr;
    }

    .home-search-box {
        width: 100%;
        min-width: 0;
    }

    .home-header-actions .auth-actions,
    .home-language-box {
        width: 100%;
        flex-wrap: wrap;
    }
}

/* =========================================================
第二阶段：两级新闻导航
========================================================= */

.home-primary-nav,
.home-secondary-nav {
    width: 100%;
    margin: 0;
    box-sizing: border-box;
}

.home-primary-nav {
    position: sticky;
    top: 0;
    z-index: 900;
    background: #ffffff;
    border-bottom: 1px solid #d8e0e8;
    box-shadow: 0 3px 12px rgba(13, 31, 53, 0.08);
}

.home-secondary-nav {
    background: #f4f7fa;
    border-bottom: 1px solid #d8e0e8;
}

.home-nav-inner {
    width: min(100%, 1600px);
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    gap: 4px;
    overflow-x: auto;
    box-sizing: border-box;
    scrollbar-width: thin;
}

.home-nav-inner a {
    flex: 0 0 auto;
    position: relative;
    padding: 15px 18px;
    color: #1d2b3a;
    text-decoration: none;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.2;
    white-space: nowrap;
    transition:
        color 0.2s ease,
        background-color 0.2s ease;
}

.home-primary-nav .home-nav-inner a:hover {
    color: #087fd1;
    background: #f1f7fc;
}

.home-primary-nav .home-nav-inner a.active {
    color: #087fd1;
    background: #edf6fd;
}

.home-primary-nav .home-nav-inner a.active::after {
    content: "";
    position: absolute;
    right: 16px;
    bottom: 0;
    left: 16px;
    height: 3px;
    border-radius: 3px 3px 0 0;
    background: #087fd1;
}

.home-primary-nav .home-vip-nav {
    color: #9a6800;
    background: linear-gradient(180deg, #fff8d8 0%, #ffefaa 100%);
}

.home-primary-nav .home-vip-nav:hover {
    color: #704b00;
    background: linear-gradient(180deg, #fff3ba 0%, #ffe376 100%);
}

.home-secondary-nav-inner {
    gap: 0;
    padding-top: 2px;
    padding-bottom: 2px;
}

.home-secondary-nav .home-nav-inner a {
    padding: 11px 15px;
    color: #4b5968;
    font-size: 14px;
    font-weight: 600;
}

.home-secondary-nav .home-nav-inner a:hover {
    color: #087fd1;
    background: #e8f2fa;
}

@media (max-width: 900px) {
    .home-nav-inner {
        padding-right: 12px;
        padding-left: 12px;
    }

    .home-nav-inner a {
        padding: 13px 14px;
        font-size: 14px;
    }

    .home-secondary-nav .home-nav-inner a {
        padding: 10px 12px;
        font-size: 13px;
    }
}

/* ========================================
首页动态网站 LOGO
======================================== */

.site-header-default-logo {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.site-header-logo {
    display: block;
    width: 100%;
    height: 100%;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    object-position: center;
    border-radius: 10px;
}

.site-header-logo[hidden],
.site-header-default-logo[hidden] {
    display: none !important;
}

@media (max-width: 900px) {
    .site-header-logo {
        border-radius: 8px;
    }
}

.home-brand-logo {
    padding: 0;
    overflow: hidden;
}

.site-header-logo {
    width: 100%;
    height: 100%;
    max-width: none;
    max-height: none;
    object-fit: cover;
    object-position: center;
    border-radius: 10px;
}

/* =========================================
首页横幅广告轮播
地图下方、首页频道导航上方
========================================= */

.home-ad-carousel-section {
    width: 100%;
    padding: 18px 24px;
    box-sizing: border-box;
    background: #061426;
}

.home-ad-carousel {
    position: relative;
    width: min(100%, 1600px);
    height: clamp(96px, 9vw, 150px);
    margin: 0 auto;
    overflow: hidden;
    border: 1px solid #1c5f8a;
    border-radius: 12px;
    background: #071a30;
    box-shadow:
        0 12px 30px rgba(0, 0, 0, 0.28),
        0 0 18px rgba(23, 145, 224, 0.12);
}

.home-ad-track {
    display: flex;
    width: 100%;
    height: 100%;
    transform: translateX(0);
    transition: transform 0.55s ease;
    will-change: transform;
}

.home-ad-slide {
    position: relative;
    flex: 0 0 100%;
    width: 100%;
    height: 100%;
    overflow: hidden;
    color: #ffffff;
    text-decoration: none;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}

.home-ad-image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    border: 0;
}

.home-ad-slide::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg,
            rgba(2, 18, 42, 0.2),
            rgba(1, 44, 94, 0.05),
            rgba(2, 18, 42, 0.25));
    pointer-events: none;
}

.home-ad-slide.has-image::before {
    display: none;
}

.home-ad-slide-1 {
    background:
        radial-gradient(circle at 15% 50%,
            rgba(255, 201, 62, 0.55),
            transparent 20%),
        linear-gradient(100deg,
            #03256f 0%,
            #0579e6 48%,
            #03205e 100%);
}

.home-ad-slide-2 {
    background:
        radial-gradient(circle at 18% 50%,
            rgba(44, 210, 255, 0.5),
            transparent 22%),
        linear-gradient(100deg,
            #041a57 0%,
            #006fbf 50%,
            #041741 100%);
}

.home-ad-slide-3 {
    background:
        radial-gradient(circle at 20% 50%,
            rgba(255, 184, 36, 0.48),
            transparent 22%),
        linear-gradient(100deg,
            #072465 0%,
            #084ea6 50%,
            #051735 100%);
}

.home-ad-slide-4 {
    background:
        radial-gradient(circle at 18% 50%,
            rgba(55, 220, 255, 0.5),
            transparent 21%),
        linear-gradient(100deg,
            #031e62 0%,
            #075ec7 50%,
            #031534 100%);
}

.home-ad-slide-5 {
    background:
        radial-gradient(circle at 18% 50%,
            rgba(255, 194, 64, 0.46),
            transparent 22%),
        linear-gradient(100deg,
            #072457 0%,
            #0679c8 48%,
            #041b41 100%);
}

.home-ad-placeholder {
    position: relative;
    z-index: 2;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    padding: 12px 76px;
    text-align: center;
    text-shadow:
        0 2px 3px rgba(0, 0, 0, 0.65),
        0 0 15px rgba(30, 170, 255, 0.7);
}

.home-ad-placeholder strong {
    display: block;
    color: #ffd447;
    font-size: clamp(22px, 3vw, 48px);
    line-height: 1.1;
    font-weight: 900;
    letter-spacing: 2px;
}

.home-ad-placeholder small {
    display: block;
    margin-top: 8px;
    color: #ffffff;
    font-size: clamp(12px, 1.15vw, 18px);
    font-weight: 700;
    letter-spacing: 1px;
}

.home-ad-arrow {
    position: absolute;
    z-index: 5;
    top: 50%;
    width: 38px;
    height: 52px;
    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: 8px;
    background: rgba(3, 20, 46, 0.62);
    color: #ffffff;
    font-size: 25px;
    line-height: 1;
    cursor: pointer;
    transform: translateY(-50%);
    transition:
        background 0.2s ease,
        border-color 0.2s ease;
}

.home-ad-arrow:hover {
    background: rgba(7, 122, 213, 0.9);
    border-color: #52c8ff;
}

.home-ad-arrow-prev {
    left: 12px;
}

.home-ad-arrow-next {
    right: 12px;
}

.home-ad-dots {
    position: absolute;
    z-index: 6;
    left: 50%;
    bottom: 8px;
    display: flex;
    align-items: center;
    gap: 7px;
    transform: translateX(-50%);
}

.home-ad-dot {
    width: 8px;
    height: 8px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.48);
    cursor: pointer;
    transition:
        width 0.2s ease,
        border-radius 0.2s ease,
        background 0.2s ease;
}

.home-ad-dot.is-active {
    width: 24px;
    border-radius: 8px;
    background: #ffd447;
}

@media (max-width: 820px) {
    .home-ad-carousel-section {
        padding: 12px;
    }

    .home-ad-carousel {
        height: clamp(90px, 24vw, 125px);
        border-radius: 9px;
    }

    .home-ad-placeholder {
        padding: 10px 50px;
    }

    .home-ad-placeholder strong {
        font-size: clamp(18px, 5vw, 30px);
    }

    .home-ad-arrow {
        width: 32px;
        height: 44px;
        font-size: 21px;
    }

    .home-ad-arrow-prev {
        left: 7px;
    }

    .home-ad-arrow-next {
        right: 7px;
    }
}

@media (max-width: 520px) {
    .home-ad-carousel {
        height: 96px;
    }

    .home-ad-placeholder {
        padding: 8px 38px 18px;
    }

    .home-ad-placeholder strong {
        font-size: 18px;
        letter-spacing: 0.5px;
    }

    .home-ad-placeholder small {
        margin-top: 5px;
        font-size: 11px;
    }

    .home-ad-arrow {
        width: 28px;
        height: 38px;
        font-size: 18px;
    }
}

/* ============================================================
首页实用工具区
============================================================ */

.home-tools-section {
    width: 100%;
    padding: 22px 24px;
    box-sizing: border-box;
    background:
        linear-gradient(180deg,
            #061425 0%,
            #07182c 100%);
    border-bottom: 1px solid #173d5b;
}

.home-tools-inner {
    width: min(100%, 1600px);
    margin: 0 auto;
    display: grid;
    grid-template-columns:
        minmax(360px, 1.15fr) minmax(280px, 0.9fr) minmax(280px, 0.9fr);
    gap: 18px;
    align-items: stretch;
}

.home-tool-card {
    min-width: 0;
    padding: 20px;
    box-sizing: border-box;
    border: 1px solid #205a82;
    border-radius: 14px;
    background:
        linear-gradient(145deg,
            rgba(11, 43, 73, 0.96),
            rgba(4, 23, 42, 0.98));
    box-shadow:
        0 14px 32px rgba(0, 0, 0, 0.24);
    color: #eaf6ff;
}

.home-tool-card-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 14px;
}

.home-tool-kicker {
    display: block;
    margin-bottom: 4px;
    color: #27c3ff;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 1.5px;
}

.home-tool-card-header h2 {
    margin: 0;
    color: #ffd248;
    font-size: 25px;
    line-height: 1.2;
}

.calendar-today-button {
    flex: 0 0 auto;
    padding: 8px 12px;
    border: 1px solid #2788bd;
    border-radius: 8px;
    background: #0b4c73;
    color: #ffffff;
    font: inherit;
    font-size: 13px;
    cursor: pointer;
}

.calendar-today-button:hover {
    background: #0d6898;
}

.calendar-current-summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 14px;
    margin-bottom: 14px;
    border: 1px solid #1d5277;
    border-radius: 10px;
    background: rgba(3, 18, 34, 0.72);
}

.calendar-current-summary strong {
    color: #ffffff;
    font-size: 17px;
}

.calendar-current-summary span {
    color: #63d8ff;
    font-size: 14px;
    font-weight: 700;
}

.calendar-navigation {
    display: grid;
    grid-template-columns: 38px 1fr 38px;
    gap: 10px;
    align-items: center;
    margin-bottom: 12px;
}

.calendar-navigation h3 {
    margin: 0;
    color: #ffffff;
    font-size: 18px;
    text-align: center;
}

.calendar-navigation button {
    width: 38px;
    height: 36px;
    padding: 0;
    border: 1px solid #2c6d98;
    border-radius: 8px;
    background: #082642;
    color: #ffffff;
    font-size: 25px;
    line-height: 1;
    cursor: pointer;
}

.calendar-navigation button:hover {
    background: #0c476d;
}

.calendar-weekdays,
.calendar-days {
    display: grid;
    grid-template-columns:
        repeat(7, minmax(0, 1fr));
    gap: 6px;
}

.calendar-weekdays {
    margin-bottom: 6px;
}

.calendar-weekdays span {
    padding: 6px 0;
    color: #7ecdf4;
    font-size: 12px;
    font-weight: 700;
    text-align: center;
}

.calendar-days {
    min-height: 220px;
}

.calendar-day {
    min-height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4px;
    box-sizing: border-box;
    border: 1px solid transparent;
    border-radius: 8px;
    background: rgba(5, 30, 52, 0.7);
    color: #dcefff;
    font-size: 13px;
    cursor: default;
}

.calendar-day.is-outside {
    color: #57758d;
    background: rgba(3, 17, 30, 0.45);
}

.calendar-day.is-today {
    border-color: #ffd248;
    background: #0d5a82;
    color: #ffffff;
    font-weight: 800;
    box-shadow:
        0 0 0 2px rgba(255, 210, 72, 0.14);
}

.home-tool-placeholder {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 360px;
    text-align: center;
}

.home-tool-placeholder span {
    color: #28c4ff;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 1.4px;
}

.home-tool-placeholder strong {
    display: block;
    margin: 10px 0;
    color: #ffd248;
    font-size: 25px;
}

.home-tool-placeholder p {
    margin: 0;
    color: #9fc0d9;
    font-size: 14px;
    line-height: 1.6;
}

@media (max-width: 1180px) {
    .home-tools-inner {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }

    .home-calendar-card {
        grid-column: 1 / -1;
    }

    .home-tool-placeholder {
        min-height: 200px;
    }
}

@media (max-width: 760px) {
    .home-tools-section {
        padding: 14px 12px;
    }

    .home-tools-inner {
        grid-template-columns: 1fr;
    }

    .home-calendar-card {
        grid-column: auto;
    }

    .home-tool-card {
        padding: 16px;
    }

    .home-tool-card-header {
        align-items: stretch;
        flex-direction: column;
    }

    .calendar-today-button {
        width: 100%;
    }

    .calendar-current-summary {
        align-items: flex-start;
        flex-direction: column;
    }

    .calendar-days {
        min-height: 190px;
    }

    .home-tool-placeholder {
        min-height: 160px;
    }
}

/* ============================================================
首页新闻三栏布局
============================================================ */

.home-content-layout {
    width: min(100%, 1800px);
    margin: 0 auto;
    padding: 34px 20px 50px;
    box-sizing: border-box;
    display: grid;
    grid-template-columns:
        minmax(260px, 300px) minmax(0, 1fr) minmax(260px, 300px);
    gap: 28px;
    align-items: start;
    background: #000000;
}

.home-left-sidebar,
.home-right-sidebar {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.home-center-content {
    min-width: 0;
}

.home-side-card {
    padding: 18px;
    box-sizing: border-box;
    border: 1px solid #205a82;
    border-radius: 14px;
    background:
        linear-gradient(145deg,
            rgba(11, 43, 73, 0.96),
            rgba(4, 23, 42, 0.98));
    box-shadow:
        0 14px 32px rgba(0, 0, 0, 0.24);
    color: #eaf6ff;
}

.home-side-card h2 {
    margin: 6px 0 14px;
    color: #ffd248;
    font-size: 23px;
    line-height: 1.2;
}

.home-side-card p {
    margin: 0;
    color: #9fc0d9;
    font-size: 14px;
    line-height: 1.6;
}

.home-calendar-card {
    min-height: 430px;
}

.home-fx-card {
    min-height: 190px;
}

.home-central-bank-card {
    min-height: 430px;
}

.home-content-layout .home-news-section {
    width: 100%;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.home-content-layout .home-news-list {
    width: 100%;
}

@media (max-width: 1280px) {
    .home-content-layout {
        grid-template-columns:
            minmax(250px, 280px) minmax(0, 1fr);
    }

    .home-right-sidebar {
        grid-column: 1 / -1;
    }

    .home-central-bank-card {
        min-height: 200px;
    }
}

@media (max-width: 880px) {
    .home-content-layout {
        grid-template-columns: 1fr;
        padding: 22px 12px 36px;
        gap: 18px;
    }

    .home-left-sidebar,
    .home-center-content,
    .home-right-sidebar {
        grid-column: auto;
    }

    .home-calendar-card,
    .home-fx-card,
    .home-central-bank-card {
        min-height: auto;
    }
}

/* ============================================================
万年历农历日期样式
============================================================ */

.calendar-day {
    min-height: 48px;
    flex-direction: column;
    gap: 2px;
    padding: 5px 2px;
    line-height: 1.1;
}

.calendar-solar-day {
    display: block;
    color: #f5fbff;
    font-size: 14px;
    font-weight: 800;
    line-height: 1.1;
}

.calendar-lunar-day {
    display: block;
    max-width: 100%;
    overflow: hidden;
    color: #8fb7d1;
    font-size: 10px;
    font-weight: 500;
    line-height: 1.15;
    text-align: center;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.calendar-day.is-outside .calendar-solar-day {
    color: #4e718a;
}

.calendar-day.is-outside .calendar-lunar-day {
    color: #3f6077;
}

.calendar-day.is-today .calendar-solar-day {
    color: #ffffff;
}

.calendar-day.is-today .calendar-lunar-day {
    color: #ffe27b;
    font-weight: 700;
}

.calendar-days {
    min-height: 300px;
}

@media (max-width: 880px) {
    .calendar-day {
        min-height: 46px;
    }

    .calendar-solar-day {
        font-size: 13px;
    }

    .calendar-lunar-day {
        font-size: 10px;
    }

    .calendar-days {
        min-height: 285px;
    }
}

/* ============================================================
万年历国家节假日选择
============================================================ */

.calendar-country-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 12px;
}

.calendar-country-row label {
    flex: 0 0 auto;
    color: #8fc8e8;
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
}

.calendar-country-row select {
    min-width: 0;
    flex: 1;
    height: 34px;
    padding: 0 9px;
    border: 1px solid #2b6d98;
    border-radius: 8px;
    outline: none;
    background: #071f36;
    color: #ffffff;
    font: inherit;
    font-size: 12px;
    cursor: pointer;
}

.calendar-country-row select:hover {
    border-color: #38a9e3;
}

.calendar-country-row select:focus {
    border-color: #36c8ff;
    box-shadow:
        0 0 0 2px rgba(54, 200, 255, 0.14);
}

.calendar-day.is-holiday {
    border-color:
        rgba(255, 88, 88, 0.5);
    background:
        rgba(111, 24, 38, 0.42);
}

.calendar-day.is-holiday .calendar-solar-day {
    color: #ff6b75;
}

.calendar-day.is-holiday .calendar-lunar-day {
    color: #ff9ca4;
    font-weight: 700;
}

.calendar-day.is-holiday.is-today {
    border-color: #ffd248;
    box-shadow:
        0 0 0 2px rgba(255, 210, 72, 0.15);
}

.calendar-day.is-substitute-holiday {
    border-style: dashed;
}

.calendar-holiday-status {
    min-height: 18px;
    margin: 8px 0 0;
    color: #76badf;
    font-size: 11px;
    line-height: 1.4;
    text-align: center;
}

.calendar-holiday-status.is-error {
    color: #ff8b94;
}

@media (max-width: 880px) {
    .calendar-country-row {
        align-items: stretch;
        flex-direction: column;
    }

    .calendar-country-row select {
        width: 100%;
    }
}

/* ============================================================
首页三栏桌面端宽度与对齐优化
============================================================ */

@media (min-width: 1281px) {
    .home-content-layout {
        width: 100%;
        max-width: none;
        padding:
            28px 14px 50px;
        grid-template-columns:
            320px minmax(0, 1fr) 320px;
        gap: 18px;
    }

    .home-left-sidebar,
    .home-right-sidebar {
        width: 100%;
    }

    .home-side-card {
        width: 100%;
    }
}

/* ============================================================
右侧央行利率模块位置微调
============================================================ */

@media (min-width: 1281px) {
    .home-right-sidebar {
        transform: translateX(-11px);
    }
}

/* ============================================================
首页实时汇率模块
============================================================ */

.home-fx-card {
    min-height: 420px;
}

.home-fx-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 14px;
}

.home-fx-header h2 {
    margin: 6px 0 0;
}

.fx-refresh-button {
    flex: 0 0 auto;
    padding: 7px 10px;
    border: 1px solid #2b78a7;
    border-radius: 8px;
    background: #0b4c73;
    color: #ffffff;
    font: inherit;
    font-size: 12px;
    cursor: pointer;
}

.fx-refresh-button:hover {
    background: #0d6797;
}

.fx-refresh-button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.fx-base-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
}

.fx-base-row label {
    flex: 0 0 auto;
    color: #8fc8e8;
    font-size: 11px;
    font-weight: 700;
    white-space: nowrap;
}

.fx-base-row select {
    min-width: 0;
    flex: 1;
    height: 33px;
    padding: 0 8px;
    border: 1px solid #2b6d98;
    border-radius: 8px;
    outline: none;
    background: #071f36;
    color: #ffffff;
    font: inherit;
    font-size: 11px;
    cursor: pointer;
}

.fx-base-row select:focus {
    border-color: #36c8ff;
    box-shadow:
        0 0 0 2px rgba(54, 200, 255, 0.14);
}

.fx-status-message {
    min-height: 17px;
    margin: 0 0 9px;
    color: #77bddf;
    font-size: 10px;
    line-height: 1.4;
    text-align: center;
}

.fx-status-message.is-error {
    color: #ff8993;
}

.fx-rates-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.fx-rate-item {
    display: grid;
    grid-template-columns:
        minmax(0, 1fr) auto;
    gap: 8px;
    align-items: center;
    min-height: 35px;
    padding: 7px 9px;
    box-sizing: border-box;
    border: 1px solid #174b6e;
    border-radius: 8px;
    background: rgba(3, 22, 39, 0.68);
}

.fx-rate-currency {
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 7px;
}

.fx-rate-code {
    flex: 0 0 auto;
    color: #34c7ff;
    font-size: 12px;
    font-weight: 800;
}

.fx-rate-name {
    min-width: 0;
    overflow: hidden;
    color: #aac8da;
    font-size: 10px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.fx-rate-value {
    color: #ffffff;
    font-size: 12px;
    font-weight: 800;
    text-align: right;
    white-space: nowrap;
}

.fx-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-top: 10px;
    padding-top: 9px;
    border-top: 1px solid #17465f;
    color: #729eb8;
    font-size: 9px;
}

@media (max-width: 880px) {
    .home-fx-card {
        min-height: auto;
    }

    .fx-base-row {
        align-items: stretch;
        flex-direction: column;
    }

    .fx-base-row select {
        width: 100%;
    }
}

/*
* ============================================================
* 首页全球央行利率模块
* ============================================================
*/

.home-central-bank-card {
    min-height: 420px;
    overflow: hidden;
}

.home-central-bank-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 10px;
}

.home-central-bank-header h2 {
    margin: 6px 0 0;
    color: #ffd21f;
    font-size: 24px;
    line-height: 1.15;
}

.central-bank-refresh-button {
    flex: 0 0 auto;
    min-width: 48px;
    min-height: 34px;
    padding: 6px 10px;
    border: 1px solid #247fb1;
    border-radius: 9px;
    background: #07537d;
    color: #ffffff;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition:
        background-color 0.2s ease,
        border-color 0.2s ease,
        opacity 0.2s ease;
}

.central-bank-refresh-button:hover {
    background: #086a9f;
    border-color: #36c8ff;
}

.central-bank-refresh-button:disabled {
    cursor: not-allowed;
    opacity: 0.55;
}

.central-bank-status-message {
    margin: 0 0 10px;
    padding: 0;
    color: #7edcff;
    font-size: 12px;
    line-height: 1.4;
    text-align: center;
}

.central-bank-status-message.is-error {
    color: #ff8a8a;
}

.central-bank-table-wrap {
    width: 100%;
    overflow-x: auto;
    border: 1px solid #16597a;
    border-radius: 10px;
    background: rgba(1, 27, 45, 0.72);
    scrollbar-width: thin;
}

.central-bank-table {
    width: 100%;
    min-width: 286px;
    border-collapse: collapse;
    table-layout: fixed;
    color: #ffffff;
    font-size: 10px;
}

.central-bank-table th,
.central-bank-table td {
    padding: 8px 3px;
    border-bottom: 1px solid rgba(38, 126, 166, 0.45);
    text-align: center;
    vertical-align: middle;
    white-space: nowrap;
}

.central-bank-table th {
    background: rgba(4, 60, 91, 0.92);
    color: #77dcff;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.2px;
}

.central-bank-table th:first-child,
.central-bank-table td:first-child {
    width: 72px;
    padding-left: 6px;
    text-align: left;
}

.central-bank-table th:not(:first-child),
.central-bank-table td:not(:first-child) {
    width: calc((100% - 72px) / 4);
}

.central-bank-table tbody tr:last-child td {
    border-bottom: 0;
}

.central-bank-table tbody tr:hover {
    background: rgba(0, 164, 230, 0.08);
}

.central-bank-name {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.central-bank-name strong {
    overflow: hidden;
    color: #31d1ff;
    font-size: 11px;
    line-height: 1.2;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.central-bank-name span {
    overflow: hidden;
    color: #9dc3d4;
    font-size: 9px;
    line-height: 1.15;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.central-bank-value {
    display: inline-block;
    color: #ffffff;
    font-size: 11px;
    font-weight: 800;
    line-height: 1.2;
    text-align: center;
    white-space: nowrap;
}

.central-bank-value.is-up {
    color: #ff7676;
}

.central-bank-value.is-down {
    color: #5be6a7;
}

.central-bank-value.is-unchanged {
    color: #ffffff;
}

.central-bank-empty-row td {
    padding: 22px 8px;
    color: #9dc3d4;
    font-size: 12px;
    text-align: center;
}

.central-bank-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-top: 10px;
    padding-top: 9px;
    border-top: 1px solid rgba(38, 126, 166, 0.5);
    color: #78bdd8;
    font-size: 9px;
    line-height: 1.3;
}

.central-bank-footer span:last-child {
    flex: 0 0 auto;
    color: #9dc3d4;
}

.central-bank-value.is-range {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1px;
    min-height: 52px;
    line-height: 1;
    white-space: normal;
}

.central-bank-range-line {
    display: block;
    width: 100%;
    font-size: 10px;
    font-weight: 800;
    line-height: 1.1;
    text-align: center;
    white-space: nowrap;
}

.central-bank-range-separator {
    display: block;
    width: 100%;
    color: #78bdd8;
    font-size: 10px;
    font-weight: 800;
    line-height: 1;
    text-align: center;
}

.central-bank-table tbody tr {
    min-height: 46px;
}

.central-bank-table td {
    min-height: 46px;
}

.central-bank-table tbody tr:first-child td {
    height: 68px;
}

@media (max-width: 1280px) {
    .home-central-bank-card {
        min-height: auto;
    }

    .central-bank-table {
        min-width: 300px;
    }
}

@media (max-width: 760px) {
    .home-central-bank-header h2 {
        font-size: 22px;
    }

    .central-bank-table {
        min-width: 520px;
        font-size: 11px;
    }

    .central-bank-table th,
    .central-bank-table td {
        padding: 9px 6px;
    }

    .central-bank-table th:first-child,
    .central-bank-table td:first-child {
        width: 110px;
    }

    .central-bank-value {
        font-size: 11px;
    }
}

/*
* =========================================
* 首页深色双层导航
* =========================================
*/

.home-primary-nav,
.home-secondary-nav {
    width: 100%;
    margin: 0;
    box-sizing: border-box;
}

.home-primary-nav {
    position: sticky;
    top: 0;
    z-index: 900;
    background:
        linear-gradient(180deg,
            #07192d 0%,
            #061426 100%);
    border-top: 1px solid rgba(36, 184, 255, 0.18);
    border-bottom: 1px solid rgba(36, 184, 255, 0.34);
    box-shadow:
        0 8px 22px rgba(0, 0, 0, 0.28);
}

.home-secondary-nav {
    background:
        linear-gradient(180deg,
            #0a2138 0%,
            #071a2e 100%);
    border-bottom: 1px solid rgba(36, 184, 255, 0.26);
    box-shadow:
        0 6px 18px rgba(0, 0, 0, 0.2);
}

.home-nav-inner {
    width: min(100%, 1600px);
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    box-sizing: border-box;
}

.home-primary-nav-inner {
    min-height: 52px;
    gap: 4px;
}

.home-primary-nav .home-nav-inner a {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 52px;
    padding: 0 24px;
    color: #dcecff;
    background: transparent;
    border: 0;
    text-decoration: none;
    font-size: 15px;
    font-weight: 750;
    line-height: 1;
    white-space: nowrap;
    transition:
        color 0.2s ease,
        background-color 0.2s ease;
}

.home-primary-nav .home-nav-inner a:hover {
    color: #35c8ff;
    background: rgba(26, 135, 199, 0.14);
}

.home-primary-nav .home-nav-inner a.active {
    color: #ffd34e;
    background:
        linear-gradient(180deg,
            rgba(255, 205, 65, 0.14) 0%,
            rgba(255, 205, 65, 0.04) 100%);
}

.home-primary-nav .home-nav-inner a.active::after {
    content: "";
    position: absolute;
    left: 22px;
    right: 22px;
    bottom: 0;
    height: 3px;
    border-radius: 3px 3px 0 0;
    background: #ffd34e;
    box-shadow:
        0 0 10px rgba(255, 211, 78, 0.42);
}

.home-primary-nav .home-vip-nav {
    color: #ffd34e;
}

.home-secondary-nav-inner {
    min-height: 43px;
    gap: 2px;
    overflow-x: auto;
    scrollbar-width: thin;
    scrollbar-color:
        rgba(51, 198, 255, 0.45) transparent;
}

.home-secondary-nav .home-nav-inner a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    min-height: 43px;
    padding: 0 15px;
    color: #c6dcf2;
    background: transparent;
    border-radius: 7px;
    text-decoration: none;
    font-size: 13px;
    font-weight: 650;
    line-height: 1;
    white-space: nowrap;
    transition:
        color 0.2s ease,
        background-color 0.2s ease;
}

.home-secondary-nav .home-nav-inner a:hover {
    color: #37caff;
    background: rgba(24, 151, 220, 0.14);
}

.home-nav-caret {
    display: inline-block;
    width: 0;
    height: 0;
    margin-top: 1px;
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    border-top: 5px solid currentColor;
    opacity: 0.8;
    transform-origin: center;
    transition:
        transform 0.2s ease,
        opacity 0.2s ease;
}

.home-secondary-link:hover .home-nav-caret {
    opacity: 1;
    transform: translateY(1px);
}

@media (max-width: 900px) {
    .home-nav-inner {
        padding-left: 12px;
        padding-right: 12px;
    }

    .home-primary-nav-inner {
        overflow-x: auto;
    }

    .home-primary-nav .home-nav-inner a {
        min-height: 48px;
        padding: 0 17px;
        font-size: 14px;
    }

    .home-secondary-nav-inner {
        min-height: 41px;
    }

    .home-secondary-nav .home-nav-inner a {
        min-height: 41px;
        padding: 0 12px;
        font-size: 12px;
    }
}

/*
* 禁用旧版分类导航文字 v
*/
.home-secondary-nav .home-secondary-nav-inner>a::after {
    content: none !important;
    display: none !important;
}

/*
* 只显示新版小三角箭头
*/
.home-secondary-nav .home-secondary-nav-inner>a .home-nav-caret {
    display: inline-block !important;
}

.country-filter-menu {
    position: absolute;
    z-index: 1200;
    min-width: 180px;
    padding: 8px;
    border: 1px solid rgba(55, 202, 255, 0.42);
    border-radius: 10px;
    background: linear-gradient(180deg,
            rgba(8, 35, 59, 0.98) 0%,
            rgba(5, 24, 43, 0.98) 100%);
    box-shadow:
        0 14px 32px rgba(0, 0, 0, 0.34),
        0 0 16px rgba(55, 202, 255, 0.12);
}

.country-filter-menu[hidden] {
    display: none !important;
}

.country-filter-menu button {
    width: 100%;
    min-height: 38px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding: 0 12px;
    border: 0;
    border-radius: 7px;
    background: transparent;
    color: #dcecff;
    font-size: 14px;
    font-weight: 600;
    text-align: left;
    cursor: pointer;
    transition:
        color 0.2s ease,
        background-color 0.2s ease;
}

.country-filter-menu button:hover,
.country-filter-menu button.is-active {
    color: #37caff;
    background: rgba(24, 151, 220, 0.16);
}

@media (max-width: 900px) {
    .country-filter-menu {
        min-width: 160px;
    }

    .country-filter-menu button {
        min-height: 36px;
        font-size: 13px;
    }
}

/*
* =========================================
* 首页动态分类与国家菜单
* =========================================
*/

.home-category-loading {
    flex: 0 0 auto;
    padding: 11px 15px;
    color: #7c8b99;
    font-size: 14px;
    font-weight: 600;
    white-space: nowrap;
}

.home-category-loading[data-state="error"],
.country-filter-loading[data-state="error"] {
    color: #d9534f;
}

.home-secondary-nav .home-nav-inner a.is-active {
    color: #087fd1;
    background: #dceefb;
}

.home-secondary-nav .home-nav-inner a.is-active::after {
    content: "";
    position: absolute;
    right: 13px;
    bottom: 0;
    left: 13px;
    height: 3px;
    border-radius: 3px 3px 0 0;
    background: #087fd1;
}

.country-filter-loading {
    padding: 10px 12px;
    color: #9fb3c7;
    font-size: 13px;
    font-weight: 600;
}

.country-filter-menu button.is-active {
    background: rgba(32, 151, 224, 0.28);
    color: #ffffff;
}

@media (max-width: 900px) {
    .home-category-loading {
        padding: 10px 12px;
        font-size: 13px;
    }
}

/* ============================================================
   首页今日重要财经事件
   ============================================================ */

.home-economic-events-card {
    overflow: hidden;
}

.home-economic-events-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 12px;
}

.home-economic-events-header h2 {
    margin: 0;
    color: #ffd447;
    font-size: 20px;
    line-height: 1.25;
}

.home-economic-calendar-link {
    flex: 0 0 auto;
    padding: 7px 10px;
    border: 1px solid #188dcc;
    border-radius: 7px;
    background: #0b4e79;
    color: #ffffff;
    text-decoration: none;
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
}

.home-economic-calendar-link:hover {
    border-color: #43c7ff;
    background: #0b6a9f;
}

.home-economic-events-status {
    min-height: 20px;
    margin: 0 0 10px;
    color: #9fc5dc;
    font-size: 12px;
    line-height: 1.5;
}

.home-economic-events-list {
    display: grid;
    gap: 9px;
}

.home-economic-event-item {
    display: grid;
    grid-template-columns: 54px minmax(0, 1fr);
    gap: 10px;
    padding: 10px;
    border: 1px solid rgba(37, 111, 158, 0.68);
    border-radius: 9px;
    background: rgba(7, 35, 61, 0.84);
    color: #ffffff;
    text-decoration: none;
    transition:
        border-color 0.2s ease,
        background 0.2s ease,
        transform 0.2s ease;
}

.home-economic-event-item:hover {
    border-color: #27b6ee;
    background: rgba(13, 66, 105, 0.92);
    transform: translateY(-1px);
}

.home-economic-event-time {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    border-radius: 7px;
    background: #0a4f7b;
    color: #ffd447;
    font-size: 13px;
    font-weight: 800;
    text-align: center;
}

.home-economic-event-body {
    min-width: 0;
}

.home-economic-event-meta {
    display: flex;
    align-items: center;
    gap: 7px;
    margin-bottom: 4px;
    color: #8fd8ff;
    font-size: 11px;
}

.home-economic-event-country {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 28px;
    padding: 2px 5px;
    border-radius: 4px;
    background: #0b679b;
    color: #ffffff;
    font-weight: 800;
}

.home-economic-event-stars {
    color: #ff5f6d;
    letter-spacing: 1px;
}

.home-economic-event-title {
    display: block;
    overflow: hidden;
    color: #ffffff;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.45;
    text-overflow: ellipsis;
}

.home-economic-event-value {
    display: block;
    margin-top: 5px;
    color: #ffd447;
    font-size: 12px;
    font-weight: 700;
}

.home-economic-events-empty {
    padding: 14px 10px;
    border: 1px dashed #2b759e;
    border-radius: 8px;
    color: #9fc5dc;
    text-align: center;
    font-size: 12px;
}

@media (max-width: 1100px) {
    .home-economic-events-header {
        align-items: stretch;
        flex-direction: column;
    }

    .home-economic-calendar-link {
        align-self: flex-start;
    }
}

/* ============================================================
   全球市场行情栏
   第一阶段使用前端演示数据，后续接入真实行情 API
   ============================================================ */

.market-ticker-section {
    width: 100%;
    padding: 0 24px;
    box-sizing: border-box;
    overflow: hidden;
    border-top: 1px solid rgba(38, 151, 218, 0.28);
    border-bottom: 1px solid #174b70;
    background:
        linear-gradient(180deg,
            #07182c 0%,
            #061426 100%);
}

.market-ticker-shell {
    width: min(100%, 1600px);
    min-height: 52px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    overflow: hidden;
    border-right: 1px solid rgba(66, 177, 235, 0.22);
    border-left: 1px solid rgba(66, 177, 235, 0.22);
    background: rgba(4, 24, 45, 0.9);
}

.market-ticker-heading {
    align-self: stretch;
    min-width: 138px;
    padding: 0 18px;
    display: flex;
    align-items: center;
    gap: 8px;
    border-right: 1px solid #1c5277;
    background:
        linear-gradient(135deg,
            #0b3d68,
            #072641);
    white-space: nowrap;
}

.market-ticker-heading strong {
    color: #ffd447;
    font-size: 15px;
}

.market-ticker-heading>span:last-child {
    color: #85cbed;
    font-size: 11px;
}

.market-ticker-live-dot {
    width: 8px;
    height: 8px;
    flex: 0 0 auto;
    border-radius: 50%;
    background: #31d78c;
    box-shadow: 0 0 0 4px rgba(49, 215, 140, 0.12);
    animation: marketTickerPulse 1.8s ease-in-out infinite;
}

@keyframes marketTickerPulse {

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

    50% {
        opacity: 0.5;
        transform: scale(0.8);
    }
}

.market-ticker-viewport {
    min-width: 0;
    overflow: hidden;
    outline: none;
    mask-image:
        linear-gradient(90deg,
            transparent 0,
            #000000 28px,
            #000000 calc(100% - 28px),
            transparent 100%);
    -webkit-mask-image:
        linear-gradient(90deg,
            transparent 0,
            #000000 28px,
            #000000 calc(100% - 28px),
            transparent 100%);
}

.market-ticker-viewport:focus-visible {
    box-shadow: inset 0 0 0 2px #27bfff;
}

.market-ticker-track {
    width: max-content;
    min-width: 100%;
    display: flex;
    align-items: stretch;
    will-change: transform;
    animation: marketTickerScroll 64s linear infinite;
}

.market-ticker-viewport:hover .market-ticker-track,
.market-ticker-viewport:focus .market-ticker-track {
    animation-play-state: paused;
}

@keyframes marketTickerScroll {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(-50%);
    }
}

.market-ticker-group {
    display: flex;
    align-items: stretch;
    flex: 0 0 auto;
}

.market-ticker-item {
    min-width: 190px;
    padding: 8px 16px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas:
        "name value"
        "code change";
    column-gap: 14px;
    row-gap: 2px;
    align-content: center;
    box-sizing: border-box;
    border-right: 1px solid rgba(48, 112, 153, 0.42);
    color: #ffffff;
    text-decoration: none;
    transition:
        background-color 0.2s ease,
        transform 0.2s ease;
}

.market-ticker-item:hover {
    background: rgba(22, 121, 185, 0.16);
}

.market-ticker-name {
    grid-area: name;
    overflow: hidden;
    color: #dcefff;
    font-size: 13px;
    font-weight: 700;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.market-ticker-code {
    grid-area: code;
    color: #6ea9ca;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.3px;
}

.market-ticker-value {
    grid-area: value;
    color: #ffffff;
    font-size: 14px;
    font-weight: 800;
    font-variant-numeric: tabular-nums;
    text-align: right;
    white-space: nowrap;
}

.market-ticker-change {
    grid-area: change;
    font-size: 12px;
    font-weight: 800;
    font-variant-numeric: tabular-nums;
    text-align: right;
    white-space: nowrap;
}

.market-ticker-change.is-up {
    color: #35db91;
}

.market-ticker-change.is-down {
    color: #ff6969;
}

.market-ticker-change.is-flat {
    color: #c8d8e4;
}

.market-ticker-loading {
    min-width: 420px;
    padding: 16px 30px;
    color: #91bed8;
    font-size: 13px;
}

.market-ticker-time {
    align-self: stretch;
    min-width: 110px;
    padding: 0 15px;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    justify-content: center;
    gap: 2px;
    border-left: 1px solid #1c5277;
    background: #06182c;
    white-space: nowrap;
}

.market-ticker-time span {
    color: #6f9cb8;
    font-size: 10px;
}

.market-ticker-time strong {
    color: #bce9ff;
    font-size: 12px;
    font-variant-numeric: tabular-nums;
}

@media (prefers-reduced-motion: reduce) {
    .market-ticker-track {
        animation: none;
    }

    .market-ticker-viewport {
        overflow-x: auto;
        mask-image: none;
        -webkit-mask-image: none;
    }

    .market-ticker-live-dot {
        animation: none;
    }
}

@media (max-width: 820px) {
    .market-ticker-section {
        padding: 0 12px;
    }

    .market-ticker-shell {
        grid-template-columns: auto minmax(0, 1fr);
        min-height: 50px;
    }

    .market-ticker-heading {
        min-width: auto;
        padding: 0 12px;
    }

    .market-ticker-heading>span:last-child,
    .market-ticker-time {
        display: none;
    }

    .market-ticker-item {
        min-width: 172px;
        padding-right: 13px;
        padding-left: 13px;
    }
}

@media (max-width: 520px) {
    .market-ticker-section {
        padding: 0;
    }

    .market-ticker-shell {
        border-right: 0;
        border-left: 0;
    }

    .market-ticker-heading {
        padding: 0 10px;
    }

    .market-ticker-heading strong {
        font-size: 13px;
    }

    .market-ticker-item {
        min-width: 160px;
    }

    .market-ticker-name {
        font-size: 12px;
    }

    .market-ticker-value {
        font-size: 13px;
    }
}

/* ========================================
   全球市场行情左侧标题：最终两行布局
   第一行：● 全球市场  实时/缓存行情
   第二行：Twelve Data · 30分钟缓存
   ======================================== */

.market-ticker-heading {
    align-self: stretch;
    min-width: 190px;
    padding: 0 14px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 12px;
    box-sizing: border-box;
    border-right: 1px solid #1c5277;
    background:
        linear-gradient(135deg,
            #0b3d68,
            #072641);
    white-space: nowrap;
}

/* 新版 JS 输出的第一行容器 */
.market-ticker-heading-top {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 6px;
    width: 100%;
    min-width: 0;
    line-height: 1;
}

/* 新版 JS 输出的绿色状态圆点 */
.market-ticker-heading-dot {
    width: 8px;
    height: 8px;
    flex: 0 0 8px;
    border-radius: 50%;
    background: #31d78c;
    box-shadow: 0 0 0 4px rgba(49, 215, 140, 0.12);
}

/* 兼容原来的圆点类名 */
.market-ticker-live-dot {
    width: 8px;
    height: 8px;
    flex: 0 0 8px;
    border-radius: 50%;
    background: #31d78c;
    box-shadow: 0 0 0 4px rgba(49, 215, 140, 0.12);
}

/* “全球市场” */
.market-ticker-heading-title,
.market-ticker-heading strong {
    color: #ffd447;
    font-size: 15px;
    font-weight: 800;
    line-height: 1;
    white-space: nowrap;
}

/* “实时行情 / 缓存行情 / 参考行情” */
.market-ticker-status-text {
    display: inline-block;
    margin: 0;
    padding: 0;
    color: #8fd8ff;
    font-size: 11px;
    font-weight: 600;
    line-height: 1;
    white-space: nowrap;
}

/* 第二行数据来源：位于“全球市场 + 行情状态”整组正下方 */
.market-ticker-source-text {
    display: block;
    width: 100%;
    margin: 0;
    padding: 0 0 0 14px;
    box-sizing: border-box;
    color: #769ab5;
    font-size: 8px;
    font-weight: 500;
    line-height: 1.15;
    text-align: left;
    white-space: nowrap;
    opacity: 0.9;
}

/* 防止旧版规则继续改变最后一个 span 的位置 */
.market-ticker-heading>span:last-child {
    color: inherit;
    font-size: inherit;
}

/* 平板和手机：隐藏数据来源，给行情价格更多横向空间 */
@media (max-width: 900px) {
    .market-ticker-heading {
        min-width: auto;
        padding: 0 12px;
    }

    .market-ticker-source-text {
        display: none;
    }
}

/* 手机进一步缩小标题 */
@media (max-width: 520px) {
    .market-ticker-heading {
        padding: 0 10px;
    }

    .market-ticker-heading-title,
    .market-ticker-heading strong {
        font-size: 13px;
    }

    .market-ticker-status-text {
        font-size: 10px;
    }
}