/* ============================================================
   CloudForge Theme - 云创CMS 暗夜精密工业风
   Design System v1.0
   ============================================================ */

/* --- Design Tokens --- */
:root {
  /* Color: Surfaces (dark-first, blue-tinted neutrals) */
  --bg-base: oklch(13% 0.015 250);
  --bg-surface-1: oklch(17% 0.015 250);
  --bg-surface-2: oklch(21% 0.016 250);
  --bg-surface-3: oklch(25% 0.017 250);
  --bg-elevated: oklch(28% 0.018 250);

  /* Color: Text */
  --text-primary: oklch(96% 0.008 250);
  --text-secondary: oklch(72% 0.015 250);
  --text-muted: oklch(52% 0.015 250);
  --text-faint: oklch(38% 0.01 250);

  /* Color: Brand */
  --accent: oklch(78% 0.14 185);
  --accent-hover: oklch(83% 0.13 185);
  --accent-subtle: oklch(30% 0.05 185);
  --accent-glow: oklch(78% 0.14 185 / 0.15);

  /* Color: Semantic */
  --success: oklch(72% 0.15 145);
  --warning: oklch(78% 0.14 75);
  --danger: oklch(65% 0.18 25);
  --info: oklch(70% 0.12 240);

  /* Color: Borders */
  --border-subtle: oklch(28% 0.012 250);
  --border-default: oklch(32% 0.012 250);
  --border-strong: oklch(40% 0.015 250);

  /* Typography */
  --font-display: "Bricolage Grotesque", "Noto Sans SC", sans-serif;
  --font-body: "Plus Jakarta Sans", "Noto Sans SC", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", "Cascadia Code", monospace;

  --fs-xs: 0.75rem;
  --fs-sm: 0.875rem;
  --fs-base: 1rem;
  --fs-lg: 1.25rem;
  --fs-xl: 1.5rem;
  --fs-2xl: 2rem;
  --fs-3xl: 2.5rem;
  --fs-4xl: clamp(2.5rem, 5vw, 4rem);

  --lh-tight: 1.25;
  --lh-snug: 1.4;
  --lh-normal: 1.6;
  --lh-relaxed: 1.8;

  /* Spacing (4pt base) */
  --sp-1: 0.25rem;
  --sp-2: 0.5rem;
  --sp-3: 0.75rem;
  --sp-4: 1rem;
  --sp-5: 1.25rem;
  --sp-6: 1.5rem;
  --sp-8: 2rem;
  --sp-10: 2.5rem;
  --sp-12: 3rem;
  --sp-16: 4rem;
  --sp-20: 5rem;
  --sp-24: 6rem;

  /* Layout */
  --container-max: 1280px;
  --container-pad: clamp(1rem, 4vw, 2rem);
  --header-height: 64px;

  /* Radius */
  --r-sm: 6px;
  --r-md: 10px;
  --r-lg: 16px;
  --r-xl: 24px;
  --r-full: 999px;

  /* Motion */
  --ease-out-quart: cubic-bezier(0.25, 1, 0.5, 1);
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --dur-fast: 150ms;
  --dur-normal: 250ms;
  --dur-slow: 400ms;

  /* Z-index scale */
  --z-sticky: 200;
  --z-dropdown: 300;
  --z-overlay: 400;
  --z-modal: 500;
  --z-toast: 600;
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font-body);
  font-size: var(--fs-base);
  line-height: var(--lh-normal);
  color: var(--text-primary);
  background: var(--bg-base);
  background-image:
    radial-gradient(circle at 1px 1px, oklch(25% 0.012 250) 1px, transparent 0);
  background-size: 32px 32px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
}

a { color: var(--accent); text-decoration: none; transition: color var(--dur-fast) var(--ease-out-quart); }
a:hover { color: var(--accent-hover); }

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

::selection { background: var(--accent-subtle); color: var(--text-primary); }

/* --- Container --- */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-pad);
}

/* --- Top Bar --- */
.top-bar {
  background: oklch(10% 0.01 250);
  border-bottom: 1px solid var(--border-subtle);
  font-size: var(--fs-xs);
  font-family: var(--font-mono);
  letter-spacing: 0.02em;
}
.top-bar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 36px;
}
.top-left { color: var(--text-muted); }
.top-right { display: flex; gap: var(--sp-6); color: var(--text-muted); }
.top-right span::before { content: ''; display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); margin-right: 8px; vertical-align: middle; opacity: 0.6; }

/* --- Header / Navigation --- */
.header {
  background: oklch(15% 0.015 250 / 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-default);
  position: sticky;
  top: 0;
  z-index: var(--z-sticky);
}
.header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: var(--header-height);
}
.logo { display: flex; align-items: baseline; gap: var(--sp-3); }
.logo a { display: flex; align-items: baseline; gap: var(--sp-2); text-decoration: none; }
.logo h1 {
  font-family: var(--font-display);
  font-size: 1.375rem;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.02em;
}
.logo .logo-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px; height: 32px;
  background: var(--accent);
  color: var(--bg-base);
  border-radius: var(--r-sm);
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 1rem;
  flex-shrink: 0;
}
.logo .slogan {
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  color: var(--text-muted);
  letter-spacing: 0.03em;
}

.nav { display: flex; align-items: center; }
.main-menu { list-style: none; display: flex; gap: var(--sp-1); align-items: center; }
.main-menu > li { position: relative; }
.main-menu > li > a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: var(--fs-sm);
  font-weight: 500;
  padding: var(--sp-2) var(--sp-4);
  border-radius: var(--r-sm);
  transition: all var(--dur-fast) var(--ease-out-quart);
  display: block;
}
.main-menu > li > a:hover {
  color: var(--text-primary);
  background: var(--bg-surface-2);
}
.main-menu > li.active > a {
  color: var(--accent);
  background: var(--accent-subtle);
}
.main-menu > li.menu-item-has-children > a::after {
  content: '\25BE';
  font-size: 0.7em;
  margin-left: 6px;
  opacity: 0.5;
}
.sub-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 200px;
  background: var(--bg-surface-2);
  border: 1px solid var(--border-default);
  border-radius: var(--r-md);
  padding: var(--sp-2);
  list-style: none;
  box-shadow: 0 8px 24px rgba(0,0,0,0.3);
  z-index: var(--z-dropdown);
}
.main-menu > li.menu-item-has-children:hover .sub-menu { display: block; }
.sub-menu li a {
  display: block;
  padding: var(--sp-2) var(--sp-3);
  color: var(--text-secondary);
  font-size: var(--fs-sm);
  border-radius: var(--r-sm);
  transition: all var(--dur-fast) var(--ease-out-quart);
}
.sub-menu li a:hover { color: var(--accent); background: var(--bg-surface-3); }

.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: var(--sp-2);
}
.menu-toggle span { width: 24px; height: 2px; background: var(--text-primary); border-radius: 1px; transition: all var(--dur-fast) var(--ease-out-quart); }

