/* ===== 远辰智联代办系统 - 主样式 ===== */
/* 禁止使用紫色 | 方形为主 | 不对称布局 | 现代化UI */

:root {
  --primary: #0a5cad;
  --primary-dark: #073f7a;
  --primary-light: #1a7fd4;
  --accent: #e8500a;
  --accent-light: #f26522;
  --bg-dark: #0d1117;
  --bg-card: #161b22;
  --bg-panel: #1c2230;
  --bg-input: #1e2638;
  --border: #2a3548;
  --border-light: #3a4a62;
  --text-main: #e8eaf0;
  --text-sub: #8899aa;
  --text-muted: #556070;
  --success: #1aaa55;
  --warning: #d4940a;
  --danger: #cc2233;
  --info: #0891b2;
  --white: #ffffff;
  --radius: 0px;
  --shadow: 0 4px 24px rgba(0,0,0,0.4);
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.3);
  --transition: 0.22s ease;
  --font: 'PingFang SC', 'Microsoft YaHei', 'Segoe UI', sans-serif;
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font);
  background-color: var(--bg-dark);
  color: var(--text-main);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-size: 15px;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--primary-light);
  text-decoration: none;
  transition: color var(--transition);
}
a:hover { color: var(--accent-light); }

img { max-width: 100%; display: block; }

.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ===== HEADER ===== */
.site-header {
  background: var(--bg-card);
  border-bottom: 2px solid var(--primary);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 20px rgba(10,92,173,0.3);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  padding: 0 24px;
  max-width: 1280px;
  margin: 0 auto;
}

.site-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.logo-icon {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: 900;
  color: #fff;
  letter-spacing: -1px;
  clip-path: polygon(0 0, 92% 0, 100% 8%, 100% 100%, 8% 100%, 0 92%);
}

.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.logo-main {
  font-size: 17px;
  font-weight: 700;
  color: var(--text-main);
  letter-spacing: 0.5px;
}

.logo-sub {
  font-size: 11px;
  color: var(--text-sub);
  letter-spacing: 1px;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-link {
  padding: 8px 14px;
  color: var(--text-sub);
  font-size: 14px;
  font-weight: 500;
  transition: all var(--transition);
  position: relative;
  border: 1px solid transparent;
}

.nav-link:hover,
.nav-link.active {
  color: var(--text-main);
  background: rgba(10,92,173,0.15);
  border-color: var(--primary);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--primary-light);
  transform: scaleX(0);
  transition: transform var(--transition);
}

.nav-link:hover::after,
.nav-link.active::after {
  transform: scaleX(1);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 9px 20px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all var(--transition);
  text-decoration: none;
  letter-spacing: 0.3px;
  white-space: nowrap;
}

.btn-primary {
  background: var(--primary);
  color: #fff;
  border: 1px solid var(--primary);
}
.btn-primary:hover {
  background: var(--primary-dark);
  border-color: var(--primary-dark);
  color: #fff;
  box-shadow: 0 0 20px rgba(10,92,173,0.5);
  transform: translateY(-1px);
}

.btn-accent {
  background: var(--accent);
  color: #fff;
  border: 1px solid var(--accent);
}
.btn-accent:hover {
  background: var(--accent-light);
  border-color: var(--accent-light);
  color: #fff;
  box-shadow: 0 0 20px rgba(232,80,10,0.5);
  transform: translateY(-1px);
}

.btn-outline {
  background: transparent;
  color: var(--primary-light);
  border: 1px solid var(--primary);
}
.btn-outline:hover {
  background: var(--primary);
  color: #fff;
  transform: translateY(-1px);
}

.btn-ghost {
  background: transparent;
  color: var(--text-sub);
  border: 1px solid var(--border);
}
.btn-ghost:hover {
  background: var(--bg-panel);
  color: var(--text-main);
  border-color: var(--border-light);
}

.btn-danger {
  background: var(--danger);
  color: #fff;
  border: 1px solid var(--danger);
}
.btn-danger:hover {
  background: #a01828;
  transform: translateY(-1px);
}

.btn-success {
  background: var(--success);
  color: #fff;
  border: 1px solid var(--success);
}
.btn-success:hover {
  background: #168844;
  transform: translateY(-1px);
}

