@charset "UTF-8";

/* ==========================================================
   欢太工具箱 —— 暖橙工具箱版式（整份独立重写）
   ========================================================== */

:root {
  --clay: #D86048;
  --clay-dark: #A83F2B;
  --clay-soft: #FBEAE5;
  --sand: #FDF8F3;
  --ebony: #2A211D;
  --body: #4A3E38;
  --muted: #8A7A71;
  --line: #EEDFD6;
  --shell: 1160px;
  --header-height: 80px;
  --r-xl: 24px;
  --r-md: 14px;
  --r-sm: 9px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  min-width: 320px;
  margin: 0;
  overflow-x: hidden;
  color: var(--ebony);
  background: var(--sand);
  font-family: "Source Han Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  font-size: 16px;
  line-height: 1.7;
}

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

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

button { color: inherit; font: inherit; }

a,
button { -webkit-tap-highlight-color: transparent; }

button:focus-visible,
a:focus-visible {
  outline: 2px solid var(--clay);
  outline-offset: 3px;
}

.page-shell {
  width: min(calc(100% - 46px), var(--shell));
  margin: 0 auto;
}

/* ---------- 图标 ---------- */
.icon {
  display: inline-block;
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  vertical-align: middle;
}
.icon::before {
  display: block;
  width: 100%;
  height: 100%;
  content: "";
  background: center / contain no-repeat;
}
.icon-download::before { background-image: url("../icons/download.svg"); }
.icon-menu::before { background-image: url("../icons/menu.svg"); }
.icon-close::before { background-image: url("../icons/close.svg"); }
.icon-plus::before { background-image: url("../icons/plus.svg"); }

/* ---------- 头部：浮动胶囊 ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  padding: 12px 0;
  background: rgba(253, 248, 243, 0.9);
  backdrop-filter: blur(8px);
}

.nav-shell {
  display: flex;
  align-items: center;
  width: min(calc(100% - 46px), var(--shell));
  min-height: 56px;
  margin: 0 auto;
  padding: 0 12px 0 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 10px 24px rgba(74, 62, 56, 0.07);
  gap: 20px;
}

.brand {
  display: inline-flex;
  align-items: center;
  min-width: max-content;
  gap: 9px;
  font-size: 18px;
  font-weight: 800;
}

.brand img {
  width: 36px;
  height: 36px;
  border-radius: 11px;
  object-fit: contain;
}

.primary-nav { margin-left: auto; }
.primary-nav ul {
  display: flex;
  padding: 0;
  margin: 0;
  list-style: none;
  gap: clamp(14px, 2vw, 28px);
}

.primary-nav a {
  display: inline-block;
  padding: 7px 10px;
  border-radius: 999px;
  color: var(--body);
  font-size: 13.5px;
  font-weight: 600;
  transition: background-color 160ms ease, color 160ms ease;
}
.primary-nav a:hover,
.primary-nav a:focus-visible {
  color: var(--clay-dark);
  background: var(--clay-soft);
}

.nav-download,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 40px;
  border-radius: 999px;
  font-size: 13.5px;
  font-weight: 700;
  transition: background-color 160ms ease, color 160ms ease, transform 160ms ease;
}

.nav-download {
  min-width: 124px;
  padding: 0 17px;
  color: #fff;
  background: var(--clay);
}
.nav-download:hover { background: var(--clay-dark); }
.nav-download .icon,
.button-primary .icon { filter: brightness(0) invert(1); }

.menu-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: #fff;
  cursor: pointer;
}
.menu-toggle .icon { width: 19px; height: 19px; }

/* ---------- 英雄区 ---------- */
.hero {
  padding: 56px 0 64px;
  background:
    radial-gradient(circle at 88% 12%, #FBE3DA 0%, rgba(251, 227, 218, 0) 42%),
    linear-gradient(180deg, #FDF5EF 0%, var(--sand) 100%);
  scroll-margin-top: calc(var(--header-height) + 22px);
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 468px);
  align-items: center;
  gap: 52px;
}

.hero-copy { max-width: 520px; }

.eyebrow {
  display: inline-block;
  margin: 0 0 16px;
  padding: 4px 12px;
  border-radius: 999px;
  color: var(--clay-dark);
  background: var(--clay-soft);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1.8px;
}

.hero h1 {
  margin: 0;
  font-size: clamp(42px, 5.4vw, 66px);
  font-weight: 900;
  letter-spacing: 1px;
  line-height: 1.1;
  overflow-wrap: anywhere;
}

.hero-title {
  margin: 14px 0 16px;
  color: var(--clay-dark);
  font-size: clamp(23px, 2.5vw, 32px);
  font-weight: 700;
  line-height: 1.32;
}

.hero-summary {
  max-width: 480px;
  margin: 0 0 28px;
  color: var(--muted);
  font-size: 15px;
}

.button { min-width: 162px; padding: 0 25px; }

.button-primary {
  color: #fff;
  background: var(--clay);
  box-shadow: 0 12px 24px rgba(216, 96, 72, 0.28);
}
.button-primary:hover {
  background: var(--clay-dark);
  transform: translateY(-2px);
}

/* 英雄组件：设置开关面板 */
.hero-settings {
  width: 100%;
  max-width: 452px;
  margin-left: auto;
  padding: 18px 18px 6px;
  border: 1px solid #EFD8CD;
  border-radius: var(--r-xl);
  background: #fff;
  box-shadow: 0 26px 48px rgba(122, 76, 58, 0.16);
}

.hs-group {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 4px 12px;
  border-bottom: 1px solid var(--line);
  font-size: 11.5px;
}
.hs-badge {
  padding: 3px 10px;
  border-radius: 999px;
  color: #fff;
  background: var(--clay);
  font-weight: 700;
}
.hs-group em {
  margin-left: auto;
  color: var(--muted);
  font-size: 11px;
  font-style: normal;
}

.hs-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 13px 4px;
  border-bottom: 1px solid #F6EAE3;
}
.hs-row:last-of-type { border-bottom: 0; }