/* --- Search Bar --- */
.search-bar {
  border-bottom: 1px solid var(--border-subtle);
  background: var(--bg-surface-1);
}
.search-bar .container { padding-top: var(--sp-2); padding-bottom: var(--sp-2); }
.search-bar form { display: flex; gap: var(--sp-2); max-width: 480px; }
.search-bar input[type="text"] {
  flex: 1;
  background: var(--bg-surface-2);
  border: 1px solid var(--border-default);
  border-radius: var(--r-sm);
  padding: var(--sp-2) var(--sp-3);
  color: var(--text-primary);
  font-family: var(--font-mono);
  font-size: var(--fs-sm);
}
.search-bar input[type="text"]::placeholder { color: var(--text-faint); }
.search-bar input[type="text"]:focus { outline: none; border-color: var(--accent); }
.search-bar button {
  background: var(--accent);
  color: var(--bg-base);
  border: none;
  border-radius: var(--r-sm);
  padding: var(--sp-2) var(--sp-4);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: var(--fs-sm);
  cursor: pointer;
  transition: background var(--dur-fast) var(--ease-out-quart);
}
.search-bar button:hover { background: var(--accent-hover); }

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-2);
  padding: var(--sp-3) var(--sp-6);
  border-radius: var(--r-sm);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: var(--fs-sm);
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: all var(--dur-fast) var(--ease-out-quart);
  white-space: nowrap;
}
.btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.btn-primary {
  background: var(--accent);
  color: var(--bg-base);
}
.btn-primary:hover {
  background: var(--accent-hover);
  transform: translateY(-1px);
  color: var(--bg-base);
}

.btn-outline {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid var(--border-strong);
}
.btn-outline:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-subtle);
}

.btn-ghost {
  background: var(--bg-surface-2);
  color: var(--text-primary);
  border: 1px solid var(--border-default);
}
.btn-ghost:hover { background: var(--bg-surface-3); border-color: var(--border-strong); }

/* --- Main Content --- */
.main-content { padding: var(--sp-12) 0; }

.section { margin-bottom: var(--sp-20); }
.section:last-child { margin-bottom: 0; }

.section-title {
  font-family: var(--font-display);
  font-size: var(--fs-2xl);
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: var(--sp-2);
  letter-spacing: -0.02em;
}
.section-label {
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: var(--sp-2);
  display: block;
}
.section-subtitle {
  font-size: var(--fs-base);
  color: var(--text-secondary);
  margin-bottom: var(--sp-8);
  max-width: 60ch;
}

/* --- Hero Section --- */
.hero {
  position: relative;
  padding: var(--sp-24) 0 var(--sp-16);
  overflow: hidden;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-8);
}
.hero h1 {
  font-family: var(--font-display);
  font-size: var(--fs-4xl);
  font-weight: 800;
  line-height: var(--lh-tight);
  letter-spacing: -0.03em;
  color: var(--text-primary);
  margin-bottom: var(--sp-4);
}
.hero h1 .highlight { color: var(--accent); }
.hero .hero-desc {
  font-size: var(--fs-lg);
  color: var(--text-secondary);
  max-width: 56ch;
  margin-bottom: var(--sp-8);
  line-height: var(--lh-relaxed);
}
.hero-meta {
  display: flex;
  gap: var(--sp-8);
  flex-wrap: wrap;
  margin-top: var(--sp-10);
  padding-top: var(--sp-8);
  border-top: 1px solid var(--border-subtle);
}
.hero-meta-item { display: flex; flex-direction: column; gap: var(--sp-1); }
.hero-meta-value {
  font-family: var(--font-mono);
  font-size: var(--fs-xl);
  font-weight: 700;
  color: var(--text-primary);
}
.hero-meta-label {
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* --- Slider --- */
.slider {
  position: relative;
  overflow: hidden;
  border-radius: var(--r-lg);
  margin-bottom: var(--sp-12);
}
.slide-item {
  display: none;
  padding: var(--sp-16) var(--sp-12);
  background: var(--bg-surface-2);
  border: 1px solid var(--border-default);
  border-radius: var(--r-lg);
}
.slide-item.active { display: block; }
.slide-item h2 {
  font-family: var(--font-display);
  font-size: var(--fs-3xl);
  font-weight: 700;
  margin-bottom: var(--sp-3);
  letter-spacing: -0.02em;
}
.slide-item p { font-size: var(--fs-lg); color: var(--text-secondary); margin-bottom: var(--sp-6); }

/* --- Grid --- */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: var(--sp-6);
}

/* --- Card --- */
.card {
  background: var(--bg-surface-1);
  border: 1px solid var(--border-default);
  border-radius: var(--r-md);
  overflow: hidden;
  transition: all var(--dur-normal) var(--ease-out-quart);
  position: relative;
}
.card:hover {
  border-color: var(--accent);
  background: var(--bg-surface-2);
  transform: translateY(-2px);
}
.card a { color: inherit; text-decoration: none; }
.card-img {
  aspect-ratio: 16/9;
  background: var(--bg-surface-3);
  overflow: hidden;
  border-bottom: 1px solid var(--border-subtle);
}
.card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--dur-slow) var(--ease-out-quart); }
.card:hover .card-img img { transform: scale(1.05); }
.card-body { padding: var(--sp-5); }
.card-title {
  font-family: var(--font-display);
  font-size: var(--fs-lg);
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: var(--sp-2);
  letter-spacing: -0.01em;
}
.card-desc {
  font-size: var(--fs-sm);
  color: var(--text-secondary);
  line-height: var(--lh-normal);
  margin-bottom: var(--sp-3);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.card-meta {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  color: var(--text-muted);
}

/* --- Feature Grid --- */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1px;
  background: var(--border-subtle);
  border: 1px solid var(--border-subtle);
  border-radius: var(--r-lg);
  overflow: hidden;
}
.feature-item {
  background: var(--bg-surface-1);
  padding: var(--sp-8) var(--sp-6);
  transition: background var(--dur-fast) var(--ease-out-quart);
}
.feature-item:hover { background: var(--bg-surface-2); }
.feature-icon {
  width: 40px; height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent-subtle);
  border-radius: var(--r-sm);
  margin-bottom: var(--sp-4);
  font-size: var(--fs-xl);
}
.feature-item h3 {
  font-family: var(--font-display);
  font-size: var(--fs-lg);
  font-weight: 600;
  margin-bottom: var(--sp-2);
  color: var(--text-primary);
}
.feature-item p { font-size: var(--fs-sm); color: var(--text-secondary); line-height: var(--lh-normal); }