.btn-sm { padding: 6px 14px; font-size: 13px; }
.btn-lg { padding: 13px 32px; font-size: 16px; }
.btn-block { width: 100%; }

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none !important;
}

/* ===== HERO SECTION ===== */
.hero-section {
  position: relative;
  min-height: 560px;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: linear-gradient(135deg, #080e1a 0%, #0d1a30 50%, #0a1220 100%);
}

.hero-bg-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(10,92,173,0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(10,92,173,0.08) 1px, transparent 1px);
  background-size: 48px 48px;
  pointer-events: none;
}

.hero-bg-glow {
  position: absolute;
  top: -100px;
  left: -100px;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(10,92,173,0.18) 0%, transparent 70%);
  pointer-events: none;
}

.hero-bg-glow-right {
  position: absolute;
  bottom: -80px;
  right: 0;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(232,80,10,0.10) 0%, transparent 70%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 1280px;
  margin: 0 auto;
  padding: 80px 24px;
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: 60px;
  align-items: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: rgba(10,92,173,0.2);
  border: 1px solid rgba(10,92,173,0.5);
  color: var(--primary-light);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 20px;
}

.hero-badge::before {
  content: '';
  width: 6px;
  height: 6px;
  background: var(--primary-light);
  animation: pulse-dot 2s infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.7); }
}

.hero-title {
  font-size: 48px;
  font-weight: 800;
  line-height: 1.15;
  color: var(--text-main);
  margin-bottom: 18px;
  letter-spacing: -0.5px;
}

.hero-title span {
  color: var(--primary-light);
  position: relative;
}

.hero-title span::after {
  content: '';
  position: absolute;
  bottom: 2px;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
}

.hero-desc {
  font-size: 16px;
  color: var(--text-sub);
  margin-bottom: 36px;
  line-height: 1.8;
  max-width: 520px;
}

.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.hero-stats {
  background: var(--bg-card);
  border: 1px solid var(--border);
  padding: 32px;
  position: relative;
}

.hero-stats::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
}

.stat-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
}

.stat-item:last-child { border-bottom: none; }

.stat-number {
  font-size: 32px;
  font-weight: 800;
  color: var(--primary-light);
  letter-spacing: -1px;
}

.stat-label {
  font-size: 13px;
  color: var(--text-sub);
}

/* ===== SERVICE CARDS ===== */
.services-section {
  padding: 80px 0;
}

.section-header {
  margin-bottom: 48px;
}

/* 不对称布局 */
.section-header.asymm {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 40px;
  align-items: end;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border);
}

.section-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--primary-light);
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.section-label::before {
  content: '';
  width: 24px;
  height: 2px;
  background: var(--primary-light);
}

.section-title {
  font-size: 32px;
  font-weight: 800;
  color: var(--text-main);
  line-height: 1.2;
}

.section-desc {
  font-size: 15px;
  color: var(--text-sub);
  line-height: 1.7;
  margin-top: 10px;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 2px;
  background: var(--border);
}

.service-card {
  background: var(--bg-card);
  padding: 32px;
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  gap: 14px;
  position: relative;
  overflow: hidden;
  border: 1px solid transparent;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 3px;
  height: 0;
  background: var(--primary-light);
  transition: height 0.3s ease;
}

.service-card:hover {
  background: var(--bg-panel);
  border-color: var(--primary);
  transform: translateY(-3px);
  box-shadow: var(--shadow);
  z-index: 1;
}

.service-card:hover::before { height: 100%; }

.service-icon {
  width: 52px;
  height: 52px;
  background: rgba(10,92,173,0.15);
  border: 1px solid rgba(10,92,173,0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  transition: all var(--transition);
}

.service-card:hover .service-icon {
  background: rgba(10,92,173,0.3);
  border-color: var(--primary);
}

.service-name {
  font-size: 17px;
  font-weight: 700;
  color: var(--text-main);
}

.service-desc {
  font-size: 13px;
  color: var(--text-sub);
  line-height: 1.65;
  flex: 1;
}

.service-arrow {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 8px;
}

.service-tag {
  font-size: 11px;
  padding: 3px 10px;
  background: rgba(10,92,173,0.15);
  color: var(--primary-light);
  border: 1px solid rgba(10,92,173,0.3);
  font-weight: 600;
}

.arrow-icon {
  color: var(--text-muted);
  font-size: 18px;
  transition: all var(--transition);
}

.service-card:hover .arrow-icon {
  color: var(--primary-light);
  transform: translateX(4px);
}

/* ===== FORMS ===== */
.page-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 0;
  min-height: calc(100vh - 64px - 120px);
}

