/* ============================================
   好哒商户入网系统 - 样式表
   ============================================ */

:root {
    --primary: #FF6B35;
    --primary-dark: #E55A2B;
    --primary-light: #FFE8E0;
    --secondary: #2B3A67;
    --accent: #FFB627;
    --success: #22C55E;
    --danger: #EF4444;
    --warning: #F59E0B;
    --info: #3B82F6;

    --bg-page: #F5F6FA;
    --bg-card: #FFFFFF;
    --bg-input: #F9FAFB;
    --bg-hover: #F3F4F6;

    --text-primary: #1F2937;
    --text-secondary: #6B7280;
    --text-light: #9CA3AF;
    --text-white: #FFFFFF;

    --border-color: #E5E7EB;
    --border-focus: #FF6B35;

    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;
    --radius-xl: 24px;

    --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.08);
    --shadow-lg: 0 8px 32px rgba(0,0,0,0.12);

    --transition: all 0.3s ease;
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
    background: var(--bg-page);
    color: var(--text-primary);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

a { color: var(--primary); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--primary-dark); }

/* ==================== 顶部导航 ==================== */
.navbar {
    background: var(--bg-card);
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 100;
}

.navbar-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.navbar-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary);
}

.navbar-brand .logo {
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 16px;
    font-weight: 800;
}

.navbar-nav {
    display: flex;
    gap: 32px;
    align-items: center;
}

.navbar-nav a {
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 500;
}

.navbar-nav a:hover, .navbar-nav a.active {
    color: var(--primary);
}

.navbar-nav .btn {
    color: white;
}

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

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

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

.btn-outline {
    background: transparent;
    border: 2px solid var(--border-color);
    color: var(--text-secondary);
}
.btn-outline:hover { border-color: var(--primary); color: var(--primary); }

.btn-success { background: var(--success); color: white; }
.btn-danger { background: var(--danger); color: white; }
.btn-sm { padding: 6px 16px; font-size: 13px; }
.btn-lg { padding: 14px 32px; font-size: 16px; }
.btn-block { width: 100%; }
.btn:disabled { opacity: 0.5; cursor: not-allowed; }

/* ==================== 首页 Hero ==================== */
.hero {
    background: linear-gradient(135deg, #FF6B35 0%, #FF9558 50%, #FFB627 100%);
    color: white;
    padding: 80px 24px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 600px;
    height: 600px;
    background: rgba(255,255,255,0.08);
    border-radius: 50%;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -10%;
    width: 400px;
    height: 400px;
    background: rgba(255,255,255,0.06);
    border-radius: 50%;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    margin: 0 auto;
}

.hero h1 {
    font-size: 42px;
    font-weight: 800;
    margin-bottom: 16px;
    letter-spacing: -1px;
}

.hero p {
    font-size: 18px;
    opacity: 0.95;
    margin-bottom: 32px;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 48px;
    margin-top: 40px;
}

.hero-stat {
    text-align: center;
}

.hero-stat .num {
    font-size: 32px;
    font-weight: 800;
}

.hero-stat .label {
    font-size: 14px;
    opacity: 0.85;
}

/* ==================== 容器 ==================== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.section {
    padding: 64px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 48px;
}

.section-title h2 {
    font-size: 32px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 12px;
}

.section-title p {
    font-size: 16px;
    color: var(--text-secondary);
}

/* ==================== 流程卡片 ==================== */
.process-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.process-card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: 32px 24px;
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    position: relative;
}

.process-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
}

.process-card .step-num {
    width: 48px;
    height: 48px;
    background: var(--primary-light);
    color: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: 700;
    margin: 0 auto 16px;
}

.process-card h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 8px;
}

.process-card p {
    font-size: 14px;
    color: var(--text-secondary);
}

/* ==================== 主体类型卡片 ==================== */
.entity-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    margin-bottom: 32px;
}

.entity-card {
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 20px;
    cursor: pointer;
    transition: var(--transition);
    text-align: center;
    background: var(--bg-card);
}

.entity-card:hover {
    border-color: var(--primary);
    background: var(--primary-light);
}

.entity-card.selected {
    border-color: var(--primary);
    background: var(--primary-light);
    box-shadow: 0 0 0 3px rgba(255,107,53,0.15);
}

