/* ====== TimeEnd — 紫色倒计时工具官网 ====== */
:root {
  --bg:        #0a0a0f;
  --bg-2:      #12121a;
  --bg-3:      #1a1a24;
  --surface:   #151520;
  --surface-2: #1e1e2d;
  --border:    #2a2a3d;
  --text:      #f5f5ff;
  --text-dim:  #b3b3cc;
  --text-mute: #7a7a99;
  --purple:    #a855f7;
  --purple-2:  #9333ea;
  --purple-3:  #c084fc;
  --purple-soft: rgba(168,85,247,.14);
  --radius:    16px;
  --shadow:    0 22px 60px rgba(0,0,0,.55);
  --maxw:      1120px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: "PingFang SC", -apple-system, BlinkMacSystemFont, "Segoe UI",
               "Hiragino Sans GB", "Microsoft YaHei", Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

/* ====== 导航 ====== */
.nav {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: saturate(160%) blur(14px);
  background: rgba(10,10,15,.72);
  border-bottom: 1px solid var(--border);
}
.nav__inner {
  max-width: var(--maxw); margin: 0 auto;
  display: flex; align-items: center; gap: 20px;
  padding: 14px 24px;
  flex-wrap: nowrap;
  min-width: 0;
  overflow-x: auto;
  scrollbar-width: none;
}
.nav__inner::-webkit-scrollbar { display: none; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 18px; flex-shrink: 0; }
.brand img, .brand svg { border-radius: 10px; }
.brand__img, .footer__brand img { border-radius: 10px; box-shadow: 0 2px 10px rgba(168,85,247,.22), 0 0 0 1px rgba(255,255,255,.04) inset; }
.nav__links { display: flex; gap: 22px; margin-left: auto; font-size: 15px; color: var(--text-dim); flex-shrink: 0; }
.nav__links a { transition: color .2s; white-space: nowrap; }
.nav__links a:hover { color: var(--purple-3); }
.nav__cta { padding: 8px 14px; font-size: 13px; white-space: nowrap; flex-shrink: 0; }
.lang {
  background: var(--surface-2); color: var(--text-dim);
  border: 1px solid var(--border); border-radius: 999px;
  padding: 6px 14px; font-size: 13px; font-weight: 600; cursor: pointer;
  margin-left: 4px; transition: color .2s, border-color .2s;
  white-space: nowrap; flex-shrink: 0;
}
.lang:hover { color: var(--purple-3); border-color: var(--purple); }
select.lang {
  appearance: none; -webkit-appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'><path d='M1 1l4 4 4-4' stroke='%23999' stroke-width='1.5' fill='none' stroke-linecap='round' stroke-linejoin='round'/></svg>");
  background-repeat: no-repeat;
  background-position: right 10px center;
  padding: 6px 26px 6px 14px;
  outline: none;
}
select.lang:focus { border-color: var(--purple); }
.nav__toggle { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: 6px; }
.nav__toggle span { width: 22px; height: 2px; background: var(--text); border-radius: 2px; transition: .3s; }

/* ====== 按钮 ====== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 26px; border-radius: 12px; font-weight: 600; font-size: 15px;
  transition: transform .15s ease, box-shadow .25s ease, background .25s, color .2s; cursor: pointer;
  border: 1px solid transparent;
}
.btn--primary {
  background: linear-gradient(135deg, var(--purple), var(--purple-2));
  color: #fff; box-shadow: 0 8px 26px rgba(168,85,247,.35);
}
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 12px 34px rgba(168,85,247,.5); }
.btn--ghost {
  background: var(--surface-2); color: var(--text); border-color: var(--border);
}
.btn--ghost:hover { border-color: var(--purple); color: var(--purple-3); }
.btn--lg { padding: 14px 32px; font-size: 16px; }

/* ====== Hero ====== */
.hero {
  position: relative; overflow: hidden;
  padding: 110px 24px 90px;
  text-align: center;
  background:
    radial-gradient(900px 520px at 50% -10%, rgba(168,85,247,.14), transparent 60%),
    linear-gradient(180deg, var(--bg-2), var(--bg));
}
.hero__clock {
  position: absolute; top: 6%; left: 50%; transform: translateX(-50%);
  width: 340px; height: 340px; opacity: .18; pointer-events: none;
}
.hero__clock-ring {
  position: absolute; inset: 20px; border-radius: 50%;
  border: 3px solid var(--purple);
  box-shadow: 0 0 80px rgba(168,85,247,.25);
  animation: clock-pulse 3s ease-in-out infinite;
}
.hero__clock-hand {
  position: absolute; top: 50%; left: 50%; width: 110px; height: 4px;
  background: linear-gradient(90deg, transparent, var(--purple));
  transform-origin: left center; transform: rotate(-90deg);
  animation: clock-spin 60s linear infinite;
}
.hero__clock-dot {
  position: absolute; top: 50%; left: 50%; width: 14px; height: 14px;
  background: var(--purple); border-radius: 50%;
  transform: translate(-50%, -50%);
  box-shadow: 0 0 20px var(--purple);
  animation: clock-pulse 3s ease-in-out infinite;
}
.hero__clock-time {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  font-size: 42px; font-weight: 700; font-variant-numeric: tabular-nums;
  color: var(--purple-3); letter-spacing: 2px;
  text-shadow: 0 0 30px rgba(168,85,247,.35);
}
@keyframes clock-spin {
  from { transform: rotate(-90deg); }
  to   { transform: rotate(270deg); }
}
@keyframes clock-pulse {
  0%, 100% { opacity: .7; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.02); }
}
.hero__content { position: relative; max-width: 760px; margin: 0 auto; }
.pill {
  display: inline-block; padding: 7px 16px; border-radius: 999px;
  background: var(--purple-soft); color: var(--purple-3); font-size: 13px; font-weight: 600;
  border: 1px solid rgba(168,85,247,.28); margin-bottom: 26px;
}
.hero__title {
  font-size: clamp(34px, 6vw, 60px); line-height: 1.12; font-weight: 800;
  letter-spacing: -.5px;
  background: linear-gradient(180deg, #fff, #d8d8e8);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero__title .grad {
  background: linear-gradient(135deg, var(--purple-3), var(--purple));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero__sub { margin: 22px auto 0; max-width: 620px; font-size: 17px; color: var(--text-dim); }
.hero__actions { display: flex; gap: 14px; justify-content: center; margin-top: 34px; flex-wrap: wrap; }
.hero__meta { margin-top: 26px; color: var(--text-mute); font-size: 14px; display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.hero__meta .dot { opacity: .5; }

/* ====== 信任条 ====== */
.strip {
  max-width: var(--maxw); margin: -40px auto 0; position: relative; z-index: 2;
  display: grid; grid-template-columns: repeat(4,1fr); gap: 16px; padding: 0 24px;
}
.strip__item {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 20px 22px; text-align: center;
}
.strip__item b { display: block; font-size: 16px; color: var(--purple-3); }
.strip__item span { font-size: 13px; color: var(--text-mute); }

/* ====== 通用 section ====== */
.section { max-width: var(--maxw); margin: 0 auto; padding: 90px 24px; }
.section--alt { max-width: none; background: linear-gradient(180deg, transparent, rgba(30,30,45,.4), transparent); }
.section--alt > * { max-width: var(--maxw); margin-left: auto; margin-right: auto; }
.section__head { text-align: center; margin-bottom: 54px; }
.section__head h2 { font-size: clamp(26px,4vw,38px); font-weight: 800; letter-spacing: -.3px; }
.section__head p { margin-top: 14px; color: var(--text-dim); font-size: 16px; max-width: 620px; margin-inline: auto; }
.beta-note {
  display: inline-block; margin-top: 16px; padding: 5px 16px; border-radius: 999px;
  background: rgba(168,85,247,.14); color: var(--purple-3); font-size: 14px; font-weight: 600;
}

/* ====== 特性网格 ====== */
.grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 18px; }
.card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 26px 22px; transition: transform .2s, border-color .2s, box-shadow .2s;
}
.card:hover { transform: translateY(-4px); border-color: rgba(168,85,247,.45); box-shadow: var(--shadow); }
.card__icon {
  width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center;
  background: var(--purple-soft); margin-bottom: 16px;
}
.card__icon svg { width: 24px; height: 24px; fill: none; stroke: var(--purple-3); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.card h3 { font-size: 17px; margin-bottom: 8px; }
.card p { font-size: 14px; color: var(--text-dim); }

/* ====== 界面展示 ====== */
.showcase { display: grid; grid-template-columns: 1.3fr 1fr; gap: 50px; align-items: center; }
.showcase__shot {
  position: relative;
  max-width: 380px;
  margin-inline: auto;
  background: var(--bg-3);
  border: 1px solid var(--border);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow);
}
.showcase__shot img {
  display: block; width: 100%; height: auto;
}
.showcase__shot::after {
  content: "";
  position: absolute; inset: 0;
  border-radius: 20px;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.04);
  pointer-events: none;
}
.showcase__points { list-style: none; display: grid; gap: 18px; }
.showcase__points li { padding-left: 30px; position: relative; color: var(--text-dim); font-size: 15px; }
.showcase__points li::before { content: "✦"; position: absolute; left: 0; top: 0; color: var(--purple-3); }
.showcase__points b { color: var(--text); }

