/* ================================================================
   安逸网络科技有限公司 — Main Stylesheet
   ================================================================ */

/* --- Design Tokens --- */
:root {
  /* Canvas & Surfaces */
  --canvas: #fcfcfc;
  --surface-sky: #f0f4fe;
  --surface-white: #ffffff;
  --surface-overlay: rgba(255, 255, 255, 0.8);

  /* Text */
  --heading-primary: #020520;
  --heading-secondary: #14141e;
  --text-body: #374151;
  --text-muted: #696a72;
  --text-inverse: #ffffff;

  /* Accent & Action */
  --signal-blue: #145aff;
  --signal-blue-light: rgba(20, 90, 255, 0.08);
  --action-dark: #0f1f3d;
  --gradient-blue: linear-gradient(180deg, rgb(59, 130, 246) 0%, rgb(20, 90, 255) 100%);

  /* Borders & Shadows */
  --border-light: #e5e7eb;
  --border-focus: var(--signal-blue);
  --shadow-card: rgba(0, 0, 0, 0.1) 0px 0px 4px -2px;
  --shadow-card-hover: rgba(0, 0, 0, 0.12) 0px 4px 16px -4px;
  --shadow-nav: rgba(0, 0, 0, 0.06) 0px 1px 3px;

  /* Spacing */
  --section-gap: 80px;
  --element-gap: 12px;
  --max-width: 1200px;

  /* Radii */
  --radius-pill: 100px;
  --radius-card: 8px;
  --radius-card-lg: 40px;
  --radius-btn: 12px;
  --radius-input: 8px;

  /* Transitions */
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --duration-fast: 0.2s;
  --duration-normal: 0.35s;
  --duration-slow: 0.5s;

  /* Typography */
  --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
  --fs-hero: 56px;
  --fs-h1: 40px;
  --fs-h2: 32px;
  --fs-h3: 24px;
  --fs-h4: 20px;
  --fs-body-lg: 18px;
  --fs-body: 16px;
  --fs-body-sm: 15px;
  --fs-small: 14px;
  --fs-xs: 12px;
  --fs-tiny: 10px;

  --ls-hero: -1.51px;
  --ls-h1: -0.76px;
  --ls-h2: -0.5px;
  --ls-body: 0;
}

/* --- Reset & Base --- */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-family);
  font-size: var(--fs-body);
  font-weight: 400;
  line-height: 1.6;
  color: var(--text-body);
  background-color: var(--canvas);
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--duration-fast) var(--ease-out);
}

ul, ol {
  list-style: none;
}

button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
  border: none;
  outline: none;
  background: none;
}

button {
  cursor: pointer;
}

table {
  border-collapse: collapse;
  width: 100%;
}

/* --- Typography --- */
h1, h2, h3, h4, h5, h6 {
  color: var(--heading-primary);
  font-weight: 600;
  line-height: 1.2;
}

h1 {
  font-size: var(--fs-h1);
  letter-spacing: var(--ls-h1);
}

h2 {
  font-size: var(--fs-h2);
  letter-spacing: var(--ls-h2);
}

h3 {
  font-size: var(--fs-h3);
}

h4 {
  font-size: var(--fs-h4);
}

.hero-title {
  font-size: var(--fs-hero);
  letter-spacing: var(--ls-hero);
  line-height: 1.1;
}

.text-muted {
  color: var(--text-muted);
}

.text-signal {
  color: var(--signal-blue);
}

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

/* --- Layout --- */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: var(--section-gap) 0;
}

.section-sky {
  background-color: var(--surface-sky);
}

.section-white {
  background-color: var(--surface-white);
}

.section-header {
  text-align: center;
  margin-bottom: 48px;
}

.section-header h2 {
  margin-bottom: var(--element-gap);
}

.section-header p {
  color: var(--text-muted);
  font-size: var(--fs-body-lg);
  max-width: 600px;
  margin: 0 auto;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.flex-center {
  display: flex;
  align-items: center;
  justify-content: center;
}

.flex-between {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: var(--radius-btn);
  font-size: var(--fs-small);
  font-weight: 500;
  line-height: 1;
  white-space: nowrap;
  transition: all var(--duration-fast) var(--ease-out);
  cursor: pointer;
}

.btn-primary {
  background: var(--gradient-blue);
  color: var(--text-inverse);
  border: none;
  box-shadow: 0 2px 8px rgba(20, 90, 255, 0.25);
}

.btn-primary:hover {
  box-shadow: 0 4px 16px rgba(20, 90, 255, 0.35);
  transform: translateY(-1px);
}

.btn-outline {
  background: var(--surface-overlay);
  color: var(--action-dark);
  border: 1px solid var(--action-dark);
}

.btn-outline:hover {
  background: var(--action-dark);
  color: var(--text-inverse);
}

.btn-ghost {
  background: transparent;
  color: var(--action-dark);
  border: none;
  padding: 8px 16px;
}

.btn-ghost:hover {
  background: var(--surface-sky);
  border-radius: var(--radius-pill);
}

.btn-sm {
  padding: 8px 20px;
  font-size: var(--fs-xs);
}

.btn-lg {
  padding: 16px 36px;
  font-size: var(--fs-body);
}

.btn-icon {
  width: 40px;
  height: 40px;
  padding: 0;
  border-radius: 50%;
}

/* --- Navigation --- */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(252, 252, 252, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.04);
  transition: box-shadow var(--duration-normal) var(--ease-out);
}