.hs-text { display: grid; gap: 2px; min-width: 0; }
.hs-text strong { font-size: 13.5px; font-weight: 700; }
.hs-text small { color: var(--muted); font-size: 11px; }

.hs-switch {
  position: relative;
  flex: 0 0 auto;
  width: 42px;
  height: 24px;
  border-radius: 999px;
  background: #E6DAD3;
  transition: background-color 160ms ease;
}
.hs-switch::after {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  content: "";
  background: #fff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.18);
  transition: transform 160ms ease;
}
.hs-switch.is-on { background: var(--clay); }
.hs-switch.is-on::after { transform: translateX(18px); }

.hs-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 6px;
  padding: 10px 4px 12px;
  border-top: 1px dashed var(--line);
  color: var(--muted);
  font-size: 10.5px;
}

/* ---------- 特色：纵向编号清单 ---------- */
.routes {
  padding: 74px 0 80px;
  scroll-margin-top: calc(var(--header-height) + 22px);
}

.section-heading { max-width: 600px; margin-bottom: 32px; }

.section-heading h2 {
  margin: 0;
  font-size: clamp(27px, 3.1vw, 39px);
  font-weight: 900;
  letter-spacing: 0.4px;
  line-height: 1.25;
}

.section-heading > p:last-child {
  margin: 11px 0 0;
  color: var(--muted);
  font-size: 14.5px;
}

.fours {
  display: grid;
  gap: 0;
  border-top: 1px solid var(--line);
}

