/* ============================================
   上海逸科思科技有限公司 · 全局样式 v1
   金山云风格 · 主色 #2253F4 · 辅助 #00B8FF
   ============================================ */

:root {
  /* 主色调 - 金山云蓝 */
  --ink: #0A1430;
  --ink-2: #16224A;
  --ink-3: #1F2D5C;
  --primary: #2253F4;
  --primary-dark: #1843D6;
  --primary-light: #4A7BF7;
  --primary-soft: #E8EEFE;

  /* 辅助色 - 科技青蓝 */
  --brass: #00B8FF;
  --brass-dark: #0099E0;
  --brass-light: #5BD4FF;
  --brass-soft: #E0F7FF;

  /* 背景色 */
  --paper: #F5F7FA;
  --paper-2: #FFFFFF;
  --paper-3: #EBEFF5;
  --card: #FFFFFF;

  /* 文字色 */
  --text: #0A1430;
  --text-body: #2C3E50;
  --text-secondary: #5A6B7D;
  --text-muted: #8A99A8;
  --text-on-dark: #F5F7FA;
  --text-on-dark-muted: #A8B8CC;

  /* 线条/边框 */
  --line: #D6DEE6;
  --line-2: #E8EDF3;
  --line-soft: #EEF2F6;
  --border: #D6DEE6;
  --border-light: #E8EDF3;
  --border-dark: #1843D6;

  /* 状态色 */
  --success: #2E7D32;
  --warn: #ED6C02;
  --danger: #C62828;

  /* 渐变 */
  --grad-primary: linear-gradient(135deg, #2253F4 0%, #1843D6 100%);
  --grad-ink: linear-gradient(135deg, #0A1430 0%, #16224A 100%);
  --grad-brass: linear-gradient(135deg, #00B8FF 0%, #0099E0 100%);
  --grad-hero: linear-gradient(135deg, #0A1430 0%, #16224A 50%, #1F3A8A 100%);

  /* 阴影 */
  --shadow-xs: 0 1px 2px rgba(10, 20, 48, 0.04);
  --shadow-sm: 0 2px 8px rgba(10, 20, 48, 0.06);
  --shadow-md: 0 8px 24px rgba(10, 20, 48, 0.08);
  --shadow-lg: 0 16px 40px rgba(10, 20, 48, 0.12);
  --shadow-brass: 0 8px 24px rgba(0, 184, 255, 0.24);

  /* 字体 */
  --font: "Source Han Sans SC", "PingFang SC", "Microsoft YaHei", "Helvetica Neue", sans-serif;
  --serif: "Source Han Serif SC", "Songti SC", "SimSun", serif;
  --mono: "DM Serif Display", "Source Han Serif SC", serif;

  /* 圆角 */
  --radius-xs: 4px;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-xl: 28px;

  /* 容器 */
  --container: 1200px;
  --header-h: 76px;
}

/* ===== Reset ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.7;
  color: var(--text-body);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; transition: color .2s; }
a:hover { color: var(--primary); }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
ul, ol { list-style: none; }
input, textarea, select { font-family: inherit; font-size: inherit; }

/* ===== Layout helpers ===== */
.container { max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.section { padding: 80px 0; }
.section-sm { padding: 56px 0; }
.section-lg { padding: 120px 0; }
.text-center { text-align: center; }
.serif { font-family: var(--serif); }
.mono { font-family: var(--mono); }

/* ===== Typography ===== */
h1, h2, h3, h4 { color: var(--text); line-height: 1.3; font-weight: 700; }
h1 { font-size: clamp(32px, 5vw, 56px); }
h2 { font-size: clamp(26px, 3.5vw, 38px); }
h3 { font-size: clamp(20px, 2.5vw, 26px); }
h4 { font-size: 18px; }
p { color: var(--text-body); }
.lead { font-size: 17px; color: var(--text-secondary); line-height: 1.8; }
.muted { color: var(--text-muted); }
.eyebrow {
  display: inline-block;
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--brass-dark);
  font-weight: 600;
  margin-bottom: 12px;
}
.section-title {
  text-align: center;
  margin-bottom: 56px;
}
.section-title h2 {
  position: relative;
  display: inline-block;
  padding-bottom: 20px;
}
.section-title h2::after {
  content: '';
  position: absolute;
  bottom: 0; left: 50%;
  transform: translateX(-50%);
  width: 60px; height: 3px;
  background: var(--grad-brass);
  border-radius: 2px;
}
.section-title p { margin-top: 16px; color: var(--text-secondary); }

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 28px;
  font-size: 15px;
  font-weight: 600;
  border-radius: var(--radius-sm);
  transition: all .25s cubic-bezier(.4,0,.2,1);
  white-space: nowrap;
  cursor: pointer;
  border: 1.5px solid transparent;
}
.btn-primary {
  background: var(--grad-primary);
  color: #fff;
  border-color: var(--primary);
  box-shadow: var(--shadow-sm);
}
.btn-primary:hover {
  color: #fff;
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: var(--primary-dark);
}
.btn-brass {
  background: var(--grad-brass);
  color: var(--ink);
  border-color: var(--brass);
  box-shadow: var(--shadow-brass);
}
.btn-brass:hover {
  color: var(--ink);
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(0, 184, 255, 0.32);
}
.btn-outline {
  background: transparent;
  color: var(--primary);
  border-color: var(--primary);
}
.btn-outline:hover {
  background: var(--primary);
  color: #fff;
}
.btn-outline-light {
  background: transparent;
  color: #fff;
  border-color: rgba(255,255,255,0.5);
}
.btn-outline-light:hover {
  background: rgba(255,255,255,0.1);
  color: #fff;
  border-color: #fff;
}
.btn-ghost {
  background: var(--paper-3);
  color: var(--text);
}
.btn-ghost:hover { background: var(--primary-soft); color: var(--primary); }
.btn-lg { padding: 16px 36px; font-size: 16px; }
.btn-sm { padding: 8px 18px; font-size: 13px; }
.btn-block { display: flex; width: 100%; }

/* ===== Header ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,0.96);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line-2);
  height: var(--header-h);
  display: flex;
  align-items: center;
}
.header-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
  flex-shrink: 0;
}
.brand strong {
  font-size: 17px;
  color: var(--ink);
  font-weight: 700;
  letter-spacing: 0.02em;
}
.brand small {
  font-size: 11px;
  color: var(--brass-dark);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-top: 2px;
}
.main-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  flex: 1;
  justify-content: center;
}
.main-nav a {
  padding: 8px 14px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-body);
  border-radius: var(--radius-sm);
  position: relative;
}
.main-nav a:hover { color: var(--primary); background: var(--primary-soft); }
.main-nav a.active { color: var(--primary); font-weight: 600; }
.main-nav a.active::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 50%;
  transform: translateX(-50%);
  width: 20px; height: 2px;
  background: var(--brass);
  border-radius: 1px;
}
.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}
.header-user {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
}
.header-user .username { color: var(--primary); font-weight: 600; }
.header-user .logout-link {
  color: var(--text-muted);
  font-size: 13px;
}
.header-user .logout-link:hover { color: var(--danger); }
.menu-toggle {
  display: none;
  width: 40px; height: 40px;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
}
.menu-toggle svg { width: 24px; height: 24px; }

/* ===== Footer ===== */
.site-footer {
  background: var(--ink);
  color: var(--text-on-dark-muted);
  padding: 64px 0 24px;
  margin-top: 80px;
}
.footer-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: 2fr 1fr 1.5fr;
  gap: 48px;
}
.footer-brand strong {
  display: block;
  font-size: 17px;
  color: var(--text-on-dark);
  margin-bottom: 16px;
  letter-spacing: 0.02em;
}
.footer-brand p {
  color: var(--text-on-dark-muted);
  font-size: 13px;
  line-height: 1.9;
  margin-bottom: 4px;
}
.footer-brand .footer-contact-label {
  color: var(--brass-light);
  font-weight: 600;
  margin-right: 8px;
}
.footer-nav h5 {
  color: var(--text-on-dark);
  font-size: 14px;
  margin-bottom: 16px;
  letter-spacing: 0.05em;
}
.footer-nav a {
  display: block;
  color: var(--text-on-dark-muted);
  font-size: 13px;
  padding: 5px 0;
}
.footer-nav a:hover { color: var(--brass-light); }
.footer-beian h5 {
  color: var(--text-on-dark);
  font-size: 14px;
  margin-bottom: 16px;
  letter-spacing: 0.05em;
}
.footer-beian a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--text-on-dark-muted);
  font-size: 13px;
  margin-bottom: 8px;
}
.footer-beian a:hover { color: var(--brass-light); }
.footer-beian svg { width: 14px; height: 14px; }
.footer-beian .report-links {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid rgba(255,255,255,0.08);
}
.footer-beian .report-links a { margin: 0; }
.footer-bottom {
  max-width: var(--container);
  margin: 40px auto 0;
  padding: 20px 24px 0;
  border-top: 1px solid rgba(255,255,255,0.08);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: var(--text-on-dark-muted);
}
.footer-bottom .admin-entry {
  color: var(--text-on-dark-muted);
  font-size: 12px;
  opacity: 0.6;
}
.footer-bottom .admin-entry:hover { color: var(--brass-light); opacity: 1; }

