/* HipHEALTH 网站样式 — 千里江山图配色版 */
/* 字体：英文 Georgia，中文 黑体（STHeiti / Microsoft YaHei）*/
/* 配色灵感：北宋王希孟《千里江山图》— 青绿山水，金色点缀 */

:root {
  /* 千里江山图主色 */
  --blue-deep: #1a5276;      /* 远山深蓝 */
  --blue-mid: #2471a3;       /* 中景蓝 */
  --blue-teal: #1e7a8c;      /* 碧青 */
  --green-jade: #2e8b7a;     /* 主青绿 */
  --green-stone: #3a9d7c;    /* 石绿 */
  --green-light: #52b986;    /* 浅绿 */
  --gold: #c4975a;           /* 暖沙金（主金色）*/
  --gold-light: #d4b87a;     /* 浅金 */
  --gold-pale: #f0e6c8;      /* 淡金 */

  /* 功能色 */
  --ink: #1a3550;            /* 深靛蓝（代替原来的深灰）*/
  --ink-light: #2c4a6e;      /* 浅靛蓝 */
  --text: #2d3a4a;           /* 正文色 */
  --text-light: #5a7080;     /* 次要文字 */
  --border: #dde5ec;         /* 边框色（浅蓝灰）*/
  --border-gold: rgba(196,151,90,0.3); /* 金色边框 */

  /* 背景色 */
  --cream: #faf8f3;          /* 暖白底 */
  --cream-warm: #f5f0e2;     /* 暖沙底 */
  --cream-blue: #eef4f8;     /* 冷蓝白底 */
  --white: #ffffff;

  /* 阴影 */
  --shadow-sm: 0 2px 8px rgba(26,53,80,0.08);
  --shadow-md: 0 4px 20px rgba(26,53,80,0.10);
  --shadow-lg: 0 8px 32px rgba(26,53,80,0.12);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

/* 字体：英文 Times New Roman，中文 黑体，响应式（rem/clamp）兼容手机+桌面 */
body, html {
  font-family: "Georgia", "STHeiti Light", "STHeiti", "Microsoft YaHei", sans-serif;
  background: var(--cream-blue);
  color: var(--text);
  line-height: 1.8;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

/* ===== HEADER ===== */
header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: rgba(250,248,243,0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  padding: 0 2.5rem;
  height: 60px;
  display: flex; align-items: center; justify-content: space-between;
  box-shadow: 0 1px 0 var(--border-gold);
}

.brand {
  font-size: clamp(1.1rem, 2.5vw, 1.6rem);
  font-family: "Times New Roman", "STHeiti Light", "STHeiti", sans-serif;
  color: var(--ink);
  letter-spacing: 0.05em;
  text-decoration: none;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.brand-en { display: inline-flex; font-size: inherit; }
.brand-en span { display: inline; }
.brand-hip { color: var(--green-jade); }
.brand-CHENG { color: var(--blue-deep); }
.brand-cn {
  font-size: clamp(0.9rem, 2vw, 1.2rem);
  font-family: "Microsoft YaHei", "PingFang SC", "STHeiti", sans-serif;
  letter-spacing: 0.04em;
}
.brand-cn-blue { color: var(--green-jade); font-weight: 700; }
.brand-cn-gold { color: var(--blue-deep); font-weight: 700; }

nav { display: flex; gap: 0; }
nav a {
  color: var(--ink);
  text-decoration: none;
  padding: 0 1rem;
  height: 60px;
  display: flex; align-items: center;
  font-size: 0.95rem;
  font-family: "Microsoft YaHei", "PingFang SC", "STHeiti", sans-serif;
  font-weight: 500;
  letter-spacing: 0.03em;
  transition: color 0.2s;
  position: relative;
}
nav a::after {
  content: '';
  position: absolute;
  bottom: 0; left: 1rem; right: 1rem;
  height: 2px;
  background: linear-gradient(90deg, var(--green-jade), var(--blue-deep));
  opacity: 0;
  transition: opacity 0.2s;
}
nav a:hover { color: var(--blue-deep); }
nav a:hover::after { opacity: 1; }
nav a.active {
  color: var(--green-jade);
  font-size: 1.05rem;
  font-weight: 700;
}
nav a.active::after { opacity: 1; }

.lang-switch {
  font-size: 0.8rem;
  color: var(--gold);
  text-decoration: none;
  padding: 0.2rem 0.6rem;
  border: 1px solid var(--gold);
  border-radius: 3px;
  transition: all 0.2s;
  cursor: pointer;
  background: transparent;
  font-family: "Georgia", "STHeiti Light", "STHeiti", sans-serif;
}
.lang-switch:hover { background: var(--gold); color: white; }

.menu-toggle { display: none; cursor: pointer; color: var(--ink); font-size: 1.4rem; border: none; background: none; padding: 0.5rem; }

/* ===== HERO ===== */
.hero {
  min-height: 92vh;
  background: var(--white);
  display: flex; align-items: center; justify-content: center;
  text-align: center;
  padding: 80px 2rem 60px;
  position: relative;
  overflow: hidden;
}

/* 千里江山图背景 */
.hero-bg {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center;
  z-index: 0;
  opacity: 0.55;
}

/* 内容叠在图上 */
.hero-content { position: relative; z-index: 2; max-width: 780px; }

/* 底部渐变遮罩，让文字好读 */
.hero::after {
  content: '';
  position: absolute; bottom: 0; left: 0; right: 0;
  height: 45%;
  background: linear-gradient(to top, rgba(250,248,243,0.92) 0%, rgba(250,248,243,0.5) 60%, transparent 100%);
  z-index: 1;
  pointer-events: none;
}

/* 顶部细金线 */
.hero::before {
  content: '';
  position: absolute; top: 0; left: 50%; transform: translateX(-50%);
  width: 60px; height: 3px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  z-index: 2;
  pointer-events: none;
}

/* ===== HERO MOUNTAIN DECORATIONS ===== */
/* (已停用，改用 images/hero-bg.jpg 背景图) */
/* ===== STATS STRIP ===== */
.hero-tagline {
  font-size: clamp(1.05rem, 2.2vw, 1.35rem);
  color: var(--text-light);
  letter-spacing: 0.06em;
  margin-bottom: 0.8rem;
  font-family: "Georgia", "STHeiti Light", "STHeiti", sans-serif;
  font-weight: 400;
  font-style: italic;
}

.hero-tagline strong { font-weight: 700; }
.hero-tagline strong span { font-weight: 700; }

.hero-sub-cn {
  font-size: clamp(1.1rem, 2.5vw, 1.5rem);
  color: #1a3550;
  letter-spacing: 0.02em;
  margin-bottom: 1.8rem;
  font-family: "STHeiti Light", "STHeiti", "Microsoft YaHei", "PingFang SC", sans-serif;
  font-weight: 700;
  text-shadow: 0 1px 4px rgba(255,255,255,0.6), 0 2px 8px rgba(0,0,0,0.08);
  line-height: 1.8;
}

.hero-content { position: relative; z-index: 2; max-width: 780px; }

/* ===== STATS STRIP ===== */
.stats-strip {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 2px 12px rgba(26,53,80,0.06);
}
.stats-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-around;
  padding: 2rem 2rem;
  gap: 1rem;
}
.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
  flex: 1;
  min-width: 0;
}
.stat-icon { font-size: 1.5rem; line-height: 1; }
.stat-num {
  font-size: clamp(1.4rem, 3vw, 1.9rem);
  font-weight: 700;
  background: linear-gradient(135deg, var(--blue-deep), var(--green-jade));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-family: "Georgia", serif;
  line-height: 1.2;
  text-align: center;
}
.stat-label {
  font-size: 0.78rem;
  color: var(--text-light);
  letter-spacing: 0.08em;
}
.stat-divider {
  width: 1px;
  height: 40px;
  background: linear-gradient(180deg, transparent, var(--border), transparent);
  flex-shrink: 0;
}

.hero-badge {
  display: inline-block;
  font-size: 1.4rem;
  letter-spacing: 0.06em;
  color: rgba(255,255,255,0.7);
  margin-bottom: 2.5rem;
  line-height: 2;
}

/* Badge — Hip in jade, HEALTH in gold larger, others muted */
.badge-hip { color: var(--gold-light); font-weight: 700; font-size: 1.25em; }
.badge-HEALTH { color: rgba(255,255,255,0.5); font-weight: 400; font-size: 1.0em; }
.badge-H { color: var(--gold-light); font-weight: 700; font-size: 1.25em; }
.badge-C, .badge-E, .badge-N, .badge-G { color: var(--gold-light); font-weight: 700; font-size: 1.25em; }
.badge-i, .badge-p, .badge-l1, .badge-u, .badge-o1, .badge-d, .badge-comma, .badge-a, .badge-r2, .badge-n, .badge-c, .badge-b, .badge-t, .badge-e, .badge-w, .badge-k, .badge-g { color: rgba(255,255,255,0.4); font-weight: 400; }

/* Main title — Hip in gold, HEALTH in white bold */
.hero-title {
  font-size: clamp(2.5rem, 8vw, 5rem);
  font-weight: 700;
  letter-spacing: 0.06em;
  line-height: 1.05;
  margin-bottom: 0.5rem;
  font-family: "Georgia", "STHeiti Light", "STHeiti", sans-serif;
}
.title-hip { color: var(--green-jade); }
.title-CHENG { color: var(--blue-deep); }

.hero .subtitle {
  font-size: 1rem;
  color: var(--text-light);
  letter-spacing: 0.15em;
  margin-bottom: 2rem;
  font-family: "Georgia", "STHeiti Light", "STHeiti", sans-serif;
}

.hero-desc {
  font-size: 1.05rem;
  color: var(--text);
  line-height: 2;
  margin-bottom: 2.5rem;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
  text-shadow: 0 1px 3px rgba(255,255,255,0.5);
}

.hero-desc strong { color: var(--green-jade); font-weight: 600; }

/* ===== RESPONSIVE ===== */
.hero-actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

.btn-primary {
  color: white;
  background: linear-gradient(135deg, var(--blue-deep), var(--green-jade));
  padding: 0.85rem 2.4rem;
  border-radius: 4px;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: 0.08em;
  transition: all 0.25s;
  border: none;
  box-shadow: 0 2px 12px rgba(26,82,118,0.2);
}
.btn-primary:hover {
  background: linear-gradient(135deg, var(--green-jade), var(--blue-teal));
  box-shadow: 0 4px 20px rgba(46,139,122,0.25);
  transform: translateY(-1px);
}

.btn-secondary {
  background: transparent;
  color: var(--blue-deep);
  padding: 0.75rem 2rem;
  border-radius: 4px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.04em;
  transition: all 0.2s;
  border: 2px solid var(--blue-deep);
}
.btn-secondary:hover {
  border-color: var(--green-jade);
  color: var(--green-jade);
  background: rgba(46,139,122,0.05);
}

.scroll-hint {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  color: var(--gold);
  font-size: 0.72rem;
  letter-spacing: 0.15em;
  opacity: 0.5;
  animation: float 2.5s ease-in-out infinite;
  z-index: 1;
}
@keyframes float {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(6px); }
}

