/* ============================================================
   彭城堂中医 | PENGCHENGTANG TCM — Global Stylesheet
   ============================================================ */

:root {
  --red: #C41E3A;
  --red-dark: #9B1530;
  --black: #111111;
  --gold: #C9A96E;
  --cream: #F8F5EF;
  --warm-white: #FDFAF5;
  --gray: #888888;
  --gray-light: #E8E3D9;
  --border: #D4CCC0;
  --font-zh: 'Noto Sans SC', 'PingFang SC', 'Microsoft YaHei', sans-serif;
  --font-en: 'Times New Roman', Times, serif;
  --nav-h: 72px;
  --max-w: 1200px;
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { font-family: var(--font-zh); background: var(--warm-white); color: var(--black); line-height: 1.9; overflow-x: hidden; }
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

/* ── Typography ── */
h1, h2, h3, h4 { font-weight: 600; line-height: 1.3; }

.lang-en body, .lang-en h1, .lang-en h2, .lang-en h3, .lang-en p, .lang-en a, .lang-en span, .lang-en li, .lang-en button {
  font-family: var(--font-en);
}

/* ── Layout ── */
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 40px; }
.section { padding: 100px 0; }
.section--gray { background: var(--cream); }

.section-header { text-align: center; margin-bottom: 64px; }
.section-label {
  display: inline-block;
  font-size: 0.72rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 12px;
}
.section-title {
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  color: var(--black);
  margin-bottom: 16px;
}
.section-divider {
  width: 36px; height: 2px;
  background: var(--red);
  margin: 0 auto;
}
.section-desc {
  margin-top: 20px;
  font-size: 1rem;
  color: var(--gray);
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}