.navbar.scrolled {
  box-shadow: var(--shadow-nav);
}

.navbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.navbar-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: var(--fs-body-lg);
  font-weight: 600;
  color: var(--heading-primary);
  flex-shrink: 0;
}

.navbar-brand img {
  height: 36px;
  width: auto;
}

.navbar-nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.navbar-nav a {
  padding: 8px 16px;
  font-size: var(--fs-small);
  font-weight: 500;
  color: var(--text-body);
  border-radius: var(--radius-pill);
  transition: all var(--duration-fast) var(--ease-out);
}

.navbar-nav a:hover,
.navbar-nav a.active {
  background: var(--surface-sky);
  color: var(--heading-primary);
}

.navbar-action {
  flex-shrink: 0;
}

.navbar-toggle {
  display: none;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  cursor: pointer;
}

.navbar-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--heading-primary);
  position: relative;
  transition: background var(--duration-fast) var(--ease-out);
}

.navbar-toggle span::before,
.navbar-toggle span::after {
  content: '';
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--heading-primary);
  transition: transform var(--duration-fast) var(--ease-out);
}

.navbar-toggle span::before { top: -6px; }
.navbar-toggle span::after { top: 6px; }

.navbar-toggle.active span { background: transparent; }
.navbar-toggle.active span::before { transform: rotate(45deg); top: 0; }
.navbar-toggle.active span::after { transform: rotate(-45deg); top: 0; }

/* --- Hero Section --- */
.hero {
  padding-top: 152px;
  padding-bottom: var(--section-gap);
  position: relative;
  overflow: hidden;
}

.hero-inner {
  display: flex;
  align-items: center;
  gap: 48px;
}

.hero-content {
  flex: 1;
  max-width: 560px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 16px;
  background: var(--signal-blue-light);
  color: var(--signal-blue);
  font-size: var(--fs-xs);
  font-weight: 500;
  border-radius: var(--radius-pill);
  margin-bottom: 24px;
}

.hero-content h1 {
  font-size: var(--fs-hero);
  letter-spacing: var(--ls-hero);
  margin-bottom: 20px;
}

.hero-content p {
  font-size: var(--fs-body-lg);
  color: var(--text-muted);
  margin-bottom: 32px;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.hero-visual {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-visual img {
  border-radius: var(--radius-card-lg);
  box-shadow: var(--shadow-card-hover);
}

/* --- Page Banner (inner pages) --- */
.page-banner {
  padding-top: 152px;
  padding-bottom: 48px;
  background: var(--surface-sky);
  text-align: center;
}

.page-banner h1 {
  font-size: var(--fs-h1);
  letter-spacing: var(--ls-h1);
  margin-bottom: var(--element-gap);
}

.page-banner p {
  color: var(--text-muted);
  font-size: var(--fs-body-lg);
}

.breadcrumb {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 16px;
  font-size: var(--fs-small);
  color: var(--text-muted);
}

.breadcrumb a:hover {
  color: var(--signal-blue);
}

.breadcrumb-sep {
  opacity: 0.4;
}

/* --- Cards --- */
.card {
  background: var(--surface-white);
  border-radius: var(--radius-card);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: all var(--duration-normal) var(--ease-out);
}

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

.card-img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.card-body {
  padding: 24px;
}

.card-tag {
  display: inline-block;
  padding: 4px 12px;
  background: var(--signal-blue-light);
  color: var(--signal-blue);
  font-size: var(--fs-xs);
  font-weight: 500;
  border-radius: var(--radius-pill);
  margin-bottom: 12px;
}

.card-title {
  font-size: var(--fs-h4);
  font-weight: 600;
  margin-bottom: 8px;
  line-height: 1.3;
}

.card-title a:hover {
  color: var(--signal-blue);
}

.card-desc {
  color: var(--text-muted);
  font-size: var(--fs-small);
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 16px;
  font-size: var(--fs-xs);
  color: var(--text-muted);
}

.card-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: 16px;
  font-size: var(--fs-small);
  font-weight: 500;
  color: var(--signal-blue);
  transition: gap var(--duration-fast) var(--ease-out);
}

.card-link:hover {
  gap: 8px;
}

.card-link svg {
  width: 16px;
  height: 16px;
}

/* --- Feature / Advantage Cards --- */
.feature-card {
  padding: 32px;
  background: var(--surface-white);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  transition: all var(--duration-normal) var(--ease-out);
  text-align: center;
}

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

.feature-icon {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  background: var(--surface-sky);
  border-radius: 16px;
  color: var(--signal-blue);
}

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

.feature-card h4 {
  margin-bottom: 8px;
}

.feature-card p {
  color: var(--text-muted);
  font-size: var(--fs-small);
  line-height: 1.6;
}

/* --- Stats Row --- */
.stats-row {
  display: flex;
  justify-content: center;
  gap: 64px;
  padding: 48px 0;
}

.stat-item {
  text-align: center;
}

.stat-number {
  font-size: var(--fs-h1);
  font-weight: 600;
  color: var(--signal-blue);
  letter-spacing: var(--ls-h1);
  line-height: 1;
  margin-bottom: 8px;
}

.stat-label {
  font-size: var(--fs-small);
  color: var(--text-muted);
}

/* --- Detail Page --- */
.detail-header {
  padding-top: 120px;
  padding-bottom: 32px;
}

.detail-header h1 {
  font-size: var(--fs-h1);
  letter-spacing: var(--ls-h1);
  margin-bottom: 16px;
}

.detail-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: var(--fs-small);
  color: var(--text-muted);
}

