/* 使用系统字体替代 Google Fonts Inter */

/* ========================================
   亮色/暗色主题系统
   ======================================== */
:root, [data-theme="light"] {
  /* 主色调 - 温暖珊瑚 */
  --primary: #E07A5F;
  --primary-hover: #D56A4A;
  --primary-active: #C05A39;
  --primary-light: #F4A261;
  --primary-glow: rgba(224, 122, 95, 0.3);

  /* 背景色 */
  --bg-primary: #FAF8F5;
  --bg-secondary: #FFFFFF;
  --bg-tertiary: #F0EDE8;
  --bg-card: #FFFFFF;
  --bg-hover: #FFF5F0;
  --bg-input: #FAF8F5;

  /* 文字色 */
  --text-primary: #3D405B;
  --text-secondary: #6B7280;
  --text-tertiary: #9CA3AF;
  --text-inverse: #FFFFFF;
  --text-link: #E07A5F;

  /* 边框色 */
  --border-light: #E8E4DE;
  --border-default: #D4D0C8;
  --border-focus: #E07A5F;

  /* 状态色 */
  --success: #81B29A;
  --success-bg: rgba(129, 178, 154, 0.15);
  --success-text: #5A8A73;
  --error: #E76F51;
  --error-bg: rgba(231, 111, 81, 0.1);
  --error-text: #C25A40;
  --warning: #F4A261;
  --warning-bg: rgba(244, 162, 97, 0.15);

  /* 阴影 */
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.12);
  --shadow-xl: 0 16px 48px rgba(0, 0, 0, 0.15);

  /* 圆角 */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --radius-full: 9999px;

  /* 过渡 */
  --transition-fast: 0.15s ease;
  --transition-normal: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.4s cubic-bezier(0.4, 0, 0.2, 1);

  /* 遮罩 */
  --overlay-bg: rgba(0, 0, 0, 0.5);
}

[data-theme="dark"] {
  --primary: #E89B7D;
  --primary-hover: #F0A889;
  --primary-active: #D98B6D;
  --primary-light: #F4B789;
  --primary-glow: rgba(232, 155, 125, 0.3);

  --bg-primary: #1A1823;
  --bg-secondary: #242330;
  --bg-tertiary: #2D2A3D;
  --bg-card: #242330;
  --bg-hover: #2D2A3D;
  --bg-input: #2D2A3D;

  --text-primary: #F5F3F0;
  --text-secondary: #B8B3C0;
  --text-tertiary: #7A7588;
  --text-inverse: #1A1823;
  --text-link: #E89B7D;

  --border-light: #3D3855;
  --border-default: #4A4565;
  --border-focus: #E89B7D;

  --success-bg: rgba(129, 178, 154, 0.15);
  --success-text: #A8D4C0;
  --error-bg: rgba(231, 111, 81, 0.15);
  --error-text: #F0A889;
  --warning-bg: rgba(244, 162, 97, 0.15);

  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.5);
  --shadow-xl: 0 16px 48px rgba(0, 0, 0, 0.6);

  --overlay-bg: rgba(0, 0, 0, 0.7);
}

/* ========================================
   基础样式
   ======================================== */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans SC", sans-serif;
  min-height: 100vh;
  color: var(--text-primary);
  background-color: var(--bg-primary);
  line-height: 1.6;
  transition: background-color var(--transition-normal), color var(--transition-normal);
}

a {
  color: var(--text-link);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--primary-hover);
}

/* ========================================
   导航栏
   ======================================== */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg-secondary);
  border-bottom: 1px solid var(--border-light);
  padding: 0.875rem 0;
  transition: all var(--transition-normal);
}

.navbar-container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.navbar-brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--text-primary);
  transition: opacity var(--transition-fast);
}

.navbar-brand:hover {
  opacity: 0.85;
  color: var(--text-primary);
}

.navbar-brand svg {
  width: 28px;
  height: 28px;
  stroke: var(--primary);
}

