/*
Theme Name: Oxbridge & Ivy Global Advisory
Theme URI: https://example.com
Author: Global Student Advisory Team
Description: Bespoke bilingual (EN / 中文) WordPress theme harmonized with "Wood-Fire Brilliance (寒谷回春·木火通明)" palette & Bagua proportions for US & UK Student Advisory.
Version: 2.0.0
Requires at least: 6.0
Tested up to: 7.1
Requires PHP: 7.4
Text Domain: oxbridge-ivy
*/

:root {
  /* 木 (Wood - 帮身扎根·常春藤松柏青): 化泄癸亥旺水，助旺日元乙木 */
  --wood-900: #0f2e24;
  --wood-800: #153e30;
  --wood-700: #1e5240;
  --wood-100: #eaf2ee;

  /* 火 (Fire - 第一调候用神·丙丁暖阳琥珀赤金): 寒谷回春，暖局开丑土财库 */
  --fire-amber: #c86432;
  --fire-amber-hover: #b55424;
  --fire-gold: #d89b42;
  --fire-glow: #fdf3e7;

  /* 阳面宣纸底 (Yang Sunlit Parchment - 阴阳 7:3 阳明舒朗，驱散腊月寒湿) */
  --parchment: #faf6ef;
  --parchment-warm: #f3ece0;
  --surface: #ffffff;

  /* 墨色与边框 (温润松烟墨，忌死黑寒铁) */
  --ink-900: #182620;
  --ink-600: #495a52;
  --ink-400: #7a8b82;
  --border: #e4ded2;
  --border-gold: rgba(216, 155, 66, 0.35);

  /* 木型条达圆角与离中虚暖光阴影 */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --shadow-sm: 0 4px 16px rgba(21, 62, 48, 0.05);
  --shadow-md: 0 14px 36px rgba(21, 62, 48, 0.09);
  --shadow-warm: 0 8px 24px rgba(200, 100, 50, 0.22);
}

*, *::before, *::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Inter", "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  color: var(--ink-900);
  background-color: var(--parchment);
  line-height: 1.72;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: Georgia, "Palatino Linotype", "Book Antiqua", "Songti SC", "Noto Serif SC", serif;
  color: var(--wood-800);
  line-height: 1.26;
  margin-top: 0;
}

a {
  color: var(--wood-800);
  text-decoration: none;
  transition: all 0.22s ease;
}

.container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}

/* 顶部南离火位导引条 (Top Li-Fire Meridian Bar) */
.utility-bar {
  background: linear-gradient(90deg, var(--wood-900) 0%, #1a4636 65%, #2b3f2c 100%);
  color: rgba(255, 250, 242, 0.88);
  font-size: 13px;
  padding: 8px 0;
  border-top: 3px solid var(--fire-amber);
  border-bottom: 1px solid rgba(216, 155, 66, 0.25);
}

.utility-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.utility-zones span {
  display: inline-block;
  margin-right: 18px;
}

.utility-zones strong {
  color: var(--fire-gold);
  font-weight: 600;
}

/* Sticky Main Header (阳明温润玻璃态) */
.site-header {
  position: sticky;
  top: 0;
  z-index: 999;
  background: rgba(250, 246, 239, 0.96);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 76px;
  gap: 12px;
}

.site-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.brand-crest {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, var(--wood-700), var(--wood-900));
  border: 1.5px solid var(--fire-gold);
  box-shadow: 0 0 0 3px rgba(216, 155, 66, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.brand-text-title {
  display: block;
  font-family: Georgia, serif;
  font-size: 18px;
  font-weight: 700;
  color: var(--wood-900);
  letter-spacing: -0.01em;
  white-space: nowrap;
}

.brand-text-sub {
  display: block;
  font-size: 9.5px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--fire-amber);
  font-weight: 700;
  white-space: nowrap;
}

.main-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 12px;
}

.main-nav a {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-900);
  padding: 6px 0;
  position: relative;
  white-space: nowrap;
}

.main-nav a:hover,
.main-nav .current-menu-item > a {
  color: var(--fire-amber);
}

.main-nav .current-menu-item > a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -2px;
  height: 2.5px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--fire-amber), var(--fire-gold));
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.header-actions .btn {
  padding: 8px 13px;
  font-size: 13px;
  white-space: nowrap;
}

/* Language Switcher Pill (阴阳双鱼互转胶囊) */
.lang-switcher {
  display: inline-flex;
  align-items: center;
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 3px;
  font-size: 12.5px;
  flex-shrink: 0;
}

.lang-switcher a {
  padding: 5px 10px;
  border-radius: 999px;
  font-weight: 600;
  color: var(--ink-600);
  line-height: 1.2;
  white-space: nowrap;
}

.lang-switcher a.active {
  background: var(--wood-800);
  color: #ffffff;
}

/* Buttons (木火相生行动按钮) */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 14.5px;
  cursor: pointer;
  border: none;
  transition: all 0.22s ease;
}

