/* 中国x站 — 首页专属样式，统一 BEM-like class naming */
:root {
    --nav:#111020;
    --pink:#ef4eaf;
    --purple:#943cd7;
    --ink:#161423;
    --muted:#757384;
    --soft:#f5f3fa;
    --line:#ece8f1;
    --max:1380px
}

* {
    box-sizing:border-box
}

html {
    scroll-behavior:smooth
}

body {
    margin:0;
    font:15px/1.55 -apple-system,BlinkMacSystemFont,"Microsoft YaHei","PingFang SC",Arial,sans-serif;
    color:var(--ink);
    background:linear-gradient(115deg,#fff 0%,#fcfaff 75%,#fff 100%)
}

a {
    text-decoration:none;
    color:inherit
}

button,input {
    font:inherit
}

button {
    cursor:pointer
}

img {
    max-width:100%;
    display:block
}

.sr-only,.skip-link:not(:focus) {
    position:absolute;
    width:1px;
    height:1px;
    overflow:hidden;
    clip:rect(0,0,0,0)
}

.skip-link:focus {
    position:absolute;
    z-index:100;
    top:10px;
    left:10px;
    background:white;
    padding:10px
}

.site-header {
    background:var(--nav);
    color:#fff;
    position:relative;
    z-index:20
}

.header-inner {
    max-width:var(--max);
    margin:auto;
    padding:0 20px;
    min-height:56px;
    display:flex;
    align-items:center;
    gap:20px
}

.brand {
    display:flex;
    align-items:center;
    gap:9px;
    flex-shrink:0;
    color:#fff
}

.brand-icon {
    font-size:23px;
    line-height:1;
    background:linear-gradient(135deg,#fa5d9a,#9c4cff);
    padding:8px 10px;
    border-radius:10px;
    transform:rotate(-6deg);
    box-shadow:0 3px 12px #ff4fa738
}

.brand-text {
    display:flex;
    flex-direction:column;
    line-height:1.15
}

.brand-text b {
    font-size:23px;
    letter-spacing:1px;
    white-space:nowrap
}

.brand-text b span,.hero-copy h1 span {
    color:#ff70cc
}

.brand-text small {
    font-size:10px;
    letter-spacing:.4px
}

.header-slogan {
    margin:0;
    font-size:12px;
    color:#bab4c5;
    border-left:1px solid #494052;
    padding-left:14px;
    white-space:nowrap
}

.nav {
    display:flex;
    align-items:center;
    gap:4px;
    margin-left:auto;
    white-space:nowrap
}

.nav a {
    padding:9px 12px;
    border-radius:20px;
    font-weight:700;
    font-size:13px
}

.nav a:hover,.nav .active {
    background:linear-gradient(110deg,#ba3fac,#8535c8);
    color:#fff
}

.search {
    display:flex;
    border:1px solid #746883;
    border-radius:26px;
    overflow:hidden;
    min-width:175px;
    background:#2a263c
}

.search input {
    width:180px;
    min-width:0;
    background:transparent;
    border:0;
    padding:9px 12px;
    font-size:12px;
    color:#fff;
    outline:none
}

.search input::placeholder {
    color:#a69bad
}

.search button {
    border:0;
    background:transparent;
    color:#fff;
    font-size:25px;
    line-height:1;
    width:32px
}

.mobile-menu {
    display:none
}

.hero {
    height:356px;
    position:relative;
    background:#281738;
    overflow:hidden;
    color:#fff
}

.hero-bg {
    position:absolute;
    inset:0;
    background-image:url('/assets/images/hero.webp');
    background-size:cover;
    background-position:65% 44%;
    transition:background-image .2s
}

.hero-shade {
    position:absolute;
    inset:0;
    background:linear-gradient(90deg,rgba(32,12,54,.92) 0%,rgba(39,18,65,.79) 34%,rgba(29,15,48,.12) 74%)
}

.hero-inner {
    position:relative;
    max-width:var(--max);
    margin:auto;
    height:100%;
    padding:21px 7.5%;
    display:flex;
    align-items:center
}

.hero-copy {
    max-width:575px
}

.eyebrow {
    font-size:11px;
    font-weight:700;
    letter-spacing:2px;
    color:#f0a7eb;
    margin:0 0 4px
}

.hero h1 {
    font-size:58px;
    line-height:1.13;
    margin:0 0 10px;
    text-shadow:0 3px 18px #6a1773
}

.hero h1 small {
    display:block;
    font-size:34px;
    letter-spacing:1px
}

.hero-chip {
    display:inline-block;
    padding:5px 24px;
    border-radius:22px;
    background:linear-gradient(90deg,#c344a1,#9b4ec6);
    font-size:19px;
    letter-spacing:1px;
    font-weight:800;
    margin:0 0 7px
}

.hero-text {
    font-size:14px;
    max-width:455px;
    margin:0 0 17px;
    letter-spacing:1px
}

.hero-tags {
    display:flex;
    flex-wrap:wrap;
    gap:25px;
    font-weight:700;
    font-size:13px
}

.hero-tags a {
    color:#f5e3fb
}

.hero-tags a:hover {
    color:#ff71c5
}

.hero-arrow {
    position:absolute;
    top:46%;
    border:1px solid #ffffff80;
    background:#15112399;
    border-radius:50%;
    color:white;
    width:39px;
    height:39px;
    font-size:30px;
    line-height:30px
}

.hero-arrow.previous {
    left:18px
}

.hero-arrow.next {
    right:18px
}

.hero-dots {
    position:absolute;
    bottom:11px;
    left:50%;
    transform:translateX(-50%);
    display:flex;
    gap:8px
}

.hero-dots button {
    height:9px;
    width:9px;
    background:#c6aaca;
    border:0;
    border-radius:50%;
    padding:0
}

.hero-dots button.on {
    background:#ff77c5
}

.category-strip {
    max-width:var(--max);
    margin:10px auto 21px;
    padding:0 14px;
    display:grid;
    grid-template-columns:repeat(4,minmax(0,1fr));
    gap:10px
}

.category-tile {
    height:106px;
    position:relative;
    background-image:linear-gradient(90deg,#24173524,#100d20c7),var(--tile-image);
    background-size:cover;
    background-position:center 45%;
    border-radius:9px;
    display:flex;
    align-items:center;
    justify-content:flex-end;
    padding:12px;
    color:white;
    overflow:hidden
}

.category-tile:hover {
    filter:brightness(1.1)
}

.category-icon {
    font-size:24px;
    margin-right:10px
}

.category-tile-text {
    display:flex;
    flex-direction:column;
    text-align:left;
    min-width:42%
}

.category-tile-text strong {
    font-size:16px
}

.category-tile-text small {
    font-size:11px;
    white-space:nowrap
}

.main-layout {
    max-width:var(--max);
    margin:0 auto;
    padding:0 17px 25px;
    display:grid;
    grid-template-columns:minmax(0,1fr) 280px;
    gap:18px
}

.primary-content {
    min-width:0
}

.content-section {
    margin:0 0 19px
}

.section-title {
    display:flex;
    align-items:baseline;
    gap:13px;
    min-height:33px;
    margin-bottom:10px
}

.section-title h2 {
    font-size:21px;
    line-height:1.4;
    margin:0;
    font-weight:850;
    white-space:nowrap
}

.section-title h2::before {
    content:'';
    display:inline-block;
    height:19px;
    width:7px;
    border-radius:5px;
    background:linear-gradient(#fa509b,#9844d4);
    margin-right:8px;
    vertical-align:-2px
}

.section-title p {
    font-size:12px;
    color:#7b7888;
    margin:0
}

.section-title>a {
    margin-left:auto;
    color:#736b86;
    font-size:12px;
    white-space:nowrap
}

.video-grid {
    display:grid;
    grid-template-columns:repeat(4,minmax(0,1fr));
    gap:11px
}

.video-card {
    min-width:0
}

.thumb {
    display:block;
    aspect-ratio:1.38;
    overflow:hidden;
    border-radius:8px;
    position:relative;
    background:#ece3f2
}

.thumb img {
    width:100%;
    height:100%;
    object-fit:cover;
    transition:transform .2s
}

.thumb:hover img {
    transform:scale(1.05)
}

.thumb-mark {
    position:absolute;
    right:5px;
    bottom:5px;
    font-size:10px;
    padding:2px 6px;
    background:#161423b0;
    color:white;
    border-radius:3px
}

.video-card h3 {
    font-size:14px;
    line-height:1.35;
    margin:7px 0 5px;
    white-space:nowrap;
    overflow:hidden;
    text-overflow:ellipsis
}

.video-card h3 a:hover {
    color:#d92f9f
}

.meta {
    display:flex;
    align-items:center;
    gap:4px;
    min-width:0;
    flex-wrap:wrap
}

.pill {
    background:#eeeef3;
    color:#73707e;
    padding:2px 6px;
    border-radius:10px;
    font-size:10px;
    white-space:nowrap
}

.read-link {
    margin-left:auto;
    color:#7f7591;
    font-size:10px;
    white-space:nowrap
}

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

.collection {
    height:141px;
    border-radius:8px;
    display:flex;
    flex-direction:column;
    align-items:flex-start;
    padding:16px;
    background-image:linear-gradient(90deg,#281633d9,#1b14224a),var(--collection-image);
    background-size:cover;
    background-position:center;
    color:white
}

.collection strong {
    font-size:20px
}

.collection small {
    font-size:12px;
    margin-bottom:auto
}

.pink-button {
    display:inline-flex;
    align-items:center;
    color:white;
    background:linear-gradient(110deg,#bc3dcc,#ff5295);
    padding:6px 15px;
    border-radius:22px;
    font-size:12px;
    font-weight:bold
}

.bottom-sections {
    display:grid;
    grid-template-columns:40% minmax(0,1fr);
    gap:18px
}

.ranking-list {
    list-style:none;
    margin:0;
    padding:0
}

.ranking-list li {
    display:flex;
    align-items:center;
    gap:9px;
    border-bottom:1px solid #efebf2;
    padding:3px 0 6px
}

.rank-num {
    display:grid;
    place-items:center;
    border-radius:5px;
    background:#fb4c7b;
    color:#fff;
    font-weight:800;
    width:25px;
    height:28px;
    flex-shrink:0
}

.ranking-list li:nth-child(2) .rank-num {
    background:#ff9650
}

.ranking-list li:nth-child(3) .rank-num {
    background:#ffb92e
}

.ranking-list a {
    display:flex;
    gap:9px;
    min-width:0;
    align-items:center
}

.ranking-list img {
    width:92px;
    height:51px;
    object-fit:cover;
    border-radius:6px
}

.ranking-list a span {
    min-width:0
}

.ranking-list strong {
    font-size:12px;
    display:-webkit-box;
    -webkit-line-clamp:1;
    -webkit-box-orient:vertical;
    overflow:hidden
}

.ranking-list small {
    display:block;
    font-size:11px;
    color:#91879b
}

.updates .video-grid {
    grid-template-columns:repeat(3,minmax(0,1fr))
}

.sidebar {
    min-width:0
}

.side-box {
    padding:10px;
    border:1px solid #f3eaf3;
    background:#fff;
    border-radius:10px;
    margin:0 0 11px;
    box-shadow:0 3px 16px #5a2f5d0d
}

.side-box h2 {
    font-size:17px;
    margin:0 0 8px;
    background:#f8ebf7;
    padding:7px 10px;
    border-radius:6px
}

.notice-list {
    list-style:none;
    padding:0 6px;
    margin:0
}

.notice-list li {
    position:relative;
    font-size:12px;
    padding:6px 0 6px 13px
}

.notice-list li::before {
    content:'•';
    position:absolute;
    left:0;
    color:#db4fb4
}

.tag-cloud {
    display:flex;
    flex-wrap:wrap;
    gap:6px
}

.tag-cloud a {
    font-size:11px;
    padding:5px 10px;
    background:#f3f1f7;
    border-radius:20px
}

.tag-cloud a:hover {
    background:#f6d5eb
}

.side-promo {
    min-height:232px;
    margin-top:13px;
    border-radius:10px;
    padding:28px 17px;
    color:white;
    background:radial-gradient(circle at 92% 50%,#a93c9a 0%,transparent 45%),linear-gradient(125deg,#101a46,#38165b 85%);
    position:relative;
    overflow:hidden
}

.side-promo h2 {
    font-size:22px;
    margin:4px 0 9px
}

.side-promo p {
    font-size:14px;
    line-height:1.8;
    margin:0 0 25px
}

.promo-decoration {
    position:absolute;
    right:5px;
    bottom:20px;
    font-size:90px;
    line-height:1;
    color:#ec70ed66;
    transform:rotate(-19deg)
}

.about {
    padding:16px 20px;
    border-radius:10px;
    background:#faf5fc;
    margin-top:14px
}

.about h2 {
    font-size:17px;
    margin:0 0 6px
}

.about p {
    font-size:13px;
    line-height:1.9;
    margin:3px 0
}

.about .muted {
    color:#7e778c
}

.footer {
    background:#141321;
    color:white
}

.footer-main {
    max-width:var(--max);
    margin:auto;
    padding:18px 20px;
    display:flex;
    align-items:center;
    gap:25px
}

.footer-main>p {
    max-width:500px;
    font-size:11px;
    color:#d6d1e0;
    line-height:1.8
}

.footer-main nav {
    margin-left:auto;
    display:flex;
    gap:10px;
    flex-wrap:wrap;
    justify-content:flex-end
}

.footer-main nav a {
    font-size:11px;
    color:#e0d9e8
}

.footer-bottom {
    border-top:1px solid #403b4b;
    text-align:center;
    font-size:11px;
    padding:8px;
    color:#ddd
}

@media(max-width:1160px) {
    .header-slogan {
        display:none
    }
    .nav a {
        padding:8px
    }
    .search input {
        width:130px
    }
    .main-layout {
        grid-template-columns:minmax(0,1fr) 244px
    }
    .category-tile-text small {
        white-space:normal
    }
    .video-grid {
        gap:9px
    }
    .read-link {
        display:none
    }
}

@media(max-width:850px) {
    .header-inner {
        flex-wrap:wrap;
        min-height:58px;
        padding:8px 12px
    }
    .mobile-menu {
        display:block;
        margin-left:auto;
        background:#352845;
        color:#fff;
        border:1px solid #64506b;
        border-radius:6px;
        padding:6px 10px
    }
    .nav {
        display:none;
        order:3;
        width:100%;
        flex-wrap:wrap
    }
    .nav.open {
        display:flex
    }
    .search {
        margin-left:auto
    }
    .hero {
        height:330px
    }
    .hero-inner {
        padding:20px 50px
    }
    .hero h1 {
        font-size:46px
    }
    .hero h1 small {
        font-size:26px
    }
    .hero-chip {
        font-size:16px
    }
    .main-layout {
        grid-template-columns:1fr
    }
    .sidebar {
        display:grid;
        grid-template-columns:repeat(3,minmax(0,1fr));
        gap:10px
    }
    .sidebar>* {
        margin:0
    }
    .category-strip {
        grid-template-columns:repeat(2,1fr)
    }
}

@media(max-width:560px) {
    .header-inner {
        gap:10px
    }
    .brand-text b {
        font-size:19px
    }
    .brand-icon {
        font-size:19px
    }
    .search {
        width:100%;
        order:4
    }
    .search input {
        width:100%;
        flex:1
    }
    .hero {
        height:350px
    }
    .hero-bg {
        background-position:65% center
    }
    .hero-shade {
        background:linear-gradient(90deg,#25122bee,#25122ba8 72%,#25122b22)
    }
    .hero-inner {
        padding:20px 36px
    }
    .hero h1 {
        font-size:39px
    }
    .hero h1 small {
        font-size:23px
    }
    .hero-text {
        font-size:12px
    }
    .hero-chip {
        font-size:13px;
        padding:5px 12px
    }
    .hero-tags {
        gap:11px;
        font-size:11px
    }
    .hero-arrow {
        width:27px;
        height:27px;
        font-size:22px;
        line-height:21px
    }
    .hero-arrow.previous {
        left:3px
    }
    .hero-arrow.next {
        right:3px
    }
    .category-strip {
        padding:0 8px;
        gap:6px;
        margin-bottom:12px
    }
    .category-tile {
        height:79px;
        padding:7px
    }
    .category-icon {
        font-size:17px;
        margin-right:5px
    }
    .category-tile-text strong {
        font-size:13px
    }
    .category-tile-text small {
        font-size:9px
    }
    .main-layout {
        padding:0 10px 16px
    }
    .section-title {
        gap:8px
    }
    .section-title h2 {
        font-size:18px
    }
    .section-title p {
        font-size:10px
    }
    .video-grid {
        grid-template-columns:repeat(2,minmax(0,1fr))
    }
    .video-card h3 {
        font-size:12px
    }
    .collection-grid {
        grid-template-columns:1fr
    }
    .collection {
        height:125px
    }
    .bottom-sections {
        grid-template-columns:1fr
    }
    .updates .video-grid {
        grid-template-columns:repeat(3,minmax(0,1fr));
        gap:6px
    }
    .updates .video-card h3 {
        font-size:11px
    }
    .updates .pill {
        display:none
    }
    .sidebar {
        grid-template-columns:1fr
    }
    .footer-main {
        align-items:flex-start;
        flex-direction:column;
        gap:8px
    }
    .footer-main nav {
        margin:0;
        justify-content:flex-start
    }
}

/* 修复版：强化卡片可读性及窄屏防溢出 */
.card-summary {
    margin: 0 0 5px;
    color: #77717f;
    font-size: 11px;
    line-height: 1.6;
}
.content-disclosure {
    border-top: 1px solid #e8dced;
    padding-top: 8px;
    color: #686174;
}
.header-inner, .main-layout, .video-card, .collection, .category-tile {
    min-width: 0;
}
body { overflow-x: clip; }
img { max-width: 100%; }
@media (max-width: 560px) {
    .hero-copy { min-width: 0; }
    .hero h1 small { font-size: clamp(18px, 5.7vw, 23px); }
    .video-card h3 { white-space: normal; }
    .section-title { flex-wrap: wrap; }
    .section-title > a { margin-left: auto; }
    .category-tile-text { min-width: 0; }
    .category-tile-text small { white-space: normal; }
}
