@charset "utf-8";
/* Shared Layout Styles — 香港多汗症中心 */

:root {
  --primary: #00796b;
  --primary-dark: #004d40;
  --primary-light: #e0f2f1;
  --accent: #26a69a;
  --bg-body: #f5f7f8;
  --bg-card: #fff;
  --bg-alt: #f0f4f5;
  --text: #263238;
  --text-muted: #546e7a;
  --border: #e0e6e8;
  --border-light: #f0f2f4;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.04);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.06);
  --radius: 10px;
  --radius-sm: 6px;
  --transition: 0.25s ease;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
body {
  font-family: -apple-system, "Segoe UI", "Microsoft JhengHei", "PingFang TC", sans-serif;
  font-size: 16px;
  line-height: 1.8;
  color: var(--text);
  background: var(--bg-body);
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--primary); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--primary-dark); }
ul { list-style: none; }

/* ============================================================
   STICKY HEADER GROUP
   ============================================================ */
.sticky-header-group {
  position: sticky;
  top: 0;
  z-index: 200;
  background: #fff;
}

/* ============================================================
   HEADER — single-line, balanced visual weight
   ============================================================ */
.site-header {
  background: #fff;
  border-bottom: 1px solid var(--border);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 40px;
  max-width: 1200px;
  margin: 0 auto;
}
.logo-wrap { flex-shrink: 0; }
.header-logo {
  display: block;
  width: 260px;
  height: 46px;
  background: url(../images/logo.jpg) no-repeat left center / contain;
  background: url(../images/logo.webp) no-repeat left center / contain;
}
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
  .header-logo {
    background-image: url(../images/logo@2x.webp);
  }
}
.header-nav {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-shrink: 0;
}
.contact-item {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 14px;
  font-weight: 400;
  color: var(--text-muted);
  text-decoration: none;
  padding: 0;
  background: none;
  border: none;
  transition: color var(--transition);
}
.contact-item:hover { color: var(--primary); text-decoration: underline; text-underline-offset: 3px; }
.contact-item svg { width: 16px; height: 16px; fill: var(--text-muted); transition: fill var(--transition); flex-shrink: 0; }
.contact-item:hover svg { fill: var(--primary); }
.whatsapp-item svg { fill: #25d366; }
.whatsapp-item:hover svg { fill: #128c7e; }
.whatsapp-item:hover { color: #128c7e; }
.clinic-item:hover { color: var(--primary); }
.cta-link {
  display: inline-block;
  font-size: 14px;
  font-weight: 500;
  color: var(--primary) !important;
  text-decoration: none;
  padding: 6px 18px;
  border: 1px solid var(--primary);
  border-radius: var(--radius-sm);
  transition: background var(--transition), color var(--transition);
}
.cta-link:hover { background: var(--primary); color: #fff !important; text-decoration: none; }

/* ============================================================
   BANNER + NAV — single unit with zero gap
   ============================================================ */
#banner-nav-wrap {
  display: block;
  width: 100%;
  margin: 0;
  padding: 0;
}
#banner {
  display: block;
  width: 100%;
  margin: 0;
  padding: 0;
}
#banner img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 420px;
  object-fit: cover;
  object-position: center top;
}
#topmenu {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  padding: 0 20px;
  background: #fff;
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  gap: 2px;
  margin: 0;
  font-size: 16px;
}
#topmenu a {
  display: inline-block;
  padding: 14px 18px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
  transition: all var(--transition);
  position: relative;
  white-space: nowrap;
}
#topmenu a::after {
  content: '';
  display: block;
  width: 0;
  height: 2.5px;
  background: var(--primary);
  border-radius: 2px;
  transition: width var(--transition);
  position: absolute;
  bottom: 0;
  left: 18px;
  right: 18px;
}
#topmenu a:hover { color: var(--primary); }
#topmenu a:hover::after, #topmenu a.tank::after { width: calc(100% - 36px); }
#topmenu a.tank { color: var(--primary); font-weight: 600; }