.four {
  display: grid;
  grid-template-columns: 78px minmax(0, 0.9fr) minmax(0, 1.6fr);
  align-items: baseline;
  gap: 20px;
  padding: 24px 6px;
  border-bottom: 1px solid var(--line);
  transition: background-color 180ms ease;
}
.four:hover { background: #fff; }

.four .n {
  color: var(--clay);
  font-family: "Georgia", serif;
  font-size: 26px;
  font-weight: 700;
  line-height: 1;
}

.four h3 {
  margin: 0;
  font-size: 18px;
  font-weight: 800;
}

.four p {
  margin: 0;
  color: var(--body);
  font-size: 14px;
}

/* ---------- 界面 ---------- */
.screens {
  padding: 0 0 82px;
  scroll-margin-top: calc(var(--header-height) + 22px);
}

.covers {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  align-items: start;
  gap: 18px;
}

.covers figure {
  min-width: 0;
  margin: 0;
}
.covers figure:nth-child(even) { margin-top: 26px; }

.covers img {
  width: 100%;
  aspect-ratio: 9 / 16;
  border-radius: 18px;
  object-fit: cover;
  object-position: top center;
  background: var(--clay-soft);
  box-shadow: 0 14px 28px rgba(122, 76, 58, 0.14);
}

.covers b {
  display: inline-block;
  margin: 11px 0 0;
  padding: 3px 10px;
  border-radius: var(--r-sm);
  color: var(--clay-dark);
  background: var(--clay-soft);
  font-size: 12px;
  font-weight: 800;
}
.covers small {
  display: block;
  margin-top: 5px;
  color: var(--muted);
  font-size: 11.5px;
}

/* ---------- FAQ ---------- */
.faq {
  padding: 70px 0 24px;
  border-top: 1px solid var(--line);
  background: #FFFDFB;
  scroll-margin-top: calc(var(--header-height) + 22px);
}

.faq-list {
  display: grid;
  gap: 11px;
}

.faq-item {
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: #fff;
}

.faq-item summary {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 60px;
  padding: 0 18px;
  cursor: pointer;
  list-style: none;
}
.faq-item summary::-webkit-details-marker { display: none; }

.faq-item summary::before {
  flex: 0 0 auto;
  width: 8px;
  height: 8px;
  content: "";
  border-radius: 50%;
  background: var(--clay);
  opacity: 0.28;
}

.faq-item summary h3 {
  margin: 0;
  font-size: 14.5px;
  font-weight: 700;
  line-height: 1.5;
  text-align: left;
}

.faq-item summary .icon {
  margin-left: auto;
  flex: none;
  transition: transform 180ms ease;
  filter: invert(48%) sepia(42%) saturate(1962%) hue-rotate(328deg) brightness(92%) contrast(87%);
}
.faq-item[open] summary::before {
  opacity: 1;
}
.faq-item[open] summary .icon { transform: rotate(45deg); }

.faq-answer { padding: 0 18px 18px 52px; }
.faq-answer p {
  margin: 0;
  color: var(--body);
  font-size: 13.8px;
}

/* ---------- 官网 ---------- */
.official {
  padding: 24px 0 78px;
  background: #FFFDFB;
}

.official .section-heading { max-width: 540px; }

.official-fold {
  border: 1px solid #EFD8CD;
  border-radius: var(--r-md);
  background: var(--clay-soft);
}
.official-fold summary {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 54px;
  padding: 0 18px;
  color: var(--clay-dark);
  cursor: pointer;
  list-style: none;
  font-size: 14px;
  font-weight: 800;
}
.official-fold summary::-webkit-details-marker { display: none; }
.official-fold summary::after {
  margin-left: auto;
  content: "›";
  font-size: 20px;
  transition: transform 160ms ease;
}
.official-fold[open] summary::after { transform: rotate(90deg); }

.official-link {
  padding: 12px 18px 16px;
  border-top: 1px dashed #E9CBBE;
}
.official-link p { margin: 0; font-size: 14px; color: var(--body); }
.official-link a {
  color: var(--clay-dark);
  font-weight: 700;
  word-break: break-all;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ---------- 评论 ---------- */
.reviews {
  padding: 76px 0 82px;
  scroll-margin-top: calc(var(--header-height) + 22px);
}

.rgrid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.review-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 26px 24px 18px;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: #fff;
  overflow: hidden;
}
.review-card::before {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 3px;
  content: "";
  background: linear-gradient(90deg, var(--clay) 0%, #F2A48F 100%);
}

.review-card header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.review-card .who b {
  font-size: 13.5px;
  font-weight: 800;
}
.review-card time {
  color: #A3908A;
  font-size: 11px;
  white-space: nowrap;
}

.review-card > p {
  margin: 11px 0 0;
  color: var(--body);
  font-size: 13.5px;
  line-height: 1.88;
}

.rv-site {
  margin-top: 13px;
  padding-top: 9px;
  border-top: 1px dashed var(--line);
  color: var(--clay-dark);
  font-size: 11px;
  word-break: break-all;
}

/* ---------- 下载 ---------- */
.download-cta {
  padding: 68px 0 74px;
  background: var(--clay-soft);
  scroll-margin-top: calc(var(--header-height) + 22px);
}

.download-cta .section-heading { max-width: 620px; }
.download-cta h2 { color: var(--clay-dark); }
.download-cta .eyebrow { background: #fff; }
.download-cta .section-heading > p:last-child { color: #8A6257; }

.download-cta .button-primary {
  color: var(--clay-dark);
  background: #fff;
  box-shadow: 0 10px 22px rgba(168, 63, 43, 0.14);
}
.download-cta .button-primary .icon {
  filter: invert(34%) sepia(48%) saturate(1352%) hue-rotate(333deg) brightness(88%) contrast(89%);
}
.download-cta .button-primary:hover { background: #FFF6F2; }

.disclaimer {
  max-width: 620px;
  margin: 20px 0 0;
  padding: 12px 16px;
  border: 1px dashed #E4BCAE;
  border-radius: var(--r-sm);
  color: #8A6257;
  background: rgba(255, 255, 255, 0.6);
  font-size: 12px;
}

/* ---------- 页脚 ---------- */
.site-footer {
  padding: 30px 0 26px;
  color: #CDBDB5;
  background: #2A211D;
  text-align: center;
  font-size: 12px;
}
.site-footer p { margin: 5px 0; }
.site-footer a { color: #CDBDB5; }
.site-footer a:hover { color: #fff; }
.site-footer .icp a { color: #9C8A82; }

/* ---------- 返回顶部 ---------- */
.to-top {
  position: fixed;
  right: 24px;
  bottom: 148px;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--clay);
  box-shadow: 0 10px 22px rgba(122, 76, 58, 0.28);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(10px);
  transition: opacity 200ms ease, transform 200ms ease, visibility 200ms ease;
}
.to-top::before {
  width: 9px;
  height: 9px;
  border-top: 2px solid #fff;
  border-left: 2px solid #fff;
  content: "";
  transform: rotate(45deg) translate(1px, 1px);
}
.to-top.is-show { opacity: 1; visibility: visible; pointer-events: auto; transform: none; }
.to-top:hover { background: var(--clay-dark); }

/* ---------- 中屏 ---------- */
@media (max-width: 980px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr) minmax(320px, 400px); gap: 34px; }
  .four { grid-template-columns: 62px minmax(0, 1fr); row-gap: 4px; }
  .four p { grid-column: 2; }
}

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr); gap: 30px; }
  .hero-copy { max-width: 620px; }
  .hero-settings { margin: 0 auto; max-width: 470px; }
  .covers { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .covers figure:nth-child(even) { margin-top: 0; }
}

/* ---------- 移动端 ---------- */
@media (max-width: 700px) {
  :root { --header-height: 62px; }

  body { padding-top: var(--header-height); }

  .site-header {
    position: fixed;
    right: 0;
    left: 0;
    width: 100%;
    padding: 8px 0;
    background: var(--sand);
  }

  .page-shell,
  .nav-shell { width: min(calc(100% - 28px), var(--shell)); }

  .nav-shell {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto auto;
    grid-template-rows: 46px;
    min-height: 46px;
    padding: 0 8px 0 10px;
    column-gap: 6px;
  }

  .brand { grid-column: 1; grid-row: 1; gap: 6px; font-size: 15px; }
  .brand img { width: 28px; height: 28px; border-radius: 9px; }

  .primary-nav {
    display: none;
    grid-column: 1 / -1;
    grid-row: 2;
    margin: 8px 0 0;
    padding: 10px 4px;
    border-top: 1px solid var(--line);
    background: #fff;
  }
  .primary-nav.is-open { display: block; }
  .primary-nav ul {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
  }
  .primary-nav a {
    display: block;
    padding: 8px 10px;
    border-radius: 10px;
    background: #FFF7F3;
    font-size: 12.5px;
  }

  .nav-download {
    grid-column: 3;
    grid-row: 1;
    justify-self: end;
    min-width: auto;
    min-height: 32px;
    padding: 0 11px;
    font-size: 11.5px;
  }
  .nav-download .icon { width: 13px; height: 13px; }

  .menu-toggle { display: inline-flex; grid-column: 4; grid-row: 1; width: 32px; height: 32px; }

  .hero { padding: 36px 0 44px; }
  .hero h1 { font-size: 40px; }
  .hero-title { font-size: 23px; }
  .hero-summary { font-size: 13.5px; margin-bottom: 22px; }
  .button { width: 100%; }

  .hero-settings { padding: 14px 14px 4px; border-radius: 20px; }
  .hs-row { padding: 11px 2px; }

  .routes { padding: 52px 0 56px; }
  .four { grid-template-columns: 52px minmax(0, 1fr); gap: 12px; padding: 20px 2px; }
  .four .n { font-size: 21px; }
  .four h3 { font-size: 16.5px; }

  .screens { padding-bottom: 56px; }
  .covers { gap: 12px; }
  .covers img { border-radius: 14px; }

  .faq { padding: 50px 0 20px; }
  .faq-item summary { padding: 0 14px; gap: 9px; }
  .faq-item summary h3 { font-size: 13.5px; }
  .faq-answer { padding: 0 14px 16px 45px; }

  .official { padding: 20px 0 54px; }

  .reviews { padding: 52px 0 56px; }
  .rgrid { grid-template-columns: 1fr; }
  .review-card { padding: 22px 18px 16px; }

  .download-cta { padding: 48px 0 52px; }
  .download-cta .button-primary { width: 100%; }

  .to-top { right: 16px; bottom: 130px; width: 40px; height: 40px; }
}

@media (max-width: 380px) {
  .brand span { font-size: 13.5px; }
  .nav-download span { display: none; }
  .nav-download { width: 32px; padding: 0; }
  .hero h1 { font-size: 34px; }
  .hero-title { font-size: 20px; }
  .primary-nav ul { grid-template-columns: 1fr; }
}
