/* hhq-studio/styles.css — 完整样式 */
:root {
  --bg: #0a0a0b;
  --fg: #fafafa;
  --muted: #71717a;
  --accent: #eab308;
  --accent-hover: #facc15;
  --card: #18181b;
  --border: #27272a;
  --radius: 12px;
  --max-w: 1100px;
  --font: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--fg);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
ul { list-style: none; }
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 24px; }
.text-center { text-align: center; }

/* Header */
.header { position: sticky; top: 0; z-index: 100; background: rgba(10,10,11,0.9); backdrop-filter: blur(8px); border-bottom: 1px solid var(--border); }
.nav { display: flex; justify-content: space-between; align-items: center; height: 64px; }
.logo { font-weight: 700; font-size: 1.25rem; letter-spacing: -0.02em; }
.nav-links { display: flex; gap: 8px; }
.nav-links a { 
  display: block; padding: 8px 16px; border-radius: 8px; 
  color: var(--muted); font-size: 0.9rem; font-weight: 500;
  transition: all 0.2s; 
}
.nav-links a:hover, .nav-links a.active { color: var(--fg); background: var(--card); }

/* Hero */
.hero { padding: 100px 0; text-align: center; }
.hero-title { font-size: clamp(2.5rem, 6vw, 4rem); font-weight: 800; line-height: 1.1; margin-bottom: 16px; letter-spacing: -0.03em; }
.hero-subtitle { font-size: 1.25rem; color: var(--muted); max-width: 600px; margin: 0 auto 32px; }
.hero-stats { display: flex; justify-content: center; gap: 40px; margin: 40px 0; flex-wrap: wrap; }
.stat { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.stat-num { font-size: 2rem; font-weight: 700; color: var(--accent); line-height: 1; }
.stat-label { font-size: 0.85rem; color: var(--muted); }
.hero-cta { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 14px 32px; border-radius: 8px; font-weight: 600; transition: all 0.2s; border: none; cursor: pointer; font-size: 1rem; }
.btn-primary { background: var(--accent); color: var(--bg); }
.btn-primary:hover { background: var(--accent-hover); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(234,179,8,0.3); }
.btn-outline { background: transparent; color: var(--fg); border: 1px solid var(--border); }
.btn-outline:hover { border-color: var(--accent); color: var(--accent); }

/* Sections */
section { padding: 80px 0; }
.section-title { font-size: 1.75rem; font-weight: 700; margin-bottom: 40px; text-align: center; }

/* Works Grid */
.works-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 24px; }
.work-card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s; }
.work-card:hover { transform: translateY(-4px); border-color: var(--accent); box-shadow: 0 12px 32px rgba(0,0,0,0.3); }
.work-link { display: block; }
.work-cover { position: relative; aspect-ratio: 16/9; overflow: hidden; }
.work-cover img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s; }
.work-card:hover .work-cover img { transform: scale(1.05); }
.work-duration { position: absolute; bottom: 8px; right: 8px; background: rgba(0,0,0,0.85); color: var(--fg); padding: 2px 8px; border-radius: 4px; font-size: 0.75rem; font-variant-numeric: tabular-nums; font-family: monospace; }
.work-info { padding: 16px; }
.work-title { font-size: 1rem; font-weight: 600; margin-bottom: 10px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.work-meta { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.tag { background: var(--border); color: var(--muted); padding: 2px 8px; border-radius: 100px; font-size: 0.7rem; white-space: nowrap; }
.tag-industry { background: rgba(234,179,8,0.15); color: var(--accent); }
.tag-tech { background: rgba(99,102,241,0.15); color: #818cf8; }
.work-stats { display: flex; gap: 16px; font-size: 0.8rem; color: var(--muted); }
.empty { grid-column: 1/-1; text-align: center; color: var(--muted); padding: 60px 0; }
.works-count { text-align: center; color: var(--muted); margin-top: 16px; font-size: 0.9rem; }

/* Works List Page */
.works-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 32px; flex-wrap: wrap; gap: 16px; }
.filters { display: flex; gap: 12px; }
.filter-select { background: var(--card); border: 1px solid var(--border); color: var(--fg); padding: 8px 16px; border-radius: 8px; font-size: 0.9rem; min-width: 160px; }

/* Work Detail */
.work-detail-header { padding: 60px 0 40px; border-bottom: 1px solid var(--border); }
.breadcrumb { font-size: 0.85rem; color: var(--muted); margin-bottom: 16px; }
.breadcrumb a:hover { color: var(--accent); }
.work-detail-title { font-size: clamp(1.75rem, 4vw, 2.5rem); font-weight: 700; line-height: 1.2; margin-bottom: 16px; }
.work-detail-meta { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; }
.work-detail-stats { display: flex; flex-wrap: wrap; gap: 24px; font-size: 0.9rem; color: var(--muted); }
.work-detail-stats strong { color: var(--fg); }
.work-detail-cover { margin: 40px -24px 0; max-width: calc(100% + 48px); }
.work-detail-cover img { width: 100%; height: auto; }
.work-cover.is-fallback, .work-detail-cover.is-fallback {
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, #141416 0%, #1e1e22 100%); min-height: 120px;
}
.work-detail-cover.is-fallback { min-height: 320px; }
.cover-ph {
  font-size: 0.82rem; letter-spacing: 0.16em; color: var(--muted);
  border: 1px dashed var(--border); border-radius: 999px; padding: 7px 16px;
}
.work-detail-body { padding-top: 40px; }
.detail-section { margin-bottom: 48px; }
.detail-section h2 { font-size: 1.25rem; font-weight: 600; margin-bottom: 16px; padding-bottom: 8px; border-bottom: 1px solid var(--border); display: flex; align-items: center; justify-content: space-between; }
.detail-section p { color: var(--muted); white-space: pre-wrap; line-height: 1.8; }
.role-block { background: var(--card); border: 1px solid var(--border); border-radius: 8px; padding: 16px; font-family: 'Menlo', 'Monaco', monospace; font-size: 0.85rem; line-height: 1.8; color: var(--muted); white-space: pre-wrap; overflow-x: auto; }
.tech-list { list-style: disc; padding-left: 24px; color: var(--muted); }
.tech-list li { margin-bottom: 8px; }
.btn-toggle { background: none; border: none; color: var(--accent); font-size: 0.85rem; cursor: pointer; padding: 0; }
.full-desc { background: var(--card); border: 1px solid var(--border); border-radius: 8px; padding: 16px; font-family: 'Menlo', 'Monaco', monospace; font-size: 0.8rem; line-height: 1.8; color: var(--muted); white-space: pre-wrap; overflow-x: auto; max-height: 400px; overflow-y: auto; transition: max-height 0.3s; }
.full-desc.collapsed { max-height: 0; padding: 0 16px; overflow: hidden; border-color: transparent; background: transparent; }
.work-detail-actions { display: flex; gap: 16px; margin-top: 48px; padding-top: 32px; border-top: 1px solid var(--border); flex-wrap: wrap; }

/* Capability */
.capability-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 32px; margin-bottom: 60px; }
.capability-col h3 { font-size: 1.1rem; font-weight: 600; margin-bottom: 16px; color: var(--muted); }
.capability-tags { display: flex; flex-wrap: wrap; gap: 10px; }
.capability-tag { display: flex; align-items: center; gap: 8px; background: var(--card); border: 1px solid var(--border); border-radius: 100px; padding: 8px 16px; font-size: 0.85rem; transition: border-color 0.2s; }
.capability-tag:hover { border-color: var(--accent); }
.capability-tag .count { background: var(--accent); color: var(--bg); font-size: 0.7rem; padding: 1px 8px; border-radius: 100px; }
.capability-tag.tech { background: rgba(99,102,241,0.1); border-color: rgba(99,102,241,0.3); }
.capability-tag.tech .count { background: #6366f1; }
.capability-details h3 { font-size: 1.1rem; font-weight: 600; margin: 32px 0 16px; color: var(--muted); }
.deliver-list { list-style: none; }
.deliver-list li { background: var(--card); border: 1px solid var(--border); border-radius: 8px; padding: 16px; margin-bottom: 12px; color: var(--muted); }
.deliver-list strong { color: var(--fg); }

/* Process */
.process-steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; margin-bottom: 60px; }
.step { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; position: relative; }
.step-num { font-size: 3rem; font-weight: 800; color: var(--accent); opacity: 0.15; line-height: 1; margin-bottom: 16px; }
.step-content h3 { font-size: 1.1rem; font-weight: 600; margin-bottom: 8px; }
.step-content p { color: var(--muted); font-size: 0.9rem; }
.process-notes h3 { font-size: 1.1rem; font-weight: 600; margin-bottom: 16px; color: var(--muted); }
.process-notes ul { list-style: disc; padding-left: 24px; color: var(--muted); }
.process-notes li { margin-bottom: 10px; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; margin-bottom: 60px; }
.contact-item { display: flex; gap: 12px; padding: 20px; background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); transition: border-color 0.2s; }
.contact-item:hover { border-color: var(--accent); }
.contact-icon { font-size: 1.5rem; }
.contact-item div { line-height: 1.6; }
.contact-item strong { display: block; margin-bottom: 4px; color: var(--fg); }
.pricing-section { margin-bottom: 60px; }
.pricing-section h3 { font-size: 1.1rem; font-weight: 600; margin-bottom: 16px; color: var(--muted); }
.pricing-table { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
.pricing-table th, .pricing-table td { padding: 12px 16px; text-align: left; border-bottom: 1px solid var(--border); }
.pricing-table th { color: var(--muted); font-weight: 600; background: var(--card); }
.pricing-table td { color: var(--fg); }
.pricing-table td:last-child { color: var(--muted); }
.pricing-table tr:hover td { background: var(--card); }
.pricing-table td:nth-child(3) { color: var(--accent); font-weight: 600; }
.pricing-note { margin-top: 14px; font-size: 0.82rem; color: var(--muted); line-height: 1.7; }
.faq-section h3 { font-size: 1.1rem; font-weight: 600; margin-bottom: 16px; color: var(--muted); }
.faq-list { display: grid; gap: 16px; }
.faq-list dt { font-weight: 600; color: var(--fg); }
.faq-list dd { color: var(--muted); margin-left: 0; padding-left: 16px; border-left: 2px solid var(--border); }

/* Footer */
.footer { padding: 40px 0; border-top: 1px solid var(--border); text-align: center; color: var(--muted); font-size: 0.85rem; }

/* Platform tags / badges */
.tag-platform { background: rgba(34,197,94,0.15); color: #4ade80; }
.work-platform { position: absolute; bottom: 8px; right: 8px; background: rgba(0,0,0,0.85); color: var(--fg); padding: 2px 8px; border-radius: 4px; font-size: 0.7rem; }

/* About page */
.about { padding: 80px 0; }
.about-intro p { color: var(--muted); margin-bottom: 16px; font-size: 1.05rem; line-height: 1.9; }
.about-intro strong { color: var(--fg); }
.about-path, .about-skills, .about-brands, .about-stats { margin-top: 48px; }
.about-path h3, .about-skills h3, .about-brands h3, .about-stats h3 {
  font-size: 1.1rem; font-weight: 600; margin-bottom: 20px; color: var(--muted);
}
.path-list { list-style: none; }
.path-list li { display: flex; align-items: baseline; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--border); color: var(--muted); }
.path-year { font-weight: 700; color: var(--accent); font-size: 1.1rem; min-width: 48px; font-variant-numeric: tabular-nums; }
.brand-wall { display: flex; flex-wrap: wrap; gap: 12px; }
.brand-chip { background: var(--card); border: 1px solid var(--border); border-radius: 100px; padding: 10px 20px; font-size: 0.95rem; transition: border-color 0.2s, color 0.2s; }
.brand-chip:hover { border-color: var(--accent); color: var(--accent); }

/* Featured section */
.featured { padding-bottom: 40px; }

/* ===== 首页精选案例 ===== */
.featured-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 24px; flex-wrap: wrap; gap: 12px; }
.featured-head .section-title { margin-bottom: 0; }
.featured-more { color: var(--accent); font-size: 0.95rem; font-weight: 500; transition: color 0.2s; }
.featured-more:hover { color: var(--accent-hover); }
.case-role { margin-top: 10px; font-size: 0.82rem; color: var(--muted); line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* ===== 品牌条（首页） ===== */
.brandstrip { padding: 40px 0 20px; }
.brandstrip-cap { text-align: center; color: var(--muted); font-size: 0.85rem; margin-bottom: 16px; letter-spacing: 0.05em; }
.brand-chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.brand-chips .brand-chip { padding: 8px 16px; font-size: 0.9rem; }

/* ===== 案例页 ===== */
.cases-page { padding: 72px 0; }
.cases-lead { color: var(--muted); margin: 0 0 40px; max-width: 640px; }
.cases-group { margin-bottom: 56px; }
.cases-group-title { font-size: 1.4rem; font-weight: 700; margin-bottom: 24px; padding-left: 14px; border-left: 3px solid var(--accent); }
.cases-grid { display: grid; grid-template-columns: 1fr; gap: 20px; }
.case-detail { display: grid; grid-template-columns: 280px 1fr; gap: 20px; background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; transition: border-color 0.2s, box-shadow 0.2s; }
.case-detail:hover { border-color: var(--accent); box-shadow: 0 8px 24px rgba(0,0,0,0.25); }
.case-cover { position: relative; display: block; aspect-ratio: 16/10; overflow: hidden; }
.case-cover img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s; }
.case-detail:hover .case-cover img { transform: scale(1.04); }
.case-body { padding: 20px 22px 20px 0; display: flex; flex-direction: column; }
.case-title { font-size: 1.15rem; font-weight: 700; margin-bottom: 12px; }
.case-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; }
.case-blurb { color: var(--muted); font-size: 0.92rem; line-height: 1.7; margin-bottom: 12px; }
.case-body .case-role { margin: 0 0 12px; -webkit-line-clamp: 3; }
.case-link { margin-top: auto; color: var(--accent); font-size: 0.88rem; font-weight: 500; }
.case-link:hover { color: var(--accent-hover); }

