/* ==========================================================================
   oniontide.com — 洋葱 / Onion 品牌视觉系统
   视觉基调：深海墨蓝底 + 洋葱年轮暖琥珀金 + 潮汐冰蓝流光
   ========================================================================== */

:root {
  --bg-deep: #060b12;
  --bg-surface: #0b131f;
  --bg-card: rgba(13, 22, 35, 0.78);
  --bg-card-hover: rgba(18, 30, 48, 0.92);
  --border-subtle: rgba(127, 209, 234, 0.14);
  --border-gold: rgba(245, 166, 35, 0.38);
  --border-draft: rgba(255, 184, 77, 0.55);

  --gold-primary: #f5a623;
  --gold-bright: #ffd27d;
  --gold-soft: rgba(245, 166, 35, 0.14);
  --cyan-accent: #68c5e3;
  --cyan-soft: rgba(104, 197, 227, 0.12);

  --text-primary: #f2f5f9;
  --text-secondary: #a8b7c9;
  --text-muted: #76879c;

  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 22px;
  --radius-pill: 999px;

  --shadow-card: 0 18px 48px rgba(0, 0, 0, 0.45);
  --shadow-glow: 0 0 32px rgba(245, 166, 35, 0.16);
  --container-max: 1180px;
  --transition: 0.25s cubic-bezier(0.22, 1, 0.36, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  color-scheme: dark;
}

body {
  margin: 0;
  font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Segoe UI",
    system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  background-color: var(--bg-deep);
  background-image:
    radial-gradient(circle at 18% 12%, rgba(245, 166, 35, 0.08), transparent 36%),
    radial-gradient(circle at 82% 18%, rgba(104, 197, 227, 0.09), transparent 38%),
    radial-gradient(circle at 50% 88%, rgba(245, 166, 35, 0.06), transparent 42%);
  color: var(--text-primary);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

a {
  color: inherit;
  text-decoration: none;
}

.container {
  width: min(100% - 32px, var(--container-max));
  margin-inline: auto;
}

/* ---------- Top Navigation ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(6, 11, 18, 0.8);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-subtle);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 70px;
  gap: 16px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.brand-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: contain;
  filter: drop-shadow(0 0 10px rgba(245, 166, 35, 0.35));
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.brand-name {
  font-size: 1.02rem;
  color: var(--text-primary);
}

.brand-domain {
  font-size: 0.72rem;
  color: var(--cyan-accent);
  font-weight: 500;
  letter-spacing: 0.06em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-links a {
  padding: 8px 14px;
  border-radius: var(--radius-pill);
  font-size: 0.92rem;
  color: var(--text-secondary);
  transition: color var(--transition), background var(--transition);
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.06);
}

.nav-links a.active {
  color: var(--gold-bright);
  box-shadow: inset 0 0 0 1px var(--border-gold);
}

.nav-cta {
  padding: 9px 18px !important;
  background: linear-gradient(135deg, #f5a623, #e68a1e) !important;
  color: #0b111a !important;
  font-weight: 700;
  box-shadow: 0 6px 20px rgba(245, 166, 35, 0.28);
}

.nav-cta:hover {
  filter: brightness(1.08);
  transform: translateY(-1px);
}

.menu-toggle {
  display: none;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  border-radius: var(--radius-sm);
  padding: 8px 12px;
  font-size: 0.9rem;
  cursor: pointer;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: var(--radius-pill);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform var(--transition), box-shadow var(--transition),
    background var(--transition), border-color var(--transition);
}

.btn-primary {
  background: linear-gradient(135deg, #ffbd4a 0%, #f59e0b 55%, #e28413 100%);
  color: #091019;
  box-shadow: 0 8px 24px rgba(245, 166, 35, 0.28);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(245, 166, 35, 0.38);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-primary);
  border-color: var(--border-subtle);
}

.btn-secondary:hover {
  background: rgba(104, 197, 227, 0.1);
  border-color: rgba(104, 197, 227, 0.42);
  transform: translateY(-1px);
}

.btn-ghost {
  background: transparent;
  color: var(--cyan-accent);
  border: 1px solid rgba(104, 197, 227, 0.28);
  padding: 8px 14px;
  font-size: 0.84rem;
}

.btn-ghost:hover {
  background: rgba(104, 197, 227, 0.12);
}

/* ---------- Hero Sections ---------- */
.hero-home {
  position: relative;
  min-height: calc(100vh - 70px);
  display: flex;
  align-items: center;
  overflow: hidden;
  padding: 64px 0 80px;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-bg picture,
.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: 0.52;
}

.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(6, 11, 18, 0.55) 0%, rgba(6, 11, 18, 0.72) 55%, var(--bg-deep) 100%),
    radial-gradient(circle at center, rgba(6, 11, 18, 0.15) 0%, rgba(6, 11, 18, 0.78) 85%);
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 760px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  background: rgba(245, 166, 35, 0.1);
  border: 1px solid var(--border-gold);
  color: var(--gold-bright);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  margin-bottom: 20px;
}

