/* 五行膳官网 · wxs2026 共用样式 · Apple 官网风 (T-0614 website-revamp line1)
   唯一视觉来源：docs/website-ui.md */

:root {
  --bg-white: #ffffff;
  --bg-grey: #f5f5f7;
  --text-dark: #1d1d1f;
  --text-grey: #6e6e73;
  --accent: #bf6a39;        /* 五行膳暖色 · 按钮/连结强调 */
  --accent-dark: #a4592e;
  --border: #d2d2d7;
  --card-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
  --card-shadow-hover: 0 12px 40px rgba(0, 0, 0, 0.1);
  --max-w: 1100px;
  --nav-h: 52px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: "PingFang SC", "Microsoft YaHei", -apple-system, BlinkMacSystemFont, "Helvetica Neue", sans-serif;
  font-weight: 400;
  color: var(--text-dark);
  background: var(--bg-white);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: inherit; text-decoration: none; }

/* ===== 导航列 ===== */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 1000;
  height: var(--nav-h);
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}
.site-nav__inner {
  max-width: var(--max-w);
  margin: 0 auto;
  height: 100%;
  padding: 0 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.site-nav__logo {
  font-size: 18px;
  font-weight: 600;
  letter-spacing: 1px;
  color: var(--text-dark);
}
.site-nav__menu {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
}
.site-nav__item { position: relative; }
.site-nav__link {
  display: block;
  padding: 8px 14px;
  font-size: 14px;
  font-weight: 400;
  letter-spacing: 0.5px;
  color: var(--text-dark);
  border-radius: 8px;
  transition: color 0.2s, background 0.2s;
  white-space: nowrap;
}
.site-nav__link:hover { color: var(--accent); }
.site-nav__item.is-active > .site-nav__link { color: var(--accent); }

/* 子选单 */
.site-nav__sub {
  position: absolute;
  top: calc(100% + 6px);
  left: 50%;
  transform: translateX(-50%) translateY(8px);
  min-width: 200px;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 14px;
  box-shadow: var(--card-shadow);
  padding: 8px;
  list-style: none;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.22s, transform 0.22s, visibility 0.22s;
}
.site-nav__item:hover .site-nav__sub {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}
.site-nav__sub a {
  display: block;
  padding: 9px 14px;
  font-size: 13.5px;
  color: var(--text-dark);
  border-radius: 8px;
  transition: background 0.18s, color 0.18s;
  white-space: nowrap;
}
.site-nav__sub a:hover { background: var(--bg-grey); color: var(--accent); }

/* 汉堡（手机） */
.site-nav__toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  width: 28px;
  height: 28px;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
}
.site-nav__toggle span {
  display: block;
  height: 1.5px;
  width: 22px;
  background: var(--text-dark);
  transition: transform 0.3s, opacity 0.3s;
}

/* ===== Hero 区 ===== */
.hero {
  text-align: center;
  padding: 120px 22px 96px;
  background: var(--bg-white);
}
.hero--grey { background: var(--bg-grey); }
.hero__title {
  font-size: clamp(34px, 5.4vw, 60px);
  font-weight: 600;
  letter-spacing: -0.5px;
  line-height: 1.12;
  max-width: 920px;
  margin: 0 auto 22px;
}
.hero__subtitle {
  font-size: clamp(16px, 2.1vw, 21px);
  font-weight: 400;
  color: var(--text-grey);
  max-width: 760px;
  margin: 0 auto;
  line-height: 1.55;
}

