:root {
    --primary: #2f6bff;
    --primary-dark: #1749ce;
    --navy: #101b37;
    --text: #182033;
    --muted: #778096;
    --line: #e8ecf4;
    --soft: #f5f8ff;
    --surface: #ffffff;
    --radius: 16px;
    --shadow: 0 12px 34px rgba(31, 64, 127, .09);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--text); background: #fff; font-family: "Microsoft YaHei", "PingFang SC", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
button { color: inherit; }
.container { width: min(1200px, calc(100% - 40px)); margin: 0 auto; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

.site-header { position: relative; z-index: 20; background: #fff; border-bottom: 1px solid var(--line); }
.header-top { min-height: 76px; display: flex; align-items: center; gap: 38px; }
.brand { display: inline-flex; flex: 0 0 auto; align-items: center; gap: 12px; }
.brand-mark { position: relative; width: 39px; height: 42px; display: inline-block; transform: skewY(-5deg); }
.brand-mark i { position: absolute; bottom: 2px; width: 9px; border-radius: 5px 5px 2px 2px; background: linear-gradient(180deg, #6d9bff, #2f6bff); box-shadow: 0 4px 10px rgba(47, 107, 255, .25); }
.brand-mark i:nth-child(1) { left: 1px; height: 26px; }
.brand-mark i:nth-child(2) { left: 15px; height: 37px; }
.brand-mark i:nth-child(3) { left: 29px; height: 31px; }
.brand-copy { display: flex; flex-direction: column; line-height: 1; }
.brand-copy strong { font-size: 22px; letter-spacing: 2px; color: #1f3267; }
.brand-copy small { margin-top: 7px; font-size: 10px; letter-spacing: 5px; color: #8a92a5; }
.search { width: min(510px, 45vw); height: 44px; display: flex; margin-left: auto; border: 2px solid var(--primary); border-radius: 8px; overflow: hidden; background: #fff; }
.search input { min-width: 0; flex: 1; padding: 0 18px; border: 0; outline: 0; color: var(--text); }
.search input::placeholder { color: #a2aabc; }
.search button { width: 92px; display: inline-flex; align-items: center; justify-content: center; gap: 7px; border: 0; color: #fff; background: var(--primary); cursor: pointer; }
.search-icon { width: 15px; height: 15px; border: 2px solid currentColor; border-radius: 50%; position: relative; }
.search-icon::after { content: ""; position: absolute; width: 6px; height: 2px; right: -5px; bottom: -2px; background: currentColor; transform: rotate(45deg); border-radius: 2px; }
.header-actions { display: flex; gap: 20px; flex: 0 0 auto; font-size: 14px; color: #626b80; }
.header-actions a { transition: color .2s ease; }
.header-actions a:hover { color: var(--primary); }
.header-actions .login-link { color: var(--primary); font-weight: 700; }
.menu-toggle { display: none; width: 42px; height: 42px; padding: 10px; border: 0; border-radius: 9px; background: #f0f4ff; cursor: pointer; }
.menu-toggle span { display: block; height: 2px; margin: 5px 0; border-radius: 2px; background: #274b9f; }

.main-nav { position: relative; z-index: 30; overflow: visible; background: #fff; }
.nav-inner { position: relative; height: 50px; display: flex; align-items: stretch; overflow: visible; }
.all-category { width: 220px; display: flex; align-items: center; padding: 0 22px; gap: 12px; color: #fff; background: linear-gradient(135deg, #214fd8, #3478ff); font-size: 15px; font-weight: 700; }
.grid-icon { width: 16px; height: 16px; flex: 0 0 auto; background: linear-gradient(90deg, #fff 43%, transparent 43% 57%, #fff 57%), linear-gradient(#fff 43%, transparent 43% 57%, #fff 57%); opacity: .9; }
.nav-links { display: flex; align-items: stretch; flex: 1; min-width: 0; overflow: visible; }
.nav-links a { display: flex; min-width: 92px; align-items: center; justify-content: center; font-size: 14px; font-weight: 600; position: relative; }
.nav-links a::after { content: ""; position: absolute; left: 50%; right: 50%; bottom: 0; height: 3px; background: var(--primary); transition: left .2s ease, right .2s ease; }
.nav-links a:hover, .nav-links a.active { color: var(--primary); }
.nav-links a:hover::after, .nav-links a.active::after { left: 28px; right: 28px; }
.nav-stage-links { position: static; display: flex; flex-wrap: wrap; align-items: stretch; margin-left: 0; }
.nav-stage-item { position: static; display: flex; align-items: stretch; }
.top-nav-stage-form { margin: 0; display: flex; align-items: stretch; height: 100%; }
.top-nav-stage-link { min-width: 92px; height: 100%; display: flex; align-items: center; justify-content: center; gap: 5px; padding: 0 16px; border: 0; background: transparent; font: inherit; font-size: 14px; font-weight: 600; line-height: 1; color: inherit; cursor: pointer; position: relative; white-space: nowrap; touch-action: manipulation; }
.top-nav-stage-link::after { content: ""; position: absolute; left: 50%; right: 50%; bottom: 0; height: 3px; background: var(--primary); transition: left .2s ease, right .2s ease; }
.top-nav-stage-caret { width: 0; height: 0; border-left: 4px solid transparent; border-right: 4px solid transparent; border-top: 5px solid currentColor; opacity: .55; }
.top-nav-stage-link:hover,
.top-nav-stage-link:focus-visible,
.nav-stage-item:hover .top-nav-stage-link,
.nav-stage-item:focus-within .top-nav-stage-link,
.nav-stage-item.is-open .top-nav-stage-link { color: var(--primary); outline: 0; }
.top-nav-stage-link:hover::after,
.top-nav-stage-link:focus-visible::after,
.nav-stage-item:hover .top-nav-stage-link::after,
.nav-stage-item:focus-within .top-nav-stage-link::after,
.nav-stage-item.is-open .top-nav-stage-link::after { left: 18px; right: 18px; }
.top-nav-stage-panel { display: none; position: absolute; top: 100%; left: 220px; right: 0; z-index: 46; min-width: 0; width: auto; max-width: none; padding: 10px 16px 12px; border: 1px solid var(--line); border-radius: 0 0 14px 14px; background: #fff; box-shadow: 0 18px 36px rgba(24, 46, 90, .14); }
.nav-stage-item:hover .top-nav-stage-panel,
.nav-stage-item:focus-within .top-nav-stage-panel,
.nav-stage-item.is-open .top-nav-stage-panel { display: block; }
.top-nav-search-note { margin: 0 0 8px; color: #7a8498; font-size: 11px; line-height: 1.5; }
.top-nav-search-grades { display: flex; flex-wrap: wrap; gap: 8px; }
.top-nav-search-form { margin: 0; min-width: 0; }
.top-nav-grade-link { min-width: 88px; min-height: 36px; padding: 0 14px; border: 1px solid transparent; border-radius: 8px; background: #f7f9fd; color: #3a4660; font-size: 13px; font-weight: 600; line-height: 1; text-align: center; white-space: nowrap; cursor: pointer; touch-action: manipulation; }
.top-nav-grade-link:hover,
.top-nav-grade-link:focus-visible { color: var(--primary); border-color: #d8e4ff; background: #eef4ff; outline: 0; box-shadow: 0 0 0 2px rgba(47, 107, 255, .12); }

.upload-link { display: flex; align-items: center; margin-left: auto; padding-left: 20px; font-size: 13px; color: #59647d; }
.upload-link em { margin-left: 5px; color: #ff7b32; font-style: normal; font-weight: 700; }
.mobile-account-link, .mobile-account-form { display: none; }

.hero-section { padding: 24px 0 18px; background: radial-gradient(circle at 84% 3%, rgba(68, 191, 255, .15), transparent 28%), linear-gradient(180deg, #f3f7ff 0%, #f8faff 100%); }
.hero-grid { min-height: 410px; display: grid; grid-template-columns: 220px minmax(0, 1fr) 246px; gap: 18px; }
.category-panel, .user-panel, .hero-banner { border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow); }
.category-panel { padding: 11px 0; overflow: hidden; }
.category-panel h2 { margin: 0; padding: 10px 20px 12px; font-size: 16px; }
.category-panel > a { min-height: 55px; display: grid; grid-template-columns: 34px 56px 1fr 9px; align-items: center; gap: 8px; padding: 6px 16px; transition: background .2s ease, color .2s ease; }
.category-panel > a:hover { color: var(--primary); background: #f1f6ff; }
.category-panel b { font-size: 14px; white-space: nowrap; }
.category-panel small { overflow: hidden; color: #9aa2b2; font-size: 11px; white-space: nowrap; text-overflow: ellipsis; }
.category-panel i { color: #b5bdca; font-size: 20px; font-style: normal; }
.category-icon { width: 31px; height: 31px; display: grid; place-items: center; border-radius: 9px; color: #3470eb; background: #edf3ff; font-size: 12px; font-weight: 800; }
.category-panel a:nth-of-type(2) .category-icon { color: #7558df; background: #f2efff; }
.category-panel a:nth-of-type(3) .category-icon { color: #f07d3c; background: #fff2ea; }
.category-panel a:nth-of-type(4) .category-icon { color: #00a886; background: #e9fbf5; }
.category-panel a:nth-of-type(5) .category-icon { color: #d44d8d; background: #fff0f7; }

.hero-banner { position: relative; min-width: 0; overflow: hidden; color: #fff; background: linear-gradient(125deg, #1645d2 0%, #397aff 48%, #5ac6ed 100%); }
.hero-banner::before { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 18% 20%, rgba(255,255,255,.15), transparent 22%), linear-gradient(120deg, transparent 47%, rgba(255,255,255,.07) 47% 49%, transparent 49%); }
.hero-copy { position: relative; z-index: 2; max-width: 58%; padding: 62px 0 40px 46px; }
.hero-kicker { display: inline-block; margin-bottom: 18px; padding: 6px 13px; border: 1px solid rgba(255,255,255,.35); border-radius: 20px; background: rgba(255,255,255,.1); font-size: 12px; letter-spacing: 2px; }
.hero-copy h1 { margin: 0; font-size: clamp(32px, 3vw, 46px); line-height: 1.24; letter-spacing: 1px; }
.hero-copy h1 em { color: #ffec79; font-style: normal; }
.hero-copy p { margin: 18px 0 26px; color: rgba(255,255,255,.8); font-size: 14px; }
.primary-btn { width: 146px; height: 42px; display: inline-flex; align-items: center; justify-content: center; gap: 15px; border-radius: 7px; color: #285fe0; background: #fff; font-size: 14px; font-weight: 800; box-shadow: 0 10px 22px rgba(9, 42, 142, .25); }
.primary-btn span { font-size: 20px; }
.hero-art { position: absolute; z-index: 1; right: -5px; bottom: 0; width: 48%; height: 100%; }
.hero-art::before { content: ""; position: absolute; right: 19%; bottom: 21px; width: 210px; height: 40px; border-radius: 50%; background: rgba(5, 45, 129, .23); filter: blur(8px); }
.book { position: absolute; display: flex; align-items: flex-start; justify-content: center; padding-top: 25px; border: 5px solid rgba(255,255,255,.75); border-radius: 8px 14px 14px 7px; color: #fff; box-shadow: 12px 18px 26px rgba(11, 50, 145, .25); font-size: 22px; font-weight: 800; transform: rotate(-10deg) skewY(4deg); }
.book::after { content: "LEARNING"; position: absolute; top: 62px; font-size: 7px; letter-spacing: 2px; opacity: .8; }
.book-one { width: 126px; height: 166px; right: 122px; bottom: 77px; background: linear-gradient(145deg, #ffb34e, #ff744b); }
.book-two { width: 115px; height: 154px; right: 55px; bottom: 72px; background: linear-gradient(145deg, #6947ec, #a868ff); transform: rotate(9deg) skewY(-3deg); }
.book-three { width: 101px; height: 142px; right: 184px; bottom: 45px; background: linear-gradient(145deg, #36d2ca, #139ed8); transform: rotate(-21deg) skewY(4deg); }
.paper-card { position: absolute; width: 58px; height: 45px; display: grid; place-items: center; border-radius: 8px; background: rgba(255,255,255,.92); color: #2761e5; box-shadow: 0 8px 20px rgba(0,0,0,.12); font-size: 16px; font-weight: 900; }
.card-a { right: 20px; top: 78px; transform: rotate(11deg); }
.card-b { left: 30px; top: 54px; color: #ff6b4a; transform: rotate(-9deg); }
.orbit { position: absolute; border: 1px dashed rgba(255,255,255,.32); border-radius: 50%; }
.orbit-one { width: 290px; height: 290px; right: 10px; bottom: 14px; }
.orbit-two { width: 190px; height: 190px; right: 62px; bottom: 60px; }

.user-panel { padding: 25px 20px 17px; text-align: center; }
.avatar { width: 63px; height: 63px; display: grid; place-items: center; margin: 0 auto 12px; border-radius: 50%; background: linear-gradient(145deg, #eaf2ff, #d5e4ff); }
.avatar span { position: relative; width: 24px; height: 24px; margin-top: -8px; border-radius: 50%; background: #9ab9f7; }
.avatar span::after { content: ""; position: absolute; width: 38px; height: 19px; left: -7px; top: 25px; border-radius: 50% 50% 36% 36%; background: #9ab9f7; }
.user-panel h2 { margin: 0 0 7px; font-size: 15px; }
.user-panel > p { margin: 0 0 17px; color: #9aa2b1; font-size: 11px; }
.user-buttons { display: flex; gap: 8px; }
.user-buttons a { height: 35px; display: grid; flex: 1; place-items: center; border: 1px solid #dce5f7; border-radius: 6px; color: var(--primary); font-size: 12px; }
.user-buttons a.solid { border-color: var(--primary); color: #fff; background: var(--primary); }
.quick-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin: 19px -8px 15px; }
.quick-grid a { color: #777f91; font-size: 10px; }
.quick-grid span { width: 29px; height: 29px; display: grid; place-items: center; margin: 0 auto 7px; border-radius: 8px; color: #5683ed; background: #eef3ff; font-size: 11px; font-weight: 800; }
.notice { display: flex; flex-direction: column; gap: 7px; padding: 12px; border-radius: 8px; background: #f7f9fd; text-align: left; }
.notice b { color: #344059; font-size: 11px; }
.notice a { overflow: hidden; color: #9299aa; font-size: 10px; white-space: nowrap; text-overflow: ellipsis; }

.topic-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; padding-top: 2px; }
.topic-card { min-height: 94px; display: grid; grid-template-columns: 52px 1fr 18px; align-items: center; gap: 13px; padding: 17px; border: 1px solid #ecf0f8; border-radius: 13px; background: #fff; transition: transform .2s ease, box-shadow .2s ease; }
.topic-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.topic-icon { width: 50px; height: 50px; display: grid; place-items: center; border-radius: 14px; color: #fff; font-size: 18px; font-weight: 900; }
.tone-blue .topic-icon { background: linear-gradient(145deg, #3679ff, #2554d7); }
.tone-purple .topic-icon { background: linear-gradient(145deg, #9b72ff, #7041da); }
.tone-orange .topic-icon { background: linear-gradient(145deg, #ffab56, #f06a36); }
.tone-mint .topic-icon { background: linear-gradient(145deg, #3ad7c3, #00a984); }
.topic-card > span:nth-child(2) { min-width: 0; display: flex; flex-direction: column; }
.topic-card small { margin-bottom: 5px; color: #9098a9; font-size: 10px; }
.topic-card strong { overflow: hidden; font-size: 14px; white-space: nowrap; text-overflow: ellipsis; }
.topic-card em { margin-top: 5px; color: #aab0bc; font-size: 10px; font-style: normal; }
.topic-card > i { color: #b8c0ce; font-size: 20px; font-style: normal; }

.section-block { padding-top: 64px; }
.section-heading { min-height: 58px; display: flex; align-items: flex-end; gap: 22px; margin-bottom: 24px; }
.section-heading > div:first-child { margin-right: 10px; }
.section-heading span { display: block; margin-bottom: 6px; color: #8ba8ef; font-size: 10px; font-weight: 800; letter-spacing: 2px; }
.section-heading h2 { margin: 0; font-size: 25px; letter-spacing: .5px; }
.section-heading > a { margin: 0 0 5px auto; color: #8a93a6; font-size: 12px; }
.section-tabs, .grade-tabs { display: flex; gap: 10px; align-items: center; margin-bottom: 2px; }
.section-tabs button, .grade-tabs button { padding: 7px 13px; border: 0; border-radius: 17px; color: #8d94a4; background: transparent; font-size: 12px; cursor: pointer; }
.section-tabs button.active, .grade-tabs button.active { color: #fff; background: var(--primary); }
@media (hover: hover) and (pointer: fine) {
    .grade-subject-tabs button:hover { color: #fff; background: var(--primary); }
}
.grade-subject-tabs button:focus-visible { color: #fff; background: var(--primary); }

.resource-layout { display: grid; grid-template-columns: 290px minmax(0, 1fr); gap: 18px; }
.feature-card { position: relative; overflow: hidden; min-height: 365px; padding: 35px 28px; border-radius: 16px; color: #fff; background: linear-gradient(145deg, #7652ef, #4f38c2); }
.feature-card::before, .feature-card::after { content: ""; position: absolute; border: 1px solid rgba(255,255,255,.15); border-radius: 50%; }
.feature-card::before { width: 270px; height: 270px; right: -110px; bottom: -60px; }
.feature-card::after { width: 180px; height: 180px; right: -50px; bottom: -18px; }
.feature-label { display: inline-block; padding: 6px 12px; border-radius: 15px; background: rgba(255,255,255,.16); font-size: 11px; }
.feature-card h3 { margin: 23px 0 14px; font-size: 27px; line-height: 1.4; }
.feature-card p { color: rgba(255,255,255,.72); font-size: 12px; line-height: 1.9; }
.feature-files { position: relative; z-index: 1; display: flex; margin: 28px 0 28px; }
.feature-files i { width: 42px; height: 50px; display: grid; place-items: center; margin-right: -5px; border: 3px solid rgba(255,255,255,.55); border-radius: 5px; color: #7251e9; background: #fff; box-shadow: 5px 7px 14px rgba(28, 17, 90, .2); font-size: 10px; font-style: normal; font-weight: 900; transform: rotate(-7deg); }
.feature-files i:nth-child(2) { color: #f28a31; transform: rotate(3deg); }
.feature-files i:nth-child(3) { color: #00a67d; transform: rotate(-2deg); }
.feature-files i:nth-child(4) { color: #ef4c4c; transform: rotate(8deg); }
.feature-card > a { position: relative; z-index: 1; display: inline-flex; padding-bottom: 3px; border-bottom: 1px solid rgba(255,255,255,.65); font-size: 12px; }
.resource-list { display: grid; gap: 10px; }
.resource-item { min-width: 0; min-height: 83px; display: grid; grid-template-columns: 52px minmax(0, 1fr) 80px; align-items: center; gap: 15px; padding: 12px 16px; border: 1px solid var(--line); border-radius: 11px; transition: border-color .2s ease, box-shadow .2s ease; }
.resource-item:hover { border-color: #bcd0ff; box-shadow: 0 7px 22px rgba(43, 94, 194, .08); }
.file-icon { width: 44px; height: 54px; display: grid; place-items: center; border-radius: 6px 11px 6px 6px; color: #fff; background: #4e85ed; font-size: 9px; font-weight: 900; box-shadow: inset 0 -10px 18px rgba(0,0,0,.07); }
.file-icon.ppt { background: #f18a35; }
.file-icon.xls { background: #25ad79; }
.file-icon.pdf { background: #eb5b57; }
.resource-item > div { min-width: 0; }
.resource-item h3 { overflow: hidden; margin: 0 0 9px; font-size: 13px; white-space: nowrap; text-overflow: ellipsis; }
.resource-item p { margin: 0; color: #a0a7b6; font-size: 10px; }
.resource-item p span { margin-left: 20px; }
.download-btn { height: 30px; display: grid; place-items: center; border: 1px solid #d7e2fa; border-radius: 6px; color: var(--primary); font-size: 11px; }
.download-btn:hover { border-color: var(--primary); color: #fff; background: var(--primary); }

.stats-section { margin-top: 64px; color: #fff; background: linear-gradient(105deg, #3156df 0%, #4889ea 52%, #54ced6 100%); }
.stats-grid { min-height: 142px; display: grid; grid-template-columns: repeat(3, 1fr); align-items: center; }
.stats-grid div { display: flex; flex-direction: column; align-items: center; position: relative; }
.stats-grid div:not(:last-child)::after { content: ""; position: absolute; right: 0; top: 4px; width: 1px; height: 62px; background: rgba(255,255,255,.22); }
.stats-grid strong { font-size: 30px; letter-spacing: 1px; }
.stats-grid em { font-size: 20px; font-style: normal; }
.stats-grid span { margin-top: 9px; color: rgba(255,255,255,.65); font-size: 12px; letter-spacing: 2px; }

.exam-block { padding-bottom: 4px; }
.exam-layout { display: grid; grid-template-columns: 290px 1fr; gap: 18px; padding: 18px; border-radius: 17px; background: linear-gradient(135deg, rgba(40, 211, 187, .14), rgba(58, 138, 255, .1)); }
.exam-feature { min-height: 265px; padding: 30px 27px; border-radius: 14px; color: #054b48; background: linear-gradient(145deg, #57dec9, #28c9bb); }
.exam-feature small { display: inline-block; padding: 5px 10px; border-radius: 13px; color: #fff; background: rgba(0,84,78,.2); }
.exam-feature h3 { margin: 19px 0 12px; font-size: 22px; }
.exam-feature p { margin: 0; font-size: 11px; }
.subject-pills { display: flex; flex-wrap: wrap; gap: 6px; margin: 23px 0 26px; }
.subject-pills span { padding: 6px 9px; border: 1px solid rgba(0,82,76,.18); border-radius: 5px; font-size: 10px; }
.exam-feature > a { padding: 9px 14px; border-radius: 6px; color: #06a493; background: #fff; font-size: 11px; font-weight: 700; }
.exam-columns { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.exam-columns > div { padding: 21px 22px; border-radius: 12px; background: rgba(255,255,255,.8); }
.exam-columns h3 { display: flex; justify-content: space-between; margin: 0 0 15px; font-size: 14px; }
.exam-columns h3 a { color: #a0a8b5; font-size: 10px; font-weight: 400; }
.exam-columns ul { margin: 0; padding: 0; list-style: none; }
.exam-columns li { display: grid; grid-template-columns: minmax(0, 1fr) 38px; gap: 8px; padding: 10px 0; border-bottom: 1px dashed #e1e7ed; font-size: 11px; }
.exam-columns li:last-child { border-bottom: 0; }
.exam-columns li a { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.exam-columns time { color: #abb2bf; font-size: 9px; }

.recommend-block { padding-bottom: 72px; }
.recommend-grid { display: grid; grid-template-columns: 1fr 1.1fr 1fr; gap: 17px; }
.subject-card, .rank-card { min-width: 0; min-height: 290px; border-radius: 16px; }

.article-compact-section { padding: 28px 0 36px; border-top: 1px solid #eef1f7; background: #fafbfd; }
.article-compact-rows { display: grid; gap: 6px; min-width: 0; }
.article-compact-row { min-width: 0; display: grid; grid-template-columns: repeat(30, minmax(0, 1fr)); gap: 4px 10px; }
.article-compact-link { min-width: 0; overflow: hidden; color: #667085; font-size: 11px; line-height: 1.35; white-space: nowrap; text-overflow: ellipsis; transition: color .2s ease; }
.article-compact-link:hover, .article-compact-link:focus-visible { color: var(--primary); outline: none; }
.article-compact-empty { min-height: 72px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; border: 1px dashed #d8deeb; border-radius: 10px; color: #9ba4b4; background: #fff; text-align: center; }
.article-compact-empty strong { color: #4c5870; font-size: 13px; }
.article-compact-empty span { padding: 0 16px; font-size: 10px; line-height: 1.6; }
.article-compact-empty.is-warning { border-color: #f0d9b2; background: #fffbf3; }

.grade-latest-section { display: grid; gap: 22px; }
.grade-latest-block { padding: 18px 20px 16px; border: 1px solid var(--line); border-radius: 14px; background: #fff; box-shadow: 0 8px 24px rgba(31, 45, 61, .04); }
.grade-latest-block-head { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin-bottom: 14px; }
.grade-latest-block-title { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 10px; min-width: 0; }
.grade-latest-block-title strong { color: #24324a; font-size: 16px; }
.grade-latest-block-title span { color: #8d94a4; font-size: 11px; }
.grade-subject-tabs { flex: 1 1 240px; margin-bottom: 0; overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: thin; }
.grade-subject-panel { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 10px; min-width: 0; }
.grade-subject-panel[hidden] { display: none !important; }
.grade-subject-panel .empty-resource-state { grid-column: 1 / -1; min-height: 160px; padding: 24px 16px; }
.grade-subject-item { min-height: 52px; grid-template-columns: 34px minmax(0, 1fr); gap: 8px; padding: 8px 10px; }
.grade-subject-item .file-icon { width: 30px; height: 38px; font-size: 8px; }
.grade-subject-item h3 { margin: 0 0 3px; font-size: 12px; }
.grade-subject-item p { font-size: 9px; }
.grade-subject-item p span { margin-left: 8px; }
.grade-subject-item .download-btn { display: none; }
.grade-latest-empty { min-height: 88px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; border: 1px dashed #d8deeb; border-radius: 10px; color: #9ba4b4; background: #fff; text-align: center; }
.grade-latest-empty strong { color: #4c5870; font-size: 13px; }
.grade-latest-empty span { padding: 0 16px; font-size: 10px; line-height: 1.6; }
.grade-latest-empty.is-warning { border-color: #f0d9b2; background: #fffbf3; }
.subject-card { overflow: hidden; padding: 27px; }
.subject-mint { background: linear-gradient(145deg, #d9fbf6, #b9f1eb); }
.subject-orange { background: linear-gradient(145deg, #fff1df, #ffe0c4); }
.subject-card > div { position: relative; min-height: 105px; padding-left: 84px; }
.subject-card > div > span { position: absolute; left: 0; top: 0; width: 66px; height: 80px; display: grid; place-items: center; border: 4px solid rgba(255,255,255,.7); border-radius: 7px 12px 12px 7px; color: #00a58f; background: #fff; font-size: 24px; font-weight: 900; box-shadow: 8px 10px 20px rgba(14, 121, 109, .12); transform: rotate(-7deg); }
.subject-orange > div > span { color: #ef7a31; }
.subject-card h3 { margin: 12px 0 8px; font-size: 20px; }
.subject-card p { margin: 0; color: #5a8984; font-size: 11px; }
.subject-orange p { color: #a57450; }
.subject-card nav { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.subject-card nav a { padding: 10px 12px; border-radius: 7px; background: rgba(255,255,255,.63); color: #497b77; font-size: 11px; }
.subject-orange nav a { color: #906342; }
.rank-card { padding: 24px; border: 1px solid var(--line); background: #fff; }
.rank-card > h3 { margin: 0 0 12px; padding-bottom: 15px; border-bottom: 1px solid var(--line); font-size: 16px; }
.rank-card > h3 span { margin-left: 7px; color: #ff7f43; font-size: 10px; }
.rank-card > a { display: grid; grid-template-columns: 30px minmax(0, 1fr) 20px; align-items: center; gap: 9px; padding: 11px 0; }
.rank-card > a > b { color: #b3bac8; font-size: 15px; font-style: italic; }
.rank-card > a:nth-of-type(-n+3) > b { color: #ff6d44; }
.rank-card > a > span { overflow: hidden; font-size: 11px; white-space: nowrap; text-overflow: ellipsis; }
.rank-card small { display: block; margin-top: 5px; color: #a1a8b7; font-size: 9px; }
.rank-card > a > i { color: #95a0b4; font-style: normal; }

.site-footer { color: #7e8799; background: #f7f8fb; }
.friendly-links { min-height: 76px; display: flex; align-items: center; gap: 27px; font-size: 12px; }
.friendly-links strong { color: #4b5569; }
.friendly-links a:hover { color: var(--primary); }
.footer-main { color: #8993a7; background: var(--navy); }
.footer-grid { display: grid; grid-template-columns: 2fr .8fr 1fr; gap: 60px; padding-top: 48px; padding-bottom: 36px; }
.brand-light .brand-copy strong { color: #fff; }
.brand-light .brand-copy small { color: #6f7b95; }
.footer-brand p { margin: 22px 0 0; color: #667289; font-size: 11px; line-height: 2; }
.footer-grid h3 { margin: 3px 0 18px; color: #fff; font-size: 13px; }
.footer-grid > div:not(:first-child) > a { display: block; margin: 12px 0; font-size: 11px; }
.footer-service { min-height: 105px; display: grid; grid-template-rows: 30px 28px 1fr; align-content: center; padding: 18px; border: 1px solid #283652; border-radius: 10px; }
.footer-service span { color: #91a4c4; font-size: 10px; letter-spacing: 1px; }
.footer-service strong { color: #fff; font-size: 13px; }
.footer-service small { align-self: start; color: #8993a7; font-size: 9px; }
.copyright { min-height: 58px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; border-top: 1px solid #1d2943; color: #505d73; font-size: 10px; }
.footer-actions { display: flex; align-items: center; gap: 14px; }
.footer-sitemap-link { min-height: 32px; padding: 0 13px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid rgba(173, 190, 219, .35); border-radius: 999px; color: #b8c6dc; font-size: 11px; font-weight: 700; letter-spacing: .5px; transition: color .2s ease, border-color .2s ease, background .2s ease; }
.footer-sitemap-link:hover { color: #fff; border-color: rgba(255, 255, 255, .68); background: rgba(255, 255, 255, .08); }
.footer-beian a { color: #9aabc6; text-decoration: none; }
.footer-beian a:hover { color: #fff; }

@media (max-width: 1100px) {
    .top-nav-stage-panel { left: 200px; }
    .header-top { gap: 22px; }
    .header-actions a[href="/list.html"] { display: none; }
    .nav-links a { min-width: 78px; }
    .hero-grid { grid-template-columns: 200px minmax(0, 1fr); }
    .all-category { width: 200px; }
    .user-panel { display: none; }
    .mobile-account-link, .mobile-account-form { min-height: 42px; display: flex; align-items: center; padding: 0 15px; border-top: 1px solid var(--line); color: var(--primary); font-size: 13px; font-weight: 700; }
    .mobile-account-form button { padding: 0; border: 0; color: var(--primary); background: transparent; font-size: 13px; font-weight: 700; }
    .topic-grid { grid-template-columns: repeat(2, 1fr); }
    .recommend-grid { grid-template-columns: 1fr 1fr; }
    .rank-card { grid-row: span 2; }
    .footer-grid { gap: 30px; }
}

@media (max-width: 820px) {
    .container { width: min(100% - 30px, 680px); }
    .header-top { min-height: 68px; gap: 12px; }
    .brand-copy strong { font-size: 18px; }
    .brand-copy small { letter-spacing: 3px; }
    .search { order: 4; width: 100%; height: 42px; margin: 0 0 13px; }
    .header-top { flex-wrap: wrap; }
    .header-actions { margin-left: auto; }
    .menu-toggle { display: block; }
    .main-nav { display: block; position: static; padding: 0; border-top: 1px solid var(--line); box-shadow: none; overflow: visible; }
    .main-nav.is-open { padding: 8px 0 12px; }
    .main-nav .nav-inner { height: auto; display: flex; flex-direction: column; padding-top: 0; padding-bottom: 0; }
    .all-category { width: 100%; height: 44px; border-radius: 8px; }
    .nav-links { display: grid; grid-template-columns: repeat(2, 1fr); padding: 0; width: 100%; }
    .nav-links > a { height: 42px; justify-content: flex-start; padding-left: 15px; }
    .nav-links > a::after { display: none; }
    .nav-stage-links { display: grid; grid-template-columns: repeat(var(--top-nav-stage-count, 1), minmax(0, 1fr)); align-items: start; grid-column: 1 / -1; width: 100%; margin: 0; border-top: 1px solid var(--line); }
    .nav-stage-item { display: contents; }
    .top-nav-stage-form { grid-row: 1; }
    .top-nav-stage-form,
    .top-nav-stage-link { width: 100%; min-width: 0; min-height: 44px; height: 44px; padding: 0 8px; }
    .top-nav-stage-link::after { display: none; }
    .top-nav-stage-panel,
    .nav-stage-item:hover .top-nav-stage-panel,
    .nav-stage-item:focus-within .top-nav-stage-panel { display: none; }
    .nav-stage-item.is-open .top-nav-stage-panel { display: block; position: static; left: auto; right: auto; grid-column: 1 / -1; grid-row: 2; width: 100%; max-width: none; min-width: 0; margin: 0; padding: 8px 4px 12px; overflow: visible; border: 0; border-top: 1px solid var(--line); border-radius: 0; box-shadow: none; }
    .main-nav.is-open .nav-stage-links { display: flex; flex-direction: column; }
    .main-nav.is-open .nav-stage-item { display: flex; flex-direction: column; width: 100%; }
    .main-nav.is-open .top-nav-stage-panel,
    .main-nav.is-open .nav-stage-item:hover .top-nav-stage-panel,
    .main-nav.is-open .nav-stage-item:focus-within .top-nav-stage-panel { display: block; position: static; left: auto; right: auto; width: 100%; max-width: none; min-width: 0; margin: 0; padding: 8px 12px 12px; overflow: visible; border: 0; border-top: 1px solid var(--line); border-radius: 0; box-shadow: none; }
    .nav-stage-item.is-open .top-nav-search-grades,
    .main-nav.is-open .top-nav-search-grades { display: grid; grid-template-columns: repeat(auto-fit, minmax(0, 1fr)); gap: 6px; }
    .top-nav-grade-link { width: 100%; min-width: 0; min-height: 40px; padding: 0 4px; font-size: 12px; }
    .upload-link { height: 42px; padding-left: 15px; margin-left: 0; }
    .main-nav:not(.is-open) .all-category,
    .main-nav:not(.is-open) .nav-links > a,
    .main-nav:not(.is-open) .upload-link,
    .main-nav:not(.is-open) [data-yylf-user-mount] { display: none; }
    .main-nav:not(.is-open) .nav-links { display: block; padding: 0; }
    .mobile-account-link, .mobile-account-form { min-height: 42px; display: flex; align-items: center; padding: 0 15px; border-top: 1px solid var(--line); color: var(--primary); font-size: 13px; font-weight: 700; }
    .mobile-account-form button { padding: 0; border: 0; color: var(--primary); background: transparent; font-size: 13px; font-weight: 700; }
    .hero-section { padding-top: 17px; }
    .hero-grid { min-height: 0; grid-template-columns: 1fr; }
    .category-panel { display: grid; grid-template-columns: repeat(3, 1fr); padding: 9px; }
    .category-panel h2 { display: none; }
    .category-panel > a { min-height: 68px; grid-template-columns: 31px 1fr; grid-template-rows: 23px 17px; gap: 0 9px; padding: 7px; }
    .category-panel .category-icon { grid-row: 1/3; }
    .category-panel small { font-size: 9px; }
    .category-panel i { display: none; }
    .hero-banner { min-height: 360px; }
    .hero-copy { max-width: 70%; padding: 50px 0 35px 34px; }
    .hero-art { width: 45%; opacity: .78; }
    .book-one { right: 65px; }
    .book-two { right: 10px; }
    .book-three { right: 115px; }
    .topic-grid { padding-top: 0; }
    .section-block { padding-top: 50px; }
    .section-heading { align-items: center; flex-wrap: wrap; }
    .section-tabs, .grade-tabs { order: 3; width: 100%; overflow-x: auto; padding: 3px 0; }
    .resource-layout, .exam-layout { grid-template-columns: 1fr; }
    .feature-card { min-height: 275px; }
    .feature-card h3 { font-size: 23px; }
    .feature-files { margin: 16px 0 22px; }
    .exam-columns { grid-template-columns: 1fr; }
    .recommend-grid { grid-template-columns: 1fr; }
    .article-compact-section { padding: 22px 0 28px; }
    .article-compact-row { grid-template-columns: repeat(15, minmax(0, 1fr)); }
    .grade-latest-block { padding: 16px 14px 14px; }
    .grade-latest-block-head { flex-direction: column; align-items: stretch; }
    .grade-latest-block-head > a { align-self: flex-start; }
    .grade-subject-tabs { width: 100%; flex: none; }
    .grade-subject-item { min-height: 50px; grid-template-columns: 32px minmax(0, 1fr); gap: 8px; padding: 8px; }
    .rank-card { grid-row: auto; }
    .footer-grid { grid-template-columns: 1.5fr 1fr 1fr; }
    .footer-service { grid-column: 1/-1; max-width: 290px; }
}

@media (max-width: 560px) {
    .container { width: calc(100% - 24px); }
    .header-top { min-height: 61px; }
    .brand { gap: 8px; }
    .brand-mark { width: 30px; height: 34px; transform: scale(.82) skewY(-5deg); transform-origin: left center; margin-right: -3px; }
    .brand-copy strong { font-size: 16px; letter-spacing: 1px; }
    .brand-copy small { margin-top: 5px; font-size: 8px; letter-spacing: 2px; }
    .header-actions { display: none; }
    .menu-toggle { margin-left: auto; }
    .search button { width: 70px; }
    .search button b { font-size: 12px; }
    .main-nav { top: 116px; }
    .hero-grid { gap: 12px; }
    .category-panel { grid-template-columns: repeat(3, 1fr); }
    .category-panel > a { display: flex; min-height: 64px; flex-direction: column; justify-content: center; gap: 5px; text-align: center; }
    .category-panel small { display: none; }
    .category-panel b { font-size: 12px; }
    .hero-banner { min-height: 346px; }
    .hero-copy { max-width: none; padding: 35px 24px; }
    .hero-copy h1 { font-size: 30px; }
    .hero-copy p { width: 67%; font-size: 12px; line-height: 1.7; }
    .hero-art { right: -66px; bottom: -45px; width: 70%; transform: scale(.7); transform-origin: bottom right; }
    .topic-grid { grid-template-columns: 1fr; gap: 9px; }
    .topic-card { min-height: 82px; }
    .section-heading { gap: 8px; margin-bottom: 18px; }
    .section-heading h2 { font-size: 21px; }
    .section-heading > a { font-size: 10px; }
    .article-compact-row { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px 8px; }
    .resource-layout { gap: 12px; }
    .feature-card { min-height: 260px; padding: 28px 24px; }
    .feature-card p { line-height: 1.7; }
    .resource-item { grid-template-columns: 45px minmax(0, 1fr); gap: 12px; min-height: 86px; padding: 12px; }
    .resource-item .download-btn { display: none; }
    .resource-item h3 { font-size: 12px; }
    .resource-item p { line-height: 1.7; }
    .resource-item p span { display: block; margin: 0; }
    .grade-subject-item { min-height: 46px; grid-template-columns: 28px minmax(0, 1fr); gap: 7px; padding: 7px 8px; }
    .grade-subject-item .file-icon { width: 26px; height: 32px; font-size: 7px; }
    .grade-subject-item h3 { margin-bottom: 2px; font-size: 11px; }
    .grade-subject-item p { font-size: 8px; line-height: 1.4; }
    .grade-subject-item p span { display: inline; margin-left: 6px; }
    .stats-section { margin-top: 46px; }
    .stats-grid { min-height: 118px; }
    .stats-grid strong { font-size: 18px; }
    .stats-grid em { font-size: 14px; }
    .stats-grid span { font-size: 9px; letter-spacing: 0; }
    .stats-grid div:not(:last-child)::after { height: 49px; }
    .exam-layout { padding: 10px; }
    .exam-feature { min-height: 240px; }
    .exam-columns > div { padding: 19px 15px; }
    .exam-columns li { font-size: 10px; }
    .subject-card, .rank-card { min-height: 0; padding: 21px; }
    .recommend-block { padding-bottom: 50px; }
    .article-compact-row { grid-template-columns: 1fr; }
    .article-compact-link { font-size: 10px; line-height: 1.3; }
    .friendly-links { align-items: flex-start; flex-wrap: wrap; gap: 12px 20px; padding-top: 22px; padding-bottom: 22px; }
    .friendly-links strong { width: 100%; }
    .footer-grid { grid-template-columns: repeat(2, 1fr); gap: 25px; padding-top: 36px; }
    .footer-brand { grid-column: 1/-1; }
    .footer-service { grid-column: 1/-1; }
    .copyright { align-items: flex-start; flex-direction: column; justify-content: center; gap: 8px; padding: 15px 0; line-height: 1.6; }
    .footer-actions { width: 100%; flex-wrap: wrap; justify-content: space-between; }
}

@media (max-width: 340px) {
    .container { width: calc(100% - 20px); }
    .brand-copy small { display: none; }
    .search input { padding: 0 11px; font-size: 12px; }
    .category-panel { padding: 6px; }
    .hero-copy { padding: 30px 19px; }
    .hero-copy h1 { font-size: 27px; }
    .hero-copy p { width: 72%; }
    .topic-card { padding: 14px; }
    .section-tabs button, .grade-tabs button { padding: 7px 10px; }
    .grade-subject-tabs button { flex: 0 0 auto; }
    .grade-subject-panel { grid-template-columns: 1fr; }
    .stats-grid strong { font-size: 15px; }
    .stats-grid span { font-size: 8px; }
    .exam-feature { padding: 25px 19px; }
}

/* 首页真实数据和账号交互状态 */
.site-alert { position: fixed; z-index: 60; top: 18px; left: 50%; max-width: min(560px, calc(100% - 30px)); padding: 11px 18px; border: 1px solid #b9d2ff; border-radius: 7px; color: #2453b8; background: #eef4ff; box-shadow: 0 8px 25px rgba(31,64,127,.14); font-size: 13px; transform: translateX(-50%); }
.site-alert.success { border-color: #b8e9d5; color: #13855a; background: #effbf6; }
.header-account { display: inline-flex; align-items: center; gap: 7px; color: #59647d; font-size: 13px; font-weight: 700; }
.header-account i { width: 25px; height: 25px; display: grid; place-items: center; border-radius: 50%; color: #fff; background: var(--primary); font-size: 11px; font-style: normal; }
.logout-form { display: inline-flex; align-items: center; }
.logout-form button { padding: 0; border: 0; color: #8e97a8; background: transparent; cursor: pointer; font-size: 12px; }
.logout-form button:hover { color: var(--primary); }
.category-icon.tone-purple { color: #7558df; background: #f2efff; }
.category-icon.tone-orange { color: #f07d3c; background: #fff2ea; }
.category-icon.tone-mint { color: #00a886; background: #e9fbf5; }
.category-icon.tone-rose { color: #d44d8d; background: #fff0f7; }
.category-icon.more { color: #657188; background: #f0f3f7; }
.grade-tabs a { padding: 7px 13px; border-radius: 17px; color: #8d94a4; font-size: 12px; white-space: nowrap; }
.grade-tabs a.active, .grade-tabs a:hover { color: #fff; background: var(--primary); }
.resource-panel[hidden] { display: none; }
.empty-inline { grid-column: 1/-1; padding: 24px; border: 1px dashed #dce4f1; border-radius: 12px; color: #8993a6; text-align: center; font-size: 13px; }
.empty-resource-state { min-height: 300px; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 30px; border: 1px dashed #dce4f1; border-radius: 12px; color: #8a94a7; text-align: center; }
.empty-resource-state strong { color: #4d5b73; font-size: 16px; }
.empty-resource-state span { margin-top: 8px; font-size: 12px; }
.empty-resource-state a { margin-top: 18px; padding: 8px 14px; border: 1px solid #d7e2fa; border-radius: 6px; color: var(--primary); font-size: 12px; }
.empty-resource-state a:hover { color: #fff; background: var(--primary); }
.empty-row { display: block!important; color: #a0a8b5; text-align: center; }
.rank-empty { display: grid; min-height: 210px; place-items: center; color: #929baa; font-size: 12px; text-align: center; }
.auth-modal { position: fixed; z-index: 55; inset: 0; display: grid; place-items: center; padding: 18px; }
.auth-modal[hidden] { display: none; }
.auth-backdrop { position: absolute; inset: 0; background: rgba(12, 25, 57, .52); backdrop-filter: blur(3px); }
.auth-dialog { position: relative; width: min(440px, 100%); max-height: calc(100vh - 36px); overflow: auto; padding: 34px 40px 28px; border-radius: 14px; background: #fff; box-shadow: 0 25px 75px rgba(8,25,73,.28); }
.auth-close { position: absolute; top: 12px; right: 15px; width: 32px; height: 32px; border: 0; border-radius: 50%; color: #7f8a9d; background: #f3f6fb; cursor: pointer; font-size: 23px; line-height: 1; }
.auth-close:hover { color: #fff; background: var(--primary); }
.auth-heading { text-align: center; }
.auth-heading .eyebrow { display: block; margin-bottom: 7px; color: #8ba8ef; font-size: 10px; font-weight: 800; letter-spacing: 2px; }
.auth-heading h2 { margin: 0; font-size: 24px; }
.auth-heading p { margin: 10px 0 0; color: #9099aa; font-size: 12px; line-height: 1.6; }
.auth-tabs { display: grid; grid-template-columns: repeat(2, 1fr); gap: 6px; margin: 25px 0 18px; padding: 4px; border-radius: 8px; background: #f1f4fa; }
.auth-tabs button { height: 36px; border: 0; border-radius: 6px; color: #7d8798; background: transparent; cursor: pointer; font-size: 13px; }
.auth-tabs button.active { color: var(--primary); background: #fff; box-shadow: 0 3px 10px rgba(40,84,168,.1); font-weight: 700; }
.auth-alert { margin-bottom: 15px; padding: 10px 12px; border: 1px solid #ffd3ce; border-radius: 6px; color: #c34a42; background: #fff3f1; font-size: 12px; line-height: 1.5; }
.auth-alert.info { border-color: #c6d8ff; color: #2e5fbd; background: #f1f5ff; }
.auth-form[hidden] { display: none; }
.auth-form { display: grid; gap: 9px; }
.auth-form label { margin-top: 5px; color: #45516a; font-size: 12px; font-weight: 700; }
.auth-form input { height: 42px; padding: 0 13px; border: 1px solid #dce3ef; border-radius: 6px; outline: 0; color: var(--text); background: #fff; font-size: 13px; }
.auth-form input:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(47,107,255,.1); }
.auth-sms-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; align-items: stretch; }
.auth-sms-row input { min-width: 0; }
.auth-sms-send { min-width: 108px; height: 42px; padding: 0 12px; border: 1px solid #d6def0; border-radius: 6px; color: var(--primary); background: #f5f8ff; cursor: pointer; font-size: 13px; font-weight: 700; white-space: nowrap; }
.auth-sms-send:hover { background: #ebf1ff; }
.auth-sms-send:disabled { color: #8b95a6; background: #f3f5f8; cursor: not-allowed; }
.auth-sms-status { margin: 0; color: #2e5fbd; font-size: 12px; line-height: 1.5; }
.auth-sms-status.is-error { color: #c34a42; }
.auth-submit { height: 43px; display: flex; align-items: center; justify-content: center; gap: 12px; margin-top: 10px; border: 0; border-radius: 6px; color: #fff; background: var(--primary); cursor: pointer; font-size: 13px; font-weight: 700; }
.auth-submit:hover { background: var(--primary-dark); }
.auth-submit span { font-size: 18px; }
.auth-footnote { margin: 19px 0 0; color: #a0a8b7; font-size: 10px; line-height: 1.6; text-align: center; }
body.modal-open { overflow: hidden; }
.recharge-dialog { width: min(520px, 100%); }
.recharge-panel[hidden] { display: none; }
.recharge-current-panel { margin: 0 0 16px; }
.recharge-current-panel[hidden],
.vip-current-panel[hidden] { display: none; }
.recharge-plan-list { margin: 0; }
.recharge-status-lead,.recharge-result-title { margin: 0 0 10px; color: #172033; font-size: 16px; font-weight: 700; line-height: 1.5; }
.recharge-order-summary { margin: 0 0 12px; color: #4d628c; font-size: 14px; line-height: 1.6; }
.recharge-status-hint { margin: 0 0 16px; color: #6c7588; font-size: 12px; line-height: 1.6; }
.recharge-resume-button,.recharge-done-button { width: 100%; }
.header-actions [data-recharge-open],
.nav-links [data-recharge-open],
.footer-grid [data-recharge-open] { font-weight: 700; }
/* 未登录不展示顶部开通 VIP；登录后由 public-user.js 写入 authenticated 再显示。页脚和下载状态主按钮不受影响。 */
body[data-yylf-public-user-root]:not([data-yylf-public-user-state="authenticated"]) .header-actions > a[data-recharge-open],
body[data-yylf-public-user-root]:not([data-yylf-public-user-state="authenticated"]) a.upload-link[data-recharge-open],
body[data-yylf-public-user-root]:not([data-yylf-public-user-state="authenticated"]) a.mobile-account-link[data-recharge-open],
body[data-yylf-public-user-root]:not([data-yylf-public-user-state="authenticated"]) .detail-header-inner > a[data-recharge-open],
body[data-yylf-public-user-root]:not([data-yylf-public-user-state="authenticated"]) .detail-mobile-menu > a[data-recharge-open],
body[data-yylf-public-user-root]:not([data-yylf-public-user-state="authenticated"]) .article-header-nav > a[data-recharge-open] {
    display: none !important;
}
.recharge-noscript { margin: 12px auto; padding: 10px 14px; text-align: center; font-size: 13px; }

@media (max-width: 560px) {
    .site-alert { top: 10px; font-size: 12px; }
    .auth-dialog { padding: 30px 22px 23px; }
    .auth-heading h2 { font-size: 21px; }
    .auth-sms-row { grid-template-columns: minmax(0, 1fr) auto; }
    .auth-sms-send { min-width: 96px; padding: 0 10px; font-size: 12px; }
    .header-account { display: none; }
}
