:root {
  --primary: #1a6ef5;
  --primary-dark: #1358d0;
  --primary-light: #e8f0fe;
  --secondary: #0f172a;
  --accent: #06b6d4;
  --success: #10b981;
  --warning: #f59e0b;
  --danger: #ef4444;
  --text-primary: #0f172a;
  --text-secondary: #64748b;
  --text-muted: #94a3b8;
  --border: #e2e8f0;
  --bg: #f8fafc;
  --bg-card: #ffffff;
  --shadow-sm: 0 1px 3px rgba(0,0,0,.06), 0 1px 2px rgba(0,0,0,.04);
  --shadow: 0 4px 16px rgba(0,0,0,.08);
  --shadow-lg: 0 8px 32px rgba(0,0,0,.12);
  --radius: 6px;
  --radius-lg: 10px;
  --font: 'PingFang SC','Microsoft YaHei','Helvetica Neue',Arial,sans-serif;
  --transition: all .2s ease;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: var(--font); color: var(--text-primary); background: var(--bg); line-height: 1.6; font-size: 14px; }
a { color: var(--primary); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--primary-dark); }
img { max-width: 100%; }

/* ========== LAYOUT ========== */
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.page-container { max-width: 1100px; margin: 32px auto; padding: 0 24px; }
.content-wrap { margin-top: 24px; }
.mt-2 { margin-top: 8px; }
.mt-4 { margin-top: 16px; }
.mt-5 { margin-top: 20px; }
.text-center { text-align: center; }
.text-muted { color: var(--text-muted); }
.text-danger { color: var(--danger); }