/* ===== Hero ===== */
.hero {
  position: relative;
  background: var(--grad-hero);
  color: #fff;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(0,184,255,0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,184,255,0.05) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
}
.hero-inner {
  position: relative;
  max-width: var(--container);
  margin: 0 auto;
  padding: 100px 24px 120px;
}
.hero-eyebrow {
  display: inline-block;
  padding: 6px 16px;
  background: rgba(0,184,255,0.15);
  border: 1px solid rgba(0,184,255,0.4);
  border-radius: 100px;
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--brass-light);
  font-weight: 600;
  margin-bottom: 24px;
}
.hero h1 {
  color: #fff;
  margin-bottom: 24px;
  max-width: 720px;
}
.hero h1 .hl {
  color: var(--brass);
  font-style: italic;
}
.hero .lead {
  color: var(--text-on-dark-muted);
  font-size: 18px;
  max-width: 640px;
  margin-bottom: 40px;
}
.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}
.hero-no {
  position: absolute;
  right: 24px; top: 40px;
  font-family: var(--mono);
  font-size: 120px;
  color: rgba(0,184,255,0.12);
  line-height: 1;
  pointer-events: none;
}

/* Hero card (index) */
.hero-card {
  position: relative;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius-lg);
  padding: 32px;
  margin-top: 56px;
  backdrop-filter: blur(8px);
}
.hero-card-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.hc-row {
  border-left: 2px solid rgba(0,184,255,0.4);
  padding-left: 16px;
}
.hc-row .hc-label {
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--brass-light);
  margin-bottom: 6px;
}
.hc-row .hc-value {
  font-size: 15px;
  color: var(--text-on-dark);
  font-weight: 500;
}