/* ============================================================
   BREADCRUMBS
   ============================================================ */
.breadcrumbs {
  max-width: 1100px;
  margin: 0 auto;
  padding: 4px 40px 0;
  font-size: 12px;
  color: var(--text-muted);
}
.breadcrumbs a {
  color: var(--primary);
  text-decoration: none;
}
.breadcrumbs a:hover { text-decoration: underline; }
.breadcrumbs a::after {
  content: ' › ';
  color: var(--text-muted);
  margin: 0 2px;
}
.breadcrumb-current {
  color: var(--text-muted);
}

/* ============================================================
   CONTENT
   ============================================================ */
#conent {
  padding: 24px 40px 48px;
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 40px;
}
.section-intro { display: flex; gap: 48px; align-items: flex-start; }
.intro-body { flex: 1; }
.intro-body h1 {
  font-size: 28px;
  font-weight: 700;
  color: var(--primary-dark);
  margin-bottom: 16px;
  position: relative;
  padding-bottom: 12px;
}
.intro-body h1::after {
  content: '';
  display: block;
  width: 48px;
  height: 3px;
  background: var(--accent);
  border-radius: 2px;
  margin-top: 12px;
}
.intro-body p { font-size: 16px; color: var(--text); line-height: 1.9; margin-bottom: 14px; }
.intro-certs {
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex-shrink: 0;
  align-items: center;
}
.row { display: flex; gap: 28px; }
.col-half { flex: 1; min-width: 0; }
.content-card {
  background: var(--bg-card);
  border-radius: var(--radius);
  padding: 36px 40px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  transition: box-shadow var(--transition), transform var(--transition);
}
.content-card:hover { box-shadow: var(--shadow-md); transform: translateY(-1px); }
.alt-bg { background: var(--bg-alt); }
.content-card h2 {
  font-size: 22px;
  font-weight: 700;
  color: var(--primary-dark);
  margin-top: 32px;
  margin-bottom: 18px;
  position: relative;
  padding-bottom: 10px;
}
.content-card h2::after {
  content: '';
  display: block;
  width: 36px;
  height: 2.5px;
  background: var(--accent);
  border-radius: 2px;
  margin-top: 10px;
}
.content-card ul li {
  position: relative;
  padding: 10px 0 10px 28px;
  font-size: 15px;
  color: var(--text);
  line-height: 1.7;
  border-bottom: 1px solid var(--border-light);
}
.content-card ul li:last-child { border-bottom: none; }
.content-card ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 16px;
  width: 10px;
  height: 10px;
  background: var(--primary-light);
  border: 2px solid var(--primary);
  border-radius: 50%;
}
.section-team { display: flex; gap: 40px; align-items: flex-start; }
.team-img {
  flex: 0 0 auto;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.team-body { flex: 1; }
.team-body p { font-size: 15px; color: var(--text); line-height: 1.8; margin-bottom: 12px; }
.team-body p a { color: var(--primary); text-decoration: underline; text-decoration-color: var(--primary-light); text-underline-offset: 3px; }
.team-body p a:hover { color: var(--primary-dark); }
.disclaimer {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.7;
  padding: 20px 24px;
  background: var(--bg-alt);
  border-radius: var(--radius-sm);
  border-left: 3px solid var(--accent);
}

/* ============================================================
   DIAGNOSIS CRITERIA
   ============================================================ */
.diagnosis-criteria {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin: 20px 0;
}
.criteria-item {
  background: var(--primary-light);
  border-radius: var(--radius-sm);
  padding: 14px 18px;
  font-weight: 600;
  color: var(--primary-dark);
  text-align: center;
  border: 1px solid rgba(0,121,107,0.15);
}
.doctor-advice {
  background: var(--bg-alt);
  border-radius: var(--radius);
  padding: 24px 32px;
  text-align: center;
  border-left: 4px solid var(--accent);
  margin: 20px 0;
}
.doctor-advice p {
  font-size: 17px;
  margin-bottom: 8px;
}
.doctor-advice p:last-child { margin-bottom: 0; }
.doctor-advice strong {
  color: var(--primary);
  font-size: 18px;
}

/* ============================================================
   COMPARISON TABLE
   ============================================================ */
.table-wrap {
  overflow-x: auto;
  margin: 20px 0;
}
.comparison-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  line-height: 1.6;
}
.comparison-table th,
.comparison-table td {
  padding: 12px 14px;
  border: 1px solid var(--border);
  text-align: left;
  vertical-align: top;
}
.comparison-table thead th {
  background: var(--primary-light);
  color: var(--primary-dark);
  font-weight: 600;
  text-align: center;
}
.comparison-table tbody tr:nth-child(even) {
  background: #f9fbfc;
}
.comparison-table tbody td:first-child {
  background: var(--primary-light);
  font-weight: 600;
  color: var(--primary-dark);
  white-space: nowrap;
}

