/*
Theme Name: 普仁堂虎乳靈芝
Theme URI: https://www.pharma.hk
Author: 香江製藥（香港）有限公司
Author URI: https://www.pharma.hk
Description: 普仁堂官方網站
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 7.4
License: Private
Text Domain: pharenhall
Tags: chinese-medicine, health, traditional, responsive
*/

/* ==========================================
   CSS 變量 / 色彩系統
   ========================================== */
:root {
  --color-gold: #C19A6B;
  --color-gold-light: #D4A574;
  --color-gold-lighter: #E8B882;
  --color-gold-pale: #FFF8E7;
  --color-gold-cream: #F5E6D3;
  --color-red: #D32F2F;
  --color-red-light: #E57373;
  --color-dark: #2C2416;
  --color-dark-mid: #3D3020;
  --color-text: #1a1a1a;
  --color-text-muted: #666666;
  --color-bg: #ffffff;
  --font-main: 'Noto Serif TC', 'Source Han Serif TC', 'Times New Roman', serif;
  --font-body: 'Noto Sans TC', 'Microsoft JhengHei', sans-serif;
}

/* ==========================================
   基礎重置
   ========================================== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

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

body {
  font-family: var(--font-body);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

a { text-decoration: none; color: inherit; transition: color 0.3s; }

ul { list-style: none; }

/* ==========================================
   字體載入
   ========================================== */
@import url('https://fonts.googleapis.com/css2?family=Noto+Serif+TC:wght@400;500;600;700&family=Noto+Sans+TC:wght@300;400;500;700&display=swap');

/* ==========================================
   工具類
   ========================================== */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

@media (min-width: 640px) { .container { padding: 0 24px; } }
@media (min-width: 1024px) { .container { padding: 0 32px; } }

.section-title {
  font-family: var(--font-main);
  font-size: 2rem;
  color: var(--color-text);
  margin-bottom: 1rem;
}

@media (min-width: 768px) { .section-title { font-size: 2.5rem; } }

.section-title span {
  background: linear-gradient(135deg, var(--color-gold), var(--color-red));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-divider {
  width: 80px;
  height: 4px;
  background: linear-gradient(90deg, var(--color-gold), var(--color-red));
  margin: 0 auto 2rem;
  border-radius: 2px;
}

.btn-primary {
  display: inline-block;
  padding: 14px 32px;
  background: linear-gradient(135deg, var(--color-gold), var(--color-gold-light));
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  font-family: var(--font-body);
  cursor: pointer;
  transition: all 0.3s;
  text-align: center;
}

.btn-primary:hover {
  box-shadow: 0 8px 25px rgba(193,154,107,0.4);
  transform: translateY(-2px);
  color: #fff;
}

.btn-outline {
  display: inline-block;
  padding: 14px 32px;
  background: transparent;
  color: var(--color-gold);
  border: 2px solid var(--color-gold);
  border-radius: 8px;
  font-size: 1rem;
  font-family: var(--font-body);
  cursor: pointer;
  transition: all 0.3s;
  text-align: center;
}

.btn-outline:hover {
  background: var(--color-gold);
  color: #fff;
}

/* ==========================================
   導航欄
   ========================================== */
#site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(10px);
  box-shadow: 0 2px 20px rgba(0,0,0,0.08);
  transition: all 0.3s;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 110px;
}

.site-logo {
  display: flex;
  align-items: center;
  gap: 4px;
  line-height: 1.2;
  text-decoration: none;
  padding-left: 0;
  margin-left: 0;
}

.logo-img {
  height: 100px;
  width: auto;
  display: block;
}

.logo-text-group {
  display: flex;
  flex-direction: column;
}

.logo-main {
  font-family: var(--font-main);
  font-size: 1.5rem;
  font-weight: 700;
  background: linear-gradient(135deg, var(--color-gold), var(--color-red));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  white-space: nowrap;
}

.logo-sub {
  font-size: 0.65rem;
  color: var(--color-text-muted);
  letter-spacing: 0.05em;
  white-space: nowrap;
}

.main-nav { display: none; }

@media (min-width: 768px) {
  .main-nav {
    display: flex;
    align-items: center;
    gap: 2rem;
  }
}

.main-nav a {
  font-size: 0.95rem;
  color: var(--color-text);
  padding: 0.5rem 0;
  position: relative;
  transition: color 0.3s;
}

