/* ATOMYHOUSE Brand System v1 */
:root {
  --teal: #008B94;
  --teal-light: #BDE4E6;
  --teal-dark: #006970;
  --teal-glow: rgba(0, 139, 148, 0.35);
  --graphite: #595757;
  --ink: #1A1A1A;
  --paper: #FFFFFF;
  --bg: #05080B;
  --bg-alt: #0A0F15;
  --surface: rgba(22, 29, 40, 0.65);
  --surface-hover: rgba(28, 37, 51, 0.8);
  --border: #243044;
  --text: #E8EDF2;
  --muted: #8A9BB0;
  --gradient: linear-gradient(135deg, #008B94 0%, #00E5FF 100%);
  --font: "IBM Plex Sans", "Noto Sans SC", "PingFang SC", sans-serif;
  --font-display: "Oswald", "Noto Sans SC", sans-serif;
  --font-mono: "IBM Plex Mono", monospace;
  --radius: 12px;
  --container: 1140px;
  --header-h: 72px;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}
::-webkit-scrollbar-track {
  background: var(--bg);
}
::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: 5px;
}
::-webkit-scrollbar-thumb:hover {
  background: rgba(0, 139, 148, 0.8);
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--teal-light); transition: color 0.2s; }
a:hover { color: var(--paper); }

.container { max-width: var(--container); margin: 0 auto; padding: 0 1.5rem; }
.center { text-align: center; }
.mono { font-family: var(--font-mono); letter-spacing: 0.08em; }
.muted { color: var(--muted); font-size: 0.9rem; }
.note { margin-top: 2rem; }
.lead { font-size: 1.125rem; color: var(--muted); max-width: 42rem; line-height: 1.7; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 200;
  height: var(--header-h);
  background: rgba(11, 15, 20, 0.88);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: var(--header-h);
}
.logo {
  display: flex; align-items: center; gap: 0.75rem;
  text-decoration: none; color: var(--text);
}
.logo-mark { flex-shrink: 0; }
.logo-text { display: flex; flex-direction: column; line-height: 1.1; }
.logo-en {
  font-family: var(--font-display);
  font-weight: 700; font-size: 1.2rem; letter-spacing: 0.04em;
}
.logo-y { color: var(--teal); }
.logo-cn {
  font-size: 0.65rem; letter-spacing: 0.35em; color: var(--muted);
  font-weight: 300;
}

.nav { display: flex; gap: 1.75rem; align-items: center; }
.nav a { color: var(--muted); text-decoration: none; font-size: 0.925rem; font-weight: 500; }
.nav a:not(.btn):hover { color: var(--text); }
.nav a.btn { color: #fff; }

.nav-toggle {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: none; cursor: pointer; padding: 8px;
}
.nav-toggle span {
  display: block; width: 22px; height: 2px; background: var(--text);
  transition: transform 0.3s, opacity 0.3s;
}

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 0.7rem 1.4rem; border-radius: 8px;
  font-weight: 600; text-decoration: none; border: none; cursor: pointer;
  font-size: 0.95rem; font-family: var(--font);
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
}
.btn:hover { transform: translateY(-1px); }
.btn-sm { padding: 0.5rem 1.1rem; font-size: 0.875rem; }
.btn-lg { padding: 0.85rem 1.75rem; font-size: 1rem; }
@keyframes pulse-glow {
  0% { box-shadow: 0 4px 20px rgba(0, 139, 148, 0.35); }
  50% { box-shadow: 0 4px 25px rgba(0, 139, 148, 0.65); }
  100% { box-shadow: 0 4px 20px rgba(0, 139, 148, 0.35); }
}

.btn-primary {
  background: var(--gradient); color: #fff;
  box-shadow: 0 4px 20px var(--teal-glow);
  animation: pulse-glow 3s infinite ease-in-out;
}
.btn-primary:hover { box-shadow: 0 6px 28px rgba(0, 229, 255, 0.5); color: #fff; }
.btn-outline {
  border: 1px solid var(--border); color: var(--text); background: transparent;
}
.btn-outline:hover { border-color: var(--teal); color: var(--teal-light); }

/* Hero */
.hero {
  position: relative; padding: 5rem 0 4.5rem; overflow: hidden;
  min-height: 85vh; display: flex; align-items: center;
}
@keyframes grid-flow {
  0% { background-position: center top, 0 0, 0 0; }
  100% { background-position: center top, 56px 56px, 56px 56px; }
}

.hero-bg {
  position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(ellipse 70% 50% at 50% -10%, var(--teal-glow), transparent),
    linear-gradient(var(--border) 1px, transparent 1px),
    linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: auto, 56px 56px, 56px 56px;
  opacity: 0.4;
  mask-image: radial-gradient(ellipse 90% 80% at 50% 30%, black 20%, transparent 75%);
  animation: grid-flow 30s linear infinite;
}
.hero-inner { position: relative; z-index: 1; }
.hero-badge {
  display: inline-block; padding: 0.4rem 1rem; border-radius: 999px;
  background: rgba(0, 139, 148, 0.12); border: 1px solid rgba(0, 139, 148, 0.35);
  font-size: 0.75rem; color: var(--teal-light); text-transform: uppercase;
}
.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.25rem, 5.5vw, 3.5rem);
  font-weight: 700; line-height: 1.15; margin: 1.25rem 0 1rem;
  max-width: 16ch;
  letter-spacing: -0.02em;
}
.hero-sub { font-size: 1.15rem; color: var(--muted); max-width: 38rem; margin-bottom: 2rem; }
.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; margin-bottom: 3rem; }