/* ====== 步骤 ====== */
.steps { display: grid; grid-template-columns: repeat(3,1fr); gap: 22px; }
.step { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 30px 26px; }
.step__num {
  width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center;
  background: linear-gradient(135deg, var(--purple), var(--purple-2)); color: #fff;
  font-weight: 800; font-size: 20px; margin-bottom: 16px;
}
.step h3 { font-size: 18px; margin-bottom: 8px; }
.step p { font-size: 14px; color: var(--text-dim); }

/* ====== 下载 ====== */
.downloads { display: grid; grid-template-columns: 1fr; gap: 22px; max-width: 420px; margin: 0 auto; align-items: stretch; }
.dl { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 32px 28px; text-align: center; }
.dl--direct {
  background: linear-gradient(180deg, rgba(168,85,247,.14), var(--surface) 60%);
  border-color: rgba(168,85,247,.55);
  box-shadow: 0 0 0 1px rgba(168,85,247,.2), 0 18px 48px rgba(147,51,234,.22);
}
.dl--direct h3 { color: var(--purple-3); }
.dl__icon { width: 52px; height: 52px; border-radius: 14px; background: var(--purple-soft); display: grid; place-items: center; margin: 0 auto 16px; }
.dl__icon svg { width: 26px; height: 26px; fill: none; stroke: var(--purple-3); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.dl h3 { font-size: 19px; margin-bottom: 10px; }
.dl p { font-size: 14px; color: var(--text-dim); margin-bottom: 20px; }
.dl code, .downloads__note code { background: var(--bg-3); padding: 2px 7px; border-radius: 5px; font-size: 13px; color: var(--purple-3); }
.dl .btn { width: 100%; }
.dl__req { display: block; margin-top: 14px; font-size: 12px; color: var(--text-mute); }
.downloads__note {
  max-width: 760px; margin: 30px auto 0; padding: 16px 20px; font-size: 14px; color: var(--text-dim);
  background: rgba(168,85,247,.08); border: 1px solid rgba(168,85,247,.3); border-radius: 12px;
}
.downloads__note strong { color: var(--purple-3); }

/* ====== 联系方式 ====== */
#contact { scroll-margin-top: 72px; padding: 56px 24px 60px; }
#contact .section__head { margin-bottom: 22px; }
.contact__mail { text-align: center; font-size: clamp(20px, 3.5vw, 30px); }
.contact__mail a { color: var(--purple-3); text-decoration: none; font-weight: 800; letter-spacing: -.3px; }
.contact__mail a:hover { text-decoration: underline; }

/* ====== 页脚 ====== */
.footer { border-top: 1px solid var(--border); background: var(--bg-2); margin-top: 40px; }
.footer__inner { max-width: var(--maxw); margin: 0 auto; padding: 40px 24px; display: grid; gap: 18px; justify-items: center; text-align: center; }
.footer__brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 17px; }
.footer__links { display: flex; gap: 22px; font-size: 14px; color: var(--text-dim); }
.footer__links a:hover { color: var(--purple-3); }
.footer__copy { font-size: 13px; color: var(--text-mute); }

/* ====== 滚动揭示 ====== */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ====== 响应式 ====== */
@media (max-width: 960px) {
  .grid { grid-template-columns: repeat(2,1fr); }
  .showcase { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .strip { grid-template-columns: repeat(2,1fr); }
}
@media (max-width: 720px) {
  .nav__links { display: none; position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; background: var(--bg-2); padding: 16px 24px; border-bottom: 1px solid var(--border); gap: 16px; }
  .nav__links.open { display: flex; }
  .nav__cta { display: none; }
  .lang { margin-left: auto; }
  .nav__toggle { display: flex; }
  .downloads { grid-template-columns: 1fr; }
  .hero__clock { width: 260px; height: 260px; }
}
@media (max-width: 520px) {
  .grid { grid-template-columns: 1fr; }
  .strip { grid-template-columns: 1fr; }
}
