:root {
    --ink: #2D2A24;
    --purple: #4A3A6B;
    --purple-light: #6B5A8A;
    --purple-soft: #F5F2FA;
    --gold: #D4AF37;
    --gold-light: #E8D87A;
    --gold-soft: #FDF8E6;
    --teal: #087F8C;
    --green: #2F6F4E;
    --line: #E6DFD0;
    --paper: #FFFFFF;
    --wash: #FAF7F2;
    --text-secondary: #7B6A9C;
    --text-muted: #9A8FA8;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    min-height: 100vh;
    background: var(--wash);
    color: var(--ink);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
    letter-spacing: 0;
    line-height: 1.6;
}

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

button,
input,
select,
textarea {
    font: inherit;
}

.site-shell {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: var(--wash);
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 0;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 2px 12px rgba(74, 58, 107, 0.06);
}

.site-header-inner {
    width: min(1280px, calc(100% - 48px));
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 12px;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: auto;
    flex-shrink: 0;
}

.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 8px;
    border: none;
    background: none;
    cursor: pointer;
    flex-shrink: 0;
}
.hamburger span {
    display: block;
    width: 22px;
    height: 2.5px;
    border-radius: 2px;
    background: var(--purple);
    transition: all 0.25s ease;
}
.nav-open .hamburger span:nth-child(1) {
    transform: translateY(7.5px) rotate(45deg);
}
.nav-open .hamburger span:nth-child(2) {
    opacity: 0;
}
.nav-open .hamburger span:nth-child(3) {
    transform: translateY(-7.5px) rotate(-45deg);
}

.site-brand .brand {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 0;
}

.brand-mark {
    width: 46px;
    height: 46px;
    display: inline-grid;
    place-items: center;
    background: var(--purple);
    color: #fff;
    border: 2px solid var(--gold);
    border-radius: 12px;
    font-weight: 800;
    font-size: 18px;
    overflow: hidden;
    flex: 0 0 46px;
    box-shadow: 0 4px 12px rgba(74, 58, 107, 0.15);
}

.brand-logo {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.brand strong {
    display: block;
    color: var(--purple);
    font-size: 18px;
    font-weight: 700;
}

.brand small {
    color: var(--text-secondary);
    font-size: 13px;
}

.site-nav {
    display: flex;
    flex-wrap: nowrap;
    gap: 4px;
    overflow: visible;
    align-items: center;
    flex: 1 1 auto;
    min-width: 0;
}

.site-nav a,
.auth-nav a {
    min-height: 34px;
    display: inline-flex;
    align-items: center;
    padding: 5px 10px;
    border: 1px solid transparent;
    border-radius: 8px;
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 0.75rem;
    white-space: nowrap;
    transition: all 0.2s ease;
}

.site-nav a:hover,
.auth-nav a:hover {
    background: var(--purple-soft);
    color: var(--purple);
}

.site-nav a.is-active {
    border-color: var(--gold);
    background: var(--gold-soft);
    color: var(--purple);
    font-weight: 600;
}

/* ── More Dropdown ── */
.nav-more {
    position: relative;
    flex-shrink: 0;
}
.nav-more-btn {
    min-height: 34px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 5px 10px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    color: var(--text-secondary);
    font-size: 0.75rem;
    font-weight: 500;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.2s ease;
    font-family: inherit;
}
.nav-more-btn:hover {
    background: var(--purple-soft);
    color: var(--purple);
    border-color: var(--purple);
}
.nav-more-arrow {
    font-size: 0.65rem;
    transition: transform 0.2s;
}
.nav-more.open .nav-more-arrow {
    transform: rotate(180deg);
}
.nav-more-dropdown {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 4px;
    min-width: 140px;
    padding: 8px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 12px;
    box-shadow: 0 8px 28px rgba(74, 58, 107, 0.14);
    z-index: 30;
}
.nav-more.open .nav-more-dropdown,
.nav-more:hover .nav-more-dropdown {
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.nav-more-dropdown a {
    padding: 8px 14px;
    border-radius: 8px;
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--ink);
    text-decoration: none;
    white-space: nowrap;
    transition: all 0.15s;
}
.nav-more-dropdown a:hover {
    background: var(--gold-soft);
    color: var(--purple);
}

.auth-nav {
    display: inline-flex;
    align-items: center;
    gap: 0;
    flex: 0 0 auto;
}

.auth-nav a {
    padding: 4px 8px;
    border-radius: 6px;
}

.auth-nav span {
    padding: 0 2px;
    color: #9CA3AF;
    font-size: 0.75rem;
}

.lang-toggle {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    flex: 0 0 auto;
    height: 40px;
    padding: 4px 6px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: #fff;
    color: var(--text-muted);
    box-shadow: 0 4px 16px rgba(74, 58, 107, 0.06);
}

.lang-btn {
    min-width: 42px;
    height: 30px;
    padding: 0 10px;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: var(--purple);
    cursor: pointer;
    font-weight: 700;
    transition: all 0.2s ease;
}

.lang-btn.active {
    background: var(--gold);
    color: var(--purple);
}

.site-main {
    flex: 1;
    width: 100%;
}

.site-main-inner {
    width: min(1280px, calc(100% - 48px));
    margin: 0 auto;
    padding: 56px 0 64px;
}

.site-footer {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 16px;
    padding: 20px 40px;
    border-top: 1px solid var(--line);
    background: #fff;
    color: var(--text-muted);
    font-size: 14px;
}

.page-stack {
    display: grid;
    gap: 36px;
}

.page-hero {
    display: flex;
    align-items: center;
    gap: 48px;
    padding: 56px 48px;
    border: 1px solid var(--line);
    border-radius: 24px;
    background: linear-gradient(135deg, #FFFFFF 0%, #F5F2FA 50%, #FDF8E6 100%);
    box-shadow: 0 16px 48px rgba(74, 58, 107, 0.1);
    position: relative;
    overflow: hidden;
}

.page-hero > div:first-child {
    flex: 1 1 0;
    min-width: 0;
}

.page-hero::before {
    content: "";
    position: absolute;
    top: -50%;
    right: -20%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(74, 58, 107, 0.06) 0%, transparent 70%);
    border-radius: 50%;
}

.page-hero::after {
    content: "";
    position: absolute;
    bottom: -30%;
    left: -10%;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(212, 175, 55, 0.08) 0%, transparent 70%);
    border-radius: 50%;
}

