/* ============================================
   华夏痛症 - 经脉祛痛贴 官网样式
   配色: 中国红 / 墨色 / 米白 / 古金
   ============================================ */

/* Reset & Base */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --primary: #8B1A1A;
  --primary-dark: #6B1414;
  --primary-light: #C73E3E;
  --ink: #2C2C2C;
  --ink-light: #555;
  --bg: #FAF8F5;
  --bg-alt: #F3EFE8;
  --gold: #B8860B;
  --gold-light: #D4A93A;
  --gray: #888;
  --border: #E0DCD5;
  --white: #FFF;
  --shadow: 0 2px 12px rgba(0,0,0,0.08);
  --shadow-hover: 0 4px 20px rgba(0,0,0,0.12);
  --radius: 8px;
  --max-width: 1200px;
  --header-h: 64px;
}

html { font-size: 16px; scroll-behavior: smooth; }

body {
  font-family: -apple-system, "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--primary); text-decoration: none; transition: color .2s; }
a:hover { color: var(--primary-dark); }

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

/* Layout */
.container { max-width: var(--max-width); margin: 0 auto; padding: 0 20px; }

.section { padding: 60px 0; }
.section-alt { background: var(--bg-alt); }

.section-title {
  text-align: center;
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 12px;
  letter-spacing: 2px;
}
.section-title::after {
  content: "";
  display: block;
  width: 48px;
  height: 3px;
  background: var(--primary);
  margin: 12px auto 0;
  border-radius: 2px;
}
.section-subtitle {
  text-align: center;
  color: var(--gray);
  font-size: 0.95rem;
  margin-bottom: 36px;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--white);
  box-shadow: var(--shadow);
  height: var(--header-h);
  display: flex;
  align-items: center;
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}
.logo {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--primary);
  letter-spacing: 1px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.logo .logo-sub {
  font-size: 0.75rem;
  color: var(--gray);
  font-weight: 400;
}

.nav { display: flex; gap: 28px; }
.nav a {
  color: var(--ink);
  font-size: 0.95rem;
  font-weight: 500;
  position: relative;
  padding: 4px 0;
}
.nav a:hover, .nav a.active {
  color: var(--primary);
}
.nav a.active::after {
  content: "";
  position: absolute;
  bottom: -4px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--primary);
  border-radius: 1px;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1.5rem;
  color: var(--ink);
}

/* Hero */
.hero {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: var(--white);
  padding: 80px 0 72px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='60' height='60'%3E%3Cpath d='M30 5L35 20L50 20L38 30L43 45L30 35L17 45L22 30L10 20L25 20Z' fill='%23ffffff' opacity='0.03'/%3E%3C/svg%3E");
  pointer-events: none;
}
.hero h1 {
  font-size: 2.5rem;
  font-weight: 700;
  letter-spacing: 3px;
  margin-bottom: 16px;
  position: relative;
}
.hero .hero-tagline {
  font-size: 1.1rem;
  opacity: 0.9;
  max-width: 640px;
  margin: 0 auto 28px;
  position: relative;
}
.hero .hero-name {
  color: var(--gold-light);
  font-weight: 600;
}
.hero-buttons { display: flex; gap: 16px; justify-content: center; position: relative; }

/* Buttons */
.btn {
  display: inline-block;
  padding: 12px 32px;
  border-radius: var(--radius);
  font-size: 0.95rem;
  font-weight: 500;
  cursor: pointer;
  transition: all .2s;
  border: none;
}
.btn-primary {
  background: var(--white);
  color: var(--primary);
}
.btn-primary:hover {
  background: var(--bg-alt);
  color: var(--primary-dark);
}
.btn-outline {
  background: transparent;
  color: var(--white);
  border: 1.5px solid rgba(255,255,255,0.6);
}
.btn-outline:hover {
  border-color: var(--white);
  background: rgba(255,255,255,0.1);
}
.btn-solid {
  background: var(--primary);
  color: var(--white);
}
.btn-solid:hover {
  background: var(--primary-dark);
  color: var(--white);
}

/* Cards Grid */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}
.card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 32px 24px;
  box-shadow: var(--shadow);
  transition: box-shadow .2s, transform .2s;
  text-align: center;
}
.card:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-2px);
}
.card-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--bg-alt);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  font-size: 1.5rem;
  color: var(--primary);
}
.card h3 {
  font-size: 1.15rem;
  color: var(--ink);
  margin-bottom: 10px;
}
.card p {
  color: var(--ink-light);
  font-size: 0.92rem;
  line-height: 1.7;
}

/* Highlight Box */
.highlight-box {
  background: var(--bg-alt);
  border-left: 4px solid var(--primary);
  border-radius: var(--radius);
  padding: 24px 28px;
  margin: 32px 0;
}
.highlight-box p {
  font-size: 1.05rem;
  color: var(--ink);
  line-height: 1.9;
}
.highlight-box .keyword {
  color: var(--primary);
  font-weight: 600;
}