/* ── Buttons ── */
.btn {
  display: inline-block;
  padding: 13px 36px;
  font-family: inherit;
  font-size: 0.9rem;
  letter-spacing: 0.12em;
  cursor: pointer;
  transition: all 0.25s ease;
  border: none;
}
.btn-primary {
  background: var(--red);
  color: #fff;
}
.btn-primary:hover { background: var(--red-dark); }
.btn-outline {
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255,255,255,0.7);
}
.btn-outline:hover { background: rgba(255,255,255,0.1); }
.btn-outline-dark {
  background: transparent;
  color: var(--black);
  border: 1px solid var(--black);
}
.btn-outline-dark:hover { background: var(--black); color: #fff; }

/* ── Navigation ── */
.nav {
  position: fixed; top: 0; left: 0; right: 0;
  height: var(--nav-h);
  z-index: 1000;
  transition: background 0.3s, box-shadow 0.3s;
}
.nav.scrolled {
  background: rgba(10, 10, 10, 0.96);
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 rgba(255,255,255,0.08);
}
.nav-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 40px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
}
.nav-logo img {
  height: 44px;
  width: auto;
}
.nav-logo-text {
  color: #fff;
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: 0.05em;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 36px;
}
.nav-links a {
  color: rgba(255,255,255,0.82);
  font-size: 0.88rem;
  letter-spacing: 0.08em;
  position: relative;
  transition: color 0.2s;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0;
  width: 0; height: 1px;
  background: var(--red);
  transition: width 0.25s;
}
.nav-links a:hover, .nav-links a.active { color: #fff; }
.nav-links a:hover::after, .nav-links a.active::after { width: 100%; }

.nav-right { display: flex; align-items: center; gap: 20px; }
.lang-toggle {
  background: none;
  border: 1px solid rgba(255,255,255,0.4);
  color: rgba(255,255,255,0.8);
  font-family: inherit;
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  padding: 5px 12px;
  cursor: pointer;
  transition: all 0.2s;
}
.lang-toggle:hover { border-color: #fff; color: #fff; }

.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
  background: none;
  border: none;
}
.nav-hamburger span {
  display: block;
  width: 22px; height: 1.5px;
  background: #fff;
  transition: all 0.3s;
}

/* Mobile nav */
.nav-mobile {
  display: none;
  position: fixed;
  top: var(--nav-h); left: 0; right: 0;
  background: rgba(10,10,10,0.97);
  backdrop-filter: blur(12px);
  padding: 32px 40px;
  flex-direction: column;
  gap: 24px;
  z-index: 999;
}
.nav-mobile.open { display: flex; }
.nav-mobile a {
  color: rgba(255,255,255,0.8);
  font-size: 1.1rem;
  letter-spacing: 0.08em;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  padding-bottom: 16px;
}
.nav-mobile a:last-child { border-bottom: none; }

/* ── Hero ── */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--black);
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #0f0f0f 0%, #1a0505 50%, #0f0f0f 100%);
}
/* Decorative Chinese pattern overlay */
.hero-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 20% 50%, rgba(196,30,58,0.12) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(201,169,110,0.06) 0%, transparent 40%);
}
.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 0 40px;
  max-width: 800px;
}
.hero-logo {
  width: 100px;
  height: 100px;
  margin: 0 auto 36px;
  object-fit: contain;
}
.hero-label {
  font-size: clamp(1.1rem, 2.8vw, 1.8rem);
  letter-spacing: 0.25em;
  color: var(--gold);
  font-weight: 600;
  font-family: var(--font-zh);
  margin-bottom: 20px;
}
.hero-title {
  font-size: clamp(2.8rem, 7vw, 5.5rem);
  color: #fff;
  font-weight: 700;
  letter-spacing: 0.15em;
  margin-bottom: 8px;
}
.hero-title-en {
  display: block;
  font-size: clamp(0.9rem, 2vw, 1.2rem);
  font-family: var(--font-en);
  font-weight: 400;
  letter-spacing: 0.35em;
  color: rgba(255,255,255,0.45);
  margin-bottom: 32px;
}
.hero-slogan {
  font-size: clamp(1rem, 2.2vw, 1.3rem);
  color: rgba(255,255,255,0.75);
  letter-spacing: 0.06em;
  margin-bottom: 48px;
  position: relative;
  display: inline-block;
}
.hero-slogan::before, .hero-slogan::after {
  content: '—';
  color: var(--red);
  margin: 0 12px;
  opacity: 0.7;
}
.hero-btns { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
.hero-scroll {
  position: absolute;
  bottom: 120px; left: 50%;
  transform: translateX(-50%);
  color: rgba(255,255,255,0.75);
  font-size: 0.72rem;
  letter-spacing: 0.25em;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  animation: scrollPulse 2.5s ease-in-out infinite;
}
.hero-scroll::after {
  content: '';
  width: 1px; height: 40px;
  background: linear-gradient(to bottom, rgba(255,255,255,0.75), transparent);
}
@keyframes scrollPulse {
  0%, 100% { opacity: 0.4; transform: translateX(-50%) translateY(0); }
  50% { opacity: 0.8; transform: translateX(-50%) translateY(6px); }
}

/* ── Highlights Strip ── */
.highlights {
  background: var(--black);
  border-top: 1px solid rgba(255,255,255,0.06);
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 2;
}
.highlights-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
}
.highlight-item {
  text-align: center;
  padding: 20px 32px;
  border-right: 1px solid rgba(255,255,255,0.08);
}
.highlight-item:last-child { border-right: none; }
.highlight-num {
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--red);
  line-height: 1;
  margin-bottom: 8px;
  font-family: var(--font-zh);
}
.highlight-label { font-size: 0.85rem; color: rgba(255,255,255,0.55); letter-spacing: 0.1em; }

/* ── About Preview ── */
.about-preview {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}
.about-preview-line {
  width: 40px; height: 2px;
  background: var(--red);
  margin-bottom: 24px;
}
.about-preview-text p {
  color: #444;
  font-size: 1rem;
  line-height: 2;
  margin-bottom: 20px;
}
.about-preview-img {
  position: relative;
}
.about-preview-img-main {
  width: 100%;
  aspect-ratio: 4/3;
  background: var(--gray-light);
  overflow: hidden;
}
.about-preview-badge {
  position: absolute;
  bottom: -20px; left: -20px;
  background: var(--red);
  color: #fff;
  padding: 20px 24px;
  text-align: center;
}
.about-preview-badge-num { font-size: 2rem; font-weight: 700; line-height: 1; }
.about-preview-badge-text { font-size: 0.72rem; letter-spacing: 0.15em; margin-top: 4px; }

