/* =========================================================
   6is.cn  ·  个人业务主页样式（浅蓝色明亮主题）
   作者：6is   |   可直接修改顶部颜色变量换主题
   ========================================================= */

/* ---------- 设计变量 ---------- */
:root {
  --bg: #eaf2ff;            /* 页面主背景：浅蓝 */
  --bg-2: #f6faff;          /* 渐变过渡底色 */
  --surface: #ffffff;       /* 卡片 / 面板底色 */
  --surface-2: #f2f7ff;     /* 次级底色 */
  --hover: rgba(37, 99, 235, 0.07);

  --border: rgba(30, 64, 175, 0.13);
  --border-strong: rgba(30, 64, 175, 0.24);

  --text: #0e1c39;          /* 主文字：深藏青 */
  --text-dim: #46618f;      /* 次要文字 */
  --text-mute: #7c90b4;     /* 弱化文字 */

  --primary: #2563eb;
  --primary-2: #6366f1;
  --accent: #0ea5a0;

  --grad: linear-gradient(120deg, #2563eb 0%, #3b82f6 55%, #6366f1 100%);
  --grad-soft: linear-gradient(120deg, rgba(37, 99, 235, 0.10), rgba(99, 102, 241, 0.10));

  --radius: 18px;
  --radius-sm: 12px;
  --shadow-sm: 0 6px 18px -10px rgba(30, 64, 175, 0.32);
  --shadow: 0 22px 48px -26px rgba(30, 64, 175, 0.45);
  --shadow-lg: 0 30px 60px -28px rgba(30, 64, 175, 0.5);
  --max: 1180px;
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: "PingFang SC", "Microsoft YaHei", "Segoe UI", system-ui, -apple-system, sans-serif;
  background: linear-gradient(180deg, #e4eeff 0%, var(--bg) 32%, #f4f9ff 68%, #e9f1ff 100%);
  background-attachment: fixed;
  color: var(--text);
  line-height: 1.7;
  overflow-x: hidden;
  position: relative;
}

/* 背景光晕：天空蓝的柔光 */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background:
    radial-gradient(58% 42% at 12% 4%, rgba(96, 165, 250, 0.42), transparent 62%),
    radial-gradient(52% 42% at 90% 8%, rgba(129, 140, 248, 0.30), transparent 62%),
    radial-gradient(60% 48% at 50% 104%, rgba(56, 189, 248, 0.26), transparent 66%),
    radial-gradient(40% 30% at 75% 62%, rgba(255, 255, 255, 0.85), transparent 70%);
}

/* 细网格纹理（顶部渐隐） */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(rgba(37, 99, 235, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(37, 99, 235, 0.055) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(circle at 50% 0%, #000 0%, transparent 72%);
  -webkit-mask-image: radial-gradient(circle at 50% 0%, #000 0%, transparent 72%);
  pointer-events: none;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

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

.grad-text {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ---------- 导航 ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  background: rgba(255, 255, 255, 0.72);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s, background 0.3s, box-shadow 0.3s;
}
.nav.scrolled {
  border-bottom-color: var(--border);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 10px 30px -22px rgba(30, 64, 175, 0.55);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  font-weight: 700;
  font-size: 18px;
  letter-spacing: 0.2px;
  color: var(--text);
}
.brand .logo {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: var(--grad);
  display: grid;
  place-items: center;
  font-size: 16px;
  font-weight: 800;
  color: #fff;
  box-shadow: 0 10px 20px -8px rgba(37, 99, 235, 0.7);
}
.brand .dot { color: var(--primary); }

.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-links a {
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 14.5px;
  color: var(--text-dim);
  transition: color 0.2s, background 0.2s;
}
.nav-links a:hover { color: var(--primary); background: var(--hover); }

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 18px;
  border-radius: 999px;
  font-size: 14.5px;
  font-weight: 600;
  background: var(--grad);
  color: #fff;
  box-shadow: 0 12px 26px -12px rgba(37, 99, 235, 0.9);
  transition: transform 0.2s, box-shadow 0.2s;
}
.nav-cta:hover { transform: translateY(-1px); box-shadow: 0 16px 30px -12px rgba(37, 99, 235, 1); }

.nav-burger {
  display: none;
  width: 42px; height: 42px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #fff;
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  position: relative;
}
.nav-burger span {
  position: absolute; left: 11px; width: 20px; height: 2px;
  background: var(--text); border-radius: 2px;
  transition: transform 0.3s, opacity 0.2s;
}
.nav-burger span:nth-child(1) { top: 15px; }
.nav-burger span:nth-child(2) { top: 20px; }
.nav-burger span:nth-child(3) { top: 25px; }
.nav-burger.open span:nth-child(1) { transform: translateY(5px) rotate(45deg); }
.nav-burger.open span:nth-child(2) { opacity: 0; }
.nav-burger.open span:nth-child(3) { transform: translateY(-5px) rotate(-45deg); }

/* ---------- 通用区块 ---------- */
section { padding: 92px 0; position: relative; }
.sec-head { max-width: 720px; margin-bottom: 52px; }
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  letter-spacing: 1.5px;
  font-weight: 700;
  color: var(--primary);
  text-transform: uppercase;
  margin-bottom: 14px;
}
.eyebrow::before {
  content: "";
  width: 22px; height: 2px; border-radius: 2px;
  background: var(--grad);
}
.sec-head h2 {
  font-size: clamp(26px, 3.6vw, 40px);
  line-height: 1.25;
  letter-spacing: -0.02em;
  font-weight: 800;
  color: var(--text);
}
.sec-head p {
  margin-top: 16px;
  font-size: 16px;
  color: var(--text-dim);
}

/* ---------- Hero ---------- */
.hero { padding: 88px 0 72px; }
.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 56px;
  align-items: center;
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 7px 16px;
  border-radius: 999px;
  border: 1px solid var(--border-strong);
  background: rgba(255, 255, 255, 0.85);
  box-shadow: var(--shadow-sm);
  font-size: 13.5px;
  color: var(--text-dim);
  margin-bottom: 26px;
}
.badge .pulse {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 0 rgba(14, 165, 160, 0.6);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(14, 165, 160, 0.5); }
  70% { box-shadow: 0 0 0 9px rgba(14, 165, 160, 0); }
  100% { box-shadow: 0 0 0 0 rgba(14, 165, 160, 0); }
}

.hero h1 {
  font-size: clamp(32px, 5vw, 54px);
  line-height: 1.16;
  letter-spacing: -0.03em;
  font-weight: 800;
  color: var(--text);
}
.hero .sub {
  margin-top: 22px;
  font-size: 17px;
  color: var(--text-dim);
  max-width: 560px;
}
.hero-actions {
  margin-top: 34px;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}
.btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 13px 26px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s, border-color 0.2s;
}
.btn-primary {
  background: var(--grad);
  color: #fff;
  box-shadow: 0 16px 32px -14px rgba(37, 99, 235, 0.95);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 22px 40px -14px rgba(37, 99, 235, 1); }
