@charset "utf-8";

/* Homepage — same palette as article detail */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,600;0,700;1,600&family=Source+Sans+3:wght@400;500;600;700&display=swap');

:root {
    --hm-ink: #152029;
    --hm-ink-soft: #2a3a45;
    --hm-brass: #a67c3d;
    --hm-brass-deep: #8a6430;
    --hm-sage: #5f7368;
    --hm-paper: #eef1ef;
    --hm-panel: #ffffff;
    --hm-line: rgba(21, 32, 41, 0.1);
    --hm-muted: #6b7a82;
    --hm-max: 1180px;
}

body.page-home {
    background:
        radial-gradient(900px 420px at 0% 0%, rgba(166, 124, 61, 0.08), transparent 55%),
        radial-gradient(800px 480px at 100% 12%, rgba(95, 115, 104, 0.1), transparent 50%),
        linear-gradient(180deg, #e7ece9 0%, var(--hm-paper) 38%, #e4e8e5 100%) !important;
    color: var(--hm-ink);
    font-family: "Source Sans 3", "Microsoft YaHei", "PingFang SC", sans-serif;
    line-height: 1.65;
}

/* Soften legacy chrome on homepage */
body.page-home .hy_top {
    display: none !important;
}
body.page-home .head {
    background: rgba(255,255,255,.92) !important;
    border-bottom: 1px solid var(--hm-line);
}
body.page-home .head_cnt {
    width: 100% !important;
    max-width: var(--hm-max) !important;
    margin: 0 auto !important;
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
}
body.page-home .search-keyword {
    border-color: var(--hm-line) !important;
}
body.page-home .search-but {
    background: var(--hm-ink) !important;
    border-color: var(--hm-ink) !important;
    color: #fff !important;
}
/* Primary nav chrome lives in chrome.css */
body.page-home .nav-box .tab,
body.page-home .banner_box,
body.page-home .float-news,
body.page-home .main,
body.page-home .link {
    display: none !important;
}

/* Mobile menu button + panel */
body.page-home .head {
    position: relative;
}
body.page-home .head_cnt .btn-menu {
    display: none;
    position: absolute;
    right: 12px;
    top: 50%;
    width: 36px;
    height: 32px;
    margin-top: -16px;
    border: 0;
    background: var(--hm-ink) url(../images/h.png) center / 22px no-repeat;
    text-indent: -999px;
    overflow: hidden;
    cursor: pointer;
    z-index: 20;
}
body.page-home .hm-mobile-nav {
    display: none;
    background: var(--hm-ink);
    padding: 8px 12px 14px;
    border-bottom: 1px solid rgba(255,255,255,.08);
}
body.page-home .hm-mobile-nav.is-open {
    display: -webkit-box !important;
    display: -ms-flexbox !important;
    display: flex !important;
    -ms-flex-wrap: wrap;
    flex-wrap: wrap;
    gap: 8px;
}
body.page-home .hm-mobile-nav a {
    display: inline-block;
    padding: 10px 14px;
    color: rgba(255,255,255,.9) !important;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    background: rgba(255,255,255,.06);
    border: 1px solid rgba(255,255,255,.12);
}
body.page-home .hm-mobile-nav a:hover,
body.page-home .hm-mobile-nav a.active {
    background: rgba(166, 124, 61, 0.35);
    color: #fff !important;
}

body.page-home .footer {
    background: var(--hm-ink) !important;
    color: rgba(255,255,255,.7);
    margin-top: 40px;
}
body.page-home .footer a {
    color: #e8d5b0 !important;
}
body.page-home .footer .site-footer-inner,
body.page-home .footer table {
    width: 100% !important;
    max-width: var(--hm-max) !important;
}

/* —— New homepage blocks —— */
.hm-wrap {
    width: 100%;
    max-width: var(--hm-max);
    margin: 0 auto;
    padding: 0 20px 40px;
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
}

/* Full-bleed hero */
.hm-hero {
    position: relative;
    width: 100%;
    min-height: 72vh;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: end;
    -ms-flex-align: end;
    align-items: flex-end;
    background-color: #152029;
    overflow: hidden;
    -webkit-animation: hmFade .7s ease both;
    animation: hmFade .7s ease both;
}

.hm-hero-media {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    border: 0;
}

.hm-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(21, 32, 41, 0.88) 0%, rgba(21, 32, 41, 0.55) 48%, rgba(21, 32, 41, 0.28) 100%),
        linear-gradient(0deg, rgba(21, 32, 41, 0.75) 0%, transparent 55%);
}