/* --- Article List --- */
.article-list { display: flex; flex-direction: column; gap: 1px; background: var(--border-subtle); border: 1px solid var(--border-subtle); border-radius: var(--r-lg); overflow: hidden; }
.article-item {
  display: flex;
  gap: var(--sp-6);
  padding: var(--sp-6);
  background: var(--bg-surface-1);
  transition: background var(--dur-fast) var(--ease-out-quart);
  align-items: flex-start;
}
.article-item:hover { background: var(--bg-surface-2); }
.article-thumb { flex-shrink: 0; width: 200px; aspect-ratio: 16/9; border-radius: var(--r-sm); overflow: hidden; background: var(--bg-surface-3); }
.article-thumb img { width: 100%; height: 100%; object-fit: cover; }
.article-info { flex: 1; min-width: 0; }
.article-title a {
  font-family: var(--font-display);
  font-size: var(--fs-lg);
  font-weight: 600;
  color: var(--text-primary);
  text-decoration: none;
  transition: color var(--dur-fast);
}
.article-title a:hover { color: var(--accent); }
.article-summary { font-size: var(--fs-sm); color: var(--text-secondary); margin: var(--sp-2) 0 var(--sp-3); line-height: var(--lh-normal); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.article-meta { display: flex; gap: var(--sp-4); font-family: var(--font-mono); font-size: var(--fs-xs); color: var(--text-muted); }

/* --- Breadcrumb --- */
.breadcrumb { padding: var(--sp-4) var(--container-pad); max-width: var(--container-max); margin: 0 auto; font-family: var(--font-mono); font-size: var(--fs-xs); color: var(--text-muted); box-sizing: border-box; }
.breadcrumb a { color: var(--text-secondary); }
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb .sep { margin: 0 var(--sp-2); color: var(--text-faint); }

/* --- Pagination --- */
.pagination { display: flex; gap: var(--sp-2); justify-content: center; margin: var(--sp-12) 0; flex-wrap: wrap; }
.pagination a, .pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px; height: 40px;
  padding: 0 var(--sp-3);
  border-radius: var(--r-sm);
  font-family: var(--font-mono);
  font-size: var(--fs-sm);
  font-weight: 500;
  text-decoration: none;
  border: 1px solid var(--border-default);
  background: var(--bg-surface-1);
  color: var(--text-secondary);
  transition: all var(--dur-fast) var(--ease-out-quart);
}
.pagination a:hover { border-color: var(--accent); color: var(--accent); }
.pagination .current { background: var(--accent); color: var(--bg-base); border-color: var(--accent); font-weight: 700; }

/* --- Alert --- */
.alert {
  padding: var(--sp-4) var(--sp-5);
  border-radius: var(--r-sm);
  margin: var(--sp-4) 0;
  font-size: var(--fs-sm);
  border: 1px solid;
  border-left-width: 3px;
}
.alert-success { background: oklch(25% 0.03 145); color: var(--success); border-color: oklch(35% 0.05 145); }
.alert-warning { background: oklch(25% 0.03 75); color: var(--warning); border-color: oklch(35% 0.05 75); }
.alert-danger, .alert-error { background: oklch(25% 0.03 25); color: var(--danger); border-color: oklch(35% 0.05 25); }
.alert-info { background: oklch(25% 0.03 240); color: var(--info); border-color: oklch(35% 0.05 240); }

/* --- Badge --- */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 2px var(--sp-2);
  border-radius: var(--r-full);
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  font-weight: 500;
  letter-spacing: 0.02em;
}
.badge-primary { background: var(--accent-subtle); color: var(--accent); }
.badge-success { background: oklch(25% 0.04 145); color: var(--success); }
.badge-warning { background: oklch(25% 0.04 75); color: var(--warning); }

/* --- Form --- */
.form-group { margin-bottom: var(--sp-5); }
.form-label { display: block; font-family: var(--font-mono); font-size: var(--fs-xs); font-weight: 500; color: var(--text-secondary); margin-bottom: var(--sp-2); text-transform: uppercase; letter-spacing: 0.05em; }
.form-input, input[type="text"], input[type="email"], input[type="tel"], input[type="password"], textarea, select {
  width: 100%;
  padding: var(--sp-3) var(--sp-4);
  background: var(--bg-surface-2);
  border: 1px solid var(--border-default);
  border-radius: var(--r-sm);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: var(--fs-base);
  transition: all var(--dur-fast) var(--ease-out-quart);
}
.form-input:focus, input:focus, textarea:focus, select:focus {
  outline: none;
  border-color: var(--accent);
  background: var(--bg-surface-3);
}
.form-input::placeholder, input::placeholder, textarea::placeholder { color: var(--text-faint); }
textarea { resize: vertical; min-height: 120px; }

/* --- Table --- */
table { width: 100%; border-collapse: collapse; margin: var(--sp-6) 0; background: var(--bg-surface-1); border: 1px solid var(--border-default); border-radius: var(--r-md); overflow: hidden; }
th, td { padding: var(--sp-3) var(--sp-4); text-align: left; border-bottom: 1px solid var(--border-subtle); }
th { background: var(--bg-surface-3); color: var(--text-secondary); font-family: var(--font-mono); font-weight: 500; font-size: var(--fs-xs); text-transform: uppercase; letter-spacing: 0.05em; }
td { color: var(--text-primary); font-size: var(--fs-sm); }
tr:last-child td { border-bottom: none; }
tr:hover td { background: var(--bg-surface-2); }

/* --- Footer --- */
.footer {
  background: oklch(10% 0.01 250);
  border-top: 1px solid var(--border-default);
  padding: var(--sp-16) 0 var(--sp-8);
  margin-top: var(--sp-20);
}
.footer-widgets {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--sp-12);
  margin-bottom: var(--sp-12);
}
.widget h3 {
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  font-weight: 500;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: var(--sp-4);
}
.widget p { font-size: var(--fs-sm); color: var(--text-secondary); margin-bottom: var(--sp-2); line-height: var(--lh-normal); }
.widget ul { list-style: none; }
.widget ul li { margin-bottom: var(--sp-2); }
.widget ul li a { color: var(--text-secondary); font-size: var(--fs-sm); text-decoration: none; transition: color var(--dur-fast); }
.widget ul li a:hover { color: var(--accent); }

.footer-bottom {
  border-top: 1px solid var(--border-subtle);
  padding-top: var(--sp-8);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--sp-4);
}
.footer-bottom p { font-family: var(--font-mono); font-size: var(--fs-xs); color: var(--text-faint); }
.footer-bottom a { color: var(--text-faint); }
.footer-bottom a:hover { color: var(--accent); }