/* ===== Cards ===== */
.card {
  background: var(--card);
  border: 1px solid var(--line-2);
  border-radius: var(--radius-md);
  padding: 32px;
  box-shadow: var(--shadow-xs);
  transition: all .3s;
}
.card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
  border-color: var(--brass-light);
}
.card-icon {
  width: 56px; height: 56px;
  border-radius: var(--radius-sm);
  background: var(--brass-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}
.card-icon svg { width: 28px; height: 28px; color: var(--brass-dark); }
.card h3 { margin-bottom: 12px; }
.card p { color: var(--text-secondary); font-size: 14px; }

/* Grid */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 32px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }

/* ===== Article card (research/ecosystem) ===== */
.article-card {
  background: var(--card);
  border: 1px solid var(--line-2);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-xs);
  transition: all .3s;
  display: flex;
  flex-direction: column;
}
.article-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
  border-color: var(--brass-light);
}
.article-card .article-thumb {
  width: 100%;
  height: 200px;
  overflow: hidden;
  background: var(--paper-3);
  position: relative;
}
.article-card .article-thumb img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .4s;
}
.article-card:hover .article-thumb img { transform: scale(1.05); }
.article-card .article-body {
  padding: 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.article-card .article-number {
  font-family: var(--mono);
  font-size: 14px;
  color: var(--brass);
  margin-bottom: 8px;
}
.article-card h3 {
  font-size: 18px;
  margin-bottom: 12px;
  line-height: 1.4;
}
.article-card .article-summary {
  color: var(--text-secondary);
  font-size: 14px;
  margin-bottom: 16px;
  flex: 1;
}
.article-card .article-link {
  color: var(--primary);
  font-size: 14px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.article-card .article-link:hover { color: var(--brass-dark); gap: 10px; }

/* ===== Forms ===== */
.form-group { margin-bottom: 20px; }
.form-label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 8px;
}
.form-label .required { color: var(--danger); margin-left: 4px; }
.form-input, .form-select, .form-textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-sm);
  font-size: 15px;
  color: var(--text);
  background: #fff;
  transition: border-color .2s, box-shadow .2s;
}
.form-input:focus, .form-select:focus, .form-textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(34,83,244,0.12);
}
.form-textarea { min-height: 120px; resize: vertical; }
.form-hint { font-size: 12px; color: var(--text-muted); margin-top: 6px; }
.form-error { font-size: 12px; color: var(--danger); margin-top: 6px; display: none; }
.form-error.show { display: block; }
.form-checkbox {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
  color: var(--text-secondary);
}
.form-checkbox input { width: 16px; height: 16px; margin-top: 3px; cursor: pointer; }
.form-checkbox a { color: var(--primary); text-decoration: underline; }