/* ===== 关于页 · 为什么找我 ===== */
.about-why { margin-top: 48px; }
.about-why h3, .about-brands h3, .about-stats h3 {
  font-size: 1.25rem; font-weight: 700; margin-bottom: 20px;
}
.why-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 16px; }
.why-item { display: flex; gap: 14px; padding: 20px; background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); transition: border-color 0.2s; }
.why-item:hover { border-color: var(--accent); }
.why-idx { font-size: 1.3rem; font-weight: 800; color: var(--accent); font-variant-numeric: tabular-nums; line-height: 1.2; }
.why-body h4 { font-size: 1rem; font-weight: 700; margin-bottom: 6px; }
.why-body p { color: var(--muted); font-size: 0.9rem; line-height: 1.6; }
.about-intro p:first-child { color: var(--fg); font-size: 1.15rem; font-weight: 600; }
.contact-lead { color: var(--muted); margin: 0 0 28px; }

/* Responsive */
@media (max-width: 640px) {
  .nav-links { gap: 4px; }
  .nav-links a { padding: 6px 12px; font-size: 0.8rem; }
  .hero { padding: 60px 0; }
  .hero-stats { gap: 24px; }
  .stat-num { font-size: 1.5rem; }
  section { padding: 60px 0; }
  .works-grid { grid-template-columns: 1fr; }
  .work-detail-cover { margin: 24px -16px 0; max-width: calc(100% + 32px); }
  .process-steps { grid-template-columns: 1fr; }
  .pricing-table { font-size: 0.8rem; }
  .pricing-table th, .pricing-table td { padding: 8px 10px; }
  .case-detail { grid-template-columns: 1fr; }
  .case-cover { aspect-ratio: 16/9; }
  .case-body { padding: 0 20px 20px; }
  .why-grid { grid-template-columns: 1fr; }
}