/* ==========================================
   学习机申请系统 - 前端样式（现代风 · 高性能版）
   移除：模糊大圆无限动画、backdrop-filter 毛玻璃
   背景：纯 CSS 渐变合成（一次性渲染，零动画开销）
   ========================================== */

/* --- Reset & Base --- */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #B48C3C;
    --primary-dark: #9A7530;
    --secondary: #D4A85A;
    --accent: #C99A3E;
    --gradient: linear-gradient(135deg, #1a1a1a, #333333);
    --bg: #FAF5EB;
    --text: #1a1a1a;
    --text-light: #5a5a5a;
    --border: #E8DCC4;
    --success: #6B8E3D;
    --danger: #B5462E;
    --warning: #C99A3E;
    --card: #FFFDF7;
    --shadow-sm: 0 1px 2px rgba(60,40,0,.05), 0 4px 16px rgba(60,40,0,.05);
    --shadow: 0 4px 12px rgba(60,40,0,.06), 0 20px 48px rgba(60,40,0,.08);
    --shadow-lg: 0 12px 32px rgba(60,40,0,.10), 0 32px 80px rgba(60,40,0,.12);
    --radius: 22px;
    --radius-sm: 12px;
    --ease: cubic-bezier(.4,0,.2,1);
}

html {
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
}

body {
    font-family: 'SimSun', '宋体', 'Songti SC', 'STSong', serif;
    color: #1a1a1a;
    min-height: 100vh;
    overflow-x: hidden;
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    /* 米黄色温暖背景 */
    background-color: var(--bg);
    background-image:
        radial-gradient(1100px 560px at 105% -8%, rgba(180,140,60,.12), transparent 62%),
        radial-gradient(900px 520px at -8% 2%, rgba(212,168,90,.15), transparent 58%),
        radial-gradient(760px 480px at 50% 112%, rgba(201,154,62,.10), transparent 60%);
    background-attachment: scroll;
}

/* 浮动光球（装饰层，pointer-events:none） */
body::after {
    content: '';
    position: fixed;
    top: -10%; left: 60%;
    width: 500px; height: 500px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(180,140,60,.06) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
    animation: floatOrb 18s ease-in-out infinite alternate;
}

@keyframes floatOrb {
    0%   { transform: translate3d(-60px, 20px, 0) scale(1); }
    50%  { transform: translate3d(40px, -30px, 0) scale(1.12); }
    100% { transform: translate3d(-20px, 40px, 0) scale(.95); }
}

::selection {
    background: rgba(180,140,60,.18);
}

/* --- 全局滚动条美化 --- */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}
::-webkit-scrollbar-track {
    background: transparent;
}
::-webkit-scrollbar-thumb {
    background: rgba(180,140,60,.20);
    border-radius: 4px;
    transition: background .2s ease;
}
::-webkit-scrollbar-thumb:hover {
    background: rgba(180,140,60,.40);
}

/* --- 顶部渐变细条（现代感点缀） --- */
body::before {
    content: '';
    position: fixed;
    top: 0; left: 0; right: 0;
    height: 4px;
    background: linear-gradient(90deg, #B48C3C, #D4A85A 30%, #C99A3E 60%, #9A7530 100%);
    z-index: 100;
    background-size: 200% 100%;
    animation: shimmerBar 6s linear infinite;
}

@keyframes shimmerBar {
    0%   { background-position: 0% 0%; }
    100% { background-position: 200% 0%; }
}

/* --- 主容器 --- */
.main-container {
    position: relative;
    z-index: 1;
    max-width: 1440px;
    margin: 0 auto;
    padding: 44px 20px 72px;
}

/* --- 双栏布局 --- */
.layout-columns {
    display: flex;
    gap: 32px;
    align-items: flex-start;
}

.form-column {
    flex: 0 0 620px;
    max-width: 620px;
    min-width: 0;
}

.info-column {
    flex: 1;
    min-width: 380px;
    position: sticky;
    top: 24px;
}

/* --- 右侧公告面板 --- */
.announcements-panel {
    background: var(--card);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
    border: 1px solid var(--border);
    animation: fadeInRight .5s var(--ease) both;
    position: relative;
}

/* 面板顶部彩色装饰条 */
.announcements-panel::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg, #B48C3C, #D4A85A, #C99A3E, #9A7530);
    background-size: 200% 100%;
    animation: shimmerBar 6s linear infinite;
    z-index: 1;
}

@keyframes fadeInRight {
    from { opacity: 0; transform: translate3d(20px,0,0); }
    to   { opacity: 1; transform: translate3d(0,0,0); }
}