/* ===== Auth page ===== */
.auth-wrap {
  min-height: calc(100vh - var(--header-h));
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 60px 24px;
  background:
    linear-gradient(135deg, var(--paper) 0%, var(--primary-soft) 100%);
}
.auth-card {
  width: 100%;
  max-width: 460px;
  background: #fff;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}
.auth-tabs {
  display: flex;
  border-bottom: 1px solid var(--line-2);
}
.auth-tab {
  flex: 1;
  padding: 18px;
  text-align: center;
  font-size: 15px;
  font-weight: 600;
  color: var(--text-muted);
  border-bottom: 2px solid transparent;
  transition: all .2s;
}
.auth-tab.active {
  color: var(--primary);
  border-bottom-color: var(--primary);
}
.auth-body { padding: 36px; }
.auth-body h2 {
  font-size: 22px;
  margin-bottom: 8px;
}
.auth-body .auth-sub {
  color: var(--text-muted);
  font-size: 13px;
  margin-bottom: 28px;
}
.auth-footer {
  padding: 16px 36px 28px;
  text-align: center;
  font-size: 12px;
  color: var(--text-muted);
  border-top: 1px solid var(--line-2);
  background: var(--paper);
}
.gongan-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 8px;
  padding: 6px 12px;
  background: var(--paper-3);
  border-radius: var(--radius-sm);
  font-size: 12px;
  color: var(--text-secondary);
}
.gongan-badge svg { width: 14px; height: 14px; }
.gongan-badge a { color: var(--primary); }

/* ===== Modal ===== */
.modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(15,27,45,0.6);
  backdrop-filter: blur(4px);
  animation: fadeIn .2s;
}
.modal.show { display: flex; }
.modal-content {
  background: #fff;
  border-radius: var(--radius-lg);
  max-width: 520px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  animation: slideUp .3s cubic-bezier(.4,0,.2,1);
}
.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px 28px;
  border-bottom: 1px solid var(--line-2);
}
.modal-header h3 { font-size: 20px; }
.modal-close {
  width: 32px; height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  color: var(--text-muted);
  transition: all .2s;
}
.modal-close:hover { background: var(--paper-3); color: var(--text); }
.modal-body { padding: 28px; }