.hero-stats {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem;
  padding-top: 2rem; border-top: 1px solid var(--border);
}
.inline-stats { border-top: none; padding-top: 1.5rem; max-width: 480px; grid-template-columns: repeat(2, 1fr); }
.stat strong {
  display: block; font-family: var(--font-display);
  font-size: 1.5rem; color: var(--teal-light);
}
.stat span { font-size: 0.8rem; color: var(--muted); }

/* Sections */
.section { padding: 5rem 0; }
.section-alt { background: var(--bg-alt); }
.section-head { margin-bottom: 2.5rem; }
.section-head.center, .section-label.center { text-align: center; }
.section-label {
  font-size: 0.75rem; color: var(--teal); text-transform: uppercase;
  margin-bottom: 0.5rem;
}
.section-head h2, .page-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  margin: 0 0 0.5rem;
  letter-spacing: -0.02em;
}
.section-desc { color: var(--muted); margin: 0; }
.section-cta { text-align: center; margin-top: 2.5rem; }

.page-hero {
  padding: 4rem 0 3rem;
  border-bottom: 1px solid var(--border);
  background: linear-gradient(180deg, rgba(0,139,148,0.06) 0%, transparent 100%);
}
.page-hero h1 { font-size: clamp(2rem, 4vw, 2.75rem); margin: 0.5rem 0 1rem; }

/* Cards */
.card-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 1.25rem; }
.card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 1.75rem;
  transition: border-color 0.25s, transform 0.25s, box-shadow 0.25s, background 0.25s;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}
.card-glow:hover {
  border-color: rgba(0, 139, 148, 0.5);
  background: var(--surface-hover);
  transform: translateY(-3px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35), 0 0 0 1px rgba(0, 139, 148, 0.15), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}
.card h3 { margin: 0 0 0.35rem; font-size: 1.1rem; color: var(--paper); }
.card-sub { color: var(--teal-light); font-size: 0.85rem; margin: 0 0 0.75rem; }
.card p { color: var(--muted); font-size: 0.925rem; margin: 0 0 1rem; }
.card-link { font-size: 0.875rem; font-weight: 600; text-decoration: none; color: var(--teal); }
.card-icon {
  width: 44px; height: 44px; border-radius: 10px; margin-bottom: 1rem;
  background: rgba(0, 139, 148, 0.15); border: 1px solid rgba(0, 139, 148, 0.3);
  position: relative;
}
.card-icon::after {
  content: ''; position: absolute; inset: 10px;
  border-radius: 4px; background: var(--teal); opacity: 0.6;
}

/* Flow */
.flow {
  display: flex; flex-wrap: wrap; gap: 0.75rem; justify-content: center;
  list-style: none; padding: 0; margin: 0;
}
.flow li {
  display: flex; align-items: center; gap: 0.75rem;
  padding: 1rem 1.25rem; background: var(--surface);
  border: 1px solid var(--border); border-radius: var(--radius);
  font-weight: 500;
}
.flow-num { font-family: var(--font-mono); color: var(--teal); font-size: 0.85rem; }

/* Cases */
.case-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 1.25rem; }
.case-grid-full { grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }
.case-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 1.5rem;
  transition: border-color 0.2s, background 0.2s, transform 0.2s, box-shadow 0.2s;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}
.case-card:hover { border-color: rgba(0, 139, 148, 0.4); background: var(--surface-hover); transform: translateY(-3px); box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3); }
.case-meta { display: flex; justify-content: space-between; margin-bottom: 0.75rem; }
.case-industry {
  font-size: 0.75rem; font-family: var(--font-mono);
  color: var(--teal); text-transform: uppercase; letter-spacing: 0.06em;
}
.case-year { font-size: 0.8rem; color: var(--muted); }
.case-card h3 { margin: 0 0 0.5rem; font-size: 1.05rem; line-height: 1.4; }
.case-client { color: var(--muted); font-size: 0.875rem; margin: 0 0 1rem; }
.case-footer {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 0.75rem; border-top: 1px solid var(--border);
  font-size: 0.8rem;
}
.case-service { color: var(--muted); }
.case-amount { color: var(--teal-light); font-family: var(--font-mono); font-weight: 500; }