.main-nav a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--color-gold), var(--color-red));
  transition: width 0.3s;
}

.main-nav a:hover { color: var(--color-gold); }
.main-nav a:hover::after { width: 100%; }

.header-contact a {
  font-size: 0.85rem;
  color: var(--color-gold);
  padding: 8px 16px;
  border: 1px solid var(--color-gold);
  border-radius: 20px;
  transition: all 0.3s;
}

.header-contact a:hover {
  background: var(--color-gold);
  color: #fff;
}

/* 漢堡選單 */
.menu-toggle {
  display: flex;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

@media (min-width: 768px) { .menu-toggle { display: none; } }

.menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-gold);
  border-radius: 2px;
  transition: all 0.3s;
}

.mobile-menu {
  display: none;
  background: #fff;
  border-top: 1px solid #f0f0f0;
  padding: 1rem 0;
}

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

.mobile-menu a {
  display: block;
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
  color: var(--color-text);
  border-bottom: 1px solid #f5f5f5;
  transition: color 0.3s;
}

.mobile-menu a:hover { color: var(--color-gold); }

/* ==========================================
   英雄區
   ========================================== */
#hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 70px;
  background: linear-gradient(135deg, #F5F0E8 0%, #FFF8E7 50%, #F5E6D3 100%);
  position: relative;
  overflow: hidden;
}

.hero-pattern {
  position: absolute;
  inset: 0;
  opacity: 0.04;
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M30 0L30 60M0 30L60 30' stroke='%23C19A6B' stroke-width='1' fill='none'/%3E%3C/svg%3E");
  background-size: 60px 60px;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: center;
  padding: 4rem 0;
  position: relative;
  z-index: 1;
}

@media (min-width: 768px) {
  .hero-inner { grid-template-columns: 1fr 1fr; }
}

.hero-badge {
  display: inline-block;
  padding: 8px 20px;
  background: linear-gradient(135deg, var(--color-gold), var(--color-gold-light));
  color: #fff;
  border-radius: 20px;
  font-size: 0.9rem;
  margin-bottom: 1.5rem;
}

.hero-title {
  font-family: var(--font-main);
  font-size: 3rem;
  line-height: 1.2;
  margin-bottom: 1.5rem;
  color: var(--color-text);
}

@media (min-width: 768px) { .hero-title { font-size: 3.5rem; } }
@media (min-width: 1024px) { .hero-title { font-size: 4rem; } }

.hero-title .gradient-text {
  background: linear-gradient(135deg, var(--color-gold), var(--color-red));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: block;
}

.hero-desc {
  font-size: 1.1rem;
  color: #555;
  line-height: 1.8;
  margin-bottom: 2.5rem;
}

.hero-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

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

.hero-image-box {
  position: relative;
}

.hero-image-glow {
  position: absolute;
  inset: -16px;
  background: linear-gradient(135deg, var(--color-gold), var(--color-red));
  border-radius: 24px;
  opacity: 0.15;
  filter: blur(24px);
}

.hero-image-box img {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 420px;
  filter: drop-shadow(0 20px 40px rgba(0,0,0,0.15));
}

/* ==========================================
   關於虎乳靈芝
   ========================================== */
#about {
  padding: 6rem 0;
  background: #fff;
}

#about .text-center { text-align: center; }
#about .section-intro {
  color: var(--color-text-muted);
  max-width: 700px;
  margin: 0 auto 4rem;
  font-size: 1.05rem;
  line-height: 1.8;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .about-grid { grid-template-columns: repeat(4, 1fr); }
}

.about-card {
  text-align: center;
  padding: 2rem 1.5rem;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--color-gold-pale), var(--color-gold-cream));
  transition: all 0.3s;
}

.about-card:hover {
  box-shadow: 0 12px 40px rgba(0,0,0,0.1);
  transform: translateY(-6px);
}

.about-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--color-gold), var(--color-gold-light));
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
  font-size: 1.8rem;
}

.about-card h3 {
  font-family: var(--font-main);
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}

.about-card p {
  font-size: 0.9rem;
  color: var(--color-text-muted);
  line-height: 1.6;
}

/* ==========================================
   產品中心
   ========================================== */
#products {
  padding: 6rem 0;
  background: linear-gradient(180deg, #fff 0%, var(--color-gold-pale) 100%);
}

.products-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: center;
}

@media (min-width: 768px) {
  .products-grid { grid-template-columns: 1fr 1fr; }
}