.hero-title {
  margin: 0 0 18px;
  font-size: clamp(2.1rem, 4.8vw, 3.6rem);
  line-height: 1.18;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.text-gradient {
  background: linear-gradient(120deg, #ffd88a 0%, #f5a623 50%, #7fd1ea 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-desc {
  margin: 0 0 30px;
  font-size: clamp(1rem, 1.8vw, 1.16rem);
  color: var(--text-secondary);
  max-width: 640px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
}

/* Services Page Hero */
.page-hero {
  position: relative;
  padding: 64px 0 44px;
  overflow: hidden;
  border-bottom: 1px solid var(--border-subtle);
}

.page-hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  opacity: 0.24;
}

.page-hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.page-hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(6, 11, 18, 0.55), var(--bg-deep) 95%);
}

.page-hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.35fr 0.85fr;
  gap: 28px;
  align-items: end;
}

.notice-panel {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 18px 20px;
  backdrop-filter: blur(12px);
}

.notice-panel-title {
  margin: 0 0 8px;
  font-size: 0.9rem;
  color: var(--gold-bright);
  font-weight: 700;
}

.notice-panel p {
  margin: 0 0 8px;
  font-size: 0.86rem;
  color: var(--text-secondary);
}

.notice-panel p:last-child {
  margin-bottom: 0;
}

/* ---------- Filter Tabs ---------- */
.section {
  padding: 64px 0;
}

.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 28px;
}

.section-title {
  margin: 0 0 6px;
  font-size: clamp(1.55rem, 2.8vw, 2.15rem);
  font-weight: 800;
}

.section-sub {
  margin: 0;
  color: var(--text-secondary);
  font-size: 0.96rem;
}

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 28px;
}

.filter-btn {
  padding: 8px 16px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-subtle);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-secondary);
  font-size: 0.88rem;
  cursor: pointer;
  transition: all var(--transition);
}

.filter-btn:hover {
  color: var(--text-primary);
  border-color: rgba(104, 197, 227, 0.4);
}

.filter-btn.active {
  background: var(--gold-soft);
  border-color: var(--border-gold);
  color: var(--gold-bright);
  font-weight: 600;
}

/* ---------- Service Cards Grid ---------- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.service-card {
  display: flex;
  flex-direction: column;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: transform var(--transition), border-color var(--transition),
    box-shadow var(--transition), background var(--transition);
}

.service-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-gold);
  background: var(--bg-card-hover);
  box-shadow: var(--shadow-card), var(--shadow-glow);
}

.service-card.is-hidden {
  display: none;
}

.service-media {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #08101a;
  border-bottom: 1px solid var(--border-subtle);
}

.service-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.55s ease;
}

.service-card:hover .service-media img {
  transform: scale(1.04);
}

.service-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(6, 11, 18, 0.05) 35%, rgba(6, 11, 18, 0.72) 100%);
  pointer-events: none;
}

.service-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 2;
  padding: 5px 12px;
  border-radius: var(--radius-pill);
  font-size: 0.76rem;
  font-weight: 600;
  background: rgba(6, 11, 18, 0.76);
  border: 1px solid rgba(255, 210, 125, 0.35);
  color: var(--gold-bright);
  backdrop-filter: blur(8px);
}

.service-index {
  position: absolute;
  bottom: 12px;
  right: 16px;
  z-index: 2;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: rgba(242, 245, 249, 0.75);
}

.service-body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.service-header {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-bottom: 18px;
  margin-bottom: 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.service-title {
  margin: 0;
  font-size: 1.38rem;
  font-weight: 800;
  color: var(--text-primary);
}

.price-box {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 10px 14px;
}

.price-cny {
  font-size: 1.32rem;
  font-weight: 800;
  color: var(--gold-bright);
}

.price-usd {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--cyan-accent);
  background: var(--cyan-soft);
  border: 1px solid rgba(104, 197, 227, 0.25);
  padding: 3px 10px;
  border-radius: var(--radius-pill);
}

.service-specs {
  margin: 0 0 22px;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 12px;
  flex: 1;
}

.service-specs li {
  display: grid;
  grid-template-columns: 78px 1fr;
  gap: 10px;
  font-size: 0.92rem;
  align-items: baseline;
}

.spec-label {
  color: var(--text-muted);
  font-weight: 600;
  font-size: 0.84rem;
}

.spec-value {
  color: var(--text-secondary);
}

.service-footer {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
}

.service-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.service-cta-row .btn-primary {
  flex: 1;
  min-width: 150px;
}

.payment-hint {
  margin: 0;
  font-size: 0.82rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 6px;
}

.payment-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--cyan-accent);
  flex-shrink: 0;
}

.rate-footnote {
  margin-top: 20px;
  font-size: 0.84rem;
  color: var(--text-muted);
  text-align: right;
}

/* ---------- Process Strip ---------- */
.process-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.process-card {
  background: rgba(11, 19, 31, 0.72);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 20px;
}

