/* 湖南区域智能组卷 */
:root {
    --ink: #0c2340;
    --ink-2: #163a5c;
    --gold: #c6a35a;
    --gold-2: #e8d7a8;
    --paper: #f6f1e8;
    --page: #eef0f3;
    --card: #fff;
    --line: #e2e6ec;
    --text: #1f2a37;
    --muted: #6a7483;
    --green: #2a6b5f;
    --danger: #b03a34;
    --shadow: 0 12px 40px rgba(12, 35, 64, 0.08);
}
html { scroll-behavior: smooth; }
body.paper-app {
    background: var(--page);
    color: var(--text);
    padding-top: 72px;
}
body.paper-app.page-home {
    background: var(--ink);
    padding-top: 72px;
}
.page-home .site-nav-inner { justify-content: space-between; }
.nav-left {
    display: flex;
    align-items: center;
    gap: 16px;
    min-width: 0;
}
.page-home .nav-note {
    margin: 0;
    padding: 0;
}
.page-home .btn-nav { margin-left: auto; flex-shrink: 0; }

.site-nav.navbar {
    min-height: 72px;
    margin: 0;
    border: 0;
    border-radius: 0;
    background: var(--ink);
    box-shadow: none;
    border-bottom: 1px solid rgba(198, 163, 90, .22);
}
.site-nav-inner {
    display: flex;
    align-items: center;
    gap: 18px;
    width: 100%;
    min-height: 72px;
    padding: 0 48px;
    flex-wrap: wrap;
}
.site-nav .navbar-toggle {
    margin: 16px 0 16px auto;
    border-color: rgba(255,255,255,.25);
    float: none;
}
.site-nav .navbar-toggle .icon-bar { background: #fff; }
.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #fff !important;
    text-decoration: none !important;
    font-weight: 700;
    font-size: 17px;
    letter-spacing: .04em;
    white-space: nowrap;
    height: 72px;
    line-height: 72px;
}
.brand-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: var(--gold);
    color: var(--ink);
    font-size: 16px;
    font-weight: 700;
    border-radius: 2px;
    line-height: 1;
}
.nav-note {
    margin-left: auto;
    color: rgba(255,255,255,.45);
    font-size: 13px;
    letter-spacing: .12em;
}
.btn-nav {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 36px;
    padding: 0 18px;
    border: 1px solid var(--gold);
    background: transparent;
    color: var(--gold-2) !important;
    border-radius: 2px;
    font-size: 13px;
    letter-spacing: .12em;
    cursor: pointer;
    text-decoration: none !important;
}
.btn-nav:hover {
    background: var(--gold);
    color: var(--ink) !important;
}
.site-nav .navbar-collapse {
    border: 0;
    box-shadow: none;
    width: 100%;
}
.site-nav .navbar-nav { margin: 0; }
@media (min-width: 768px) {
    .site-nav .navbar-collapse {
        display: flex !important;
        flex: 1;
        width: auto;
        align-items: center;
    }
    .site-nav .navbar-nav.navbar-right { margin-left: auto; }
}
.nav-link {
    color: rgba(255,255,255,.78) !important;
    height: 72px;
    line-height: 72px;
    padding: 0 16px;
    font-size: 14px;
    text-decoration: none !important;
    white-space: nowrap;
}
.nav-link:hover { color: #fff !important; }
.site-nav .nav > li > a {
    color: rgba(255,255,255,.78) !important;
    background: none;
    border: 0;
    height: 72px;
    line-height: 72px;
    padding: 0 16px;
    font-size: 14px;
}
.site-nav .nav > li > a:hover,
.site-nav .nav > li.active > a {
    color: #fff !important;
    background: transparent !important;
}
.nav-user {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-left: auto;
    height: 72px;
    flex-shrink: 0;
}
.nav-name {
    color: rgba(255,255,255,.82);
    font-size: 14px;
    white-space: nowrap;
}
.nav-logout { margin: 0; }
.nav-logout button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 32px;
    line-height: 30px;
    padding: 0 14px;
    border: 1px solid rgba(255,255,255,.35);
    background: transparent;
    color: #fff;
    border-radius: 2px;
    font-size: 13px;
    cursor: pointer;
}
.nav-logout button:hover {
    border-color: var(--gold);
    color: var(--gold);
}
.site-nav-inner .btn-nav { margin-left: auto; }
.dropdown-menu .nav-logout button {
    height: auto;
    line-height: 1.4;
    padding: 10px 15px;
    text-align: left;
    color: #444 !important;
}