.page-hero h1 {
    margin: 0;
    color: var(--purple);
    font-size: clamp(40px, 6vw, 68px);
    line-height: 1.05;
    font-weight: 800;
    letter-spacing: -0.02em;
    position: relative;
    z-index: 1;
}

.eyebrow {
    margin: 0 0 12px;
    color: var(--gold);
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    position: relative;
    z-index: 1;
}

.hero-subtitle {
    max-width: 720px;
    margin: 20px 0 0;
    color: var(--text-secondary);
    font-size: 18px;
    line-height: 1.8;
    position: relative;
    z-index: 1;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 32px;
    position: relative;
    z-index: 1;
}

.hero-stat-grid {
    display: grid;
    gap: 14px;
    min-width: 240px;
    position: relative;
    z-index: 1;
}

.hero-stat {
    padding: 20px;
    border: 1px solid rgba(74, 58, 107, 0.12);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(8px);
    transition: all 0.2s ease;
}

.hero-stat:hover {
    border-color: rgba(212, 175, 55, 0.4);
    box-shadow: 0 8px 24px rgba(74, 58, 107, 0.08);
}

.hero-stat span {
    display: block;
    color: var(--text-muted);
    font-size: 13px;
    font-weight: 500;
}

.hero-stat strong {
    display: block;
    margin-top: 6px;
    color: var(--purple);
    font-size: 28px;
    font-weight: 700;
}

.feature-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.feature-grid > .feature-card {
    flex: 1 1 220px;
    max-width: calc(25% - 15px);
    min-width: 220px;
    box-sizing: border-box;
}

.feature-card {
    display: grid;
    gap: 16px;
    min-height: 200px;
    padding: 28px;
    border: 1px solid var(--line);
    border-radius: 20px;
    background: var(--paper);
    box-shadow: 0 4px 20px rgba(74, 58, 107, 0.06);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--gold), var(--purple));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.feature-card:hover {
    border-color: rgba(212, 175, 55, 0.6);
    transform: translateY(-4px);
    box-shadow: 0 12px 36px rgba(74, 58, 107, 0.12);
}

.feature-card:hover::before {
    opacity: 1;
}

.icon-badge {
    width: 52px;
    height: 52px;
    display: inline-grid;
    place-items: center;
    border-radius: 14px;
    background: var(--gold-soft);
    color: var(--purple);
    font-size: 24px;
    font-weight: 800;
    flex-shrink: 0;
}

.feature-card h3 {
    margin: 0;
    color: var(--purple);
    font-size: 20px;
    font-weight: 700;
}

.feature-heading {
    display: grid;
    gap: 4px;
}

.feature-subtitle {
    color: var(--gold);
    font-size: 13px;
    font-weight: 700;
}

.feature-card p {
    margin: 0;
    color: var(--text-secondary);
    line-height: 1.7;
}

.text-link,
.card-link {
    color: #D4AF37;
    font-weight: 600;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.2s;
    display: inline-block;
    margin-top: 8px;
}

.text-link:hover,
.card-link:hover {
    color: #4A3A6B;
}

.feature-card-link {
    display: grid;
    gap: 12px;
    height: 100%;
}

.tag-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: auto;
}

.tag-row span {
    background: var(--purple-soft);
    color: var(--purple);
    border-radius: 999px;
    padding: 5px 12px;
    font-size: 12px;
    font-weight: 500;
}

.focus-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(340px, 0.75fr);
    gap: 28px;
    align-items: start;
}

.soft-panel {
    padding: 32px;
    border: 1px solid var(--line);
    border-radius: 20px;
    background: var(--paper);
    box-shadow: 0 4px 20px rgba(74, 58, 107, 0.06);
}

.soft-panel h2 {
    margin: 0 0 22px;
    color: var(--purple);
    font-size: 24px;
    font-weight: 700;
}

.section-title {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 24px;
}

.section-title h2 {
    margin: 0;
    color: var(--purple);
    font-size: 28px;
    font-weight: 700;
}

.section-title p {
    max-width: 560px;
    margin: 0;
    color: var(--text-secondary);
    line-height: 1.7;
}