.entity-card .icon {
    font-size: 32px;
    margin-bottom: 8px;
}

.entity-card h4 {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 4px;
}

.entity-card p {
    font-size: 12px;
    color: var(--text-secondary);
}

/* ==================== 收款方式选择 ==================== */
.collection-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-bottom: 32px;
}

.collection-card {
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 24px;
    cursor: pointer;
    transition: var(--transition);
    text-align: center;
    background: var(--bg-card);
}

.collection-card:hover {
    border-color: var(--primary);
}

.collection-card.selected {
    border-color: var(--primary);
    background: var(--primary-light);
    box-shadow: 0 0 0 3px rgba(255,107,53,0.15);
}

.collection-card .icon {
    font-size: 28px;
    margin-bottom: 8px;
}

.collection-card h4 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 4px;
}

.collection-card p {
    font-size: 12px;
    color: var(--text-secondary);
}

/* ==================== 表单 ==================== */
.form-card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: 40px;
    box-shadow: var(--shadow-md);
    margin-bottom: 24px;
}

.form-group {
    margin-bottom: 20px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-row-3 {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 20px;
}

.form-label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 6px;
}

.form-label .required {
    color: var(--danger);
    margin-left: 2px;
}

.form-label .hint {
    font-size: 12px;
    font-weight: 400;
    color: var(--text-light);
    margin-left: 8px;
}

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

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
    outline: none;
    border-color: var(--border-focus);
    background: white;
    box-shadow: 0 0 0 3px rgba(255,107,53,0.1);
}

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

.form-input.error,
.form-select.error {
    border-color: var(--danger);
    background: #FEF2F2;
}

.form-error {
    font-size: 12px;
    color: var(--danger);
    margin-top: 4px;
    display: none;
}

.form-error.show {
    display: block;
}

/* ==================== 上传组件 ==================== */
.upload-group {
    margin-bottom: 24px;
}

.upload-label {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
}

.upload-label .name {
    font-size: 14px;
    font-weight: 600;
}

.upload-label .required {
    color: var(--danger);
}

.upload-label .optional {
    font-size: 12px;
    color: var(--text-light);
    font-weight: 400;
}

.upload-area {
    border: 2px dashed var(--border-color);
    border-radius: var(--radius-md);
    padding: 24px;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    background: var(--bg-input);
    position: relative;
    min-height: 140px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.upload-area:hover {
    border-color: var(--primary);
    background: var(--primary-light);
}

.upload-area.has-file {
    border-style: solid;
    border-color: var(--success);
    padding: 0;
    overflow: hidden;
}

.upload-area .upload-icon {
    font-size: 32px;
    margin-bottom: 8px;
}

.upload-area .upload-text {
    font-size: 14px;
    color: var(--text-secondary);
}

.upload-area .upload-hint {
    font-size: 12px;
    color: var(--text-light);
    margin-top: 4px;
}

.upload-preview {
    width: 100%;
    max-height: 200px;
    object-fit: cover;
    border-radius: var(--radius-sm);
}

.upload-remove {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 28px;
    height: 28px;
    background: rgba(0,0,0,0.6);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
}

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

/* ==================== 步骤条 ==================== */
.steps-bar {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 40px;
    flex-wrap: wrap;
    gap: 8px;
}

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

.step-circle {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--border-color);
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    font-weight: 700;
    transition: var(--transition);
    flex-shrink: 0;
}

.step-item.active .step-circle {
    background: var(--primary);
    color: white;
}

.step-item.completed .step-circle {
    background: var(--success);
    color: white;
}

.step-item .step-label {
    font-size: 14px;
    color: var(--text-secondary);
    font-weight: 500;
}

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

.step-item.completed .step-label {
    color: var(--text-primary);
}

.step-connector {
    width: 48px;
    height: 2px;
    background: var(--border-color);
    margin: 0 4px;
}

.step-connector.completed {
    background: var(--success);
}

/* ==================== 步骤内容 ==================== */
.step-content {
    display: none;
    animation: fadeIn 0.4s ease;
}

.step-content.active {
    display: block;
}

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