/* --- Back to Top --- */
.back-to-top {
  position: fixed;
  bottom: var(--sp-6);
  right: var(--sp-6);
  width: 44px; height: 44px;
  background: var(--bg-surface-3);
  border: 1px solid var(--border-strong);
  color: var(--text-primary);
  border-radius: var(--r-sm);
  cursor: pointer;
  font-size: var(--fs-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all var(--dur-normal) var(--ease-out-quart);
  z-index: var(--z-sticky);
}
.back-to-top.visible { opacity: 1; visibility: visible; }
.back-to-top:hover { background: var(--accent); color: var(--bg-base); border-color: var(--accent); }

/* --- Page Content (article/page body) --- */
.page-content { max-width: 72ch; }
.page-content h2 { font-family: var(--font-display); font-size: var(--fs-2xl); font-weight: 700; margin: var(--sp-8) 0 var(--sp-4); letter-spacing: -0.02em; }
.page-content h3 { font-family: var(--font-display); font-size: var(--fs-xl); font-weight: 600; margin: var(--sp-6) 0 var(--sp-3); }
.page-content p { margin-bottom: var(--sp-4); line-height: var(--lh-relaxed); color: var(--text-secondary); }
.page-content ul, .page-content ol { margin: var(--sp-4) 0; padding-left: var(--sp-6); }
.page-content li { margin-bottom: var(--sp-2); color: var(--text-secondary); }
.page-content code { font-family: var(--font-mono); background: var(--bg-surface-2); padding: 2px var(--sp-1); border-radius: var(--r-sm); font-size: 0.9em; }
.page-content pre { background: var(--bg-surface-2); border: 1px solid var(--border-default); border-radius: var(--r-md); padding: var(--sp-4); overflow-x: auto; margin: var(--sp-4) 0; }
.page-content pre code { background: none; padding: 0; }
.page-content blockquote { border-left: 3px solid var(--accent); padding-left: var(--sp-4); margin: var(--sp-4) 0; color: var(--text-secondary); font-style: italic; }

/* --- CTA Section --- */
.cta-section {
  background: var(--bg-surface-2);
  border: 1px solid var(--border-default);
  border-radius: var(--r-lg);
  padding: var(--sp-16) var(--sp-12);
  text-align: center;
  margin: var(--sp-16) 0;
}
.cta-section h2 { font-family: var(--font-display); font-size: var(--fs-3xl); font-weight: 700; margin-bottom: var(--sp-3); letter-spacing: -0.02em; }
.cta-section p { font-size: var(--fs-lg); color: var(--text-secondary); margin-bottom: var(--sp-8); max-width: 56ch; margin-left: auto; margin-right: auto; }
.cta-actions { display: flex; gap: var(--sp-4); justify-content: center; flex-wrap: wrap; }

/* --- Product Detail --- */
.product-detail { display: grid; grid-template-columns: 1fr; gap: var(--sp-8); }
.product-gallery { background: var(--bg-surface-2); border: 1px solid var(--border-default); border-radius: var(--r-lg); overflow: hidden; aspect-ratio: 4/3; }
.product-gallery img { width: 100%; height: 100%; object-fit: cover; }
.product-info h1 { font-family: var(--font-display); font-size: var(--fs-3xl); font-weight: 700; margin-bottom: var(--sp-3); letter-spacing: -0.02em; }
.product-price { font-family: var(--font-mono); font-size: var(--fs-2xl); font-weight: 700; color: var(--accent); margin: var(--sp-4) 0; }

/* --- Team --- */
.team-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: var(--sp-6); }
.team-card { text-align: center; padding: var(--sp-6); }
.team-avatar { width: 96px; height: 96px; border-radius: 50%; overflow: hidden; margin: 0 auto var(--sp-4); background: var(--bg-surface-3); border: 2px solid var(--border-default); }
.team-avatar img { width: 100%; height: 100%; object-fit: cover; }
.team-card h3 { font-family: var(--font-display); font-size: var(--fs-base); font-weight: 600; margin-bottom: var(--sp-1); }
.team-card .position { font-family: var(--font-mono); font-size: var(--fs-xs); color: var(--accent); margin-bottom: var(--sp-2); }
.team-card .bio { font-size: var(--fs-sm); color: var(--text-muted); }

/* --- Responsive --- */
@media (min-width: 768px) {
  .hero-grid { grid-template-columns: 1.2fr 0.8fr; align-items: center; }
  .product-detail { grid-template-columns: 1fr 1fr; align-items: start; }
}
@media (max-width: 768px) {
  .nav { display: none; }
  .nav.show {
    display: block;
    position: fixed;
    top: var(--header-height);
    left: 0; right: 0;
    background: var(--bg-surface-2);
    border-bottom: 1px solid var(--border-default);
    padding: var(--sp-4);
    z-index: var(--z-sticky);
  }
  .nav.show .main-menu { flex-direction: column; gap: var(--sp-1); align-items: stretch; }
  .menu-toggle { display: flex; }
  .top-right { display: none; }
  .article-item { flex-direction: column; }
  .article-thumb { width: 100%; }
  .hero h1 { font-size: 2rem; }
  .hero .hero-desc { font-size: var(--fs-base); }
  .footer-widgets { grid-template-columns: 1fr 1fr; gap: var(--sp-6); }
  .footer-bottom { flex-direction: column; text-align: center; }
}

/* --- Reduced Motion --- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

/* --- Scrollbar --- */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--bg-base); }
::-webkit-scrollbar-thumb { background: var(--border-strong); border-radius: var(--r-sm); }
::-webkit-scrollbar-thumb:hover { background: var(--text-muted); }

/* ============================================================
   v1.1 — Template Component Styles
   ============================================================ */

/* --- Button BEM variants (additive to existing .btn-primary etc.) --- */
.btn--primary { background: var(--accent); color: var(--bg-base); }
.btn--primary:hover { background: var(--accent-hover); transform: translateY(-1px); color: var(--bg-base); box-shadow: 0 4px 12px var(--accent-glow); }
.btn--outline { background: transparent; color: var(--text-primary); border: 1px solid var(--border-strong); }
.btn--outline:hover { border-color: var(--accent); color: var(--accent); background: var(--accent-subtle); }
.btn--ghost { background: var(--bg-surface-2); color: var(--text-primary); border: 1px solid var(--border-default); }
.btn--ghost:hover { background: var(--bg-surface-3); border-color: var(--border-strong); }
.btn--sm { padding: var(--sp-2) var(--sp-4); font-size: var(--fs-xs); }
.btn--lg { padding: var(--sp-4) var(--sp-8); font-size: var(--fs-base); }

/* --- Section Header --- */
.section-header { margin-bottom: var(--sp-10); }
.section-header--row { display: flex; justify-content: space-between; align-items: flex-end; }
.section-header--center { text-align: center; }
.section-header--center .section-subtitle { margin-left: auto; margin-right: auto; }
.section-header--row .section-label { margin-bottom: var(--sp-1); }

.link-arrow {
  display: inline-flex; align-items: center; gap: var(--sp-2);
  font-family: var(--font-mono); font-size: var(--fs-sm); font-weight: 500;
  color: var(--accent); text-decoration: none;
  transition: gap var(--dur-fast) var(--ease-out-quart);
}
.link-arrow:hover { gap: var(--sp-3); color: var(--accent-hover); }

.section-footer-center { text-align: center; margin-top: var(--sp-10); }

/* --- Hero Slider --- */
.hero-section { position: relative; overflow: hidden; border-bottom: 1px solid var(--border-default); }
.hero-slides { position: relative; }
.hero-slide {
  display: none;
  padding: var(--sp-24) 0 var(--sp-20);
  position: relative;
}
.hero-slide.active { display: block; }
.hero-slide-bg {
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at 70% 30%, var(--accent-glow), transparent 60%);
  pointer-events: none;
}
.hero-content { position: relative; z-index: 1; }
.hero-label {
  font-family: var(--font-mono); font-size: var(--fs-xs); font-weight: 500;
  color: var(--accent); letter-spacing: 0.1em; text-transform: uppercase;
  display: block; margin-bottom: var(--sp-4);
}
.hero-title {
  font-family: var(--font-display); font-size: var(--fs-4xl); font-weight: 800;
  line-height: var(--lh-tight); letter-spacing: -0.03em;
  color: var(--text-primary); margin-bottom: var(--sp-4); max-width: 20ch;
}
.hero-desc {
  font-size: var(--fs-lg); color: var(--text-secondary);
  max-width: 56ch; margin-bottom: var(--sp-8); line-height: var(--lh-relaxed);
}
.hero-static { padding: var(--sp-24) 0 var(--sp-20); background: radial-gradient(ellipse at 70% 30%, var(--accent-glow), transparent 60%); }
.hero-dots {
  position: absolute; bottom: var(--sp-8); left: 50%; transform: translateX(-50%);
  display: flex; gap: var(--sp-2); z-index: 2;
}
.hero-dot {
  width: 8px; height: 8px; border-radius: 50%;
  border: none; background: var(--border-strong); cursor: pointer;
  transition: all var(--dur-fast) var(--ease-out-quart);
  padding: 0;
}
.hero-dot.active { background: var(--accent); width: 24px; border-radius: var(--r-full); }