.announcements-panel .panel-header {
    padding: 26px 28px 18px;
    border-bottom: 1px solid var(--border);
    background: linear-gradient(135deg, rgba(180,140,60,.05), rgba(212,168,90,.03) 50%, rgba(154,117,48,.04));
}

.announcements-panel .panel-title {
    font-size: 19px;
    font-weight: 700;
    color: var(--text);
    display: flex;
    align-items: center;
    gap: 10px;
}

.announcements-panel .panel-title svg {
    color: var(--primary);
    filter: drop-shadow(0 2px 4px rgba(180,140,60,.2));
    width: 22px;
    height: 22px;
}

/* 分类区块 */
.ann-category {
    border-bottom: 1px solid rgba(226,232,240,.5);
}

.ann-category:last-child {
    border-bottom: none;
}

/* 分类标题栏 */
.ann-category-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 24px 12px;
    font-size: 14px;
    font-weight: 700;
    background: linear-gradient(135deg, rgba(180,140,60,.06), rgba(212,168,90,.03) 50%, rgba(154,117,48,.04));
    border-left: 4px solid var(--primary);
    position: sticky;
    top: 0;
    z-index: 2;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.ann-category-header.type-announcement {
    border-left-color: #B48C3C;
    color: #B48C3C;
}
.ann-category-header.type-blacklist {
    border-left-color: #dc2626;
    color: #dc2626;
    background: linear-gradient(135deg, rgba(220,38,38,.06), rgba(220,38,38,.03) 50%, rgba(180,20,20,.04));
}
.ann-category-header.type-notice {
    border-left-color: #d97706;
    color: #d97706;
    background: linear-gradient(135deg, rgba(217,119,6,.06), rgba(217,119,6,.03) 50%, rgba(180,80,6,.04));
}
.ann-category-header.type-news {
    border-left-color: #059669;
    color: #059669;
    background: linear-gradient(135deg, rgba(5,150,105,.06), rgba(5,150,105,.03) 50%, rgba(4,120,80,.04));
}

