/* 全局样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #6069ff;
    --primary-dark: #4952e3;
    --secondary: #8b5cf6;
    --accent: #48bb78;
    --bg: #f4f6fb;
    --text: #1f2937;
    --muted: #6b7280;
    --border: rgba(255, 255, 255, 0.4);
    --card-bg: rgba(255, 255, 255, 0.82);
}

body {
    font-family: 'Manrope', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
    line-height: 1.6;
    color: var(--text);
    background: radial-gradient(circle at 10% 20%, rgba(96,105,255,0.15), transparent 55%),
                radial-gradient(circle at 80% 0%, rgba(139,92,246,0.18), transparent 45%),
                var(--bg);
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
}

::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

::-webkit-scrollbar-track {
    background: rgba(96,105,255,0.08);
    border-radius: 999px;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: 999px;
}

body::before,
body::after {
    content: "";
    position: fixed;
    width: 420px;
    height: 420px;
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0.45;
    z-index: -2;
}

body::before {
    background: #d6dcff;
    top: -160px;
    left: -120px;
}

body::after {
    background: #e6d7ff;
    bottom: -200px;
    right: -120px;
}

.container {
    max-width: 1380px;
    margin: 0 auto;
    padding: 0 24px;
}

#app {
    position: relative;
    padding-bottom: 3rem;
}

/* 顶部导航栏 */
.header {
    background: linear-gradient(135deg, rgba(96, 105, 255, 0.95), rgba(139, 92, 246, 0.95));
    color: white;
    padding: 1.5rem 0 2.5rem;
    box-shadow: 0 18px 36px rgba(96, 105, 255, 0.15);
    position: relative;
    overflow: hidden;
}

.header::after {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 15% 30%, rgba(255,255,255,0.25), transparent 55%),
                radial-gradient(circle at 85% 20%, rgba(255,255,255,0.2), transparent 45%);
    pointer-events: none;
}

.header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1.5rem;
}

.branding {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.logo-img {
    height: 48px;
    width: auto;
    object-fit: contain;
    filter: brightness(0) invert(1);
    opacity: 0.95;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.logo-img:hover {
    opacity: 1;
    transform: scale(1.05);
}

.logo-text {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.logo {
    font-size: 2rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    margin: 0;
}

.tagline {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.85);
    margin: 0;
}

.nav {
    display: flex;
    gap: 0.8rem;
    background: rgba(255, 255, 255, 0.12);
    padding: 0.35rem;
    border-radius: 999px;
    backdrop-filter: blur(12px);
}

.nav button {
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.85);
    padding: 0.55rem 1.6rem;
    border-radius: 999px;
    cursor: pointer;
    font-size: 0.98rem;
    font-weight: 600;
    position: relative;
    transition: color 0.25s ease, transform 0.25s ease;
}

.nav button::after {
    content: "";
    position: absolute;
    inset: 2px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.18);
    transform: scaleX(0);
    transform-origin: center;
    transition: transform 0.25s ease;
    z-index: -1;
}

.nav button:hover {
    color: #fff;
    transform: translateY(-1px);
}

.nav button.active {
    color: #fff;
}

.nav button.active::after {
    transform: scaleX(1);
}

.header-hero {
    display: flex;
    align-items: stretch;
    justify-content: space-between;
    gap: 2.5rem;
    margin-top: 2.5rem;
    position: relative;
    z-index: 1;
}

.hero-text {
    flex: 1.15;
    display: flex;
    flex-direction: column;
    gap: 1.4rem;
}

.hero-text h2 {
    font-size: 2.4rem;
    line-height: 1.3;
    font-weight: 700;
}

.hero-text p {
    font-size: 1.05rem;
    color: rgba(255, 255, 255, 0.85);
    max-width: 520px;
}

.hero-actions {
    display: flex;
    gap: 1rem;
}

.hero-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
}

.badge {
    padding: 0.45rem 0.9rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.18);
    color: #fff;
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 0.02em;
}

.hero-stats {
    flex: 0.85;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
}

.stat-card {
    background: rgba(255, 255, 255, 0.12);
    border-radius: 18px;
    padding: 1.4rem 1.2rem;
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    box-shadow: 0 18px 32px rgba(0, 0, 0, 0.08);
}

.stat-title {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.75);
}

.stat-value {
    font-size: 2rem;
    font-weight: 700;
}

.stat-desc {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.75);
}

/* 主内容区 */
.main {
    min-height: calc(100vh - 180px);
    padding: 3rem 0 0;
}

.panel {
    background: var(--card-bg);
    border-radius: 18px;
    padding: 2.4rem;
    box-shadow: 0 24px 48px rgba(96, 105, 255, 0.08);
    backdrop-filter: blur(14px);
    border: 1px solid rgba(255, 255, 255, 0.45);
}

/* 撰写流程视图 */
.writing-view {
    display: flex;
    gap: 2.4rem;
}

.sidebar {
    width: 300px;
    border-right: 1px solid rgba(96,105,255,0.12);
    padding-right: 2.4rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.sidebar h2 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    color: var(--primary);
    font-weight: 700;
}