/* ===== SECTION ===== */
.section { padding: 5rem 2rem; }
.section-light { background: rgba(255,255,255,0.85); }
.section-warm { background: rgba(245,240,226,0.6); backdrop-filter: blur(4px); }
.section-blue { background: rgba(238,244,248,0.6); backdrop-filter: blur(4px); }

.section-title {
  text-align: center;
  margin-bottom: 3rem;
}
.section-title h2 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  color: var(--blue-deep);
  margin-bottom: 0.6rem;
  font-weight: 600;
}
.section-title p { color: var(--text-light); font-size: 1rem; }
.section-title .title-line {
  display: flex; align-items: center; justify-content: center; gap: 1rem; margin-bottom: 1rem;
}
.section-title .title-line::before,
.section-title .title-line::after {
  content: ''; width: 40px; height: 1px;
  background: linear-gradient(90deg, var(--green-jade), var(--gold));
  opacity: 0.5;
}
.section-title .title-line span {
  background: linear-gradient(135deg, var(--green-jade), var(--blue-deep));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-size: 1rem;
}

/* ===== CARDS ===== */
.content-grid {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.content-card {
  background: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s, box-shadow 0.25s;
  display: flex; flex-direction: column;
  border: 1px solid var(--border);
}
.content-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 24px rgba(26,53,80,0.12);
  border-color: rgba(46,139,122,0.25);
}

