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

:root {
  /* Colors - Warm Craft Studio Palette */
  --bg-base: #f5f0e8;
  --bg-cream: #faf6ef;
  --bg-warm: #ede4d4;

  --wood-dark: #3d2b1f;
  --wood-medium: #5c4033;
  --wood-light: #8b6f47;

  --olive-dark: #3a4a2f;
  --olive-medium: #4a5d3a;
  --olive-light: #6b7d5a;

  --cork-brown: #c4a672;
  --cork-light: #d4bc8e;

  --cream: #f4e4d0;
  --cream-light: #faf0e0;
  --ivory: #fffdf8;

  --glass-bg: rgba(255, 253, 248, 0.72);
  --glass-bg-hover: rgba(255, 253, 248, 0.85);
  --glass-border: rgba(255, 253, 248, 0.5);
  --glass-shadow: 0 8px 32px rgba(60, 40, 20, 0.12);
  --glass-shadow-hover: 0 12px 40px rgba(60, 40, 20, 0.18);
  --glass-blur: blur(16px);

  --accent: #4a5d3a;
  --accent-light: #6b7d5a;
  --accent-dark: #3a4a2f;
  --accent-gradient: linear-gradient(135deg, #4a5d3a, #3a4a2f);
  --accent-gradient-hover: linear-gradient(135deg, #3a4a2f, #2a3a1f);

  --text-primary: #2a1f15;
  --text-secondary: #6b5d4f;
  --text-tertiary: #9a8b7a;
  --text-on-accent: #f4e4d0;
  --text-on-dark: #f4e4d0;

  --border-light: rgba(139, 111, 71, 0.15);
  --border-medium: rgba(74, 93, 58, 0.2);

  --bg-overlay: rgba(60, 40, 20, 0.03);

  /* Typography */
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  --font-display: 'Georgia', 'Times New Roman', serif;

  /* Radius */
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-xl: 24px;

  /* Transitions */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-soft: cubic-bezier(0.4, 0, 0.2, 1);
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-sans);
  background: var(--bg-cream);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  min-height: 100vh;
  position: relative;
}

/* ==================== Background Decorations ==================== */
.bg-decorations {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

/* No blobs - clean warm background */

/* ==================== Navigation ====================*/

/* ==================== Navbar ==================== */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 200;
  padding: 24px 48px;
  transition: all 0.4s var(--ease);
}

.navbar.scrolled .nav-inner {
  background: rgba(244, 228, 208, 0.12);
  backdrop-filter: blur(20px) saturate(120%);
  -webkit-backdrop-filter: blur(20px) saturate(120%);
  border-radius: var(--radius-md);
  border: 1px solid rgba(244, 228, 208, 0.15);
  padding: 10px 24px;
  margin: 0 auto;
  max-width: 1400px;
}

/* 首页导航始终毛玻璃 */
body.on-home .nav-inner,
body.on-tool .nav-inner {
  background: rgba(244, 228, 208, 0.1);
  backdrop-filter: blur(20px) saturate(120%);
  -webkit-backdrop-filter: blur(20px) saturate(120%);
  border-radius: var(--radius-md);
  border: 1px solid rgba(244, 228, 208, 0.12);
  padding: 10px 24px;
  margin: 0 auto;
  max-width: 1400px;
}

.nav-inner {
  max-width: none;
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: all 0.4s var(--ease);
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.nav-logo-text {
  font-weight: 700;
  font-size: 22px;
  letter-spacing: -0.01em;
  color: #f4e4d0;
}

.nav-links {
  display: flex;
  gap: 32px;
}

.nav-link {
  text-decoration: none;
  color: rgba(244, 228, 208, 0.6);
  font-size: 14px;
  font-weight: 400;
  padding: 4px 0;
  transition: all 0.3s var(--ease-soft);
  position: relative;
}

.nav-link:hover {
  color: #f4e4d0;
}

.nav-link.active {
  color: #f4e4d0;
}

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 0;
  right: 0;
  height: 1.5px;
  background: #f4e4d0;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.nav-toggle span {
  width: 22px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: all 0.3s var(--ease-soft);
}

/* ==================== Views & Routing ==================== */
.view {
  display: none;
  min-height: 100vh;
  position: relative;
  z-index: 1;
}

/* 首页不要 padding-top，hero 直接顶到浏览器顶部 */
#view-home {
  padding-top: 0;
}

/* 工具页保留 padding-top 给导航栏空间 */
.view-tool {
  padding-top: 80px;
}

.view.active {
  display: block;
}

/* ==================== Hero ==================== */
/* ==================== Hero - Full Screen Workstation ==================== */
.hero {
  position: relative;
  width: 100%;
  height: 100vh;
  min-height: 600px;
  overflow: hidden;
}

/* Workstation background - single layer for parallax */
.hero-scene {
  position: absolute;
  top: -3%;
  left: -3%;
  width: 106%;
  height: 106%;
  object-fit: cover;
  z-index: 0;
  will-change: transform;
}

/* Dynamic light overlay */
.hero-light {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: radial-gradient(circle 600px at 50% 50%, rgba(255,220,160,0.04), transparent 70%);
  will-change: background;
}

/* No separate mat layer - it's in the photo */
.hero-mat {
  display: none;
}

