/* 优家大健康公司官网 - 静态样式 */
:root {
  --primary: #2d6a4f;
  --primary-light: #40916c;
  --primary-dark: #1b4332;
  --accent: #52b788;
  --bg: #f8faf9;
  --bg-alt: #eef5f1;
  --text: #1a1a2e;
  --text-muted: #5c6370;
  --white: #ffffff;
  --border: #e2e8e4;
  --shadow: 0 4px 24px rgba(45, 106, 79, 0.08);
  --shadow-lg: 0 12px 48px rgba(45, 106, 79, 0.12);
  --radius: 12px;
  --radius-lg: 20px;
  --max-width: 1120px;
  --header-h: 72px;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Helvetica Neue", "Microsoft YaHei", sans-serif;
  font-size: 16px;
  line-height: 1.7;
  color: var(--text);
  background: var(--bg);
}

a { color: var(--primary); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--primary-light); }

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

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* Header */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--header-h);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow 0.3s;
}

.site-header.scrolled { box-shadow: var(--shadow); }

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 20px;
  font-weight: 700;
  color: var(--primary-dark);
}

.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.logo-name {
  font-size: 18px;
  font-weight: 700;
}

.logo-sub {
  font-size: 11px;
  font-weight: 400;
  color: var(--text-muted);
  margin-top: 2px;
}

.product-showcase {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.product-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: rgba(45, 106, 79, 0.1);
  color: var(--primary);
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 16px;
}

.product-showcase h2 {
  font-size: 32px;
  font-weight: 800;
  margin: 0 0 16px;
  color: var(--primary-dark);
}

.product-showcase .lead {
  color: var(--text-muted);
  font-size: 17px;
  margin: 0 0 24px;
}

.product-features {
  list-style: none;
  padding: 0;
  margin: 0 0 28px;
}

.product-features li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 0;
  font-size: 15px;
  color: var(--text-muted);
}

.product-features li::before {
  content: "✓";
  color: var(--primary);
  font-weight: 700;
  flex-shrink: 0;
}

.product-visual {
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
  border-radius: var(--radius-lg);
  padding: 48px 40px;
  color: white;
  text-align: center;
  box-shadow: var(--shadow-lg);
}

.product-visual-icon {
  font-size: 64px;
  margin-bottom: 20px;
}

.product-visual h3 {
  margin: 0 0 12px;
  font-size: 26px;
  font-weight: 800;
}

.product-visual p {
  margin: 0;
  opacity: 0.9;
  font-size: 15px;
  line-height: 1.65;
}

.product-meta {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  justify-content: center;
}

.product-meta span {
  font-size: 13px;
  opacity: 0.85;
}

.logo-icon {
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 18px;
}

.nav-desktop { display: flex; gap: 32px; list-style: none; margin: 0; padding: 0; }

.nav-desktop a {
  color: var(--text);
  font-size: 15px;
  font-weight: 500;
}

.nav-desktop a:hover,
.nav-desktop a.active { color: var(--primary); }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  margin: 5px 0;
  transition: 0.3s;
}

.nav-mobile {
  display: none;
  position: fixed;
  top: var(--header-h);
  left: 0;
  right: 0;
  background: var(--white);
  border-bottom: 1px solid var(--border);
  padding: 16px 24px 24px;
  box-shadow: var(--shadow);
}

.nav-mobile.open { display: block; }

.nav-mobile a {
  display: block;
  padding: 12px 0;
  color: var(--text);
  font-weight: 500;
  border-bottom: 1px solid var(--border);
}

.nav-mobile a:last-child { border-bottom: none; }

/* Hero */
.hero {
  padding: calc(var(--header-h) + 80px) 0 100px;
  background: linear-gradient(160deg, #e8f5e9 0%, var(--bg) 50%, #f0f7f4 100%);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  top: -50%;
  right: -20%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(82, 183, 136, 0.15) 0%, transparent 70%);
  border-radius: 50%;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  position: relative;
}

.hero-badge {
  display: inline-block;
  padding: 6px 14px;
  background: rgba(45, 106, 79, 0.1);
  color: var(--primary);
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 20px;
}

.hero h1 {
  font-size: clamp(32px, 5vw, 48px);
  font-weight: 800;
  line-height: 1.25;
  margin: 0 0 20px;
  color: var(--primary-dark);
}

.hero-desc {
  font-size: 18px;
  color: var(--text-muted);
  margin: 0 0 32px;
  max-width: 480px;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: var(--radius);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all 0.2s;
}

.btn-primary {
  background: var(--primary);
  color: white;
}

.btn-primary:hover {
  background: var(--primary-light);
  color: white;
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(45, 106, 79, 0.3);
}

.btn-outline {
  background: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
}

.btn-outline:hover {
  background: var(--primary);
  color: white;
}

.hero-visual {
  display: flex;
  justify-content: center;
}

.hero-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--shadow-lg);
  max-width: 380px;
  text-align: center;
}

.hero-card-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 24px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  border-radius: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 36px;
}

.hero-card h3 {
  margin: 0 0 12px;
  font-size: 22px;
  color: var(--primary-dark);
}

.hero-card p {
  margin: 0;
  color: var(--text-muted);
  font-size: 15px;
}

/* Sections */
section { padding: 80px 0; }

.section-header {
  text-align: center;
  max-width: 600px;
  margin: 0 auto 56px;
}

.section-header h2 {
  font-size: 32px;
  font-weight: 800;
  margin: 0 0 16px;
  color: var(--primary-dark);
}

.section-header p {
  margin: 0;
  color: var(--text-muted);
  font-size: 17px;
}

.section-alt { background: var(--bg-alt); }