/* ============================================================
   FAQ
   ============================================================ */
.faq-item {
  border-bottom: 1px solid var(--border-light);
  padding-bottom: 20px;
  margin-bottom: 20px;
}
.faq-item:last-child {
  border-bottom: none;
  margin-bottom: 0;
}
.faq-q {
  font-size: 18px;
  font-weight: 700;
  color: var(--primary-dark);
  margin-bottom: 10px;
  padding-left: 28px;
  position: relative;
}
.faq-q::before {
  content: 'Q';
  position: absolute;
  left: 0;
  top: 0;
  width: 22px;
  height: 22px;
  background: var(--primary);
  color: #fff;
  border-radius: 50%;
  font-size: 12px;
  line-height: 22px;
  text-align: center;
  font-weight: 700;
}
.faq-a {
  padding-left: 28px;
  color: var(--text);
}
.faq-a p { margin-bottom: 8px; font-size: 15px; line-height: 1.8; }
.faq-a p:last-child { margin-bottom: 0; }

/* ============================================================
   CONTACT PAGE
   ============================================================ */
.contact-info-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin: 20px 0;
}
.contact-info-item {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 15px;
}
.contact-info-item a { color: var(--primary); text-decoration: none; }
.contact-info-item a:hover { text-decoration: underline; }
.contact-info-item span { color: var(--text); }
.map-wrap { margin-top: 20px; }
.form-group {
  margin-bottom: 16px;
}
.form-group label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 6px;
}
.form-group input[type="text"],
.form-group input[type="email"],
.form-group textarea {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 15px;
  font-family: inherit;
  transition: border-color var(--transition);
  box-sizing: border-box;
}
.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 2px var(--primary-light);
}
.form-group textarea {
  height: 120px;
  resize: vertical;
}
.btn-submit {
  background: var(--primary);
  color: #fff;
  border: none;
  padding: 12px 32px;
  font-size: 16px;
  font-weight: 600;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: background var(--transition);
}
.btn-submit:hover { background: var(--primary-dark); }

/* ============================================================
   BOTTOM MENU
   ============================================================ */
#bottommenu {
  background: #37474f;
  padding: 32px 40px;
  text-align: center;
}
#bottommenu p {
  font-size: 14px;
  color: rgba(255,255,255,0.75);
  line-height: 2;
}
#bottommenu p a {
  color: rgba(255,255,255,0.9);
  border-bottom: 1px solid rgba(255,255,255,0.2);
  margin: 0 6px;
  transition: color var(--transition), border-color var(--transition);
}
#bottommenu p a:hover { color: #fff; border-bottom-color: rgba(255,255,255,0.6); text-decoration: none; }

/* ============================================================
   FOOTER
   ============================================================ */
#footer {
  background: #263238;
  padding: 20px 40px;
  text-align: center;
}
.copyright { font-size: 13px; color: rgba(255,255,255,0.5); }

/* ============================================================
   RESPONSIVE — 768px
   ============================================================ */