.detail-meta span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.detail-cover {
  width: 100%;
  border-radius: var(--radius-card-lg);
  margin-bottom: 40px;
  box-shadow: var(--shadow-card);
}

.detail-content {
  max-width: 800px;
  margin: 0 auto;
  font-size: var(--fs-body-lg);
  line-height: 1.8;
  color: var(--text-body);
}

.detail-content h2 {
  margin: 40px 0 16px;
}

.detail-content h3 {
  margin: 32px 0 12px;
}

.detail-content p {
  margin-bottom: 20px;
}

.detail-content img {
  border-radius: var(--radius-card);
  margin: 24px 0;
}

.detail-content ul,
.detail-content ol {
  padding-left: 24px;
  margin-bottom: 20px;
  list-style: disc;
}

.detail-content li {
  margin-bottom: 8px;
}

.detail-content blockquote {
  border-left: 3px solid var(--signal-blue);
  padding: 16px 24px;
  margin: 24px 0;
  background: var(--surface-sky);
  border-radius: 0 var(--radius-card) var(--radius-card) 0;
  font-style: italic;
  color: var(--text-muted);
}

.detail-nav {
  display: flex;
  justify-content: space-between;
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid var(--border-light);
}

.detail-nav a {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: var(--fs-small);
}

.detail-nav a span:first-child {
  color: var(--text-muted);
  font-size: var(--fs-xs);
}

.detail-nav a:hover span:last-child {
  color: var(--signal-blue);
}

/* --- Contact Page --- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}

.contact-info-list {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.contact-info-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.contact-info-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--surface-sky);
  border-radius: 12px;
  color: var(--signal-blue);
  flex-shrink: 0;
}

.contact-info-icon svg {
  width: 22px;
  height: 22px;
}

.contact-info-text h4 {
  font-size: var(--fs-body);
  margin-bottom: 4px;
}

.contact-info-text p {
  color: var(--text-muted);
  font-size: var(--fs-small);
}

.contact-map {
  width: 100%;
  height: 300px;
  border-radius: var(--radius-card);
  overflow: hidden;
  margin-top: 32px;
  border: 1px solid var(--border-light);
}

/* --- Forms --- */
.form-group {
  margin-bottom: 20px;
}

.form-label {
  display: block;
  font-size: var(--fs-small);
  font-weight: 500;
  color: var(--heading-secondary);
  margin-bottom: 6px;
}

.form-input,
.form-textarea,
.form-select {
  width: 100%;
  padding: 12px 16px;
  background: var(--surface-white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-input);
  font-size: var(--fs-small);
  color: var(--text-body);
  transition: all var(--duration-fast) var(--ease-out);
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
  border-color: var(--border-focus);
  box-shadow: 0 0 0 3px var(--signal-blue-light);
}

.form-input::placeholder,
.form-textarea::placeholder {
  color: var(--text-muted);
  opacity: 0.6;
}

.form-textarea {
  resize: vertical;
  min-height: 120px;
  line-height: 1.6;
}

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

.form-hint {
  font-size: var(--fs-xs);
  color: var(--text-muted);
  margin-top: 4px;
}