/* ===== 按钮 ===== */
.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
  margin-top: 38px;
}
.btn {
  display: inline-block;
  padding: 12px 26px;
  font-size: 15px;
  font-weight: 400;
  border-radius: 980px;
  transition: transform 0.2s, background 0.2s, box-shadow 0.2s;
  cursor: pointer;
  border: 1px solid transparent;
}
.btn--primary { background: var(--accent); color: #fff; }
.btn--primary:hover { background: var(--accent-dark); transform: scale(1.04); }
.btn--ghost {
  background: transparent;
  color: var(--accent);
  border-color: var(--accent);
}
.btn--ghost:hover { background: rgba(191, 106, 57, 0.08); transform: scale(1.04); }

/* ===== 通用区块 ===== */
.section {
  padding: 92px 22px;
}
.section--grey { background: var(--bg-grey); }
.section__inner { max-width: var(--max-w); margin: 0 auto; }
.section__head { text-align: center; margin-bottom: 56px; }
.section__title {
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 600;
  letter-spacing: -0.3px;
  line-height: 1.18;
  margin-bottom: 18px;
}
.section__lead {
  font-size: clamp(15px, 1.9vw, 19px);
  color: var(--text-grey);
  max-width: 760px;
  margin: 0 auto;
  line-height: 1.6;
}

/* 文章式内容 */
.prose { max-width: 820px; margin: 0 auto; }
.prose p {
  font-size: 17px;
  color: var(--text-dark);
  line-height: 1.75;
  margin-bottom: 18px;
}
.prose .muted { color: var(--text-grey); }
.prose ol, .prose ul {
  margin: 0 0 22px 0;
  padding-left: 24px;
}
.prose li {
  font-size: 17px;
  line-height: 1.8;
  margin-bottom: 8px;
}

/* ===== 卡片网格 ===== */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 26px;
}
.card {
  background: var(--bg-white);
  border-radius: 18px;
  padding: 34px 30px;
  box-shadow: var(--card-shadow);
  transition: transform 0.28s, box-shadow 0.28s;
}
.section--grey .card { background: #fff; }
.card:hover { transform: translateY(-6px); box-shadow: var(--card-shadow-hover); }
.card__num {
  font-size: 14px;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 12px;
}
.card__title {
  font-size: 21px;
  font-weight: 600;
  margin-bottom: 12px;
}
.card__title-lg { font-size: 24px; }
.card__text {
  font-size: 15.5px;
  color: var(--text-grey);
  line-height: 1.65;
}
.card__link {
  display: inline-block;
  margin-top: 18px;
  font-size: 15px;
  color: var(--accent);
  font-weight: 400;
}
.card__link:hover { text-decoration: underline; }
a.card { display: block; color: inherit; }

/* tag 列 */
.tag-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  max-width: 880px;
  margin: 0 auto;
}
.tag {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 980px;
  padding: 10px 22px;
  font-size: 15px;
  color: var(--text-dark);
}
.section--grey .tag { background: #fff; }

/* 列表式（适合对象/提供/场景） */
.feature-list {
  list-style: none;
  max-width: 820px;
  margin: 0 auto;
}
.feature-list li {
  font-size: 16.5px;
  line-height: 1.7;
  padding: 14px 0 14px 30px;
  border-bottom: 1px solid var(--border);
  position: relative;
  color: var(--text-dark);
}
.feature-list li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 22px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
}
.feature-list li:last-child { border-bottom: none; }

/* 双栏 split */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  max-width: var(--max-w);
  margin: 0 auto;
}
.split__block {
  background: #fff;
  border-radius: 18px;
  padding: 38px 34px;
  box-shadow: var(--card-shadow);
}
.split__block h3 {
  font-size: 22px;
  font-weight: 600;
  margin-bottom: 16px;
}
.split__block .sub { color: var(--text-grey); font-size: 15px; margin-bottom: 18px; }

/* 强调语 */
.pull-quote {
  text-align: center;
  max-width: 880px;
  margin: 0 auto;
  font-size: clamp(20px, 2.6vw, 28px);
  font-weight: 600;
  line-height: 1.5;
  letter-spacing: -0.2px;
}

/* CTA 区块 */
.cta {
  text-align: center;
  padding: 96px 22px;
  background: var(--bg-grey);
}
.cta__title {
  font-size: clamp(24px, 3.4vw, 38px);
  font-weight: 600;
  margin-bottom: 28px;
  line-height: 1.3;
}

