/* ============================================================
   Photosyncity · 光合城市 — Workflow Design 风格
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Noto+Sans+SC:wght@300;400;500;600;700&display=swap');

:root {
  --font-sans: 'Inter', system-ui, -apple-system, 'Noto Sans SC', sans-serif;

  /* Colors — Workflow inspired: teal/mint accent, neutral grays */
  --white: #FFFFFF;
  --bg: #FAFAFA;
  --bg-alt: #F5F5F7;
  --text: #1D1D1F;
  --text-secondary: #6E6E73;
  --text-tertiary: #86868B;
  --border: #E5E5EA;
  --accent: #1A8A7A;
  --accent-light: #E8F5F0;
  --accent-dark: #0D6B5E;
  --on-accent: #FFFFFF;

  /* Semantic mappings */
  --text-01: var(--white);
  --text-02: var(--text-secondary);
  --text-03: var(--text);
  --text-04: var(--accent);
  --text-05: var(--text-tertiary);
  --fill-01: var(--white);
  --fill-02: var(--bg-alt);
  --fill-03: var(--text);
  --fill-04: var(--accent);
  --stroke-01: var(--white);
  --stroke-02: var(--border);
  --stroke-03: var(--text);
  --stroke-05: var(--accent);
  --stroke-06: var(--text-tertiary);

  /* Spacing */
  --s1: 0.25rem;
  --s2: 0.5rem;
  --s3: 0.75rem;
  --s4: clamp(0.75rem, 0.38vw + 0.66rem, 1rem);
  --s5: clamp(1rem, 0.77vw + 0.81rem, 1.5rem);
  --s6: clamp(1.25rem, 1.15vw + 0.95rem, 2rem);
  --s7: clamp(1.75rem, 1.92vw + 1.22rem, 3rem);
  --s8: clamp(2.5rem, 2.69vw + 1.74rem, 4.25rem);

  /* Radii */
  --r1: 6px;
  --r2: 12px;
  --r3: 16px;
  --r-full: 9999px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }

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

/* Typography */
h1, h2, h3, h4 { font-weight: 600; letter-spacing: -.02em; }
h1 { font-size: clamp(2.25rem, 3.5vw + 0.5rem, 3.5rem); line-height: 1.1; margin-bottom: var(--s5); }
h2 { font-size: clamp(1.75rem, 2.5vw + 0.5rem, 2.5rem); line-height: 1.2; margin-bottom: var(--s4); }
h3 { font-size: clamp(1.125rem, 1.2vw + 0.5rem, 1.5rem); line-height: 1.3; margin-bottom: var(--s3); }
p { color: var(--text-secondary); line-height: 1.7; margin-bottom: var(--s4); }

/* Section label */
.section-label {
  display: inline-block; padding: 4px 12px;
  background: var(--accent-light); border-radius: var(--r-full);
  font-size: .75rem; font-weight: 600; color: var(--accent); letter-spacing: .04em;
  margin-bottom: var(--s4);
}

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: var(--s2);
  padding: 12px 28px; border-radius: var(--r1);
  font-size: .9375rem; font-weight: 500; cursor: pointer; border: none;
  font-family: var(--font-sans); transition: all .2s;
}
.btn-primary { background: var(--accent); color: var(--on-accent); }
.btn-primary:hover { background: var(--accent-dark); transform: translateY(-1px); }
.btn-outline {
  background: transparent; color: var(--text);
  border: 1px solid var(--border);
}
.btn-outline:hover { border-color: var(--accent); color: var(--accent); }

/* Topbar */
.topbar {
  position: fixed; top: 0; left: 0; right: 0;
  background: rgba(255,255,255,.85); backdrop-filter: blur(16px) saturate(1.5);
  border-bottom: 1px solid var(--border);
  z-index: 1000;
}
.topbar-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 56px; max-width: 1100px; margin: 0 auto; padding: 0 var(--s6);
}
.brand { font-weight: 600; font-size: 1rem; color: var(--text); display: flex; align-items: center; gap: 8px; }
.brand-mark { width: 24px; height: 24px; border-radius: 50%; background: var(--accent); display: flex; align-items: center; justify-content: center; color: var(--on-accent); font-size: 12px; }
.nav { display: flex; gap: var(--s6); align-items: center; }
.nav a { font-size: .875rem; font-weight: 500; color: var(--text-secondary); }
.nav a:hover, .nav a.active { color: var(--text); }
.lang-toggle {
  padding: 4px 12px; border: 1px solid var(--border); border-radius: var(--r1);
  font-size: .75rem; font-weight: 500; background: var(--white);
  cursor: pointer; color: var(--text); font-family: var(--font-sans);
}

