/* ========================================
   英迪国际大学 - 在线申请系统样式
   主色调: #e10000
   ======================================== */

/* CSS 变量 */
:root {
    --primary: #e10000;
    --primary-dark: #b80000;
    --primary-light: #ff1a1a;
    --primary-bg: #fff0f0;
    --text-primary: #1a1a1a;
    --text-secondary: #666666;
    --text-muted: #999999;
    --border-color: #e0e0e0;
    --border-light: #f0f0f0;
    --bg-white: #ffffff;
    --bg-gray: #f8f9fa;
    --bg-sidebar: #fafafa;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.1);
    --radius-sm: 6px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --transition: all 0.25s ease;
}

/* 重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
    font-size: 14px;
    line-height: 1.6;
    color: var(--text-primary);
    background: var(--bg-gray);
}

/* ========================================
   顶部导航
   ======================================== */
.top-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 24px;
    height: 60px;
    background: var(--bg-white);
    border-bottom: 1px solid var(--border-light);
    position: sticky;
    top: 0;
    z-index: 100;
}

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

.logo img {
    height: 36px;
    width: auto;
}

.logo-text {
    font-size: 18px;
    font-weight: 600;
    color: var(--primary);
}

.header-right {
    display: flex;
    align-items: center;
    gap: 24px;
}

.lang-switch {
    font-size: 13px;
    color: var(--text-secondary);
    cursor: pointer;
}

.user-menu {
    position: relative;
}

.user-trigger {
    display: flex;
    align-items: center;
    /* gap: 4px; */
    /* padding: 8px 12px; */
    /* cursor: pointer; */
    /* border-radius: var(--radius-sm); */
    /* transition: var(--transition); */
	gap: 8px;
    padding: 6px 14px;
    background: var(--primary-bg);
    border-radius: 20px;
    color: var(--primary);
    font-weight: 500;
}

.user-trigger:hover {
    background: var(--bg-gray);
}

.user-trigger i {
    font-size: 16px;
    color: var(--primary);
}

.user-dropdown {
    position: absolute;
    top: calc(100% + 4px);
    right: 0;
    background: var(--bg-white);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    min-width: 160px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-4px);
    transition: var(--transition);
    z-index: 100;
}

.user-dropdown.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.logout-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    color: var(--text-primary);
    text-decoration: none;
    font-size: 14px;
    transition: var(--transition);
    border-radius: var(--radius-md);
}

.logout-item:hover {
    background: var(--bg-gray);
}

.logout-item i {
    color: var(--primary);
    font-size: 16px;
}

/* ========================================
   主布局
   ======================================== */
.main-layout {
    display: flex;
    min-height: calc(100vh - 60px);
}

/* ========================================
   申请详情页（view 页，只读 + 打印）
   ======================================== */
.detail-section {
    background: var(--bg-white);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    padding: 18px 20px;
    margin-bottom: 16px;
}
.detail-section h4 {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0 0 14px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border-light);
}
.detail-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px 20px;
}
.detail-item .d-label {
    font-size: 12px;
    color: var(--text-secondary);
    margin-bottom: 3px;
}
.detail-item .d-value {
    font-size: 14px;
    color: var(--text-primary);
    word-break: break-all;
}
.detail-item.full {
    grid-column: 1 / -1;
}
.no-sub {
    color: var(--text-secondary);
    font-size: 13px;
    padding: 8px 0;
}
.sub-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}
.sub-table th,
.sub-table td {
    border: 1px solid var(--border-light);
    padding: 8px 10px;
    text-align: left;
    word-break: break-all;
}
.sub-table th {
    background: #f8f9fc;
    font-weight: 500;
    color: var(--text-secondary);
    white-space: nowrap;
}
.doc-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.doc-chip {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: #f3f6fb;
    border: 1px solid var(--border-light);
    border-radius: 6px;
    padding: 5px 10px;
    font-size: 13px;
    color: var(--text-primary);
}
.doc-chip a {
    color: #1a56db;
    text-decoration: none;
}
.doc-chip a:hover {
    text-decoration: underline;
}
.view-summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.view-summary-left .view-app-no {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
}
.view-summary-left .view-app-meta {
    font-size: 12px;
    color: var(--text-secondary);
    margin-top: 4px;
}
.view-summary-right .status-badge {
    display: inline-block;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 13px;
}
/* 打印：只保留详情内容 */
@media print {
    .top-header,
    .sidebar,
    .page-header-bar {
        display: none !important;
    }
    .main-layout {
        display: block;
    }
    .content-area {
        padding: 0 !important;
        margin: 0 !important;
        width: 100% !important;
        max-width: 100% !important;
    }
    .detail-section {
        border: 1px solid #ddd;
        break-inside: avoid;
        page-break-inside: avoid;
    }
    body {
        background: #fff;
    }
}


/* ========================================
   左侧导航
   ======================================== */