.navbar-nav {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-link {
  color: var(--text-secondary);
  font-weight: 500;
  font-size: 0.95rem;
  padding: 0.5rem 0;
  position: relative;
  transition: color var(--transition-fast);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary);
  transition: width var(--transition-normal);
}

.nav-link:hover {
  color: var(--primary);
}

.nav-link:hover::after {
  width: 100%;
}

.nav-link.active {
  color: var(--primary);
}

.nav-link.active::after {
  width: 100%;
}

/* 主题切换按钮 */
.theme-toggle {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-full);
  border: 2px solid var(--border-light);
  background: var(--bg-card);
  color: var(--text-secondary);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-normal);
}

.theme-toggle:hover {
  border-color: var(--primary);
  color: var(--primary);
  transform: rotate(15deg);
}

.theme-toggle svg {
  width: 20px;
  height: 20px;
}

/* 移动端菜单按钮 */
.mobile-menu-btn {
  display: none;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  border: none;
  background: var(--bg-tertiary);
  color: var(--text-primary);
  cursor: pointer;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
}

.mobile-menu-btn:hover {
  background: var(--bg-hover);
}

.mobile-menu-btn svg {
  width: 24px;
  height: 24px;
}

/* ========================================
   移动端菜单
   ======================================== */
.mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--bg-secondary);
  z-index: 1000;
  transform: translateX(100%);
  transition: transform var(--transition-normal);
}

.mobile-menu.open {
  transform: translateX(0);
}

.mobile-menu-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.5rem;
  border-bottom: 1px solid var(--border-light);
}

.mobile-menu-close {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-full);
  border: none;
  background: var(--bg-tertiary);
  color: var(--text-primary);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  transition: all var(--transition-fast);
}

.mobile-menu-close:hover {
  background: var(--bg-hover);
}

.mobile-menu-content {
  padding: 1.5rem;
  animation: slideInRight var(--transition-normal);
}

.mobile-nav-links {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.mobile-nav-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 1.25rem;
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-weight: 500;
  font-size: 1.1rem;
  transition: all var(--transition-fast);
}

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

.mobile-nav-link.active {
  background: var(--primary-glow);
  color: var(--primary);
}

.mobile-menu-footer {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 1.5rem;
  border-top: 1px solid var(--border-light);
  text-align: center;
  color: var(--text-tertiary);
  font-size: 0.875rem;
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(20px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* ========================================
   主内容区域
   ======================================== */
.main {
  min-height: calc(100vh - 200px);
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ========================================
   Hero 区域
   ======================================== */
.hero {
  padding: 5rem 0;
  text-align: center;
  animation: fadeInUp 0.6s ease;
}

.hero-content {
  max-width: 700px;
  margin: 0 auto;
}

.hero-icon {
  width: 120px;
  height: 120px;
  margin: 0 auto 2rem;
  animation: float 3s ease-in-out infinite;
}

.hero h1 {
  font-size: 2.75rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 1rem;
  line-height: 1.2;
}

.hero p {
  font-size: 1.2rem;
  color: var(--text-secondary);
  margin-bottom: 2rem;
  line-height: 1.7;
}

.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem 2.5rem;
  font-size: 1.1rem;
  font-weight: 600;
  border-radius: var(--radius-lg);
  transition: all var(--transition-normal);
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

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

/* ========================================
   表单卡片区域
   ======================================== */
.form-section {
  margin-bottom: 4rem;
  animation: fadeInUp 0.8s ease 0.2s both;
}

.form-card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-xl);
  padding: 2.5rem;
  box-shadow: var(--shadow-md);
  transition: all var(--transition-normal);
}

.form-card:hover {
  box-shadow: var(--shadow-lg);
}

.form-card-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border-light);
}

.form-card-header svg {
  width: 28px;
  height: 28px;
  stroke: var(--primary);
}

.form-card-header h2 {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-primary);
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-label {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  font-weight: 500;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
  font-size: 0.95rem;
}

.form-label svg {
  width: 16px;
  height: 16px;
  stroke: var(--primary);
}

.form-label .required {
  color: var(--error);
  margin-left: 0.25rem;
}