/* Hero */
.hero {
  min-height: 85vh; display: flex; align-items: center;
  padding: 100px var(--s6) 60px; background: var(--white);
  border-bottom: 1px solid var(--border);
}
.hero-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s8); align-items: center; max-width: 1100px; margin: 0 auto; width: 100%; }
.hero-tag {
  display: inline-block; padding: 4px 12px; background: var(--accent-light);
  border-radius: var(--r-full); font-size: .75rem; font-weight: 600;
  color: var(--accent); letter-spacing: .04em; margin-bottom: var(--s5);
}
.hero h1 { margin-bottom: var(--s5); max-width: 600px; }
.hero h1 em { font-style: normal; color: var(--accent); }
.hero p { font-size: 1.0625rem; max-width: 480px; margin-bottom: var(--s6); }
.hero-actions { display: flex; gap: var(--s3); margin-top: var(--s4); flex-wrap: wrap; }
.hero-stats { display: flex; gap: var(--s7); margin-top: var(--s7); }
.hero-stat-num { font-size: 2rem; font-weight: 700; color: var(--accent); line-height: 1; }
.hero-stat-label { font-size: .8125rem; color: var(--text-secondary); margin-top: 4px; }
.hero-visual {
  width: 100%; aspect-ratio: 1; background: var(--bg-alt);
  border-radius: var(--r3); display: flex; align-items: center;
  justify-content: center; font-size: 64px; border: 1px solid var(--border);
  overflow: hidden;
}
.hero-visual img { width: 100%; height: 100%; object-fit: cover; }

/* Sections */
.section { padding: var(--s8) var(--s6); }
.section-alt { background: var(--white); }
.section-title { text-align: center; margin-bottom: var(--s7); max-width: 600px; margin-inline: auto; }
.section-title h2 { margin-bottom: var(--s3); }
.section-title p { color: var(--text-secondary); }

/* Cards */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: var(--s5); }
.card {
  background: var(--white); border-radius: var(--r2); padding: var(--s7) var(--s6);
  border: 1px solid var(--border); transition: all .2s;
}
.card:hover { border-color: var(--accent); box-shadow: 0 4px 20px rgba(0,0,0,.04); }
.card-icon { font-size: 24px; margin-bottom: var(--s4); }
.card h3 { margin-bottom: var(--s2); }
.card p { font-size: .875rem; color: var(--text-secondary); }

/* Product cards */
.product-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: var(--s5); }
.product-card { background: var(--white); border-radius: var(--r2); overflow: hidden; border: 1px solid var(--border); transition: all .2s; }
.product-card:hover { border-color: var(--accent); box-shadow: 0 4px 20px rgba(0,0,0,.04); }
.product-card-img { height: 180px; background: var(--accent-light); display: flex; align-items: center; justify-content: center; overflow: hidden; }
.product-card-img img { width: 100%; height: 100%; object-fit: cover; }
.product-card-body { padding: var(--s6); }
.product-card-body h3 { margin-bottom: var(--s2); }
.product-card-body p { font-size: .875rem; color: var(--text-secondary); }
.product-card-tag {
  display: inline-block; margin-top: var(--s3); padding: 4px 10px;
  background: var(--accent-light); border-radius: 4px;
  font-size: .75rem; font-weight: 600; color: var(--accent);
}

/* Stats */
.stats-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: var(--s5); }
.stat-card { text-align: center; padding: var(--s7) var(--s5); background: var(--white); border-radius: var(--r2); border: 1px solid var(--border); }
.stat-card h3 { font-size: 2rem; color: var(--accent); margin-bottom: var(--s1); }
.stat-card p { font-size: .8125rem; color: var(--text-secondary); }