.sidebar {
    width: 260px;
    background: var(--bg-sidebar);
    border-right: 1px solid var(--border-light);
    padding: 20px 0;
    position: fixed;
    height: calc(100vh - 60px);
    overflow-y: auto;
}

.nav-section {
    padding: 0 16px;
}

.nav-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px;
    cursor: pointer;
    border-radius: var(--radius-md);
    transition: var(--transition);
    font-weight: 500;
    color: var(--text-primary);
}

.nav-header:hover {
    background: var(--primary-bg);
    color: var(--primary);
}

.nav-header i:first-child {
    font-size: 18px;
    color: var(--primary);
}

.nav-header .arrow {
    margin-left: auto;
    transition: transform 0.3s ease;
    color: var(--text-muted);
}

.nav-header.collapsed .arrow {
    transform: rotate(-90deg);
}

.nav-steps {
    list-style: none;
    padding: 8px 0 8px 40px;
    border-left: 2px solid var(--border-light);
    margin-left: 20px;
}

.nav-steps li {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    margin-bottom: 4px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: var(--transition);
    position: relative;
}

.nav-steps li::before {
    content: '';
    position: absolute;
    left: -43px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--border-color);
    border: 2px solid var(--bg-sidebar);
}

.nav-steps li:hover {
    background: var(--primary-bg);
}

.nav-steps li.active {
    background: var(--primary-bg);
    color: var(--primary);
    font-weight: 500;
}

.nav-steps li.active::before {
    background: var(--primary);
}

.nav-steps li.completed::before {
    background: var(--primary);
}

.step-num {
    width: 22px;
    height: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 11px;
    font-weight: 600;
    background: var(--border-light);
    color: var(--text-secondary);
}

.nav-steps li.active .step-num,
.nav-steps li.completed .step-num {
    background: var(--primary);
    color: white;
}

.step-name {
    font-size: 13px;
}

.nav-divider {
    height: 1px;
    background: var(--border-light);
    margin: 16px;
}

.nav-modules {
    list-style: none;
    padding: 0 16px;
}

.nav-modules li {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px;
    margin-bottom: 4px;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: var(--transition);
    color: var(--text-secondary);
}

.nav-modules li:hover {
    background: var(--primary-bg);
    color: var(--primary);
}

.nav-modules li i {
    font-size: 18px;
}

.nav-modules li span {
    font-size: 14px;
}

/* ========================================
   右侧内容区
   ======================================== */
.content-area {
    flex: 1;
    margin-left: 260px;
    padding: 32px;
    max-width: calc(100% - 260px);
}

.form-section {
    display: none;
    animation: fadeIn 0.3s ease;
}

.form-section.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.section-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 20px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 28px;
    padding-bottom: 16px;
    border-bottom: 2px solid var(--primary);
}

.section-title i {
    font-size: 24px;
    color: var(--primary);
}

/* ========================================
   表单网格
   ======================================== */
.form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px 24px;
    margin-bottom: 24px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form-group.full-width {
    grid-column: 1 / -1;
}

.form-group label {
    font-size: 13px;
    font-weight: 500;
    color: var(--text-primary);
}

.required {
    color: var(--primary);
    margin-left: 2px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    padding: 10px 14px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    font-size: 14px;
    color: var(--text-primary);
    background: var(--bg-white);
    transition: var(--transition);
    font-family: inherit;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(225, 0, 0, 0.08);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--text-muted);
}

.form-group input[readonly] {
    background: var(--bg-gray);
    cursor: not-allowed;
}

.form-group select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23999' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 36px;
}

/* ========================================
   自定义下拉组件（专业下拉：长文本行内横向滚动，列表不随内容撑宽）
   ======================================== */
.cs-wrap {
    position: relative;
}