.form-hint {
  font-size: 0.8rem;
  color: var(--text-tertiary);
  margin-top: 0.375rem;
}

.form-input {
  width: 100%;
  padding: 0.875rem 1rem;
  font-size: 1rem;
  font-family: inherit;
  color: var(--text-primary);
  background: var(--bg-input);
  border: 2px solid var(--border-light);
  border-radius: var(--radius-md);
  transition: all var(--transition-fast);
}

.form-input::placeholder {
  color: var(--text-tertiary);
}

.form-input:hover {
  border-color: var(--border-default);
}

.form-input:focus {
  outline: none;
  border-color: var(--primary);
  background: var(--bg-card);
  box-shadow: 0 0 0 4px var(--primary-glow);
}

.form-input.error {
  border-color: var(--error);
  box-shadow: 0 0 0 4px var(--error-bg);
}

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

/* 单选卡片组 */
.radio-group {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.radio-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  padding: 1.25rem;
  background: var(--bg-input);
  border: 2px solid var(--border-light);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.radio-card:hover {
  border-color: var(--primary);
  background: var(--bg-hover);
}

.radio-card.selected {
  border-color: var(--primary);
  background: var(--primary-glow);
}

.radio-card input {
  display: none;
}

.radio-card-icon {
  font-size: 1.75rem;
}

.radio-card-label {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text-primary);
}

.radio-card-desc {
  font-size: 0.8rem;
  color: var(--text-tertiary);
}

/* 复选框卡片 */
.checkbox-card {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 1rem 1.25rem;
  background: var(--bg-input);
  border: 2px solid var(--border-light);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.checkbox-card:hover {
  border-color: var(--primary);
  background: var(--bg-hover);
}

.checkbox-card input {
  width: 20px;
  height: 20px;
  margin-top: 2px;
  accent-color: var(--primary);
  cursor: pointer;
  flex-shrink: 0;
}

.checkbox-card-content {
  flex: 1;
}

.checkbox-card-label {
  font-weight: 500;
  color: var(--text-primary);
  font-size: 0.95rem;
}

.checkbox-card-desc {
  font-size: 0.8rem;
  color: var(--text-tertiary);
  margin-top: 0.25rem;
}

/* 拖拽上传区域 */
.upload-zone {
  position: relative;
  padding: 3rem 2rem;
  background: var(--bg-input);
  border: 2px dashed var(--border-default);
  border-radius: var(--radius-lg);
  text-align: center;
  cursor: pointer;
  transition: all var(--transition-normal);
}

.upload-zone:hover,
.upload-zone.dragover {
  border-color: var(--primary);
  background: var(--bg-hover);
  transform: scale(1.01);
}

.upload-zone.dragover {
  transform: scale(1.02);
}

.upload-zone-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 1rem;
  stroke: var(--primary);
  opacity: 0.8;
}

.upload-zone-text {
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.upload-zone-hint {
  font-size: 0.875rem;
  color: var(--text-tertiary);
}

.upload-zone-file {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 0.75rem 1.5rem;
  background: var(--primary);
  color: white;
  border-radius: var(--radius-md);
  margin-top: 1rem;
  font-weight: 500;
  transition: all var(--transition-fast);
}

.upload-zone-file:hover {
  background: var(--primary-hover);
  transform: translateY(-1px);
}

.file-info {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 1.5rem;
  background: var(--success-bg);
  border: 2px solid var(--success);
  border-radius: var(--radius-md);
  margin-top: 1rem;
}

.file-info-icon {
  width: 24px;
  height: 24px;
  stroke: var(--success);
}

.file-info-content {
  flex: 1;
  text-align: left;
}

.file-info-name {
  font-weight: 500;
  color: var(--success-text);
  font-size: 0.95rem;
}

.file-info-size {
  font-size: 0.8rem;
  color: var(--success-text);
  opacity: 0.8;
}

.file-info-remove {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-full);
  border: none;
  background: var(--success);
  color: white;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  transition: all var(--transition-fast);
}

