/* ==========================================================================
   雫的域名盒 · 官网样式
   品牌色沿用 App 里的 #3E6FD9
   ========================================================================== */

:root {
  --brand:        #3E6FD9;
  --brand-dark:   #1E3E8C;
  --brand-light:  #6C93E8;
  --brand-soft:   rgba(62, 111, 217, .10);

  --bg:           #F6F8FD;
  --bg-alt:       #EEF2FB;
  --surface:      #FFFFFF;
  --surface-2:    #F2F5FC;

  --text:         #10141F;
  --text-2:       #4A5164;
  --text-3:       #7C8598;

  --line:         #E0E6F2;
  --line-2:       #CFD8EA;

  --ok:           #16A34A;
  --warn:         #E0951C;

  --shadow-sm:    0 1px 2px rgba(16, 20, 31, .05), 0 1px 3px rgba(16, 20, 31, .04);
  --shadow-md:    0 4px 12px rgba(16, 20, 31, .06), 0 12px 28px rgba(16, 20, 31, .05);
  --shadow-lg:    0 18px 50px rgba(16, 20, 31, .12);

  --r-sm: 8px;
  --r-md: 14px;
  --r-lg: 20px;
  --r-xl: 28px;

  --maxw: 1180px;
  --nav-h: 66px;
}

[data-theme="dark"] {
  --bg:           #0C1019;
  --bg-alt:       #111725;
  --surface:      #151B29;
  --surface-2:    #1B2233;

  --text:         #EDF1F9;
  --text-2:       #A9B3C7;
  --text-3:       #7A8498;

  --line:         #232C40;
  --line-2:       #2E3950;

  --brand-soft:   rgba(108, 147, 232, .14);

  --shadow-sm:    0 1px 2px rgba(0, 0, 0, .4);
  --shadow-md:    0 6px 18px rgba(0, 0, 0, .45);
  --shadow-lg:    0 22px 60px rgba(0, 0, 0, .55);
}

/* --------------------------------------------------------------- 基础 */

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

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 18px); }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.7 "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI",
        "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Source Han Sans SC",
        "Noto Sans CJK SC", sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

h1, h2, h3 { line-height: 1.25; margin: 0; letter-spacing: -.02em; font-weight: 700; }

p { margin: 0; }

a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }

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

code {
  font-family: "JetBrains Mono", "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: .88em;
}

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.wrap-narrow { max-width: 820px; }

.is-hidden { display: none !important; }