.form-error {
  font-size: var(--fs-xs);
  color: #ef4444;
  margin-top: 4px;
}

/* --- About Page --- */
.about-intro {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.about-intro-img {
  border-radius: var(--radius-card-lg);
  box-shadow: var(--shadow-card);
  width: 100%;
}

.about-intro-content h2 {
  margin-bottom: 16px;
}

.about-intro-content p {
  color: var(--text-muted);
  margin-bottom: 16px;
  line-height: 1.7;
}

.timeline {
  position: relative;
  padding-left: 32px;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 7px;
  top: 8px;
  bottom: 8px;
  width: 2px;
  background: var(--border-light);
}

.timeline-item {
  position: relative;
  padding-bottom: 32px;
}

.timeline-item:last-child {
  padding-bottom: 0;
}

.timeline-dot {
  position: absolute;
  left: -32px;
  top: 6px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--surface-white);
  border: 3px solid var(--signal-blue);
}

.timeline-year {
  font-size: var(--fs-small);
  font-weight: 600;
  color: var(--signal-blue);
  margin-bottom: 4px;
}

.timeline-item h4 {
  margin-bottom: 4px;
}

.timeline-item p {
  color: var(--text-muted);
  font-size: var(--fs-small);
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.value-card {
  text-align: center;
  padding: 40px 24px;
  background: var(--surface-white);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  transition: all var(--duration-normal) var(--ease-out);
}

.value-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-card-hover);
}

.value-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gradient-blue);
  border-radius: 16px;
  color: var(--text-inverse);
}

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

.value-card h4 {
  margin-bottom: 8px;
}

.value-card p {
  color: var(--text-muted);
  font-size: var(--fs-small);
  line-height: 1.6;
}

/* --- Team --- */
.team-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.team-card {
  text-align: center;
}

.team-avatar {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 16px;
  box-shadow: var(--shadow-card);
}

.team-card h4 {
  font-size: var(--fs-body);
  margin-bottom: 4px;
}

.team-card p {
  color: var(--text-muted);
  font-size: var(--fs-xs);
}

/* --- Footer --- */
.footer {
  background: var(--heading-primary);
  color: rgba(255, 255, 255, 0.7);
  padding: 64px 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 48px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: var(--fs-body-lg);
  font-weight: 600;
  color: var(--text-inverse);
  margin-bottom: 16px;
}

.footer-brand img {
  height: 32px;
}

.footer-desc {
  font-size: var(--fs-small);
  line-height: 1.7;
  margin-bottom: 20px;
  max-width: 320px;
}

.footer-social {
  display: flex;
  gap: 12px;
}

.footer-social a {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.7);
  transition: all var(--duration-fast) var(--ease-out);
}

.footer-social a:hover {
  background: var(--signal-blue);
  color: var(--text-inverse);
}

.footer-social a svg {
  width: 18px;
  height: 18px;
}

.footer-col h4 {
  color: var(--text-inverse);
  font-size: var(--fs-small);
  font-weight: 600;
  margin-bottom: 20px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.footer-col ul li {
  margin-bottom: 10px;
}

.footer-col ul li a {
  font-size: var(--fs-small);
  color: rgba(255, 255, 255, 0.6);
  transition: color var(--duration-fast) var(--ease-out);
}

.footer-col ul li a:hover {
  color: var(--text-inverse);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 20px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: var(--fs-xs);
}

.footer-bottom a {
  color: rgba(255, 255, 255, 0.5);
}

.footer-bottom a:hover {
  color: var(--text-inverse);
}

/* --- Pagination --- */
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  margin-top: 48px;
}

.pagination a,
.pagination span {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 36px;
  padding: 0 8px;
  border-radius: var(--radius-input);
  font-size: var(--fs-small);
  font-weight: 500;
  color: var(--text-body);
  transition: all var(--duration-fast) var(--ease-out);
}

.pagination a:hover {
  background: var(--surface-sky);
  color: var(--heading-primary);
}

.pagination .active {
  background: var(--signal-blue);
  color: var(--text-inverse);
}

.pagination .disabled {
  opacity: 0.4;
  pointer-events: none;
}

.pagination svg {
  width: 16px;
  height: 16px;
}

/* --- Search / Filter Bar --- */
.filter-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 32px;
  flex-wrap: wrap;
}

.filter-tabs {
  display: flex;
  gap: 4px;
  background: var(--surface-sky);
  padding: 4px;
  border-radius: var(--radius-pill);
}

.filter-tab {
  padding: 8px 20px;
  font-size: var(--fs-small);
  font-weight: 500;
  color: var(--text-muted);
  border-radius: var(--radius-pill);
  transition: all var(--duration-fast) var(--ease-out);
  cursor: pointer;
}

.filter-tab:hover {
  color: var(--heading-primary);
}