.sidebar {
  background: var(--bg-card);
  border-right: 1px solid var(--border);
  padding: 32px 0;
  position: sticky;
  top: 64px;
  height: calc(100vh - 64px);
  overflow-y: auto;
}

.sidebar-title {
  padding: 0 24px 16px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border);
  margin-bottom: 8px;
}

.sidebar-menu {
  list-style: none;
  padding: 8px 0;
}

.sidebar-menu li a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 24px;
  color: var(--text-sub);
  font-size: 14px;
  font-weight: 500;
  transition: all var(--transition);
  border-left: 3px solid transparent;
  text-decoration: none;
}

.sidebar-menu li a:hover,
.sidebar-menu li a.active {
  color: var(--text-main);
  background: rgba(10,92,173,0.1);
  border-left-color: var(--primary);
}

.main-content {
  padding: 36px 40px;
  background: var(--bg-dark);
}

/* ===== FORM STYLES ===== */
.form-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  margin-bottom: 24px;
}

.form-card-header {
  padding: 20px 28px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--bg-panel);
}

.form-card-header .step-num {
  width: 30px;
  height: 30px;
  background: var(--primary);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.form-card-header h3 {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-main);
}

.form-card-body { padding: 28px; }

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 20px;
}

.form-row.single { grid-template-columns: 1fr; }
.form-row.triple { grid-template-columns: 1fr 1fr 1fr; }

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-sub);
  letter-spacing: 0.3px;
}

.form-label .req {
  color: var(--accent-light);
  margin-left: 3px;
}

.form-control {
  background: var(--bg-input);
  border: 1px solid var(--border);
  color: var(--text-main);
  padding: 10px 14px;
  font-size: 14px;
  font-family: var(--font);
  transition: all var(--transition);
  outline: none;
  width: 100%;
  border-radius: 0;
}

.form-control:focus {
  border-color: var(--primary);
  background: rgba(10,92,173,0.08);
  box-shadow: 0 0 0 3px rgba(10,92,173,0.15);
}

.form-control::placeholder { color: var(--text-muted); }

select.form-control {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%238899aa' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
  cursor: pointer;
  color-scheme: dark;
}

select.form-control option {
  background-color: #1e2638;
  color: #e8eaf0;
  padding: 8px 12px;
  font-size: 14px;
}

select.form-control optgroup {
  background-color: #161b22;
  color: #1a7fd4;
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.5px;
}

select.form-control option:hover,
select.form-control option:focus,
select.form-control option:checked {
  background-color: #0a5cad;
  color: #ffffff;
}

select.form-control option:disabled {
  color: #556070;
  background-color: #161b22;
}

textarea.form-control { resize: vertical; min-height: 100px; }

.form-hint {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: -4px;
}

.form-error {
  font-size: 12px;
  color: var(--danger);
  margin-top: -4px;
}

/* Radio & Checkbox */
.radio-group,
.check-group {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.radio-item,
.check-item {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  font-size: 14px;
  color: var(--text-sub);
  transition: color var(--transition);
  padding: 8px 16px;
  border: 1px solid var(--border);
  background: var(--bg-input);
  user-select: none;
}

.radio-item:has(input:checked),
.check-item:has(input:checked) {
  color: var(--text-main);
  border-color: var(--primary);
  background: rgba(10,92,173,0.12);
}

.radio-item input,
.check-item input {
  accent-color: var(--primary);
  width: 16px;
  height: 16px;
}

/* File Upload */
.file-upload {
  border: 2px dashed var(--border);
  padding: 28px;
  text-align: center;
  cursor: pointer;
  transition: all var(--transition);
  background: var(--bg-input);
  position: relative;
}

.file-upload:hover {
  border-color: var(--primary);
  background: rgba(10,92,173,0.08);
}

.file-upload input[type="file"] {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
  width: 100%;
  height: 100%;
}

.file-upload-icon {
  font-size: 32px;
  color: var(--text-muted);
  margin-bottom: 10px;
}

.file-upload-text {
  font-size: 14px;
  color: var(--text-sub);
}

.file-upload-hint {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 6px;
}

/* ===== STATUS BADGES ===== */
.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.5px;
}