/* SVG 图标统一描边风格 */
.ico {
  width: 1.15em; height: 1.15em;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* --------------------------------------------------------------- 按钮 */

.btn {
  display: inline-flex;
  align-items: center;
  gap: .55em;
  padding: .72em 1.25em;
  border: 1px solid transparent;
  border-radius: 999px;
  background: var(--surface);
  color: var(--text);
  font-size: 15px;
  font-weight: 600;
  font-family: inherit;
  line-height: 1.2;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
  transition: transform .16s ease, box-shadow .16s ease, background .16s ease,
              border-color .16s ease, opacity .16s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn-primary {
  background: linear-gradient(135deg, var(--brand) 0%, var(--brand-dark) 100%);
  color: #fff;
  box-shadow: 0 6px 18px rgba(62, 111, 217, .30);
}
.btn-primary:hover { box-shadow: 0 10px 26px rgba(62, 111, 217, .40); }

.btn-ghost {
  background: var(--surface);
  border-color: var(--line-2);
  color: var(--text);
  box-shadow: var(--shadow-sm);
}
.btn-ghost:hover { border-color: var(--brand); color: var(--brand); }

.btn-sm { padding: .5em .95em; font-size: 14px; }

.btn-lg {
  padding: .95em 1.5em;
  font-size: 16px;
  flex-direction: column;
  align-items: flex-start;
  gap: .15em;
  border-radius: var(--r-md);
}
.btn-lg .ico { width: 1.35em; height: 1.35em; position: absolute; }
.btn-lg > small { font-size: 11.5px; font-weight: 500; opacity: .78; letter-spacing: .01em; }
.btn-lg { position: relative; padding-left: 3.1em; }
.btn-lg > .ico { left: .95em; top: 50%; transform: translateY(-50%); }

.btn-block { width: 100%; justify-content: center; border-radius: var(--r-md); padding: .9em 1.2em; }

.icon-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 38px; height: 38px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  color: var(--text-2);
  cursor: pointer;
  transition: border-color .16s, color .16s, background .16s;
}
.icon-btn:hover { border-color: var(--brand); color: var(--brand); }
.icon-btn .ico { width: 19px; height: 19px; }

.ico-moon { display: none; }
[data-theme="dark"] .ico-sun  { display: none; }
[data-theme="dark"] .ico-moon { display: block; }

/* --------------------------------------------------------------- 导航 */

.nav {
  position: sticky; top: 0; z-index: 60;
  height: var(--nav-h);
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: saturate(1.6) blur(14px);
  -webkit-backdrop-filter: saturate(1.6) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s, background .2s;
}
.nav.is-scrolled { border-bottom-color: var(--line); }

.nav-inner { display: flex; align-items: center; gap: 22px; height: 100%; }

.brand { display: flex; align-items: center; gap: 10px; color: inherit; }
.brand:hover { text-decoration: none; }
.brand-logo { width: 36px; height: 36px; border-radius: 10px; box-shadow: var(--shadow-sm); }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-text strong { font-size: 15.5px; font-weight: 700; letter-spacing: -.01em; }
.brand-text em { font-style: normal; font-size: 11px; color: var(--text-3); letter-spacing: .02em; }

.nav-links { display: flex; gap: 4px; margin-left: 8px; }
.nav-links a {
  padding: .45em .85em;
  border-radius: 9px;
  color: var(--text-2);
  font-size: 14.5px;
  font-weight: 500;
  transition: background .16s, color .16s;
}
.nav-links a:hover { background: var(--brand-soft); color: var(--brand); text-decoration: none; }

.nav-actions { display: flex; align-items: center; gap: 10px; margin-left: auto; }
.menu-btn { display: none; }

/* --------------------------------------------------------------- Hero */

.hero { position: relative; padding: 74px 0 92px; overflow: hidden; }

.hero-bg { position: absolute; inset: 0; pointer-events: none; }
.blob { position: absolute; border-radius: 50%; filter: blur(70px); opacity: .5; }
.blob-1 {
  width: 620px; height: 620px; top: -260px; left: -140px;
  background: radial-gradient(circle at 30% 30%, rgba(62,111,217,.55), transparent 68%);
}
.blob-2 {
  width: 560px; height: 560px; top: -150px; right: -180px;
  background: radial-gradient(circle at 60% 40%, rgba(126,90,220,.45), transparent 68%);
}
[data-theme="dark"] .blob { opacity: .38; }

.grid-lines {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(to right, var(--line) 1px, transparent 1px),
    linear-gradient(to bottom, var(--line) 1px, transparent 1px);
  background-size: 62px 62px;
  mask-image: radial-gradient(ellipse 78% 62% at 50% 30%, #000 20%, transparent 78%);
  -webkit-mask-image: radial-gradient(ellipse 78% 62% at 50% 30%, #000 20%, transparent 78%);
  opacity: .5;
}

.hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr);
  gap: 56px;
  align-items: center;
}

.pill {
  display: inline-flex; align-items: center; gap: .5em;
  padding: .42em .95em .42em .8em;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  background: color-mix(in srgb, var(--surface) 70%, transparent);
  color: var(--text-2);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: .01em;
  box-shadow: var(--shadow-sm);
}
.pill .ico { width: 15px; height: 15px; color: var(--brand); }

.hero h1 {
  margin: 20px 0 0;
  font-size: clamp(32px, 4.4vw, 54px);
  letter-spacing: -.035em;
}
.grad {
  background: linear-gradient(115deg, var(--brand) 10%, #7E5ADC 70%, #C05AC0 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.lede {
  margin: 20px 0 0;
  max-width: 34em;
  color: var(--text-2);
  font-size: 16.5px;
  line-height: 1.85;
}

.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 32px; }

.hero-facts {
  display: flex; flex-wrap: wrap; gap: 34px;
  margin: 40px 0 0; padding: 0; list-style: none;
}
.hero-facts li { display: flex; flex-direction: column; }
.hero-facts b {
  font-size: 25px; font-weight: 700; letter-spacing: -.03em;
  background: linear-gradient(135deg, var(--brand), #7E5ADC);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero-facts span { font-size: 12.5px; color: var(--text-3); letter-spacing: .02em; }

/* Hero 右侧：手机 + 浮动卡片 */
.hero-visual { position: relative; display: flex; justify-content: center; }

.phone {
  position: relative;
  width: min(300px, 74%);
  padding: 11px;
  border-radius: 40px;
  background: linear-gradient(160deg, #2A3550, #14192A);
  box-shadow: var(--shadow-lg), 0 0 0 1px rgba(255,255,255,.05) inset;
}
.phone::after {
  content: "";
  position: absolute; top: 20px; left: 50%; transform: translateX(-50%);
  width: 76px; height: 6px; border-radius: 99px;
  background: rgba(255,255,255,.16);
}
.phone img { border-radius: 30px; width: 100%; }

.float-card {
  position: absolute;
  display: flex; align-items: center; gap: 10px;
  padding: 11px 15px;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: color-mix(in srgb, var(--surface) 92%, transparent);
  backdrop-filter: blur(8px);
  box-shadow: var(--shadow-md);
  animation: floaty 6s ease-in-out infinite;
}
.float-card .ico { width: 22px; height: 22px; color: var(--brand); }
.float-card div { display: flex; flex-direction: column; line-height: 1.25; }
.float-card b { font-size: 13px; font-weight: 700; }
.float-card span { font-size: 11px; color: var(--text-3); }

.float-card-1 { top: 16%; left: -6%; animation-delay: .4s; }
.float-card-2 { bottom: 14%; right: -4%; animation-delay: 2.1s; }

@keyframes floaty {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-11px); }
}

/* --------------------------------------------------------------- 区块 */

.section { padding: 96px 0; }
.section-alt { background: var(--bg-alt); }

.sec-head { max-width: 660px; margin: 0 auto 56px; text-align: center; }
.eyebrow {
  display: inline-block;
  margin-bottom: 12px;
  color: var(--brand);
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.sec-head h2 { font-size: clamp(25px, 3vw, 36px); }
.sec-head p { margin-top: 14px; color: var(--text-2); font-size: 16px; }

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

/* --------------------------------------------------------------- 功能卡 */

.card {
  position: relative;
  padding: 28px 26px;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.card:hover {
  transform: translateY(-4px);
  border-color: color-mix(in srgb, var(--brand) 40%, var(--line));
  box-shadow: var(--shadow-md);
}

.card-ico {
  display: inline-flex; align-items: center; justify-content: center;
  width: 46px; height: 46px;
  margin-bottom: 18px;
  border-radius: 13px;
  background: var(--brand-soft);
  color: var(--brand);
}
.card-ico .ico { width: 23px; height: 23px; }

.card h3 { font-size: 17px; margin-bottom: 8px; }
.card p { color: var(--text-2); font-size: 14.5px; line-height: 1.75; }

/* --------------------------------------------------------------- 界面 Tab */

.tabs {
  display: flex; justify-content: center; gap: 8px;
  margin-bottom: 40px;
}
.tab {
  display: inline-flex; align-items: center; gap: .5em;
  padding: .62em 1.3em;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--text-2);
  font: inherit; font-size: 14.5px; font-weight: 600;
  cursor: pointer;
  transition: all .18s ease;
}
.tab .ico { width: 18px; height: 18px; }
.tab:hover { border-color: var(--line-2); color: var(--text); }
.tab.is-active {
  background: linear-gradient(135deg, var(--brand), var(--brand-dark));
  border-color: transparent;
  color: #fff;
  box-shadow: 0 6px 18px rgba(62,111,217,.3);
}

.shots {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  align-items: start;
}

.shot {
  margin: 0;
  padding: 10px 10px 0;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: transform .2s ease, box-shadow .2s ease;
}
.shot:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }
.shot img {
  width: 100%;
  border-radius: 12px;
  border: 1px solid var(--line);
}
.shot figcaption {
  padding: 13px 4px 15px;
  text-align: center;
  color: var(--text-3);
  font-size: 12.5px;
  font-weight: 600;
}

.shots-wide { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.shot-wide { padding: 12px 12px 0; }
.shot-wide img { border-radius: 10px; }

/* --------------------------------------------------------------- 下载卡 */

.dl-grid { align-items: start; }

.dl-card {
  display: flex; flex-direction: column;
  padding: 30px 28px;
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  background: var(--surface);
  box-shadow: var(--shadow-md);
  transition: transform .2s ease, box-shadow .2s ease;
}
.dl-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }

.dl-head { display: flex; align-items: center; gap: 14px; margin-bottom: 24px; }
.dl-ico {
  display: inline-flex; align-items: center; justify-content: center;
  width: 50px; height: 50px; flex: 0 0 auto;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--brand), var(--brand-dark));
  color: #fff;
  box-shadow: 0 8px 20px rgba(62,111,217,.28);
}
.dl-ico .ico { width: 26px; height: 26px; }
.dl-head h3 { font-size: 19px; }
.dl-sub { color: var(--text-3); font-size: 12.5px; }