.filter-tab.active {
  background: var(--surface-white);
  color: var(--heading-primary);
  box-shadow: var(--shadow-card);
}

.search-box {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: var(--surface-white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-pill);
  transition: border-color var(--duration-fast) var(--ease-out);
}

.search-box:focus-within {
  border-color: var(--signal-blue);
}

.search-box svg {
  width: 18px;
  height: 18px;
  color: var(--text-muted);
  flex-shrink: 0;
}

.search-box input {
  width: 200px;
  font-size: var(--fs-small);
  color: var(--text-body);
}

/* --- CTA Section --- */
.cta-section {
  text-align: center;
  padding: var(--section-gap) 0;
}

.cta-section h2 {
  margin-bottom: 16px;
}

.cta-section p {
  color: var(--text-muted);
  font-size: var(--fs-body-lg);
  max-width: 500px;
  margin: 0 auto 32px;
}

.cta-actions {
  display: flex;
  justify-content: center;
  gap: 12px;
}

/* --- Empty State --- */
.empty-state {
  text-align: center;
  padding: 80px 24px;
}

.empty-state svg {
  width: 80px;
  height: 80px;
  color: var(--border-light);
  margin-bottom: 20px;
}

.empty-state h3 {
  font-size: var(--fs-h4);
  margin-bottom: 8px;
}

.empty-state p {
  color: var(--text-muted);
  font-size: var(--fs-small);
}

/* --- Toast / Alert --- */
.toast {
  position: fixed;
  top: 88px;
  right: 24px;
  z-index: 9999;
  padding: 14px 24px;
  border-radius: var(--radius-card);
  font-size: var(--fs-small);
  font-weight: 500;
  box-shadow: var(--shadow-card-hover);
  transform: translateX(120%);
  transition: transform var(--duration-normal) var(--ease-out);
}

.toast.show {
  transform: translateX(0);
}

.toast-success {
  background: #ecfdf5;
  color: #065f46;
  border: 1px solid #a7f3d0;
}

.toast-error {
  background: #fef2f2;
  color: #991b1b;
  border: 1px solid #fca5a5;
}

.toast-info {
  background: var(--surface-sky);
  color: var(--signal-blue);
  border: 1px solid rgba(20, 90, 255, 0.2);
}

/* --- Animations --- */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity var(--duration-slow) var(--ease-out),
              transform var(--duration-slow) var(--ease-out);
}

.animate-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Staggered children */
.stagger-children > *:nth-child(1) { transition-delay: 0s; }
.stagger-children > *:nth-child(2) { transition-delay: 0.08s; }
.stagger-children > *:nth-child(3) { transition-delay: 0.16s; }
.stagger-children > *:nth-child(4) { transition-delay: 0.24s; }
.stagger-children > *:nth-child(5) { transition-delay: 0.32s; }
.stagger-children > *:nth-child(6) { transition-delay: 0.4s; }

/* --- Loading --- */
.spinner {
  width: 32px;
  height: 32px;
  border: 3px solid var(--border-light);
  border-top-color: var(--signal-blue);
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
}

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

.loading-overlay {
  position: fixed;
  inset: 0;
  z-index: 9998;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(252, 252, 252, 0.8);
  backdrop-filter: blur(4px);
}

/* --- Utilities --- */
.mb-0 { margin-bottom: 0; }
.mb-8 { margin-bottom: 8px; }
.mb-16 { margin-bottom: 16px; }
.mb-24 { margin-bottom: 24px; }
.mb-32 { margin-bottom: 32px; }
.mb-48 { margin-bottom: 48px; }
.mt-24 { margin-top: 24px; }
.mt-48 { margin-top: 48px; }

.py-48 { padding-top: 48px; padding-bottom: 48px; }
.py-80 { padding-top: var(--section-gap); padding-bottom: var(--section-gap); }

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

/* --- Responsive --- */
@media (max-width: 1024px) {
  :root {
    --fs-hero: 40px;
    --fs-h1: 32px;
    --fs-h2: 28px;
    --section-gap: 56px;
  }

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

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }

  .stats-row {
    gap: 40px;
  }

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

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