.solid-button,
.ghost-button {
    min-height: 44px;
    border-radius: 12px;
    padding: 10px 20px;
    border: 2px solid var(--gold);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.solid-button {
    background: var(--purple);
    color: #fff;
    border-color: var(--purple);
}

.solid-button:hover {
    background: var(--purple-light);
    border-color: var(--purple-light);
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(74, 58, 107, 0.3);
}

.solid-button:active {
    transform: translateY(0);
}

.ghost-button {
    background: #fff;
    color: var(--purple);
    border-color: var(--line);
}

.ghost-button:hover {
    background: var(--purple-soft);
    border-color: var(--purple);
}

.compact {
    min-height: 36px;
    padding: 6px 14px;
    font-size: 14px;
}

.compact-form {
    display: grid;
    gap: 20px;
}

.compact-form label {
    gap: 10px;
}

.compact-form input,
.compact-form select,
.compact-form textarea {
    min-height: 50px;
    border-radius: 12px;
}

label {
    display: grid;
    gap: 8px;
    color: var(--purple);
    font-weight: 600;
}

label span {
    font-size: 14px;
}

input,
select,
textarea {
    width: 100%;
    border: 2px solid var(--line);
    border-radius: 12px;
    background: #fff;
    color: var(--ink);
    padding: 12px 16px;
    transition: all 0.2s ease;
}

textarea {
    min-height: 140px;
    resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: var(--gold);
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.15);
}

.compact-list {
    display: grid;
    gap: 14px;
}

.compact-list div,
.compact-list a {
    display: grid;
    gap: 6px;
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: #fff;
    transition: all 0.2s ease;
}

.compact-list a:hover {
    border-color: var(--gold);
    background: var(--gold-soft);
}

.compact-list strong {
    color: var(--purple);
    font-weight: 600;
}

.compact-list span {
    color: var(--text-secondary);
    line-height: 1.6;
}

.api-preview,
.result-panel pre {
    margin: 16px 0 0;
    width: 100%;
    max-height: 560px;
    overflow: auto;
    border: 1px solid #E2DCCD;
    border-radius: 14px;
    background: #1A1724;
    color: #E8E4F0;
    padding: 20px;
    line-height: 1.6;
    white-space: pre-wrap;
    word-break: break-word;
    font-family: 'SF Mono', 'Monaco', 'Menlo', monospace;
    font-size: 14px;
}

.chip {
    display: inline-flex;
    align-items: center;
    min-height: 32px;
    padding: 6px 14px;
    border-radius: 999px;
    background: var(--purple-soft);
    color: var(--purple);
    font-size: 13px;
    font-weight: 600;
}

.chip-state {
    background: #EEF6EF;
    color: var(--green);
}

.chip-alert {
    background: #FDF0E7;
    color: #A24B15;
}

.chip-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 22px;
}

.status-chip {
    padding: 10px 16px;
    border-radius: 999px;
    border: 1px solid rgba(74, 58, 107, 0.16);
    background: rgba(255, 255, 255, 0.8);
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 500;
}

.writing-page {
    gap: 28px;
}

.writing-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.02fr) minmax(0, 0.98fr);
    gap: 28px;
}

.outline-list {
    display: grid;
    gap: 12px;
}

.outline-item {
    display: grid;
    gap: 8px;
    width: 100%;
    padding: 20px 22px;
    text-align: left;
    border: 2px solid var(--line);
    border-radius: 14px;
    background: #fff;
    color: var(--ink);
    transition: all 0.2s ease;
    cursor: pointer;
}

.outline-item:hover,
.outline-item.is-active {
    border-color: var(--gold);
    box-shadow: 0 8px 24px rgba(74, 58, 107, 0.1);
    transform: translateY(-2px);
}

.outline-item strong {
    color: var(--purple);
    font-size: 16px;
    font-weight: 600;
}

.outline-item p {
    margin: 0;
    color: var(--text-secondary);
    line-height: 1.6;
}

.empty-state {
    padding: 24px;
    border: 2px dashed rgba(74, 58, 107, 0.2);
    border-radius: 14px;
    color: var(--text-muted);
    background: #fff;
    text-align: center;
}

.selected-section {
    display: grid;
    gap: 8px;
    margin-bottom: 20px;
    padding: 20px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: var(--gold-soft);
}

.selected-section strong {
    color: var(--purple);
    font-weight: 600;
}

.selected-section p {
    margin: 0;
    color: var(--text-secondary);
}

.writing-output {
    min-height: 300px;
    margin: 0;
    white-space: pre-wrap;
    word-break: break-word;
}

.drawing-page {
    gap: 28px;
}

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

.drawing-tool-card {
    display: grid;
    gap: 12px;
    min-height: 230px;
    padding: 24px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: var(--paper);
    box-shadow: 0 14px 34px rgba(35, 27, 46, 0.07);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.drawing-tool-card:hover {
    transform: translateY(-5px);
    border-color: var(--gold);
    box-shadow: 0 20px 38px rgba(74, 58, 107, 0.16);
}

.drawing-icon {
    width: 52px;
    height: 52px;
    display: grid;
    place-items: center;
    border-radius: 14px;
    background: var(--gold-soft);
    font-size: 28px;
}

.drawing-tool-card h2 {
    margin: 0;
    color: var(--purple);
    font-size: 19px;
}

.drawing-tool-card p {
    margin: 0;
    color: var(--text-secondary);
    line-height: 1.7;
}

.drawing-card-link {
    align-self: end;
    color: var(--purple);
    font-weight: 800;
}

.drawing-capabilities {
    padding: 26px;
}

.drawing-tags span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.drawing-workspace {
    display: grid;
    grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
    gap: 24px;
    align-items: start;
}

.drawing-form,
.drawing-result-panel {
    min-width: 0;
}

.drawing-canvas {
    min-height: 330px;
    display: grid;
    place-items: center;
    overflow: auto;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: #fffdfa;
}

.drawing-canvas svg {
    width: 100%;
    min-width: 560px;
    max-height: 440px;
}

.drawing-analysis {
    max-height: 220px;
}

@media (max-width: 900px) {
    .drawing-tool-grid,
    .drawing-workspace {
        grid-template-columns: 1fr;
    }
}

.button-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
}

.field-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.profile-page {
    gap: 28px;
}