/* Payment modal */
.payment-content {
  text-align: center;
  padding: 40px 32px;
}
.payment-content h3 {
  font-size: 22px;
  margin-bottom: 8px;
}
.payment-tip {
  color: var(--text-secondary);
  font-size: 14px;
  margin-bottom: 24px;
}
.qr-wrapper {
  width: 240px; height: 240px;
  margin: 0 auto 28px;
  border: 2px solid var(--brass);
  border-radius: var(--radius-md);
  padding: 12px;
  background: #fff;
  box-shadow: var(--shadow-brass);
}
.qr-wrapper img { width: 100%; height: 100%; object-fit: contain; border-radius: var(--radius-xs); }
.payment-amount {
  font-family: var(--mono);
  font-size: 28px;
  color: var(--primary);
  margin-bottom: 8px;
}
.payment-desc {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 24px;
}

/* ===== Ecosystem articles (varied formats) ===== */
.eco-article {
  background: var(--card);
  border: 1px solid var(--line-2);
  border-radius: var(--radius-md);
  overflow: hidden;
  margin-bottom: 32px;
  box-shadow: var(--shadow-xs);
}
.eco-article-head {
  padding: 28px 32px 0;
}
.eco-article-tag {
  display: inline-block;
  padding: 4px 12px;
  background: var(--brass-soft);
  color: var(--brass-dark);
  border-radius: 100px;
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 600;
  margin-bottom: 12px;
}
.eco-article h3 {
  font-size: 24px;
  margin-bottom: 8px;
}
.eco-article-body {
  padding: 20px 32px 28px;
  color: var(--text-body);
  font-size: 15px;
  line-height: 1.9;
}
.eco-article-body p { margin-bottom: 16px; }
.eco-article-body h4 {
  font-size: 17px;
  margin: 24px 0 12px;
  color: var(--primary);
}
.eco-article-body blockquote {
  border-left: 3px solid var(--brass);
  padding: 12px 20px;
  background: var(--brass-soft);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  margin: 16px 0;
  color: var(--text);
  font-style: italic;
}
.eco-article-body ul, .eco-article-body ol {
  padding-left: 20px;
  margin: 12px 0;
}
.eco-article-body li { margin-bottom: 6px; }
.eco-article-body strong { color: var(--text); }
.eco-article-footer {
  padding: 20px 32px;
  border-top: 1px solid var(--line-2);
  background: var(--paper);
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 12px;
}