@media (max-width: 768px) {
  :root {
    --fs-hero: 32px;
    --fs-h1: 28px;
    --fs-h2: 24px;
    --fs-h3: 20px;
    --section-gap: 48px;
  }

  .container {
    padding: 0 16px;
  }

  /* Nav mobile */
  .navbar-nav {
    position: fixed;
    top: 72px;
    left: 0;
    right: 0;
    bottom: 0;
    flex-direction: column;
    background: var(--canvas);
    padding: 24px;
    gap: 4px;
    transform: translateX(-100%);
    transition: transform var(--duration-normal) var(--ease-out);
    z-index: 999;
  }

  .navbar-nav.open {
    transform: translateX(0);
  }

  .navbar-nav a {
    padding: 14px 16px;
    font-size: var(--fs-body);
    border-radius: var(--radius-card);
  }

  .navbar-action {
    display: none;
  }

  .navbar-toggle {
    display: flex;
  }

  /* Grids */
  .grid-2,
  .grid-3,
  .grid-4 {
    grid-template-columns: 1fr;
  }

  /* Hero */
  .hero-inner {
    flex-direction: column;
    text-align: center;
  }

  .hero-content {
    max-width: 100%;
  }

  .hero-actions {
    justify-content: center;
  }

  /* About */
  .about-intro {
    grid-template-columns: 1fr;
  }

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

  /* Footer */
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 8px;
    text-align: center;
  }

  /* Stats */
  .stats-row {
    flex-wrap: wrap;
    gap: 32px;
  }

  .stat-item {
    flex: 0 0 calc(50% - 16px);
  }

  /* Team */
  .team-grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

  /* Filter */
  .filter-bar {
    flex-direction: column;
    align-items: stretch;
  }

  .filter-tabs {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .search-box input {
    width: 100%;
  }

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

  /* Page banner */
  .page-banner {
    padding-top: 120px;
    padding-bottom: 32px;
  }

  /* Detail */
  .detail-nav {
    flex-direction: column;
    gap: 16px;
  }

  /* Pagination */
  .pagination {
    flex-wrap: wrap;
  }
}

@media (max-width: 480px) {
  :root {
    --fs-hero: 28px;
    --fs-h1: 24px;
    --fs-h2: 20px;
  }

  .hero {
    padding-top: 120px;
  }

  .btn {
    padding: 10px 20px;
    font-size: var(--fs-xs);
  }

  .btn-lg {
    padding: 12px 28px;
    font-size: var(--fs-small);
  }

  .stats-row {
    gap: 24px;
  }

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

  .cta-actions {
    flex-direction: column;
    align-items: center;
  }
}

/* --- CTA Box --- */
.cta-box {
  background: linear-gradient(135deg, #0f1f3d 0%, #1a3a6e 50%, #145aff 100%);
  border-radius: 24px;
  padding: 64px 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
  position: relative;
  overflow: hidden;
}
.cta-box::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 20% 50%, rgba(255,255,255,0.06) 0%, transparent 60%);
}
.cta-content h2 { color: #fff; font-size: var(--fs-h2); margin-bottom: 8px; position: relative; }
.cta-content p { color: rgba(255,255,255,0.7); font-size: var(--fs-body-lg); position: relative; }
.cta-actions { position: relative; display: flex; gap: 12px; flex-shrink: 0; }
.btn-cta-outline {
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255,255,255,0.4);
  padding: 16px 36px;
  border-radius: var(--radius-btn);
  font-size: var(--fs-body);
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all var(--duration-fast) var(--ease-out);
}
.btn-cta-outline:hover { background: rgba(255,255,255,0.15); border-color: rgba(255,255,255,0.6); }

/* --- Site Footer --- */
.site-footer {
  background: var(--heading-primary);
  color: rgba(255,255,255,0.7);
  padding: 64px 0 0;
}
.footer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: var(--fs-body-lg);
  font-weight: 600;
  color: #fff;
  margin-bottom: 12px;
}
.footer-desc { font-size: var(--fs-small); line-height: 1.7; margin-bottom: 20px; max-width: 300px; }
.footer-links h4, .footer-contact h4 {
  color: #fff;
  font-size: var(--fs-small);
  font-weight: 600;
  margin-bottom: 20px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.footer-links ul li { margin-bottom: 10px; }
.footer-links ul li a { font-size: var(--fs-small); color: rgba(255,255,255,0.6); transition: color var(--duration-fast); }
.footer-links ul li a:hover { color: #fff; }
.footer-contact ul li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 12px;
  font-size: var(--fs-small);
  color: rgba(255,255,255,0.6);
}
.footer-contact ul li svg { flex-shrink: 0; margin-top: 3px; opacity: 0.6; }
.site-footer .footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 20px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: var(--fs-xs);
  margin-top: 40px;
}
.site-footer .footer-bottom a { color: rgba(255,255,255,0.5); }
.site-footer .footer-bottom a:hover { color: #fff; }

/* --- Stats Grid --- */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  text-align: center;
}