/* Text overlay - left area */
.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 42%;
  height: 100%;
  z-index: 5;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 100px 48px 80px 48px;
  background: linear-gradient(90deg, rgba(20,12,4,0.95) 0%, rgba(20,12,4,0.75) 50%, transparent 100%);
  pointer-events: none;
}

.hero-overlay-content {
  position: relative;
  z-index: 2;
  max-width: 520px;
  pointer-events: auto;
  will-change: transform, opacity;
}

.hero-tagline {
  font-size: 20px;
  color: rgba(244, 228, 208, 0.5);
  margin-bottom: 48px;
  font-weight: 400;
  line-height: 1.5;
}

.hero-brand {
  font-family: 'Inter', sans-serif;
  font-size: clamp(6rem, 14vw, 13rem);
  font-weight: 900;
  line-height: 0.8;
  letter-spacing: -0.06em;
  color: #f4e4d0;
  margin-bottom: 24px;
}

.hero-brand-sub {
  font-size: 18px;
  color: rgba(244, 228, 208, 0.3);
  letter-spacing: 0.35em;
  text-transform: uppercase;
  margin-bottom: 64px;
  font-weight: 600;
}

.hero-headline {
  font-size: clamp(2.2rem, 4.5vw, 3.5rem);
  font-weight: 700;
  color: #ffffff;
  line-height: 1.25;
  margin-bottom: 32px;
}

.hero-subtitle {
  font-size: 20px;
  color: rgba(255, 255, 255, 0.55);
  line-height: 1.75;
  margin-bottom: 64px;
  max-width: 480px;
  font-weight: 400;
}

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

.hero-studio {
  position: absolute;
  bottom: 48px;
  left: 48px;
  z-index: 3;
}