.file-info-remove:hover {
  background: var(--primary);
}

/* 进度条 */
.progress-section {
  display: none;
  margin-top: 1.5rem;
}

.progress-section.active {
  display: block;
  animation: fadeInUp 0.3s ease;
}

.progress-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.75rem;
}

.progress-label {
  font-weight: 500;
  color: var(--text-primary);
  font-size: 0.95rem;
}

.progress-percent {
  font-weight: 600;
  color: var(--primary);
  font-size: 0.95rem;
}

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

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--primary), var(--primary-light));
  border-radius: var(--radius-full);
  transition: width 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
}

.progress-fill::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  width: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
  animation: shimmer 2s infinite;
}

@keyframes shimmer {
  from { transform: translateX(-100%); }
  to { transform: translateX(100%); }
}

.progress-text {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-top: 0.5rem;
}

/* 主按钮 */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 1rem 2.5rem;
  font-size: 1.1rem;
  font-weight: 600;
  font-family: inherit;
  color: white;
  background: var(--primary);
  border: none;
  border-radius: var(--radius-lg);
  cursor: pointer;
  transition: all var(--transition-normal);
  position: relative;
  overflow: hidden;
}

.btn-primary::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  transition: left 0.5s ease;
}

.btn-primary:hover:not(:disabled)::before {
  left: 100%;
}

.btn-primary:hover:not(:disabled) {
  background: var(--primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px var(--primary-glow);
  filter: brightness(1.05);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.btn-primary:active:not(:disabled) {
  transform: translateY(0);
}

.btn-primary:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.btn-primary .spinner {
  width: 20px;
  height: 20px;
  border: 2px solid rgba(255,255,255,0.3);
  border-top-color: white;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ========================================
   功能特性区域
   ======================================== */
.features-section {
  padding: 4rem 0;
  animation: fadeInUp 1s ease 0.4s both;
}

.section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.section-title {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.75rem;
}

.section-subtitle {
  font-size: 1.05rem;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 2rem;
  text-align: center;
  transition: all var(--transition-normal);
}

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

.feature-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 1.25rem;
  padding: 1rem;
  background: var(--bg-hover);
  border-radius: var(--radius-lg);
}

.feature-title {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.feature-desc {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ========================================
   使用流程区域
   ======================================== */
.steps-section {
  padding: 4rem 0;
  animation: fadeInUp 1s ease 0.6s both;
}

.steps-container {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.step-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.75rem;
  max-width: 180px;
}

.step-icon {
  width: 80px;
  height: 80px;
  padding: 1rem;
  background: var(--bg-card);
  border: 2px solid var(--border-light);
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-normal);
}

.step-icon svg {
  width: 36px;
  height: 36px;
}

.step-item:hover .step-icon {
  border-color: var(--primary);
  background: var(--primary-glow);
  transform: scale(1.05);
}

.step-label {
  font-weight: 600;
  font-size: 1rem;
  color: var(--text-primary);
}

.step-desc {
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.step-arrow {
  color: var(--primary);
  opacity: 0.5;
  font-size: 1.5rem;
}

/* ========================================
   页脚
   ======================================== */
.footer {
  padding: 2.5rem 0;
  text-align: center;
  border-top: 1px solid var(--border-light);
  background: var(--bg-secondary);
}

.footer-text {
  font-size: 0.9rem;
  color: var(--text-tertiary);
  margin-bottom: 0.5rem;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-top: 1rem;
}

.footer-link {
  font-size: 0.875rem;
  color: var(--text-secondary);
  transition: color var(--transition-fast);
}

.footer-link:hover {
  color: var(--primary);
}

/* ========================================
   模态框
   ======================================== */
.modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--overlay-bg);
  z-index: 1000;
  animation: fadeIn 0.2s ease;
  display: none;
}

.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1001;
  padding: 1.5rem;
  animation: fadeIn 0.2s ease;
}

.modal.open {
  display: flex;
}

.modal-dialog {
  background: var(--bg-card);
  border-radius: var(--radius-xl);
  max-width: 600px;
  width: 100%;
  max-height: 90vh;
  overflow: hidden;
  box-shadow: var(--shadow-xl);
  animation: modalIn 0.3s ease;
}

@keyframes modalIn {
  from {
    opacity: 0;
    transform: scale(0.95) translateY(20px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

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

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--border-light);
}

.modal-title {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-primary);
}

.modal-title svg {
  width: 22px;
  height: 22px;
  stroke: var(--primary);
}

.modal-close {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-full);
  border: none;
  background: var(--bg-tertiary);
  color: var(--text-primary);
  cursor: pointer;
  font-size: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
}

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