.status-badge::before {
  content: '';
  width: 6px;
  height: 6px;
  background: currentColor;
}

.status-submitted  { background: rgba(8,145,178,0.15); color: var(--info); border: 1px solid rgba(8,145,178,0.3); }
.status-pending    { background: rgba(212,148,10,0.15); color: var(--warning); border: 1px solid rgba(212,148,10,0.3); }
.status-reviewing  { background: rgba(10,92,173,0.15); color: var(--primary-light); border: 1px solid rgba(10,92,173,0.3); }
.status-approved   { background: rgba(26,170,85,0.15); color: var(--success); border: 1px solid rgba(26,170,85,0.3); }
.status-rejected   { background: rgba(204,34,51,0.15); color: var(--danger); border: 1px solid rgba(204,34,51,0.3); }
.status-shipped    { background: rgba(26,170,85,0.2); color: #22cc66; border: 1px solid rgba(26,170,85,0.4); }

/* ===== TABLES ===== */
.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.data-table th {
  background: var(--bg-panel);
  color: var(--text-sub);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  padding: 12px 16px;
  text-align: left;
  border-bottom: 2px solid var(--primary);
  white-space: nowrap;
}

.data-table td {
  padding: 13px 16px;
  border-bottom: 1px solid var(--border);
  color: var(--text-main);
  vertical-align: middle;
}

.data-table tr:hover td {
  background: rgba(10,92,173,0.05);
}

.data-table tr:last-child td { border-bottom: none; }

/* ===== ALERTS ===== */
.alert {
  padding: 14px 18px;
  margin-bottom: 20px;
  border-left: 4px solid;
  font-size: 14px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.alert-success { background: rgba(26,170,85,0.1); border-color: var(--success); color: #3dd68c; }
.alert-danger   { background: rgba(204,34,51,0.1); border-color: var(--danger); color: #ff6677; }
.alert-warning  { background: rgba(212,148,10,0.1); border-color: var(--warning); color: #f0b429; }
.alert-info     { background: rgba(8,145,178,0.1); border-color: var(--info); color: #38bdf8; }

/* ===== PAGE TITLE BAR ===== */
.page-title-bar {
  background: var(--bg-card);
  border-bottom: 1px solid var(--border);
  padding: 28px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.page-title-bar h1 {
  font-size: 24px;
  font-weight: 800;
  color: var(--text-main);
}

.page-title-bar .breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 4px;
}

.breadcrumb a { color: var(--text-sub); }
.breadcrumb a:hover { color: var(--primary-light); }
.breadcrumb .sep { color: var(--border-light); }

/* ===== TABS ===== */
.tab-nav {
  display: flex;
  gap: 0;
  border-bottom: 2px solid var(--border);
  margin-bottom: 28px;
}

.tab-btn {
  padding: 12px 24px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-sub);
  background: transparent;
  border: none;
  cursor: pointer;
  transition: all var(--transition);
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
}

.tab-btn:hover { color: var(--text-main); }
.tab-btn.active {
  color: var(--primary-light);
  border-bottom-color: var(--primary-light);
  background: rgba(10,92,173,0.07);
}

.tab-content { display: none; }
.tab-content.active { display: block; }

/* ===== FOOTER ===== */
.site-footer {
  background: var(--bg-card);
  border-top: 2px solid var(--primary);
  margin-top: auto;
}

.footer-top {
  padding: 56px 0 40px;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  max-width: 1280px;
  margin: 0 auto;
  padding-left: 24px;
  padding-right: 24px;
}

.footer-brand .logo-text .logo-main {
  font-size: 18px;
}

.footer-brand p {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.8;
  margin-top: 14px;
  max-width: 300px;
}

.footer-col h4 {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-main);
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
}

.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-col ul li a {
  font-size: 13px;
  color: var(--text-muted);
  transition: all var(--transition);
  display: flex;
  align-items: center;
  gap: 6px;
}

.footer-col ul li a::before {
  content: '';
  width: 4px;
  height: 4px;
  background: var(--border-light);
  transition: background var(--transition);
}

.footer-col ul li a:hover {
  color: var(--text-main);
  padding-left: 4px;
}

.footer-col ul li a:hover::before {
  background: var(--primary-light);
}

.footer-divider {
  border: none;
  border-top: 1px solid var(--border);
  margin: 0 24px;
}

.footer-bottom {
  max-width: 1280px;
  margin: 0 auto;
  padding: 20px 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 13px;
  color: var(--text-muted);
  text-align: center;
}

.footer-bottom .sep {
  color: var(--border-light);
  padding: 0 4px;
}

.footer-bottom a {
  color: var(--text-muted);
  transition: color var(--transition);
}

.footer-bottom a:hover { color: var(--primary-light); }

.icp-link {
  color: var(--primary-light) !important;
  font-weight: 600;
}

/* ===== AUTH PAGES ===== */
.auth-wrapper {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 500px;
  background: var(--bg-dark);
}

.auth-left {
  background: linear-gradient(145deg, #070d1a 0%, #0d1a2e 100%);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 60px;
  position: relative;
  overflow: hidden;
  border-right: 1px solid var(--border);
}

.auth-left-bg {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(10,92,173,0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(10,92,173,0.06) 1px, transparent 1px);
  background-size: 40px 40px;
}

.auth-left-glow {
  position: absolute;
  top: 20%;
  left: -100px;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(10,92,173,0.15) 0%, transparent 70%);
}

.auth-left-content {
  position: relative;
  z-index: 1;
}

.auth-left-content .auth-logo {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 48px;
}

.auth-left-content h2 {
  font-size: 38px;
  font-weight: 800;
  color: var(--text-main);
  line-height: 1.2;
  margin-bottom: 16px;
}

.auth-left-content p {
  font-size: 16px;
  color: var(--text-sub);
  line-height: 1.75;
  margin-bottom: 40px;
}

.auth-features {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.auth-feature-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
  background: rgba(10,92,173,0.1);
  border: 1px solid rgba(10,92,173,0.2);
  border-left: 3px solid var(--primary);
}

.auth-feature-item span {
  font-size: 14px;
  color: var(--text-sub);
}

.auth-right {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 60px 56px;
  background: var(--bg-card);
}

.auth-form-title {
  font-size: 26px;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 8px;
}

.auth-form-subtitle {
  font-size: 14px;
  color: var(--text-sub);
  margin-bottom: 36px;
}

.auth-divider {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 24px 0;
}

.auth-divider hr {
  flex: 1;
  border: none;
  border-top: 1px solid var(--border);
}

.auth-divider span {
  font-size: 12px;
  color: var(--text-muted);
  white-space: nowrap;
}

.auth-switch {
  text-align: center;
  margin-top: 24px;
  font-size: 14px;
  color: var(--text-sub);
}

/* ===== ADMIN LAYOUT ===== */
.admin-wrapper {
  display: grid;
  grid-template-columns: 240px 1fr;
  min-height: 100vh;
  background: var(--bg-dark);
}

.admin-sidebar {
  background: var(--bg-card);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
}

.admin-sidebar-header {
  padding: 20px;
  border-bottom: 1px solid var(--border);
  background: var(--bg-panel);
}

.admin-nav { padding: 16px 0; flex: 1; }

.admin-nav-section {
  padding: 8px 20px 4px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--text-muted);
}

.admin-nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 20px;
  color: var(--text-sub);
  font-size: 14px;
  text-decoration: none;
  transition: all var(--transition);
  border-left: 3px solid transparent;
}

.admin-nav-item:hover,
.admin-nav-item.active {
  color: var(--text-main);
  background: rgba(10,92,173,0.1);
  border-left-color: var(--primary);
}

.admin-main { display: flex; flex-direction: column; }

.admin-topbar {
  background: var(--bg-card);
  border-bottom: 1px solid var(--border);
  padding: 0 28px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-shrink: 0;
}

.admin-topbar h2 {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-main);
}

.admin-body {
  padding: 28px;
  flex: 1;
}

/* ===== OVERVIEW CARDS ===== */
.overview-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 28px;
}