/* ── Clinics Cards ── */
.clinics-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.clinic-card {
  border: 1px solid var(--border);
  padding: 40px 32px;
  transition: all 0.3s;
  position: relative;
  background: #fff;
}
.clinic-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 3px; height: 0;
  background: var(--red);
  transition: height 0.3s;
}
.clinic-card:hover { box-shadow: 0 12px 40px rgba(0,0,0,0.08); }
.clinic-card:hover::before { height: 100%; }
.clinic-city {
  font-size: 0.72rem;
  letter-spacing: 0.25em;
  color: var(--red);
  margin-bottom: 8px;
  text-transform: uppercase;
}
.clinic-name { font-size: 1.2rem; font-weight: 600; margin-bottom: 20px; }
.clinic-info { font-size: 0.9rem; color: #555; line-height: 2; }
.clinic-info-item { display: flex; gap: 10px; margin-bottom: 8px; align-items: flex-start; }
.clinic-info-icon { color: var(--red); margin-top: 4px; flex-shrink: 0; }

/* ── Articles Grid ── */
.articles-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-bottom: 48px;
}
.article-card {
  background: #fff;
  border: 1px solid var(--border);
  overflow: hidden;
  transition: all 0.3s;
}
.article-card:hover { box-shadow: 0 8px 32px rgba(0,0,0,0.08); transform: translateY(-4px); }
.article-card-img {
  width: 100%;
  aspect-ratio: 16/10;
  background: var(--gray-light);
  overflow: hidden;
}
.article-card-img img { width: 100%; height: 100%; object-fit: cover; }
.article-card-body { padding: 24px; }
.article-card-tag {
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  color: var(--red);
  text-transform: uppercase;
  margin-bottom: 10px;
}
.article-card-title { font-size: 1.05rem; font-weight: 600; margin-bottom: 10px; line-height: 1.5; }
.article-card-date { font-size: 0.8rem; color: var(--gray); }
.articles-center { text-align: center; }

/* Learning CTA */
.learning-cta {
  background: var(--cream);
  border: 1px solid var(--border);
  padding: 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  margin-bottom: 60px;
}
.learning-cta-text h3 { font-size: 1.4rem; margin-bottom: 8px; }
.learning-cta-text p { color: var(--gray); font-size: 0.95rem; }

/* ── Franchise ── */
.franchise-hero {
  background: var(--black);
  padding: 120px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.franchise-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, rgba(196,30,58,0.2) 0%, transparent 70%);
}
.franchise-hero-content { position: relative; z-index: 1; }
.franchise-hero h1 { font-size: clamp(2rem, 5vw, 3.5rem); color: #fff; margin-bottom: 20px; }
.franchise-hero p { font-size: 1.1rem; color: rgba(255,255,255,0.6); max-width: 600px; margin: 0 auto 40px; }

.empowerment-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2px;
  background: var(--border);
}
.empowerment-item {
  background: #fff;
  padding: 36px 28px;
  transition: all 0.3s;
}
.empowerment-item:hover { background: var(--black); }
.empowerment-item:hover .emp-num,
.empowerment-item:hover .emp-title,
.empowerment-item:hover .emp-desc { color: rgba(255,255,255,0.8); }
.empowerment-item:hover .emp-num { color: var(--red); }
.emp-num { font-size: 2.5rem; font-weight: 700; color: var(--gray-light); line-height: 1; margin-bottom: 16px; font-family: var(--font-en); }
.emp-title { font-size: 1.05rem; font-weight: 600; margin-bottom: 10px; transition: color 0.3s; }
.emp-desc { font-size: 0.88rem; color: var(--gray); line-height: 1.8; transition: color 0.3s; }