/* 只读查看模式：提示条 + 自定义下拉/上传按钮禁用置灰 */
.readonly-banner {
    background: #eef4ff;
    border: 1px solid #c6d8f7;
    color: #1a56db;
    padding: 10px 16px;
    border-radius: 8px;
    margin: 0 0 16px;
    font-size: 13px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.cs-btn.disabled,
.file-upload-btn.disabled {
    pointer-events: none !important;
    opacity: .6;
    cursor: not-allowed !important;
}

.cs-btn {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    padding: 10px 14px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    font-size: 14px;
    color: var(--text-primary);
    background: var(--bg-white);
    transition: var(--transition);
}

.cs-btn:after {
    content: '';
    width: 9px;
    height: 9px;
    border-right: 2px solid #999;
    border-bottom: 2px solid #999;
    transform: rotate(45deg) translateY(-2px);
    margin-left: 12px;
    flex: 0 0 auto;
}

.cs-wrap.open .cs-btn {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(225, 0, 0, 0.08);
}

.cs-btn-text {
    flex: 1;
    min-width: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.cs-list {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: calc(100% + 4px);
    z-index: 60;
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    max-height: 220px;
    overflow-y: auto;
}

.cs-wrap.open .cs-list {
    display: block;
}

.cs-item {
    padding: 10px 14px;
    font-size: 14px;
    color: var(--text-primary);
    cursor: pointer;
    white-space: nowrap;
    overflow: hidden;
}

.cs-item:hover {
    background: #f5f5f5;
}

.cs-item.selected {
    color: var(--primary);
    background: #fff0f0;
}

.cs-item-inner {
    display: inline-block;
    white-space: nowrap;
}

/* 超长文本：鼠标悬停时从开头慢速滚动（单份文本，--cs-scroll 为溢出距离），
   滚完一遍自动停在末尾（完整内容可读），鼠标移开复位到起点，再次悬停从头滚动 */
.cs-item.autoscroll .cs-item-inner {
    transform: translateX(0);
    will-change: transform;
}

.cs-item.autoscroll:hover .cs-item-inner {
    animation: cs-marquee var(--cs-dur, 8s) 0.3s 1 forwards;
}

@keyframes cs-marquee {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(var(--cs-scroll, 0));
    }
}

.form-group textarea {
    resize: vertical;
    min-height: 80px;
}

/* 表单行 */
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

/* 联系信息行 */
.contact-info-row {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 16px;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid var(--border-light);
}

/* 手机号输入 */
.phone-input {
    display: flex;
    align-items: center;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    overflow: hidden;
    background: var(--bg-white);
}

.phone-input:focus-within {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(225, 0, 0, 0.08);
}

.country-code {
    padding: 10px 12px;
    background: var(--bg-gray);
    border-right: 1px solid var(--border-color);
    font-size: 13px;
    font-weight: 500;
    color: var(--text-secondary);
    white-space: nowrap;
}

.phone-input input {
    flex: 1;
    border: none !important;
    box-shadow: none !important;
    padding: 10px 14px !important;
}

/* 日期范围 */
.date-range {
    display: flex;
    align-items: center;
    gap: 8px;
}

.date-range input {
    flex: 1;
}

.date-range span {
    color: var(--text-muted);
    font-size: 13px;
}

/* ========================================
   折叠面板
   ======================================== */
.collapsible-panel {
    background: var(--bg-white);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    margin-bottom: 24px;
    overflow: hidden;
}

.panel-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 16px 20px;
    cursor: pointer;
    background: var(--bg-gray);
    transition: var(--transition);
}

.panel-header:hover {
    background: var(--primary-bg);
}

.panel-header i:first-child {
    font-size: 18px;
    color: var(--primary);
}

.panel-header span {
    font-weight: 500;
    flex: 1;
}

.panel-header .arrow {
    transition: transform 0.3s ease;
    color: var(--text-muted);
}

.panel-header.collapsed .arrow {
    transform: rotate(180deg);
}

.panel-body {
    padding: 20px;
    animation: slideDown 0.3s ease;
}

.panel-header.collapsed + .panel-body {
    display: none;
}

@keyframes slideDown {
    from { opacity: 0; max-height: 0; }
    to { opacity: 1; max-height: 1000px; }
}

/* ========================================
   提示框
   ======================================== */
.notice-box {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 14px 16px;
    background: #f0f7ff;
    border-left: 3px solid #1890ff;
    border-radius: var(--radius-sm);
    margin-bottom: 20px;
}

.notice-box i {
    font-size: 18px;
    color: #1890ff;
    margin-top: 1px;
}

.notice-box p {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.5;
}

.notice-box.warning {
    background: #fffbe6;
    border-left-color: #faad14;
}

.notice-box.warning i {
    color: #faad14;
}

.notice-box.info {
    background: #f6ffed;
    border-left-color: #52c41a;
}

.notice-box.info i {
    color: #52c41a;
}

.naming-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 14px;
    margin-top: 10px;
    font-size: 13px;
    color: var(--text-secondary);
}

.naming-grid span {
    background: #fff;
    border: 1px solid #e8e8e8;
    border-radius: 6px;
    padding: 4px 10px;
    line-height: 1.5;
}

/* ========================================
   复选框和单选框
   ======================================== */
.checkbox-group {
    margin-bottom: 16px;
}

.checkbox-label,
.radio-label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-size: 14px;
    color: var(--text-primary);
}

.checkbox-label input[type="checkbox"],
.radio-label input[type="radio"] {
    width: 16px;
    height: 16px;
    accent-color: var(--primary);
    cursor: pointer;
}

.radio-group {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    padding: 8px 0;
}

.checkbox-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 8px 0;
}

.checkbox-list .checkbox-label {
    padding: 8px 12px;
    background: var(--bg-gray);
    border-radius: var(--radius-sm);
    transition: var(--transition);
}

.checkbox-list .checkbox-label:hover {
    background: var(--primary-bg);
}

/* ========================================
   地址区块
   ======================================== */
.address-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.address-block h4 {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.address-block .form-group {
    margin-bottom: 12px;
}

/* ========================================
   列表项 (学历/工作/推荐人)
   ======================================== */
.education-list,
.work-list,
.referee-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 16px;
}