.profile-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    margin: 8px 0 28px;
}

.profile-stats div {
    padding: 20px;
    border-radius: 14px;
    background: var(--purple-soft);
    text-align: center;
}

.profile-stats strong,
.profile-stats span {
    display: block;
}

.profile-stats strong {
    color: var(--purple);
    font-size: 32px;
    font-weight: 700;
}

.profile-stats span {
    margin-top: 6px;
    color: var(--text-secondary);
    font-size: 13px;
    font-weight: 500;
}

.panel-heading {
    display: flex;
    align-items: start;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 24px;
}

.panel-heading h2 {
    margin: 0;
    color: var(--purple);
    font-size: 22px;
    font-weight: 700;
}

.table-wrap {
    overflow-x: auto;
    margin-top: 20px;
    border-radius: 14px;
    border: 1px solid var(--line);
}

table {
    width: 100%;
    min-width: 680px;
    border-collapse: collapse;
}

th,
td {
    padding: 14px 16px;
    text-align: left;
}

th {
    color: #fff;
    background: var(--purple);
    font-weight: 600;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

td {
    color: var(--ink);
    border-bottom: 1px solid var(--line);
}

tbody tr:hover {
    background: var(--gold-soft);
}

tbody tr:last-child td {
    border-bottom: none;
}

.page-hero.writing-hero {
    align-items: start;
}

.workspace-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(340px, 0.85fr);
    gap: 28px;
}

.split-layout {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 28px;
}

.panel {
    padding: 28px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: var(--paper);
    box-shadow: 0 4px 16px rgba(74, 58, 107, 0.05);
}

.panel h2 {
    margin: 0 0 16px;
    color: var(--purple);
    font-size: 20px;
    font-weight: 700;
}

.asset-list {
    display: grid;
    gap: 12px;
    margin-top: 20px;
}

.asset-list a {
    display: grid;
    gap: 6px;
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: #fff;
    transition: all 0.2s ease;
}

.asset-list a:hover {
    border-color: var(--gold);
    background: var(--gold-soft);
}

.asset-list strong {
    color: var(--purple);
    font-weight: 600;
}

.asset-list span {
    color: var(--text-secondary);
    font-size: 14px;
}

.result-head {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    align-items: center;
}

.panel-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 20px;
}

.operation-list {
    margin: 0;
    padding-left: 24px;
    display: grid;
    gap: 14px;
    color: var(--text-secondary);
    line-height: 1.7;
}