.section-nav {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.section-nav li {
    padding: 0.9rem 1.1rem;
    border-radius: 12px;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
    font-size: 0.96rem;
    background: rgba(96,105,255,0.06);
    color: var(--text);
    border: 1px solid transparent;
    box-shadow: 0 10px 20px rgba(96,105,255,0.08);
}

.section-nav li:hover {
    transform: translateX(4px);
    box-shadow: 0 16px 24px rgba(96,105,255,0.12);
    background: rgba(96,105,255,0.12);
}

.sidebar-actions {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.sidebar-actions .btn {
    width: 100%;
}

.btn {
    padding: 0.75rem 1.4rem;
    border: none;
    border-radius: 14px;
    cursor: pointer;
    font-size: 0.96rem;
    font-weight: 600;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    position: relative;
    overflow: hidden;
    box-shadow: 0 16px 32px rgba(96, 105, 255, 0.16);
}

.btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 20px 36px rgba(96, 105, 255, 0.2);
}

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

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: #fff;
}

.btn-success {
    background: linear-gradient(135deg, #22c55e, #16a34a);
    color: #fff;
}

.btn-secondary {
    background: linear-gradient(135deg, #94a3b8, #64748b);
    color: #fff;
}

.btn-ghost {
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    box-shadow: none;
    border: 1px solid rgba(255, 255, 255, 0.35);
}

.btn-ghost:hover {
    background: rgba(255, 255, 255, 0.2);
    box-shadow: none;
}

.btn-glow {
    background: linear-gradient(135deg, #fcd34d, #f97316);
    color: #1f2937;
    box-shadow: 0 18px 30px rgba(249, 115, 22, 0.4);
}

.btn-glow:hover {
    box-shadow: 0 24px 36px rgba(249, 115, 22, 0.45);
}

.btn-sm {
    padding: 0.45rem 0.9rem;
    font-size: 0.85rem;
    border-radius: 10px;
    box-shadow: none;
}

.btn-sm:hover {
    box-shadow: none;
}

.content-area {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 1.8rem;
}

.care-progress-card {
    background: rgba(96, 105, 255, 0.08);
    border-radius: 20px;
    padding: 1.6rem 1.8rem;
    border: 1px solid rgba(96, 105, 255, 0.12);
    box-shadow: 0 12px 26px rgba(96, 105, 255, 0.08);
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.progress-header {
    display: flex;
    justify-content: space-between;
    gap: 1.4rem;
    align-items: center;
    flex-wrap: wrap;
}

.progress-info h3 {
    font-size: 1.2rem;
    margin-bottom: 0.4rem;
    color: var(--primary);
}

.progress-info p {
    margin: 0;
    color: var(--muted);
    font-size: 0.95rem;
}

.progress-meter {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.meter-bar {
    width: 180px;
    height: 10px;
    background: rgba(96, 105, 255, 0.15);
    border-radius: 999px;
    overflow: hidden;
    position: relative;
}

.meter-bar span {
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(96,105,255,0.9), rgba(72,187,120,0.9));
    border-radius: 999px;
}

.meter-value {
    font-weight: 700;
    color: var(--primary);
}

.progress-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.progress-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.65rem 1rem;
    border-radius: 14px;
    border: 1px solid rgba(96, 105, 255, 0.18);
    background: rgba(255, 255, 255, 0.9);
    color: var(--text);
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
    font-size: 0.9rem;
}

.progress-chip .chip-icon {
    font-size: 1.1rem;
}

.progress-chip .chip-title {
    font-weight: 600;
}

.progress-chip .chip-progress {
    font-size: 0.8rem;
    color: var(--muted);
}

.progress-chip:hover,
.progress-chip.active {
    transform: translateY(-2px);
    box-shadow: 0 10px 18px rgba(96, 105, 255, 0.18);
}

.progress-chip.status-pass {
    border-color: rgba(72, 187, 120, 0.45);
    background: rgba(72, 187, 120, 0.15);
}

.progress-chip.status-warn {
    border-color: rgba(251, 191, 36, 0.55);
    background: rgba(251, 191, 36, 0.18);
}

.progress-chip.status-fail {
    border-color: rgba(239, 68, 68, 0.55);
    background: rgba(239, 68, 68, 0.18);
}

.progress-chip.status-pending {
    border-color: rgba(148, 163, 184, 0.4);
    background: rgba(148, 163, 184, 0.16);
}

.progress-chip.optional {
    border-style: dashed;
}

.progress-chip.status-optional {
    border-color: rgba(107, 114, 128, 0.35);
    background: rgba(107, 114, 128, 0.15);
}

.section-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: stretch;
    margin-bottom: 1.2rem;
}

.section-meta .meta-item {
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 14px;
    padding: 0.9rem 1.1rem;
    min-width: 160px;
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.meta-label {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--muted);
}

.meta-value {
    font-weight: 700;
    font-size: 1.15rem;
    color: var(--text);
}

.meta-hint {
    font-size: 0.8rem;
    color: var(--muted);
}

.meta-status {
    margin-left: auto;
    padding: 0.9rem 1.1rem;
    border-radius: 14px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    border: 1px solid transparent;
}

.meta-status .status-icon {
    font-size: 1.1rem;
}

.meta-status.status-pass {
    background: rgba(72, 187, 120, 0.18);
    color: #166534;
    border-color: rgba(72, 187, 120, 0.35);
}

.meta-status.status-warn {
    background: rgba(251, 191, 36, 0.2);
    color: #92400e;
    border-color: rgba(251, 191, 36, 0.4);
}

.meta-status.status-fail {
    background: rgba(239, 68, 68, 0.18);
    color: #991b1b;
    border-color: rgba(239, 68, 68, 0.4);
}

.meta-status.status-pending {
    background: rgba(148, 163, 184, 0.18);
    color: #334155;
    border-color: rgba(148, 163, 184, 0.35);
}

.meta-status.status-optional {
    background: rgba(107, 114, 128, 0.1);
    color: #4b5563;
    border-color: rgba(107, 114, 128, 0.25);
}

.guideline-focus,
.section-checklist {
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(96, 105, 255, 0.16);
    border-radius: 16px;
    padding: 1.2rem 1.4rem;
    margin-top: 1.2rem;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.guideline-focus h3,
.section-checklist h3 {
    font-size: 1.05rem;
    color: var(--primary);
    margin: 0;
}

.guideline-focus ul,
.section-checklist ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.guideline-focus li {
    color: var(--muted);
    line-height: 1.5;
    padding-left: 1.2rem;
    position: relative;
}

.guideline-focus li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--primary);
}

.checklist-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
    color: var(--text);
}