/* ==================== 步骤导航按钮 ==================== */
.step-nav {
    display: flex;
    justify-content: space-between;
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid var(--border-color);
}

/* ==================== 材料清单提示 ==================== */
.material-hint {
    background: #FFF7ED;
    border: 1px solid #FDBA74;
    border-radius: var(--radius-md);
    padding: 16px 20px;
    margin-bottom: 24px;
    display: flex;
    gap: 12px;
    align-items: flex-start;
}

.material-hint .icon {
    font-size: 20px;
    flex-shrink: 0;
}

.material-hint .content {
    font-size: 14px;
    color: #9A3412;
    line-height: 1.6;
}

.material-hint .content strong {
    color: #7C2D12;
}

/* ==================== 提交成功页 ==================== */
.success-page {
    text-align: center;
    padding: 60px 24px;
}

.success-icon {
    width: 80px;
    height: 80px;
    background: var(--success);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
    margin: 0 auto 24px;
    animation: bounceIn 0.6s ease;
}

@keyframes bounceIn {
    0% { transform: scale(0); }
    60% { transform: scale(1.2); }
    100% { transform: scale(1); }
}

.success-page h2 {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 12px;
}

.success-page p {
    font-size: 16px;
    color: var(--text-secondary);
    margin-bottom: 32px;
}

.apply-no-box {
    display: inline-block;
    background: var(--bg-input);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 16px 32px;
    margin-bottom: 32px;
}

.apply-no-box .label {
    font-size: 13px;
    color: var(--text-light);
    margin-bottom: 4px;
}

.apply-no-box .value {
    font-size: 24px;
    font-weight: 700;
    color: var(--primary);
    letter-spacing: 1px;
}

/* ==================== 管理后台 ==================== */
.admin-header {
    background: var(--bg-card);
    box-shadow: var(--shadow-sm);
    padding: 16px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.admin-header h1 {
    font-size: 20px;
    font-weight: 700;
}

.admin-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-bottom: 24px;
}

.stat-card {
    background: var(--bg-card);
    border-radius: var(--radius-md);
    padding: 20px;
    box-shadow: var(--shadow-sm);
}

.stat-card .label {
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 4px;
}

.stat-card .value {
    font-size: 28px;
    font-weight: 700;
    color: var(--text-primary);
}

.stat-card.primary .value { color: var(--primary); }
.stat-card.success .value { color: var(--success); }
.stat-card.warning .value { color: var(--warning); }

/* ==================== 表格 ==================== */
.data-table {
    width: 100%;
    background: var(--bg-card);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
}

.data-table table {
    width: 100%;
    border-collapse: collapse;
}

.data-table th {
    background: var(--bg-input);
    padding: 12px 16px;
    text-align: left;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-secondary);
    border-bottom: 1px solid var(--border-color);
    white-space: nowrap;
}

.data-table td {
    padding: 12px 16px;
    font-size: 14px;
    border-bottom: 1px solid var(--border-color);
}

.data-table tr:hover {
    background: var(--bg-hover);
}

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

/* ==================== 状态标签 ==================== */
.status-tag {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
}

.status-pending { background: #FEF3C7; color: #92400E; }
.status-approved { background: #D1FAE5; color: #065F46; }
.status-rejected { background: #FEE2E2; color: #991B1B; }
.status-supplement { background: #DBEAFE; color: #1E40AF; }

/* ==================== 模态框 ==================== */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 1000;
    justify-content: center;
    align-items: center;
}

.modal-overlay.show {
    display: flex;
}

.modal {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    max-width: 800px;
    width: 90%;
    max-height: 85vh;
    overflow-y: auto;
    box-shadow: var(--shadow-lg);
}

.modal-header {
    padding: 20px 24px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.modal-header h3 {
    font-size: 18px;
    font-weight: 700;
}

.modal-close {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: var(--text-light);
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-sm);
}

.modal-close:hover {
    background: var(--bg-hover);
    color: var(--text-primary);
}

.modal-body {
    padding: 24px;
}

.modal-footer {
    padding: 16px 24px;
    border-top: 1px solid var(--border-color);
    display: flex;
    justify-content: flex-end;
    gap: 12px;
}

/* ==================== 详情查看 ==================== */
.detail-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 24px;
}

.detail-item {
    background: var(--bg-input);
    border-radius: var(--radius-sm);
    padding: 12px 16px;
}

.detail-item .label {
    font-size: 12px;
    color: var(--text-light);
    margin-bottom: 4px;
}

.detail-item .value {
    font-size: 14px;
    color: var(--text-primary);
    font-weight: 500;
    word-break: break-all;
}

.doc-preview-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 12px;
    margin-top: 12px;
}

.doc-preview-item {
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    overflow: hidden;
}

.doc-preview-item img {
    width: 100%;
    height: 120px;
    object-fit: cover;
    cursor: pointer;
}

.doc-preview-item .name {
    padding: 6px 8px;
    font-size: 12px;
    color: var(--text-secondary);
    text-align: center;
}

/* ==================== 登录页 ==================== */
.login-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary), var(--accent));
}