.ann-cat-icon {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.ann-cat-title {
    flex: 1;
}

.ann-cat-count {
    font-size: 12px;
    font-weight: 700;
    padding: 2px 10px;
    border-radius: 10px;
    background: rgba(0,0,0,.08);
    color: inherit;
}

.ann-category-header.type-announcement .ann-cat-count { background: rgba(180,140,60,.15); }
.ann-category-header.type-blacklist .ann-cat-count { background: rgba(220,38,38,.12); }
.ann-category-header.type-notice .ann-cat-count { background: rgba(217,119,6,.12); }
.ann-category-header.type-news .ann-cat-count { background: rgba(5,150,105,.12); }

/* 分类内列表 */
.ann-category-items {
    padding: 0;
}

/* 公告列表 */
.ann-list {
    max-height: 820px;
    overflow-y: auto;
    padding: 0;
}

.ann-list::-webkit-scrollbar {
    width: 4px;
}
.ann-list::-webkit-scrollbar-track {
    background: transparent;
}
.ann-list::-webkit-scrollbar-thumb {
    background: rgba(0,0,0,.12);
    border-radius: 2px;
}

/* 单条公告 */
.ann-item {
    padding: 14px 24px 14px 26px;
    border-bottom: 1px solid rgba(226,232,240,.4);
    transition: background .25s var(--ease);
    cursor: pointer;
    position: relative;
}

.ann-item:last-child {
    border-bottom: none;
}

.ann-item:hover {
    background: rgba(180,140,60,.04);
}

/* 左侧色条 — 按类型着色 */
.ann-item[data-type="announcement"] { border-left: 3px solid rgba(180,140,60,.30); }
.ann-item[data-type="blacklist"]    { border-left: 3px solid rgba(239,68,68,.30); }
.ann-item[data-type="notice"]       { border-left: 3px solid rgba(245,158,11,.30); }
.ann-item[data-type="news"]         { border-left: 3px solid rgba(16,185,129,.30); }

.ann-item[data-type="announcement"]:hover { border-left-color: #B48C3C; }
.ann-item[data-type="blacklist"]:hover    { border-left-color: #dc2626; }
.ann-item[data-type="notice"]:hover       { border-left-color: #d97706; }
.ann-item[data-type="news"]:hover         { border-left-color: #059669; }

.ann-item.expanded {
    background: rgba(180,140,60,.05);
}
.ann-item.expanded[data-type="announcement"] { border-left-color: #B48C3C; }
.ann-item.expanded[data-type="blacklist"]    { border-left-color: #dc2626; }
.ann-item.expanded[data-type="notice"]       { border-left-color: #d97706; }
.ann-item.expanded[data-type="news"]         { border-left-color: #059669; }

.ann-pin-icon {
    color: #C99A3E;
    font-size: 14px;
    line-height: 1;
    position: absolute;
    top: 12px;
    right: 18px;
}

.ann-item-title {
    font-size: 15px;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 5px;
    line-height: 1.5;
    transition: color .2s ease;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.ann-item:hover .ann-item-title {
    color: var(--primary);
}

.ann-item.expanded .ann-item-title {
    color: var(--primary);
}

/* 展开/收起指示器 */
.ann-item-title::after {
    content: '+';
    font-size: 16px;
    font-weight: 400;
    color: var(--text-light);
    transition: transform .25s var(--ease), color .2s ease;
    flex-shrink: 0;
    line-height: 1;
}

.ann-item.expanded .ann-item-title::after {
    content: '−';
    color: var(--primary);
}

.ann-item-content {
    font-size: 14px;
    color: var(--text-light);
    line-height: 1.7;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    word-break: break-word;
    transition: color .2s ease;
}

.ann-item.expanded .ann-item-content {
    -webkit-line-clamp: unset;
    display: block;
    overflow: visible;
    color: #3a3a3a;
    padding-bottom: 4px;
}

.ann-item:hover .ann-item-content {
    color: #5a5a5a;
}

.ann-item-date {
    font-size: 12px;
    color: #8a7a55;
    margin-top: 8px;
}

/* 空状态 */
.ann-empty {
    text-align: center;
    padding: 60px 24px;
    color: var(--text-light);
}

.ann-empty svg {
    width: 56px;
    height: 56px;
    margin-bottom: 14px;
    opacity: .3;
}

.ann-empty p {
    font-size: 15px;
}

/* --- 移动端响应式：双栏变单栏 --- */
@media (max-width: 1080px) {
    .layout-columns {
        flex-direction: column;
    }
    .form-column {
        flex: 0 0 auto;
        max-width: 100%;
    }
    .info-column {
        position: static;
        min-width: 0;
    }
    .announcements-panel .panel-header {
        padding: 16px 20px 12px;
    }
}

/* --- Header --- */
.app-header {
    text-align: center;
    margin-bottom: 34px;
    animation: fadeInDown .45s var(--ease) both;
}

@keyframes fadeInDown {
    from { opacity: 0; transform: translate3d(0,-14px,0); }
    to   { opacity: 1; transform: translate3d(0,0,0); }
}

.logo-wrapper {
    display: inline-flex;
    padding: 12px;
    margin-bottom: 14px;
    background: rgba(255,255,255,.7);
    border: 1px solid rgba(180,140,60,.10);
    border-radius: 22px;
    box-shadow: var(--shadow-sm);
    transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}

.logo-wrapper:hover {
    transform: translateY(-4px) scale(1.03);
    box-shadow: 0 8px 24px rgba(180,140,60,.15);
}

.logo-icon {
    width: 56px;
    height: 56px;
    display: block;
}

.app-title {
    font-size: 27px;
    font-weight: 800;
    letter-spacing: -.5px;
    background: var(--gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 10px;
}

.app-subtitle {
    color: var(--text-light);
    font-size: 14px;
    max-width: 640px;
    margin: 0 auto;
    background: rgba(255,255,255,.65);
    border: 1px solid rgba(180,140,60,.10);
    border-radius: 14px;
    padding: 14px 20px;
    line-height: 1.7;
    box-shadow: 0 2px 12px rgba(180,140,60,.05);
    backdrop-filter: blur(6px);
}

/* --- 步骤指示器 --- */
.steps {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    margin-bottom: 30px;
    animation: fadeInUp .45s var(--ease) .08s both;
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translate3d(0,14px,0); }
    to   { opacity: 1; transform: translate3d(0,0,0); }
}

.step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 7px;
    transition: transform .25s var(--ease);
}

.step span {
    font-size: 12px;
    font-weight: 500;
    color: var(--text-light);
    transition: color .2s ease;
    white-space: nowrap;
}

.step-circle {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 14px;
    background: #E8DCC4;
    color: #8a7a55;
    border: 2px solid transparent;
    transition: all .4s cubic-bezier(.4,0,.2,1);
}

.step.active .step-circle {
    background: var(--gradient);
    color: #fff;
    border-color: #fff;
    box-shadow: 0 6px 18px rgba(0,0,0,.25);
    transform: scale(1.08);
}

.step.active span {
    color: var(--primary);
    font-weight: 600;
}

.step.completed .step-circle {
    background: var(--success);
    color: #fff;
    box-shadow: 0 4px 14px rgba(16,185,129,.3);
}

.step.completed span {
    color: var(--success);
}

.step-line {
    width: 64px;
    height: 3px;
    border-radius: 3px;
    background: #E8DCC4;
    margin: 17px 6px 0;
    overflow: hidden;
    position: relative;
}

.step-line::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, #6B8E3D, #8AAB5C);
    border-radius: 3px;
    transform: translateX(-100%);
    transition: transform .6s cubic-bezier(.4,0,.2,1);
}

.step.completed + .step-line::after,
.step-line.active::after {
    transform: translateX(0);
}

/* --- 表单卡片 --- */
.app-form {
    background: var(--card);
    border: 1px solid rgba(180,140,60,.08);
    border-radius: var(--radius);
    padding: 36px;
    box-shadow: var(--shadow);
    animation: fadeInUp .45s var(--ease) .16s both;
    position: relative;
    overflow: hidden;
}

/* 表单卡片顶部装饰渐变条 */
.app-form::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg, #B48C3C, #D4A85A 40%, #C99A3E 70%, #9A7530);
    background-size: 200% 100%;
    animation: shimmerBar 6s linear infinite;
}

.form-step {
    display: none;
}

.form-step.active {
    display: block;
    animation: slideIn .35s var(--ease) both;
}

@keyframes slideIn {
    from { opacity: 0; transform: translate3d(24px,0,0); }
    to   { opacity: 1; transform: translate3d(0,0,0); }
}

.section-title {
    font-size: 19px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.section-title svg {
    color: var(--primary);
    flex-shrink: 0;
}

/* --- 输入框 --- */
.input-group {
    position: relative;
    margin-bottom: 20px;
}

.input-group.floating input {
    width: 100%;
    padding: 15px 16px 15px 46px;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 15px;
    color: var(--text);
    background: #F5EFE0;
    transition: border-color .25s ease, box-shadow .25s ease, background .25s ease;
    outline: none;
    font-family: inherit;
}

.input-group.floating input:focus {
    border-color: var(--primary);
    background: #fff;
    box-shadow: 0 0 0 4px rgba(180,140,60,.10), 0 2px 8px rgba(180,140,60,.08);
}

.input-group.floating label {
    position: absolute;
    left: 46px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-light);
    font-size: 15px;
    pointer-events: none;
    transition: all .2s ease;
    background: transparent;
    padding: 0 4px;
    border-radius: 6px;
}

.input-group.floating label svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

.input-group.floating input:focus + label,
.input-group.floating input:not(:placeholder-shown) + label {
    top: 0;
    transform: translateY(-50%) scale(.84);
    color: var(--primary);
    background: #fff;
    padding: 0 6px;
}

.input-border {
    display: none;
}

/* --- 上传区 --- */
.upload-box {
    margin-bottom: 20px;
}

.upload-zone {
    position: relative;
    border: 2px dashed #D9CCAE;
    border-radius: var(--radius-sm);
    padding: 30px;
    text-align: center;
    cursor: pointer;
    overflow: hidden;
    transition: all .3s var(--ease);
    background: #FFFDF7;
    min-height: 160px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.upload-zone:hover {
    border-color: var(--primary);
    background: rgba(180,140,60,.04);
    transform: translateY(-1px);
    box-shadow: 0 8px 20px rgba(180,140,60,.08);
}

.upload-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    color: var(--text-light);
}

.upload-placeholder svg {
    color: var(--primary);
    opacity: .55;
}

.upload-placeholder span {
    font-size: 15px;
    font-weight: 500;
}

.upload-placeholder small {
    font-size: 12px;
    opacity: .7;
}

.upload-zone.has-file {
    border-style: solid;
    border-color: var(--success);
    background: rgba(16,185,129,.04);
    padding: 8px;
}

.upload-zone.has-file .upload-placeholder {
    opacity: 0;
    position: absolute;
    pointer-events: none;
}

.upload-preview {
    width: 100%;
    max-height: 300px;
    object-fit: contain;
    border-radius: 10px;
    display: none;
}

.upload-zone.has-file .upload-preview {
    display: block;
    animation: zoomIn .3s var(--ease) both;
}

@keyframes zoomIn {
    from { opacity: 0; transform: scale3d(.95,.95,1); }
    to   { opacity: 1; transform: scale3d(1,1,1); }
}

.upload-overlay {
    position: absolute;
    inset: 0;
    background: rgba(60,40,0,.55);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: #fff;
    font-size: 14px;
    opacity: 0;
    pointer-events: none;
    transition: opacity .25s ease;
}

.upload-zone.has-file:hover .upload-overlay {
    opacity: 1;
    pointer-events: auto;
}

/* --- 合同 --- */
.contract-box {
    border: 1px solid var(--border);
    border-radius: 14px;
    overflow: hidden;
    margin-bottom: 20px;
    box-shadow: 0 2px 8px rgba(60,40,0,.04);
}

.contract-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 18px;
    background: linear-gradient(135deg, rgba(180,140,60,.05), rgba(212,168,90,.04) 50%, rgba(154,117,48,.04));
    border-bottom: 1px solid var(--border);
    font-weight: 600;
    color: var(--text);
}

.contract-header svg {
    color: var(--primary);
}

.contract-content {
    padding: 20px;
    max-height: 300px;
    overflow-y: auto;
    font-size: 14px;
    line-height: 1.8;
    color: #5a5a5a;
    background: #fafbfd;
}

.contract-content::-webkit-scrollbar,
.markdown-body pre::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

.contract-content::-webkit-scrollbar-thumb,
.markdown-body pre::-webkit-scrollbar-thumb {
    background: #D9CCAE;
    border-radius: 3px;
}

/* --- 同意勾选 --- */
.agree-box {
    margin-bottom: 24px;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    user-select: none;
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    background: rgba(180,140,60,.04);
    border: 1px solid rgba(180,140,60,.08);
    transition: background .25s ease, border-color .25s ease, box-shadow .25s ease;
}

.checkbox-label:hover {
    background: rgba(180,140,60,.08);
    border-color: rgba(180,140,60,.15);
    box-shadow: 0 4px 12px rgba(180,140,60,.06);
}

.checkbox-label input {
    display: none;
}

.checkmark {
    width: 24px;
    height: 24px;
    border: 2px solid #D9CCAE;
    border-radius: 7px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    background: #fff;
    transition: all .2s ease;
}

.checkbox-label input:checked + .checkmark {
    background: var(--gradient);
    border-color: transparent;
}

.agree-text {
    font-size: 15px;
    color: var(--text);
}

.checkbox-label input:checked ~ .agree-text {
    color: var(--primary);
    font-weight: 500;
}

/* --- 按钮 --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 14px 28px;
    border: none;
    border-radius: 999px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: transform .2s var(--ease), box-shadow .2s var(--ease), background .2s ease;
    font-family: inherit;
    position: relative;
    overflow: hidden;
    -webkit-tap-highlight-color: transparent;
}

.btn::before {
    content: '';
    position: absolute;
    top: 50%; left: 50%;
    width: 0; height: 0;
    border-radius: 50%;
    background: rgba(255,255,255,.35);
    transform: translate(-50%,-50%);
    transition: width .5s ease, height .5s ease;
}

.btn:active::before {
    width: 320px;
    height: 320px;
}

.btn-next {
    background: var(--gradient);
    background-size: 150% 100%;
    color: #fff;
    width: 100%;
    box-shadow: 0 6px 18px rgba(0,0,0,.25);
    transition: transform .25s var(--ease), box-shadow .25s var(--ease), background-position .4s ease;
}

.btn-next:hover:not(:disabled) {
    background-position: 100% 0;
    transform: translateY(-2px);
    box-shadow: 0 10px 28px rgba(0,0,0,.35), 0 0 0 4px rgba(180,140,60,.12);
}

.btn-next:active:not(:disabled),
.btn-submit:active:not(:disabled),
.btn-primary:active:not(:disabled) {
    transform: translateY(0) scale(.985);
}

.btn-prev {
    background: #F0E8D5;
    color: var(--text);
    transition: transform .25s var(--ease), background .2s ease, box-shadow .25s ease;
}

.btn-prev:hover:not(:disabled) {
    background: #E8DCC4;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(60,40,0,.10);
}

.btn-submit {
    background: var(--gradient);
    background-size: 150% 100%;
    color: #fff;
    width: 100%;
    box-shadow: 0 6px 18px rgba(0,0,0,.25);
    font-size: 17px;
    padding: 16px 32px;
    transition: transform .25s var(--ease), box-shadow .25s var(--ease), background-position .4s ease;
}

.btn-submit:hover:not(:disabled) {
    background-position: 100% 0;
    transform: translateY(-2px);
    box-shadow: 0 10px 28px rgba(0,0,0,.35), 0 0 0 4px rgba(180,140,60,.12);
}

.btn-submit:disabled {
    opacity: .75;
    cursor: not-allowed;
    transform: none;
}

.btn-primary {
    background: var(--gradient);
    background-size: 150% 100%;
    color: #fff;
    box-shadow: 0 6px 18px rgba(0,0,0,.25);
    transition: transform .25s var(--ease), box-shadow .25s var(--ease), background-position .4s ease;
}

.btn-primary:hover:not(:disabled) {
    background-position: 100% 0;
    transform: translateY(-2px);
    box-shadow: 0 10px 28px rgba(0,0,0,.35), 0 0 0 4px rgba(180,140,60,.12);
}

.btn-text { display: inline; }
.btn-loading { display: none; align-items: center; gap: 8px; }
.btn-submit.loading .btn-text { display: none; }
.btn-submit.loading .btn-loading { display: inline-flex; }

.arrow {
    display: inline-block;
    transition: transform .25s var(--ease);
}

.btn:hover .arrow { transform: translateX(3px); }
.btn-prev:hover .arrow { transform: translateX(-3px); }

.step-buttons {
    display: flex;
    gap: 12px;
}

/* --- 邮箱验证码 --- */
.email-verify-box {
    margin-bottom: 20px;
}

.email-verify-row {
    display: flex;
    gap: 10px;
    align-items: stretch;
}

.email-code-input {
    flex: 1;
    padding: 14px 16px;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 16px;
    font-weight: 600;
    letter-spacing: 4px;
    text-align: center;
    color: var(--text);
    background: #F5EFE0;
    transition: border-color .25s ease, box-shadow .25s ease, background .25s ease;
    outline: none;
    font-family: inherit;
}

.email-code-input:focus {
    border-color: var(--primary);
    background: #fff;
    box-shadow: 0 0 0 4px rgba(180,140,60,.10), 0 2px 8px rgba(180,140,60,.08);
}

.email-code-input::placeholder {
    font-weight: 400;
    letter-spacing: 0;
    color: var(--text-light);
    font-size: 14px;
}

.btn-send-email-code {
    flex-shrink: 0;
    padding: 14px 20px;
    border: 1.5px solid var(--primary);
    border-radius: var(--radius-sm);
    background: rgba(180,140,60,.06);
    color: var(--primary);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all .25s var(--ease);
    font-family: inherit;
    white-space: nowrap;
    min-width: 120px;
}

.btn-send-email-code:hover:not(:disabled) {
    background: var(--gradient);
    background-size: 150% 100%;
    color: #fff;
    border-color: transparent;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0,0,0,.25), 0 0 0 3px rgba(180,140,60,.12);
}

.btn-send-email-code:active:not(:disabled) {
    transform: translateY(1px) scale(.98);
}

.btn-send-email-code:disabled,
.btn-send-email-code.counting {
    opacity: .6;
    cursor: not-allowed;
    border-color: var(--border);
    color: var(--text-light);
    background: #F5EFE0;
}

/* --- 验证码 --- */
.captcha-box {
    margin: 20px 0;
}

.captcha-box label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: var(--text);
    margin-bottom: 8px;
}

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

.captcha-question {
    font-size: 20px;
    font-weight: 700;
    color: var(--primary);
    background: linear-gradient(135deg, #B48C3C 0%, #D4A85A 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    min-width: 100px;
    text-align: center;
}

.captcha-input {
    flex: 1;
    max-width: 120px;
    padding: 10px 16px;
    border: 1.5px solid var(--border);
    border-radius: 10px;
    font-size: 18px;
    font-weight: 600;
    text-align: center;
    background: #F5EFE0;
    transition: border-color .25s ease, box-shadow .25s ease, background .25s ease;
    outline: none;
    font-family: inherit;
}

.captcha-input:focus {
    border-color: var(--primary);
    background: #fff;
    box-shadow: 0 0 0 4px rgba(180,140,60,.10), 0 2px 8px rgba(180,140,60,.08);
}

.btn-refresh {
    width: 42px;
    height: 42px;
    border: 1.5px solid var(--border);
    border-radius: 10px;
    background: #fff;
    font-size: 20px;
    cursor: pointer;
    transition: all .25s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
}

.btn-refresh:hover {
    border-color: var(--primary);
    color: var(--primary);
    transform: rotate(180deg);
}

/* --- 成功弹窗 --- */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(60,40,0,.55);
    z-index: 1000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal-overlay.show {
    display: flex;
    animation: fadeIn .25s ease both;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}

.modal-card {
    background: #fff;
    border-radius: var(--radius);
    padding: 40px;
    text-align: center;
    max-width: 420px;
    width: 100%;
    box-shadow: var(--shadow-lg);
    animation: scaleUp .4s var(--ease) both;
}

@keyframes scaleUp {
    from { opacity: 0; transform: scale(.92) translateY(16px); }
    to   { opacity: 1; transform: scale(1) translateY(0); }
}

.success-animation {
    margin-bottom: 20px;
}

.checkmark {
    width: 80px;
    height: 80px;
}

.checkmark-circle {
    stroke-dasharray: 226;
    stroke-dashoffset: 226;
    animation: drawCircle .6s ease-out .2s forwards;
}

.checkmark-check {
    stroke-dasharray: 48;
    stroke-dashoffset: 48;
    animation: drawCheck .4s ease-out .8s forwards;
}

@keyframes drawCircle { to { stroke-dashoffset: 0; } }
@keyframes drawCheck   { to { stroke-dashoffset: 0; } }

.success-card h2 {
    font-size: 24px;
    color: var(--success);
    margin-bottom: 12px;
}

.success-card p {
    color: var(--text-light);
    margin-bottom: 12px;
    line-height: 1.6;
}

.success-id {
    font-size: 13px;
    color: var(--text-light);
    background: #F5EFE0;
    border: 1px solid var(--border);
    padding: 8px 18px;
    border-radius: 999px;
    display: inline-block;
    margin-bottom: 20px;
    font-family: ui-monospace, Consolas, monospace;
}

/* --- Toast（米黄主题 / 深色暖底通知）--- */
.toast {
    position: fixed;
    bottom: 32px;
    left: 50%;
    transform: translateX(-50%) translateY(160%) scale(.96);
    display: flex;
    align-items: flex-start;
    gap: 12px;
    min-width: 300px;
    max-width: 440px;
    padding: 16px 20px;
    border-radius: 12px;
    /* 深暖底：米黄主题配套的深棕咖色 */
    background: linear-gradient(160deg, rgba(58,42,24,.95) 0%, rgba(46,33,18,.96) 45%, rgba(36,26,14,.97) 100%);
    -webkit-backdrop-filter: blur(20px) saturate(160%);
    backdrop-filter: blur(20px) saturate(160%);
    border: 1px solid rgba(180,140,60,.30);
    box-shadow:
        0 10px 36px rgba(40,28,8,.55),
        0 3px 12px rgba(40,28,8,.35),
        inset 0 1px 0 rgba(180,140,60,.15);
    opacity: 0;
    transition: transform .38s cubic-bezier(.2,.8,.2,1), opacity .3s ease;
    z-index: 2000;
    font-family: SimSun, 宋体, Songti SC, STSong, serif;
}

/* 顶部暖色高光 */
.toast::before {
    content: '';
    position: absolute;
    top: 0; left: 16px; right: 16px;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(212,168,90,.45), transparent);
}

.toast.show {
    transform: translateX(-50%) translateY(0) scale(1);
    opacity: 1;
}

/* 图标：圆角方块 + 渐变底色 */
.toast-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    box-shadow: inset 0 0 0 1px rgba(255,255,255,.18), 0 2px 8px rgba(0,0,0,.3);
}

.toast-icon svg {
    width: 20px;
    height: 20px;
}

.toast.success .toast-icon { background: linear-gradient(135deg, #8AAB5C, #6B8E3D); }
.toast.error   .toast-icon { background: linear-gradient(135deg, #D4775C, #B5462E); }
.toast.info    .toast-icon { background: linear-gradient(135deg, #D4A85A, #B48C3C); }

.toast-content {
    flex: 1;
    min-width: 0;
}

/* 应用名（通知顶部小字，暖灰色） */
.toast-app {
    font-size: 11px;
    font-weight: 700;
    color: rgba(212,168,90,.65);
    letter-spacing: .5px;
    margin-bottom: 3px;
    text-transform: uppercase;
}

.toast-title {
    font-size: 14px;
    font-weight: 700;
    color: #F5EFE0;
    line-height: 1.5;
    word-break: break-word;
}

.toast.error .toast-title { color: #F0D0C5; }
.toast.success .toast-title { color: #D5E5C5; }
.toast.info .toast-title { color: #E8D5A8; }

/* --- Markdown 合同样式 --- */
.markdown-body {
    font-size: 15px;
    line-height: 1.8;
    color: var(--text);
}

.markdown-body h1,
.markdown-body h2,
.markdown-body h3,
.markdown-body h4,
.markdown-body h5,
.markdown-body h6 {
    margin-top: 18px;
    margin-bottom: 10px;
    font-weight: 700;
    line-height: 1.4;
    color: var(--text);
}

.markdown-body h1 { font-size: 1.5em; border-bottom: 1px solid rgba(0,0,0,.08); padding-bottom: 6px; }
.markdown-body h2 { font-size: 1.3em; border-bottom: 1px solid rgba(0,0,0,.06); padding-bottom: 4px; }
.markdown-body h3 { font-size: 1.15em; }
.markdown-body h4 { font-size: 1.05em; }
.markdown-body h5 { font-size: .95em; }
.markdown-body h6 { font-size: .9em; color: var(--text-light); }

.markdown-body p { margin-bottom: 12px; }
.markdown-body strong { font-weight: 700; color: #1a1a1a; }
.markdown-body em { font-style: italic; }
.markdown-body del { text-decoration: line-through; color: var(--text-light); }

.markdown-body a {
    color: var(--primary);
    text-decoration: none;
    border-bottom: 1px solid rgba(180,140,60,.3);
    transition: border-color .2s;
}

.markdown-body a:hover { border-bottom-color: var(--primary); }

.markdown-body ul,
.markdown-body ol {
    margin-bottom: 12px;
    padding-left: 24px;
}

.markdown-body li { margin-bottom: 4px; }

.markdown-body blockquote {
    margin: 12px 0;
    padding: 10px 16px;
    border-left: 4px solid var(--primary);
    background: rgba(180,140,60,.06);
    border-radius: 0 8px 8px 0;
    color: var(--text-light);
}

.markdown-body code {
    font-family: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, monospace;
    font-size: .9em;
    background: rgba(180,140,60,.08);
    padding: 2px 6px;
    border-radius: 4px;
    color: #005fb8;
}

.markdown-body pre {
    background: #1a1a1a;
    color: #E8DCC4;
    padding: 16px;
    border-radius: 12px;
    overflow-x: auto;
    margin-bottom: 12px;
    font-size: .9em;
    line-height: 1.5;
}

.markdown-body pre code {
    background: transparent;
    color: inherit;
    padding: 0;
    border-radius: 0;
}

.markdown-body hr {
    border: none;
    border-top: 1px solid rgba(0,0,0,.1);
    margin: 16px 0;
}

.markdown-body img {
    max-width: 100%;
    border-radius: 8px;
    margin: 8px 0;
}

/* --- 无障碍：用户偏好减少动效时全部关闭 --- */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
    }
}

/* --- 问答步骤 --- */
.quiz-tip {
    font-size: 13px;
    color: var(--text-light);
    margin: -10px 0 20px;
    padding: 10px 14px;
    background: rgba(180,140,60,.05);
    border: 1px solid rgba(180,140,60,.10);
    border-radius: 10px;
}

.quiz-item {
    margin-bottom: 18px;
}

.quiz-item label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 8px;
    line-height: 1.5;
}

.quiz-input {
    width: 100%;
    padding: 12px 14px;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 15px;
    color: var(--text);
    background: #F5EFE0;
    transition: border-color .25s ease, box-shadow .25s ease, background .25s ease;
    outline: none;
    font-family: inherit;
}

.quiz-input:focus {
    border-color: var(--primary);
    background: #fff;
    box-shadow: 0 0 0 4px rgba(180,140,60,.10), 0 2px 8px rgba(180,140,60,.08);
}

select.quiz-input {
    cursor: pointer;
}

/* --- 响应式 --- */
@media (max-width: 600px) {
    .main-container { padding: 30px 14px 56px; }

    .app-form {
        padding: 24px 16px;
        border-radius: 18px;
    }

    .app-title { font-size: 22px; }

    .steps { gap: 0; }
    .step-line { width: 40px; }

    .modal-card { padding: 28px 20px; }

    .input-group.floating input {
        padding: 14px 14px 14px 42px;
        font-size: 14px;
    }
    .input-group.floating label { left: 42px; font-size: 14px; }

    .email-verify-row {
        flex-direction: column;
        gap: 8px;
    }

    .btn-send-email-code {
        width: 100%;
        min-width: auto;
    }
}

/* --- 响应式补充 --- */
@media (max-width: 600px) {
    .ann-category-header {
        padding: 10px 16px 8px;
        font-size: 12px;
    }
    .ann-item {
        padding: 10px 16px 10px 18px;
    }
    .announcements-panel .panel-header {
        padding: 14px 18px 10px;
    }
    .announcements-panel .panel-title {
        font-size: 16px;
    }
    .ann-list {
        max-height: 500px;
    }
}