/* Authorization Section */
.auth-section {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px;
  margin: 32px 0;
}
.auth-section h3 {
  color: var(--primary);
  font-size: 1.2rem;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.auth-badge {
  display: inline-block;
  padding: 3px 12px;
  background: var(--primary);
  color: var(--white);
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 500;
}
.auth-list {
  list-style: none;
  padding: 0;
}
.auth-list li {
  padding: 8px 0;
  padding-left: 24px;
  position: relative;
  color: var(--ink-light);
  font-size: 0.95rem;
  border-bottom: 1px dashed var(--border);
}
.auth-list li:last-child { border-bottom: none; }
.auth-list li::before {
  content: "\2713";
  position: absolute;
  left: 0;
  color: var(--primary);
  font-weight: 700;
}

/* Expert Profile */
.expert-header {
  text-align: center;
  padding: 48px 0 32px;
}
.expert-avatar {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: var(--bg-alt);
  margin: 0 auto 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  color: var(--primary);
  border: 3px solid var(--primary);
}
.expert-name {
  font-size: 2rem;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 8px;
}
.expert-title {
  color: var(--gray);
  font-size: 1rem;
  margin-bottom: 16px;
}

/* Timeline */
.timeline {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
  padding-left: 32px;
}
.timeline::before {
  content: "";
  position: absolute;
  left: 8px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--border);
}
.timeline-item {
  position: relative;
  padding-bottom: 32px;
}
.timeline-item::before {
  content: "";
  position: absolute;
  left: -28px;
  top: 4px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--primary);
  border: 2px solid var(--white);
  box-shadow: 0 0 0 2px var(--primary);
}
.timeline-year {
  font-weight: 700;
  color: var(--primary);
  font-size: 1rem;
  margin-bottom: 4px;
}
.timeline-content {
  color: var(--ink-light);
  font-size: 0.95rem;
}

/* Product Card */
.product-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: box-shadow .2s, transform .2s;
  margin-bottom: 32px;
}
.product-card:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-2px);
}
.product-header {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: var(--white);
  padding: 28px 32px;
}
.product-header h3 {
  font-size: 1.4rem;
  margin-bottom: 6px;
}
.product-header p {
  opacity: 0.85;
  font-size: 0.9rem;
}
.product-body {
  padding: 28px 32px;
}
.product-body h4 {
  color: var(--ink);
  font-size: 1rem;
  margin: 16px 0 8px;
}
.product-body p, .product-body li {
  color: var(--ink-light);
  font-size: 0.93rem;
  line-height: 1.8;
}
.product-features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  margin-top: 16px;
}
.feature-tag {
  background: var(--bg-alt);
  border-radius: 6px;
  padding: 10px 16px;
  font-size: 0.88rem;
  color: var(--ink);
  text-align: center;
}
.feature-tag strong {
  color: var(--primary);
}

/* Tech Detail */
.tech-detail {
  background: var(--white);
  border-radius: var(--radius);
  padding: 36px;
  box-shadow: var(--shadow);
  margin-bottom: 24px;
}
.tech-detail h3 {
  color: var(--primary);
  font-size: 1.25rem;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--border);
}
.tech-detail h4 {
  color: var(--ink);
  font-size: 1.05rem;
  margin: 20px 0 10px;
}
.tech-detail p {
  color: var(--ink-light);
  font-size: 0.95rem;
  margin-bottom: 12px;
}
.tech-detail ul, .tech-detail ol {
  padding-left: 24px;
  margin-bottom: 12px;
}
.tech-detail li {
  color: var(--ink-light);
  font-size: 0.93rem;
  margin-bottom: 6px;
}

/* Acupoint Table */
.acupoint-table {
  width: 100%;
  border-collapse: collapse;
  margin: 16px 0;
  font-size: 0.92rem;
}
.acupoint-table th {
  background: var(--primary);
  color: var(--white);
  padding: 10px 14px;
  text-align: left;
  font-weight: 500;
}
.acupoint-table td {
  padding: 10px 14px;
  border-bottom: 1px solid var(--border);
  color: var(--ink-light);
}
.acupoint-table tr:nth-child(even) td {
  background: var(--bg-alt);
}

/* Contact */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}
.contact-item {
  background: var(--white);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
  text-align: center;
}
.contact-item .icon {
  font-size: 2rem;
  color: var(--primary);
  margin-bottom: 12px;
}
.contact-item h4 {
  color: var(--ink);
  font-size: 1rem;
  margin-bottom: 8px;
}
.contact-item p {
  color: var(--ink-light);
  font-size: 0.92rem;
}

/* Footer */
.site-footer {
  background: var(--ink);
  color: #BBB;
  padding: 40px 0 20px;
}
.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 32px;
  margin-bottom: 24px;
}
.footer-col h4 {
  color: var(--white);
  font-size: 0.95rem;
  margin-bottom: 12px;
}
.footer-col p, .footer-col a {
  color: #999;
  font-size: 0.88rem;
  line-height: 1.8;
}
.footer-col a:hover { color: var(--white); }
.footer-bottom {
  border-top: 1px solid #444;
  padding-top: 16px;
  text-align: center;
  font-size: 0.85rem;
  color: #777;
}
.footer-bottom a { color: #999; }

/* Breadcrumb */
.breadcrumb {
  background: var(--bg-alt);
  padding: 12px 0;
  font-size: 0.88rem;
  color: var(--gray);
}
.breadcrumb a { color: var(--gray); }
.breadcrumb a:hover { color: var(--primary); }
.breadcrumb span { margin: 0 6px; }

/* Responsive */
@media (max-width: 768px) {
  .nav { display: none; }
  .nav.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    background: var(--white);
    padding: 16px 20px;
    box-shadow: var(--shadow);
    gap: 16px;
  }
  .nav-toggle { display: block; }
  .hero h1 { font-size: 1.75rem; }
  .hero .hero-tagline { font-size: 0.95rem; }
  .hero-buttons { flex-direction: column; align-items: center; }
  .section-title { font-size: 1.4rem; }
  .expert-name { font-size: 1.5rem; }
  .auth-section { padding: 20px; }
  .tech-detail { padding: 20px; }
  .product-features { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .container { padding: 0 16px; }
  .section { padding: 40px 0; }
  .hero { padding: 48px 0; }
  .hero h1 { font-size: 1.4rem; letter-spacing: 1px; }
  .cards-grid { grid-template-columns: 1fr; }
}