.tag {
  margin-left: auto;
  padding: .28em .72em;
  border-radius: 999px;
  background: var(--brand-soft);
  color: var(--brand);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .02em;
}

.meta {
  margin: 0 0 20px;
  border-top: 1px solid var(--line);
}
.meta > div {
  display: flex; gap: 16px;
  padding: 11px 0;
  border-bottom: 1px solid var(--line);
}
.meta dt { flex: 0 0 60px; color: var(--text-3); font-size: 13.5px; }
.meta dd { margin: 0; font-size: 13.5px; font-weight: 500; word-break: break-all; }

.hashbox {
  margin-bottom: 20px;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  background: var(--surface-2);
}
.hashbox summary {
  padding: 10px 14px;
  color: var(--text-2);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
}
.hashbox summary::-webkit-details-marker { display: none; }
.hashbox summary::before {
  content: "";
  display: inline-block;
  width: 6px; height: 6px;
  margin-right: 9px;
  border-right: 1.8px solid currentColor;
  border-bottom: 1.8px solid currentColor;
  transform: translateY(-2px) rotate(-45deg);
  transition: transform .18s;
}
.hashbox[open] summary::before { transform: translateY(-1px) rotate(45deg); }
.hash {
  display: block;
  padding: 0 14px 13px;
  color: var(--text-2);
  font-size: 11px;
  line-height: 1.7;
  word-break: break-all;
  background: none;
}