/* ===== 表单 ===== */
.form-wrap { max-width: 680px; margin: 0 auto; }
.form-field { margin-bottom: 22px; }
.form-field label {
  display: block;
  font-size: 14.5px;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--text-dark);
}
.form-field .req { color: var(--accent); margin-left: 3px; }
.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  padding: 13px 16px;
  font-size: 15.5px;
  font-family: inherit;
  color: var(--text-dark);
  background: var(--bg-grey);
  border: 1px solid transparent;
  border-radius: 12px;
  transition: border 0.2s, background 0.2s;
}
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: none;
  background: #fff;
  border-color: var(--accent);
}
.form-field textarea { resize: vertical; min-height: 130px; }
.form-msg {
  margin-top: 18px;
  padding: 14px 18px;
  border-radius: 12px;
  font-size: 15px;
  display: none;
}
.form-msg.ok { display: block; background: #e8f5ec; color: #1d6b35; }
.form-msg.err { display: block; background: #fbe9e7; color: #b3261e; }

/* ===== Footer ===== */
.site-footer {
  background: var(--bg-grey);
  border-top: 1px solid var(--border);
  padding: 50px 22px 40px;
  font-size: 13px;
  color: var(--text-grey);
}
.site-footer__inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 24px;
}
.site-footer__brand { font-size: 16px; font-weight: 600; color: var(--text-dark); }
.site-footer__tagline { margin-top: 8px; max-width: 380px; line-height: 1.6; }
.site-footer__links { display: flex; flex-wrap: wrap; gap: 26px; }
.site-footer__col h4 {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 12px;
}
.site-footer__col a { display: block; margin-bottom: 8px; color: var(--text-grey); }
.site-footer__col a:hover { color: var(--accent); }
.site-footer__copy {
  max-width: var(--max-w);
  margin: 32px auto 0;
  padding-top: 22px;
  border-top: 1px solid var(--border);
  font-size: 12px;
}

/* ===== 滚动淡入 ===== */
.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1), transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}
.fade-in.is-visible { opacity: 1; transform: translateY(0); }

/* ===== 手机底部导航 ===== */
.mobile-tabbar {
  display: none;
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 1000;
  height: 58px;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-top: 1px solid rgba(0, 0, 0, 0.08);
  justify-content: space-around;
  align-items: center;
}
.mobile-tabbar a {
  font-size: 11px;
  color: var(--text-grey);
  text-align: center;
  flex: 1;
}
.mobile-tabbar a.is-active { color: var(--accent); }

/* ===== RWD ===== */
@media (max-width: 820px) {
  .site-nav__menu {
    position: fixed;
    top: var(--nav-h);
    left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 10px 16px 24px;
    border-bottom: 1px solid var(--border);
    max-height: calc(100vh - var(--nav-h));
    overflow-y: auto;
    transform: translateY(-120%);
    transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
  }
  .site-nav__menu.is-open { transform: translateY(0); }
  .site-nav__link { padding: 14px 8px; font-size: 16px; border-bottom: 1px solid var(--border); }
  .site-nav__sub {
    position: static;
    transform: none;
    opacity: 1;
    visibility: visible;
    min-width: 0;
    box-shadow: none;
    border: none;
    background: transparent;
    padding: 0 0 8px 14px;
  }
  .site-nav__sub a { font-size: 14px; color: var(--text-grey); }
  .site-nav__toggle { display: flex; }
  .split { grid-template-columns: 1fr; }
  .section { padding: 64px 20px; }
  .hero { padding: 80px 20px 64px; }
  .mobile-tabbar { display: flex; }
  body { padding-bottom: 58px; }
}

/* ===== 手機斷點修正 (T-0614 RWD-mobile-fix · Issue 1+3) ===== */
@media (max-width: 480px) {
  /* Issue 1: 中文標題斷行 keep-all + 字級調小一階 */
  .hero__title {
    font-size: clamp(26px, 7.4vw, 32px);
    word-break: keep-all;
    overflow-wrap: anywhere;
    line-height: 1.3;
    padding: 0 8px;
  }
  .hero__subtitle {
    word-break: keep-all;
    overflow-wrap: anywhere;
    font-size: 15px;
    line-height: 1.65;
    padding: 0 4px;
  }
  .section__title {
    font-size: clamp(22px, 6.6vw, 28px);
    word-break: keep-all;
    overflow-wrap: anywhere;
    line-height: 1.3;
    padding: 0 8px;
  }
  .cta__title {
    font-size: clamp(20px, 5.6vw, 24px);
    word-break: keep-all;
    overflow-wrap: anywhere;
    line-height: 1.35;
    padding: 0 8px;
  }

  /* Issue 3: 三 CTA 按鈕等寬垂直堆疊置中 */
  .btn-row {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    margin-top: 32px;
    padding: 0 16px;
  }
  .btn-row .btn {
    width: 100%;
    text-align: center;
    padding: 14px 20px;
    font-size: 15px;
    box-sizing: border-box;
  }
}