.card-thumb {
  height: 160px;
  display: flex; align-items: center; justify-content: center;
  font-size: 3rem;
  position: relative;
  background: linear-gradient(135deg, var(--cream-blue), var(--cream-warm));
}
.card-body { padding: 1.5rem; flex: 1; display: flex; flex-direction: column; }
.card-body h3 { font-size: 1.15rem; color: var(--blue-deep); margin-bottom: 0.6rem; font-weight: 600; }
.card-body p { font-size: 0.88rem; color: var(--text-light); line-height: 1.8; flex: 1; margin-bottom: 1rem; }
.card-link {
  color: var(--green-jade);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.85rem;
  display: inline-flex; align-items: center; gap: 0.3rem;
  transition: all 0.2s;
}
.card-link:hover {
  color: var(--blue-deep);
  gap: 0.6rem;
}

/* ===== FOOTER ===== */
footer {
  background: linear-gradient(160deg, #1a3550, #1e4a6a);
  color: rgba(255,255,255,0.5);
  padding: 3rem 2rem 1.5rem;
  border-top: 2px solid var(--border-gold);
}
.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 2.5rem;
  margin-bottom: 2rem;
}
.footer-brand {
  background: linear-gradient(135deg, var(--gold-light), var(--gold));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-size: 1.3rem;
  font-family: "Georgia", "STHeiti Light", "STHeiti", sans-serif;
  margin-bottom: 0.6rem;
}
.footer-desc { font-size: 0.85rem; line-height: 1.8; color: rgba(255,255,255,0.35); }
.footer-col h4 {
  background: linear-gradient(90deg, var(--gold-light), var(--blue-teal));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-size: 0.78rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 0.5rem; }