.product-image-wrap { display: flex; justify-content: center; }

.product-image-box {
  position: relative;
}

.product-glow {
  position: absolute;
  inset: -16px;
  background: linear-gradient(135deg, var(--color-gold), var(--color-red));
  border-radius: 24px;
  opacity: 0.15;
  filter: blur(24px);
}

.product-image-box img {
  position: relative;
  z-index: 1;
  max-width: 380px;
  width: 100%;
}

.product-info h3 {
  font-family: var(--font-main);
  font-size: 1.8rem;
  margin-bottom: 1rem;
}

.product-desc {
  color: var(--color-text-muted);
  line-height: 1.8;
  margin-bottom: 2rem;
}

.spec-box {
  background: #fff;
  border-radius: 16px;
  padding: 1.5rem;
  box-shadow: 0 4px 20px rgba(0,0,0,0.06);
  margin-bottom: 1.5rem;
}

.spec-box h4 {
  font-size: 1.1rem;
  margin-bottom: 1rem;
}

.spec-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
  font-size: 0.95rem;
  color: #444;
}

.spec-check {
  color: var(--color-gold);
  font-size: 1.1rem;
  flex-shrink: 0;
  margin-top: 2px;
}

.ingredient-box {
  background: linear-gradient(135deg, var(--color-gold-pale), var(--color-gold-cream));
  border-radius: 16px;
  padding: 1.5rem;
}

.ingredient-box h4 {
  font-size: 1.1rem;
  margin-bottom: 1rem;
}

.ingredient-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.ingredient-item span:first-child {
  display: block;
  color: var(--color-gold);
  font-weight: 500;
  margin-bottom: 2px;
}

.ingredient-item span:last-child {
  font-size: 0.85rem;
  color: var(--color-text-muted);
}

/* ==========================================
   產品功效
   ========================================== */
#benefits {
  padding: 6rem 0 10rem;
  background: var(--color-gold-pale);
}

.benefits-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  margin-bottom: 4rem;
}

@media (min-width: 640px) { .benefits-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .benefits-grid { grid-template-columns: repeat(3, 1fr); } }

.benefit-card {
  background: linear-gradient(135deg, #fff, var(--color-gold-pale));
  border-radius: 16px;
  padding: 2rem;
  box-shadow: 0 4px 20px rgba(0,0,0,0.06);
  position: relative;
  overflow: hidden;
  transition: all 0.3s;
}

.benefit-card:hover {
  box-shadow: 0 12px 40px rgba(0,0,0,0.12);
  transform: translateY(-4px);
}

.benefit-icon {
  width: 56px;
  height: 56px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  font-size: 1.5rem;
}

.benefit-icon.gold { background: linear-gradient(135deg, var(--color-gold), var(--color-gold-light)); }
.benefit-icon.red { background: linear-gradient(135deg, var(--color-red), var(--color-red-light)); }
.benefit-icon.dark { background: linear-gradient(135deg, var(--color-gold), #A67C52); }

.benefit-card h3 {
  font-family: var(--font-main);
  font-size: 1.15rem;
  margin-bottom: 0.75rem;
  transition: color 0.3s;
}

.benefit-card:hover h3 { color: var(--color-gold); }

.benefit-card p {
  font-size: 0.9rem;
  color: var(--color-text-muted);
  line-height: 1.7;
}

.benefit-card::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--color-gold), var(--color-red));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s;
}

.benefit-card:hover::after { transform: scaleX(1); }

.why-box {
  background: linear-gradient(135deg, var(--color-gold), var(--color-red));
  border-radius: 24px;
  padding: 3rem 2rem;
  color: #fff;
  text-align: center;
  margin-bottom: 2rem;
}

.why-box h3 {
  font-family: var(--font-main);
  font-size: 1.8rem;
  margin-bottom: 1rem;
}

.why-box p {
  font-size: 1rem;
  opacity: 0.9;
  max-width: 700px;
  margin: 0 auto 2.5rem;
  line-height: 1.8;
}

.why-stats {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
}

.why-stat {
  min-width: 160px;
}

.why-stat .num {
  font-family: var(--font-main);
  font-size: 2.5rem;
  font-weight: 700;
  display: block;
  margin-bottom: 0.25rem;
}

.why-stat span:last-child {
  font-size: 0.9rem;
  opacity: 0.85;
}

/* ==========================================
   新聞動態
   ========================================== */