.form-two-col {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.form-message {
    min-height: 26px;
    margin: 0;
    color: var(--text-secondary);
    line-height: 1.6;
}

.form-message.is-error {
    color: #A33A3A;
}

/* ===== Survey Studio ===== */
.survey-page {
    gap: 28px;
}

.survey-hero {
    min-height: 280px;
}

.compact-hero {
    grid-template-columns: minmax(0, 1fr) auto;
    min-height: 220px;
    padding-top: 38px;
    padding-bottom: 38px;
}

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

.survey-card,
.survey-question-editor,
.survey-result-card {
    display: grid;
    gap: 14px;
    padding: 24px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: var(--paper);
    box-shadow: 0 8px 24px rgba(74, 58, 107, 0.06);
}

.survey-card {
    min-height: 250px;
}

.survey-card-top,
.survey-card-meta,
.survey-form-actions,
.survey-ai-row,
.survey-fill-progress {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.survey-card h3,
.survey-result-card h3 {
    margin: 0;
    color: var(--purple);
    font-size: 20px;
}

.survey-card p,
.survey-card-meta,
.survey-date,
.survey-share-panel p {
    margin: 0;
    color: var(--text-secondary);
}

.survey-card-meta {
    margin-top: auto;
    font-size: 13px;
}

.survey-empty {
    display: grid;
    justify-items: center;
    gap: 12px;
    min-height: 180px;
}

.survey-empty strong,
.survey-success strong,
.survey-closed strong {
    color: var(--purple);
    font-size: 20px;
}

.survey-builder-form {
    display: grid;
    gap: 22px;
}

.survey-publish-toggle {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 8px;
    color: var(--text-secondary);
    font-weight: 500;
}

.survey-publish-toggle input {
    width: 18px;
    height: 18px;
    accent-color: var(--purple);
}

.survey-ai-row {
    align-items: stretch;
    padding: 14px;
    border-radius: 14px;
    background: var(--purple-soft);
}

.survey-ai-row input {
    min-height: 42px;
    border-color: transparent;
}

.survey-question-list {
    display: grid;
    gap: 16px;
    margin-top: 18px;
}

.survey-question-editor {
    gap: 12px;
    background: #fffdfa;
}

.survey-question-editor-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.survey-question-editor-head strong {
    color: var(--gold);
    font-size: 16px;
}

.survey-form-actions {
    padding: 4px 0;
}

.survey-form-actions .form-message {
    flex: 1;
}

.survey-fill-form {
    display: grid;
    gap: 28px;
    max-width: 900px;
    margin: 0 auto;
}

.survey-fill-progress {
    color: var(--text-secondary);
    font-size: 13px;
}

.survey-fill-progress > div {
    flex: 1;
    height: 8px;
    overflow: hidden;
    border-radius: 999px;
    background: var(--purple-soft);
}

.survey-fill-progress i {
    display: block;
    width: 0;
    height: 100%;
    border-radius: inherit;
    background: var(--gold);
    transition: width 0.2s ease;
}

.survey-question {
    display: grid;
    gap: 16px;
    min-width: 0;
    padding: 0 0 24px;
    border: 0;
    border-bottom: 1px solid var(--line);
}

.survey-question legend {
    display: flex;
    align-items: start;
    gap: 10px;
    width: 100%;
    padding: 0;
    color: var(--purple);
    font-size: 17px;
    font-weight: 700;
}

.survey-question legend em {
    color: #A33A3A;
    font-style: normal;
}

.question-number {
    display: inline-grid;
    place-items: center;
    width: 28px;
    height: 28px;
    flex: 0 0 28px;
    border-radius: 50%;
    background: var(--gold-soft);
    color: var(--purple);
    font-size: 12px;
}

.survey-options,
.survey-scale {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.survey-options label,
.survey-scale label {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: #fff;
    color: var(--ink);
    font-weight: 500;
    cursor: pointer;
}

.survey-options input,
.survey-scale input {
    width: 18px;
    height: 18px;
    accent-color: var(--purple);
}

.survey-matrix {
    display: grid;
    grid-template-columns: minmax(120px, 1.4fr) repeat(auto-fit, minmax(80px, 1fr));
    align-items: center;
    overflow-x: auto;
    border: 1px solid var(--line);
    border-radius: 12px;
}

.survey-matrix > * {
    min-height: 44px;
    display: grid;
    place-items: center;
    padding: 8px;
    border-right: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    color: var(--text-secondary);
    font-size: 13px;
    text-align: center;
}

.survey-matrix strong {
    color: var(--purple);
    background: var(--purple-soft);
}

.survey-matrix label {
    display: grid;
    place-items: center;
    cursor: pointer;
}

.survey-matrix input {
    width: 17px;
    height: 17px;
    accent-color: var(--purple);
}

.survey-success,
.survey-closed {
    display: grid;
    justify-items: center;
    gap: 12px;
    padding: 64px 24px;
    text-align: center;
}

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

.survey-metrics article {
    display: grid;
    gap: 6px;
    padding: 22px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: var(--paper);
}

.survey-metrics span {
    color: var(--text-secondary);
    font-size: 13px;
}

.survey-metrics strong {
    color: var(--purple);
    font-size: 30px;
}

.survey-share-panel {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.survey-share-panel h2 {
    margin-bottom: 8px;
}

.survey-share-panel code {
    display: block;
    max-width: 760px;
    margin-top: 14px;
    overflow-wrap: anywhere;
    color: var(--purple);
    font-size: 13px;
}

.survey-share-panel img {
    width: 140px;
    height: 140px;
    padding: 8px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: #fff;
}

.survey-result-list {
    display: grid;
    gap: 16px;
}

.survey-result-card .panel-heading {
    margin-bottom: 4px;
}

.survey-bars {
    display: grid;
    gap: 12px;
    flex: 1;
}

.survey-chart-row {
    display: flex;
    align-items: center;
    gap: 28px;
}

.survey-pie {
    width: 132px;
    height: 132px;
    flex: 0 0 132px;
    border: 12px solid #fff;
    border-radius: 50%;
    box-shadow: 0 0 0 1px var(--line), 0 8px 18px rgba(74, 58, 107, 0.08);
}

.survey-bar-row {
    display: grid;
    grid-template-columns: minmax(100px, 0.3fr) minmax(0, 1fr) 32px;
    align-items: center;
    gap: 12px;
    color: var(--text-secondary);
    font-size: 13px;
}

.survey-bar-row > div {
    height: 10px;
    overflow: hidden;
    border-radius: 999px;
    background: var(--purple-soft);
}

.survey-bar-row i {
    display: block;
    min-width: 2px;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--purple), var(--gold));
}

.survey-bar-row strong {
    color: var(--purple);
    text-align: right;
}

.survey-analysis-output {
    margin: 0 0 20px;
    padding: 18px;
    border-left: 4px solid var(--gold);
    border-radius: 8px;
    background: var(--gold-soft);
    color: var(--ink);
    white-space: pre-wrap;
    line-height: 1.7;
}

@media (max-width: 1050px) {
    .focus-layout,
    .workspace-grid,
    .writing-grid,
    .split-layout {
        grid-template-columns: 1fr;
    }

    .feature-grid > .feature-card {
        max-width: calc(50% - 10px);
    }

    .survey-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 960px) {
    .site-header-inner {
        width: min(1280px, calc(100% - 32px));
    }

    .site-main-inner {
        width: min(1280px, calc(100% - 32px));
        padding-top: 32px;
    }

    .page-hero {
        flex-direction: column;
        padding: 40px 28px;
        gap: 32px;
    }

    .page-hero h1 {
        font-size: clamp(32px, 5vw, 52px);
    }

    .hero-stat-grid {
        min-width: 0;
    }
}

@media (max-width: 760px) {
    .hamburger {
        display: flex;
    }

    .site-nav {
        display: none;
    }

    .nav-open .site-nav {
        display: flex;
        flex-wrap: wrap;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: #fff;
        padding: 12px 16px;
        border-bottom: 1px solid var(--line);
        box-shadow: 0 8px 24px rgba(74, 58, 107, 0.12);
        z-index: 25;
        gap: 6px;
    }

    .site-header-inner {
        width: calc(100% - 32px);
        flex-wrap: nowrap;
    }

    .site-footer {
        padding-left: 16px;
        padding-right: 16px;
    }

    .site-nav a {
        font-size: 0.8rem;
        padding: 8px 12px;
    }

    .nav-more {
        display: none;
    }

    .feature-grid > .feature-card {
        max-width: calc(50% - 10px);
    }

    .survey-list,
    .survey-metrics {
        grid-template-columns: 1fr;
    }

    .compact-hero,
    .survey-share-panel {
        grid-template-columns: 1fr;
        flex-direction: column;
        align-items: stretch;
    }

    .survey-ai-row,
    .survey-form-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .survey-share-panel img {
        align-self: center;
    }

    .field-grid,
    .form-two-col {
        grid-template-columns: 1fr;
    }

    .section-title {
        display: grid;
    }

    .page-hero {
        padding: 28px 20px;
    }

    .survey-options,
    .survey-scale {
        grid-template-columns: 1fr;
    }

    .survey-bar-row {
        grid-template-columns: minmax(80px, 0.45fr) minmax(0, 1fr) 28px;
    }

    .survey-chart-row {
        align-items: stretch;
        flex-direction: column;
    }

    .survey-pie {
        align-self: center;
    }
}

@media (max-width: 640px) {
    .hero-stat-overlay {
        grid-template-columns: 1fr;
    }

    .header-actions {
        gap: 6px;
    }

    .hero-stat-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .hero-stat {
        padding: 14px;
    }

    .hero-stat strong {
        font-size: 20px;
    }
}

/* ===== Writing Toolbar ===== */
.writing-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 16px 0;
}

.tool-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: 8px;
    color: var(--ink);
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.tool-btn:hover {
    background: var(--purple-soft);
    border-color: var(--purple);
    color: var(--purple);
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(74, 58, 107, 0.12);
}

.tool-btn:active {
    transform: translateY(0);
}

.tool-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.tool-icon {
    font-size: 16px;
    line-height: 1;
}

.tool-label {
    font-weight: 500;
}

/* ===== Export Toolbar ===== */
.export-toolbar {
    display: flex;
    gap: 6px;
}

.mini-button {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 5px 12px;
    background: var(--wash);
    border: 1px solid var(--line);
    border-radius: 6px;
    color: var(--text-secondary);
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.mini-button:hover {
    background: var(--gold-soft);
    border-color: var(--gold);
    color: var(--purple);
}

/* ===== Editable textarea ===== */
#writing-content {
    width: 100%;
    min-height: 400px;
    padding: 20px;
    background: var(--paper);
    border: 2px solid var(--line);
    border-radius: 12px;
    font-family: 'Georgia', 'Noto Serif SC', 'SimSun', serif;
    font-size: 15px;
    line-height: 1.9;
    color: var(--ink);
    resize: vertical;
    outline: none;
    transition: border-color 0.2s ease;
}

#writing-content:focus {
    border-color: var(--purple);
    box-shadow: 0 0 0 3px rgba(74, 58, 107, 0.08);
}