.education-item,
.work-item,
.referee-item {
    background: var(--bg-white);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    padding: 20px;
}

.item-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}

.item-header h4 {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
}

.btn-icon {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    background: transparent;
    color: var(--text-muted);
    cursor: pointer;
    border-radius: var(--radius-sm);
    transition: var(--transition);
}

.btn-icon:hover {
    background: #ffebee;
    color: var(--primary);
}

/* ========================================
   按钮
   ======================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px 24px;
    border: none;
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    font-family: inherit;
}

.btn-primary {
    background: var(--primary);
    color: white;
}

.btn-primary:hover {
    background: var(--primary-dark);
    box-shadow: var(--shadow-md);
}

.btn-secondary {
    background: var(--bg-white);
    color: var(--text-secondary);
    border: 1px solid var(--border-color);
}

.btn-secondary:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: var(--primary-bg);
}

.btn-outline {
    background: var(--bg-white);
    color: var(--primary);
    border: 1px solid var(--primary);
}

.btn-outline:hover {
    background: var(--primary);
    color: #fff;
    box-shadow: var(--shadow-md);
}

/* 自定义确认弹窗（替换原生 confirm） */
.apply-confirm-mask {
    position: fixed; inset: 0; z-index: 9999;
    background: rgba(20, 32, 54, 0.45);
    display: flex; align-items: center; justify-content: center;
}
.apply-confirm-card {
    width: min(380px, calc(100vw - 48px));
    background: #fff; border-radius: 12px;
    box-shadow: 0 12px 32px rgba(20, 32, 54, 0.18);
    overflow: hidden;
}
.apply-confirm-title {
    padding: 16px 20px 0; font-size: 16px; font-weight: 600; color: var(--text-primary);
}
.apply-confirm-msg {
    padding: 10px 20px 18px; font-size: 14px; line-height: 1.9; color: var(--text-primary);
    white-space: normal; word-break: break-word;
}
.apply-confirm-btns {
    display: flex; justify-content: flex-end; gap: 10px;
    padding: 14px 20px; border-top: 1px solid var(--border-light, #eef0f4);
}
.apply-confirm-btns .btn { padding: 8px 18px; }

.btn-add {
    background: transparent;
    color: var(--primary);
    border: 1px dashed var(--primary);
    padding: 10px 20px;
    margin-bottom: 24px;
}

.btn-add:hover {
    background: var(--primary-bg);
}

.form-actions {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    padding-top: 24px;
    border-top: 1px solid var(--border-light);
    margin-top: 8px;
}

/* ========================================
   滚动条美化
   ======================================== */
.sidebar::-webkit-scrollbar {
    width: 4px;
}

.sidebar::-webkit-scrollbar-track {
    background: transparent;
}

.sidebar::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 2px;
}

/* ========================================
   响应式
   ======================================== */
@media (max-width: 1024px) {
    .sidebar {
        width: 220px;
    }
    
    .content-area {
        margin-left: 220px;
        max-width: calc(100% - 220px);
        padding: 24px;
    }
}

@media (max-width: 768px) {
    .sidebar {
        transform: translateX(-100%);
        transition: transform 0.3s ease;
        z-index: 99;
    }
    
    .sidebar.open {
        transform: translateX(0);
    }
    
    .content-area {
        margin-left: 0;
        max-width: 100%;
        padding: 16px;
    }
    
    .form-grid {
        grid-template-columns: 1fr;
    }
    
    .address-grid {
        grid-template-columns: 1fr;
    }
    
    .form-row,
    .contact-info-row {
        grid-template-columns: 1fr;
    }
    
    .radio-group {
        flex-direction: column;
        gap: 10px;
    }
    
    .form-actions {
        flex-direction: column;
    }
    
    .form-actions .btn {
        width: 100%;
    }
}

/* ========================================
   上传材料表格
   ======================================== */
.upload-table-wrapper {
    background: var(--bg-white);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    overflow: hidden;
    margin-bottom: 24px;
}

.upload-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.upload-table thead {
    background: var(--bg-gray);
}

.upload-table th {
    padding: 14px 16px;
    text-align: left;
    font-weight: 600;
    color: var(--text-primary);
    border-bottom: 1px solid var(--border-light);
    font-size: 13px;
}

.upload-table td {
    padding: 16px;
    border-bottom: 1px solid var(--border-light);
    vertical-align: top;
}

.upload-table tbody tr:hover {
    background: #fffafa;
}

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

.doc-name {
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.doc-desc {
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 8px;
}

.doc-files {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.file-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    background: #f6ffed;
    border: 1px solid #b7eb8f;
    border-radius: 4px;
    font-size: 12px;
    color: #389e0d;
    max-width: fit-content;
}

.file-tag .remove-file {
    cursor: pointer;
    color: #999;
    transition: color 0.2s;
}

.file-tag .remove-file:hover {
    color: var(--primary);
}

/* 补充材料上传成功后的行内完成徽标 */
.file-done-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-top: 4px;
    color: #389e0d;
    font-size: 12px;
    font-weight: 600;
}