.hero-studio-title {
  font-size: 16px;
  font-weight: 600;
  color: rgba(244, 228, 208, 0.6);
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.hero-studio-slogan {
  font-size: 13px;
  color: rgba(244, 228, 208, 0.3);
  margin-top: 8px;
}

.hero-studio-line {
  width: 56px;
  height: 1.5px;
  background: rgba(244, 228, 208, 0.2);
  margin-top: 12px;
}

/* ==================== Workstation Objects ==================== */

/* Glass bowl with beads - center-right of mat */
.ws-bowl {
  position: absolute;
  top: 50%;
  left: 45%;
  transform: translate(-50%, -50%);
  width: 320px;
  height: 320px;
  border-radius: 50%;
  background:
    radial-gradient(ellipse at 35% 25%, rgba(255,220,180,0.15) 0%, rgba(180,130,70,0.08) 40%, transparent 70%),
    radial-gradient(ellipse at 60% 70%, rgba(120,80,40,0.12) 0%, transparent 50%);
  border: 2px solid rgba(200,160,100,0.15);
  box-shadow:
    inset 0 -30px 60px rgba(0,0,0,0.15),
    inset 0 10px 30px rgba(255,220,180,0.08),
    0 25px 50px rgba(0,0,0,0.35),
    0 5px 15px rgba(0,0,0,0.2);
  backdrop-filter: blur(2px);
}

.ws-bowl-inner {
  position: absolute;
  inset: 15px;
  border-radius: 50%;
  overflow: hidden;
  background: radial-gradient(ellipse at 40% 40%, rgba(255,200,150,0.06), transparent 60%);
}

/* Beads inside bowl - dense cluster using box-shadow technique */
.ws-beads {
  position: absolute;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: #e8a04c;
  box-shadow:
    -22px -18px 0 -1px #d4584a, -18px -5px 0 -1px #6b9a4a, -5px -22px 0 -1px #c4a672,
    12px -18px 0 -1px #e8c878, 22px -8px 0 -1px #8a6b4a, -12px -15px 0 -1px #d4a88c,
    -28px -2px 0 -1px #7a9a6a, -20px 8px 0 -1px #e8a04c, -8px -12px 0 -1px #d4584a,
    5px -10px 0 -1px #6b9a4a, 18px 5px 0 -1px #c4a672, -5px 5px 0 -1px #e8c878,
    8px -20px 0 -1px #4a7a8a, -15px 15px 0 -1px #8a6b4a, 0px 15px 0 -1px #d4a88c,
    15px 15px 0 -1px #7a9a6a, -25px 12px 0 -1px #e8a04c, 25px -2px 0 -1px #d4584a,
    10px 20px 0 -1px #6b9a4a, -18px 22px 0 -1px #c4a672, 0px 25px 0 -1px #e8c878,
    -30px 5px 0 -1px #8a6b4a, 28px 12px 0 -1px #d4a88c, -10px -25px 0 -1px #7a9a6a,
    20px -15px 0 -1px #e8a04c, -8px 8px 0 -1px #d4584a, 3px -5px 0 -1px #6b9a4a,
    -15px -8px 0 -1px #4a7a8a, 8px 8px 0 -1px #c4a672, -3px -15px 0 -1px #e8c878,
    15px -5px 0 -1px #8a6b4a, -20px -12px 0 -1px #d4a88c, 5px 12px 0 -1px #7a9a6a,
    -25px -10px 0 -1px #e8a04c, 25px 5px 0 -1px #d4584a, -5px -20px 0 -1px #6b9a4a,
    12px -8px 0 -1px #4a7a8a, -12px 5px 0 -1px #c4a672, 20px 15px 0 -1px #e8c878,
    -22px 18px 0 -1px #8a6b4a, 3px 20px 0 -1px #d4a88c, -15px -20px 0 -1px #7a9a6a,
    18px -12px 0 -1px #e8a04c, -28px -8px 0 -1px #d4584a, 10px 12px 0 -1px #6b9a4a,
    -3px 8px 0 -1px #4a7a8a, 15px 8px 0 -1px #c4a672, -18px 0px 0 -1px #e8c878,
    25px -10px 0 -1px #8a6b4a, -10px 18px 0 -1px #d4a88c, 0px -15px 0 -1px #7a9a6a,
    -25px 18px 0 -1px #e8a04c, 22px 18px 0 -1px #d4584a, -8px -8px 0 -1px #6b9a4a,
    5px 5px 0 -1px #c4a672, -20px -5px 0 -1px #e8c878, 12px 5px 0 -1px #8a6b4a,
    -15px 10px 0 -1px #d4a88c, 8px -15px 0 -1px #7a9a6a, -5px 18px 0 -1px #e8a04c,
    20px -5px 0 -1px #d4584a, -12px -18px 0 -1px #6b9a4a, 0px 8px 0 -1px #4a7a8a;
}

/* Paint palette - top center of mat */
.ws-palette {
  position: absolute;
  top: 8%;
  left: 50%;
  transform: translateX(-30%) rotate(-5deg);
  width: 200px;
  height: 68px;
  background: linear-gradient(135deg, rgba(255,253,248,0.12), rgba(255,253,248,0.06));
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 34px;
  display: flex;
  align-items: center;
  justify-content: space-around;
  padding: 0 18px;
  box-shadow: 0 6px 16px rgba(0,0,0,0.25);
}

.ws-pw {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  box-shadow:
    inset -3px -3px 8px rgba(0,0,0,0.3),
    inset 2px 2px 4px rgba(255,255,255,0.1),
    0 2px 4px rgba(0,0,0,0.15);
}

/* Bead artwork board - right side */
.ws-board {
  position: absolute;
  right: 6%;
  top: 52%;
  transform: translateY(-50%) rotate(3deg);
  width: 130px;
  background: rgba(255,253,248,0.08);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 6px;
  padding: 10px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

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

.ws-board-grid span {
  width: 100%;
  aspect-ratio: 1;
  border-radius: 50%;
  box-shadow: inset -1px -1px 3px rgba(0,0,0,0.25), 0 1px 2px rgba(0,0,0,0.1);
}

/* Tweezers - bottom right */
.ws-tweezers {
  position: absolute;
  bottom: 12%;
  right: 28%;
  width: 90px;
  height: 5px;
  background: linear-gradient(90deg, #1a1a1a 0%, #4a4a4a 30%, #3a3a3a 70%, #1a1a1a 100%);
  border-radius: 3px;
  transform: rotate(32deg);
  box-shadow: 0 3px 8px rgba(0,0,0,0.4);
}

.ws-tweezers::before {
  content: '';
  position: absolute;
  left: -2px;
  top: -1px;
  width: 8px;
  height: 7px;
  background: linear-gradient(135deg, #2a2a2a, #1a1a1a);
  border-radius: 2px 0 0 2px;
}

.ws-tweezers::after {
  content: '';
  position: absolute;
  right: -1px;
  top: -2px;
  width: 4px;
  height: 4px;
  background: #1a1a1a;
  border-radius: 50%;
}

/* Scattered beads */
.ws-scatter {
  position: absolute;
  border-radius: 50%;
  box-shadow: inset -2px -2px 4px rgba(0,0,0,0.25), 0 2px 4px rgba(0,0,0,0.15);
}

/* ==================== Features Section ==================== */
.features-section {
  padding: 80px 24px;
  max-width: 1200px;
  margin: 0 auto;
}

/* ==================== Buttons ==================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: var(--radius-md);
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: all 0.3s var(--ease-soft);
  font-family: inherit;
  white-space: nowrap;
}

.btn-primary {
  background: var(--accent-gradient);
  color: var(--text-on-accent);
  box-shadow: 0 4px 20px rgba(99, 102, 241, 0.35);
}

.btn-primary:hover {
  background: var(--accent-gradient-hover);
  box-shadow: 0 6px 28px rgba(99, 102, 241, 0.45);
  transform: translateY(-2px);
}

.btn-ghost {
  background: var(--glass-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--glass-border);
  color: var(--text-primary);
}

.btn-ghost:hover {
  background: var(--glass-bg-hover);
  transform: translateY(-2px);
}

.btn-hero-ghost {
  background: transparent;
  border: 1px solid rgba(244, 228, 208, 0.4);
  color: var(--cream);
}

.btn-hero-ghost:hover {
  background: rgba(244, 228, 208, 0.1);
  border-color: rgba(244, 228, 208, 0.6);
  transform: translateY(-2px);
}

.btn-full {
  width: 100%;
}

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none !important;
}

/* ==================== Sections ==================== */
.section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 80px 24px;
}

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

.section-tag {
  display: inline-block;
  padding: 4px 14px;
  background: rgba(74, 93, 58, 0.1);
  color: var(--accent-dark);
  font-size: 13px;
  font-weight: 600;
  border-radius: 100px;
  margin-bottom: 16px;
}

.section-title {
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}

.section-desc {
  font-size: 16px;
  color: var(--text-secondary);
  max-width: 560px;
  margin: 0 auto;
}

/* ==================== Feature Cards ==================== */

/* Icon animations */
.feature-icon .paint-dot {
  transform-origin: center;
  transition: transform 0.4s var(--ease);
}

.feature-card:hover .paint-dot.d1 { transform: scale(1.3); transition-delay: 0s; }
.feature-card:hover .paint-dot.d2 { transform: scale(1.3); transition-delay: 0.08s; }
.feature-card:hover .paint-dot.d3 { transform: scale(1.3); transition-delay: 0.04s; }
.feature-card:hover .paint-dot.d4 { transform: scale(1.3); transition-delay: 0.12s; }
.feature-card:hover .paint-dot.d5 { transform: scale(1.3); transition-delay: 0.16s; }

.feature-icon .bead-dot {
  transform-origin: center;
  transition: transform 0.3s var(--ease);
}

.feature-card:hover .bead-dot.b1 { transform: translateY(-3px); transition-delay: 0s; }
.feature-card:hover .bead-dot.b2 { transform: translateY(-3px); transition-delay: 0.06s; }
.feature-card:hover .bead-dot.b3 { transform: translateY(-3px); transition-delay: 0.03s; }
.feature-card:hover .bead-dot.b4 { transform: translateY(-3px); transition-delay: 0.09s; }
.feature-card:hover .bead-dot.b5 { transform: translateY(-3px); transition-delay: 0.12s; }
.feature-card:hover .bead-dot.b6 { transform: translateY(-3px); transition-delay: 0.07s; }
.feature-card:hover .bead-dot.b7 { transform: translateY(-3px); transition-delay: 0.15s; }
.feature-card:hover .bead-dot.b8 { transform: translateY(-3px); transition-delay: 0.1s; }
.feature-card:hover .bead-dot.b9 { transform: translateY(-3px); transition-delay: 0.05s; }

.feature-icon .icon-paint {
  transition: transform 0.5s var(--ease);
}
.feature-card:hover .icon-paint {
  transform: rotate(-8deg) scale(1.05);
}

.feature-icon .icon-bead {
  transition: transform 0.5s var(--ease);
}
.feature-card:hover .icon-bead {
  transform: scale(1.05);
}
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.feature-card {
  display: block;
  text-decoration: none;
  color: inherit;
  padding: 32px 28px;
  background: var(--glass-bg);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--glass-shadow);
  transition: all 0.4s var(--ease);
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--accent-gradient);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s var(--ease);
}

.feature-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--glass-shadow-hover);
  border-color: var(--border-medium);
}