.hint { margin-top: 12px; color: var(--text-3); font-size: 12.5px; line-height: 1.65; }

.notice {
  display: flex; gap: 16px;
  margin-top: 34px;
  padding: 20px 24px;
  border: 1px solid var(--line-2);
  border-left: 3px solid var(--warn);
  border-radius: var(--r-md);
  background: var(--surface);
}
.notice .ico { width: 22px; height: 22px; flex: 0 0 auto; color: var(--warn); margin-top: 2px; }
.notice b { display: block; margin-bottom: 5px; font-size: 14.5px; }
.notice p { color: var(--text-2); font-size: 13.5px; line-height: 1.75; }

/* --------------------------------------------------------------- FAQ */

.faq { display: flex; flex-direction: column; gap: 12px; }

.faq details {
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: border-color .18s;
}
.faq details[open] { border-color: color-mix(in srgb, var(--brand) 35%, var(--line)); }

.faq summary {
  display: flex; align-items: center; gap: 12px;
  padding: 18px 22px;
  font-size: 15.5px; font-weight: 600;
  cursor: pointer;
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.chev {
  margin-left: auto;
  width: 8px; height: 8px; flex: 0 0 auto;
  border-right: 2px solid var(--text-3);
  border-bottom: 2px solid var(--text-3);
  transform: rotate(45deg) translate(-2px, -2px);
  transition: transform .2s ease, border-color .2s;
}
.faq details[open] .chev { transform: rotate(-135deg) translate(-2px, -2px); border-color: var(--brand); }

.faq-body { padding: 0 22px 20px; }
.faq-body p { color: var(--text-2); font-size: 14.5px; line-height: 1.85; }
.faq-body b { color: var(--text); }
.faq-body code {
  padding: .15em .45em;
  border-radius: 5px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  font-size: .85em;
}

/* --------------------------------------------------------------- 结尾 CTA */

.cta-section { padding-bottom: 104px; }
.cta-inner { text-align: center; }
.cta-logo {
  width: 76px; height: 76px;
  margin: 0 auto 22px;
  border-radius: 20px;
  box-shadow: var(--shadow-lg);
}
.cta-inner h2 { font-size: clamp(24px, 3vw, 34px); }
.cta-inner p { margin-top: 12px; color: var(--text-2); }
.cta-btns {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 14px;
  margin-top: 32px;
}

/* --------------------------------------------------------------- 页脚 */

.foot {
  border-top: 1px solid var(--line);
  background: var(--surface);
  padding: 46px 0 40px;
}
.foot-inner { display: flex; flex-direction: column; align-items: center; gap: 22px; text-align: center; }

.foot-brand { display: flex; align-items: center; gap: 11px; }
.foot-brand img { width: 38px; height: 38px; border-radius: 10px; }
.foot-brand div { display: flex; flex-direction: column; text-align: left; line-height: 1.25; }
.foot-brand strong { font-size: 15px; }
.foot-brand span { color: var(--text-3); font-size: 11.5px; }

.foot-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 26px; }
.foot-links a { color: var(--text-2); font-size: 14px; }
.foot-links a:hover { color: var(--brand); }