.overview-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  padding: 22px;
  position: relative;
  overflow: hidden;
}

.overview-card::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 60px;
  height: 60px;
  background: var(--accent-color, rgba(10,92,173,0.08));
  clip-path: polygon(100% 0, 0 0, 100% 100%);
}

.overview-number {
  font-size: 34px;
  font-weight: 800;
  color: var(--accent-color, var(--primary-light));
  line-height: 1;
  margin-bottom: 6px;
}

.overview-label {
  font-size: 13px;
  color: var(--text-sub);
}

/* ===== MISC ===== */
.page-section {
  padding: 60px 0;
}

.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
}

.card-header {
  padding: 18px 24px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--bg-panel);
}

.card-header h3 {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-main);
}

.card-body { padding: 24px; }

.text-primary { color: var(--primary-light); }
.text-accent  { color: var(--accent-light); }
.text-muted   { color: var(--text-muted); }
.text-sub     { color: var(--text-sub); }
.text-success { color: var(--success); }
.text-danger  { color: var(--danger); }
.text-warning { color: var(--warning); }

.font-bold { font-weight: 700; }
.font-sm   { font-size: 13px; }

.mt-0 { margin-top: 0; }
.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }
.mt-4 { margin-top: 32px; }

.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 8px; }
.mb-2 { margin-bottom: 16px; }
.mb-3 { margin-bottom: 24px; }