.process-step {
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  color: var(--gold-primary);
  margin-bottom: 8px;
}

.process-card h3 {
  margin: 0 0 8px;
  font-size: 1.04rem;
}

.process-card p {
  margin: 0;
  font-size: 0.88rem;
  color: var(--text-secondary);
}

/* ---------- FAQ Section ---------- */
.faq-list {
  display: grid;
  gap: 14px;
}

.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: border-color var(--transition);
}

.faq-item[open] {
  border-color: var(--border-gold);
}

.faq-item.is-draft {
  border-style: dashed;
  border-color: var(--border-draft);
  background: rgba(245, 166, 35, 0.05);
}

.faq-question {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 22px;
  cursor: pointer;
  font-weight: 700;
  font-size: 1.02rem;
  user-select: none;
}

.faq-question::-webkit-details-marker {
  display: none;
}

.faq-q-left {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.draft-tag {
  font-size: 0.74rem;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: var(--radius-pill);
  background: rgba(245, 166, 35, 0.18);
  color: var(--gold-bright);
  border: 1px solid rgba(245, 166, 35, 0.45);
}

.faq-chevron {
  color: var(--cyan-accent);
  font-size: 1.1rem;
  transition: transform var(--transition);
  flex-shrink: 0;
}

.faq-item[open] .faq-chevron {
  transform: rotate(45deg);
  color: var(--gold-bright);
}

.faq-answer {
  padding: 0 22px 20px;
  color: var(--text-secondary);
  font-size: 0.94rem;
}

.faq-answer p {
  margin: 0 0 8px;
}

.faq-answer p:last-child {
  margin-bottom: 0;
}

.faq-bullets {
  margin: 0;
  padding-left: 20px;
  display: grid;
  gap: 10px;
}

.faq-bullets li {
  line-height: 1.7;
}

.faq-bullets li::marker {
  color: var(--gold-primary);
}

.faq-bullets strong {
  color: var(--text-primary);
}

.draft-placeholder {
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  border: 1px dashed rgba(255, 210, 125, 0.45);
  background: rgba(6, 11, 18, 0.55);
  color: var(--gold-bright);
  font-size: 0.9rem;
}

/* ---------- Contact CTA Banner ---------- */
.contact-banner {
  background:
    radial-gradient(circle at 85% 20%, rgba(245, 166, 35, 0.18), transparent 45%),
    radial-gradient(circle at 15% 80%, rgba(104, 197, 227, 0.16), transparent 45%),
    var(--bg-card);
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-lg);
  padding: 36px 32px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.contact-banner h2 {
  margin: 0 0 8px;
  font-size: clamp(1.35rem, 2.5vw, 1.8rem);
}

.contact-banner p {
  margin: 0;
  color: var(--text-secondary);
  max-width: 580px;
}

.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

/* ---------- Home Highlights ---------- */
.highlights-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.highlight-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 24px;
  transition: border-color var(--transition), transform var(--transition);
}

.highlight-card:hover {
  border-color: var(--border-gold);
  transform: translateY(-3px);
}

.highlight-card h3 {
  margin: 0 0 10px;
  font-size: 1.12rem;
  color: var(--gold-bright);
}

.highlight-card p {
  margin: 0;
  color: var(--text-secondary);
  font-size: 0.92rem;
}

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--border-subtle);
  padding: 32px 0 44px;
  margin-top: 40px;
  color: var(--text-muted);
  font-size: 0.86rem;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

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

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

/* ---------- Toast ---------- */
.toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 200;
  padding: 12px 18px;
  border-radius: var(--radius-sm);
  background: rgba(13, 22, 35, 0.96);
  border: 1px solid var(--border-gold);
  color: var(--gold-bright);
  font-size: 0.88rem;
  font-weight: 600;
  box-shadow: var(--shadow-card);
  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.toast.show {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .page-hero-inner {
    grid-template-columns: 1fr;
  }

  .services-grid {
    grid-template-columns: 1fr;
  }

  .process-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .highlights-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .menu-toggle {
    display: inline-flex;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: 70px;
    left: 0;
    right: 0;
    background: rgba(6, 11, 18, 0.96);
    border-bottom: 1px solid var(--border-subtle);
    padding: 16px;
    flex-direction: column;
    align-items: stretch;
  }

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

  .nav-links a {
    text-align: center;
  }

  .process-grid {
    grid-template-columns: 1fr;
  }

  .service-specs li {
    grid-template-columns: 70px 1fr;
  }

  .contact-banner {
    padding: 26px 20px;
  }
}