.checklist-item {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    color: var(--muted);
    line-height: 1.5;
}

.checklist-item input {
    width: 1rem;
    height: 1rem;
    accent-color: var(--primary);
}

.section-diagnostics {
    margin-top: 1.2rem;
    border-radius: 16px;
    padding: 1.1rem 1.3rem;
    border-left: 4px solid rgba(96, 105, 255, 0.35);
    background: rgba(96, 105, 255, 0.08);
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.section-diagnostics h3 {
    margin: 0;
    font-size: 1.05rem;
    color: var(--text);
}

.section-diagnostics ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.diagnostic-item {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 0.95rem;
    color: var(--muted);
}

.diagnostic-item.level-error {
    color: #b91c1c;
}

.diagnostic-item.level-warn {
    color: #b45309;
}

.section-diagnostics.success {
    background: rgba(72, 187, 120, 0.15);
    border-left-color: rgba(72, 187, 120, 0.6);
    color: #166534;
    font-weight: 600;
}

.section-diagnostics.neutral {
    background: rgba(148, 163, 184, 0.15);
    border-left-color: rgba(148, 163, 184, 0.45);
    color: #334155;
}

.section-diagnostics .issue-icon {
    font-size: 1.1rem;
}

.section-editor h2 {
    font-size: 1.6rem;
    margin-bottom: 0.75rem;
    color: var(--text);
    font-weight: 700;
}

.section-description {
    color: var(--muted);
    margin-bottom: 1.4rem;
    font-size: 0.96rem;
}

.editor-wrapper {
    margin-bottom: 1.8rem;
}

.editor {
    width: 100%;
    min-height: 420px;
    padding: 1.2rem 1.3rem;
    border: 1px solid rgba(96,105,255,0.16);
    border-radius: 16px;
    font-size: 1rem;
    font-family: inherit;
    line-height: 1.7;
    resize: vertical;
    background: rgba(255, 255, 255, 0.9);
    box-shadow: inset 0 1px 2px rgba(15, 23, 42, 0.08);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.editor:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(96, 105, 255, 0.18);
}

.abstract-helper {
    background: rgba(96, 105, 255, 0.08);
    border: 1px solid rgba(96, 105, 255, 0.14);
    border-radius: 18px;
    padding: 1.4rem;
    margin-bottom: 1.6rem;
    backdrop-filter: blur(6px);
}

.abstract-helper h3 {
    font-size: 1.2rem;
    margin-bottom: 0.6rem;
    color: var(--primary);
}

.helper-description {
    color: var(--muted);
    font-size: 0.92rem;
    margin-bottom: 1rem;
    line-height: 1.5;
}

.abstract-grid {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.abstract-field {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.abstract-field label {
    font-weight: 600;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--text);
}

.abstract-field textarea {
    min-height: 110px;
    padding: 0.85rem 1rem;
    border-radius: 12px;
    border: 1px solid rgba(96, 105, 255, 0.16);
    background: rgba(255, 255, 255, 0.95);
    resize: vertical;
    font-family: inherit;
    font-size: 0.96rem;
    line-height: 1.6;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.abstract-field textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(96, 105, 255, 0.18);
}

.abstract-field.full-width {
    grid-column: 1 / -1;
}

.word-hint {
    font-size: 0.85rem;
    color: var(--muted);
    font-weight: 400;
}

.keyword-helper {
    background: rgba(20, 184, 166, 0.08);
    border: 1px solid rgba(20, 184, 166, 0.18);
    border-radius: 18px;
    padding: 1.4rem;
    margin-bottom: 1.6rem;
    backdrop-filter: blur(6px);
}

.keyword-helper h3 {
    font-size: 1.15rem;
    color: #0f766e;
    margin-bottom: 0.75rem;
}

.keyword-status {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    align-items: center;
    font-size: 0.95rem;
    margin-bottom: 0.75rem;
}

.keyword-status span {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.keyword-status .status-alert {
    color: #b45309;
    font-weight: 600;
    background: rgba(250, 204, 21, 0.18);
    padding: 0.25rem 0.65rem;
    border-radius: 999px;
}

.keyword-status .status-ok {
    color: #166534;
    font-weight: 600;
    background: rgba(134, 239, 172, 0.25);
    padding: 0.25rem 0.65rem;
    border-radius: 999px;
}

.keyword-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}

.keyword-chip {
    padding: 0.35rem 0.75rem;
    border-radius: 999px;
    background: rgba(20, 184, 166, 0.16);
    color: #0f766e;
    font-size: 0.88rem;
    font-weight: 600;
}

.writing-tips {
    background: rgba(96, 105, 255, 0.1);
    border-left: 4px solid rgba(96,105,255,0.6);
    padding: 1.2rem 1.6rem;
    border-radius: 14px;
    backdrop-filter: blur(6px);
}

.writing-tips h3 {
    font-size: 1.15rem;
    margin-bottom: 0.9rem;
    color: var(--primary);
}

.writing-tips ul {
    list-style: none;
    padding-left: 0;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.writing-tips li {
    padding-left: 1.4rem;
    position: relative;
    color: var(--muted);
}

.writing-tips li:before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.55rem;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--primary);
    box-shadow: 0 0 0 3px rgba(96,105,255,0.18);
}

/* 时间线工具 */
.timeline-tool {
    background: rgba(148, 163, 255, 0.12);
    border-left: 4px solid rgba(96,105,255,0.45);
    padding: 1.2rem 1.6rem;
    border-radius: 14px;
    margin-top: 1rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.timeline-tool h3 {
    font-size: 1.15rem;
    color: var(--text);
    margin: 0;
}

.timeline-form {
    display: flex;
    gap: 0.7rem;
    flex-wrap: wrap;
}

.timeline-form .filter-input {
    min-width: 160px;
}

.welcome-screen {
    text-align: center;
    padding: 4rem 2rem;
    color: var(--muted);
}

.welcome-screen h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: var(--text);
}

/* 写作指导视图 */
.guide-view {
    display: flex;
    flex-direction: column;
    gap: 2.2rem;
}

.guide-view h2 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    color: var(--primary);
    font-weight: 700;
}