.site-content {
    padding: 36px 48px 64px !important;
    width: 100%;
}
.site-page { width: 100%; }

.page-head { margin-bottom: 28px; }
.page-head h1 {
    margin: 0 0 8px;
    font-size: 32px;
    font-weight: 700;
    color: var(--ink);
    letter-spacing: .04em;
}
.page-head p { margin: 0; color: var(--muted); font-size: 15px; }

.panel-block {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 4px;
    padding: 28px 32px;
    margin-bottom: 22px;
    box-shadow: var(--shadow);
}
.panel-head h2,
.progress-copy h2,
.panel-block h2 {
    margin: 0 0 8px;
    font-size: 20px;
    color: var(--ink);
    font-weight: 700;
}
.panel-head p,
.progress-copy p {
    margin: 0 0 18px;
    color: var(--muted);
    line-height: 1.7;
}
.kicker {
    display: inline-block;
    font-size: 12px;
    letter-spacing: .2em;
    color: var(--gold);
    font-weight: 700;
    margin-bottom: 10px;
}
.progress-block {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    background: linear-gradient(115deg, #0c2340 0%, #1a446c 100%);
    border: 0;
    color: #fff;
    position: relative;
    overflow: hidden;
}
.progress-block:after {
    content: "";
    position: absolute;
    right: -40px;
    top: -40px;
    width: 180px;
    height: 180px;
    border: 1px solid rgba(198,163,90,.25);
    transform: rotate(18deg);
}
.progress-copy h2 { color: #fff; }
.progress-copy p { color: rgba(255,255,255,.7); margin-bottom: 0; }
.progress-block form { margin: 0; flex-shrink: 0; z-index: 1; }

.form-stack { display: grid; gap: 22px; }
.chapter-select {
    width: 100%;
    min-height: 48px;
    height: auto !important;
    padding: 12px 14px;
    font-size: 15px;
    line-height: 1.5;
}
.chapter-full {
    margin: 10px 0 0;
    color: var(--ink);
    font-size: 13px;
    line-height: 1.6;
}
.field-block label,
.field span {
    display: block;
    font-size: 13px;
    color: var(--muted);
    margin-bottom: 8px;
    font-weight: 600;
    letter-spacing: .06em;
}
.paper-app .form-control {
    height: 46px;
    border-radius: 4px;
    border-color: #d5dce4;
    box-shadow: none;
}
.paper-app .form-control:focus {
    border-color: var(--gold);
    box-shadow: 0 0 0 3px rgba(198,163,90,.18);
}
.form-actions {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-top: 6px;
    flex-wrap: wrap;
}
.hint { color: var(--muted); font-size: 13px; }

.btn-main,
.btn-login,
.btn-hero {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    background: var(--ink);
    color: #fff;
    height: 46px;
    padding: 0 26px;
    border-radius: 2px;
    font-size: 15px;
    font-weight: 600;
    letter-spacing: .08em;
    cursor: pointer;
}
.btn-main:hover,
.btn-login:hover,
.btn-hero:hover { background: #163656; color: #fff; }
.btn-main-green { background: var(--green); }
.btn-main-green:hover { background: #21564d; }
.btn-ghost {
    background: transparent;
    color: var(--ink);
    border: 1px solid var(--ink);
}
.btn-ghost:hover { background: var(--ink); color: #fff; }
.btn-hero {
    background: var(--gold);
    color: var(--ink);
    height: 50px;
    min-width: 148px;
}
.btn-hero:hover { background: #d4b56c; color: var(--ink); }
.btn-hero-ghost {
    display: inline-flex;
    align-items: center;
    height: 50px;
    padding: 0 22px;
    color: rgba(255,255,255,.85) !important;
    border-bottom: 1px solid rgba(255,255,255,.35);
    text-decoration: none !important;
    letter-spacing: .08em;
}
.btn-hero-ghost:hover { color: #fff !important; border-bottom-color: var(--gold); }

.scene-grid { display: flex; flex-wrap: wrap; gap: 10px; }
.scene-grid label { margin: 0; }
.scene-grid input { display: none; }
.scene-grid span {
    display: inline-block;
    padding: 9px 16px;
    border: 1px solid var(--line);
    border-radius: 2px;
    cursor: pointer;
    background: #f7f8fa;
    font-size: 13px;
}
.scene-grid input:checked + span {
    background: var(--ink);
    color: #fff;
    border-color: var(--ink);
}

.recent-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 14px;
}
.recent-item {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 18px 20px;
    border: 1px solid var(--line);
    border-radius: 4px;
    background: #fafbfc;
    color: var(--text);
    min-height: 92px;
}
.recent-item:hover {
    border-color: var(--gold);
    text-decoration: none;
    color: var(--ink);
    background: #fff;
}
.recent-title { font-weight: 600; }
.recent-meta { color: var(--muted); font-size: 12px; }

.toolbar-print {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    margin-bottom: 18px;
}
.tb-group {
    display: flex;
    flex-wrap: wrap;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 4px;
    overflow: hidden;
}
.tb-link,
.tb-btn {
    display: inline-block;
    padding: 9px 16px;
    color: var(--text);
    background: #fff;
    border: 0;
    border-right: 1px solid var(--line);
    font-size: 13px;
    cursor: pointer;
}
.tb-group .tb-link:last-child,
.tb-group .tb-btn:last-child { border-right: 0; }
.toolbar-print > .tb-link {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 4px;
}
.tb-link:hover,
.tb-btn:hover { color: var(--ink); text-decoration: none; background: var(--paper); }
.tb-link.is-on,
.tb-btn.is-strong {
    background: var(--ink);
    color: #fff;
    border-color: var(--ink);
}

.paper-sheet {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 4px;
    padding: 40px 56px 56px;
    box-shadow: var(--shadow);
}
.paper-sheet h2 {
    text-align: center;
    font-size: 26px;
    margin: 0 0 10px;
    color: var(--ink);
    font-weight: 700;
    letter-spacing: .08em;
}
.paper-meta {
    text-align: center;
    color: var(--muted);
    margin-bottom: 32px;
    padding-bottom: 18px;
    border-bottom: 1px solid var(--gold);
}
.slot-block {
    margin: 26px 0 12px;
    font-weight: 700;
    color: var(--ink);
    font-size: 16px;
}
.q-item { margin: 16px 0 20px; line-height: 1.85; }
.q-item .ops { white-space: pre-wrap; margin: 6px 0 0 1.6em; }
.q-actions { margin-top: 10px; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.q-actions .reason {
    height: 32px;
    border: 1px solid var(--line);
    border-radius: 4px;
    padding: 0 8px;
    color: var(--muted);
}
.btn-mini {
    height: 32px;
    padding: 0 12px;
    border: 1px solid var(--line);
    background: #fff;
    border-radius: 4px;
    font-size: 12px;
    cursor: pointer;
}
.btn-mini:hover { border-color: var(--ink); color: var(--ink); }
.btn-mini-danger:hover { border-color: var(--danger); color: var(--danger); }
.answer-box {
    margin-top: 8px;
    padding: 8px 12px;
    background: #fff4f2;
    border-left: 3px solid var(--danger);
}
.answer-line { color: var(--danger); }
.q-note { color: var(--muted); font-size: 13px; }
.table-wrap { overflow-x: auto; }
.spec-table { width: 100%; border-collapse: collapse; }
.spec-table th, .spec-table td {
    border: 1px solid #d7dee6;
    padding: 10px 12px;
    font-size: 13px;
    text-align: left;
}
.spec-table th { background: #f7f8fa; color: var(--ink); }
.answer-blank {
    height: 28px;
    margin: 8px 0;
    border-bottom: 1px dashed #c5ced8;
}
.sheet-info {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
    margin: 0 0 28px;
}
.sheet-info span {
    display: block;
    padding: 8px 0;
    border-bottom: 1px solid #1f2a37;
    color: var(--muted);
    font-size: 13px;
}
.sheet-q {
    display: flex;
    gap: 12px;
    margin: 0 0 16px;
    align-items: flex-start;
}
.sheet-no {
    width: 36px;
    font-weight: 700;
    color: var(--ink);
    padding-top: 2px;
}
.sheet-body { flex: 1; min-width: 0; }
.sheet-label { color: var(--muted); font-size: 13px; margin-bottom: 4px; }
.sheet-opt { display: flex; gap: 18px; margin-top: 8px; }
.sheet-opt i {
    width: 28px;
    height: 28px;
    border: 1px solid #1f2a37;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-style: normal;
    font-size: 13px;
}
.sheet-essay {
    margin-top: 8px;
    min-height: 160px;
    border: 1px solid #d5dce4;
    background: repeating-linear-gradient(#fff, #fff 27px, #e6e6e6 28px);
}
.duplex-back { page-break-before: always; margin-top: 24px; }

/* 首页 */
.home-hero {
    min-height: calc(100vh - 72px);
    display: flex;
    align-items: center;
    background:
        radial-gradient(900px 420px at 88% 12%, rgba(198,163,90,.16), transparent 55%),
        linear-gradient(165deg, #0c2340 0%, #123252 48%, #08182c 100%);
    padding: 64px 48px 80px;
}
.home-hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(280px, 420px);
    gap: 48px 56px;
    align-items: center;
    width: 100%;
}
.home-hero-inner { max-width: none; }
.home-hero-inner .btn-hero-ghost { margin-bottom: 48px; }
.home-hero-panel { width: 100%; }
.mock-sheet {
    background: #fff;
    color: var(--ink);
    padding: 36px 32px 32px;
    border-radius: 4px;
    box-shadow: 0 24px 60px rgba(0,0,0,.22);
    border-top: 3px solid var(--gold);
}
.mock-kicker {
    margin: 0 0 10px;
    color: #8a6d2f;
    letter-spacing: .2em;
    font-size: 12px;
    font-weight: 700;
}
.mock-sheet h3 {
    margin: 0 0 20px;
    font-size: 24px;
    line-height: 1.4;
}
.mock-list {
    list-style: none;
    margin: 0 0 28px;
    padding: 0;
    color: var(--muted);
    line-height: 2;
}
.mock-list li {
    padding-left: 14px;
    border-left: 2px solid var(--gold);
    margin-bottom: 8px;
}
.home-hero-panel .btn-hero { width: 100%; }
.eyebrow {
    margin: 0 0 18px;
    color: var(--gold);
    letter-spacing: .28em;
    font-size: 12px;
    font-weight: 700;
}
.home-hero h1 {
    margin: 0 0 22px;
    font-size: 56px;
    line-height: 1.18;
    font-weight: 700;
    color: #fff;
    letter-spacing: .06em;
}
.home-hero .lead {
    max-width: 34em;
    margin: 0 0 36px;
    font-size: 17px;
    line-height: 1.9;
    color: rgba(255,255,255,.74);
}
.hero-actions {
    display: flex;
    align-items: center;
    gap: 22px;
    flex-wrap: wrap;
    margin-bottom: 56px;
}
.hero-stats {
    list-style: none;
    display: flex;
    gap: 40px;
    margin: 0;
    padding: 24px 0 0;
    border-top: 1px solid rgba(198,163,90,.28);
}
.hero-stats li { color: rgba(255,255,255,.55); font-size: 13px; }
.hero-stats b {
    display: block;
    color: #fff;
    font-size: 28px;
    letter-spacing: .04em;
    margin-bottom: 4px;
}

.home-feats {
    background: var(--paper);
    padding: 72px 48px 80px;
    color: var(--text);
}
.home-wrap { width: 100%; }
.section-kicker {
    margin: 0 0 10px;
    color: #8a6d2f;
    letter-spacing: .22em;
    font-size: 12px;
    font-weight: 700;
}
.section-title {
    margin: 0 0 36px;
    font-size: 32px;
    color: var(--ink);
    font-weight: 700;
    letter-spacing: .06em;
}
.feat-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
}
.feat-card {
    background: #fff;
    padding: 28px 26px 30px;
    border-top: 3px solid var(--gold);
    box-shadow: var(--shadow);
    min-height: 210px;
}
.feat-num {
    display: block;
    color: var(--gold);
    letter-spacing: .16em;
    font-size: 12px;
    font-weight: 700;
    margin-bottom: 16px;
}
.feat-card h3 {
    margin: 0 0 12px;
    font-size: 20px;
    color: var(--ink);
}
.feat-card p {
    margin: 0;
    color: var(--muted);
    line-height: 1.8;
}
.scene-board {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 40px;
}
.scene-board span {
    padding: 8px 14px;
    border: 1px solid rgba(12,35,64,.15);
    color: var(--ink);
    font-size: 13px;
    background: rgba(255,255,255,.55);
}
.city-line {
    margin: 28px 0 0;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.9;
}
.home-foot {
    background: #08182c;
    color: rgba(255,255,255,.4);
    padding: 22px 48px;
    font-size: 12px;
    letter-spacing: .06em;
}

.login-mask {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 2000;
    background: rgba(8, 24, 44, .58);
    align-items: center;
    justify-content: center;
    padding: 24px;
}
.login-mask.is-open { display: flex; }
.login-dialog {
    position: relative;
    width: 100%;
    max-width: 420px;
    background: #fff;
    padding: 36px 32px 28px;
    border-radius: 4px;
    box-shadow: 0 24px 80px rgba(0,0,0,.28);
    border-top: 3px solid var(--gold);
}
.login-close {
    position: absolute;
    top: 12px;
    right: 14px;
    width: 36px;
    height: 36px;
    border: 0;
    background: none;
    font-size: 26px;
    line-height: 1;
    color: #99a;
    cursor: pointer;
}
.login-dialog h2 {
    margin: 0 0 8px;
    font-size: 26px;
    color: var(--ink);
}
.login-desc { margin: 0 0 22px; color: var(--muted); }
.login-dialog .field { display: block; margin-bottom: 14px; }
.login-dialog .field input {
    width: 100%;
    height: 46px;
    border: 1px solid #d5dce4;
    border-radius: 4px;
    padding: 0 12px;
    font-size: 15px;
}
.login-dialog .field input:focus {
    outline: 0;
    border-color: var(--gold);
    box-shadow: 0 0 0 3px rgba(198,163,90,.18);
}
.login-dialog .keep {
    display: block;
    margin: 2px 0 16px;
    color: var(--muted);
    font-size: 13px;
    font-weight: 400;
}
.btn-login { width: 100%; height: 48px; background: var(--ink); }
.trial {
    margin: 16px 0 0;
    color: var(--muted);
    font-size: 12px;
}
.trial b { color: var(--ink); }
.login-dialog .alert { margin-bottom: 14px; }

body.paper-app #content-container.container {
    width: auto;
    max-width: none;
    margin: 0;
    padding: 0;
}
body.paper-app .panel {
    border: 1px solid var(--line);
    border-radius: 4px;
    box-shadow: var(--shadow);
}
body.paper-app .footer { display: none; }

@media (max-width: 991px) {
    .site-nav-inner,
    .site-content,
    .home-hero,
    .home-feats,
    .home-foot { padding-left: 20px !important; padding-right: 20px !important; }
    .home-hero { min-height: 0; padding-top: 48px; padding-bottom: 56px; }
    .home-hero-grid { grid-template-columns: 1fr; gap: 32px; }
    .home-hero h1 { font-size: 34px; }
    .nav-note { display: none; }
    .hero-stats { gap: 20px; }
    .feat-grid { grid-template-columns: 1fr; }
    .progress-block { flex-direction: column; align-items: flex-start; }
    .paper-sheet { padding: 22px 16px 28px; }
    .site-nav .navbar-collapse {
        background: #08182c;
        margin: 0 -20px;
        padding: 0 20px;
    }
    .site-nav .nav > li > a {
        height: auto;
        line-height: 44px;
        text-align: left;
    }
    .sheet-info { grid-template-columns: 1fr 1fr; }
    .nav-link { display: none; }
    .nav-user { padding: 8px 0 16px; }
}
@media print {
    nav, header, .toolbar-print, .q-actions, footer, .no-print, .login-mask { display: none !important; }
    body.paper-app { background: #fff; padding-top: 0; }
    .content, .site-content { padding: 0 !important; }
    .paper-sheet { box-shadow: none; border: 0; padding: 12mm 14mm; }
    .duplex-back { page-break-before: always; }
}