.modal-body {
  padding: 1.5rem;
  max-height: 60vh;
  overflow-y: auto;
}

.modal-footer {
  display: flex;
  justify-content: center;
  gap: 1rem;
  padding: 1.25rem 1.5rem;
  border-top: 1px solid var(--border-light);
  background: var(--bg-tertiary);
}

/* ========================================
   提示框
   ======================================== */
.alert {
  padding: 1rem 1.25rem;
  border-radius: var(--radius-md);
  margin-bottom: 1rem;
}

.alert-success {
  background: var(--success-bg);
  color: var(--success-text);
  border: 1px solid var(--success);
}

.alert-error {
  background: var(--error-bg);
  color: var(--error-text);
  border: 1px solid var(--error);
}

.alert-title {
  font-weight: 600;
  font-size: 1rem;
  margin-bottom: 0.5rem;
}

/* ========================================
   文件列表
   ======================================== */
.file-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 1rem;
}

.file-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.25rem;
  background: var(--bg-input);
  border: 2px solid var(--border-light);
  border-radius: var(--radius-md);
  transition: all var(--transition-fast);
}

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

.file-item-link {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--text-primary);
  text-decoration: none;
}

.file-item-link:hover {
  color: var(--primary);
}

.file-item-icon {
  width: 24px;
  height: 24px;
  stroke: var(--primary);
}

.file-item-name {
  font-weight: 500;
  font-size: 0.95rem;
}

.file-item-size {
  font-size: 0.8rem;
  color: var(--text-tertiary);
  margin-left: 0.5rem;
}

.file-item-badge {
  padding: 0.375rem 0.75rem;
  background: var(--bg-tertiary);
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-secondary);
}

/* ========================================
   详情折叠面板
   ======================================== */
.details-panel {
  border: 2px solid var(--border-light);
  border-radius: var(--radius-md);
  overflow: hidden;
  margin-top: 1rem;
}

.details-summary {
  padding: 0.875rem 1rem;
  font-weight: 500;
  color: var(--text-primary);
  cursor: pointer;
  background: var(--bg-input);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: all var(--transition-fast);
}

.details-summary:hover {
  background: var(--bg-hover);
}

.details-summary::before {
  content: '▶';
  font-size: 0.7rem;
  transition: transform var(--transition-fast);
}

.details-panel[open] > .details-summary::before {
  transform: rotate(90deg);
}

.details-content {
  padding: 1rem;
  background: var(--bg-primary);
  border-top: 1px solid var(--border-light);
}

.details-content pre {
  margin: 0;
  padding: 1rem;
  background: var(--bg-tertiary);
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
  color: var(--text-inverse);
  overflow-x: auto;
  max-height: 300px;
}

/* ========================================
   响应式设计
   ======================================== */
@media (max-width: 1024px) {
  .nav-links {
    display: none;
  }

  .mobile-menu-btn {
    display: flex;
  }

  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .hero h1 {
    font-size: 2.25rem;
  }
}