.feature-card:hover::before {
  transform: scaleX(1);
}

.feature-icon {
  width: 56px; height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
  margin-bottom: 20px;
  transition: all 0.3s var(--ease-soft);
}

.feature-icon-1 {
  background: linear-gradient(135deg, #fef3c7, #fde68a);
  color: #92400e;
}
.feature-icon-2 {
  background: linear-gradient(135deg, #ddd6fe, #c4b5fd);
  color: #5b21b6;
}
.feature-icon-3 {
  background: linear-gradient(135deg, #e0e7ff, #c7d2fe);
  color: #3730a3;
}

.feature-card h3 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 8px;
}

.feature-card p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
}

.feature-arrow {
  display: inline-block;
  margin-top: 16px;
  font-size: 18px;
  color: var(--accent);
  transition: transform 0.3s var(--ease-soft);
}

.feature-card:hover .feature-arrow {
  transform: translateX(6px);
}

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

.step-card {
  padding: 32px 28px;
  background: var(--glass-bg);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--glass-shadow);
  transition: all 0.3s var(--ease-soft);
}

.step-card:hover {
  transform: translateY(-4px);
}

.step-number {
  font-size: 32px;
  font-weight: 800;
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 12px;
}

.step-card h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 8px;
}

.step-card p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
}

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

.audience-card {
  padding: 32px 28px;
  background: var(--glass-bg);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--glass-shadow);
  text-align: center;
  transition: all 0.3s var(--ease-soft);
}

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

.audience-emoji {
  font-size: 36px;
  margin-bottom: 16px;
}

.audience-card h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 8px;
}

.audience-card p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ==================== Philosophy ==================== */
.philosophy-section {
  padding: 40px 24px 80px;
}

.philosophy-card {
  max-width: 800px;
  margin: 0 auto;
  padding: 48px;
  background: var(--glass-bg);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-xl);
  box-shadow: var(--glass-shadow);
  text-align: center;
  position: relative;
}

.philosophy-text {
  font-size: clamp(1.3rem, 3vw, 1.8rem);
  font-weight: 600;
  line-height: 1.5;
  color: var(--text-primary);
}

.philosophy-text .highlight {
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 800;
}

/* ==================== Footer ==================== */
.footer {
  padding: 60px 24px 40px;
  border-top: 1px solid var(--border-light);
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
}

.footer-logo {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 8px;
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: inline-block;
}

.footer-desc {
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 20px;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 24px;
}

