/* ==========================================================================
   一新云手机 — 全站样式表
   --------------------------------------------------------------------------
   维护说明：
   - 修改配色 / 圆角 / 间距   → 看下方 :root 变量
   - 修改文字 / 链接 / 联系方式 → 看 index.html（内容已全部写死在 HTML 中）
   - 修改页面结构             → 看 index.html
   ========================================================================== */

/* ---------- 1. 主题变量（改这里即可换肤） ---------- */
:root {
  /* 主色 */
  --c-primary:        #2563eb;   /* 蓝 */
  --c-primary-dark:   #1d4ed8;
  --c-accent:         #7c3aed;   /* 紫 */
  --c-success:        #10b981;   /* 绿（安卓） */
  --c-info:           #06b6d4;   /* 青（PC / H5） */

  /* 渐变 */
  --grad-android: linear-gradient(135deg, #10b981, #16a34a);
  --grad-ios:     linear-gradient(135deg, #2563eb, #06b6d4);
  --grad-pc:      linear-gradient(135deg, #2563eb, #06b6d4);
  --grad-h5:      linear-gradient(135deg, #7c3aed, #db2777);
  --grad-hero:    linear-gradient(135deg, rgba(37,99,235,.10), rgba(124,58,237,.10), rgba(6,182,212,.10));
  --grad-page:    linear-gradient(135deg, #f8fafc, #eff6ff, #e0e7ff);

  /* 文字 */
  --text:           #1e293b;
  --text-muted:     #64748b;
  --text-light:     #94a3b8;

  /* 背景 / 边框 / 卡片 */
  --bg:             #ffffff;
  --bg-soft:        #f8fafc;
  --border:         #e2e8f0;
  --card-shadow:    0 10px 30px rgba(15, 23, 42, .08);
  --card-shadow-hover: 0 20px 45px rgba(15, 23, 42, .14);

  /* 圆角 / 间距 */
  --radius:         16px;
  --radius-sm:      10px;
  --radius-pill:    999px;

  /* 布局 */
  --container:      1200px;
  --header-h:       64px;
}

/* ---------- 2. 基础重置 ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

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

body {
  font-family: 'PingFang SC', 'Microsoft YaHei', 'Segoe UI', system-ui, -apple-system, sans-serif;
  color: var(--text);
  background: var(--grad-page);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
ul { list-style: none; }
button { font: inherit; cursor: pointer; border: none; background: none; }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 20px;
}

.section { padding: 64px 0; }
@media (max-width: 768px) { .section { padding: 44px 0; } }

.section-head { text-align: center; max-width: 760px; margin: 0 auto 40px; }
.section-head h2 { font-size: clamp(1.6rem, 3vw, 2.4rem); font-weight: 800; letter-spacing: -.02em; }
.section-head p { color: var(--text-muted); margin-top: 10px; font-size: 1.05rem; }

/* ---------- 3. 顶部导航 ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  background: rgba(255, 255, 255, .85);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 2px 12px rgba(15, 23, 42, .05);
}

.site-header .container {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.brand { display: flex; align-items: center; gap: 10px; }
.brand img { height: 40px; width: 40px; border-radius: 8px; }
.brand span { font-size: 1.15rem; font-weight: 700; }

.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-links a { color: var(--text-muted); font-weight: 500; transition: color .2s; }
.nav-links a:hover { color: var(--c-primary); }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  cursor: pointer;
}
.nav-toggle-input { display: none; }
.nav-toggle span {
  width: 24px; height: 2px; background: var(--text); border-radius: 2px;
  transition: transform .3s, opacity .3s;
}
.nav-toggle-input:checked ~ .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle-input:checked ~ .nav-toggle span:nth-child(2) { opacity: 0; }
.nav-toggle-input:checked ~ .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 860px) {
  .nav-toggle { display: flex; }
  .nav-links {
    position: absolute;
    top: var(--header-h);
    left: 0; right: 0;
    flex-direction: column;
    gap: 0;
    background: #fff;
    border-bottom: 1px solid var(--border);
    box-shadow: 0 10px 20px rgba(15,23,42,.06);
    transform: translateY(-12px);
    opacity: 0;
    pointer-events: none;
    transition: transform .25s ease, opacity .25s ease;
  }
  .nav-toggle-input:checked ~ .nav-links { transform: translateY(0); opacity: 1; pointer-events: auto; }
  .nav-links a { width: 100%; padding: 14px 20px; border-top: 1px solid var(--border); }
  .nav-links a:first-child { border-top: none; }
}

/* ---------- 4. 首屏 Hero ---------- */
.hero {
  position: relative;
  text-align: center;
  padding: 72px 0 64px;
}
.hero::before {
  content: "";
  position: absolute; inset: 0;
  background: var(--grad-hero);
  border-radius: 28px;
  z-index: -1;
}
.hero h1 {
  font-size: clamp(1.7rem, 4.5vw, 3rem);
  font-weight: 800;
  letter-spacing: -.02em;
  line-height: 1.15;
}
.hero .subtitle {
  max-width: 680px;
  margin: 16px auto 0;
  color: var(--text-muted);
  font-size: clamp(1rem, 2vw, 1.2rem);
}
.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
  margin-top: 36px;
}

/* 下载按钮 */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-width: 150px;
  padding: 12px 28px;
  border-radius: var(--radius-sm);
  color: #fff;
  font-weight: 600;
  font-size: .95rem;
  box-shadow: 0 10px 20px rgba(15, 23, 42, .12);
  transition: transform .2s ease, box-shadow .2s ease, filter .2s ease;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 16px 28px rgba(15, 23, 42, .18); filter: brightness(1.05); }
.btn:active { transform: translateY(0); }
.btn--android { background: var(--grad-android); }
.btn--ios     { background: var(--grad-ios); }
.btn--pc      { background: var(--grad-pc); }
.btn--h5      { background: var(--grad-h5); }
.btn__icon { width: 18px; height: 18px; flex: none; }

/* ---------- 5. 产品展示 ---------- */
.product-card {
  background: var(--bg);
  border-radius: var(--radius);
  box-shadow: var(--card-shadow);
  padding: 40px;
  transition: box-shadow .3s ease;
}
.product-card:hover { box-shadow: var(--card-shadow-hover); }
.product-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}
.product-grid h3 { font-size: clamp(1.5rem, 3vw, 2.2rem); font-weight: 800; }
.product-grid .desc { color: var(--text-muted); font-size: 1.1rem; margin-top: 12px; }
.feature-groups { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 28px; }
.feature-group h4 { font-size: 1.1rem; font-weight: 700; margin-bottom: 12px; }
.feature-group--blue   { color: #2563eb; }
.feature-group--purple { color: #7c3aed; }
.feature-group--orange { color: #ea580c; }
.feature-group ul li {
  display: flex; align-items: center; gap: 8px;
  font-size: .95rem; color: var(--text-muted); margin-bottom: 8px;
}
.check {
  flex: none; width: 18px; height: 18px;
  background: var(--c-success); border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
}
.check::after {
  content: ""; width: 9px; height: 5px;
  border-left: 2px solid #fff; border-bottom: 2px solid #fff;
  transform: rotate(-45deg) translate(1px, -1px);
}
.product-media img {
  width: 100%; aspect-ratio: 4 / 3; object-fit: cover;
  border-radius: var(--radius-sm);
  box-shadow: 0 12px 28px rgba(15, 23, 42, .14);
}

@media (max-width: 860px) {
  .product-card { padding: 24px; }
  .product-grid { grid-template-columns: 1fr; gap: 28px; }
  .feature-groups { grid-template-columns: 1fr; gap: 18px; }
}

/* ---------- 6. 特点卡片网格 ---------- */
.features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.feature-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px;
  box-shadow: 0 4px 14px rgba(15, 23, 42, .04);
  transition: transform .25s ease, box-shadow .25s ease;
}
.feature-card:hover { transform: translateY(-6px); box-shadow: var(--card-shadow); }
.feature-card__icon {
  width: 48px; height: 48px;
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 16px;
}
.feature-card__icon svg { width: 24px; height: 24px; }
.feature-card h3 { font-size: 1.2rem; font-weight: 700; }
.feature-card .sub { color: var(--text-muted); font-size: .92rem; margin: 6px 0 14px; }
.feature-card ul li {
  display: flex; gap: 8px; align-items: flex-start;
  font-size: .9rem; color: var(--text-muted); margin-bottom: 8px;
}
.feature-card ul li .check { margin-top: 2px; }

@media (max-width: 1024px) { .features-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px)  { .features-grid { grid-template-columns: 1fr; } }

/* ---------- 7. 联系我们 ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.contact-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: 0 4px 14px rgba(15, 23, 42, .04);
}
.contact-card h3 { font-size: 1.2rem; font-weight: 700; margin-bottom: 4px; }
.contact-card .sub { color: var(--text-muted); font-size: .92rem; margin-bottom: 18px; }
.contact-item { display: flex; align-items: center; gap: 14px; margin-bottom: 16px; }
.contact-item:last-child { margin-bottom: 0; }
.contact-item .ico {
  flex: none; width: 40px; height: 40px; border-radius: 10px;
  background: var(--bg-soft); display: flex; align-items: center; justify-content: center;
  color: var(--c-primary);
}
.contact-item .ico svg { width: 20px; height: 20px; }
.contact-item .label { font-weight: 600; }
.contact-item .value { color: var(--text-muted); font-size: .92rem; }

.hours-row { display: flex; justify-content: space-between; font-size: .95rem; padding: 6px 0; }
.hours-note { margin-top: 14px; font-size: .82rem; color: var(--text-light); }

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

/* ---------- 8. 页脚 ---------- */
.site-footer {
  border-top: 1px solid var(--border);
  background: rgba(255, 255, 255, .8);
  backdrop-filter: blur(8px);
}
.site-footer .container {
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  font-size: .8rem;
  color: var(--text-muted);
}
.site-footer a:hover { color: var(--c-primary); }
.site-footer .sep { color: var(--text-light); }

/* ---------- 9. 入场动画（纯 CSS） ---------- */
.hero { animation: fade-up .6s ease both; }
@keyframes fade-up {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ---------- 10. 工具类 ---------- */
.text-center { text-align: center; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; transition: none !important; animation: none !important; }
}