.login-card {
    background: white;
    border-radius: var(--radius-lg);
    padding: 40px;
    width: 400px;
    box-shadow: var(--shadow-lg);
}

.login-card h2 {
    text-align: center;
    margin-bottom: 8px;
    font-size: 24px;
}

.login-card .subtitle {
    text-align: center;
    color: var(--text-secondary);
    margin-bottom: 32px;
    font-size: 14px;
}

/* ==================== 提示框 ==================== */
.alert {
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    font-size: 14px;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.alert-info { background: #EFF6FF; color: #1E40AF; border: 1px solid #BFDBFE; }
.alert-success { background: #ECFDF5; color: #065F46; border: 1px solid #A7F3D0; }
.alert-warning { background: #FFFBEB; color: #92400E; border: 1px solid #FDE68A; }
.alert-danger { background: #FEF2F2; color: #991B1B; border: 1px solid #FECACA; }

/* ==================== 筛选栏 ==================== */
.filter-bar {
    display: flex;
    gap: 12px;
    margin-bottom: 20px;
    flex-wrap: wrap;
    align-items: center;
}

.filter-bar .form-input,
.filter-bar .form-select {
    width: auto;
    min-width: 140px;
}

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

.empty-state .icon {
    font-size: 48px;
    margin-bottom: 12px;
}

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

/* ==================== 分页 ==================== */
.pagination {
    display: flex;
    justify-content: center;
    gap: 4px;
    margin-top: 24px;
}

.pagination a, .pagination span {
    padding: 6px 12px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    font-size: 14px;
    color: var(--text-secondary);
    cursor: pointer;
}

.pagination a:hover {
    background: var(--bg-hover);
}

.pagination .current {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

/* ==================== Footer ==================== */
.footer {
    background: var(--bg-card);
    border-top: 1px solid var(--border-color);
    padding: 32px 24px;
    text-align: center;
    color: var(--text-light);
    font-size: 13px;
}

.footer p { margin-bottom: 4px; }

/* ==================== 移动端导航 ==================== */
.navbar-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    padding: 4px 8px;
    color: var(--text-primary);
    line-height: 1;
}

.navbar-toggle:hover { color: var(--primary); }

/* ==================== 响应式 ==================== */
@media (max-width: 768px) {
    /* 触摸优化 */
    * {
        -webkit-tap-highlight-color: transparent;
        -webkit-touch-callout: none;
    }

    input, select, textarea {
        -webkit-user-select: text;
        user-select: text;
    }

    /* 字体适配 */
    .hero h1 { font-size: 26px; }
    .hero p { font-size: 15px; }
    .hero-stats { flex-direction: row; gap: 24px; }
    .hero-stat .num { font-size: 24px; }
    .hero { padding: 48px 20px; }

    /* 布局适配 */
    .process-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
    .process-card { padding: 20px 12px; }
    .process-card h3 { font-size: 15px; }
    .collection-grid { grid-template-columns: 1fr; }
    .entity-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
    .entity-card { padding: 14px 8px; }
    .entity-card .icon { font-size: 26px; }
    .entity-card h4 { font-size: 13px; }
    .entity-card p { font-size: 11px; }
    .form-row, .form-row-3 { grid-template-columns: 1fr; gap: 16px; }
    .admin-stats { grid-template-columns: repeat(2, 1fr); }
    .detail-grid { grid-template-columns: 1fr; }

    /* 移动端导航 */
    .navbar-toggle { display: flex; align-items: center; justify-content: center; }
    .navbar-nav {
        display: none;
        position: absolute;
        top: 64px;
        left: 0;
        right: 0;
        background: var(--bg-card);
        flex-direction: column;
        gap: 0;
        padding: 0;
        box-shadow: var(--shadow-md);
        border-top: 1px solid var(--border-color);
    }
    .navbar-nav.open { display: flex; }
    .navbar-nav a {
        padding: 14px 24px;
        border-bottom: 1px solid var(--border-color);
        font-size: 15px;
    }
    .navbar-nav a:last-child { border-bottom: none; }
    .navbar-nav .btn {
        margin: 12px 24px;
        width: calc(100% - 48px);
    }

    .navbar-inner { padding: 0 16px; position: relative; }
    .navbar-brand { font-size: 16px; }
    .navbar-brand .logo { width: 32px; height: 32px; font-size: 14px; }

    /* 表单优化 */
    .form-card { padding: 20px 14px; }

    /* 步骤条 */
    .steps-bar { flex-direction: column; gap: 8px; }
    .step-connector { width: 2px; height: 16px; }
    .step-item .step-label { font-size: 13px; }
    .step-circle { width: 32px; height: 32px; font-size: 14px; }

    /* 上传区域优化 - 更大的触摸目标 */
    .upload-area {
        min-height: 160px;
        padding: 20px 12px;
    }
    .upload-area .upload-icon { font-size: 36px; }
    .upload-area .upload-text { font-size: 15px; }
    .upload-area .upload-hint { font-size: 12px; line-height: 1.5; }
    .upload-preview { max-height: 240px; }

    /* 按钮优化 - 更大的触摸目标 */
    .btn { padding: 12px 24px; font-size: 15px; min-height: 44px; }
    .btn-sm { padding: 8px 16px; min-height: 36px; }
    .btn-lg { padding: 14px 32px; min-height: 48px; }

    /* 输入框优化 */
    .form-input, .form-select, .form-textarea {
        padding: 12px 14px;
        font-size: 16px; /* iOS 防止缩放 */
        min-height: 44px;
    }

    /* 表格滚动 */
    .data-table { overflow-x: auto; -webkit-overflow-scrolling: touch; }
    .data-table table { min-width: 600px; }

    /* 模态框优化 */
    .modal { width: 95%; max-height: 90vh; border-radius: var(--radius-md); }
    .modal-header, .modal-body, .modal-footer { padding: 16px; }

    /* 容器 */
    .container { padding: 0 14px; }
    .section { padding: 32px 0; }
    .section-title { margin-bottom: 32px; }
    .section-title h2 { font-size: 24px; }

    /* 筛选栏 */
    .filter-bar { flex-direction: column; align-items: stretch; }
    .filter-bar .form-input, .filter-bar .form-select { width: 100%; min-width: 0; }

    /* 管理后台头部 */
    .admin-header { padding: 12px 16px; }
    .admin-header h1 { font-size: 16px; }
    .admin-header .flex-between { flex-wrap: wrap; gap: 8px; }
}

/* 超小屏幕适配 */
@media (max-width: 380px) {
    .entity-grid { grid-template-columns: 1fr; }
    .process-grid { grid-template-columns: 1fr; }
    .hero h1 { font-size: 22px; }
    .hero-stats { gap: 16px; }
    .hero-stat .num { font-size: 20px; }
}

/* ==================== 工具类 ==================== */
.text-center { text-align: center; }
.text-right { text-align: right; }
.mt-0 { margin-top: 0; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mt-32 { margin-top: 32px; }
.mb-0 { margin-bottom: 0; }
.mb-16 { margin-bottom: 16px; }
.mb-24 { margin-bottom: 24px; }
.mb-32 { margin-bottom: 32px; }
.hidden { display: none !important; }
.flex { display: flex; }
.flex-between { display: flex; justify-content: space-between; align-items: center; }
.gap-8 { gap: 8px; }
.gap-16 { gap: 16px; }