.btn-primary {
  background: linear-gradient(135deg, var(--fire-amber) 0%, #d47638 100%);
  color: #ffffff !important;
  box-shadow: 0 4px 14px rgba(200, 100, 50, 0.24);
}

.btn-primary:hover {
  background: linear-gradient(135deg, var(--fire-amber-hover) 0%, var(--fire-amber) 100%);
  transform: translateY(-1px);
  box-shadow: var(--shadow-warm);
}

.btn-gold {
  background: linear-gradient(135deg, var(--fire-amber) 0%, var(--fire-gold) 100%);
  color: #ffffff !important;
  text-shadow: 0 1px 1px rgba(0, 0, 0, 0.12);
  box-shadow: var(--shadow-warm);
}

.btn-gold:hover {
  filter: brightness(1.05);
  transform: translateY(-2px);
}

.btn-outline-light {
  background: rgba(255, 255, 255, 0.06);
  color: #fffaf2 !important;
  border: 1px solid rgba(216, 155, 66, 0.55);
}

.btn-outline-light:hover {
  background: rgba(216, 155, 66, 0.16);
  border-color: var(--fire-gold);
  color: var(--fire-gold) !important;
}

/* Hero Banner: 寒谷回春 · 旭日照松林 (Warm Sunburst over Evergreen Pine) */
.hero-banner {
  background:
    radial-gradient(circle at 82% 22%, rgba(216, 155, 66, 0.26) 0%, rgba(200, 100, 50, 0.10) 32%, transparent 62%),
    linear-gradient(135deg, var(--wood-900) 0%, var(--wood-800) 58%, #1f543f 100%);
  color: #fffcf7;
  padding: 80px 0 74px;
  position: relative;
  overflow: hidden;
  border-bottom: 4px solid var(--fire-gold);
}

/* 右上角离火太阳同心日冕纹 (Li-Fire Solar Halo — 丙火照临) */
.hero-banner::before {
  content: "";
  position: absolute;
  right: -90px;
  top: -90px;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  border: 1px solid rgba(216, 155, 66, 0.28);
  box-shadow:
    inset 0 0 60px rgba(216, 155, 66, 0.12),
    0 0 0 48px rgba(216, 155, 66, 0.06),
    0 0 0 96px rgba(216, 155, 66, 0.03);
  pointer-events: none;
}

.eyebrow {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--fire-amber);
  background: var(--fire-glow);
  border: 1px solid var(--border-gold);
  padding: 5px 14px;
  border-radius: 999px;
  margin-bottom: 18px;
}

.hero-banner .eyebrow,
.page-hero-compact .eyebrow {
  color: #ffd591;
  background: rgba(216, 155, 66, 0.16);
  border-color: rgba(216, 155, 66, 0.42);
}

.hero-banner h1 {
  color: #fffdf9;
  font-size: clamp(32px, 4.1vw, 49px);
  max-width: 820px;
  margin-bottom: 20px;
}

.hero-lead {
  font-size: 18px;
  color: rgba(255, 250, 240, 0.88);
  max-width: 700px;
  margin-bottom: 32px;
}

.hero-cta-group {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 44px;
}

/* 震木四数战绩栏 (4 Pillars Metrics Strip) */
.metrics-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 20px;
  padding-top: 30px;
  border-top: 1px solid rgba(216, 155, 66, 0.25);
}

.metric-item {
  border-left: 2px solid rgba(216, 155, 66, 0.5);
  padding-left: 14px;
}

.metric-item strong {
  display: block;
  font-family: Georgia, serif;
  font-size: 28px;
  color: #ffcf7d;
}

.metric-item span {
  font-size: 13.5px;
  color: rgba(255, 250, 240, 0.82);
}

/* 阳面舒朗留白区块 (阴阳 7:3 开阔呼吸感) */
.section-block {
  padding: 76px 0;
}

.section-white {
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.section-header {
  max-width: 720px;
  margin-bottom: 44px;
}

.section-header h2 {
  font-size: clamp(26px, 3vw, 36px);
  margin-bottom: 12px;
}

.section-header p {
  color: var(--ink-600);
  font-size: 16.5px;
  margin: 0;
}

/* 梅花易数三才/离三列网格 */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(310px, 1fr));
  gap: 28px;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
  gap: 28px;
}

/* 木型修长条达卡片 + 离中虚暖光边框 (Wood Upward Growth + Li-Fire Top Bar) */
.pillar-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-top: 4px solid var(--wood-700);
  border-radius: var(--radius-md);
  padding: 34px 30px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 0.24s ease, box-shadow 0.24s ease, border-top-color 0.24s ease;
}

.pillar-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
  border-top-color: var(--fire-amber);
}

.pillar-num {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--fire-amber);
  text-transform: uppercase;
  margin-bottom: 10px;
}