/* --- Feature Grid (homepage) --- */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1px; background: var(--border-subtle);
  border: 1px solid var(--border-subtle); border-radius: var(--r-lg); overflow: hidden;
}
.feature-card {
  background: var(--bg-surface-1);
  padding: var(--sp-8) var(--sp-6);
  transition: background var(--dur-fast) var(--ease-out-quart);
  opacity: 0; transform: translateY(20px);
}
.feature-card.revealed { opacity: 1; transform: translateY(0); transition: opacity var(--dur-slow) var(--ease-out-expo), transform var(--dur-slow) var(--ease-out-expo); }
.feature-card:hover { background: var(--bg-surface-2); }
.feature-icon {
  width: 44px; height: 44px; display: flex; align-items: center; justify-content: center;
  background: var(--accent-subtle); border-radius: var(--r-sm);
  margin-bottom: var(--sp-4); color: var(--accent);
}
.feature-title {
  font-family: var(--font-display); font-size: var(--fs-lg); font-weight: 600;
  color: var(--text-primary); margin-bottom: var(--sp-2); letter-spacing: -0.01em;
}
.feature-desc { font-size: var(--fs-sm); color: var(--text-secondary); line-height: var(--lh-normal); }

/* --- Product Grid & Card --- */
.product-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: var(--sp-6);
}
.product-card {
  background: var(--bg-surface-1); border: 1px solid var(--border-default);
  border-radius: var(--r-md); overflow: hidden;
  transition: all var(--dur-normal) var(--ease-out-quart);
  opacity: 0; transform: translateY(20px);
}
.product-card.revealed { opacity: 1; transform: translateY(0); transition: opacity var(--dur-slow) var(--ease-out-expo), transform var(--dur-slow) var(--ease-out-expo); }
.product-card:hover { border-color: var(--accent); background: var(--bg-surface-2); transform: translateY(-2px); }
.product-card-link { display: block; color: inherit; text-decoration: none; }
.product-card-image {
  aspect-ratio: 16/9; background: var(--bg-surface-3);
  overflow: hidden; border-bottom: 1px solid var(--border-subtle);
}
.product-card-image img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--dur-slow) var(--ease-out-quart); }
.product-card:hover .product-card-image img { transform: scale(1.05); }
.product-card-placeholder {
  width: 100%; height: 100%; display: flex; align-items: center; justify-content: center;
  color: var(--text-faint);
}
.product-card-body { padding: var(--sp-5); }
.product-card-title {
  font-family: var(--font-display); font-size: var(--fs-lg); font-weight: 600;
  color: var(--text-primary); margin-bottom: var(--sp-2); letter-spacing: -0.01em;
}
.product-card-desc {
  font-size: var(--fs-sm); color: var(--text-secondary); line-height: var(--lh-normal);
  margin-bottom: var(--sp-4); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.product-card-footer { display: flex; justify-content: space-between; align-items: center; }
.product-price { font-family: var(--font-mono); font-size: var(--fs-xl); font-weight: 700; color: var(--accent); }
.product-sales { font-family: var(--font-mono); font-size: var(--fs-xs); color: var(--text-muted); }
.product-arrow { color: var(--text-muted); transition: all var(--dur-fast); }
.product-card:hover .product-arrow { color: var(--accent); transform: translateX(4px); }

/* --- News Grid & Card --- */
.news-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: var(--sp-6);
}
.news-card {
  background: var(--bg-surface-1); border: 1px solid var(--border-default);
  border-radius: var(--r-md); overflow: hidden;
  transition: all var(--dur-normal) var(--ease-out-quart);
  opacity: 0; transform: translateY(20px);
}
.news-card.revealed { opacity: 1; transform: translateY(0); transition: opacity var(--dur-slow) var(--ease-out-expo), transform var(--dur-slow) var(--ease-out-expo); }
.news-card:hover { border-color: var(--accent); background: var(--bg-surface-2); transform: translateY(-2px); }
.news-card a { color: inherit; text-decoration: none; display: block; }
.news-card-image { aspect-ratio: 16/9; background: var(--bg-surface-3); overflow: hidden; }
.news-card-image img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--dur-slow); }
.news-card:hover .news-card-image img { transform: scale(1.05); }
.news-card-body { padding: var(--sp-5); }
.news-card-meta {
  display: flex; align-items: center; gap: var(--sp-3);
  font-family: var(--font-mono); font-size: var(--fs-xs); color: var(--text-muted);
  margin-bottom: var(--sp-2);
}
.news-card-title {
  font-family: var(--font-display); font-size: var(--fs-lg); font-weight: 600;
  color: var(--text-primary); margin-bottom: var(--sp-2); letter-spacing: -0.01em;
  transition: color var(--dur-fast);
}
.news-card:hover .news-card-title { color: var(--accent); }
.news-card-desc {
  font-size: var(--fs-sm); color: var(--text-secondary); line-height: var(--lh-normal);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}

/* --- Case Grid & Card --- */
.case-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: var(--sp-6); }
.case-grid--full { grid-template-columns: repeat(auto-fill, minmax(360px, 1fr)); }
.case-card {
  background: var(--bg-surface-1); border: 1px solid var(--border-default);
  border-radius: var(--r-md); overflow: hidden;
  transition: all var(--dur-normal) var(--ease-out-quart);
  opacity: 0; transform: translateY(20px);
}
.case-card.revealed { opacity: 1; transform: translateY(0); transition: opacity var(--dur-slow) var(--ease-out-expo), transform var(--dur-slow) var(--ease-out-expo); }
.case-card:hover { border-color: var(--accent); background: var(--bg-surface-2); transform: translateY(-2px); }
.case-card a { color: inherit; text-decoration: none; display: block; }
.case-card-image { aspect-ratio: 16/9; background: var(--bg-surface-3); overflow: hidden; }
.case-card-image img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--dur-slow); }
.case-card:hover .case-card-image img { transform: scale(1.05); }
.case-card-placeholder { width: 100%; height: 100%; background: var(--bg-surface-2); }
.case-card-body { padding: var(--sp-5); }
.case-card-client {
  font-family: var(--font-mono); font-size: var(--fs-xs); font-weight: 500;
  color: var(--accent); text-transform: uppercase; letter-spacing: 0.05em;
  display: block; margin-bottom: var(--sp-2);
}
.case-card-title {
  font-family: var(--font-display); font-size: var(--fs-lg); font-weight: 600;
  color: var(--text-primary); margin-bottom: var(--sp-2); letter-spacing: -0.01em;
}
.case-card-desc { font-size: var(--fs-sm); color: var(--text-secondary); line-height: var(--lh-normal); margin-bottom: var(--sp-3); }
.case-card-link {
  display: inline-flex; align-items: center; gap: var(--sp-2);
  font-family: var(--font-mono); font-size: var(--fs-xs); font-weight: 500;
  color: var(--accent); transition: gap var(--dur-fast);
}
.case-card:hover .case-card-link { gap: var(--sp-3); }

