/* ============================================
   Hsiau Studio — Global Styles
   色彩体系：深色底 + 蓝紫科技光效（轻度克制）
   ============================================ */

:root {
  /* 工作室主色 — 深色科技底 */
  --bg-deep: #0d0f14;
  --bg-surface: #12151c;
  --bg-card: #181c26;
  --bg-elevated: #1e2330;
  --accent-primary: #5b8af5;
  --accent-purple: #8b6cf5;
  --accent-cyan: #4dc9f6;
  --accent-warm: #6fa3f7;
  --accent-light: #a8c4fa;
  --text-primary: #e8ecf4;
  --text-secondary: #9aa3b8;
  --text-muted: #5e6a80;
  --border-subtle: rgba(91, 138, 245, 0.08);
  --border-default: rgba(91, 138, 245, 0.15);

  /* 栖途产品色（仅用于产品卡片点缀） */
  --qitu-accent: #c17f34;
  --qitu-warm: #d4a25a;

  /* 布局 */
  --max-width: 1100px;
  --nav-height: 64px;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;

  /* 字体 */
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-serif: 'Noto Serif SC', Georgia, 'Times New Roman', serif;
  --font-display: 'Inter', sans-serif;

  /* 动画 */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --duration: 0.3s;
}

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

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

body {
  font-family: var(--font-sans);
  background-color: var(--bg-deep);
  color: var(--text-primary);
  line-height: 1.7;
  overflow-x: hidden;
}

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

a:hover {
  color: var(--accent-warm);
}

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


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

/* ============================================
   Navigation
   ============================================ */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-height);
  z-index: 1000;
  background: rgba(13, 15, 20, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-subtle);
  transition: background var(--duration) var(--ease-out);
}

.nav-container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text-primary) !important;
  font-weight: 500;
  font-size: 15px;
  letter-spacing: -0.01em;
}

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

.nav-link {
  color: var(--text-secondary) !important;
  font-size: 14px;
  font-weight: 400;
  transition: color var(--duration) var(--ease-out);
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--accent-primary);
  transition: width var(--duration) var(--ease-out);
}

.nav-link:hover {
  color: var(--text-primary) !important;
}

.nav-link:hover::after {
  width: 100%;
}

/* Mobile Nav */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav-toggle span {
  width: 20px;
  height: 1.5px;
  background: var(--text-secondary);
  border-radius: 1px;
  transition: all var(--duration) var(--ease-out);
}

.nav-toggle.active span:nth-child(1) {
  transform: translateY(6.5px) rotate(45deg);
}

.nav-toggle.active span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
  transform: translateY(-6.5px) rotate(-45deg);
}

@media (max-width: 768px) {
  .nav-toggle {
    display: flex;
  }

  .nav-links {
    position: fixed;
    top: var(--nav-height);
    left: 0;
    right: 0;
    background: rgba(13, 15, 20, 0.98);
    backdrop-filter: blur(20px);
    flex-direction: column;
    align-items: center;
    padding: 24px 0;
    gap: 20px;
    border-bottom: 1px solid var(--border-subtle);
    transform: translateY(-100%);
    opacity: 0;
    pointer-events: none;
    transition: all var(--duration) var(--ease-out);
  }

  .nav-links.active {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }
}

/* ============================================
   Hero
   ============================================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: calc(var(--nav-height) + 60px) 0 80px;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.hero-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
}

.hero-glow-1 {
  width: 500px;
  height: 500px;
  top: -10%;
  right: -5%;
  background: radial-gradient(circle, rgba(91, 138, 245, 0.07), transparent 70%);
}

.hero-glow-2 {
  width: 400px;
  height: 400px;
  bottom: 10%;
  left: -5%;
  background: radial-gradient(circle, rgba(139, 108, 245, 0.05), transparent 70%);
}

.hero-content {
  position: relative;
  max-width: 640px;
}

.hero-tag {
  font-size: 13px;
  color: var(--accent-primary);
  font-weight: 500;
  letter-spacing: 0.08em;
  margin-bottom: 20px;
  text-transform: uppercase;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(32px, 5vw, 48px);
  font-weight: 500;
  line-height: 1.35;
  letter-spacing: -0.03em;
  margin-bottom: 24px;
}

.hero-highlight {
  background: linear-gradient(135deg, var(--accent-primary), var(--accent-purple));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-desc {
  font-size: 16px;
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 36px;
}

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

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 28px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 500;
  font-family: var(--font-sans);
  cursor: pointer;
  transition: all var(--duration) var(--ease-out);
  border: none;
  text-decoration: none !important;
}

.btn-primary {
  background: var(--accent-primary);
  color: #0d0f14 !important;
}

.btn-primary:hover {
  background: var(--accent-warm);
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(91, 138, 245, 0.25);
}

.btn-ghost {
  background: transparent;
  color: var(--text-secondary) !important;
  border: 1px solid var(--border-default);
}

.btn-ghost:hover {
  border-color: var(--accent-primary);
  color: var(--accent-primary) !important;
}

/* ============================================
   Sections
   ============================================ */
.section {
  padding: 100px 0;
}

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