.hm-hero-inner {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: var(--hm-max);
    margin: 0 auto;
    padding: 48px 20px 56px;
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
}

.hm-brand {
    margin: 0 0 14px;
    font-family: "Cormorant Garamond", "Times New Roman", serif;
    font-size: clamp(42px, 7vw, 72px);
    line-height: 1.05;
    font-weight: 700;
    letter-spacing: -.01em;
    color: #fff;
    max-width: 16ch;
}

.hm-lead {
    margin: 0 0 26px;
    max-width: 36em;
    font-size: 17px;
    line-height: 1.6;
    color: rgba(244, 241, 234, 0.82);
    font-weight: 400;
}

.hm-cta {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -ms-flex-wrap: wrap;
    flex-wrap: wrap;
    gap: 12px;
}

.hm-cta a {
    display: inline-block;
    padding: 12px 22px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: .02em;
    -webkit-transition: -webkit-transform .2s ease, background .2s ease, color .2s ease;
    transition: transform .2s ease, background .2s ease, color .2s ease;
}

.hm-cta a:hover {
    -webkit-transform: translateY(-2px);
    transform: translateY(-2px);
}

.hm-cta-primary {
    background: var(--hm-brass);
    color: #fff !important;
}

.hm-cta-primary:hover {
    background: var(--hm-brass-deep);
}

.hm-cta-ghost {
    background: transparent;
    color: #fff !important;
    border: 1px solid rgba(255,255,255,.45);
}

.hm-cta-ghost:hover {
    border-color: #e8d5b0;
    color: #e8d5b0 !important;
}

/* Channel strip */
.hm-channels {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -ms-flex-wrap: wrap;
    flex-wrap: wrap;
    gap: 10px;
    margin: 22px 0 28px;
    -webkit-animation: hmFade .7s ease .08s both;
    animation: hmFade .7s ease .08s both;
}

.hm-channels a {
    display: inline-block;
    padding: 10px 16px;
    background: var(--hm-panel);
    border: 1px solid var(--hm-line);
    color: var(--hm-ink-soft);
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    -webkit-box-shadow: 0 8px 20px rgba(21, 32, 41, 0.04);
    box-shadow: 0 8px 20px rgba(21, 32, 41, 0.04);
    -webkit-transition: border-color .2s ease, color .2s ease, -webkit-transform .2s ease;
    transition: border-color .2s ease, color .2s ease, transform .2s ease;
}

.hm-channels a:hover {
    border-color: rgba(166, 124, 61, 0.5);
    color: var(--hm-brass-deep);
    -webkit-transform: translateY(-2px);
    transform: translateY(-2px);
}

/* Sections */
.hm-section {
    margin-bottom: 28px;
    -webkit-animation: hmFade .65s ease both;
    animation: hmFade .65s ease both;
}

.hm-section-head {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: end;
    -ms-flex-align: end;
    align-items: flex-end;
    -webkit-box-pack: justify;
    -ms-flex-pack: justify;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--hm-line);
    position: relative;
}

.hm-section-head::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -1px;
    width: 56px;
    height: 2px;
    background: var(--hm-brass);
}

.hm-section-head h2 {
    margin: 0;
    font-family: "Cormorant Garamond", serif;
    font-size: 30px;
    line-height: 1.15;
    color: var(--hm-ink);
    font-weight: 700;
}