.btn-ghost {
  border-color: var(--border-strong);
  background: #fff;
  color: var(--text);
  box-shadow: var(--shadow-sm);
}
.btn-ghost:hover { transform: translateY(-2px); border-color: var(--primary); color: var(--primary); background: var(--surface-2); }

/* Hero 统计 */
.hero-stats {
  margin-top: 46px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  max-width: 560px;
}
.hero-stat .num {
  font-size: 30px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--primary);
}
.hero-stat .label { font-size: 13.5px; color: var(--text-mute); margin-top: 2px; }

/* Hero 视觉卡片 */
.hero-visual { position: relative; }
.glass-card {
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.92);
  border-radius: 22px;
  padding: 22px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(10px);
}
.glass-card + .glass-card { margin-top: 16px; }
.mini-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.mini-head .t { font-size: 14.5px; font-weight: 700; color: var(--text); }
.mini-head .tag {
  font-size: 11.5px; color: var(--accent); font-weight: 600;
  border: 1px solid rgba(14, 165, 160, 0.35);
  background: rgba(14, 165, 160, 0.1);
  border-radius: 999px; padding: 2px 10px;
}
.bar-row { margin-bottom: 13px; }
.bar-row .lbl { display: flex; justify-content: space-between; font-size: 12.5px; color: var(--text-dim); margin-bottom: 6px; }
.bar { height: 8px; border-radius: 999px; background: rgba(37, 99, 235, 0.12); overflow: hidden; }
.bar > i { display: block; height: 100%; border-radius: 999px; background: var(--grad); width: 0; transition: width 1.2s cubic-bezier(.22,.61,.36,1); }
.chip-row { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  font-size: 12.5px;
  padding: 5px 12px;
  border-radius: 999px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  color: var(--text-dim);
}
.hero-visual .float {
  position: absolute;
  right: -14px;
  bottom: -18px;
  padding: 12px 16px;
  border-radius: 14px;
  background: #fff;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: var(--text);
}
.hero-visual .float .ico {
  width: 30px; height: 30px; border-radius: 9px;
  display: grid; place-items: center;
  background: var(--grad-soft);
  font-size: 15px;
}

