/* ============================================================
   Aopicc 官网样式
   风格：参考 Apple 官网 —— 大留白、超大标题、系统字体、克制配色、
        自动深色模式、丝滑滚动 + 轻微动效。
   ============================================================ */

/* ---------- 颜色变量：浅色（默认） ---------- */
:root {
  --bg: #ffffff;          /* 页面背景 */
  --bg-soft: #f5f5f7;     /* 次级背景（分区/卡片） */
  --text: #1d1d1f;        /* 主文字 */
  --text-soft: #6e6e73;   /* 次级文字 */
  --accent: #0071e3;      /* 点缀色（苹果蓝） */
  --card: #ffffff;        /* 卡片背景 */
  --border: rgba(0,0,0,.08);
  --nav-bg: rgba(255,255,255,.72);  /* 导航毛玻璃底色 */
}

/* ---------- 颜色变量：深色（跟随系统） ---------- */
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #000000;
    --bg-soft: #101012;
    --text: #f5f5f7;
    --text-soft: #a1a1a6;
    --accent: #2997ff;
    --card: #1c1c1e;
    --border: rgba(255,255,255,.1);
    --nav-bg: rgba(22,22,23,.72);
  }
}

/* ---------- 全局 reset + 基础 ---------- */
* { margin: 0; padding: 0; box-sizing: border-box; }

html {
  scroll-behavior: smooth;       /* 锚点跳转平滑滚动 */
  scroll-padding-top: 60px;      /* 跳转时给固定导航留位置 */
}

body {
  /* 字体栈：苹果设备用 San Francisco，中文用苹方，其它系统回退 */
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text",
               "PingFang SC", "Helvetica Neue", "Microsoft YaHei", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

section { padding: 120px 24px; }

/* ---------- 通用：分区标题 / 按钮 ---------- */
.section-head { text-align: center; margin-bottom: 64px; }

.section-title {
  font-size: clamp(32px, 5vw, 56px);
  font-weight: 700;
  letter-spacing: -.02em;
}

.section-desc { color: var(--text-soft); font-size: 19px; margin-top: 12px; }

.btn {
  display: inline-block;
  padding: 12px 28px;
  border-radius: 980px;         /* 苹果同款胶囊按钮 */
  font-size: 17px;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: transform .2s ease, opacity .2s ease;
}
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { transform: scale(1.04); }
.btn:disabled, .btn-disabled {
  background: var(--bg-soft);
  color: var(--text-soft);
  cursor: not-allowed;
  pointer-events: none;
}

/* ---------- 顶部导航（毛玻璃） ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: var(--nav-bg);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  max-width: 1000px; margin: 0 auto;
  height: 52px; padding: 0 24px;
  display: flex; align-items: center; justify-content: space-between;
}
.nav-brand {
  font-size: 20px; font-weight: 600; letter-spacing: -.01em;
  color: var(--text); text-decoration: none;
}
.nav-links a {
  margin-left: 28px; font-size: 15px;
  color: var(--text-soft); text-decoration: none;
  transition: color .2s ease;
}
.nav-links a:hover { color: var(--text); }

/* ---------- 首屏 Hero ---------- */
.hero {
  min-height: 100vh;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  text-align: center;
  position: relative;
}
.hero-title {
  font-size: clamp(44px, 9vw, 96px);
  font-weight: 700; letter-spacing: -.03em; line-height: 1.05;
}
.hero-subtitle {
  font-size: clamp(19px, 3vw, 26px);
  color: var(--text-soft);
  margin: 24px 0 40px;
}
.hero-scroll {
  position: absolute; bottom: 40px;
  font-size: 34px; color: var(--text-soft);
  text-decoration: none; animation: bob 2s infinite;
}
@keyframes bob { 0%,100%{ transform: translateY(0);} 50%{ transform: translateY(8px);} }

/* ---------- 产品橱窗 ---------- */
.products { background: var(--bg-soft); }
.product-grid {
  max-width: 1000px; margin: 0 auto;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 28px;
}
.product-card {
  background: var(--card);
  border-radius: 22px;
  overflow: hidden;
  border: 1px solid var(--border);
  display: flex; flex-direction: column;
  transition: transform .3s ease, box-shadow .3s ease;
}
.product-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 40px rgba(0,0,0,.12);
}
/* 产品视觉：暂用渐变占位；以后换真图时改成 <img> 即可 */
.product-visual {
  aspect-ratio: 16/10;
  display: flex; align-items: center; justify-content: center;
  font-size: 28px; font-weight: 700; color: #fff;
  letter-spacing: .02em;
}
.product-body { padding: 26px 26px 30px; display: flex; flex-direction: column; flex: 1; }
.product-name {
  font-size: 24px; font-weight: 600;
  display: flex; align-items: center; gap: 10px;
}
.product-tagline { color: var(--text-soft); font-size: 16px; margin: 12px 0 24px; flex: 1; }

/* 状态徽章 */
.badge {
  font-size: 12px; font-weight: 500;
  padding: 3px 10px; border-radius: 980px;
  background: var(--bg-soft); color: var(--text-soft);
  border: 1px solid var(--border);
}
.badge-live { background: rgba(52,199,89,.15); color: #34c759; border-color: transparent; }

.product-card .btn { align-self: flex-start; font-size: 15px; padding: 9px 22px; }

/* ---------- 关于 ---------- */
.about { text-align: center; }
.about-content { max-width: 720px; margin: 0 auto; }
.about-text { font-size: clamp(20px, 3vw, 28px); color: var(--text-soft); margin-top: 28px; line-height: 1.6; }

/* ---------- 联系 ---------- */
.contact { background: var(--bg-soft); text-align: center; }
.contact-content { max-width: 720px; margin: 0 auto; }
.contact-methods {
  display: flex; flex-wrap: wrap; gap: 20px; justify-content: center;
  margin: 48px 0;
}
.contact-card {
  background: var(--card); border: 1px solid var(--border);
  border-radius: 18px; padding: 24px 32px;
  min-width: 220px; text-decoration: none;
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  color: var(--text);
}
.contact-label { font-size: 14px; color: var(--text-soft); }
.contact-value { font-size: 18px; font-weight: 500; }
.qr-placeholder {
  margin-top: 14px; width: 120px; height: 120px;
  border: 1px dashed var(--border); border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; color: var(--text-soft); text-align: center;
}

.contact-form { display: flex; flex-direction: column; gap: 14px; max-width: 460px; margin: 0 auto; text-align: left; }
.contact-form input, .contact-form textarea {
  background: var(--card); border: 1px solid var(--border);
  border-radius: 12px; padding: 14px 16px;
  font-size: 16px; color: var(--text); font-family: inherit;
}
.contact-form input:focus, .contact-form textarea:focus { outline: 2px solid var(--accent); border-color: transparent; }
.contact-form .btn { align-self: center; margin-top: 6px; }

/* ---------- 页脚 ---------- */
.footer {
  text-align: center; padding: 40px 24px;
  color: var(--text-soft); font-size: 13px;
  border-top: 1px solid var(--border);
}

/* ---------- 滚动淡入动效（配合 js 的 IntersectionObserver） ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in-view { opacity: 1; transform: translateY(0); }

/* 用户若在系统设置里开了"减少动态效果"，则关掉动画 */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero-scroll { animation: none; }
}

/* ---------- 手机窄屏适配 ---------- */
@media (max-width: 600px) {
  section { padding: 80px 20px; }
  .nav-links a { margin-left: 18px; }
  .contact-methods { flex-direction: column; align-items: center; }
}