#writing-content::placeholder {
    color: var(--text-muted);
    font-style: italic;
}

/* ===== Mermaid Panel ===== */
.mermaid-panel {
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 20px;
    overflow-x: auto;
}

.mermaid-panel .mermaid {
    text-align: center;
    min-height: 100px;
}

/* ===== History List ===== */
.history-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-height: 400px;
    overflow-y: auto;
}

.history-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: 8px;
    transition: all 0.2s ease;
}

.history-item:hover {
    border-color: var(--purple);
    box-shadow: 0 2px 8px rgba(74, 58, 107, 0.08);
}

.history-meta {
    flex: 1;
    min-width: 0;
}

.history-meta strong {
    display: block;
    font-size: 14px;
    color: var(--ink);
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.history-meta span {
    font-size: 12px;
    color: var(--text-muted);
}

.history-actions {
    display: flex;
    gap: 6px;
    flex-shrink: 0;
}

.empty-state {
    text-align: center;
    padding: 24px;
    color: var(--text-muted);
    font-size: 14px;
    font-style: italic;
}

/* ===== Outline Item ===== */
.outline-item {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
    padding: 12px 16px;
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: 8px;
    text-align: left;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-bottom: 8px;
    gap: 4px;
}

.outline-item:hover {
    border-color: var(--purple);
    background: var(--purple-soft);
}

.outline-item.is-active {
    border-color: var(--purple);
    background: var(--purple);
    color: #fff;
    box-shadow: 0 4px 12px rgba(74, 58, 107, 0.2);
}

.outline-item.is-active small {
    color: rgba(255, 255, 255, 0.75);
}

.outline-item strong {
    font-size: 14px;
    font-weight: 600;
}

.outline-item small {
    font-size: 12px;
    color: var(--text-muted);
    line-height: 1.4;
}


.hero-visual {
    position: relative;
    z-index: 1;
    flex: 0 0 auto;
    width: min(520px, 42vw);
    min-width: 360px;
    aspect-ratio: 1200 / 760;
    border: 1px solid rgba(230, 223, 208, 0.9);
    border-radius: 24px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 24px 56px rgba(74, 58, 107, 0.16);
}

.hero-visual img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-stat-overlay {
    position: absolute;
    left: 18px;
    right: 18px;
    bottom: 18px;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}

.hero-stat-overlay .hero-stat {
    min-width: 0;
    padding: 12px;
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(230, 223, 208, 0.9);
    box-shadow: 0 10px 24px rgba(45, 42, 36, 0.08);
    backdrop-filter: blur(10px);
}

.hero-stat-overlay .hero-stat strong {
    font-size: 24px;
}

/* ===== Auth Pages (Login / Register) ===== */
.auth-page {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: calc(100vh - 180px);
    padding: 40px 24px;
}

.auth-logo {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    margin-bottom: 24px;
}
.auth-logo .brand-mark {
    width: 56px;
    height: 56px;
    flex: 0 0 56px;
}
.auth-logo strong {
    color: var(--purple);
    font-size: 18px;
    font-weight: 700;
}

.auth-card {
    width: 100%;
    max-width: 440px;
    padding: 40px 36px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(74, 58, 107, 0.08);
}

.auth-card .eyebrow {
    margin: 0 0 8px;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--gold);
}