/* Tags */
.tags { display: flex; flex-wrap: wrap; gap: var(--s2); }
.tag { padding: 6px 14px; background: var(--white); border: 1px solid var(--border); border-radius: var(--r-full); font-size: .8125rem; color: var(--text-secondary); }

/* Team */
.team-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: var(--s5); }
.team-card { text-align: center; padding: var(--s7) var(--s5); background: var(--white); border: 1px solid var(--border); border-radius: var(--r2); }
.team-avatar { width: 64px; height: 64px; border-radius: 50%; margin: 0 auto var(--s4); background: var(--accent-light); display: flex; align-items: center; justify-content: center; font-size: 1rem; color: var(--accent); font-weight: 600; }
.team-card h3 { font-size: .9375rem; }
.team-card .title { font-size: .8125rem; color: var(--accent); margin-top: 2px; }

/* Market grid */
.market-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: var(--s5); }
.market-card { padding: var(--s6); border-radius: var(--r2); text-align: center; background: var(--white); border: 1px solid var(--border); }
.market-card .emoji { font-size: 24px; margin-bottom: var(--s2); }
.market-card h4 { font-size: .9375rem; }

/* Page header */
.page-header { padding: 100px var(--s6) 60px; background: var(--white); border-bottom: 1px solid var(--border); text-align: center; }
.page-header h1 { margin-bottom: var(--s2); }
.page-header p { color: var(--text-secondary); max-width: 500px; margin: 0 auto; }

/* Content body */
.content-body { padding: var(--s8) var(--s6); }
.content-body .container { max-width: 800px; }
.content-body h2 { margin-top: var(--s7); }
.content-body p { font-size: .9375rem; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s7); }
.contact-info h3 { margin-bottom: var(--s5); }
.contact-item { display: flex; gap: var(--s4); margin-bottom: var(--s5); }
.contact-item-icon { width: 40px; height: 40px; background: var(--accent-light); border-radius: var(--r1); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.contact-item h4 { font-size: .875rem; }
.contact-item p { font-size: .875rem; }
.form-group { margin-bottom: var(--s5); }
.form-group label { display: block; font-size: .8125rem; font-weight: 500; margin-bottom: var(--s1); }
.form-group input, .form-group textarea { width: 100%; padding: 12px 14px; border: 1px solid var(--border); border-radius: var(--r1); font-size: .875rem; font-family: var(--font-sans); transition: border-color .2s; background: var(--white); }
.form-group input:focus, .form-group textarea:focus { outline: none; border-color: var(--accent); }
.form-group textarea { height: 120px; resize: vertical; }

/* Footer */
.footer { background: var(--text); color: var(--text-tertiary); padding: var(--s8) var(--s6) var(--s6); font-size: .8125rem; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: var(--s7); max-width: 1100px; margin: 0 auto; }
.footer h4 { color: var(--text-01); margin-bottom: var(--s4); font-size: .75rem; font-weight: 600; letter-spacing: .04em; }
.footer a { display: block; color: var(--text-tertiary); margin-bottom: var(--s2); }
.footer a:hover { color: var(--accent); }
.footer-bottom { text-align: center; padding-top: var(--s6); margin-top: var(--s6); border-top: 1px solid rgba(255,255,255,.08); max-width: 1100px; margin-inline: auto; }

/* Comparison table */
.comp-table { width: 100%; border-collapse: collapse; margin: var(--s6) 0; }
.comp-table th { padding: 12px 16px; text-align: left; font-size: .8125rem; font-weight: 600; color: var(--text-secondary); border-bottom: 1px solid var(--border); }
.comp-table td { padding: 12px 16px; font-size: .875rem; border-bottom: 1px solid var(--border); }
.comp-table .check { color: var(--accent); font-weight: 600; }

/* Responsive */
@media (max-width: 768px) {
  .hero-grid { grid-template-columns: 1fr; gap: var(--s6); }
  .hero { padding: 80px var(--s5) 40px; }
  .hero-stats { gap: var(--s5); flex-wrap: wrap; }
  .nav { display: none; }
  .contact-grid, .market-grid, .stats-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