.foot-note { color: var(--text-3); font-size: 12.5px; line-height: 1.9; }

/* --------------------------------------------------------------- 响应式 */

@media (max-width: 1000px) {
  .hero-inner { grid-template-columns: 1fr; gap: 52px; }
  .hero-copy { text-align: center; }
  .lede { margin-left: auto; margin-right: auto; }
  .hero-cta, .hero-facts { justify-content: center; }
  .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .float-card-1 { left: 2%; }
  .float-card-2 { right: 2%; }
}

@media (max-width: 760px) {
  .section { padding: 68px 0; }
  .hero { padding: 46px 0 66px; }

  .nav-links {
    display: none;
    position: absolute; top: var(--nav-h); left: 0; right: 0;
    flex-direction: column; gap: 2px;
    padding: 12px 18px 18px;
    background: var(--surface);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-md);
  }
  .nav-links.is-open { display: flex; }
  .nav-links a { padding: .7em .9em; font-size: 15.5px; }
  .menu-btn { display: inline-flex; }
  .nav-inner { gap: 12px; }
  .brand-text em { display: none; }

  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .shots { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .shots-wide { grid-template-columns: 1fr; }  .hero-facts { gap: 24px; }
  .hero-facts b { font-size: 21px; }

  .float-card { display: none; }
  .phone { width: min(268px, 82%); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
}
