/* IERCC 智能要素资源统筹中心 - 深空科技设计语言 v2 */

/* ===== 设计变量 ===== */
:root {
  --space-900: #0B1120;
  --space-800: #0F1E3D;
  --space-700: #16294F;
  --brand-600: #2563EB;
  --brand-700: #1D4ED8;
  --brand-500: #3B82F6;
  --cyan-500: #06B6D4;
  --ink-900: #0F172A;
  --ink-700: #334155;
  --ink-600: #475569;
  --ink-500: #64748B;
  --ink-400: #94A3B8;
  --surface: #FFFFFF;
  --page-bg: #F8FAFC;
  --border: #E5E7EB;
  --border-soft: #EEF2F7;
  --radius-sm: 12px;
  --radius: 16px;
  --radius-lg: 20px;
  --shadow-xs: 0 1px 2px rgba(15,23,42,.04);
  --shadow-sm: 0 1px 3px rgba(15,23,42,.06), 0 1px 2px rgba(15,23,42,.04);
  --shadow-md: 0 4px 12px -2px rgba(15,23,42,.08), 0 2px 6px -2px rgba(15,23,42,.05);
  --shadow-lg: 0 18px 40px -12px rgba(15,23,42,.18);
  --shadow-brand: 0 10px 26px -8px rgba(37,99,235,.45);
}

/* ===== 全局样式 ===== */
*, *::before, *::after { box-sizing: border-box; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  color: var(--ink-900);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background: var(--page-bg);
}

/* ===== 导航栏样式 ===== */
.navbar {
  backdrop-filter: blur(14px) saturate(160%);
  -webkit-backdrop-filter: blur(14px) saturate(160%);
  background: rgba(255, 255, 255, 0.72);
  transition: all 0.3s ease;
}
.navbar.scrolled {
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 1px 0 rgba(15,23,42,.06), 0 10px 34px -14px rgba(15,23,42,.18);
}
.nav-link {
  position: relative;
  transition: color 0.25s ease;
  font-weight: 500;
}
.nav-link::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--brand-600), var(--cyan-500));
  border-radius: 2px;
  transition: width 0.3s ease;
}
.nav-link:hover::after,
.nav-link.active::after { width: 100%; }

/* ===== Hero区域（深空科技） ===== */
.hero-section {
  background:
    radial-gradient(1100px 560px at 50% -15%, rgba(37,99,235,.38), transparent 60%),
    radial-gradient(820px 460px at 86% 8%, rgba(6,182,212,.20), transparent 55%),
    linear-gradient(165deg, #0B1120 0%, #0F1E3D 55%, #0A0F1F 100%);
  position: relative;
  overflow: hidden;
  z-index: 1;
}
.hero-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(148,163,184,.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(148,163,184,.07) 1px, transparent 1px);
  background-size: 46px 46px;
  -webkit-mask-image: radial-gradient(circle at 50% 28%, #000 0%, transparent 72%);
  mask-image: radial-gradient(circle at 50% 28%, #000 0%, transparent 72%);
  opacity: .8;
}
.hero-section::after {
  content: '';
  position: absolute;
  left: 50%;
  top: -200px;
  width: 540px;
  height: 540px;
  transform: translateX(-50%);
  background: radial-gradient(circle, rgba(37,99,235,.22), transparent 70%);
  filter: blur(20px);
  pointer-events: none;
}

/* ===== 数据看板 ===== */
.stat-card {
  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}
.stat-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 14px 36px rgba(2,6,23,.45);
  border-color: rgba(6,182,212,.4);
}
.counter {
  font-size: 3rem;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.02em;
  background: linear-gradient(135deg, #7DD3FC, #2563EB);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ===== 卡片样式 ===== */
.content-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  transition: transform 0.28s cubic-bezier(.4,0,.2,1), box-shadow 0.28s ease, border-color 0.28s ease;
  cursor: pointer;
  overflow: hidden;
}
.content-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(37,99,235,.45);
}

/* ===== 按钮样式 ===== */
.btn-primary {
  background: linear-gradient(135deg, var(--brand-600), var(--brand-700));
  color: #fff;
  border: none;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-brand);
  transition: all 0.25s ease;
  font-weight: 600;
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 34px -10px rgba(37,99,235,.6);
}
.btn-outline {
  border: 2px solid var(--brand-600);
  color: var(--brand-700);
  border-radius: var(--radius-sm);
  background: transparent;
  transition: all 0.25s ease;
  font-weight: 600;
}
.btn-outline:hover {
  background: var(--brand-600);
  color: #fff;
  box-shadow: 0 10px 24px -10px rgba(37,99,235,.5);
}