/* Format variants */
.eco-article.format-magazine { border-left: 4px solid var(--brass); }
.eco-article.format-quote { background: var(--ink); color: var(--text-on-dark); border: none; }
.eco-article.format-quote .eco-article-head,
.eco-article.format-quote .eco-article-body,
.eco-article.format-quote .eco-article-footer { background: transparent; border-color: rgba(255,255,255,0.1); }
.eco-article.format-quote h3,
.eco-article.format-quote .eco-article-body { color: var(--text-on-dark); }
.eco-article.format-quote .eco-article-body strong { color: var(--brass-light); }
.eco-article.format-quote .eco-article-tag { background: rgba(0,184,255,0.2); color: var(--brass-light); }
.eco-article.format-timeline {
  border: 1px solid var(--line);
  background: linear-gradient(180deg, #fff 0%, var(--paper) 100%);
}
.eco-article.format-story {
  border: 2px solid var(--primary-soft);
  border-radius: var(--radius-lg);
}

/* ===== Timeline component ===== */
.timeline {
  position: relative;
  padding-left: 32px;
}
.timeline::before {
  content: '';
  position: absolute;
  left: 8px; top: 4px; bottom: 4px;
  width: 2px;
  background: var(--brass);
}
.timeline-item {
  position: relative;
  padding-bottom: 20px;
}
.timeline-item::before {
  content: '';
  position: absolute;
  left: -28px; top: 4px;
  width: 12px; height: 12px;
  border-radius: 50%;
  background: var(--brass);
  border: 2px solid #fff;
  box-shadow: 0 0 0 2px var(--brass);
}
.timeline-item h4 { font-size: 16px; margin-bottom: 6px; }
.timeline-item p { font-size: 14px; color: var(--text-secondary); }

/* ===== Contact page ===== */
.contact-hero {
  position: relative;
  min-height: 480px;
  background: var(--grad-ink);
  color: #fff;
  overflow: hidden;
  display: flex;
  align-items: center;
}
.contact-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 80% 20%, rgba(0,184,255,0.18) 0%, transparent 50%),
    radial-gradient(circle at 20% 80%, rgba(34,83,244,0.3) 0%, transparent 50%);
}
.contact-hero-inner {
  position: relative;
  max-width: var(--container);
  margin: 0 auto;
  padding: 80px 24px;
  width: 100%;
}
.contact-hero h1 {
  font-size: clamp(48px, 8vw, 96px);
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: #fff;
}
.contact-hero h1 .accent {
  color: var(--brass);
  font-style: italic;
  font-family: var(--mono);
}
.contact-hero .sub {
  font-size: 18px;
  color: var(--text-on-dark-muted);
  max-width: 480px;
  margin-top: 32px;
}
.contact-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 48px;
  align-items: start;
}
.contact-info-card {
  background: #fff;
  border: 1px solid var(--line-2);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--shadow-sm);
}
.contact-info-item {
  display: flex;
  gap: 20px;
  padding: 20px 0;
  border-bottom: 1px solid var(--line-2);
}
.contact-info-item:last-child { border-bottom: none; }
.contact-info-item .ci-icon {
  width: 48px; height: 48px;
  flex-shrink: 0;
  border-radius: var(--radius-sm);
  background: var(--primary-soft);
  display: flex;
  align-items: center;
  justify-content: center;
}
.contact-info-item .ci-icon svg { width: 22px; height: 22px; color: var(--primary); }
.contact-info-item .ci-label {
  font-size: 12px;
  color: var(--text-muted);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 4px;
}
.contact-info-item .ci-value {
  font-size: 16px;
  color: var(--text);
  font-weight: 500;
}

/* ===== Article detail page ===== */
.article-detail {
  max-width: 820px;
  margin: 0 auto;
  padding: 60px 24px;
}
.article-detail-head {
  text-align: center;
  margin-bottom: 40px;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--line-2);
}
.article-detail-head .eyebrow { margin-bottom: 16px; }
.article-detail-head h1 {
  font-size: clamp(28px, 4vw, 40px);
  margin-bottom: 16px;
  line-height: 1.3;
}
.article-detail-body {
  font-size: 16px;
  line-height: 2;
  color: var(--text-body);
}
.article-detail-body p { margin-bottom: 20px; }
.article-detail-body h2 {
  font-size: 24px;
  margin: 40px 0 16px;
  padding-left: 16px;
  border-left: 4px solid var(--brass);
}
.article-detail-body h3 {
  font-size: 19px;
  margin: 28px 0 12px;
  color: var(--primary);
}
.article-detail-body blockquote {
  border-left: 3px solid var(--brass);
  padding: 16px 24px;
  background: var(--brass-soft);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  margin: 24px 0;
  color: var(--text);
}
.article-detail-body ul, .article-detail-body ol {
  padding-left: 24px;
  margin: 16px 0;
}
.article-detail-body li { margin-bottom: 8px; }
.article-detail-body strong { color: var(--text); font-weight: 600; }
.article-detail-body img {
  border-radius: var(--radius-md);
  margin: 24px 0;
  box-shadow: var(--shadow-sm);
}

/* ===== Breadcrumb ===== */
.breadcrumb {
  max-width: var(--container);
  margin: 0 auto;
  padding: 24px 24px 0;
  font-size: 13px;
  color: var(--text-muted);
}
.breadcrumb a:hover { color: var(--primary); }
.breadcrumb span { margin: 0 8px; color: var(--line); }