.hm-section-head p {
    margin: 6px 0 0;
    font-size: 13px;
    color: var(--hm-muted);
}

.hm-section-head .more {
    color: var(--hm-brass-deep);
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
}

.hm-section-head .more:hover {
    color: var(--hm-ink);
}

.hm-panel {
    background: var(--hm-panel);
    border: 1px solid var(--hm-line);
    -webkit-box-shadow: 0 14px 34px rgba(21, 32, 41, 0.05);
    box-shadow: 0 14px 34px rgba(21, 32, 41, 0.05);
    padding: 20px 22px;
}

/* Featured + recent */
.hm-split {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    gap: 22px;
    -webkit-box-align: stretch;
    -ms-flex-align: stretch;
    align-items: stretch;
}

.hm-split-main {
    -webkit-box-flex: 1.4;
    -ms-flex: 1.4;
    flex: 1.4;
    min-width: 0;
}

.hm-split-side {
    -webkit-box-flex: 1;
    -ms-flex: 1;
    flex: 1;
    min-width: 0;
}

.hm-side-label {
    margin: 0 0 8px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: var(--hm-sage);
}

.hm-feature {
    display: block;
    text-decoration: none;
    color: inherit;
}

.hm-feature-title {
    margin: 0 0 10px;
    font-family: "Cormorant Garamond", serif;
    font-size: 28px;
    line-height: 1.25;
    color: var(--hm-ink);
    font-weight: 700;
}

.hm-feature:hover .hm-feature-title {
    color: var(--hm-brass-deep);
}

.hm-feature-list {
    list-style: none;
    margin: 14px 0 0;
    padding: 0;
}

.hm-feature-list li {
    border-top: 1px dashed rgba(21, 32, 41, 0.1);
}

.hm-feature-list a {
    display: block;
    padding: 11px 0;
    color: var(--hm-ink-soft);
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
}

.hm-feature-list a:hover {
    color: var(--hm-brass-deep);
}

.hm-recent-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.hm-recent-list li {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-pack: justify;
    -ms-flex-pack: justify;
    justify-content: space-between;
    gap: 12px;
    border-bottom: 1px dashed rgba(21, 32, 41, 0.1);
}

.hm-recent-list li:last-child {
    border-bottom: none;
}

.hm-recent-list a {
    -webkit-box-flex: 1;
    -ms-flex: 1;
    flex: 1;
    min-width: 0;
    padding: 11px 0;
    color: var(--hm-ink-soft);
    text-decoration: none;
    font-size: 14px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.hm-recent-list a:hover {
    color: var(--hm-brass-deep);
}

.hm-recent-list span {
    -ms-flex-negative: 0;
    flex-shrink: 0;
    padding: 11px 0;
    font-size: 12px;
    color: var(--hm-muted);
    font-variant-numeric: tabular-nums;
}

/* Category blocks */
.hm-grid {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    gap: 18px;
    -ms-flex-wrap: wrap;
    flex-wrap: wrap;
}

.hm-col {
    -webkit-box-flex: 1;
    -ms-flex: 1 1 280px;
    flex: 1 1 280px;
    min-width: 0;
}

.hm-col h3 {
    margin: 0 0 12px;
    font-size: 15px;
    font-weight: 700;
    color: var(--hm-ink);
    letter-spacing: .02em;
}

.hm-col h3 a {
    color: inherit;
    text-decoration: none;
}

.hm-col h3 a:hover {
    color: var(--hm-brass-deep);
}

.hm-col ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.hm-col li {
    border-bottom: 1px dashed rgba(21, 32, 41, 0.09);
}

.hm-col li a {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-pack: justify;
    -ms-flex-pack: justify;
    justify-content: space-between;
    gap: 10px;
    padding: 9px 0;
    color: var(--hm-ink-soft);
    text-decoration: none;
    font-size: 14px;
}

.hm-col li a:hover {
    color: var(--hm-brass-deep);
}

.hm-col li a em {
    font-style: normal;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    display: block;
    min-width: 0;
}

.hm-col li span {
    color: var(--hm-muted);
    font-size: 12px;
    -ms-flex-negative: 0;
    flex-shrink: 0;
}

.hm-story-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.hm-story-list li {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    gap: 14px;
    padding: 12px 0;
    border-bottom: 1px solid rgba(21, 32, 41, 0.07);
}

.hm-story-list li:last-child {
    border-bottom: none;
}

.hm-story-list .pic {
    -ms-flex-negative: 0;
    flex-shrink: 0;
    width: 96px;
    height: 72px;
    overflow: hidden;
    background: #dfe5e2;
}

.hm-story-list .pic img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    -webkit-transition: -webkit-transform .35s ease;
    transition: transform .35s ease;
}