.footer-col a { color: rgba(255,255,255,0.45); text-decoration: none; font-size: 0.85rem; transition: color 0.2s; }
.footer-col a:hover { color: var(--gold-light); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.07);
  padding-top: 1.2rem;
  text-align: center;
  font-size: 0.78rem;
}

/* ===== BACK TO TOP ===== */
.back-top {
  position: fixed; bottom: 1.8rem; right: 1.8rem;
  width: 40px; height: 40px;
  background: white;
  border: 1px solid var(--border);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--gold);
  font-size: 1.1rem;
  text-decoration: none;
  transition: all 0.2s;
  z-index: 999;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  box-shadow: var(--shadow-sm);
}
.back-top.visible { opacity: 1; pointer-events: auto; }
.back-top:hover { background: var(--gold); color: white; border-color: var(--gold); }

/* ===== INNER PAGE HERO ===== */
.page-hero {
  background: var(--white);
  padding: 7rem 2rem 3.5rem;
  text-align: center;
  border-bottom: 1px solid var(--border);
  position: relative;
}
.page-hero h1 { color: var(--ink); font-size: clamp(2rem, 4vw, 2.8rem); margin-bottom: 0.6rem; font-weight: 600; }
.page-hero p { color: var(--text-light); font-size: 1rem; }
.page-hero .breadcrumb { margin-top: 1.2rem; font-size: 0.8rem; color: var(--text-light); }
.page-hero .breadcrumb a { color: var(--gold); text-decoration: none; }