/* --- Filter Tags --- */
.filter-tag {
  display: inline-flex;
  align-items: center;
  padding: 8px 20px;
  font-size: var(--fs-small);
  font-weight: 500;
  color: var(--text-muted);
  border-radius: var(--radius-pill);
  background: var(--surface-sky);
  transition: all var(--duration-fast) var(--ease-out);
  margin-right: 8px;
  margin-bottom: 8px;
}
.filter-tag:hover { color: var(--heading-primary); background: #e5ebfa; }
.filter-tag.active { background: var(--signal-blue); color: #fff; }

/* --- Section More --- */
.section-more { text-align: center; margin-top: 40px; }

/* --- Lead --- */
.lead { font-size: var(--fs-body-lg); color: var(--signal-blue); font-weight: 500; margin-bottom: 16px; }

/* --- About --- */
.about-text h2 { margin-bottom: 12px; }
.about-text p { color: var(--text-muted); margin-bottom: 16px; line-height: 1.7; }
.about-image img { width: 100%; }

/* --- Timeline --- */
.timeline-item h3 { font-size: var(--fs-body); margin-bottom: 4px; }
.timeline-year { display: inline-block; background: var(--signal-blue-light); color: var(--signal-blue); padding: 2px 12px; border-radius: var(--radius-pill); font-size: var(--fs-xs); font-weight: 600; margin-bottom: 8px; }
.timeline-content { background: var(--surface-white); padding: 20px 24px; border-radius: var(--radius-card); box-shadow: var(--shadow-card); }

/* --- Team --- */
.team-avatar { width: 100px; height: 100px; margin: 0 auto 16px; overflow: hidden; }
.team-avatar img { width: 100%; height: 100%; object-fit: cover; }
.team-card h3 { font-size: var(--fs-body); margin-bottom: 4px; }
.team-role { color: var(--signal-blue); font-size: var(--fs-xs); font-weight: 500; margin-bottom: 8px; }
.team-desc { color: var(--text-muted); font-size: var(--fs-xs); line-height: 1.5; }

/* --- Contact Layout --- */
.contact-layout { display: grid; grid-template-columns: 1fr 1.2fr; gap: 48px; align-items: start; }
.contact-info h2, .contact-form-wrap h2 { margin-bottom: 8px; }
.contact-intro { color: var(--text-muted); font-size: var(--fs-small); margin-bottom: 28px; }
.contact-items { display: flex; flex-direction: column; gap: 20px; }
.contact-item { display: flex; gap: 16px; align-items: flex-start; }
.contact-icon {
  width: 48px; height: 48px; display: flex; align-items: center; justify-content: center;
  background: var(--surface-sky); border-radius: 12px; color: var(--signal-blue); flex-shrink: 0;
}
.contact-item h4 { font-size: var(--fs-body-sm); margin-bottom: 2px; }
.contact-item p { color: var(--text-muted); font-size: var(--fs-small); }
.wechat-qr { margin-top: 24px; }
.wechat-qr h4 { font-size: var(--fs-body-sm); margin-bottom: 8px; }
.wechat-qr img { width: 120px; border-radius: var(--radius-card); }
.contact-form-wrap {
  background: var(--surface-sky); padding: 36px; border-radius: var(--radius-card-lg);
}

/* --- Detail Layout --- */
.detail-layout { display: grid; grid-template-columns: 1fr 280px; gap: 48px; align-items: start; }
.detail-main { min-width: 0; }
.detail-cover { margin-bottom: 32px; }
.detail-cover img { width: 100%; border-radius: var(--radius-card-lg); box-shadow: var(--shadow-card); }
.detail-meta { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 24px; font-size: var(--fs-small); color: var(--text-muted); }
.meta-tag { display: inline-block; padding: 4px 14px; background: var(--signal-blue-light); color: var(--signal-blue); font-size: var(--fs-xs); font-weight: 500; border-radius: var(--radius-pill); }
.meta-item { display: inline-flex; align-items: center; gap: 4px; }
.detail-intro { font-size: var(--fs-body-lg); color: var(--text-body); line-height: 1.8; margin-bottom: 24px; padding: 20px 24px; background: var(--surface-sky); border-radius: var(--radius-card); border-left: 3px solid var(--signal-blue); }
.detail-actions { display: flex; gap: 12px; margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--border-light); }
.detail-content { font-size: var(--fs-body); line-height: 1.8; color: var(--text-body); }
.detail-content h2, .detail-content h3 { margin: 28px 0 12px; }
.detail-content p { margin-bottom: 16px; }
.detail-content ul, .detail-content ol { padding-left: 24px; margin-bottom: 16px; list-style: disc; }
.detail-content li { margin-bottom: 6px; }

/* --- Detail Sidebar --- */
.sidebar-widget { background: var(--surface-sky); border-radius: var(--radius-card); padding: 24px; }
.sidebar-widget h3 { font-size: var(--fs-body-sm); margin-bottom: 16px; padding-bottom: 12px; border-bottom: 1px solid var(--border-light); }
.sidebar-link {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  padding: 10px 0; border-bottom: 1px solid rgba(0,0,0,0.04); font-size: var(--fs-small); color: var(--text-body);
  transition: color var(--duration-fast);
}
.sidebar-link:last-child { border-bottom: none; }
.sidebar-link:hover { color: var(--signal-blue); }
.sidebar-link small { font-size: var(--fs-xs); color: var(--text-muted); white-space: nowrap; }

/* --- Case Info Grid --- */
.case-info-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 32px;
  padding: 24px; background: var(--surface-sky); border-radius: var(--radius-card);
}
.case-info-item { text-align: center; }
.info-label { display: block; font-size: var(--fs-xs); color: var(--text-muted); margin-bottom: 4px; }
.info-value { font-size: var(--fs-small); font-weight: 600; color: var(--heading-primary); }