.auth-card h1 {
    margin: 0 0 8px;
    font-size: 24px;
    font-weight: 700;
    color: var(--purple);
}

.auth-subtitle {
    margin: 0 0 28px;
    font-size: 14px;
    color: var(--purple);
    line-height: 1.6;
}

.auth-form {
    display: grid;
    gap: 18px;
}

.auth-form label {
    display: grid;
    gap: 6px;
}

.auth-form label span {
    font-size: 13px;
    font-weight: 600;
    color: var(--ink);
}

.auth-form input {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid var(--line);
    border-radius: 10px;
    font-size: 14px;
    color: var(--ink);
    background: var(--paper);
    outline: none;
    transition: border-color 0.2s ease;
    box-sizing: border-box;
}

.auth-form input:focus {
    border-color: var(--purple);
    box-shadow: 0 0 0 3px rgba(74, 58, 107, 0.08);
}

.auth-form .solid-button {
    margin-top: 4px;
}

.auth-switch {
    margin: 24px 0 0;
    text-align: center;
    font-size: 14px;
    color: var(--text-secondary);
}

.auth-switch a {
    color: var(--purple);
    font-weight: 600;
    text-decoration: none;
}

.auth-switch a:hover {
    text-decoration: underline;
}

.auth-form .form-message {
    margin: 0;
    font-size: 13px;
}

/* ===== 学术动态板块 ===== */
.academic-news-section {
    padding: 64px 24px;
    background: #fff;
}

.academic-news-section .container {
    max-width: 1100px;
    margin: 0 auto;
}

.academic-news-section .section-header {
    text-align: center;
    margin-bottom: 40px;
}

.academic-news-section .section-header h2 {
    font-size: 28px;
    color: #4A3A6B;
    font-weight: 700;
    margin: 0 0 8px;
}

.academic-news-section .section-header .subtitle {
    color: #7B6A9C;
    font-size: 16px;
}

/* ===== 1大+3小卡片布局 ===== */
.news-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 24px;
    align-items: stretch;
}

/* --- 大卡片 --- */
.news-card.featured {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 4px 16px rgba(74, 58, 107, 0.08);
    border: 1px solid #E6DFD0;
    overflow: hidden;
    display: flex;
    transition: box-shadow 0.3s ease, border-color 0.3s ease;
}

.news-card.featured:hover {
    box-shadow: 0 8px 28px rgba(74, 58, 107, 0.14);
    border-color: #D4AF37;
}