/* --- CTA Section (homepage) --- */
.cta-section .cta-label {
  font-family: var(--font-mono); font-size: var(--fs-xs); font-weight: 500;
  color: var(--accent); letter-spacing: 0.1em; text-transform: uppercase;
  display: block; margin-bottom: var(--sp-4);
}
.cta-title {
  font-family: var(--font-display); font-size: var(--fs-3xl); font-weight: 700;
  color: var(--text-primary); margin-bottom: var(--sp-3); letter-spacing: -0.02em;
}
.cta-desc { font-size: var(--fs-lg); color: var(--text-secondary); margin-bottom: var(--sp-8); max-width: 56ch; margin-left: auto; margin-right: auto; }

/* --- Sidebar Layout --- */
.container--sidebar { display: grid; grid-template-columns: 1fr 300px; gap: var(--sp-10); align-items: start; }
.container--sidebar-reverse { display: grid; grid-template-columns: 280px 1fr; gap: var(--sp-10); align-items: start; }
.content-main { min-width: 0; }
.sidebar { display: flex; flex-direction: column; gap: var(--sp-6); position: sticky; top: calc(var(--header-height) + var(--sp-4)); }
.sidebar--filter { position: static; }

/* --- Widget --- */
.widget-title {
  font-family: var(--font-mono); font-size: var(--fs-xs); font-weight: 500;
  color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.1em;
  margin-bottom: var(--sp-4); padding-bottom: var(--sp-3);
  border-bottom: 1px solid var(--border-subtle);
}
.widget-list { list-style: none; display: flex; flex-direction: column; gap: var(--sp-1); }
.widget-list li { padding: var(--sp-2) 0; border-bottom: 1px solid var(--border-subtle); }
.widget-list li:last-child { border-bottom: none; }
.widget-list li a { color: var(--text-secondary); font-size: var(--fs-sm); text-decoration: none; transition: color var(--dur-fast); }
.widget-list li a:hover { color: var(--accent); }
.widget-list li a.is-active { color: var(--accent); font-weight: 600; }
.widget-list--ranked li { display: flex; align-items: flex-start; gap: var(--sp-3); }
.rank-num {
  font-family: var(--font-mono); font-size: var(--fs-xs); font-weight: 600;
  color: var(--text-faint); flex-shrink: 0; line-height: 1.6;
}
.widget-empty { font-size: var(--fs-sm); color: var(--text-muted); padding: var(--sp-2) 0; }

/* --- Article Meta --- */
.meta-sep { width: 1px; height: 12px; background: var(--border-strong); display: inline-block; }
.badge--top { background: oklch(25% 0.04 25); color: var(--danger); }
.badge--rec { background: var(--accent-subtle); color: var(--accent); }

/* --- Empty State --- */
.empty-state {
  text-align: center; padding: var(--sp-16) var(--sp-6);
  color: var(--text-muted);
}
.empty-state p { font-size: var(--fs-lg); margin-top: var(--sp-4); }
.empty-state span { font-size: var(--fs-sm); color: var(--text-faint); }

/* --- Article Detail --- */
.article-detail { max-width: 72ch; }
.article-detail-header { margin-bottom: var(--sp-8); padding-bottom: var(--sp-6); border-bottom: 1px solid var(--border-subtle); }
.article-detail-title {
  font-family: var(--font-display); font-size: var(--fs-3xl); font-weight: 700;
  color: var(--text-primary); margin-bottom: var(--sp-4); letter-spacing: -0.02em; line-height: var(--lh-tight);
}
.article-detail-meta { display: flex; flex-wrap: wrap; gap: var(--sp-5); }
.meta-item { display: inline-flex; align-items: center; gap: var(--sp-2); font-family: var(--font-mono); font-size: var(--fs-xs); color: var(--text-muted); }
.meta-item svg { opacity: 0.6; }
.article-tags { display: flex; flex-wrap: wrap; gap: var(--sp-2); margin-top: var(--sp-4); }
.tag {
  display: inline-flex; padding: var(--sp-1) var(--sp-3);
  background: var(--bg-surface-2); border: 1px solid var(--border-default);
  border-radius: var(--r-full); font-family: var(--font-mono);
  font-size: var(--fs-xs); color: var(--text-secondary); text-decoration: none;
  transition: all var(--dur-fast);
}
.tag:hover { border-color: var(--accent); color: var(--accent); background: var(--accent-subtle); }
.tag-cloud { display: flex; flex-wrap: wrap; gap: var(--sp-2); }

.article-content { line-height: var(--lh-relaxed); }
.article-content h2 { font-family: var(--font-display); font-size: var(--fs-2xl); font-weight: 700; margin: var(--sp-8) 0 var(--sp-4); letter-spacing: -0.02em; }
.article-content h3 { font-family: var(--font-display); font-size: var(--fs-xl); font-weight: 600; margin: var(--sp-6) 0 var(--sp-3); }
.article-content p { margin-bottom: var(--sp-4); color: var(--text-secondary); }
.article-content ul, .article-content ol { margin: var(--sp-4) 0; padding-left: var(--sp-6); }
.article-content li { margin-bottom: var(--sp-2); color: var(--text-secondary); }
.article-content img { border-radius: var(--r-md); margin: var(--sp-4) 0; }
.article-content code { font-family: var(--font-mono); background: var(--bg-surface-2); padding: 2px var(--sp-1); border-radius: var(--r-sm); font-size: 0.9em; }
.article-content pre { background: var(--bg-surface-2); border: 1px solid var(--border-default); border-radius: var(--r-md); padding: var(--sp-4); overflow-x: auto; margin: var(--sp-4) 0; }
.article-content pre code { background: none; padding: 0; }
.article-content blockquote { border-left: 3px solid var(--accent); padding-left: var(--sp-4); margin: var(--sp-4) 0; color: var(--text-secondary); font-style: italic; }
.article-content table { margin: var(--sp-4) 0; }
.article-content a { color: var(--accent); }

/* --- Article Nav --- */
.article-nav {
  display: flex; justify-content: space-between; gap: var(--sp-4);
  margin-top: var(--sp-10); padding-top: var(--sp-6);
  border-top: 1px solid var(--border-subtle);
}
.article-nav-item { display: flex; flex-direction: column; gap: var(--sp-1); text-decoration: none; padding: var(--sp-4); border: 1px solid var(--border-default); border-radius: var(--r-md); transition: all var(--dur-fast); flex: 1; max-width: 48%; }
.article-nav-item:hover { border-color: var(--accent); background: var(--bg-surface-1); }
.article-nav-next { text-align: right; }
.article-nav-label { font-family: var(--font-mono); font-size: var(--fs-xs); color: var(--text-muted); }
.article-nav-title { font-size: var(--fs-sm); color: var(--text-primary); font-weight: 500; }

/* --- Article Detail Cover --- */
.article-detail-cover { margin-bottom: var(--sp-8); border-radius: var(--r-lg); overflow: hidden; }
.article-detail-cover img { width: 100%; }