/* Clients */
.client-tags { display: flex; flex-wrap: wrap; gap: 0.75rem; justify-content: center; }
.client-tags span {
  padding: 0.5rem 1rem; border-radius: 999px;
  background: var(--surface); border: 1px solid var(--border);
  font-size: 0.875rem; color: var(--muted);
}

/* CTA Banner */
.cta-banner {
  background: linear-gradient(135deg, var(--teal-dark) 0%, var(--teal) 100%);
  padding: 3.5rem 0;
}
.cta-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 2rem; flex-wrap: wrap;
}
.cta-inner h2 { margin: 0 0 0.35rem; font-family: var(--font-display); color: #fff; }
.cta-inner p { margin: 0; color: var(--teal-light); }
.cta-banner .btn-primary { background: #fff; color: var(--teal-dark); box-shadow: none; }
.cta-banner .btn-primary:hover { background: var(--paper); }

/* Solutions page */
.solutions-list { display: flex; flex-direction: column; gap: 2rem; }
.solution-block {
  display: grid; grid-template-columns: auto 1fr; gap: 1.5rem;
  padding: 2rem; background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}
.solution-num { font-size: 2rem; color: var(--teal); opacity: 0.5; line-height: 1; }
.solution-cat {
  font-family: var(--font-mono); font-size: 0.7rem;
  color: var(--teal); letter-spacing: 0.1em;
}
.solution-block h2 { margin: 0.25rem 0; font-family: var(--font-display); }
.solution-sub { color: var(--teal-light); margin: 0 0 0.75rem; }
.feature-list { margin: 1rem 0 0; padding-left: 1.25rem; color: var(--muted); }
.feature-list li { margin-bottom: 0.35rem; }

.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; }
.two-col h2 { font-family: var(--font-display); color: var(--teal-light); }

/* About prose */
.prose { max-width: 720px; }
.prose h2 { font-family: var(--font-display); margin-top: 2rem; color: var(--teal-light); }
.prose ul { color: var(--muted); padding-left: 1.25rem; }
.prose li { margin-bottom: 0.5rem; }

/* Credentials */
.cred-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1.25rem; }
.cred-card {
  text-align: center; padding: 2rem 1.5rem;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
}
.cred-icon { font-size: 2rem; margin-bottom: 0.75rem; }
.cred-card h3 { margin: 0 0 0.5rem; }
.cred-card p { color: var(--muted); font-size: 0.9rem; margin: 0; }

/* Contact */
.contact-layout {
  display: grid; grid-template-columns: 1fr 1.4fr; gap: 3rem; align-items: start;
}
.contact-info h2 { font-family: var(--font-display); margin-bottom: 1.5rem; }
.contact-item {
  display: flex; gap: 1rem; margin-bottom: 1.25rem; align-items: flex-start;
}
.contact-item .mono {
  width: 28px; height: 28px; display: flex; align-items: center; justify-content: center;
  background: rgba(0,139,148,0.15); border-radius: 6px; color: var(--teal);
  font-size: 0.75rem; flex-shrink: 0;
}
.contact-item strong { display: block; font-size: 0.8rem; color: var(--muted); margin-bottom: 0.15rem; }
.contact-item a { color: var(--teal-light); text-decoration: none; }

.contact-form-wrap {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 2rem;
}
.contact-form label { display: block; margin-bottom: 1rem; font-size: 0.875rem; color: var(--muted); }
.contact-form input, .contact-form select, .contact-form textarea {
  display: block; width: 100%; margin-top: 0.4rem; padding: 0.7rem 0.9rem;
  background: var(--bg); border: 1px solid var(--border); border-radius: 8px;
  color: var(--text); font: inherit;
  transition: border-color 0.2s;
}
.contact-form input:focus, .contact-form select:focus, .contact-form textarea:focus {
  outline: none; border-color: var(--teal);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }

.alert {
  padding: 0.85rem 1rem; border-radius: 8px; margin-bottom: 1.25rem; font-size: 0.9rem;
}
.alert-success { background: rgba(0, 196, 184, 0.12); border: 1px solid rgba(0, 196, 184, 0.35); color: #7EEBE0; }
.alert-error { background: rgba(220, 60, 60, 0.12); border: 1px solid rgba(220, 60, 60, 0.35); color: #F0A0A0; }

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  background: var(--bg-alt); padding: 3.5rem 0 0;
}
.footer-grid {
  display: grid; grid-template-columns: 1.5fr 1fr 1.2fr; gap: 2rem;
  padding-bottom: 2.5rem;
}
.footer-logo { display: flex; gap: 0.75rem; align-items: center; margin-bottom: 0.75rem; }
.footer-logo strong { display: block; font-family: var(--font-display); letter-spacing: 0.05em; }
.footer-logo span { font-size: 0.8rem; color: var(--muted); }
.footer-tag { font-family: var(--font-mono); font-size: 0.75rem; color: var(--teal); letter-spacing: 0.08em; }
.footer-links h4, .footer-contact h4 {
  font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.1em;
  color: var(--muted); margin: 0 0 1rem;
}
.footer-links { display: flex; flex-direction: column; gap: 0.5rem; }
.footer-links a { color: var(--muted); text-decoration: none; font-size: 0.9rem; }
.footer-links a:hover { color: var(--text); }
.footer-contact p { margin: 0 0 0.5rem; font-size: 0.875rem; color: var(--muted); }
.footer-contact .mono { color: var(--teal); margin-right: 0.35rem; }
.footer-bottom {
  border-top: 1px solid var(--border); padding: 1.25rem 0;
  text-align: center;
}
.footer-bottom p { margin: 0; font-size: 0.8rem; color: var(--muted); }

/* Responsive */
@media (max-width: 900px) {
  .hero-stats { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr; }
  .contact-layout { grid-template-columns: 1fr; }
  .two-col { grid-template-columns: 1fr; }
  .solution-block { grid-template-columns: 1fr; }
  .cta-inner { flex-direction: column; text-align: center; }
}

@media (max-width: 768px) {
  .nav-toggle { display: flex; }
  .nav {
    position: fixed; top: var(--header-h); left: 0; right: 0;
    background: var(--bg); border-bottom: 1px solid var(--border);
    flex-direction: column; padding: 1.5rem; gap: 1rem;
    transform: translateY(-120%); opacity: 0;
    transition: transform 0.3s, opacity 0.3s;
    pointer-events: none;
  }
  .nav.open { transform: translateY(0); opacity: 1; pointer-events: auto; }
  .form-row { grid-template-columns: 1fr; }
  .hero { min-height: auto; padding: 3.5rem 0 3rem; }
}

/* 案例筛选 */
.filter-bar { display: flex; flex-direction: column; gap: 0.75rem; margin-bottom: 1.75rem; }
.filter-group { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem; }
.filter-label { color: var(--muted); margin-right: 0.5rem; font-size: 0.8rem; }
.chip {
  display: inline-block; padding: 0.35rem 0.85rem; border-radius: 999px;
  border: 1px solid var(--border); color: var(--muted);
  font-size: 0.85rem; transition: all 0.2s;
}
.chip:hover { border-color: var(--teal); color: var(--text); }
.chip-active { background: var(--teal); border-color: var(--teal); color: #fff; }

/* 案例卡片链接化 */
.case-card-link { display: block; text-decoration: none; color: inherit; transition: transform 0.2s, border-color 0.2s; }
.case-card-link:hover { transform: translateY(-3px); }

/* 案例详情事实区 */
.case-detail-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 1rem; margin-bottom: 1rem; }
.case-detail-facts div { display: flex; flex-direction: column; gap: 0.25rem; padding: 1rem; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); }
.case-detail-facts span { font-size: 0.75rem; }

/* 受众入口卡片 */
.audience-card { display: flex; flex-direction: column; text-decoration: none; color: inherit; }
.audience-card .card-link { margin-top: auto; padding-top: 0.75rem; }

/* PoC 说明 */
.poc-notes { margin-top: 2rem; }

/* 自主产品 */
.product-grid { align-items: stretch; }
.product-card { display: flex; flex-direction: column; }
.product-card .btn, .product-card .card-link { margin-top: auto; padding-top: 0.75rem; }
.product-logo { border-radius: 8px; margin-bottom: 0.75rem; object-fit: contain; }
.product-logo-lg { border-radius: 12px; object-fit: contain; flex-shrink: 0; }
.product-hero-row { display: flex; align-items: center; gap: 1.25rem; margin: 0.5rem 0 1rem; }
.product-badge { display: inline-block; font-size: 0.7rem; color: var(--teal); margin-bottom: 0.5rem; }
.product-platform { font-size: 0.8rem; color: var(--muted); margin-bottom: 0.75rem; }
.agent-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1rem; }
.agent-card .agent-id { display: inline-block; font-size: 1.25rem; color: var(--teal); margin-bottom: 0.35rem; }
.agent-card h3 { margin: 0 0 0.5rem; font-size: 1rem; }