.guide-content {
    display: flex;
    flex-direction: column;
    gap: 1.8rem;
}

.guide-section {
    border: 1px solid rgba(96,105,255,0.12);
    padding: 1.6rem;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.75);
    box-shadow: 0 20px 32px rgba(15, 23, 42, 0.06);
}

.guide-section h3 {
    font-size: 1.35rem;
    margin-bottom: 1rem;
    color: var(--text);
    font-weight: 600;
}

.guide-body ul {
    list-style: none;
    padding-left: 0;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.guide-body li {
    padding-left: 1.6rem;
    position: relative;
    color: var(--muted);
}

.guide-body li:before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.55rem;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 0 3px rgba(72, 187, 120, 0.2);
}

.guide-body pre {
    background: rgba(15, 23, 42, 0.85);
    color: rgba(255,255,255,0.92);
    padding: 1.2rem;
    border-radius: 14px;
    overflow-x: auto;
    border: 1px solid rgba(255,255,255,0.12);
    box-shadow: inset 0 1px 2px rgba(15,23,42,0.35);
}

.guide-body code {
    font-family: 'Fira Code', 'Courier New', monospace;
    font-size: 0.88rem;
}

.guide-body p {
    margin-bottom: 0.9rem;
    line-height: 1.8;
    color: var(--muted);
}

/* 期刊选择视图 */
.journals-view {
    display: flex;
    flex-direction: column;
    gap: 1.8rem;
}

.journals-view h2 {
    font-size: 2rem;
    color: var(--primary);
    font-weight: 700;
}

.filter-bar {
    display: flex;
    gap: 1rem;
    margin-bottom: 0.5rem;
    flex-wrap: wrap;
}

.filter-input,
.filter-select {
    padding: 0.75rem 1.1rem;
    border: 1px solid rgba(96,105,255,0.18);
    border-radius: 12px;
    font-size: 0.95rem;
    background: rgba(255, 255, 255, 0.85);
    color: var(--text);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.filter-input:focus,
.filter-select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(96,105,255,0.18);
}

.filter-input {
    flex: 1;
    min-width: 200px;
}

.filter-select {
    min-width: 150px;
}

.journals-table {
    overflow-x: auto;
}

.journals-table table {
    width: 100%;
    border-collapse: collapse;
    border-radius: 16px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 24px 36px rgba(15, 23, 42, 0.08);
}

.journals-table th,
.journals-table td {
    padding: 1rem 1.2rem;
    text-align: left;
    border-bottom: 1px solid rgba(96,105,255,0.1);
    color: var(--text);
}

.journals-table th {
    background: rgba(96,105,255,0.12);
    font-weight: 600;
    color: var(--text);
    position: sticky;
    top: 0;
    backdrop-filter: blur(6px);
}

.journals-table tr:hover {
    background: rgba(96,105,255,0.08);
}

.journals-table a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
}

.journals-table a:hover {
    text-decoration: underline;
}