@media (max-width: 768px) {
  .container {
    padding: 0 1rem;
  }

  .hero {
    padding: 3rem 0;
  }

  .hero h1 {
    font-size: 1.875rem;
  }

  .hero p {
    font-size: 1rem;
  }

  .hero-icon {
    width: 100px;
    height: 100px;
  }

  .form-card {
    padding: 1.5rem;
    border-radius: var(--radius-lg);
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .radio-group {
    grid-template-columns: 1fr;
  }

  .upload-zone {
    padding: 2rem 1rem;
  }

  .features-grid {
    grid-template-columns: 1fr;
  }

  .steps-container {
    flex-direction: column;
    gap: 2rem;
  }

  .step-arrow {
    transform: rotate(90deg);
  }

  .modal-dialog {
    margin: 1rem;
  }

  .modal-footer {
    flex-direction: column;
  }

  .modal-footer .btn {
    width: 100%;
  }
}

@media (max-width: 480px) {
  .navbar-brand span {
    display: none;
  }

  .hero h1 {
    font-size: 1.5rem;
  }

  .section-title {
    font-size: 1.375rem;
  }

  .form-card {
    padding: 1.25rem;
  }

  .btn-primary {
    padding: 0.875rem 2rem;
    font-size: 1rem;
  }

  .step-icon {
    width: 64px;
    height: 64px;
  }

  .step-icon svg {
    width: 28px;
    height: 28px;
  }
}

/* ========================================
   打印样式
   ======================================== */
@media print {
  .navbar,
  .mobile-menu,
  .hero-cta,
  .footer,
  .modal {
    display: none !important;
  }

  body {
    background: white;
    color: black;
  }

  .form-card {
    box-shadow: none;
    border: 1px solid #ddd;
  }
}

/* ========================================
   无障碍
   ======================================== */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

/* ========================================
   Hero 背景圆圈暗色模式
   ======================================== */
[data-theme="dark"] .hero-bg-circle {
  fill: #2D2A3D;
}

/* ========================================
   进度条成功/失败状态
   ======================================== */
.progress-fill.bg-success {
  background: linear-gradient(90deg, var(--success), #A8D4C0) !important;
}

.progress-fill.bg-danger {
  background: linear-gradient(90deg, var(--error), #F0A889) !important;
}

/* ========================================
   按钮成功/危险变体
   ======================================== */
.btn-success {
  background: var(--success);
  border-color: var(--success);
  color: white;
}

.btn-success:hover:not(:disabled) {
  background: #6B9A82;
  border-color: #6B9A82;
}

.btn-danger {
  background: var(--error);
  border-color: var(--error);
  color: white;
}

.btn-danger:hover:not(:disabled) {
  background: #C25A40;
  border-color: #C25A40;
}

/* ========================================
   位置固定
   ======================================== */
.position-fixed {
  position: fixed;
}

/* ========================================
   SVG 图标样式
   ======================================== */
.svg-inline--fa {
  display: inline-block;
  width: 1em;
  height: 1em;
  vertical-align: -0.125em;
}

/* ========================================
   加载动画
   ======================================== */
.loading-pulse {
  animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes pulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.5;
  }
}

/* ========================================
   工具类
   ======================================== */
.mb-0 { margin-bottom: 0 !important; }
.mb-1 { margin-bottom: 0.25rem !important; }
.mb-2 { margin-bottom: 0.5rem !important; }
.mb-3 { margin-bottom: 1rem !important; }
.mb-4 { margin-bottom: 1.5rem !important; }
.mt-0 { margin-top: 0 !important; }
.mt-1 { margin-top: 0.25rem !important; }
.mt-2 { margin-top: 0.5rem !important; }
.mt-3 { margin-top: 1rem !important; }
.mt-4 { margin-top: 1.5rem !important; }
.p-0 { padding: 0 !important; }
.p-1 { padding: 0.25rem !important; }
.p-2 { padding: 0.5rem !important; }
.p-3 { padding: 1rem !important; }
.p-4 { padding: 1.5rem !important; }

.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.d-block { display: block; }
.d-inline-block { display: inline-block; }
.d-flex { display: flex; }
.d-none { display: none; }

.flex-column { flex-direction: column; }
.flex-wrap { flex-wrap: wrap; }
.align-items-center { align-items: center; }
.align-items-start { align-items: flex-start; }
.align-items-end { align-items: flex-end; }
.justify-content-center { justify-content: center; }
.justify-content-between { justify-content: space-between; }
.justify-content-start { justify-content: flex-start; }
.justify-content-end { justify-content: flex-end; }

.gap-1 { gap: 0.25rem; }
.gap-2 { gap: 0.5rem; }
.gap-3 { gap: 1rem; }
.gap-4 { gap: 1.5rem; }

.w-auto { width: auto; }
.w-100 { width: 100%; }
.h-auto { height: auto; }
.h-100 { height: 100%; }

.flex-1 { flex: 1; }
.flex-shrink-0 { flex-shrink: 0; }

.overflow-hidden { overflow: hidden; }
.overflow-auto { overflow: auto; }
.overflow-y-auto { overflow-y: auto; }

.cursor-pointer { cursor: pointer; }
.cursor-not-allowed { cursor: not-allowed; }

.user-select-none { user-select: none; }
.pointer-events-none { pointer-events: none; }

/* ========================================
   响应式显示类
   ======================================== */
@media (max-width: 480px) {
  .d-xs-none { display: none !important; }
  .d-xs-block { display: block !important; }
  .d-xs-flex { display: flex !important; }
}

@media (max-width: 768px) {
  .d-sm-none { display: none !important; }
  .d-sm-block { display: block !important; }
  .d-sm-flex { display: flex !important; }
}

@media (max-width: 1024px) {
  .d-md-none { display: none !important; }
  .d-md-block { display: block !important; }
  .d-md-flex { display: flex !important; }
}

@media (min-width: 1025px) {
  .d-lg-none { display: none !important; }
  .d-lg-block { display: block !important; }
  .d-lg-flex { display: flex !important; }
}

/* ========================================
    Excel预览弹窗样式
    ======================================== */
.modal-large {
    max-width: 90vw;
    width: 1200px;
}

.modal-large .modal-dialog {
    max-width: 90vw;
    width: 1200px;
    max-height: 90vh;
}

.sheet-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin-bottom: 1rem;
    border-bottom: 2px solid var(--border-light);
    padding-bottom: 8px;
}

.sheet-tab {
    padding: 8px 16px;
    cursor: pointer;
    border-radius: var(--radius-sm);
    background: var(--bg-tertiary);
    border: none;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-secondary);
    transition: all var(--transition-fast);
}