/* --- Gallery Grid --- */
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: var(--sp-4); margin-bottom: var(--sp-8); }
.gallery-item { border-radius: var(--r-md); overflow: hidden; aspect-ratio: 4/3; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--dur-slow); }
.gallery-item:hover img { transform: scale(1.05); }

/* --- Project URL Box --- */
.project-url-box { margin-top: var(--sp-8); padding: var(--sp-6); background: var(--bg-surface-2); border: 1px solid var(--border-default); border-radius: var(--r-md); }

/* --- Filter Form --- */
.filter-form { display: flex; flex-direction: column; gap: var(--sp-5); }
.filter-group { padding-bottom: var(--sp-4); border-bottom: 1px solid var(--border-subtle); }
.filter-group:last-of-type { border-bottom: none; }
.filter-group-title { font-family: var(--font-body); font-size: var(--fs-sm); font-weight: 600; color: var(--text-primary); margin-bottom: var(--sp-3); }
.filter-options { display: flex; flex-direction: column; gap: var(--sp-2); }
.filter-option { display: flex; align-items: center; gap: var(--sp-2); font-size: var(--fs-sm); color: var(--text-secondary); cursor: pointer; }
.filter-option input { margin: 0; accent-color: var(--accent); }
.filter-option:hover { color: var(--text-primary); }
.filter-price { display: flex; align-items: center; gap: var(--sp-2); }
.filter-price input { width: 80px; padding: var(--sp-2); }
.filter-price-sep { color: var(--text-muted); }
.filter-actions { display: flex; gap: var(--sp-3); }

/* --- Current Filters --- */
.current-filters { display: flex; flex-wrap: wrap; align-items: center; gap: var(--sp-2); margin-bottom: var(--sp-6); padding: var(--sp-3) var(--sp-4); background: var(--bg-surface-2); border: 1px solid var(--border-default); border-radius: var(--r-md); }
.current-filters-label { font-family: var(--font-mono); font-size: var(--fs-xs); color: var(--text-muted); }
.filter-tag { display: inline-flex; padding: var(--sp-1) var(--sp-3); background: var(--bg-surface-3); border: 1px solid var(--border-default); border-radius: var(--r-full); font-size: var(--fs-xs); color: var(--text-secondary); }
.filter-clear { font-family: var(--font-mono); font-size: var(--fs-xs); color: var(--accent); margin-left: auto; }

/* --- Product Detail --- */
.product-detail-header { display: grid; grid-template-columns: 1fr; gap: var(--sp-8); margin-bottom: var(--sp-10); }
.product-detail-gallery { display: flex; flex-direction: column; gap: var(--sp-3); }
.product-detail-main-image { background: var(--bg-surface-2); border: 1px solid var(--border-default); border-radius: var(--r-lg); overflow: hidden; aspect-ratio: 4/3; }
.product-detail-main-image img { width: 100%; height: 100%; object-fit: cover; }
.product-detail-placeholder { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; color: var(--text-faint); }
.product-detail-thumbs { display: flex; gap: var(--sp-2); flex-wrap: wrap; }
.product-detail-thumb { width: 64px; height: 64px; border-radius: var(--r-sm); overflow: hidden; border: 2px solid var(--border-default); cursor: pointer; transition: border-color var(--dur-fast); }
.product-detail-thumb:hover, .product-detail-thumb.active { border-color: var(--accent); }
.product-detail-thumb img { width: 100%; height: 100%; object-fit: cover; }
.product-detail-info { display: flex; flex-direction: column; }
.product-detail-title { font-family: var(--font-display); font-size: var(--fs-3xl); font-weight: 700; color: var(--text-primary); margin-bottom: var(--sp-4); letter-spacing: -0.02em; }
.product-detail-price { display: flex; align-items: baseline; gap: var(--sp-3); margin-bottom: var(--sp-6); }
.price-current { font-family: var(--font-mono); font-size: var(--fs-2xl); font-weight: 700; color: var(--accent); }
.price-original { font-family: var(--font-mono); font-size: var(--fs-base); color: var(--text-muted); text-decoration: line-through; }
.product-detail-attrs { display: flex; flex-direction: column; gap: var(--sp-3); margin-bottom: var(--sp-8); }
.attr-row { display: flex; gap: var(--sp-4); padding-bottom: var(--sp-2); border-bottom: 1px solid var(--border-subtle); }
.attr-row dt { font-family: var(--font-mono); font-size: var(--fs-xs); color: var(--text-muted); width: 80px; flex-shrink: 0; text-transform: uppercase; letter-spacing: 0.05em; }
.attr-row dd { font-size: var(--fs-sm); color: var(--text-primary); }
.product-detail-actions { display: flex; gap: var(--sp-4); flex-wrap: wrap; margin-top: auto; }
.product-detail-content { border-top: 1px solid var(--border-subtle); padding-top: var(--sp-8); }

/* --- Contact Layout --- */
.contact-layout { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-10); margin-top: var(--sp-8); }
.contact-info-panel, .contact-form-panel { background: var(--bg-surface-1); border: 1px solid var(--border-default); border-radius: var(--r-lg); padding: var(--sp-8); }
.contact-panel-title { font-family: var(--font-display); font-size: var(--fs-xl); font-weight: 600; color: var(--text-primary); margin-bottom: var(--sp-6); }
.contact-info-list { display: flex; flex-direction: column; gap: var(--sp-5); }
.contact-info-item { display: flex; gap: var(--sp-4); align-items: flex-start; }
.contact-info-icon { width: 40px; height: 40px; display: flex; align-items: center; justify-content: center; background: var(--accent-subtle); border-radius: var(--r-sm); color: var(--accent); flex-shrink: 0; }
.contact-info-text dt { font-family: var(--font-mono); font-size: var(--fs-xs); color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: var(--sp-1); }
.contact-info-text dd { font-size: var(--fs-sm); color: var(--text-primary); }
.contact-form { display: flex; flex-direction: column; gap: var(--sp-4); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-4); }
.contact-form label { font-family: var(--font-mono); font-size: var(--fs-xs); color: var(--text-secondary); display: block; margin-bottom: var(--sp-2); text-transform: uppercase; letter-spacing: 0.05em; }
.required { color: var(--danger); }
.contact-form .form-input { width: 100%; }
.contact-form .form-input.error { border-color: var(--danger); }
.contact-extra { margin-top: var(--sp-10); }

/* --- Service Grid --- */
.service-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: var(--sp-6); }
.service-card {
  background: var(--bg-surface-1); border: 1px solid var(--border-default);
  border-radius: var(--r-md); padding: var(--sp-8) var(--sp-6);
  transition: all var(--dur-normal) var(--ease-out-quart);
  opacity: 0; transform: translateY(20px);
}
.service-card.revealed { opacity: 1; transform: translateY(0); transition: opacity var(--dur-slow) var(--ease-out-expo), transform var(--dur-slow) var(--ease-out-expo); }
.service-card:hover { border-color: var(--accent); background: var(--bg-surface-2); }
.service-number { font-family: var(--font-mono); font-size: var(--fs-xl); font-weight: 700; color: var(--accent); margin-bottom: var(--sp-3); opacity: 0.5; }
.service-title { font-family: var(--font-display); font-size: var(--fs-xl); font-weight: 600; color: var(--text-primary); margin-bottom: var(--sp-3); }
.service-desc { font-size: var(--fs-sm); color: var(--text-secondary); line-height: var(--lh-normal); margin-bottom: var(--sp-4); }
.service-features { list-style: none; display: flex; flex-wrap: wrap; gap: var(--sp-2); }
.service-features li { font-family: var(--font-mono); font-size: var(--fs-xs); color: var(--accent); padding: var(--sp-1) var(--sp-2); background: var(--accent-subtle); border-radius: var(--r-sm); }