/* --- Article --- */
.article-title { font-size: var(--fs-h2); margin-bottom: 16px; line-height: 1.3; }
.article-meta { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-bottom: 24px; font-size: var(--fs-small); color: var(--text-muted); }
.article-cover { margin-bottom: 32px; }
.article-cover img { width: 100%; border-radius: var(--radius-card-lg); }
.article-content { font-size: var(--fs-body); line-height: 1.8; color: var(--text-body); }
.article-content h2, .article-content h3 { margin: 28px 0 12px; color: var(--heading-primary); }
.article-content p { margin-bottom: 16px; }
.article-content ul, .article-content ol { padding-left: 24px; margin-bottom: 16px; list-style: disc; }
.article-content li { margin-bottom: 6px; }
.article-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--border-light); }
.article-nav-item {
  padding: 16px 20px; background: var(--surface-sky); border-radius: var(--radius-card);
  display: flex; flex-direction: column; gap: 4px; transition: all var(--duration-fast);
}
.article-nav-item:hover { box-shadow: var(--shadow-card); }
.article-nav-item.next { text-align: right; }
.article-nav-item.disabled { opacity: 0.5; pointer-events: none; }
.nav-label { font-size: var(--fs-xs); color: var(--text-muted); }
.nav-title { font-size: var(--fs-small); font-weight: 500; color: var(--heading-primary); }

/* --- Case Card --- */
.case-industry {
  display: inline-block; padding: 3px 10px; background: var(--signal-blue-light);
  color: var(--signal-blue); font-size: var(--fs-xs); font-weight: 500;
  border-radius: var(--radius-pill); margin-bottom: 8px;
}

/* --- Flash Messages --- */
.flash-message {
  padding: 14px 20px; border-radius: var(--radius-card); font-size: var(--fs-small);
  font-weight: 500; margin-bottom: 24px; display: flex; align-items: center; justify-content: space-between;
}
.flash-success { background: #ecfdf5; color: #065f46; border: 1px solid #a7f3d0; }
.flash-error { background: #fef2f2; color: #991b1b; border: 1px solid #fca5a5; }
.flash-warning { background: #fffbeb; color: #92400e; border: 1px solid #fde68a; }
.flash-info { background: var(--surface-sky); color: var(--signal-blue); border: 1px solid rgba(20,90,255,0.2); }
.flash-close { background: none; border: none; font-size: 20px; cursor: pointer; color: inherit; opacity: 0.6; }
.flash-close:hover { opacity: 1; }
.required { color: #ef4444; }

/* --- Back to Top --- */
.back-to-top {
  position: fixed; bottom: 32px; right: 32px; z-index: 900;
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--surface-white); border: 1px solid var(--border-light);
  box-shadow: var(--shadow-card); cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  color: var(--text-muted); opacity: 0; visibility: hidden;
  transition: all var(--duration-normal) var(--ease-out);
}
.back-to-top.visible { opacity: 1; visibility: visible; }
.back-to-top:hover { background: var(--signal-blue); color: #fff; border-color: var(--signal-blue); transform: translateY(-2px); }

/* --- Responsive additions --- */
@media (max-width: 768px) {
  .cta-box { flex-direction: column; text-align: center; padding: 40px 24px; }
  .cta-actions { justify-content: center; flex-wrap: wrap; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 24px; }
  .contact-layout { grid-template-columns: 1fr; }
  .detail-layout { grid-template-columns: 1fr; }
  .case-info-grid { grid-template-columns: repeat(2, 1fr); }
  .article-nav { grid-template-columns: 1fr; }
  .back-to-top { bottom: 16px; right: 16px; width: 40px; height: 40px; }
}

/* --- Print --- */
@media print {
  .navbar,
  .footer,
  .cta-section,
  .pagination,
  .filter-bar {
    display: none;
  }

  body {
    color: #000;
    background: #fff;
  }

  .section {
    padding: 24px 0;
  }

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