.file-done-badge i {
    font-size: 14px;
}

/* 附件删除按钮（已上传附件） */
.file-tag .file-tag-del {
    border: none;
    background: none;
    cursor: pointer;
    color: #999;
    padding: 0 2px;
    font-size: 13px;
    line-height: 1;
    transition: color 0.2s;
}

.file-tag .file-tag-del:hover {
    color: #e35d5d;
}

.tag-optional {
    font-size: 12px;
    color: var(--text-muted);
    font-weight: 400;
}

.guideline-link {
    font-size: 12px;
    color: var(--primary);
    text-decoration: none;
    margin-left: 6px;
}

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

.file-upload-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    font-size: 13px;
    color: var(--text-secondary);
    cursor: pointer;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.file-upload-btn input[type="file"] {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}

.file-upload-btn:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: var(--primary-bg);
}

.file-upload-btn.uploaded {
    background: #f6ffed;
    border-color: #52c41a;
    color: #52c41a;
}

.file-upload-btn span {
    pointer-events: none;
}

.file-upload-btn i {
    pointer-events: none;
}

.doc-files:empty::before {
    content: '- 未上传 -';
    font-size: 13px;
    color: var(--text-muted);
    font-style: italic;
}

/* 上传进度 */
.upload-progress {
    background: var(--bg-white);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    padding: 20px;
    margin-bottom: 24px;
}

.progress-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    font-size: 14px;
    font-weight: 500;
}

.progress-count {
    color: var(--primary);
    font-weight: 600;
}

.progress-bar {
    height: 8px;
    background: var(--border-light);
    border-radius: 4px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: var(--primary);
    border-radius: 4px;
    transition: width 0.4s ease;
}

/* ========================================
   声明 / 确认提交
   ======================================== */
.declaration-box {
    background: var(--bg-white);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    padding: 24px;
}

.declaration-header {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border-light);
}

.declaration-header i {
    color: var(--primary);
    font-size: 20px;
}

.notice-box {
    display: flex;
    gap: 12px;
    padding: 16px;
    border-radius: var(--radius-sm);
    margin-bottom: 24px;
}

.notice-box.warning {
    background: #fffbe6;
    border: 1px solid #ffe58f;
}

.notice-box i {
    font-size: 20px;
    color: #faad14;
    flex-shrink: 0;
    margin-top: 2px;
}

.declaration-check {
    margin-bottom: 24px;
    padding: 16px;
    background: var(--bg-gray);
    border-radius: var(--radius-sm);
}

.declaration-check .checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    cursor: pointer;
}

.declaration-check .checkbox-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin-top: 2px;
    accent-color: var(--primary);
    cursor: pointer;
    flex-shrink: 0;
}

.declaration-actions {
    display: flex;
    justify-content: space-between;
    gap: 12px;
}

.declaration-actions .btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* ========================================
   申请状态
   ======================================== */
.status-info-card {
    background: var(--bg-white);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    padding: 24px;
    margin-bottom: 32px;
}

.status-row {
    display: flex;
    padding: 12px 0;
    border-bottom: 1px solid var(--border-light);
}

.status-row:last-child {
    border-bottom: none;
}

.status-label {
    width: 120px;
    font-weight: 500;
    color: var(--text-primary);
    flex-shrink: 0;
}

.status-value {
    color: var(--text-secondary);
}

.status-timeline-section {
    background: var(--bg-white);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    padding: 24px;
}

.timeline-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 28px;
    color: var(--text-primary);
}

.status-timeline {
    display: flex;
    justify-content: space-between;
    position: relative;
    padding: 0 10px;
}

.status-timeline::before {
    content: '';
    position: absolute;
    top: 20px;
    left: 40px;
    right: 40px;
    height: 2px;
    background: var(--border-color);
    z-index: 0;
}

.timeline-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    position: relative;
    z-index: 1;
    flex: 1;
    max-width: 140px;
}

.timeline-dot {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--bg-white);
    border: 2px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-muted);
    margin-bottom: 12px;
    transition: var(--transition);
}

.timeline-item.active .timeline-dot {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
}

.timeline-item.completed .timeline-dot {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
}

.timeline-content {
    padding: 0 4px;
}

.timeline-step {
    font-size: 12px;
    color: var(--text-secondary);
    line-height: 1.5;
    margin-bottom: 4px;
}

.timeline-item.active .timeline-step {
    color: var(--text-primary);
    font-weight: 500;
}

.timeline-date {
    font-size: 12px;
    color: var(--primary);
    font-weight: 500;
    margin-bottom: 2px;
}

.timeline-status {
    font-size: 12px;
    color: var(--text-muted);
}

.timeline-download {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-top: 6px;
    padding: 5px 10px;
    font-size: 12px;
    color: var(--primary);
    border: 1px solid var(--primary);
    border-radius: var(--radius-sm);
    background: transparent;
    text-decoration: none;
    transition: var(--transition);
}