@media (max-width: 768px) {
  .header-inner { padding: 12px 20px; flex-wrap: wrap; justify-content: center; gap: 10px; }
  .header-logo { width: 200px; height: 38px; }
  .header-nav { gap: 14px; }
  .contact-item { font-size: 13px; }
  .contact-item svg { width: 14px; height: 14px; }
  .header-nav .cta-link { font-size: 11px; font-weight: 400; padding: 0; border: none; }
  #banner img { max-height: 220px; }
  #topmenu {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    padding: 8px 12px;
    gap: 4px;
    box-shadow: var(--shadow-sm);
  }
  #topmenu a {
    padding: 8px 4px;
    font-size: 13px;
    text-align: center;
    border-radius: var(--radius-sm);
  }
  #topmenu a::after { display: none; }
  #topmenu a.tank { background: var(--primary-light); border-radius: var(--radius-sm); }
  /* ---- Normalize blog nav to match static site ---- */
  #topmenu,
  #topmenu .blog-menu,
  #topmenu .blog-menu * {
    box-sizing: border-box !important;
  }
  #topmenu .blog-menu {
    display: grid !important;
    grid-template-columns: 1fr 1fr 1fr !important;
    gap: 4px !important;
    margin: 0 !important;
    padding: 0 !important;
    list-style: none !important;
    width: 100% !important;
  }
  #topmenu .blog-menu li {
    display: block !important;
    margin: 0 !important;
    padding: 0 !important;
    list-style: none !important;
  }
  #topmenu .blog-menu li a,
  #topmenu .blog-menu li a.nav-links {
    display: block !important;
    padding: 8px 4px !important;
    font-size: 13px !important;
    text-align: center !important;
    border-radius: var(--radius-sm) !important;
    line-height: 1.5 !important;
    font-weight: 100 !important;
    color: var(--text) !important;
    text-decoration: none !important;
    background: transparent !important;
  }
  #topmenu .blog-menu li.current-menu-item a,
  #topmenu .blog-menu li a:hover {
    background: var(--primary-light) !important;
    color: var(--primary-dark) !important;
  }
  #conent { padding: 28px 20px; }
  .section-intro { flex-direction: column; gap: 24px; }
  .intro-certs { flex-direction: row; gap: 8px; justify-content: center; }
  .intro-certs img { width: 100px; height: auto; }
  .row { flex-direction: column; }
  .content-card { padding: 28px 24px; }
  .intro-body h1 { font-size: 24px; }
  .content-card h2 { font-size: 18px; }
  .section-team { flex-direction: column; gap: 20px; }
  .team-img { width: 100%; }
  .disclaimer { font-size: 12px; padding: 16px 20px; }
}

/* ============================================================
   RESPONSIVE — 480px
   ============================================================ */
@media (max-width: 480px) {
  .header-inner { flex-direction: column; gap: 8px; align-items: center; }
  .header-logo { width: 160px; height: 32px; }
  .header-nav { gap: 10px; flex-wrap: wrap; justify-content: center; }
  .contact-item { font-size: 12px; }
  .contact-item svg { width: 13px; height: 13px; }
  .header-nav .cta-link { font-size: 11px; font-weight: 400; padding: 0; border: none; }
  #banner img { max-height: 160px; }
  #topmenu {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    padding: 6px 8px;
  }
  #topmenu a { padding: 7px 4px; font-size: 12px; }
  /* ---- Normalize blog nav to match static site (small screens) ---- */
  #topmenu .blog-menu {
    display: grid !important;
    grid-template-columns: 1fr 1fr 1fr !important;
    gap: 3px !important;
    margin: 0 !important;
    padding: 0 !important;
  }
  #topmenu .blog-menu li a,
  #topmenu .blog-menu li a.nav-links {
    padding: 7px 4px !important;
    font-size: 12px !important;
  }
  #conent { padding: 24px 16px; }
  .content-card { padding: 22px 18px; }
  .intro-body h1 { font-size: 20px; }
  .content-card h2 { font-size: 16px; }
  .intro-certs img { width: 85px; height: auto; }
  .team-body p { font-size: 14px; }
}