.featured-accent {
    width: 8px;
    background: linear-gradient(180deg, #4A3A6B 0%, #6B5A8B 100%);
    flex-shrink: 0;
}

.featured-body {
    padding: 28px 32px;
    flex: 1;
}

.news-tag {
    display: inline-block;
    background: #D4AF37;
    color: #4A3A6B;
    font-size: 12px;
    font-weight: 700;
    padding: 3px 12px;
    border-radius: 4px;
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.news-card.featured h3 {
    font-size: 22px;
    font-weight: 700;
    color: #2D2A24;
    margin: 0 0 8px;
    line-height: 1.4;
    transition: color 0.2s ease;
}

.news-card.featured:hover h3 {
    color: #4A3A6B;
}

.news-card.featured .news-excerpt {
    font-size: 15px;
    color: #4B4B4B;
    line-height: 1.7;
    margin: 12px 0 16px;
    font-weight: 400;
}

.news-actions {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

/* --- 小卡片 --- */
.news-small-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.news-card.small {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(74, 58, 107, 0.08);
    border: 1px solid #E6DFD0;
    border-top: 3px solid #D4AF37;
    padding: 18px 22px;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    transition: box-shadow 0.3s ease, border-color 0.3s ease;
}

.news-card.small:hover {
    box-shadow: 0 8px 28px rgba(74, 58, 107, 0.14);
    border-color: #D4AF37;
}

.news-card.small h4 {
    font-size: 15px;
    font-weight: 600;
    color: #3D2F57;
    margin: 0 0 6px;
    line-height: 1.4;
    transition: color 0.2s ease;
}

.news-card.small:hover h4 {
    color: #D4AF37;
}

/* --- 通用元素 --- */
.news-date {
    font-size: 13px;
    color: #9A8FA8;
    font-weight: 400;
    display: block;
    margin-bottom: 8px;
}

.news-read-more {
    font-size: 14px;
    font-weight: 600;
    color: #D4AF37;
    text-decoration: none;
    transition: color 0.2s ease;
}

.news-read-more:hover {
    color: #6B5A8A;
}

/* ===== 查看全部公告 ===== */
.view-all-announcements {
    text-align: right;
    margin-top: 24px;
    padding-top: 16px;
    border-top: 1px solid #EDE7F6;
}

.view-all-link {
    color: #4A3A6B;
    font-weight: 600;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.2s ease;
}

.view-all-link:hover {
    color: #D4AF37;
}

/* ===== 响应式 ===== */
@media (max-width: 900px) {
    .news-grid {
        grid-template-columns: 1fr;
    }

    .featured-accent {
        width: 100%;
        height: 6px;
    }

    .news-card.featured {
        flex-direction: column;
    }
}

@media (max-width: 768px) {
    .academic-news-section {
        padding: 48px 16px;
    }

    .academic-news-section .section-header h2 {
        font-size: 24px;
    }

    .featured-body {
        padding: 20px 24px;
    }

    .news-card.featured h3 {
        font-size: 19px;
    }

    .news-card.featured .news-excerpt {
        font-size: 14px;
    }

    .news-card.small h4 {
        font-size: 14px;
    }

    .news-small-list {
        gap: 12px;
    }
}

@media (max-width: 480px) {
    .news-card.featured h3 {
        font-size: 17px;
    }

    .news-card.featured .news-excerpt {
        font-size: 13px;
    }

    .featured-body {
        padding: 16px 20px;
    }

    .view-all-link {
        font-size: 13px;
    }
}

/* ===== 精选期刊卡片 ===== */
.journals-section {
    padding: 60px 24px;
    max-width: 1200px;
    margin: 0 auto;
}

.journals-section .section-title {
    display: block;
    text-align: left;
    margin-bottom: 32px;
}

.journals-section .section-title h2 {
    font-size: 28px;
    font-weight: 700;
    color: #4A3A6B;
    margin: 0 0 8px 0;
}

.journals-section .section-title p {
    font-size: 14px;
    color: #7B6A9C;
    margin: 0;
    line-height: 1.6;
    max-width: 600px;
}

.journals-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 32px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.journal-card {
    display: flex;
    background: #FFFFFF;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(74, 58, 107, 0.10);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    min-width: 0;
    flex-direction: column;
    width: 100%;
    max-width: 240px;
    margin: 0 auto;
}

.journal-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(74, 58, 107, 0.15);
}

.journal-cover-link {
    display: block;
    width: 100%;
}

.journal-cover {
    width: 100%;
    aspect-ratio: 3 / 4;
    overflow: hidden;
    background: #F5F2FA;
    position: relative;
    border-radius: 8px 8px 0 0;
    flex-shrink: 0;
}

.journal-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

.journal-info {
    padding: 18px 20px 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.journal-badge {
    font-size: 20px;
    font-weight: 700;
    color: #4A3A6B;
    margin-bottom: 8px;
}

.journal-title {
    font-size: 13px;
    font-weight: 400;
    color: #7B6A9C;
    line-height: 1.4;
    margin-bottom: 16px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    flex: 1;
}

.journal-btn {
    font-size: 14px;
    font-weight: 600;
    color: #D4AF37;
    text-decoration: none;
    transition: color 0.3s ease;
    margin-top: auto;
}

.journal-btn:hover {
    color: #4A3A6B;
}

/* ===== 查看全部按钮 ===== */
.journals-footer {
    text-align: center;
    margin-top: 32px;
}

.journals-all-btn {
    display: inline-block;
    padding: 12px 36px;
    background: transparent;
    border: 2px solid #4A3A6B;
    color: #4A3A6B;
    border-radius: 30px;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

.journals-all-btn:hover {
    background: #4A3A6B;
    color: #FFFFFF;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(74, 58, 107, 0.25);
}

/* 响应式 */
@media (max-width: 1024px) {
    .journals-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 24px;
    }
}

@media (max-width: 768px) {
    .journals-grid {
        grid-template-columns: 1fr;
        max-width: 400px;
        gap: 20px;
    }
    .journals-section {
        padding: 50px 16px;
    }
}

/* ===== Navigation Dropdown Animations ===== */
.site-nav {
    display: flex;
    flex-wrap: nowrap;
    gap: 4px;
    overflow: visible;
    align-items: center;
    flex: 1 1 auto;
    min-width: 0;
    position: relative;
}

.site-nav .nav-item {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 0;
    list-style: none;
}

.site-nav .nav-link {
    min-height: 34px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 5px 10px;
    border: 1px solid transparent;
    border-radius: 8px;
    background: transparent;
    color: var(--text-secondary);
    font: inherit;
    font-weight: 500;
    font-size: 0.75rem;
    white-space: nowrap;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
}

.site-nav .nav-link:hover {
    background: var(--purple-soft);
    color: var(--purple);
}

.site-nav .nav-link.is-active,
.site-nav .nav-item.is-open .nav-link {
    border-color: var(--gold);
    background: var(--gold-soft);
    color: var(--purple);
    font-weight: 600;
}

.site-nav .nav-arrow {
    display: inline-block;
    font-size: 0.65rem;
    transition: transform 0.3s ease;
    color: inherit;
}

.site-nav .nav-arrow.open {
    transform: rotate(180deg);
}

.nav-dropdown {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    min-width: 180px;
    background: #fff;
    border: 1px solid #E0D9EB;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(74, 58, 107, 0.12);
    padding: 8px;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transform: translateY(-8px);
    transition: max-height 0.35s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.25s ease, transform 0.25s ease;
    z-index: 1000;
}

.nav-dropdown.open,
.nav-item.is-open .nav-dropdown {
    max-height: 500px;
    opacity: 1;
    transform: translateY(0);
}

.nav-dropdown li {
    list-style: none;
}

.nav-dropdown a {
    display: block;
    padding: 10px 14px;
    border-radius: 8px;
    color: #4A3A6B;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: background 0.2s, padding-left 0.3s ease;
}

.nav-dropdown a:hover {
    background: #F0EDF5;
    padding-left: 20px;
}

@media (max-width: 760px) {
    .site-nav .nav-item {
        width: 100%;
    }
    .site-nav .nav-link {
        width: 100%;
        justify-content: space-between;
    }
    .nav-dropdown {
        position: static;
        width: 100%;
        margin-top: 6px;
        box-shadow: none;
        border: none;
        background: #F8F6FB;
        transform: none;
        transition: max-height 0.35s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.25s ease;
    }
    .nav-dropdown.open {
        margin-bottom: 6px;
    }
    .nav-dropdown a:hover {
        padding-left: 14px;
    }
}