/* Features */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.feature-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 36px 28px;
  box-shadow: var(--shadow);
  transition: transform 0.2s, box-shadow 0.2s;
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.feature-icon {
  width: 52px;
  height: 52px;
  background: rgba(45, 106, 79, 0.1);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  margin-bottom: 20px;
}

.feature-card h3 {
  margin: 0 0 12px;
  font-size: 18px;
  color: var(--primary-dark);
}

.feature-card p {
  margin: 0;
  color: var(--text-muted);
  font-size: 15px;
  line-height: 1.65;
}

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

.about-preview-content h2 {
  font-size: 32px;
  font-weight: 800;
  margin: 0 0 20px;
  color: var(--primary-dark);
}

.about-preview-content p {
  color: var(--text-muted);
  margin: 0 0 16px;
}

.info-list {
  list-style: none;
  padding: 0;
  margin: 24px 0 0;
}

.info-list li {
  display: flex;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
  font-size: 15px;
}

.info-list li:last-child { border-bottom: none; }

.info-list .label {
  min-width: 120px;
  color: var(--text-muted);
  flex-shrink: 0;
}

.about-preview-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 36px;
  box-shadow: var(--shadow-lg);
}

.about-preview-card h3 {
  margin: 0 0 20px;
  font-size: 18px;
  color: var(--primary);
}

/* Contact cards */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.contact-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 36px 28px;
  text-align: center;
  box-shadow: var(--shadow);
}

.contact-card-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 20px;
  background: rgba(45, 106, 79, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
}

.contact-card h3 {
  margin: 0 0 8px;
  font-size: 16px;
  color: var(--text-muted);
  font-weight: 500;
}

.contact-card p,
.contact-card a {
  margin: 0;
  font-size: 17px;
  font-weight: 600;
  color: var(--primary-dark);
}

/* Page header (inner pages) */
.page-hero {
  padding: calc(var(--header-h) + 60px) 0 60px;
  background: linear-gradient(160deg, #e8f5e9 0%, var(--bg) 100%);
  text-align: center;
}

.page-hero h1 {
  font-size: 36px;
  font-weight: 800;
  margin: 0 0 12px;
  color: var(--primary-dark);
}

.page-hero p {
  margin: 0;
  color: var(--text-muted);
  font-size: 17px;
}

/* Content card */
.content-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--shadow);
  margin-bottom: 28px;
}

.content-card h2 {
  font-size: 20px;
  font-weight: 700;
  margin: 0 0 20px;
  color: var(--primary-dark);
  padding-bottom: 12px;
  border-bottom: 2px solid var(--bg-alt);
}

.content-card h2:not(:first-child) { margin-top: 36px; }

.info-table {
  width: 100%;
  border-collapse: collapse;
}

.info-table tr { border-bottom: 1px solid var(--border); }
.info-table tr:last-child { border-bottom: none; }

.info-table th,
.info-table td {
  padding: 14px 0;
  text-align: left;
  vertical-align: top;
  font-size: 15px;
}

.info-table th {
  width: 160px;
  color: var(--text-muted);
  font-weight: 500;
}

.scope-list {
  margin: 0;
  padding-left: 20px;
  color: var(--text-muted);
  font-size: 15px;
}

.scope-list li { margin-bottom: 8px; }

/* Legal pages */
.legal-content {
  max-width: 800px;
  margin: 0 auto;
  padding: calc(var(--header-h) + 40px) 24px 80px;
}

.legal-content h1 {
  font-size: 28px;
  font-weight: 800;
  margin: 0 0 8px;
}

.legal-content .meta {
  color: var(--text-muted);
  font-size: 14px;
  margin-bottom: 32px;
}

.legal-content h2 {
  font-size: 18px;
  font-weight: 700;
  margin: 28px 0 12px;
  color: var(--primary-dark);
}

.legal-content h3 {
  font-size: 16px;
  font-weight: 600;
  margin: 20px 0 10px;
}

.legal-content p,
.legal-content li {
  font-size: 15px;
  color: var(--text);
  line-height: 1.75;
}

.legal-content ol,
.legal-content ul {
  padding-left: 24px;
}

.legal-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 12px 0 16px;
  font-size: 14px;
}

.legal-content th,
.legal-content td {
  border: 1px solid var(--border);
  padding: 10px 8px;
  text-align: left;
  vertical-align: top;
  word-break: break-word;
}

.legal-content th {
  background: var(--bg-alt);
  font-weight: 600;
}

/* Footer */
.site-footer {
  background: var(--primary-dark);
  color: rgba(255, 255, 255, 0.85);
  padding: 60px 0 32px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}

.footer-brand .logo {
  color: white;
  margin-bottom: 16px;
}

.footer-brand p {
  margin: 0;
  font-size: 14px;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.7);
}

.footer-col h4 {
  margin: 0 0 20px;
  font-size: 15px;
  font-weight: 600;
  color: white;
}

.footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-col li { margin-bottom: 10px; }

.footer-col a {
  color: rgba(255, 255, 255, 0.7);
  font-size: 14px;
}

.footer-col a:hover { color: white; }

.footer-bottom {
  padding-top: 32px;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.6);
}

.footer-bottom a {
  color: rgba(255, 255, 255, 0.6);
}

.footer-bottom a:hover { color: white; }

/* Responsive */
@media (max-width: 900px) {
  .hero-grid,
  .about-preview,
  .product-showcase { grid-template-columns: 1fr; gap: 40px; }

  .hero-visual { order: -1; }

  .features-grid,
  .contact-grid { grid-template-columns: 1fr; }

  .footer-grid { grid-template-columns: 1fr; gap: 32px; }

  .logo-sub { display: none; }
}

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

  section { padding: 60px 0; }

  .hero { padding-bottom: 60px; }

  .content-card { padding: 28px 20px; }

  .info-table th { width: 100px; font-size: 14px; }
  .info-table td { font-size: 14px; }
}