.d-flex { display: flex; }
.align-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-2 { gap: 10px; }

.hidden { display: none !important; }

.divider {
  height: 1px;
  background: var(--border);
  margin: 24px 0;
}

/* 股东列表 */
.shareholder-list { display: flex; flex-direction: column; gap: 16px; }

.shareholder-item {
  background: var(--bg-input);
  border: 1px solid var(--border);
  padding: 20px;
  position: relative;
}

.shareholder-item .remove-btn {
  position: absolute;
  top: 12px;
  right: 12px;
  background: rgba(204,34,51,0.15);
  color: var(--danger);
  border: 1px solid rgba(204,34,51,0.3);
  padding: 4px 10px;
  font-size: 12px;
  cursor: pointer;
  transition: all var(--transition);
}

.shareholder-item .remove-btn:hover {
  background: var(--danger);
  color: #fff;
}

.add-shareholder-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px;
  border: 2px dashed var(--border);
  background: transparent;
  color: var(--text-muted);
  font-size: 14px;
  cursor: pointer;
  transition: all var(--transition);
  width: 100%;
  font-family: var(--font);
}

.add-shareholder-btn:hover {
  border-color: var(--primary);
  color: var(--primary-light);
  background: rgba(10,92,173,0.05);
}

/* 条件显示区域 */
.conditional-block {
  display: none;
  padding: 20px;
  background: rgba(10,92,173,0.05);
  border-left: 3px solid var(--primary);
  margin-top: 12px;
}

.conditional-block.visible { display: block; }

/* Scrollbar */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: var(--bg-dark); }
::-webkit-scrollbar-thumb { background: var(--border-light); }
::-webkit-scrollbar-thumb:hover { background: var(--text-muted); }

/* Responsive */
@media (max-width: 1024px) {
  .hero-content { grid-template-columns: 1fr; }
  .hero-stats { display: grid; grid-template-columns: repeat(3, 1fr); }
  .stat-item { border-bottom: none; border-right: 1px solid var(--border); padding: 0 20px; }
  .stat-item:last-child { border-right: none; }
  .footer-top { grid-template-columns: 1fr 1fr; gap: 32px; }
  .auth-wrapper { grid-template-columns: 1fr; }
  .auth-left { display: none; }
  .auth-right { padding: 40px; }
  .page-layout { grid-template-columns: 1fr; }
  .sidebar { display: none; }
  .overview-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .header-inner { padding: 0 16px; }
  .main-nav { display: none; }
  .hero-title { font-size: 32px; }
  .footer-top { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .form-row.triple { grid-template-columns: 1fr; }
  .admin-wrapper { grid-template-columns: 1fr; }
  .admin-sidebar { display: none; }
  .data-table { font-size: 12px; }
  .data-table th, .data-table td { padding: 10px 12px; }
  .overview-grid { grid-template-columns: 1fr 1fr; }
}

/* Selection type toggle */
.type-toggle {
  display: flex;
  gap: 0;
  margin-bottom: 8px;
}

.type-toggle-btn {
  flex: 1;
  padding: 12px;
  text-align: center;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid var(--border);
  background: var(--bg-input);
  color: var(--text-sub);
  transition: all var(--transition);
  font-family: var(--font);
}

.type-toggle-btn:first-child { border-right: none; }

.type-toggle-btn.active {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}

/* Detail info display */
.info-grid {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 0;
}

.info-row {
  display: contents;
}

.info-row .info-label,
.info-row .info-value {
  padding: 10px 14px;
  border-bottom: 1px solid var(--border);
  font-size: 13px;
}

.info-row .info-label {
  color: var(--text-sub);
  font-weight: 600;
  background: var(--bg-panel);
  border-right: 1px solid var(--border);
}

.info-row .info-value { color: var(--text-main); }

.info-row:last-child .info-label,
.info-row:last-child .info-value { border-bottom: none; }

/* ===== APPLICATION PROGRESS TIMELINE ===== */
.progress-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 40px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border);
}