.footer-links a {
  text-decoration: none;
  color: var(--text-secondary);
  font-size: 14px;
  font-weight: 500;
  transition: color 0.3s var(--ease-soft);
}

.footer-links a:hover {
  color: var(--accent);
}

/* ==================== Tool Views ==================== */
.view-tool {
  padding: 100px 24px 80px;
  max-width: none;
  margin: 0;
}

.tool-header {
  margin-bottom: 40px;
}

.back-link {
  display: inline-block;
  text-decoration: none;
  color: var(--text-secondary);
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 16px;
  transition: color 0.3s var(--ease-soft);
}

.back-link:hover {
  color: var(--accent);
}

.tool-title {
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}

.tool-desc {
  font-size: 16px;
  color: var(--text-secondary);
}

.tool-layout {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 32px;
  align-items: start;
  max-width: 1400px;
  margin: 0 auto;
}

/* Upload Zone */
.tool-upload {
  position: sticky;
  top: 100px;
}

.upload-zone {
  border: 2px dashed var(--border-medium);
  border-radius: var(--radius-lg);
  padding: 48px 24px;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s var(--ease-soft);
  background: var(--glass-bg);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  color: var(--text-tertiary);
}

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

.upload-zone svg {
  margin-bottom: 16px;
}

.upload-text {
  font-size: 15px;
  color: var(--text-secondary);
  margin-bottom: 8px;
  line-height: 1.6;
}

.upload-link {
  color: var(--accent);
  font-weight: 600;
}

.upload-hint {
  font-size: 12px;
  color: var(--text-tertiary);
}

/* Controls Panel */
.tool-controls {
  background: var(--glass-bg);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  box-shadow: var(--glass-shadow);
  position: sticky;
  top: 100px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.control-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.control-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.control-value {
  font-size: 13px;
  font-weight: 700;
  color: var(--accent);
  background: rgba(99, 102, 241, 0.1);
  padding: 2px 10px;
  border-radius: 100px;
}

/* Sliders */
.slider {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 6px;
  border-radius: 3px;
  background: rgba(99, 102, 241, 0.15);
  outline: none;
  cursor: pointer;
}

.slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 2px 8px rgba(99, 102, 241, 0.4);
  cursor: pointer;
  transition: transform 0.2s var(--ease-soft);
}

.slider::-webkit-slider-thumb:hover {
  transform: scale(1.2);
}

.slider::-moz-range-thumb {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--accent);
  border: none;
  box-shadow: 0 2px 8px rgba(99, 102, 241, 0.4);
  cursor: pointer;
}

/* Segmented Control */
.segmented {
  display: flex;
  background: rgba(99, 102, 241, 0.08);
  border-radius: var(--radius-sm);
  padding: 3px;
  gap: 2px;
}

.seg-btn {
  flex: 1;
  padding: 8px 12px;
  border: none;
  background: none;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.2s var(--ease-soft);
  font-family: inherit;
}

.seg-btn.active {
  background: #fff;
  color: var(--accent);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
}

.seg-btn:hover:not(.active) {
  color: var(--text-primary);
}

/* Toggle */
.toggle {
  position: relative;
  display: inline-block;
  width: 44px;
  height: 24px;
  cursor: pointer;
}

.toggle input {
  opacity: 0;
  width: 0;
  height: 0;
}

.toggle-slider {
  position: absolute;
  inset: 0;
  background: rgba(99, 102, 241, 0.2);
  border-radius: 24px;
  transition: 0.3s var(--ease-soft);
}

.toggle-slider::before {
  content: '';
  position: absolute;
  height: 18px;
  width: 18px;
  left: 3px;
  bottom: 3px;
  background: white;
  border-radius: 50%;
  transition: 0.3s var(--ease-soft);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15);
}

.toggle input:checked + .toggle-slider {
  background: var(--accent);
}

.toggle input:checked + .toggle-slider::before {
  transform: translateX(20px);
}

/* Canvas Area */
.tool-canvas-area {
  background: var(--glass-bg);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--glass-shadow);
  padding: 24px;
  min-height: 500px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  position: relative;
}

.canvas-tabs {
  display: flex;
  gap: 4px;
  background: rgba(99, 102, 241, 0.06);
  padding: 3px;
  border-radius: var(--radius-sm);
  align-self: flex-start;
}

.canvas-tab {
  padding: 8px 20px;
  border: none;
  background: none;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.2s var(--ease-soft);
  font-family: inherit;
}

.canvas-tab.active {
  background: #fff;
  color: var(--accent);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
}

.canvas-stage {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  background: #f8f9fe;
  border-radius: var(--radius-md);
  padding: 20px;
  min-height: 400px;
  position: relative;
  overflow: auto;
}

.canvas-pane {
  display: none;
  max-width: 100%;
  max-height: 600px;
  border-radius: var(--radius-sm);
}

.canvas-pane.active {
  display: block;
}

canvas.canvas-pane {
  object-fit: contain;
}

.palette-pane {
  width: 100%;
  padding: 16px;
}

.palette-grid {
  display: flex;
  flex-direction: column;
  gap: 20px;
  max-width: 700px;
  margin: 0 auto;
}