/* ---------- 卡片网格 ---------- */
.grid { display: grid; gap: 20px; }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }

.card {
  border: 1px solid var(--border);
  background: var(--surface);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s, border-color 0.25s, box-shadow 0.25s;
  position: relative;
  overflow: hidden;
}
.card::before {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(80% 80% at 100% 0%, rgba(37, 99, 235, 0.10), transparent 70%);
  opacity: 0;
  transition: opacity 0.3s;
  pointer-events: none;
}
.card:hover { transform: translateY(-4px); border-color: var(--border-strong); box-shadow: var(--shadow); }
.card:hover::before { opacity: 1; }
.card .ico {
  width: 46px; height: 46px;
  border-radius: 13px;
  display: grid; place-items: center;
  background: var(--grad-soft);
  border: 1px solid var(--border);
  font-size: 21px;
  margin-bottom: 18px;
}
.card h3 { font-size: 18px; font-weight: 700; margin-bottom: 9px; letter-spacing: -0.01em; color: var(--text); }
.card p { font-size: 14.5px; color: var(--text-dim); }

/* 产品卡 */
.product { display: flex; flex-direction: column; }
.product .top { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.product .p-ico {
  width: 44px; height: 44px; border-radius: 12px;
  display: grid; place-items: center; font-size: 20px;
  background: var(--grad-soft); border: 1px solid var(--border);
}
.product .ver { font-size: 11.5px; color: var(--text-mute); white-space: nowrap; padding-top: 4px; font-weight: 600; }
.product h3 { font-size: 17px; margin-bottom: 8px; color: var(--text); }
.product p { font-size: 14px; color: var(--text-dim); flex: 1; }
.product .tags { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 18px; }
.product .tags span {
  font-size: 11.5px; color: var(--primary); font-weight: 600;
  background: rgba(37, 99, 235, 0.08);
  border: 1px solid rgba(37, 99, 235, 0.2);
  padding: 3px 10px; border-radius: 999px;
}

/* ---------- 关于 ---------- */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.about-text p { color: var(--text-dim); font-size: 16px; margin-bottom: 18px; }
.about-text p strong { color: var(--text); font-weight: 600; }
.about-points { display: grid; gap: 14px; margin-top: 26px; }
.about-points li { display: flex; gap: 12px; font-size: 15px; color: var(--text-dim); }
.about-points .tick {
  flex: none; width: 22px; height: 22px; border-radius: 50%;
  display: grid; place-items: center; font-size: 12px; margin-top: 3px;
  background: rgba(14, 165, 160, 0.12); color: var(--accent);
  border: 1px solid rgba(14, 165, 160, 0.35);
}
.about-panel {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.94);
  padding: 30px;
  box-shadow: var(--shadow);
}
.about-panel h4 { font-size: 13px; color: var(--text-mute); font-weight: 700; letter-spacing: 0.6px; margin-bottom: 18px; text-transform: uppercase; }
.skill-list { display: grid; gap: 16px; }
.skill .sl-top { display: flex; justify-content: space-between; font-size: 14px; margin-bottom: 8px; color: var(--text); }
.skill .sl-top .v { color: var(--text-mute); font-size: 12.5px; }