.progress-header .progress-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--primary-light);
  display: flex;
  align-items: center;
  gap: 8px;
}

.progress-header .progress-label::before {
  content: '';
  width: 28px;
  height: 2px;
  background: var(--accent);
  flex-shrink: 0;
}

/* 状态步骤条 */
.status-steps {
  display: flex;
  align-items: flex-start;
  gap: 0;
  margin-bottom: 48px;
  position: relative;
  overflow-x: auto;
  padding-bottom: 8px;
}

.status-steps::before {
  content: '';
  position: absolute;
  top: 18px;
  left: 18px;
  right: 18px;
  height: 2px;
  background: var(--border);
  z-index: 0;
}

.status-step {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  position: relative;
  z-index: 1;
  min-width: 90px;
}

.step-dot {
  width: 36px;
  height: 36px;
  border: 2px solid var(--border);
  background: var(--bg-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 700;
  color: var(--text-muted);
  transition: all 0.3s ease;
  position: relative;
}

.step-dot.done {
  border-color: var(--success);
  background: rgba(26,170,85,0.15);
  color: var(--success);
}

.step-dot.active {
  border-color: var(--primary-light);
  background: rgba(10,92,173,0.2);
  color: var(--primary-light);
  box-shadow: 0 0 0 4px rgba(10,92,173,0.1);
}

.step-dot.failed {
  border-color: var(--danger);
  background: rgba(204,34,51,0.15);
  color: var(--danger);
}

.step-line {
  position: absolute;
  top: 17px;
  left: calc(50% + 18px);
  right: calc(-50% + 18px);
  height: 2px;
  background: var(--border);
  z-index: 0;
}

.step-line.done { background: var(--success); }
.step-line.active { background: linear-gradient(90deg, var(--success), var(--primary-light)); }

.step-name {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  text-align: center;
  white-space: nowrap;
}

.step-name.done { color: var(--success); }
.step-name.active { color: var(--primary-light); }
.step-name.failed { color: var(--danger); }

/* 时间轴 */
.timeline {
  position: relative;
  padding-left: 40px;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 13px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--border);
}

.timeline-item {
  position: relative;
  margin-bottom: 28px;
}

.timeline-item:last-child { margin-bottom: 0; }

.timeline-dot {
  position: absolute;
  left: -34px;
  top: 3px;
  width: 20px;
  height: 20px;
  border: 2px solid var(--border);
  background: var(--bg-dark);
  display: flex;
  align-items: center;
  justify-content: center;
}

.timeline-dot.dot-done {
  border-color: var(--success);
  background: rgba(26,170,85,0.2);
}

.timeline-dot.dot-active {
  border-color: var(--primary-light);
  background: rgba(10,92,173,0.2);
  animation: pulse-border 2s infinite;
}

.timeline-dot.dot-failed {
  border-color: var(--danger);
  background: rgba(204,34,51,0.2);
}

.timeline-dot.dot-pending {
  border-color: var(--border-light);
  background: var(--bg-panel);
}

@keyframes pulse-border {
  0%, 100% { box-shadow: 0 0 0 0 rgba(10,92,173,0.4); }
  50% { box-shadow: 0 0 0 6px rgba(10,92,173,0); }
}

.timeline-dot-inner {
  width: 6px;
  height: 6px;
  background: currentColor;
}

.timeline-dot.dot-done .timeline-dot-inner { color: var(--success); background: var(--success); }
.timeline-dot.dot-active .timeline-dot-inner { color: var(--primary-light); background: var(--primary-light); }
.timeline-dot.dot-failed .timeline-dot-inner { color: var(--danger); background: var(--danger); }
.timeline-dot.dot-pending .timeline-dot-inner { color: var(--border-light); background: var(--border-light); }