/* 底部 */
.footer {
    background: linear-gradient(135deg, rgba(31,41,55,0.92), rgba(55,65,81,0.92));
    color: white;
    text-align: center;
    padding: 2rem 0;
    margin-top: 4rem;
    border-top: 1px solid rgba(255,255,255,0.1);
    box-shadow: 0 -12px 24px rgba(15,23,42,0.18);
}

.footer p {
    margin: 0;
    font-size: 0.95rem;
    letter-spacing: 0.02em;
}

/* 价值评估视图 */
.evaluation-view h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: var(--primary);
    font-weight: 700;
}

.intro-text {
    color: var(--muted);
    margin-bottom: 2rem;
    font-size: 1rem;
}

.evaluation-tool {
    background: rgba(148, 163, 255, 0.14);
    border-radius: 18px;
    padding: 2.2rem;
    margin-bottom: 3rem;
    border: 1px solid rgba(96,105,255,0.18);
    box-shadow: 0 24px 36px rgba(96,105,255,0.12);
}

.evaluation-tool h3 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: var(--text);
    font-weight: 600;
}

.evaluation-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.eval-item {
    background: rgba(255, 255, 255, 0.95);
    padding: 1.4rem 1.6rem;
    border-radius: 16px;
    border: 1px solid rgba(96,105,255,0.16);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    box-shadow: 0 16px 30px rgba(96,105,255,0.08);
}

.eval-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 22px 36px rgba(96,105,255,0.16);
    border-color: rgba(96,105,255,0.4);
}

.eval-item label {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 0.6rem;
    gap: 0.8rem;
}

.eval-item input[type="checkbox"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
    accent-color: var(--primary);
}

.criterion-label {
    flex: 1;
}

.criterion-score {
    color: var(--primary);
    font-weight: 700;
    margin-left: 0.2rem;
}

.criterion-desc {
    color: var(--muted);
    font-size: 0.92rem;
    margin: 0.5rem 0 0 2.8rem;
    line-height: 1.6;
}

.score-result {
    margin-top: 1.8rem;
    padding-top: 1.6rem;
    border-top: 1px solid rgba(96,105,255,0.16);
}

.score-display {
    text-align: center;
}

.score-display h4 {
    font-size: 1.4rem;
    margin-bottom: 1rem;
    color: var(--text);
}

.score-value {
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--primary);
    margin: 0 0.5rem;
}

.score-bar {
    width: 100%;
    height: 30px;
    background: rgba(96,105,255,0.15);
    border-radius: 18px;
    overflow: hidden;
    margin: 1rem 0;
}

.score-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary) 0%, var(--secondary) 100%);
    transition: width 0.5s ease;
    border-radius: 18px;
}

.score-recommendation {
    font-size: 1.05rem;
    font-weight: 500;
    margin-top: 1rem;
    padding: 1.1rem 1.3rem;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 14px;
    border-left: 4px solid var(--primary);
    color: var(--text);
}

.evaluation-section {
    margin-bottom: 3rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid rgba(96,105,255,0.16);
}

.evaluation-section:last-child {
    border-bottom: none;
}

.evaluation-section h3 {
    font-size: 1.6rem;
    margin-bottom: 1.5rem;
    color: var(--text);
    border-left: 4px solid var(--primary);
    padding-left: 1rem;
}

.self-check-section {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    padding: 1.6rem 1.8rem;
    box-shadow: 0 20px 32px rgba(15, 23, 42, 0.08);
    border: 1px solid rgba(148, 163, 184, 0.2);
}

.self-check-header {
    display: flex;
    align-items: center;
    gap: 1.4rem;
    margin-bottom: 1.4rem;
    flex-wrap: wrap;
}

.self-check-progress {
    --percent: 0;
    width: 90px;
    height: 90px;
    border-radius: 50%;
    background: conic-gradient(var(--primary) calc(var(--percent) * 1%), rgba(96,105,255,0.1) 0);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    font-weight: 700;
    color: var(--primary);
}

.self-check-progress::after {
    content: attr(data-label);
    position: absolute;
    inset: 12px;
    background: rgba(255,255,255,0.95);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    color: var(--primary);
    font-weight: 700;
}

.self-check-header p {
    margin: 0;
    color: var(--muted);
    flex: 1;
    font-size: 0.95rem;
}