.section-tag {
  display: inline-block;
  font-size: 12px;
  color: var(--accent-primary);
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 12px;
  padding: 4px 12px;
  background: rgba(91, 138, 245, 0.08);
  border-radius: 20px;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(24px, 3.5vw, 32px);
  font-weight: 500;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}

.section-desc {
  font-size: 15px;
  color: var(--text-muted);
  max-width: 500px;
  margin: 0 auto;
}

/* ============================================
   Products
   ============================================ */
.products {
  background: var(--bg-surface);
}

.product-grid {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.product-card {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 32px;
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-subtle);
  transition: all var(--duration) var(--ease-out);
  position: relative;
  overflow: hidden;
}

.product-card:hover {
  border-color: var(--border-default);
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.product-featured {
  background: linear-gradient(135deg, var(--bg-card), rgba(91, 138, 245, 0.04));
  border-color: rgba(91, 138, 245, 0.12);
}

.product-featured:hover {
  border-color: rgba(91, 138, 245, 0.25);
  box-shadow: 0 8px 32px rgba(91, 138, 245, 0.06);
}

.product-coming {
  opacity: 0.7;
  cursor: default;
}

.product-coming:hover {
  transform: none;
  box-shadow: none;
}

.product-icon-wrap {
  flex-shrink: 0;
  width: 80px;
  height: 80px;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: transparent;
}

.logo-img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: var(--radius-md);
  background: transparent;
}

.logo-img-product {
  width: 80px;
  height: 80px;
}

.product-info {
  flex: 1;
  min-width: 0;
}

.product-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 500;
  padding: 2px 10px;
  border-radius: 20px;
  background: rgba(91, 138, 245, 0.12);
  color: var(--accent-primary);
  margin-bottom: 8px;
}

.badge-coming {
  background: rgba(94, 106, 128, 0.1);
  color: var(--text-muted);
}

.product-name {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 500;
  margin-bottom: 4px;
  letter-spacing: -0.02em;
}

.product-tagline {
  font-size: 13px;
  color: var(--accent-warm);
  margin-bottom: 10px;
}

.product-desc {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 14px;
}

.product-features {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.feature-tag {
  font-size: 12px;
  color: var(--text-muted);
  padding: 3px 10px;
  border-radius: 20px;
  background: rgba(94, 106, 128, 0.06);
  border: 1px solid rgba(94, 106, 128, 0.1);
}

.product-arrow {
  flex-shrink: 0;
  color: var(--text-muted);
  transition: all var(--duration) var(--ease-out);
}

.product-featured:hover .product-arrow {
  color: var(--accent-primary);
  transform: translateX(4px);
}

@media (max-width: 768px) {
  .product-card {
    flex-direction: column;
    text-align: center;
    padding: 24px;
  }

  .product-features {
    justify-content: center;
  }

  .product-arrow {
    display: none;
  }
}

/* ============================================
   About
   ============================================ */
.about-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}

.about-lead {
  font-family: var(--font-display);
  font-size: 20px;
  color: var(--text-primary);
  line-height: 1.8;
  margin-bottom: 20px;
}

.about-lead strong {
  color: var(--accent-primary);
  font-weight: 500;
}

.about-text p {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 16px;
}

.about-values {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.value-card {
  padding: 24px;
  background: var(--bg-surface);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
  transition: border-color var(--duration) var(--ease-out);
}

.value-card:hover {
  border-color: var(--border-default);
}

.value-icon {
  margin-bottom: 14px;
  color: var(--accent-primary);
}

.value-card h4 {
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 8px;
  letter-spacing: -0.01em;
}

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

@media (max-width: 768px) {
  .about-content {
    grid-template-columns: 1fr;
    gap: 40px;
  }

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

/* ============================================
   Contact
   ============================================ */
.contact {
  background: var(--bg-surface);
}

.contact-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  max-width: 600px;
  margin: 0 auto;
}

.contact-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 24px;
  background: var(--bg-card);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
  transition: all var(--duration) var(--ease-out);
  color: var(--text-primary) !important;
}

.contact-card:hover {
  border-color: var(--border-default);
  transform: translateY(-2px);
}

.contact-icon {
  flex-shrink: 0;
  color: var(--accent-primary);
}

.contact-card h4 {
  font-size: 13px;
  font-weight: 500;
  margin-bottom: 4px;
  color: var(--text-secondary);
}

.contact-card p {
  font-size: 14px;
  color: var(--text-primary);
}

@media (max-width: 768px) {
  .contact-cards {
    grid-template-columns: 1fr;
  }
}

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

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
}

.footer-logo {
  font-family: var(--font-display);
  font-size: 16px;
  color: var(--text-primary);
  font-weight: 500;
}

.footer-brand p {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 4px;
}

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

.footer-links a {
  font-size: 13px;
  color: var(--text-muted) !important;
  transition: color var(--duration) var(--ease-out);
}

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

.footer-bottom p {
  font-size: 12px;
  color: var(--text-muted);
  text-align: center;
}

@media (max-width: 768px) {
  .footer-content {
    flex-direction: column;
    gap: 20px;
    text-align: center;
  }
}

/* ============================================
   Scroll Animations
   ============================================ */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s var(--ease-out), transform 0.6s var(--ease-out);
}

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