.timeline-download:hover {
    background: var(--primary);
    color: #fff;
}

.timeline-download i {
    font-size: 13px;
}

/* 响应式：时间线垂直排列 */
@media (max-width: 768px) {
    .status-timeline {
        flex-direction: column;
        align-items: flex-start;
        padding: 0;
    }
    .status-timeline::before {
        top: 0;
        bottom: 0;
        left: 19px;
        right: auto;
        width: 2px;
        height: auto;
    }
    .timeline-item {
        flex-direction: row;
        align-items: flex-start;
        text-align: left;
        max-width: 100%;
        width: 100%;
        margin-bottom: 20px;
    }
    .timeline-dot {
        margin-bottom: 0;
        margin-right: 16px;
        flex-shrink: 0;
    }
    .timeline-content {
        padding-top: 8px;
    }
}

/* ========================================
   我的申请 / 申请列表
   ======================================== */
.page-header-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.page-title {
    font-size: 20px;
    font-weight: 600;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 10px;
}

.page-title i {
    color: var(--primary);
    font-size: 22px;
}

.app-legend {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 20px;
    padding: 16px 20px;
    background: var(--bg-white);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
}

.legend-title {
    font-weight: 500;
    font-size: 14px;
    color: var(--text-primary);
}

.legend-items {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 20px;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: var(--text-secondary);
}

.legend-dot {
    width: 12px;
    height: 12px;
    border-radius: 2px;
}

.legend-dot.draft { background: #faad14; }
.legend-dot.submitted { background: #52c41a; }
.legend-dot.closed { background: #ff4d4f; }

.app-table-wrap {
    background: var(--bg-white);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    overflow: hidden;
    margin-bottom: 16px;
}

.app-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}

.app-table thead {
    background: var(--bg-gray);
}

.app-table th,
.app-table td {
    padding: 14px 16px;
    text-align: left;
    border-bottom: 1px solid var(--border-light);
}

.app-table th {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 13px;
}

.app-table td {
    color: var(--text-secondary);
}

.app-table tbody tr:hover {
    background: var(--bg-gray);
}

.status-badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
}

.status-badge.draft {
    background: #fffbe6;
    color: #d48806;
    border: 1px solid #ffe58f;
}

.status-badge.submitted {
    background: #f6ffed;
    color: #389e0d;
    border: 1px solid #b7eb8f;
}

.status-badge.closed {
    background: #fff2f0;
    color: #cf1322;
    border: 1px solid #ffa39e;
}

.btn-sm {
    padding: 6px 14px;
    font-size: 13px;
}

/* 提交前检查（确认提交页内信息汇总） */
.pre-check-box {
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    padding: 14px 18px;
    margin-bottom: 18px;
}
.pre-check-header {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 12px;
}
.pre-check-header i {
    color: var(--primary);
}
.pre-check-body {
    font-size: 13px;
}
/* 确认提交页复用详情页区块样式（detail-section / detail-grid / view-summary 等见详情页样式段） */

.app-table-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    font-size: 13px;
    color: var(--text-secondary);
}

.pagination {
    display: flex;
    align-items: center;
    gap: 8px;
}

.page-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: var(--radius-sm);
    font-size: 13px;
    color: var(--text-secondary);
    background: var(--bg-white);
    border: 1px solid var(--border-light);
}

.page-num.active {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
}