/* --- Process Steps --- */
.process-section { margin-top: var(--sp-16); }
.process-steps { display: flex; justify-content: space-between; gap: var(--sp-4); position: relative; }
.process-step { text-align: center; flex: 1; position: relative; }
.process-step-num {
  width: 48px; height: 48px; border-radius: 50%;
  background: var(--bg-surface-2); border: 2px solid var(--accent);
  color: var(--accent); font-family: var(--font-mono); font-size: var(--fs-sm); font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto var(--sp-3); position: relative; z-index: 1;
}
.process-step-name { font-size: var(--fs-sm); font-weight: 500; color: var(--text-primary); }
.process-step-line { position: absolute; top: 24px; left: 50%; width: 100%; height: 2px; background: var(--border-default); z-index: 0; }

/* --- CTA Box --- */
.cta-box {
  margin-top: var(--sp-16); padding: var(--sp-12);
  background: var(--bg-surface-2); border: 1px solid var(--border-default);
  border-radius: var(--r-lg); text-align: center;
}
.cta-box h3 { font-family: var(--font-display); font-size: var(--fs-2xl); font-weight: 700; color: var(--text-primary); margin-bottom: var(--sp-3); }
.cta-box p { font-size: var(--fs-base); color: var(--text-secondary); margin-bottom: var(--sp-6); }

/* --- Search Results --- */
.search-keyword { color: var(--accent); }
.search-group { margin-bottom: var(--sp-10); }
.search-group-title {
  font-family: var(--font-display); font-size: var(--fs-xl); font-weight: 600;
  color: var(--text-primary); margin-bottom: var(--sp-4);
  padding-bottom: var(--sp-3); border-bottom: 2px solid var(--accent);
  display: flex; align-items: center; gap: var(--sp-3);
}
.search-group-count { font-family: var(--font-mono); font-size: var(--fs-sm); color: var(--accent); background: var(--accent-subtle); padding: 2px var(--sp-2); border-radius: var(--r-full); }
.search-result-list { display: flex; flex-direction: column; gap: var(--sp-3); }
.search-result-item {
  display: flex; align-items: center; justify-content: space-between; gap: var(--sp-4);
  padding: var(--sp-4) var(--sp-5); background: var(--bg-surface-1);
  border: 1px solid var(--border-default); border-radius: var(--r-md);
  text-decoration: none; transition: all var(--dur-fast); border-left: 3px solid transparent;
}
.search-result-item:hover { border-color: var(--border-strong); border-left-color: var(--accent); background: var(--bg-surface-2); }
.search-result-title { font-family: var(--font-display); font-size: var(--fs-base); font-weight: 600; color: var(--text-primary); margin-bottom: var(--sp-1); }
.search-result-desc { font-size: var(--fs-sm); color: var(--text-secondary); }
.search-result-arrow { color: var(--text-muted); flex-shrink: 0; transition: all var(--dur-fast); }
.search-result-item:hover .search-result-arrow { color: var(--accent); transform: translateX(4px); }

/* --- Team Card (updated) --- */
.team-card {
  background: var(--bg-surface-1); border: 1px solid var(--border-default);
  border-radius: var(--r-md); padding: var(--sp-8) var(--sp-6); text-align: center;
  transition: all var(--dur-normal) var(--ease-out-quart);
  opacity: 0; transform: translateY(20px);
}
.team-card.revealed { opacity: 1; transform: translateY(0); transition: opacity var(--dur-slow) var(--ease-out-expo), transform var(--dur-slow) var(--ease-out-expo); }
.team-card:hover { border-color: var(--accent); background: var(--bg-surface-2); }
.team-avatar { width: 96px; height: 96px; border-radius: 50%; overflow: hidden; margin: 0 auto var(--sp-4); background: var(--bg-surface-3); border: 2px solid var(--border-default); }
.team-avatar img { width: 100%; height: 100%; object-fit: cover; }
.team-avatar-placeholder { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; color: var(--text-faint); }
.team-name { font-family: var(--font-display); font-size: var(--fs-lg); font-weight: 600; color: var(--text-primary); margin-bottom: var(--sp-1); }
.team-position { font-family: var(--font-mono); font-size: var(--fs-xs); color: var(--accent); margin-bottom: var(--sp-3); text-transform: uppercase; letter-spacing: 0.05em; }
.team-bio { font-size: var(--fs-sm); color: var(--text-secondary); line-height: var(--lh-normal); margin-bottom: var(--sp-3); }
.team-details { margin-top: var(--sp-3); }
.team-details summary { font-family: var(--font-mono); font-size: var(--fs-xs); color: var(--accent); cursor: pointer; }
.team-detail-content { margin-top: var(--sp-3); font-size: var(--fs-sm); color: var(--text-secondary); text-align: left; line-height: var(--lh-normal); }
.team-social { display: flex; justify-content: center; gap: var(--sp-3); margin-top: var(--sp-4); }
.team-social-link { display: flex; align-items: center; justify-content: center; width: 32px; height: 32px; border-radius: var(--r-sm); background: var(--bg-surface-3); color: var(--text-muted); transition: all var(--dur-fast); cursor: pointer; text-decoration: none; }
.team-social-link:hover { background: var(--accent-subtle); color: var(--accent); }

/* --- Category Hero --- */
.category-hero { padding: var(--sp-16) 0; background: var(--bg-surface-2); border-bottom: 1px solid var(--border-default); }
.category-hero h1 { font-family: var(--font-display); font-size: var(--fs-3xl); font-weight: 700; color: var(--text-primary); margin-bottom: var(--sp-3); letter-spacing: -0.02em; }
.category-hero-desc { font-size: var(--fs-base); color: var(--text-secondary); margin-bottom: var(--sp-2); }
.category-hero-count { font-family: var(--font-mono); font-size: var(--fs-sm); color: var(--accent); }

/* --- Header Scrolled State --- */
.header.scrolled { box-shadow: 0 2px 12px rgba(0,0,0,0.2); }

/* --- Responsive Additions --- */
@media (min-width: 768px) {
  .product-detail-header { grid-template-columns: 1fr 1fr; align-items: start; }
}
@media (max-width: 768px) {
  .container--sidebar, .container--sidebar-reverse { grid-template-columns: 1fr; }
  .sidebar { position: static; }
  .contact-layout { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .process-steps { flex-direction: column; gap: var(--sp-6); }
  .process-step-line { display: none; }
  .section-header--row { flex-direction: column; align-items: flex-start; gap: var(--sp-4); }
  .article-nav { flex-direction: column; }
  .article-nav-item { max-width: 100%; }
  .article-nav-next { text-align: left; }
}