/* 横排编号色块汇总 */
.palette-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 12px;
  background: #f8f9fe;
  border-radius: 10px;
  border: 1px solid rgba(0,0,0,0.05);
}
.palette-summary-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
}
.palette-summary-swatch {
  width: 40px;
  height: 40px;
  border-radius: 6px;
  border: 1px solid rgba(0,0,0,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  font-weight: 800;
}
.palette-summary-hex {
  font-size: 9px;
  color: #94a3b8;
  font-family: monospace;
}

/* 详细色卡网格 */
.palette-detail-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 12px;
}

.palette-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  background: white;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-light);
  box-shadow: 0 1px 4px rgba(0,0,0,0.05);
  transition: transform 0.2s var(--ease-soft);
}

.palette-item:hover {
  transform: translateY(-2px);
}

.palette-swatch {
  width: 40px; height: 40px;
  border-radius: 8px;
  border: 1px solid rgba(0,0,0,0.1);
  flex-shrink: 0;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.palette-swatch-num {
  font-size: 16px;
  font-weight: 800;
  color: white;
  text-shadow: 0 1px 3px rgba(0,0,0,0.5);
}

.palette-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.palette-num {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-primary);
}

.palette-hex {
  font-size: 11px;
  color: var(--text-tertiary);
  font-family: monospace;
  line-height: 1.4;
  word-break: break-all;
}

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