/* 时间线待处理状态置灰 */
.timeline-item.pending .timeline-step { color: var(--text-muted, #9ca3af); }
.timeline-item.pending .timeline-status { color: var(--text-muted, #9ca3af); }

/* 申请状态徽章补充配色（申请进行中统一绿色，与 submitted 一致） */
.status-badge.pre-offer,
.status-badge.final-review,
.status-badge.offer {
    background: #f6ffed;
    color: #389e0d;
    border: 1px solid #b7eb8f;
}
.status-badge.rejected {
    background: #fff2f0;
    color: #cf1322;
    border: 1px solid #ffa39e;
}

/* ========================================
   打印样式
   ======================================== */
@media print {
    .sidebar,
    .top-header,
    .form-actions {
        display: none !important;
    }
    
    .content-area {
        margin-left: 0;
        max-width: 100%;
    }
    
    .form-section {
        display: block !important;
        page-break-after: always;
    }
}

/* ========================================
   缴费说明步骤（申请费用）
   ======================================== */
.fee-notice {
    background: var(--primary-bg); border: 1px solid #ffd6d6;
    border-radius: var(--radius-md); padding: 14px 18px; margin-bottom: 18px;
    display: flex; align-items: flex-start; gap: 10px; font-size: 14px; line-height: 1.7;
}
.fee-notice i { color: var(--primary); font-size: 18px; margin-top: 2px; flex-shrink: 0; }
.fee-notice strong { color: var(--primary); }
.fee-amount {
    display: flex; align-items: center; gap: 18px; flex-wrap: wrap;
    background: var(--primary-bg); border: 1px solid #ffd6d6; border-radius: var(--radius-md);
    padding: 16px 20px; margin-bottom: 18px;
}
.fee-amount .amount { font-size: 30px; font-weight: 700; color: var(--primary); }
.fee-amount .amount small { font-size: 16px; font-weight: 600; margin-left: 4px; }
.fee-amount .amount-desc { color: var(--text-secondary); font-size: 13px; line-height: 1.6; }
.fee-step {
    background: var(--bg-white); border: 1px solid var(--border-light);
    border-radius: var(--radius-lg); padding: 20px 22px; margin-bottom: 16px;
    box-shadow: var(--shadow-sm);
}
.fee-step-title {
    display: flex; align-items: flex-start; gap: 10px;
    font-size: 15px; font-weight: 600; color: var(--text-primary);
    margin-bottom: 12px; line-height: 1.6;
}
.fee-step-title .step-no {
    flex-shrink: 0; width: 24px; height: 24px; border-radius: 50%;
    background: var(--primary); color: #fff; font-size: 13px; font-weight: 600;
    display: flex; align-items: center; justify-content: center; margin-top: 1px;
}
.fee-step-title b { color: var(--primary-dark); font-weight: 600; }
.fee-step img {
    display: block; max-width: calc(100% - 68px); height: auto;
    border: 1px solid var(--border-light); border-radius: var(--radius-md);
    margin: 6px auto 2px;
}
.fee-step-caption {
    margin: 4px 0 0 34px; font-size: 12px; color: var(--text-muted); line-height: 1.6;
    display: flex; align-items: flex-start; gap: 4px;
}
.fee-step-caption i { color: var(--primary); margin-top: 2px; }
.fee-tip {
    background: #fffbe6; border: 1px solid #ffe58f; border-radius: var(--radius-md);
    padding: 13px 16px; font-size: 13px; color: #874d00; line-height: 1.7;
    display: flex; align-items: flex-start; gap: 8px; margin-top: 18px;
}
.fee-tip i { font-size: 16px; margin-top: 2px; flex-shrink: 0; }

/* ========== 材料补充要求（学生端） ========== */
.supplement-alert {
    background: #fff1f0; border: 1px solid #ffa39e; border-radius: var(--radius-md);
    padding: 16px 18px; margin-bottom: 16px;
}
.supplement-alert.done {
    background: #f6ffed; border-color: #b7eb8f;
    display: flex; align-items: flex-start; gap: 8px; font-size: 14px;
}
.supplement-alert.done i { color: #389e0d; font-size: 18px; margin-top: 2px; flex-shrink: 0; }
.supplement-alert.done strong { color: #135200; }
.supplement-alert-head {
    display: flex; align-items: center; gap: 8px;
    font-size: 15px; color: #cf1322; margin-bottom: 6px;
}
.supplement-alert-head i { font-size: 18px; }
.supplement-tip { font-size: 13px; color: #820014; margin-bottom: 10px; }
.supplement-item {
    background: #fff; border: 1px solid #ffccc7; border-radius: var(--radius-sm);
    padding: 10px 12px; margin-bottom: 8px;
}
.supplement-item-head {
    display: flex; align-items: center; justify-content: space-between; margin-bottom: 4px;
}
.supplement-doc { font-size: 14px; font-weight: 600; color: var(--text-primary); }
.supplement-badge {
    background: #cf1322; color: #fff; font-size: 12px; line-height: 1;
    padding: 4px 8px; border-radius: 10px;
}
.supplement-note { font-size: 13px; color: var(--text-secondary); line-height: 1.6; margin: 0; }
.supplement-alert .btn-sm { margin-top: 6px; }
.supplement-go { margin-top: 10px; }

.upload-supplement-banner {
    background: #fff1f0; border: 1px solid #ffa39e; border-radius: var(--radius-md);
    padding: 12px 16px; font-size: 13px; color: #820014; line-height: 1.7;
    display: flex; align-items: flex-start; gap: 8px; margin-bottom: 16px;
}
.upload-supplement-banner i { font-size: 16px; margin-top: 2px; flex-shrink: 0; }
.upload-supplement-close {
    margin-left: auto; cursor: pointer; color: #cf1322; font-size: 14px; flex-shrink: 0;
}

.need-supplement-tag {
    display: inline-block; background: #cf1322; color: #fff; font-size: 11px; line-height: 1;
    padding: 3px 7px; border-radius: 9px; margin-left: 8px; vertical-align: 1px;
}

/* 补充材料：操作列"补充完成"按钮（与"添加文件"同排，浅绿描边弱化视觉） */
.doc-action {
    display: flex;
    align-items: center;
    gap: 6px;
}

.supp-done-btn {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    padding: 8px 10px;
    border: 1px solid #a7d3b4;
    border-radius: var(--radius-sm);
    background: #e6f4ea;
    color: #16a34a;
    font-size: 12px;
    cursor: pointer;
    transition: var(--transition);
    white-space: nowrap;
}

.supp-done-btn:hover {
    background: #d3ecd9;
    border-color: #16a34a;
}

.supp-done-btn i {
    font-size: 12px;
}

.supp-completed-badge {
    display: inline-flex; align-items: center; gap: 4px;
    margin-left: 8px; padding: 3px 10px; border-radius: 9px;
    background: #e6f4ea; color: #16a34a; font-size: 11px; line-height: 1; font-weight: 600;
    vertical-align: 1px;
}

/* ========== 问题反馈（学生端） ========== */
.feedback-intro {
    font-size: 13px; color: var(--text-secondary); line-height: 1.7;
    margin: 0 0 18px;
}
.feedback-form-card, .feedback-list-card {
    background: var(--bg-white); border: 1px solid var(--border-color);
    border-radius: var(--radius-lg); padding: 20px 22px; margin-bottom: 16px;
    box-shadow: var(--shadow-sm);
}
.feedback-list-card .timeline-title { margin-bottom: 12px; }
.fb-item {
    border: 1px solid var(--border-light); border-radius: var(--radius-md);
    padding: 12px 14px; margin-bottom: 10px;
}
.fb-item-head {
    display: flex; align-items: center; justify-content: space-between; margin-bottom: 6px;
}
.fb-title { font-size: 14px; font-weight: 600; color: var(--text-primary); }
.fb-status { font-size: 12px; line-height: 1; padding: 4px 9px; border-radius: 10px; }
.fb-status.wait { background: #fff7e6; color: #d46b08; }
.fb-status.done { background: #f6ffed; color: #389e0d; }
.fb-content { font-size: 13px; color: var(--text-primary); line-height: 1.7; margin: 0 0 4px; }
.fb-meta { font-size: 12px; color: var(--text-muted); margin: 0 0 4px; }
.fb-reply {
    background: #f6ffed; border: 1px solid #b7eb8f; border-radius: var(--radius-sm);
    padding: 10px 12px; margin-top: 8px;
}
.fb-reply-head {
    font-size: 12px; color: #389e0d; margin-bottom: 4px;
    display: flex; align-items: center; gap: 4px;
}
.fb-reply p { font-size: 13px; color: var(--text-primary); line-height: 1.7; margin: 0; }

/* ===== 消息通知（右上角铃铛）===== */
.notify-wrap { position: relative; }
.notify-btn { position: relative; width: 36px; height: 36px; display: flex; align-items: center; justify-content: center; border-radius: 50%; color: var(--text-secondary, #5b6472); background: transparent; border: none; cursor: pointer; font-size: 18px; transition: background .2s; }
.notify-btn:hover { background: rgba(0, 0, 0, .05); }
.notify-badge { position: absolute; top: 0; right: -2px; min-width: 16px; height: 16px; padding: 0 4px; border-radius: 8px; background: #ff4d4f; color: #fff; font-size: 11px; line-height: 16px; text-align: center; display: none; align-items: center; justify-content: center; font-weight: 600; }
.notify-dropdown { position: absolute; right: 0; top: 44px; width: 320px; max-height: 420px; overflow-y: auto; background: #fff; border: 1px solid #e5e7eb; border-radius: 10px; box-shadow: 0 8px 24px rgba(0, 0, 0, .12); display: none; z-index: 1000; }
.notify-dropdown.show { display: block; }
.notify-head { display: flex; align-items: center; justify-content: space-between; padding: 12px 14px; border-bottom: 1px solid #f0f0f0; font-weight: 600; font-size: 14px; }
.notify-read-all { border: none; background: none; color: #0b5ed7; font-size: 13px; cursor: pointer; padding: 0; }
.notify-read-all:hover { text-decoration: underline; }
.notify-list { padding: 4px 0; }
.notify-item { display: block; padding: 10px 14px; text-decoration: none; color: inherit; border-bottom: 1px solid #f5f5f5; }
.notify-item:last-child { border-bottom: none; }
.notify-item:hover { background: #f8f9fb; }
.notify-item.unread { background: #f0f6ff; }
.notify-item-head { display: flex; align-items: center; gap: 6px; }
.notify-item-title { font-size: 14px; font-weight: 600; flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.notify-dot { width: 8px; height: 8px; border-radius: 50%; background: #ff4d4f; flex: none; }
.notify-time { font-size: 12px; color: #9ca3af; flex: none; }
.notify-item-content { margin: 4px 0 0; font-size: 13px; color: #6b7280; line-height: 1.5; }
.notify-empty { padding: 24px; text-align: center; color: #9ca3af; font-size: 13px; }

/* 消息通知定位到反馈卡片时的短暂高亮 */
.fb-item.fb-focus { box-shadow: 0 0 0 3px rgba(11, 94, 215, .25); border-radius: 10px; transition: box-shadow .3s; }