/* ===== Page banner (sub pages) ===== */
.page-banner {
  background: var(--grad-hero);
  color: #fff;
  padding: 64px 0;
  position: relative;
  overflow: hidden;
}
.page-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(0,184,255,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,184,255,0.04) 1px, transparent 1px);
  background-size: 40px 40px;
}
.page-banner-inner {
  position: relative;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}
.page-banner h1 { color: #fff; margin-bottom: 12px; }
.page-banner p { color: var(--text-on-dark-muted); font-size: 16px; max-width: 640px; }

/* ===== About stats ===== */
.about-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin: 48px 0;
}
.stat-card {
  text-align: center;
  padding: 32px 16px;
  background: #fff;
  border: 1px solid var(--line-2);
  border-radius: var(--radius-md);
  border-top: 3px solid var(--brass);
}
.stat-num {
  font-family: var(--mono);
  font-size: 40px;
  color: var(--primary);
  line-height: 1;
  margin-bottom: 8px;
}
.stat-label {
  font-size: 13px;
  color: var(--text-secondary);
}

/* ===== Consulting case ===== */
.case-card {
  background: #fff;
  border: 1px solid var(--line-2);
  border-radius: var(--radius-md);
  overflow: hidden;
  margin-bottom: 32px;
  box-shadow: var(--shadow-xs);
}
.case-card-head {
  padding: 24px 32px;
  background: var(--grad-primary);
  color: #fff;
}
.case-card-head h3 { color: #fff; font-size: 20px; }
.case-card-head .case-sub { color: var(--text-on-dark-muted); font-size: 14px; margin-top: 4px; }
.case-card-body { padding: 32px; }
.case-card-body p { margin-bottom: 16px; line-height: 1.9; }
.case-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}
.case-tag {
  padding: 4px 12px;
  background: var(--primary-soft);
  color: var(--primary);
  border-radius: 100px;
  font-size: 12px;
  font-weight: 500;
}

/* ===== Notify toast ===== */
.toast {
  position: fixed;
  top: 90px;
  right: 24px;
  z-index: 2000;
  padding: 14px 24px;
  background: #fff;
  border: 1px solid var(--line);
  border-left: 4px solid var(--success);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-lg);
  font-size: 14px;
  color: var(--text);
  transform: translateX(120%);
  transition: transform .3s cubic-bezier(.4,0,.2,1);
  max-width: 360px;
}
.toast.show { transform: translateX(0); }
.toast.error { border-left-color: var(--danger); }
.toast.warn { border-left-color: var(--warn); }

/* ===== Animations ===== */
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes slideUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.6; } }

.fade-in { animation: fadeIn .4s; }
.slide-up { animation: slideUp .5s; }

/* ===== Responsive ===== */
@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .hero-card-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .about-stats { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .main-nav { display: none; }
  .menu-toggle { display: flex; }
  .main-nav.open {
    display: flex;
    position: absolute;
    top: var(--header-h);
    left: 0; right: 0;
    background: #fff;
    flex-direction: column;
    padding: 16px;
    box-shadow: var(--shadow-md);
    border-bottom: 1px solid var(--line-2);
  }
  .main-nav.open a { padding: 12px 16px; width: 100%; }
  .header-actions .btn-text { display: none; }
  .brand strong { font-size: 14px; }
  .brand small { font-size: 10px; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .hero-card-grid { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }
  .section { padding: 56px 0; }
  .hero-inner { padding: 60px 24px 80px; }
  .hero-no { display: none; }
  .about-stats { grid-template-columns: 1fr; }
  .auth-body { padding: 24px; }
  .eco-article-head, .eco-article-body, .eco-article-footer { padding-left: 20px; padding-right: 20px; }
  .case-card-head, .case-card-body { padding: 20px; }
}

/* Mobile nav open */
body.nav-open { overflow: hidden; }

/* Print */
@media print {
  .site-header, .site-footer, .menu-toggle { display: none; }
}