/* ===== ARTICLE LIST ===== */
.article-list { max-width: 800px; margin: 0 auto; padding: 3.5rem 1rem; }
.article-item {
  padding: 1.8rem 0;
  border-bottom: 1px solid var(--border);
  display: flex; gap: 1.2rem; align-items: flex-start;
}
.article-item:last-child { border-bottom: none; }
.article-icon { font-size: 1.8rem; flex-shrink: 0; }
.article-item h3 { font-size: 1.15rem; color: var(--ink); margin-bottom: 0.4rem; }
.article-item h3 a { color: inherit; text-decoration: none; }
.article-item h3 a:hover { color: var(--gold); }
.article-item p { font-size: 0.88rem; color: var(--text-light); line-height: 1.8; }
.article-meta { font-size: 0.78rem; color: #aaa; margin-top: 0.4rem; }

/* ===== RESPONSIVE ===== */
@media (max-width: 960px) {
  .content-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-inner { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  .brand { font-size: 0.85rem; }
  .menu-toggle { display: block; }
  nav {
    position: fixed; top: 60px; right: -100%; width: 72%; max-width: 280px;
    background: rgba(250,248,244,0.98);
    flex-direction: column; gap: 0;
    transition: right 0.3s;
    border-left: 1px solid var(--border);
    backdrop-filter: blur(12px);
    box-shadow: -4px 0 20px rgba(0,0,0,0.06);
  }
  nav.open { right: 0; }
  nav a { height: 48px; padding: 0 1.5rem; border-bottom: 1px solid var(--border); }
  nav a::after { display: none; }
  .content-grid { grid-template-columns: 1fr; gap: 1rem; }
  .footer-inner { grid-template-columns: 1fr; gap: 1.8rem; }
  .hero { min-height: 85vh; padding: 70px 1.5rem 40px; }
  .hero-title { font-size: 2.4rem; }
  .hero-desc { font-size: 1rem; line-height: 1.9; }
  .hero .subtitle { font-size: 0.85rem; letter-spacing: 0.12em; }
  .hero-badge { font-size: 0.8rem; }
  .btn-primary, .btn-secondary { padding: 0.7rem 1.5rem; font-size: 0.88rem; }
  .section { padding: 3rem 1.2rem; }
  .section-title h2 { font-size: 1.5rem; }
  .card-body { padding: 1.2rem; }
  .card-body h3 { font-size: 1.05rem; }
  .page-hero { padding: 6rem 1.2rem 2.5rem; }
  .page-hero h1 { font-size: 1.8rem; }
  .article-item { padding: 1.2rem 0; gap: 0.8rem; }
  .article-item h3 { font-size: 1.05rem; }
  .article-item p { font-size: 0.85rem; }
  .footer-inner { padding: 0 0.5rem; }
  .footer-brand, .footer-desc { text-align: center; }
  .footer-col { text-align: left; }
  .footer-bottom { font-size: 0.72rem; padding: 0 0.5rem; }
}
@media (max-width: 480px) {
  header { padding: 0 1.2rem; }
  nav a { padding: 0 1.2rem; }
  .section { padding: 3.5rem 1.2rem; }
}

/* ===== PRINT ===== */
@media print {
  header, footer, .back-top { display: none; }
  .hero { min-height: auto; padding-top: 100px; }
}
/* ===== 统一页面块样式（content pages 共用） ===== */
.content-wrapper {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 1rem;
}

.page-block {
  background: white;
  border-radius: 12px;
  padding: 2rem;
  margin-bottom: 1.5rem;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
}

.page-block h2 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 1.2rem;
  padding-bottom: 0.6rem;
  border-bottom: 2px solid var(--green-jade);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

@media (max-width: 600px) {
  .page-block { padding: 1.2rem; }
}