.self-checklist {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.self-check-item {
    display: flex;
    gap: 0.8rem;
    align-items: flex-start;
    padding: 0.9rem 1rem;
    border-radius: 14px;
    border: 1px solid rgba(148, 163, 184, 0.3);
    background: rgba(248, 250, 252, 0.9);
}

.self-check-item input {
    width: 1.1rem;
    height: 1.1rem;
    margin-top: 0.15rem;
    accent-color: var(--primary);
}

.self-check-text {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.self-check-title {
    font-weight: 600;
    color: var(--text);
    line-height: 1.4;
}

.self-check-hint {
    font-size: 0.85rem;
    color: var(--muted);
}

/* 使用手册视图 */
.manual-view {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.manual-view h2 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    color: var(--primary);
    font-weight: 700;
}

.manual-content {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
}

.manual-section {
    background: rgba(255, 255, 255, 0.85);
    border: 1px solid rgba(96, 105, 255, 0.12);
    border-radius: 20px;
    padding: 2rem 2.4rem;
    box-shadow: 0 20px 32px rgba(15, 23, 42, 0.08);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.manual-section:hover {
    transform: translateY(-2px);
    box-shadow: 0 24px 40px rgba(96, 105, 255, 0.12);
}

.manual-section h3 {
    font-size: 1.5rem;
    margin-bottom: 1.2rem;
    color: var(--primary);
    font-weight: 700;
    border-left: 4px solid var(--primary);
    padding-left: 1rem;
}

.manual-body {
    color: var(--text);
    line-height: 1.8;
}

.manual-body p {
    margin-bottom: 1rem;
    color: var(--muted);
}

.manual-body ul {
    margin: 1rem 0;
    padding-left: 1.8rem;
}

.manual-body li {
    margin-bottom: 0.6rem;
    color: var(--muted);
    line-height: 1.7;
}

.feature-list {
    margin-top: 1.2rem;
}

.feature-item {
    background: rgba(96, 105, 255, 0.06);
    border-radius: 14px;
    padding: 1.2rem 1.4rem;
    margin-top: 1rem;
}

.feature-item ul {
    margin-top: 0.8rem;
}

.step-item,
.module-item,
.tip-item,
.faq-item,
.notice-item {
    background: rgba(255, 255, 255, 0.9);
    border-left: 3px solid var(--primary);
    border-radius: 12px;
    padding: 1.2rem 1.4rem;
    margin-bottom: 1.2rem;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.step-item:hover,
.module-item:hover,
.tip-item:hover,
.faq-item:hover,
.notice-item:hover {
    transform: translateX(4px);
    box-shadow: 0 12px 24px rgba(96, 105, 255, 0.1);
}

.step-item h4,
.module-item h4,
.tip-item h4,
.faq-item h4,
.notice-item h4 {
    font-size: 1.1rem;
    margin-bottom: 0.6rem;
    color: var(--text);
    font-weight: 600;
}

.step-item p,
.module-item p,
.tip-item p,
.faq-item p {
    margin-bottom: 0.8rem;
    color: var(--muted);
}

.module-item ul {
    margin-top: 0.8rem;
}

.module-item li {
    margin-bottom: 0.5rem;
}

.faq-item h4 {
    color: var(--primary);
}

.faq-item strong {
    color: var(--text);
    font-weight: 600;
}

.notice-item {
    border-left-color: rgba(251, 191, 36, 0.6);
    background: rgba(251, 191, 36, 0.08);
}

.notice-item h4 {
    color: #b45309;
}

.version-info {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(96, 105, 255, 0.12);
    font-size: 0.9rem;
    color: var(--muted);
    font-style: italic;
}

.title-pattern {
    background: rgba(255,255,255,0.92);
    padding: 1.6rem;
    border-radius: 16px;
    margin: 1.2rem 0;
    border-left: 4px solid var(--primary);
    font-size: 1.05rem;
    line-height: 1.7;
    box-shadow: 0 20px 32px rgba(96,105,255,0.12);
}

.title-pattern ul {
    margin-top: 0.8rem;
    padding-left: 1.3rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.title-pattern li {
    list-style: disc;
}

.title-examples {
    margin: 1.8rem 0;
}

.title-examples h4 {
    font-size: 1.15rem;
    margin-bottom: 0.9rem;
    color: var(--text);
}

.title-examples ul {
    list-style: none;
    padding-left: 0;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.title-examples li {
    padding: 0.9rem 1.1rem;
    background: rgba(96,105,255,0.08);
    border-left: 3px solid var(--accent);
    border-radius: 12px;
    font-family: 'Fira Code', 'Courier New', monospace;
    font-size: 0.94rem;
    color: var(--text);
    box-shadow: 0 12px 22px rgba(15,23,42,0.08);
}

.keywords-section {
    margin: 1.6rem 0;
}

.keywords-section h4 {
    font-size: 1.1rem;
    margin-bottom: 1rem;
    color: var(--text);
}

.keyword-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
}

.keyword-tag {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    padding: 0.45rem 0.9rem;
    border-radius: 999px;
    font-size: 0.82rem;
    font-weight: 500;
    box-shadow: 0 12px 24px rgba(96,105,255,0.18);
}

.title-patterns-table {
    margin: 1.6rem 0;
}

.title-patterns-table h4 {
    font-size: 1.1rem;
    margin-bottom: 1rem;
    color: var(--text);
}

.title-patterns-table table {
    width: 100%;
    border-collapse: collapse;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 24px 32px rgba(15, 23, 42, 0.1);
}

.title-patterns-table th,
.title-patterns-table td {
    padding: 1rem 1.2rem;
    text-align: left;
    border-bottom: 1px solid rgba(96,105,255,0.12);
}

.title-patterns-table th {
    background: rgba(96,105,255,0.12);
    color: var(--text);
    font-weight: 600;
}

.title-patterns-table tr:hover {
    background: rgba(96,105,255,0.08);
}

.timeline-scroll {
    max-height: 220px;
    overflow-y: auto;
    border-radius: 14px;
    border: 1px solid rgba(96,105,255,0.2);
    background: rgba(255,255,255,0.9);
}

.timeline-scroll table {
    margin: 0;
}

.feature-list {
    display: flex;
    flex-direction: column;
    gap: 1.6rem;
}

.feature-item {
    display: flex;
    gap: 1.5rem;
    background: rgba(255,255,255,0.92);
    padding: 1.6rem;
    border-radius: 16px;
    border-left: 4px solid var(--primary);
    box-shadow: 0 20px 32px rgba(96,105,255,0.12);
    backdrop-filter: blur(4px);
}

.feature-number {
    font-size: 2.1rem;
    flex-shrink: 0;
    color: var(--primary);
}

.feature-content {
    flex: 1;
}

.feature-content h4 {
    font-size: 1.25rem;
    margin-bottom: 0.8rem;
    color: var(--text);
}

.feature-examples {
    color: var(--muted);
    margin-bottom: 0.8rem;
    line-height: 1.65;
}

.feature-reason {
    color: var(--primary);
    font-weight: 600;
    margin-top: 0.5rem;
}

.evaluation-table-wrapper {
    overflow-x: auto;
    margin-top: 1.5rem;
}

.evaluation-table {
    width: 100%;
    border-collapse: collapse;
    background: rgba(255,255,255,0.95);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 24px 36px rgba(15, 23, 42, 0.08);
}

.evaluation-table th,
.evaluation-table td {
    padding: 1rem 1.1rem;
    text-align: left;
    border-bottom: 1px solid rgba(96,105,255,0.1);
}

.evaluation-table th {
    background: rgba(96,105,255,0.12);
    color: var(--text);
    font-weight: 600;
}

.evaluation-table tr:hover {
    background: rgba(96,105,255,0.08);
}

.value-stars {
    color: #fbbf24;
    font-size: 1.2rem;
    font-weight: 600;
}

.journal-distribution {
    list-style: none;
    padding-left: 0;
    margin-top: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.9rem;
}

.journal-distribution li {
    padding: 1.1rem 1.4rem;
    background: rgba(72,187,120,0.12);
    border-left: 4px solid var(--accent);
    border-radius: 14px;
    line-height: 1.65;
    color: var(--muted);
}

.journal-distribution li strong {
    color: var(--primary);
}

/* 模板库视图 */
.templates-view {
    display: flex;
    flex-direction: column;
    gap: 1.6rem;
}

.templates-view h2 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    color: var(--primary);
    font-weight: 700;
}

.loading, .no-results {
    text-align: center;
    padding: 3rem;
    color: var(--muted);
    font-size: 1.05rem;
}
.template-groups {
    display: flex;
    flex-direction: column;
    gap: 1.6rem;
    margin-top: 1.6rem;
}
.template-category-group {
    background: rgba(255, 255, 255, 0.78);
    border: 1px solid rgba(96,105,255,0.16);
    border-radius: 24px;
    padding: 1.2rem 1.4rem 1.4rem;
    box-shadow: 0 24px 40px rgba(15, 23, 42, 0.08);
    backdrop-filter: blur(8px);
    display: flex;
    flex-direction: column;
    gap: 1.4rem;
}
.template-group-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 1rem 1.25rem;
    border: none;
    border-radius: 16px;
    background: rgba(96,105,255,0.12);
    color: var(--text);
    font-weight: 600;
    cursor: pointer;
    transition: background 0.25s ease, box-shadow 0.25s ease, transform 0.2s ease;
}
.template-group-header:hover {
    background: rgba(96,105,255,0.18);
    box-shadow: 0 16px 32px rgba(96,105,255,0.18);
    transform: translateY(-1px);
}
.template-group-header:focus-visible {
    outline: 3px solid rgba(96,105,255,0.35);
    outline-offset: 3px;
}
.template-group-info {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    align-items: flex-start;
}
.template-group-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text);
}
.template-group-count {
    font-size: 0.9rem;
    color: var(--muted);
}
.template-group-toggle {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(96,105,255,0.2);
    color: var(--primary);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
    transition: transform 0.2s ease, background 0.2s ease;
}
.template-group-toggle::before {
    content: "\25BC";
}
.template-group-toggle.expanded {
    transform: rotate(180deg);
}
.collapse-enter-active,
.collapse-leave-active {
    transition: opacity 0.25s ease, transform 0.25s ease;
}
.collapse-enter-from,
.collapse-leave-to {
    opacity: 0;
    transform: translateY(-10px);
}

.templates-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1.8rem;
    margin-top: 2rem;
}