/* Processing Overlay */
.processing-overlay {
  position: absolute;
  inset: 0;
  background: rgba(248, 249, 254, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  border-radius: var(--radius-lg);
  z-index: 10;
}

.spinner {
  width: 40px; height: 40px;
  border: 3px solid rgba(99, 102, 241, 0.15);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

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

/* ==================== Toast ==================== */
.toast {
  position: fixed;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: var(--text-primary);
  color: white;
  padding: 12px 24px;
  border-radius: var(--radius-md);
  font-size: 14px;
  font-weight: 500;
  z-index: 200;
  opacity: 0;
  transition: all 0.4s var(--ease);
  pointer-events: none;
}

.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ==================== Animations ==================== */
.fade-up {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 1s cubic-bezier(0.22,1,0.36,1), transform 1s cubic-bezier(0.22,1,0.36,1);
}

.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

.delay-0 { transition-delay: 0s; }
.delay-1 { transition-delay: 0.2s; }
.delay-2 { transition-delay: 0.4s; }

/* ==================== Responsive ==================== */
@media (max-width: 900px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    flex-direction: column;
    padding: 12px;
    gap: 4px;
    margin-top: 8px;
  }

  .nav-links.open {
    display: flex;
  }

  .nav-toggle {
    display: flex;
  }

  .hero {
    height: auto;
    min-height: 100vh;
  }

  .ws-bowl, .ws-palette, .ws-board, .ws-tweezers, .ws-scatter {
    display: none;
  }

  .hero-overlay {
    width: 100%;
    padding: 100px 24px 40px;
    background: linear-gradient(180deg, rgba(35,22,12,0.95) 0%, rgba(35,22,12,0.85) 60%, rgba(35,22,12,0.7) 100%);
  }

  .hero-mat {
    width: 100%;
    top: 40%;
    height: 65%;
    transform: none;
  }

  .hero-studio {
    position: relative;
    bottom: auto;
    left: auto;
    margin-top: 40px;
  }

  .hero-overlay-content {
    max-width: none;
    margin: 0 auto;
  }

  .hero-actions {
    justify-content: flex-start;
  }

  .feature-grid,
  .steps-grid,
  .audience-grid {
    grid-template-columns: 1fr;
  }

  .tool-layout {
    grid-template-columns: 1fr;
  }

  .tool-upload,
  .tool-controls {
    position: static;
  }

  .philosophy-card {
    padding: 32px 24px;
  }
}

@media (max-width: 500px) {
  .hero-card-stack {
    width: 260px;
    height: 300px;
  }
  .hero-card {
    width: 180px;
    height: 230px;
  }
  .section {
    padding: 60px 16px;
  }
  .feature-card,
  .step-card,
  .audience-card {
    padding: 24px 20px;
  }
}

/* ==================== Format Toggle ==================== */
.format-toggle {
  display: inline-flex;
  background: rgba(99, 102, 241, 0.08);
  padding: 3px;
  border-radius: 8px;
  gap: 2px;
}
.format-btn {
  padding: 6px 14px;
  border: none;
  background: none;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.2s var(--ease-soft);
  font-family: inherit;
}
.format-btn.active {
  background: #fff;
  color: var(--accent);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
}
.format-btn:hover:not(.active) {
  color: var(--text-primary);
}

/* ==================== Comparison Slider ==================== */
.compare-stage {
  position: relative;
  overflow: hidden;
}
.compare-canvas {
  position: absolute;
  top: 0;
  left: 0;
  max-width: none;
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}
.compare-right {
  clip-path: inset(0 0 0 50%);
}
.compare-slider {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 2px;
  background: rgba(99, 102, 241, 0.5);
  cursor: ew-resize;
  z-index: 5;
  transform: translateX(-50%);
}
.compare-divider {
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg, var(--accent), var(--accent-light, #818cf8));
}
.compare-handle {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 36px;
  height: 36px;
  background: white;
  border: 2px solid var(--accent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  box-shadow: 0 2px 12px rgba(99, 102, 241, 0.3);
  cursor: ew-resize;
  user-select: none;
}
.compare-labels {
  position: absolute;
  top: 12px;
  left: 0;
  right: 0;
  display: flex;
  justify-content: space-between;
  pointer-events: none;
  z-index: 6;
}
.compare-label-left, .compare-label-right {
  padding: 4px 12px;
  border-radius: 100px;
  font-size: 12px;
  font-weight: 600;
  color: white;
}
.compare-label-left {
  background: rgba(30, 41, 59, 0.8);
  margin-left: 12px;
}
.compare-label-right {
  background: rgba(99, 102, 241, 0.8);
  margin-right: 12px;
}

/* ==================== Canvas Actions with Format Toggle Layout ==================== */
.canvas-actions {
  flex-wrap: wrap;
  align-items: center;
}

/* ==================== Bead Board Size Buttons with Descriptions ==================== */
.segmented .seg-btn {
  text-align: center;
  line-height: 1.3;
}
.segmented .seg-btn small {
  display: block;
  font-size: 10px;
  font-weight: 400;
  color: var(--text-tertiary);
  margin-top: 2px;
}

/* ==================== Usage Statistics ==================== */
.usage-stats {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 8px;
  max-width: 700px;
  margin: 0 auto;
}
.usage-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  background: white;
  border-radius: 6px;
  border: 1px solid rgba(0,0,0,0.06);
}
.usage-swatch {
  width: 24px;
  height: 24px;
  border-radius: 4px;
  border: 1px solid rgba(0,0,0,0.1);
  flex-shrink: 0;
}
.usage-code {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-primary);
  font-family: monospace;
}
.usage-count {
  font-size: 11px;
  color: var(--text-secondary);
}

/* ==================== Download Modal ==================== */
.download-modal {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: flex;
  align-items: center;
  justify-content: center;
}
.download-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(4px);
}
.download-modal-card {
  position: relative;
  background: white;
  border-radius: var(--radius-xl);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
  width: 420px;
  max-width: 90vw;
  overflow: hidden;
}
.download-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}
.download-modal-header h3 {
  font-size: 18px;
  font-weight: 700;
}
.download-modal-close {
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  color: var(--text-tertiary);
  line-height: 1;
  padding: 4px;
}
.download-modal-body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.download-modal-section {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.download-modal-label {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
}
.download-modal-hint {
  font-size: 12px;
  color: var(--text-tertiary);
}
.download-modal-tip {
  font-size: 12px;
  color: var(--text-secondary);
  background: rgba(99, 102, 241, 0.06);
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  line-height: 1.5;
}
.download-modal-footer {
  display: flex;
  gap: 12px;
  padding: 16px 24px;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
  justify-content: flex-end;
}

/* ==================== Lightbox 图片预览 ==================== */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 500;
  display: flex;
  align-items: center;
  justify-content: center;
}
.lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.88);
  cursor: pointer;
}
.lightbox-close {
  position: absolute;
  top: 16px; right: 20px;
  z-index: 10;
  background: rgba(255,255,255,0.1);
  border: none;
  color: white;
  font-size: 32px;
  cursor: pointer;
  width: 44px; height: 44px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.2s;
}
.lightbox-close:hover { background: rgba(255,255,255,0.25); }
.lightbox-stage {
  position: relative;
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}
.lightbox-loading {
  position: absolute;
  color: white;
  display: flex; flex-direction: column; align-items: center; gap: 12px;
  z-index: 5;
}
.lightbox-loading .spinner {
  width: 36px; height: 36px;
  border-width: 3px;
}
.lightbox-content {
  position: relative;
  z-index: 2;
  cursor: grab;
  transition: transform 0.1s ease-out;
}
.lightbox-content.dragging { cursor: grabbing; transition: none; }
.lightbox-content img,
.lightbox-content svg {
  display: block;
  max-width: 90vw;
  max-height: 90vh;
  object-fit: contain;
  pointer-events: none;
  user-select: none;
}
.lightbox-content svg {
  max-width: 90vw;
  max-height: 90vh;
}
.lightbox-controls {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(30,30,40,0.85);
  backdrop-filter: blur(10px);
  padding: 8px 16px;
  border-radius: 100px;
}
.lightbox-ctrl-btn {
  background: none;
  border: none;
  color: rgba(255,255,255,0.85);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  padding: 6px 12px;
  border-radius: 6px;
  transition: background 0.2s;
  font-family: inherit;
}
.lightbox-ctrl-btn:hover { background: rgba(255,255,255,0.15); }
.lb-zoom-val { color: rgba(255,255,255,0.7); font-size: 13px; min-width: 48px; text-align: center; }
.lb-sep { color: rgba(255,255,255,0.2); }

/* 可预览图片 hover 效果 */
.canvas-pane canvas[data-previewable] {
  cursor: zoom-in;
  transition: opacity 0.2s;
}
.canvas-pane canvas[data-previewable]:hover {
  opacity: 0.92;
}

/* ==================== Tool Page Backgrounds (Craft Workstation) ==================== */

/* Shared tool background layer */
.tool-bg {
  position: fixed;
  top: -3%;
  left: -3%;
  width: 106%;
  height: 106%;
  object-fit: cover;
  z-index: 0;
  will-change: transform;
  pointer-events: none;
}