.hm-story-list a:hover .pic img {
    -webkit-transform: scale(1.05);
    transform: scale(1.05);
}

.hm-story-list .body {
    min-width: 0;
    -webkit-box-flex: 1;
    -ms-flex: 1;
    flex: 1;
}

.hm-story-list .body a {
    display: block;
    color: var(--hm-ink);
    text-decoration: none;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.4;
    margin-bottom: 6px;
}

.hm-story-list .body a:hover {
    color: var(--hm-brass-deep);
}

.hm-story-list .meta {
    font-size: 12px;
    color: var(--hm-muted);
}

.hm-links {
    padding-top: 8px;
}

.hm-links-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -ms-flex-wrap: wrap;
    flex-wrap: wrap;
    gap: 8px 14px;
}

.hm-links-list a {
    color: var(--hm-sage);
    text-decoration: none;
    font-size: 13px;
}

.hm-links-list a:hover {
    color: var(--hm-brass-deep);
}

@-webkit-keyframes hmFade {
    from { opacity: 0; -webkit-transform: translateY(12px); transform: translateY(12px); }
    to { opacity: 1; -webkit-transform: none; transform: none; }
}
@keyframes hmFade {
    from { opacity: 0; -webkit-transform: translateY(12px); transform: translateY(12px); }
    to { opacity: 1; -webkit-transform: none; transform: none; }
}

@media (max-width: 900px) {
    .hm-hero {
        min-height: 62vh;
    }
    .hm-split {
        -webkit-box-orient: vertical;
        -webkit-box-direction: normal;
        -ms-flex-direction: column;
        flex-direction: column;
    }
    .hm-feature-title {
        font-size: 24px;
    }
    body.page-home .nav-box > .nav {
        display: none !important;
    }
    body.page-home .head_cnt .btn-menu {
        display: block;
    }
    body.page-home .head .search {
        margin-right: 44px;
    }
    body.page-home .head .logo img {
        max-width: 220px;
        height: auto;
    }
}

@media (max-width: 640px) {
    .hm-brand {
        font-size: 36px;
    }
    .hm-lead {
        font-size: 15px;
    }
    .hm-section-head {
        -webkit-box-orient: vertical;
        -webkit-box-direction: normal;
        -ms-flex-direction: column;
        flex-direction: column;
        -webkit-box-align: start;
        -ms-flex-align: start;
        align-items: flex-start;
    }
    .hm-section-head h2 {
        font-size: 24px;
    }
    .hm-hero-inner {
        padding: 36px 16px 40px;
    }
    .hm-wrap {
        padding: 0 14px 32px;
    }
    .hm-panel {
        padding: 16px;
    }
    .hm-story-list .pic {
        width: 80px;
        height: 60px;
    }
    body.page-home .head_cnt {
        padding: 10px 12px !important;
    }
    body.page-home .head .logo img {
        max-width: 170px;
    }
    body.page-home .head .search-keyword {
        font-size: 13px;
    }
}