.template-card {
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(96,105,255,0.14);
    border-radius: 20px;
    padding: 1.8rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 24px 36px rgba(15, 23, 42, 0.1);
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.template-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 32px 48px rgba(96,105,255,0.18);
}

.template-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 0.8rem;
}

.template-header h3 {
    font-size: 1.2rem;
    color: var(--text);
    margin: 0;
    flex: 1;
}

.template-category {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    padding: 0.35rem 0.9rem;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 600;
    white-space: nowrap;
}

.template-description {
    color: var(--muted);
    font-size: 0.96rem;
    line-height: 1.7;
    min-height: 3.6em;
}

.template-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.7rem;
    font-size: 0.85rem;
    color: var(--muted);
}

.meta-item {
    padding: 0.35rem 0.7rem;
    background: rgba(96,105,255,0.08);
    border-radius: 12px;
    border: 1px solid rgba(96,105,255,0.16);
}

.template-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tag {
    background: rgba(96,105,255,0.12);
    color: var(--primary);
    padding: 0.28rem 0.7rem;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 500;
}

.template-actions {
    display: flex;
    gap: 0.6rem;
    margin-top: auto;
}

.template-actions .btn {
    flex: 1;
    text-align: center;
    text-decoration: none;
}

/* 模态框 */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(15, 23, 42, 0.45);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    backdrop-filter: blur(6px);
}