#news {
  padding: 6rem 0;
  background: var(--color-gold-pale);
}

.news-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

@media (min-width: 640px) { .news-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .news-grid { grid-template-columns: repeat(3, 1fr); } }

.news-card {
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0,0,0,0.06);
  transition: all 0.3s;
}

.news-card:hover {
  box-shadow: 0 12px 40px rgba(0,0,0,0.12);
  transform: translateY(-4px);
}

.news-card-img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  background: linear-gradient(135deg, var(--color-gold-pale), var(--color-gold-cream));
}

.news-card-img-placeholder {
  width: 100%;
  height: 200px;
  background: linear-gradient(135deg, var(--color-gold-pale), var(--color-gold-cream));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
}

.news-card-body { padding: 1.5rem; }

.news-date {
  font-size: 0.8rem;
  color: var(--color-gold);
  margin-bottom: 0.5rem;
}

.news-card h3 {
  font-family: var(--font-main);
  font-size: 1.05rem;
  margin-bottom: 0.75rem;
  line-height: 1.5;
}

.news-card p {
  font-size: 0.9rem;
  color: var(--color-text-muted);
  line-height: 1.6;
  margin-bottom: 1rem;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.news-card a.read-more {
  font-size: 0.85rem;
  color: var(--color-gold);
  border-bottom: 1px solid var(--color-gold);
  padding-bottom: 2px;
  transition: all 0.3s;
}

.news-card a.read-more:hover { color: var(--color-red); border-color: var(--color-red); }

.news-more { text-align: center; margin-top: 3rem; }

/* ==========================================
   頁腳
   ========================================== */
#site-footer {
  background: linear-gradient(135deg, var(--color-dark), var(--color-dark-mid));
  color: #fff;
  padding: 4rem 0 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  margin-bottom: 3rem;
}

@media (min-width: 768px) {
  .footer-grid { grid-template-columns: repeat(3, 1fr); }
}

.footer-brand .brand-name {
  font-family: var(--font-main);
  font-size: 1.8rem;
  background: linear-gradient(135deg, var(--color-gold-light), var(--color-gold-lighter));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 0.5rem;
}

.footer-brand .brand-full {
  color: #ccc;
  font-size: 0.9rem;
  margin-bottom: 0.25rem;
}

.footer-brand .brand-en {
  color: #999;
  font-size: 0.8rem;
}

.footer-col h4 {
  color: var(--color-gold-light);
  font-size: 1rem;
  margin-bottom: 1rem;
}

.footer-col a,
.footer-col p,
.footer-col address {
  color: #ccc;
  font-size: 0.9rem;
  line-height: 1.7;
  font-style: normal;
}

.footer-col a:hover { color: var(--color-gold-light); }

.footer-divider {
  border: none;
  border-top: 1px solid rgba(255,255,255,0.1);
  margin-bottom: 1.5rem;
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  font-size: 0.85rem;
  color: #999;
}

.footer-motto { color: var(--color-gold-light); font-weight: 500; }

.footer-disclaimer {
  text-align: center;
  font-size: 0.75rem;
  color: #777;
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255,255,255,0.05);
  line-height: 1.7;
}

/* ==========================================
   單篇文章頁
   ========================================== */
.page-hero {
  padding: 120px 0 60px;
  background: linear-gradient(135deg, var(--color-gold-pale), var(--color-gold-cream));
  text-align: center;
}

.page-hero h1 {
  font-family: var(--font-main);
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.post-meta { color: var(--color-gold); font-size: 0.9rem; margin-bottom: 0.5rem; }

.post-content-wrap {
  max-width: 800px;
  margin: 0 auto;
  padding: 3rem 1.5rem;
}

.post-content h2,
.post-content h3 { font-family: var(--font-main); margin: 2rem 0 1rem; }
.post-content p { margin-bottom: 1.2rem; color: #444; line-height: 1.8; }
.post-content img { border-radius: 12px; margin: 1.5rem 0; }
.post-content ul,
.post-content ol { padding-left: 1.5rem; margin-bottom: 1.2rem; }
.post-content li { margin-bottom: 0.5rem; color: #444; line-height: 1.7; }

/* ==========================================
   回應式調整
   ========================================== */
@media (max-width: 640px) {
  .section-title { font-size: 1.7rem; }
  .hero-title { font-size: 2.2rem; }
  .why-box h3 { font-size: 1.4rem; }
}