/* ===== 页脚样式（深空） ===== */
.footer {
  background: var(--space-900);
  color: #94A3B8;
}
.footer a { color: #94A3B8; transition: color 0.2s ease; }
.footer a:hover { color: #fff; }

/* ===== 回到顶部按钮 ===== */
.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--brand-600), var(--brand-700));
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  z-index: 1000;
  box-shadow: var(--shadow-brand);
}
.back-to-top.visible { opacity: 1; visibility: visible; }
.back-to-top:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 30px -8px rgba(37,99,235,.6);
}

/* ===== 动画效果 ===== */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.fade-in.visible { opacity: 1; transform: translateY(0); }

@media (prefers-reduced-motion: reduce) {
  .fade-in { opacity: 1; transform: none; transition: none; }
  .content-card, .stat-card, .btn-primary, .back-to-top, .clickable { transition: none; }
}

/* ===== 页面标题区（深空） ===== */
.page-header {
  background:
    radial-gradient(900px 420px at 80% -10%, rgba(37,99,235,.30), transparent 60%),
    linear-gradient(160deg, #0B1120 0%, #0F1E3D 100%);
  padding: 96px 0 72px;
  position: relative;
  overflow: hidden;
}
.page-header::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(148,163,184,.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(148,163,184,.06) 1px, transparent 1px);
  background-size: 46px 46px;
  -webkit-mask-image: radial-gradient(circle at 70% 20%, #000 0%, transparent 70%);
  mask-image: radial-gradient(circle at 70% 20%, #000 0%, transparent 70%);
  opacity: .7;
}

/* ===== 侧边栏导航 ===== */
.sidebar-nav a {
  display: block;
  padding: 10px 15px;
  color: var(--ink-600);
  transition: all 0.25s ease;
  border-left: 3px solid transparent;
  border-radius: 0 8px 8px 0;
  font-weight: 500;
}
.sidebar-nav a:hover,
.sidebar-nav a.active {
  color: var(--brand-700);
  border-left-color: var(--brand-600);
  background-color: rgba(37, 99, 235, 0.06);
}

/* ===== 标签样式 ===== */
.tag {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: 0.01em;
}
.tag-blue   { background-color: rgba(37,99,235,.10);  color: var(--brand-700); }
.tag-red    { background-color: rgba(220,38,38,.10);  color: #DC2626; }
.tag-green  { background-color: rgba(16,185,129,.12); color: #059669; }
.tag-cyan   { background-color: rgba(6,182,212,.12);  color: #0891B2; }
.tag-indigo { background-color: rgba(79,70,229,.10);  color: #4F46E5; }
.tag-orange { background-color: rgba(234,88,12,.10);  color: #EA580C; }
.tag-purple { background-color: rgba(124,58,237,.10); color: #7C3AED; }

/* ===== 时间线样式 ===== */
.timeline {
  position: relative;
  padding-left: 30px;
}
.timeline::before {
  content: '';
  position: absolute;
  left: 10px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(180deg, var(--brand-600), rgba(6,182,212,.4));
}
.timeline-item {
  position: relative;
  margin-bottom: 30px;
}
.timeline-item::before {
  content: '';
  position: absolute;
  left: -25px;
  top: 5px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background-color: var(--brand-600);
  border: 3px solid white;
  box-shadow: 0 0 0 3px rgba(37,99,235,.25);
}

/* ===== 联系表单 ===== */
.form-input {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  transition: all 0.25s ease;
  background: #fff;
  color: var(--ink-900);
  font-size: 15px;
}
.form-input:focus {
  outline: none;
  border-color: var(--brand-600);
  box-shadow: 0 0 0 4px rgba(37,99,235,.12);
}

/* ===== 按钮/卡片按下反馈 ===== */
.clickable {
  cursor: pointer;
  transition: transform 0.12s cubic-bezier(.4,0,.2,1), box-shadow 0.12s;
}
.clickable:active {
  transform: scale(0.97);
  box-shadow: 0 2px 12px rgba(0,0,0,0.1);
}
.clickable:hover {
  box-shadow: 0 6px 20px rgba(15,23,42,.08);
}

/* ===== 详情弹窗（PC端） ===== */
.detail-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fadeIn .2s ease-out;
  padding: 20px;
}
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
.detail-modal {
  background: #fff;
  border-radius: 16px;
  max-width: 640px;
  width: 100%;
  max-height: 85vh;
  overflow-y: auto;
  padding: 32px;
  position: relative;
  animation: modalUp .25s cubic-bezier(.4,0,.2,1);
  box-shadow: 0 20px 60px rgba(0,0,0,.2);
}
@keyframes modalUp {
  from { transform: translateY(20px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}
.detail-modal .modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #F3F4F6;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #6B7280;
  font-size: 16px;
  transition: background .15s;
  border: none;
}
.detail-modal .modal-close:hover { background: #E5E7EB; }
.detail-modal .modal-tag {
  display: inline-block;
  font-size: 12px;
  padding: 4px 12px;
  border-radius: 12px;
  font-weight: 500;
  margin-bottom: 12px;
}
.detail-modal .modal-tag.blue { background: #DBEAFE; color: #1D4ED8; }
.detail-modal .modal-tag.green { background: #D1FAE5; color: #059669; }
.detail-modal .modal-tag.red { background: #FEE2E2; color: #DC2626; }
.detail-modal .modal-tag.purple { background: #EDE9FE; color: #7C3AED; }
.detail-modal .modal-tag.cyan { background: #CFFAFE; color: #0891B2; }
.detail-modal .modal-tag.indigo { background: #E0E7FF; color: #4F46E5; }
.detail-modal .modal-tag.orange { background: #FFF7ED; color: #EA580C; }
.detail-modal .modal-title {
  font-size: 22px;
  font-weight: 700;
  line-height: 1.4;
  margin-bottom: 8px;
  color: #1F2937;
}
.detail-modal .modal-meta {
  font-size: 13px;
  color: #9CA3AF;
  margin-bottom: 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid #E5E7EB;
}
.detail-modal .modal-content {
  font-size: 15px;
  line-height: 1.8;
  color: #4B5563;
}
.detail-modal .modal-points {
  list-style: none;
  padding: 0;
  margin-top: 16px;
}
.detail-modal .modal-points li {
  font-size: 14px;
  padding: 10px 0;
  border-bottom: 1px solid #F3F4F6;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: #4B5563;
}
.detail-modal .modal-points li:last-child { border-bottom: none; }
.detail-modal .modal-points li::before {
  content: '\2713';
  color: #10B981;
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 1px;
}

/* ===== 会员认证系统样式 ===== */

.auth-login-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: linear-gradient(135deg, #3B82F6, #2563EB);
  color: #fff;
  border: none;
  padding: 7px 18px;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all .25s ease;
  white-space: nowrap;
}
.auth-login-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(37,99,235,.35);
}

.auth-avatar-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  cursor: pointer;
  user-select: none;
}
.auth-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: linear-gradient(135deg, #3B82F6, #6366F1);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 600;
  flex-shrink: 0;
}
.auth-avatar-name {
  margin-left: 8px;
  font-size: 14px;
  font-weight: 500;
  color: #1F2937;
  max-width: 80px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.auth-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 180px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 8px 30px rgba(0,0,0,.12);
  border: 1px solid #E5E7EB;
  padding: 8px 0;
  z-index: 9999;
  display: none;
  animation: dropIn .15s ease-out;
}
.auth-dropdown.show { display: block; }
@keyframes dropIn {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: translateY(0); }
}
.auth-dropdown-item {
  padding: 10px 16px;
  font-size: 14px;
  color: #374151;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: background .15s;
}
.auth-dropdown-item:hover { background: #F3F4F6; }
.auth-dropdown-divider {
  height: 1px;
  background: #E5E7EB;
  margin: 4px 0;
}

.auth-mobile-avatar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  cursor: pointer;
  transition: background .15s;
}
.auth-mobile-avatar:hover { background: #F3F4F6; }
.auth-mobile-item {
  padding: 12px 16px;
  cursor: pointer;
  transition: background .15s;
  font-size: 14px;
  color: #374151;
}
.auth-mobile-item:hover { background: #F3F4F6; }
.auth-mobile-login {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  background: linear-gradient(135deg, #3B82F6, #2563EB);
  color: #fff;
  border-radius: 10px;
  font-weight: 500;
  font-size: 14px;
  cursor: pointer;
  margin: 8px 0;
  transition: all .2s;
}
.auth-mobile-login:hover { box-shadow: 0 4px 12px rgba(37,99,235,.3); }

.auth-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.45);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  animation: fadeIn .2s ease-out;
}
.auth-modal {
  background: #fff;
  border-radius: 20px;
  max-width: 420px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  padding: 36px 32px 28px;
  position: relative;
  animation: modalUp .25s cubic-bezier(.4,0,.2,1);
  box-shadow: 0 20px 60px rgba(0,0,0,.2);
}
.auth-modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #F3F4F6;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #6B7280;
  font-size: 16px;
  border: none;
  transition: background .15s;
}
.auth-modal-close:hover { background: #E5E7EB; }

.auth-tabs {
  display: flex;
  gap: 0;
  margin-bottom: 24px;
  background: #F3F4F6;
  border-radius: 10px;
  padding: 3px;
}
.auth-tab {
  flex: 1;
  padding: 10px 0;
  border: none;
  background: transparent;
  font-size: 15px;
  font-weight: 500;
  color: #6B7280;
  cursor: pointer;
  border-radius: 8px;
  transition: all .2s;
}
.auth-tab.active {
  background: #fff;
  color: #1D4ED8;
  box-shadow: 0 1px 4px rgba(0,0,0,.08);
}

.auth-form-header {
  text-align: center;
  margin-bottom: 24px;
}
.auth-form-header h2 {
  font-size: 22px;
  font-weight: 700;
  color: #1F2937;
  margin: 12px 0 6px;
}
.auth-form-header p {
  font-size: 14px;
  color: #6B7280;
}
.auth-field {
  margin-bottom: 16px;
}
.auth-field label {
  display: block;
  font-size: 13px;
  font-weight: 500;
  color: #374151;
  margin-bottom: 6px;
}
.auth-field input,
.auth-field select {
  width: 100%;
  padding: 11px 14px;
  border: 1.5px solid #D1D5DB;
  border-radius: 10px;
  font-size: 14px;
  transition: border-color .2s, box-shadow .2s;
  background: #fff;
}
.auth-field input:focus,
.auth-field select:focus {
  outline: none;
  border-color: #3B82F6;
  box-shadow: 0 0 0 3px rgba(59,130,246,.12);
}
.auth-error {
  font-size: 13px;
  color: #DC2626;
  margin-bottom: 12px;
  display: none;
}
.auth-error.show { display: block; }

.auth-submit-btn {
  width: 100%;
  padding: 12px;
  background: linear-gradient(135deg, #3B82F6, #2563EB);
  color: #fff;
  border: none;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all .25s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}
.auth-submit-btn:hover {
  box-shadow: 0 4px 16px rgba(37,99,235,.4);
  transform: translateY(-1px);
}
.auth-switch-tip {
  text-align: center;
  font-size: 13px;
  color: #6B7280;
  margin-top: 16px;
}
.auth-switch-tip a {
  color: #2563EB;
  cursor: pointer;
  font-weight: 500;
}
.auth-switch-tip a:hover { text-decoration: underline; }

.auth-gate-overlay {
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,.85);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100;
  padding: 32px;
}
.auth-gate-card {
  text-align: center;
  max-width: 360px;
}
.auth-gate-card .gate-icon {
  width: 72px;
  height: 72px;
  background: linear-gradient(135deg, #DBEAFE, #EDE9FE);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
}
.auth-gate-card .gate-icon i {
  font-size: 28px;
  color: #2563EB;
}
.auth-gate-card h2 {
  font-size: 20px;
  font-weight: 700;
  color: #1F2937;
  margin-bottom: 8px;
}
.auth-gate-card p {
  font-size: 14px;
  color: #6B7280;
  line-height: 1.6;
  margin-bottom: 20px;
}
.gate-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  background: linear-gradient(135deg, #3B82F6, #2563EB);
  color: #fff;
  border: none;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all .25s;
}
.gate-btn:hover {
  box-shadow: 0 4px 16px rgba(37,99,235,.4);
  transform: translateY(-1px);
}

/* ===== 响应式调整 ===== */
@media (max-width: 768px) {
  .counter { font-size: 2rem; }
  .hero-section h1 { font-size: 2rem; }
  .page-header { padding: 80px 0 56px; }
}
@media (max-width: 640px) {
  .auth-modal { padding: 28px 20px 20px; border-radius: 16px; }
  .auth-avatar-name { display: none; }
  .auth-login-btn { padding: 6px 14px; font-size: 13px; }
}