.sheet-tab:hover {
    background: var(--bg-hover);
    color: var(--text-primary);
}

.sheet-tab.active {
    background: var(--primary);
    color: white;
}

.sheet-content {
    overflow: auto;
    max-height: 65vh;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-sm);
}

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

.sheet-content th,
.sheet-content td {
    border: 1px solid var(--border-light);
    padding: 6px 10px;
    white-space: nowrap;
    text-align: left;
}

.sheet-content th {
    background: var(--bg-tertiary);
    font-weight: 600;
    color: var(--text-primary);
    position: sticky;
    top: 0;
    z-index: 1;
}

.sheet-content tr:nth-child(even) {
    background: var(--bg-primary);
}

.sheet-content tr:hover {
    background: var(--bg-hover);
}

#previewContainer .loading {
    text-align: center;
    padding: 2rem;
    color: var(--text-secondary);
}

#previewContainer .error {
    text-align: center;
    padding: 2rem;
    color: var(--error);
}

/* ========================================
    预览图标样式
    ======================================== */
.file-item .preview-icon {
    width: 20px;
    height: 20px;
    cursor: pointer;
    margin-left: 8px;
    stroke: var(--text-tertiary);
    flex-shrink: 0;
    transition: all var(--transition-fast);
}

.file-item:hover .preview-icon {
    stroke: var(--primary);
}

.file-item .preview-icon:hover {
    stroke: var(--primary);
    transform: scale(1.1);
}

/* 响应式调整 */
@media (max-width: 768px) {
    .modal-large .modal-dialog {
        width: 95vw;
        max-width: 95vw;
    }

    .sheet-content {
        max-height: 60vh;
    }

    .sheet-content table {
        font-size: 12px;
    }
}