/* ========== BUTTONS ========== */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 9px 18px; border-radius: var(--radius); font-size: 14px; font-weight: 500;
  cursor: pointer; border: 1px solid transparent; transition: var(--transition);
  white-space: nowrap; line-height: 1.4;
}
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn-primary { background: var(--primary); color: #fff; border-color: var(--primary); }
.btn-primary:hover { background: var(--primary-dark); border-color: var(--primary-dark); color: #fff; }
.btn-outline { background: transparent; color: var(--primary); border-color: var(--primary); }
.btn-outline:hover { background: var(--primary-light); color: var(--primary); }
.btn-success { background: var(--success); color: #fff; border-color: var(--success); }
.btn-success:hover { background: #059669; color: #fff; }
.btn-warning { background: var(--warning); color: #fff; border-color: var(--warning); }
.btn-warning:hover { background: #d97706; color: #fff; }
.btn-danger { background: var(--danger); color: #fff; border-color: var(--danger); }
.btn-danger:hover { background: #dc2626; color: #fff; }
.btn-sm { padding: 6px 12px; font-size: 13px; }
.btn-xs { padding: 3px 8px; font-size: 12px; }
.btn-lg { padding: 12px 28px; font-size: 15px; }
.btn-block { display: flex; width: 100%; }

/* ========== FORMS ========== */
.form-group { margin-bottom: 18px; }
.form-group label { display: block; font-size: 13px; font-weight: 500; color: var(--text-secondary); margin-bottom: 6px; }
.form-control {
  width: 100%; padding: 10px 14px; border: 1px solid var(--border); border-radius: var(--radius);
  font-size: 14px; color: var(--text-primary); background: #fff; transition: var(--transition); outline: none;
  font-family: var(--font);
}
.form-control:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(26,110,245,.1); }
.form-control::placeholder { color: var(--text-muted); }
textarea.form-control { resize: vertical; min-height: 80px; }
select.form-control { cursor: pointer; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.required { color: var(--danger); }
.input-password-wrap { position: relative; }
.input-password-wrap .form-control { padding-right: 56px; }
.pwd-toggle {
  position: absolute; right: 12px; top: 50%; transform: translateY(-50%);
  font-size: 12px; color: var(--text-muted); cursor: pointer; user-select: none;
}
.pwd-toggle:hover { color: var(--primary); }

/* ========== ALERTS ========== */
.alert { padding: 12px 16px; border-radius: var(--radius); font-size: 14px; margin-bottom: 16px; }
.alert-error { background: #fef2f2; color: #dc2626; border: 1px solid #fecaca; }
.alert-success { background: #f0fdf4; color: #16a34a; border: 1px solid #bbf7d0; }

/* ========== BADGES ========== */
.badge {
  display: inline-block; padding: 2px 8px; border-radius: var(--radius); font-size: 12px; font-weight: 500;
}
.badge-success { background: #d1fae5; color: #065f46; }
.badge-danger { background: #fee2e2; color: #991b1b; }
.badge-warning { background: #fef3c7; color: #92400e; }
.badge-pending { background: #e0f2fe; color: #0369a1; }
.badge-none { background: #f1f5f9; color: #64748b; }
.badge-verified { background: #d1fae5; color: #065f46; }
.badge-rejected { background: #fee2e2; color: #991b1b; }

/* ========== CARDS ========== */
.card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; }
.card-header { display: flex; align-items: center; justify-content: space-between; padding: 16px 20px; border-bottom: 1px solid var(--border); }
.card-header h3 { font-size: 15px; font-weight: 600; color: var(--text-primary); }
.card-body { padding: 20px; }
.card-body.p-0 { padding: 0; }

/* ========== TABLE ========== */
.table-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; }
.data-table { width: 100%; border-collapse: collapse; }
.data-table th { padding: 12px 16px; text-align: left; font-size: 13px; font-weight: 600; color: var(--text-secondary); background: #f8fafc; border-bottom: 1px solid var(--border); white-space: nowrap; }
.data-table td { padding: 14px 16px; font-size: 13px; color: var(--text-primary); border-bottom: 1px solid #f1f5f9; vertical-align: middle; }
.data-table tr:last-child td { border-bottom: none; }
.data-table tr:hover td { background: #f8fafc; }

/* ========== PAGINATION ========== */
.pagination { display: flex; gap: 6px; justify-content: center; padding: 20px 0; }
.page-item { padding: 6px 12px; border: 1px solid var(--border); border-radius: var(--radius); font-size: 13px; color: var(--text-secondary); transition: var(--transition); }
.page-item:hover { border-color: var(--primary); color: var(--primary); }
.page-item.active { background: var(--primary); border-color: var(--primary); color: #fff; }

/* ========== HEADER ========== */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.96); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}
.header-inner { max-width: 1200px; margin: 0 auto; padding: 0 24px; height: 64px; display: flex; align-items: center; gap: 32px; }
.site-logo { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.logo-icon { width: 34px; height: 34px; background: var(--primary); border-radius: 6px; position: relative; flex-shrink: 0; }
.logo-icon::before { content: ''; position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%); width: 18px; height: 18px; border: 2.5px solid #fff; border-radius: 50%; }
.logo-icon::after { content: ''; position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%); width: 7px; height: 7px; background: #fff; border-radius: 50%; }
.logo-icon-sm { width: 22px; height: 22px; }
.logo-text { display: flex; flex-direction: column; line-height: 1.2; }
.logo-main { font-size: 15px; font-weight: 700; color: var(--text-primary); }
.logo-sub { font-size: 11px; color: var(--text-muted); }
.site-nav { display: flex; gap: 4px; flex: 1; }
.nav-link { padding: 6px 12px; border-radius: var(--radius); font-size: 14px; color: var(--text-secondary); transition: var(--transition); }
.nav-link:hover { color: var(--primary); background: var(--primary-light); }
.nav-auth { color: var(--warning) !important; }
.header-actions { display: flex; align-items: center; gap: 10px; margin-left: auto; }
.user-menu { position: relative; }
.user-avatar {
  width: 36px; height: 36px; border-radius: 6px; background: var(--primary); color: #fff;
  display: flex; align-items: center; justify-content: center; font-size: 14px; font-weight: 600; cursor: pointer;
}
.user-dropdown {
  position: absolute; top: calc(100% + 8px); right: 0; min-width: 180px;
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg);
  z-index: 999; overflow: hidden; display: none;
}
.user-dropdown.show { display: block; }
.dropdown-header { padding: 14px 16px; border-bottom: 1px solid var(--border); display: flex; flex-direction: column; gap: 4px; }
.dropdown-header strong { font-size: 14px; color: var(--text-primary); }
.dropdown-item { display: block; padding: 10px 16px; font-size: 13px; color: var(--text-secondary); transition: var(--transition); }
.dropdown-item:hover { background: var(--bg); color: var(--primary); }
.dropdown-logout { color: var(--danger) !important; }
.mobile-menu-btn { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 4px; }
.mobile-menu-btn span { display: block; width: 22px; height: 2px; background: var(--text-primary); border-radius: 2px; transition: var(--transition); }

/* ========== FOOTER ========== */
.site-footer { background: #0a1020; color: #94a3b8; margin-top: 64px; }

/* 页脚主体 */
.footer-main { padding: 56px 0 40px; border-bottom: 1px solid rgba(255,255,255,.06); }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; }

.footer-logo { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.footer-logo-icon { width: 42px; height: 42px; background: linear-gradient(135deg, #1a6ef5, #06b6d4); border-radius: 10px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.footer-logo-icon svg { width: 26px; height: 26px; }
.footer-logo-text { display: flex; flex-direction: column; line-height: 1.25; }
.footer-logo-main { font-size: 15px; font-weight: 700; color: #f1f5f9; }
.footer-logo-sub { font-size: 11px; color: #64748b; }

.footer-desc { font-size: 13px; color: #64748b; line-height: 1.75; max-width: 280px; margin-bottom: 18px; }
.footer-tags { display: flex; gap: 8px; flex-wrap: wrap; }
.footer-tag { padding: 3px 10px; font-size: 11px; color: #93c5fd; background: rgba(26,110,245,.12); border: 1px solid rgba(26,110,245,.2); border-radius: 4px; font-weight: 500; letter-spacing: .3px; }

.footer-links-col h4 { font-size: 13px; font-weight: 600; color: #e2e8f0; margin-bottom: 16px; padding-bottom: 8px; border-bottom: 1px solid rgba(255,255,255,.06); letter-spacing: .3px; }
.footer-links-col ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-links-col ul li { font-size: 13px; color: #64748b; display: flex; align-items: center; gap: 6px; }
.footer-links-col ul li a { color: #64748b; transition: color .15s ease; }
.footer-links-col ul li a:hover { color: #93c5fd; }
.footer-format-badge { display: inline-block; padding: 1px 6px; font-size: 10px; font-weight: 600; background: rgba(16,185,129,.12); color: #34d399; border: 1px solid rgba(16,185,129,.2); border-radius: 3px; letter-spacing: .3px; }

/* 版权栏 */
.footer-bottom { padding: 18px 0; }
.footer-bottom-inner { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px; }
.footer-copy { font-size: 12.5px; color: #475569; }
.footer-icp { font-size: 12.5px; }
.footer-icp-link { color: #475569; display: inline-flex; align-items: center; transition: color .15s ease; }
.footer-icp-link:hover { color: #93c5fd; }

@media (max-width: 900px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px; }
  .footer-brand-col { grid-column: 1 / -1; }
  .footer-desc { max-width: 100%; }
}
@media (max-width: 540px) {
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom-inner { flex-direction: column; align-items: flex-start; gap: 6px; }
}

/* ========== HERO ========== */
.hero { position: relative; min-height: 580px; display: flex; align-items: center; overflow: hidden; background: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #0f2460 100%); }
.hero-bg { position: absolute; inset: 0; background: radial-gradient(ellipse at 60% 40%, rgba(26,110,245,.3) 0%, transparent 60%), radial-gradient(ellipse at 20% 80%, rgba(6,182,212,.2) 0%, transparent 50%); }
.hero-content { position: relative; z-index: 1; max-width: 1200px; margin: 0 auto; padding: 60px 24px; }
.hero-badge { display: inline-block; padding: 4px 14px; background: rgba(26,110,245,.2); border: 1px solid rgba(26,110,245,.4); border-radius: var(--radius); font-size: 12px; color: #93c5fd; font-weight: 500; margin-bottom: 20px; letter-spacing: .5px; }
.hero-title { font-size: 42px; font-weight: 800; color: #fff; line-height: 1.25; margin-bottom: 18px; }
.hero-subtitle { font-size: 16px; color: #94a3b8; max-width: 560px; margin-bottom: 36px; line-height: 1.7; }
.hero-actions { display: flex; gap: 14px; margin-bottom: 50px; flex-wrap: wrap; }
.hero-stats { display: flex; gap: 48px; flex-wrap: wrap; }
.stat-item { display: flex; flex-direction: column; }
.stat-num { font-size: 26px; font-weight: 800; color: #fff; line-height: 1; }
.stat-label { font-size: 13px; color: #64748b; margin-top: 4px; }

/* ========== FEATURES ========== */
.features { padding: 80px 0; background: var(--bg); }
.section-header { text-align: center; margin-bottom: 48px; }
.section-header h2 { font-size: 28px; font-weight: 700; color: var(--text-primary); margin-bottom: 10px; }
.section-header p { font-size: 15px; color: var(--text-secondary); }
.features-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.feature-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 28px 24px; transition: var(--transition); }
.feature-card:hover { box-shadow: var(--shadow); transform: translateY(-2px); border-color: var(--primary); }
.feature-icon { width: 44px; height: 44px; border-radius: 10px; margin-bottom: 16px; background: var(--primary-light); position: relative; }
.icon-security::after { content: ''; position: absolute; top: 50%; left: 50%; transform: translate(-50%,-54%); width: 16px; height: 20px; border: 2.5px solid var(--primary); border-radius: 3px 3px 2px 2px; }
.icon-security::before { content: ''; position: absolute; top: 44%; left: 50%; transform: translate(-50%,0); width: 6px; height: 8px; border: 2px solid var(--primary); border-radius: 3px 3px 0 0; border-bottom: none; }
.icon-file::after { content: ''; position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%); width: 14px; height: 18px; border: 2px solid var(--primary); border-radius: 2px; background: linear-gradient(to bottom, var(--primary-light) 0%, #fff 100%); }
.icon-position::after { content: ''; position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%); width: 16px; height: 16px; border: 2.5px solid var(--primary); border-radius: 50%; }
.icon-position::before { content: '+'; position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%); color: var(--primary); font-weight: 700; font-size: 14px; }
.icon-review::after { content: ''; position: absolute; top: 52%; left: 50%; transform: translate(-50%,-50%); width: 18px; height: 12px; border: 2px solid var(--primary); border-radius: 2px; }
.feature-card h3 { font-size: 16px; font-weight: 600; margin-bottom: 10px; }
.feature-card p { font-size: 13px; color: var(--text-secondary); line-height: 1.6; }

/* ========== PROCESS ========== */
.process { padding: 80px 0; background: #fff; }
.process-steps { display: flex; align-items: center; justify-content: center; gap: 0; flex-wrap: wrap; }
.step { text-align: center; padding: 20px 30px; }
.step-num { font-size: 36px; font-weight: 800; color: var(--primary); line-height: 1; margin-bottom: 12px; font-variant-numeric: tabular-nums; }
.step h3 { font-size: 15px; font-weight: 600; margin-bottom: 6px; }
.step p { font-size: 13px; color: var(--text-secondary); }
.step-arrow { width: 40px; height: 2px; background: linear-gradient(to right, var(--primary), var(--accent)); position: relative; }
.step-arrow::after { content: ''; position: absolute; right: -6px; top: -5px; width: 0; height: 0; border: 6px solid transparent; border-left-color: var(--accent); }

/* ========== SUPPORTED FORMATS ========== */
.supported-formats { padding: 60px 0; background: var(--bg); }
.format-list { display: flex; gap: 20px; justify-content: center; flex-wrap: wrap; }
.format-item { display: flex; align-items: center; gap: 12px; background: #fff; padding: 16px 24px; border-radius: var(--radius-lg); border: 1px solid var(--border); font-size: 14px; font-weight: 500; }
.fmt-tag { padding: 3px 8px; border-radius: var(--radius); font-size: 11px; font-weight: 700; }
.fmt-pdf { background: #fef2f2; color: #dc2626; }
.fmt-word { background: #eff6ff; color: #2563eb; }
.fmt-img { background: #f0fdf4; color: #16a34a; }

/* ========== AUTH PAGES ========== */
.auth-page { background: #f1f5f9; min-height: 100vh; display: flex; align-items: stretch; }
.auth-container { display: flex; width: 100%; min-height: 100vh; }
.auth-left {
  flex: 1; background: linear-gradient(145deg, #0f172a 0%, #1e293b 40%, #1a3a7a 100%);
  display: flex; align-items: center; justify-content: center; padding: 60px 48px;
  position: relative; overflow: hidden;
}
.auth-left::before { content: ''; position: absolute; top: -100px; left: -100px; width: 400px; height: 400px; background: radial-gradient(circle, rgba(26,110,245,.25) 0%, transparent 70%); border-radius: 50%; }
.auth-left::after { content: ''; position: absolute; bottom: -80px; right: -80px; width: 300px; height: 300px; background: radial-gradient(circle, rgba(6,182,212,.15) 0%, transparent 70%); border-radius: 50%; }
.auth-left-content { position: relative; z-index: 1; max-width: 380px; }
.auth-logo-area { display: flex; align-items: center; gap: 12px; margin-bottom: 40px; }
.auth-logo-icon { width: 40px; height: 40px; background: var(--primary); border-radius: 8px; position: relative; }
.auth-logo-icon::before { content: ''; position: absolute; top: 50%; left: 50%; transform: translate(-50%,-54%); width: 20px; height: 24px; border: 2.5px solid #fff; border-radius: 3px 3px 2px 2px; }
.auth-logo-icon::after { content: ''; position: absolute; top: 38%; left: 50%; transform: translate(-50%,0); width: 8px; height: 10px; border: 2px solid #fff; border-radius: 4px 4px 0 0; border-bottom: none; }
.auth-logo-text { font-size: 16px; font-weight: 600; color: #fff; }
.auth-left-content h2 { font-size: 28px; font-weight: 700; color: #fff; margin-bottom: 14px; }
.auth-left-content p { font-size: 14px; color: #94a3b8; line-height: 1.7; margin-bottom: 32px; }
.auth-features { display: flex; flex-direction: column; gap: 12px; }
.auth-feat-item { display: flex; align-items: center; gap: 12px; font-size: 14px; color: #cbd5e1; }
.feat-dot { width: 8px; height: 8px; background: var(--primary); border-radius: 2px; flex-shrink: 0; }
.auth-right { width: 480px; display: flex; align-items: center; justify-content: center; padding: 60px 48px; background: #fff; }
.auth-form-wrap { width: 100%; max-width: 360px; }
.form-title { font-size: 24px; font-weight: 700; color: var(--text-primary); margin-bottom: 6px; }
.form-subtitle { font-size: 14px; color: var(--text-muted); margin-bottom: 28px; }
.auth-links { text-align: center; margin-top: 20px; font-size: 14px; color: var(--text-muted); }
.auth-links a { color: var(--primary); font-weight: 500; }

/* ========== PAGE HEADER BAR ========== */
.page-header-bar { margin-bottom: 8px; }
.page-header-bar h1 { font-size: 22px; font-weight: 700; color: var(--text-primary); margin-bottom: 4px; }
.page-header-bar p { font-size: 14px; color: var(--text-secondary); }

/* ========== STATUS CARDS ========== */
.status-card { text-align: center; padding: 48px 32px; background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-lg); }
.status-card .status-icon { width: 64px; height: 64px; border-radius: 50%; margin: 0 auto 20px; display: flex; align-items: center; justify-content: center; }
.status-pending .status-icon { background: #e0f2fe; }
.status-rejected .status-icon { background: #fee2e2; }
.status-card h3 { font-size: 18px; font-weight: 600; margin-bottom: 10px; }
.status-card p { color: var(--text-secondary); font-size: 14px; }
.auth-info-preview { margin-top: 24px; background: var(--bg); border-radius: var(--radius); overflow: hidden; text-align: left; }
.info-row { display: flex; justify-content: space-between; padding: 10px 16px; border-bottom: 1px solid var(--border); font-size: 14px; }
.info-row:last-child { border-bottom: none; }
.info-row span:first-child { color: var(--text-secondary); }

/* ========== UPLOAD AREA ========== */
/* 统一用 label 包裹 input[type=file]，所有上传区域天然可点击 */
.upload-area,
.upload-area-lg,
.seal-upload-area {
  display: flex; align-items: center; justify-content: center;
  border: 2px dashed var(--border); border-radius: var(--radius-lg);
  cursor: pointer; transition: var(--transition);
  background: #fff;
}
.upload-area { min-height: 140px; overflow: hidden; }
.upload-area-lg { min-height: 160px; flex-direction: column; }
.upload-area:hover,
.upload-area-lg:hover,
.seal-upload-area:hover { border-color: var(--primary); background: var(--primary-light); }

/* placeholder 内部元素全部禁止自身事件，由外层 label 统一响应 */
.upload-placeholder,
.upload-placeholder-lg,
.seal-upload-inner { pointer-events: none; text-align: center; }
.upload-placeholder  { padding: 24px; width: 100%; }
.upload-placeholder-lg { padding: 32px; }

/* 上传图标 - 蓝色上传箭头 */
.upload-icon,
.upload-icon-lg,
.seal-upload-icon {
  margin: 0 auto 10px; background: #e8f0fe; border-radius: 8px; position: relative;
}
.upload-icon     { width: 40px; height: 40px; }
.upload-icon-lg  { width: 52px; height: 52px; border-radius: 10px; }
.seal-upload-icon{ width: 44px; height: 44px; border-radius: 8px; }

/* 上传箭头 SVG-like 用伪元素绘制 */
.upload-icon::before,
.upload-icon-lg::before,
.seal-upload-icon::before {
  content: ''; position: absolute; left: 50%; transform: translateX(-50%);
  border-left: 7px solid transparent; border-right: 7px solid transparent; border-bottom: 8px solid #1a6ef5;
}
.upload-icon::before     { top: 28%; }
.upload-icon-lg::before  { top: 26%; border-left-width: 9px; border-right-width: 9px; border-bottom-width: 10px; }
.seal-upload-icon::before{ top: 28%; border-left-width: 8px; border-right-width: 8px; border-bottom-width: 9px; }

.upload-icon::after,
.upload-icon-lg::after,
.seal-upload-icon::after {
  content: ''; position: absolute; left: 50%; transform: translateX(-50%);
  background: #1a6ef5; border-radius: 0 0 3px 3px;
}
.upload-icon::after      { top: 48%; width: 4px; height: 10px; }
.upload-icon-lg::after   { top: 46%; width: 5px; height: 13px; }
.seal-upload-icon::after { top: 48%; width: 4px; height: 11px; }

.upload-placeholder p,
.upload-placeholder-lg p,
.seal-upload-inner p { font-size: 14px; color: var(--text-secondary); margin-bottom: 4px; font-weight: 500; }
.upload-placeholder-lg p { font-size: 15px; }
.upload-placeholder span,
.upload-placeholder-lg span,
.seal-upload-inner span { font-size: 12px; color: var(--text-muted); }

.file-info-box { padding: 16px 20px; background: var(--bg); border-radius: var(--radius); width: 100%; }

/* ========== SEAL PAGE ========== */
.seal-layout { display: grid; grid-template-columns: 1fr 360px; gap: 20px; align-items: start; }
.seal-left, .seal-right { display: flex; flex-direction: column; gap: 0; }
.company-select-list { display: flex; flex-direction: column; gap: 8px; }
.company-option { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border: 2px solid var(--border); border-radius: var(--radius); cursor: pointer; transition: var(--transition); }
.company-option:hover { border-color: var(--primary); background: var(--primary-light); }
.company-option.selected { border-color: var(--primary); background: var(--primary-light); }
.company-check { width: 16px; height: 16px; border: 2px solid var(--border); border-radius: 3px; flex-shrink: 0; transition: var(--transition); }
.company-option.selected .company-check { background: var(--primary); border-color: var(--primary); position: relative; }
.company-option.selected .company-check::after { content: ''; position: absolute; top: 2px; left: 1px; width: 9px; height: 6px; border-left: 2px solid #fff; border-bottom: 2px solid #fff; transform: rotate(-45deg); }
.seal-preview-wrap { display: flex; flex-direction: column; gap: 16px; }
.seal-canvas-area { width: 100%; aspect-ratio: 1/1.414; background: #f8fafc; border: 1px solid var(--border); border-radius: var(--radius); position: relative; overflow: hidden; }
.seal-canvas-placeholder { position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%); text-align: center; color: var(--text-muted); font-size: 14px; white-space: nowrap; }

/* PDF iframe 预览 */
.seal-canvas-area iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: none; }

/* 模拟纸张（DOCX/DOC 使用） */
.doc-mock-paper {
  position: absolute; inset: 0;
  background: #fff;
  display: flex; flex-direction: column; justify-content: flex-start;
  padding: 28px 32px; gap: 0;
  box-shadow: inset 0 0 0 1px rgba(0,0,0,.04);
}
.doc-mock-paper .doc-title-line {
  height: 10px; background: #1e293b; border-radius: 3px;
  width: 60%; margin: 0 auto 18px;
}
.doc-mock-paper .doc-line {
  height: 7px; background: #e2e8f0; border-radius: 3px;
  margin-bottom: 9px;
}
.doc-mock-paper .doc-line:nth-child(odd)  { width: 100%; }
.doc-mock-paper .doc-line:nth-child(even) { width: 88%; }
.doc-mock-paper .doc-line-short { height: 7px; background: #e2e8f0; border-radius: 3px; width: 55%; margin-bottom: 9px; }
.doc-mock-paper .doc-gap { height: 16px; }
.doc-mock-hint {
  position: absolute; bottom: 10px; left: 0; right: 0;
  text-align: center; font-size: 11px; color: #94a3b8; letter-spacing: .2px;
}

.seal-stamp { position: absolute; width: 80px; height: 80px; cursor: move; }
.stamp-inner { width: 100%; height: 100%; background: rgba(220,38,38,.4); border: 3px solid rgba(220,38,38,.7); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 9px; color: rgba(220,38,38,.8); font-weight: 600; text-align: center; }
.seal-controls { display: flex; flex-direction: column; gap: 12px; }
.control-group label { display: flex; justify-content: space-between; font-size: 13px; color: var(--text-secondary); margin-bottom: 6px; }
input[type=range] { width: 100%; height: 4px; border-radius: 4px; background: var(--border); outline: none; cursor: pointer; accent-color: var(--primary); }

/* ========== NOTICES ========== */
.notice-box { background: #fffbeb; border: 1px solid #fde68a; border-radius: var(--radius); padding: 14px 16px; margin-bottom: 18px; }
.notice-box strong { font-size: 13px; color: #92400e; display: block; margin-bottom: 8px; }
.notice-box ul { margin: 0; padding-left: 16px; }
.notice-box li { font-size: 13px; color: #78350f; line-height: 1.8; }

/* ========== EMPTY STATE ========== */
.empty-state { text-align: center; padding: 64px 32px; }
.empty-icon { width: 64px; height: 64px; background: var(--border); border-radius: 50%; margin: 0 auto 20px; }
.empty-state h3 { font-size: 18px; font-weight: 600; margin-bottom: 8px; }
.empty-state p { color: var(--text-muted); font-size: 14px; margin-bottom: 24px; }

/* ========== MODALS ========== */
.modal-overlay { position: fixed; inset: 0; background: rgba(0,0,0,.5); z-index: 1000; display: flex; align-items: center; justify-content: center; padding: 20px; }
.modal { background: #fff; border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); width: 100%; max-width: 480px; max-height: 90vh; overflow-y: auto; }
.modal-lg { max-width: 600px; }
.modal-xl { max-width: 780px; }
.modal-header { display: flex; align-items: center; justify-content: space-between; padding: 20px 24px; border-bottom: 1px solid var(--border); }
.modal-header h3 { font-size: 16px; font-weight: 600; }
.modal-close { font-size: 22px; color: var(--text-muted); cursor: pointer; line-height: 1; padding: 0 4px; }
.modal-close:hover { color: var(--text-primary); }
.modal-body { padding: 24px; }
.modal-footer { display: flex; justify-content: flex-end; gap: 10px; padding: 16px 24px; border-top: 1px solid var(--border); }
.modal-confirm-msg { font-size: 14px; color: var(--text-secondary); }

/* ========== FORM SECTION TITLE ========== */
.form-section-title { font-size: 13px; font-weight: 600; color: var(--text-muted); text-transform: uppercase; letter-spacing: .5px; margin-bottom: 14px; padding-bottom: 8px; border-bottom: 1px solid var(--border); }

/* ========== SEAL UPLOAD ========== */
.seal-upload-area { border: 2px dashed var(--border); border-radius: var(--radius-lg); padding: 24px; cursor: pointer; transition: var(--transition); display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 120px; }
.seal-upload-area:hover { border-color: var(--primary); background: var(--primary-light); }
.seal-upload-inner { text-align: center; pointer-events: none; }
.seal-upload-icon { width: 44px; height: 44px; background: #e8f0fe; border-radius: 8px; margin: 0 auto 10px; position: relative; }
.seal-upload-icon::before { content: ''; position: absolute; top: 28%; left: 50%; transform: translateX(-50%); border-left: 8px solid transparent; border-right: 8px solid transparent; border-bottom: 9px solid #1a6ef5; }
.seal-upload-icon::after { content: ''; position: absolute; top: 48%; left: 50%; transform: translateX(-50%); width: 4px; height: 11px; background: #1a6ef5; border-radius: 0 0 3px 3px; }
.seal-upload-inner p { font-size: 14px; color: var(--text-secondary); margin-bottom: 4px; }
.seal-upload-inner span { font-size: 12px; color: var(--text-muted); }

/* ========== TAB BAR ========== */
.tab-bar { display: flex; gap: 0; border-bottom: 2px solid var(--border); margin-bottom: 20px; }
.tab-item { padding: 10px 18px; font-size: 14px; color: var(--text-secondary); cursor: pointer; border-bottom: 2px solid transparent; margin-bottom: -2px; transition: var(--transition); }
.tab-item:hover { color: var(--primary); }
.tab-item.active { color: var(--primary); border-bottom-color: var(--primary); font-weight: 600; }

/* ========== AUTO CHECK MSG ========== */
.auto-check-msg { font-size: 12px; color: var(--text-muted); max-width: 180px; display: block; }

/* ========== RESPONSIVE ========== */
@media (max-width: 900px) {
  .features-grid { grid-template-columns: repeat(2,1fr); }
  .seal-layout { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .auth-left { display: none; }
  .auth-right { width: 100%; }
  .hero-title { font-size: 28px; }
  .process-steps { flex-wrap: wrap; gap: 20px; }
  .step-arrow { display: none; }
}
@media (max-width: 600px) {
  .features-grid { grid-template-columns: 1fr; }
  .hero-title { font-size: 22px; }
  .hero-stats { gap: 24px; }
  .header-inner { gap: 16px; }
  .site-nav { display: none; }
}