/* Tool page overlay (dark + blur) */
#view-oil-painting,
#view-perler-bead {
  min-height: 100vh;
  position: relative;
}

#view-oil-painting::before,
#view-perler-bead::before {
  content: '';
  position: fixed;
  inset: 0;
  background: rgba(30, 18, 8, 0.5);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  pointer-events: none;
  z-index: 1;
}

#view-oil-painting::after,
#view-perler-bead::after {
  display: none;
}

/* Frosted glass UI for tool controls and canvas */
.tool-controls,
.tool-canvas-area {
  background: rgba(255, 253, 248, 0.82);
  backdrop-filter: blur(20px) saturate(150%);
  -webkit-backdrop-filter: blur(20px) saturate(150%);
  border: 1px solid rgba(255, 253, 248, 0.4);
  box-shadow: 0 8px 32px rgba(60, 40, 20, 0.15);
}

/* Tool header text on dark backgrounds */
.view-tool .tool-header {
  position: relative;
  z-index: 2;
}

.view-tool .tool-title {
  color: var(--cream);
}

.view-tool .tool-desc {
  color: rgba(244, 228, 208, 0.6);
}

.view-tool .back-link {
  color: rgba(244, 228, 208, 0.5);
}

.view-tool .back-link:hover {
  color: var(--cream);
}

/* Navbar on dark tool pages */
body.on-tool .nav-link {
  color: rgba(244, 228, 208, 0.7);
}
/* Navbar统一样式 - 所有页面透明深色背景 */
body.on-tool .nav-link,
body.on-home .nav-link {
  color: rgba(244, 228, 208, 0.65);
}
body.on-tool .nav-link.active,
body.on-home .nav-link.active {
  color: #f4e4d0;
}
body.on-tool .nav-link.active::after,
body.on-home .nav-link.active::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  right: 0;
  height: 1.5px;
  background: #f4e4d0;
}
body.on-tool .nav-link:hover,
body.on-home .nav-link:hover {
  color: #f4e4d0;
}
body.on-tool .navbar.scrolled .nav-inner,
body.on-home .navbar.scrolled .nav-inner {
  background: rgba(60, 40, 20, 0.6);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(244, 228, 208, 0.1);
}

/* Tool layout z-index */
.view-tool .tool-layout {
  position: relative;
  z-index: 2;
}

/* Segmented buttons warm tone */
.seg-btn {
  color: var(--text-secondary);
  background: rgba(139, 111, 71, 0.06);
  transition: all 0.25s var(--ease-soft);
}

.seg-btn.active {
  background: rgba(74, 93, 58, 0.1);
  color: var(--accent-dark);
  border: 1px solid rgba(74, 93, 58, 0.2);
}

/* Slider warm tone */
.slider::-webkit-slider-thumb {
  background: var(--accent);
}
.slider::-moz-range-thumb {
  background: var(--accent);
}

/* Toggle warm tone */
.toggle-slider {
  background: rgba(139, 111, 71, 0.2);
}
.toggle input:checked + .toggle-slider {
  background: var(--accent);
}

/* Control labels */
.control-label {
  color: var(--text-primary);
}

.control-value {
  background: rgba(74, 93, 58, 0.1);
  color: var(--accent-dark);
}

/* Canvas tabs */
.canvas-tab {
  color: var(--text-secondary);
}
.canvas-tab.active {
  color: var(--accent-dark);
  background: rgba(255, 253, 248, 0.6);
}

/* Processing overlay warm */
.processing-overlay {
  background: rgba(60, 40, 20, 0.4);
  backdrop-filter: blur(8px);
}
.processing-overlay .spinner {
  border-color: rgba(244, 228, 208, 0.2);
  border-top-color: var(--cream);
}
.processing-overlay p {
  color: var(--cream);
}

/* How it works section */
/* How it works - workstation background */
.how-section {
  position: relative;
  z-index: 1;
  overflow: hidden;
  padding: 100px 0;
  background: url('../assets/bg-howitworks.png') no-repeat center center;
  background-size: cover;
  background-attachment: fixed;
}

.how-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(30, 18, 8, 0.5);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 0;
}

.how-bg {
  display: none;
}

.how-content {
  position: relative;
  z-index: 2;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.how-content .section-title {
  color: #f4e4d0;
}

.how-content .section-tag {
  background: rgba(244, 228, 208, 0.12);
  color: rgba(244, 228, 208, 0.7);
}

.how-content .step-card {
  background: rgba(255, 253, 248, 0.82);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 253, 248, 0.3);
}

/* Audience section */
.audience-section {
  background: var(--bg-cream);
  padding: 120px 24px 140px;
}

.audience-inner {
  max-width: 1100px;
  margin: 0 auto;
}

.audience-inner .section-header {
  margin-bottom: 64px;
}

.audience-grid {
  margin-bottom: 80px;
}

/* Footer */
.footer {
  background: var(--wood-dark);
  position: relative;
  z-index: 1;
}

.footer-logo {
  color: var(--cream);
}

.footer-desc {
  color: rgba(244, 228, 208, 0.5);
}

.footer-links a {
  color: rgba(244, 228, 208, 0.6);
}

.footer-links a:hover {
  color: var(--cream);
}