.modal-content {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    padding: 2rem;
    max-width: 600px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 30px 48px rgba(15, 23, 42, 0.25);
}

.modal-content h3 {
    margin-top: 0;
    color: var(--text);
    margin-bottom: 1rem;
}

.file-list {
    list-style: none;
    padding: 0;
    margin: 1.5rem 0;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.file-list li {
    padding: 0.85rem 1rem;
    background: rgba(96,105,255,0.1);
    border-radius: 14px;
    border-left: 3px solid var(--primary);
}

.file-link {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
}

.file-link:hover {
    text-decoration: underline;
}

/* 版本信息模态框 */
.version-modal {
    max-width: 500px;
    text-align: center;
}

.version-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid rgba(96, 105, 255, 0.12);
}

.version-logo {
    height: 80px;
    width: auto;
    object-fit: contain;
}

.version-header h2 {
    margin: 0;
    font-size: 1.8rem;
    color: var(--primary);
    font-weight: 700;
}

.version-body {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
    margin-bottom: 2rem;
    text-align: left;
}

.version-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.9rem 1.2rem;
    background: rgba(96, 105, 255, 0.06);
    border-radius: 12px;
    border-left: 3px solid var(--primary);
}

.version-label {
    font-weight: 600;
    color: var(--text);
    font-size: 0.95rem;
}

.version-value {
    color: var(--muted);
    font-size: 0.95rem;
}

.version-link {
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
}

.version-link:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

.version-footer {
    display: flex;
    justify-content: center;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(96, 105, 255, 0.12);
}

/* 使用手册响应式 */
@media (max-width: 768px) {
    .manual-section {
        padding: 1.4rem 1.6rem;
    }
    
    .manual-section h3 {
        font-size: 1.3rem;
    }
    
    .step-item,
    .module-item,
    .tip-item,
    .faq-item,
    .notice-item {
        padding: 1rem 1.2rem;
    }
}

/* 响应式设计 */
@media (max-width: 768px) {
    .logo-container {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.8rem;
    }
    
    .logo-img {
        height: 40px;
    }
    
    .header-top {
        flex-direction: column;
        align-items: flex-start;
    }

    .nav {
        width: 100%;
        justify-content: space-between;
        flex-wrap: wrap;
    }

    .header-hero {
        flex-direction: column;
    }

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

    .writing-view {
        flex-direction: column;
    }

    .sidebar {
        width: 100%;
        border-right: none;
        border-bottom: 1px solid rgba(96,105,255,0.14);
        padding-right: 0;
        padding-bottom: 2rem;
        margin-bottom: 2rem;
    }

    .section-nav {
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 0.8rem;
    }

    .filter-bar {
        flex-direction: column;
    }

    .filter-input,
    .filter-select {
        width: 100%;
    }

    .template-category-group {
        padding: 1rem 1.1rem 1.2rem;
    }

    .template-group-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.8rem;
    }

    .hero-actions {
        flex-direction: column;
    }

    .hero-stats {
        width: 100%;
    }

    .feature-item {
        flex-direction: column;
        gap: 1rem;
    }

    .criterion-desc {
        margin-left: 0;
    }

    .templates-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 520px) {
    .nav {
        gap: 0.4rem;
        justify-content: center;
    }

    .nav button {
        flex: 1 1 calc(50% - 0.5rem);
        text-align: center;
    }

    .hero-stats {
        grid-template-columns: 1fr;
    }

    .hero-text h2 {
        font-size: 2rem;
    }

    .panel {
        padding: 1.8rem;
    }
}

/* 选中状态 */
.section-nav li.active {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: #fff;
    box-shadow: 0 20px 32px rgba(96,105,255,0.2);
    transform: translateX(0);
}

.section-nav li.active:hover {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
}

.guide-accordion {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.guide-accordion details {
    background: rgba(255,255,255,0.92);
    border-radius: 14px;
    border: 1px solid rgba(96,105,255,0.12);
    box-shadow: 0 8px 18px rgba(15,23,42,0.08);
    padding: 0.2rem 0.8rem;
}

.guide-accordion summary {
    cursor: pointer;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
    color: var(--text);
    padding: 0.6rem 0.4rem;
}

.guide-accordion summary::-webkit-details-marker {
    display: none;
}

.accordion-icon {
    width: 14px;
    height: 14px;
    border-right: 2px solid var(--primary);
    border-bottom: 2px solid var(--primary);
    transform: rotate(-45deg);
    transition: transform 0.2s ease;
}

.guide-accordion details[open] .accordion-icon {
    transform: rotate(45deg);
}

.accordion-body {
    padding: 0.2rem 0.4rem 0.8rem 0.4rem;
    color: var(--text);
    border-top: 1px dashed rgba(96,105,255,0.2);
}

.accordion-body ul {
    margin-top: 0.6rem;
    padding-left: 1.2rem;
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
}

.accordion-body pre {
    margin-top: 0.6rem;
}