/* ---------- 流程 ---------- */
.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; counter-reset: s; }
.step { position: relative; padding-top: 8px; }
.step .n {
  font-size: 13px; font-weight: 800; color: var(--primary);
  width: 40px; height: 40px; border-radius: 12px;
  display: grid; place-items: center; margin-bottom: 16px;
  background: #fff; border: 1px solid var(--border-strong);
  box-shadow: var(--shadow-sm);
}
.step h3 { font-size: 16.5px; margin-bottom: 8px; color: var(--text); }
.step p { font-size: 14px; color: var(--text-dim); }

/* ---------- 联系 ---------- */
.contact {
  border: 1px solid var(--border-strong);
  border-radius: 26px;
  padding: 60px 44px;
  background:
    radial-gradient(80% 120% at 12% 0%, rgba(96, 165, 250, 0.30), transparent 62%),
    radial-gradient(80% 120% at 92% 8%, rgba(129, 140, 248, 0.24), transparent 62%),
    #ffffff;
  text-align: center;
  box-shadow: var(--shadow-lg);
}
.contact h2 { font-size: clamp(26px, 3.6vw, 38px); letter-spacing: -0.02em; font-weight: 800; color: var(--text); }
.contact > p { margin: 16px auto 0; max-width: 560px; color: var(--text-dim); font-size: 16px; }
.contact-methods {
  margin-top: 38px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  text-align: left;
}
.method {
  display: flex; align-items: center; gap: 14px;
  padding: 18px 20px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: #fff;
  box-shadow: var(--shadow-sm);
  transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
}
.method:hover { border-color: var(--primary); transform: translateY(-2px); box-shadow: var(--shadow); }
.method .m-ico {
  width: 42px; height: 42px; border-radius: 12px; flex: none;
  display: grid; place-items: center; font-size: 19px;
  background: var(--grad-soft); border: 1px solid var(--border);
}
.method .m-t { font-size: 12.5px; color: var(--text-mute); display: block; }
.method .m-v { font-size: 15px; font-weight: 600; word-break: break-all; color: var(--text); display: block; }
.qr-box {
  margin-top: 20px;
  display: inline-flex; flex-direction: column; align-items: center; gap: 10px;
  padding: 18px;
  border: 1px dashed var(--border-strong);
  border-radius: var(--radius-sm);
  color: var(--text-mute);
  font-size: 13px;
  background: #fff;
}
.qr-box img { width: 150px; height: 150px; border-radius: 10px; object-fit: cover; }

/* ---------- 页脚 ---------- */
footer {
  border-top: 1px solid var(--border);
  padding: 42px 0;
  margin-top: 40px;
  background: rgba(255, 255, 255, 0.6);
}
.foot-inner { display: flex; flex-wrap: wrap; gap: 20px; align-items: center; justify-content: space-between; }
.foot-inner .copy { font-size: 13.5px; color: var(--text-mute); }
.foot-links { display: flex; flex-wrap: wrap; gap: 20px; font-size: 13.5px; color: var(--text-mute); }
.foot-links a:hover { color: var(--primary); }

/* ---------- 滚动出现动画 ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.7s ease, transform 0.7s cubic-bezier(.22,.61,.36,1); }
.reveal.in { opacity: 1; transform: none; }

/* ---------- 响应式 ---------- */
@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; gap: 44px; }
  .about-grid { grid-template-columns: 1fr; gap: 36px; }
  .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 720px) {
  section { padding: 66px 0; }
  .nav-links { display: none; }
  .nav-cta { display: none; }
  .nav-burger { display: block; }
  .nav-links.open {
    display: flex;
    position: absolute; top: 68px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 6px;
    padding: 14px 20px 20px;
    background: rgba(255, 255, 255, 0.98);
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow);
  }
  .nav-links.open a { padding: 12px 14px; font-size: 15px; }
  .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .hero-stats { grid-template-columns: repeat(3, 1fr); gap: 12px; }
  .hero-stat .num { font-size: 24px; }
  .contact { padding: 44px 22px; }
  .hero-visual .float { right: 6px; }
}

@media (max-width: 460px) {
  .steps { grid-template-columns: 1fr; }
  .hero-stats { grid-template-columns: 1fr 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}