.timeline-time {
  font-size: 11px;
  color: var(--text-muted);
  font-family: monospace;
  letter-spacing: 0.5px;
  margin-bottom: 8px;
}

.timeline-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  padding: 18px 22px;
  transition: border-color 0.2s;
}

.timeline-card.card-done { border-left: 3px solid var(--success); }
.timeline-card.card-active { border-left: 3px solid var(--primary-light); }
.timeline-card.card-failed { border-left: 3px solid var(--danger); }
.timeline-card.card-pending { border-left: 3px solid var(--border-light); }

.timeline-status-tag {
  display: inline-block;
  padding: 3px 10px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.5px;
  margin-bottom: 10px;
}

.tag-done    { background: rgba(26,170,85,0.15); color: var(--success); }
.tag-active  { background: rgba(10,92,173,0.15); color: var(--primary-light); }
.tag-failed  { background: rgba(204,34,51,0.15); color: var(--danger); }
.tag-pending { background: rgba(58,74,98,0.4); color: var(--text-muted); }

.timeline-card h4 {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 6px;
}

.timeline-card p {
  font-size: 13px;
  color: var(--text-sub);
  line-height: 1.7;
}

.detail-back-bar {
  background: var(--bg-card);
  border-bottom: 1px solid var(--border);
  padding: 16px 40px;
  display: flex;
  align-items: center;
  gap: 16px;
}

.app-meta-bar {
  background: var(--bg-panel);
  border-bottom: 1px solid var(--border);
  padding: 12px 40px;
  display: flex;
  align-items: center;
  gap: 32px;
  font-size: 12px;
  color: var(--text-muted);
}

.app-meta-bar strong {
  color: var(--text-main);
  font-weight: 600;
  margin-left: 6px;
}

/* ===== NOTIFICATION BELL ===== */
.notif-bell-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.notif-bell-btn {
  width: 36px;
  height: 36px;
  background: var(--bg-input);
  border: 1px solid var(--border);
  color: var(--text-sub);
  font-size: 16px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  position: relative;
}
.notif-bell-btn:hover { border-color: var(--primary-light); color: var(--primary-light); }

.notif-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  min-width: 16px;
  height: 16px;
  background: var(--accent);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 3px;
  line-height: 1;
  border-radius: 0;
  pointer-events: none;
}
.notif-badge.hidden { display: none; }

.notif-dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  width: 340px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  box-shadow: 0 12px 40px rgba(0,0,0,0.5);
  z-index: 5000;
  max-height: 460px;
  display: none;
  flex-direction: column;
}
.notif-dropdown.open { display: flex; }

.notif-dropdown-header {
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
  background: var(--bg-panel);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-shrink: 0;
}
.notif-dropdown-header span {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-main);
}
.notif-read-all-btn {
  font-size: 11px;
  color: var(--primary-light);
  cursor: pointer;
  background: none;
  border: none;
  padding: 0;
  font-family: var(--font);
}
.notif-read-all-btn:hover { text-decoration: underline; }

.notif-list {
  overflow-y: auto;
  flex: 1;
}

.notif-item {
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  cursor: pointer;
  transition: background 0.15s;
  display: block;
  text-decoration: none;
}
.notif-item:hover { background: var(--bg-panel); }
.notif-item.unread { border-left: 3px solid var(--primary-light); }
.notif-item.read   { border-left: 3px solid transparent; opacity: 0.7; }

.notif-item-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 4px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.notif-item-title .dot {
  width: 6px;
  height: 6px;
  background: var(--primary-light);
  flex-shrink: 0;
}
.notif-item.read .notif-item-title .dot { display: none; }

.notif-item-time {
  font-size: 11px;
  color: var(--text-muted);
  font-family: monospace;
}

.notif-empty {
  padding: 40px 16px;
  text-align: center;
  font-size: 13px;
  color: var(--text-muted);
}

.notif-footer {
  padding: 10px 16px;
  border-top: 1px solid var(--border);
  text-align: center;
  flex-shrink: 0;
}
.notif-footer a {
  font-size: 12px;
  color: var(--primary-light);
  text-decoration: none;
}
.notif-footer a:hover { text-decoration: underline; }