.pillar-card h3 {
  font-size: 22px;
  margin-bottom: 12px;
}

.pillar-card p {
  color: var(--ink-600);
  font-size: 15px;
  margin-bottom: 18px;
}

.check-list {
  list-style: none;
  padding: 0;
  margin: 0 0 24px 0;
}

.check-list li {
  position: relative;
  padding-left: 22px;
  margin-bottom: 10px;
  font-size: 14.5px;
  color: var(--ink-900);
}

.check-list li::before {
  content: "✦";
  position: absolute;
  left: 0;
  color: var(--fire-amber);
  font-size: 12px;
  top: 2px;
}

.card-link {
  font-weight: 700;
  font-size: 14.5px;
  color: var(--wood-800);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.card-link:hover {
  color: var(--fire-amber);
}

/* 美英阴阳双轨对照卡 (US Yang Track & UK Yin-Academic Track) */
.track-card {
  background: var(--parchment);
  border: 1px solid var(--border);
  border-left: 4px solid var(--fire-gold);
  border-radius: var(--radius-md);
  padding: 34px;
}

.track-badge {
  display: inline-block;
  background: var(--wood-800);
  color: #ffcf7d;
  font-size: 12px;
  font-weight: 700;
  padding: 5px 13px;
  border-radius: 6px;
  margin-bottom: 14px;
  letter-spacing: 0.06em;
}

/* 暖土开库预约表单容器 (Fire Warms Earth Treasury Box) */
.consult-box {
  background: var(--surface);
  border: 1px solid var(--border-gold);
  border-top: 4px solid var(--fire-amber);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--shadow-md);
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px;
  margin-bottom: 18px;
}

.form-field label {
  display: block;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--wood-800);
  margin-bottom: 6px;
}

.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  padding: 11px 14px;
  border: 1px solid #d6d0c4;
  border-radius: var(--radius-sm);
  font-size: 14.5px;
  font-family: inherit;
  background: #fffdfa;
  color: var(--ink-900);
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--fire-amber);
  box-shadow: 0 0 0 3px rgba(200, 100, 50, 0.14);
}

.alert-success {
  background: var(--wood-100);
  border: 1px solid var(--wood-700);
  color: var(--wood-900);
  padding: 16px 20px;
  border-radius: var(--radius-sm);
  margin-bottom: 24px;
  font-weight: 600;
}

/* Subpage Compact Hero */
.page-hero-compact {
  background:
    radial-gradient(circle at 85% 25%, rgba(216, 155, 66, 0.22), transparent 55%),
    linear-gradient(135deg, var(--wood-900) 0%, var(--wood-800) 100%);
  color: #ffffff;
  padding: 58px 0 50px;
  border-bottom: 3px solid var(--fire-gold);
}

.page-hero-compact h1 {
  color: #ffffff;
  font-size: clamp(28px, 3.5vw, 42px);
  margin-bottom: 12px;
}

.page-hero-compact p {
  color: rgba(255, 250, 240, 0.85);
  font-size: 17px;
  max-width: 720px;
  margin: 0;
}

/* 底部厚土归藏页脚 (Deep Evergreen Rooted Footer) */
.site-footer {
  background: var(--wood-900);
  color: rgba(255, 250, 242, 0.8);
  padding: 64px 0 36px;
  border-top: 3px solid var(--fire-gold);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1.2fr;
  gap: 36px;
  margin-bottom: 42px;
}

.site-footer h4 {
  color: #ffcf7d;
  font-size: 16px;
  margin-bottom: 16px;
}

.site-footer ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.site-footer li {
  margin-bottom: 10px;
  font-size: 14px;
}

.site-footer a {
  color: rgba(255, 250, 242, 0.8);
}

.site-footer a:hover {
  color: #ffcf7d;
}

.footer-bottom {
  padding-top: 24px;
  border-top: 1px solid rgba(255, 250, 242, 0.12);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 13px;
  color: rgba(255, 250, 242, 0.58);
}

/* 右下角引气聚财悬浮球 */
.floating-contact {
  position: fixed;
  right: 22px;
  bottom: 24px;
  z-index: 990;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.float-pill {
  background: linear-gradient(135deg, var(--fire-amber) 0%, #d47a39 100%);
  color: #ffffff !important;
  border: 1px solid rgba(255, 255, 255, 0.35);
  padding: 11px 18px;
  border-radius: 999px;
  font-size: 13.5px;
  font-weight: 600;
  box-shadow: var(--shadow-warm);
  display: flex;
  align-items: center;
  gap: 8px;
}

.float-pill:hover {
  transform: translateY(-2px);
  filter: brightness(1.06);
}

@media (max-width: 960px) {
  .header-inner {
    flex-wrap: wrap;
    padding: 12px 0;
  }
  .main-nav {
    order: 3;
    width: 100%;
    overflow-x: auto;
    padding-bottom: 4px;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 600px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }
}