/* Franchise Form */
.franchise-form { max-width: 680px; margin: 0 auto; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-bottom: 20px; }
.form-group { display: flex; flex-direction: column; gap: 8px; }
.form-group.full { grid-column: 1 / -1; }
.form-group label { font-size: 0.85rem; color: #555; letter-spacing: 0.06em; }
.form-group input,
.form-group select,
.form-group textarea {
  padding: 13px 16px;
  border: 1px solid var(--border);
  background: #fff;
  font-family: inherit;
  font-size: 0.95rem;
  color: var(--black);
  outline: none;
  transition: border-color 0.2s;
  appearance: none;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus { border-color: var(--red); }
.form-group textarea { resize: vertical; min-height: 100px; }
.form-submit { width: 100%; padding: 16px; background: var(--red); color: #fff; border: none; font-family: inherit; font-size: 1rem; letter-spacing: 0.15em; cursor: pointer; transition: background 0.2s; }
.form-submit:hover { background: var(--red-dark); }
.form-success { display: none; text-align: center; padding: 24px; background: #f0faf5; border: 1px solid #a8d8be; color: #2d6a4f; margin-top: 20px; }

/* ── Contact ── */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: start; }
.contact-qr { text-align: center; }
.contact-qr img { width: 200px; height: 200px; margin: 0 auto 20px; border: 8px solid #fff; box-shadow: 0 4px 24px rgba(0,0,0,0.1); }
.contact-qr-label { font-size: 0.9rem; color: var(--gray); }
.contact-clinics { display: flex; flex-direction: column; gap: 32px; }
.contact-clinic-item { padding-bottom: 32px; border-bottom: 1px solid var(--border); }
.contact-clinic-item:last-child { border-bottom: none; }
.contact-clinic-city { font-size: 0.72rem; letter-spacing: 0.25em; color: var(--red); margin-bottom: 6px; text-transform: uppercase; }
.contact-clinic-name { font-size: 1.05rem; font-weight: 600; margin-bottom: 12px; }
.contact-clinic-info { font-size: 0.9rem; color: #555; line-height: 2; }

/* ── Timeline ── */
.timeline { max-width: 800px; margin: 0 auto; position: relative; }
.timeline::before {
  content: '';
  position: absolute;
  left: 120px; top: 0; bottom: 0;
  width: 1px;
  background: var(--border);
}
.timeline-item { display: flex; gap: 40px; margin-bottom: 48px; position: relative; }
.timeline-year {
  width: 80px;
  flex-shrink: 0;
  text-align: right;
  font-family: var(--font-en);
  font-size: 1rem;
  font-weight: 600;
  color: var(--red);
  padding-top: 4px;
}
.timeline-dot {
  position: absolute;
  left: 115px;
  top: 8px;
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--red);
  border: 2px solid var(--warm-white);
  box-shadow: 0 0 0 1px var(--red);
}
.timeline-content { padding-left: 32px; flex: 1; }
.timeline-content h4 { font-size: 1rem; font-weight: 600; margin-bottom: 8px; }
.timeline-content p { font-size: 0.9rem; color: #555; line-height: 1.9; }

/* ── Footer ── */
.footer {
  background: var(--black);
  color: rgba(255,255,255,0.55);
  padding: 64px 0 32px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}
.footer-brand-name { color: #fff; font-size: 1.1rem; font-weight: 600; margin: 16px 0 12px; }
.footer-brand-desc { font-size: 0.85rem; line-height: 1.9; max-width: 260px; }
.footer-logo { height: 48px; width: auto; }
.footer-col h4 { color: rgba(255,255,255,0.8); font-size: 0.85rem; letter-spacing: 0.15em; margin-bottom: 20px; }
.footer-col ul { display: flex; flex-direction: column; gap: 12px; }
.footer-col ul li a { font-size: 0.85rem; transition: color 0.2s; }
.footer-col ul li a:hover { color: #fff; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.78rem;
}
.footer-bottom a { transition: color 0.2s; }
.footer-bottom a:hover { color: #fff; }

/* ── Page Header (inner pages) ── */
.page-header {
  background: var(--black);
  padding: 140px 0 80px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.page-header::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 30% 50%, rgba(196,30,58,0.15) 0%, transparent 60%);
}
.page-header-content { position: relative; z-index: 1; }
.page-header-label { font-size: 0.72rem; letter-spacing: 0.35em; color: var(--gold); text-transform: uppercase; margin-bottom: 16px; }
.page-header h1 { font-size: clamp(2rem, 5vw, 3rem); color: #fff; }

/* ── Scroll Reveal ── */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* ── Responsive ── */
@media (max-width: 1024px) {
  .container { padding: 0 24px; }
  .highlights-grid { grid-template-columns: repeat(2, 1fr); }
  .highlight-item:nth-child(2) { border-right: none; }
  .empowerment-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .section { padding: 72px 0; }
  .nav-links, .lang-toggle { display: none; }
  .nav-hamburger { display: flex; }
  .about-preview { grid-template-columns: 1fr; gap: 48px; }
  .clinics-grid { grid-template-columns: 1fr; gap: 16px; }
  .articles-grid { grid-template-columns: 1fr; gap: 20px; }
  .form-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; gap: 48px; }
  .franchise-hero { padding: 100px 0; }
  .learning-cta { flex-direction: column; text-align: center; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; gap: 12px; text-align: center; }
  .timeline::before { left: 60px; }
  .timeline-year { width: 40px; font-size: 0.82rem; }
  .timeline-dot { left: 55px; }
  .timeline-content { padding-left: 20px; }
  .highlights-grid { grid-template-columns: repeat(2, 1fr); }
  .empowerment-grid { grid-template-columns: 1fr; }
  .hero-slogan::before, .hero-slogan::after { display: none; }
}

@media (max-width: 480px) {
  .hero-logo { width: 72px; height: 72px; }
  .nav-inner { padding: 0 20px; }
  .container { padding: 0 20px; }
  .clinic-card { padding: 28px 20px; }
  .about-preview-badge { left: 0; bottom: 0; }
}
