/* ============================================================
   星心悟道 · 永锅 — 个人网站样式
   主色：蓝紫渐变 #5E5CE6 → #A855F7  浅底 #f5f5f7  文字 #1d1d1f
   ============================================================ */

:root {
  --bg: #f5f5f7;
  --card: #ffffff;
  --text: #1d1d1f;
  --text-2: #6e6e73;
  --text-3: #86868b;
  --grad-start: #5e5ce6;
  --grad-end: #a855f7;
  --gradient: linear-gradient(135deg, #5e5ce6 0%, #a855f7 100%);
  --gold: #c9a24b;
  --radius: 20px;
  --radius-sm: 14px;
  --shadow-sm: 0 2px 10px rgba(0, 0, 0, 0.05);
  --shadow: 0 10px 34px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 22px 60px rgba(94, 92, 230, 0.16);
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text",
    "PingFang SC", "Hiragino Sans GB", "Segoe UI", "Microsoft YaHei", sans-serif;
}

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

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

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

::selection { background: rgba(94, 92, 230, 0.18); }

/* ---------- 布局容器 ---------- */
.wrap {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 28px;
}

/* ---------- 导航栏 ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(245, 245, 247, 0.82);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.nav-inner {
  max-width: 1080px;
  margin: 0 auto;
  padding: 14px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  font-size: 18px;
  letter-spacing: 0.5px;
}

.brand img { width: 36px; height: 36px; border-radius: 9px; }

.brand .name b { color: var(--text); }
.brand .name span {
  display: block;
  font-size: 12px;
  font-weight: 400;
  color: var(--text-2);
  letter-spacing: 0.3px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav-links a {
  padding: 8px 15px;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 500;
  color: var(--text-2);
  transition: all 0.2s ease;
}

.nav-links a:hover { color: var(--text); background: rgba(0, 0, 0, 0.04); }
.nav-links a.active {
  color: #fff;
  background: var(--gradient);
  box-shadow: 0 4px 14px rgba(94, 92, 230, 0.32);
}

.nav-cta {
  flex-shrink: 0;
  padding: 9px 18px;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 600;
  color: #fff;
  background: var(--gradient);
  box-shadow: 0 6px 18px rgba(94, 92, 230, 0.32);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.nav-cta:hover { transform: translateY(-1px); box-shadow: 0 10px 26px rgba(94, 92, 230, 0.42); }

/* 移动端导航 */
.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; }

/* ---------- Hero ---------- */
.hero {
  padding: 90px 0 70px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: -30% -20% auto;
  height: 560px;
  background:
    radial-gradient(600px 340px at 20% 20%, rgba(94, 92, 230, 0.16), transparent 60%),
    radial-gradient(560px 320px at 80% 30%, rgba(168, 85, 247, 0.16), transparent 60%);
  pointer-events: none;
}

.hero .badge {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  border-radius: 999px;
  background: #fff;
  box-shadow: var(--shadow-sm);
  font-size: 14px;
  font-weight: 500;
  color: var(--text-2);
  margin-bottom: 28px;
}

.hero .badge .dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--gradient);
}

.hero h1 {
  position: relative;
  font-size: clamp(34px, 5.6vw, 58px);
  line-height: 1.18;
  font-weight: 700;
  letter-spacing: -0.5px;
  max-width: 760px;
  margin: 0 auto 26px;
}

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

.hero .sub {
  position: relative;
  font-size: clamp(17px, 2.4vw, 22px);
  color: var(--text-2);
  max-width: 640px;
  margin: 0 auto 38px;
  line-height: 1.7;
}

.hero .actions {
  position: relative;
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 15px 30px;
  border-radius: 14px;
  font-size: 17px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  border: 0;
}

.btn-primary {
  color: #fff;
  background: var(--gradient);
  box-shadow: var(--shadow-lg);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 28px 70px rgba(94, 92, 230, 0.28); }

.btn-ghost {
  color: var(--text);
  background: #fff;
  box-shadow: var(--shadow-sm);
}
.btn-ghost:hover { transform: translateY(-2px); box-shadow: var(--shadow); }

/* ---------- 区块标题 ---------- */
.section { padding: 72px 0; }
.section-title {
  text-align: center;
  margin-bottom: 48px;
}
.section-title .kicker {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--grad-start);
  margin-bottom: 12px;
}
.section-title h2 {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 700;
  letter-spacing: -0.4px;
}
.section-title p {
  margin-top: 14px;
  font-size: 17px;
  color: var(--text-2);
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}

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

.card {
  background: var(--card);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }

.card .icon {
  width: 54px; height: 54px;
  border-radius: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  color: #fff;
  background: var(--gradient);
  margin-bottom: 20px;
  box-shadow: 0 8px 20px rgba(94, 92, 230, 0.28);
}

.card h3 { font-size: 20px; font-weight: 700; margin-bottom: 10px; }
.card p { font-size: 15.5px; color: var(--text-2); line-height: 1.7; }

.card .tag {
  display: inline-block;
  margin-top: 16px;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  color: var(--grad-start);
  background: rgba(94, 92, 230, 0.09);
}

/* ---------- 内页页头 ---------- */
.page-head {
  padding: 72px 0 8px;
  text-align: center;
}
.page-head .kicker {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--grad-start);
  margin-bottom: 12px;
}
.page-head h1 {
  font-size: clamp(32px, 5vw, 48px);
  font-weight: 700;
  letter-spacing: -0.4px;
  margin-bottom: 16px;
}
.page-head p {
  font-size: 18px;
  color: var(--text-2);
  max-width: 600px;
  margin: 0 auto;
}

/* ---------- 关于页 ---------- */
.about-grid {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 48px;
  align-items: start;
  padding: 48px 0;
}

.about-photo {
  position: sticky;
  top: 100px;
  text-align: center;
}
.about-photo img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 28px;
  box-shadow: var(--shadow);
  background: #fff;
}
.about-photo .note {
  margin-top: 14px;
  font-size: 13px;
  color: var(--text-3);
}

.about-body h2 { font-size: 24px; font-weight: 700; margin-bottom: 18px; }
.about-body p { color: var(--text-2); margin-bottom: 16px; }

.stat-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin: 30px 0; }
.stat {
  background: var(--card);
  border-radius: var(--radius-sm);
  padding: 20px 12px;
  text-align: center;
  box-shadow: var(--shadow-sm);
}
.stat b {
  display: block;
  font-size: 28px;
  font-weight: 700;
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.stat span { font-size: 13px; color: var(--text-2); }

.tag-list { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 8px; }
.tag-list span {
  padding: 8px 16px;
  border-radius: 999px;
  background: #fff;
  box-shadow: var(--shadow-sm);
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
}

/* ---------- 案例/作品集 ---------- */
.case-card { cursor: default; }
.case-card .meta {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: var(--text-3);
  margin-bottom: 14px;
}
.case-card .freq {
  margin-left: auto;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  color: var(--grad-start);
  background: rgba(94, 92, 230, 0.09);
}
.case-card h3 { font-size: 19px; margin-bottom: 8px; }
.case-card p { font-size: 14.5px; }

.sample {
  margin-top: 48px;
  background: linear-gradient(135deg, rgba(94, 92, 230, 0.06), rgba(168, 85, 247, 0.06));
  border: 1px solid rgba(94, 92, 230, 0.14);
  border-radius: var(--radius);
  padding: 36px;
}
.sample .badge {
  display: inline-block;
  padding: 5px 14px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  color: #fff;
  background: var(--gradient);
  margin-bottom: 16px;
}
.sample h3 { font-size: 22px; font-weight: 700; margin-bottom: 10px; }
.sample p { color: var(--text-2); margin-bottom: 8px; }

/* ---------- 工具页 ---------- */
.tool-item {
  display: flex;
  gap: 20px;
  align-items: flex-start;
}
.tool-item .num {
  flex-shrink: 0;
  width: 44px; height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 18px;
  color: #fff;
  background: var(--gradient);
}
.tool-item h3 { font-size: 18px; margin-bottom: 6px; }
.tool-item p { font-size: 15px; color: var(--text-2); }
.tool-item .soon {
  display: inline-block;
  margin-top: 10px;
  font-size: 13px;
  font-weight: 600;
  color: var(--grad-start);
}

/* ---------- 价格页 ---------- */
.pricing-card { position: relative; display: flex; flex-direction: column; }
.pricing-card.featured {
  background: var(--gradient);
  color: #fff;
  box-shadow: var(--shadow-lg);
}
.pricing-card.featured h3, .pricing-card.featured .price { color: #fff; }
.pricing-card.featured p, .pricing-card.featured li { color: rgba(255, 255, 255, 0.9); }
.pricing-card.featured .btn-ghost { background: #fff; color: var(--grad-start); }

.pricing-card .tier { font-size: 15px; font-weight: 600; color: var(--text-2); margin-bottom: 8px; }
.pricing-card.featured .tier { color: rgba(255, 255, 255, 0.85); }
.pricing-card h3 { font-size: 24px; font-weight: 700; margin-bottom: 6px; }
.pricing-card .desc { font-size: 14px; color: var(--text-2); margin-bottom: 22px; }
.pricing-card.featured .desc { color: rgba(255, 255, 255, 0.85); }

.price { font-size: 40px; font-weight: 700; margin-bottom: 22px; }
.price small { font-size: 16px; font-weight: 500; opacity: 0.7; }

.pricing-card ul { margin-bottom: 28px; flex: 1; }
.pricing-card li {
  position: relative;
  padding: 7px 0 7px 28px;
  font-size: 15px;
  color: var(--text-2);
}
.pricing-card li::before {
  content: "";
  position: absolute;
  left: 4px; top: 15px;
  width: 12px; height: 6px;
  border-left: 2px solid var(--grad-start);
  border-bottom: 2px solid var(--grad-start);
  transform: rotate(-45deg);
}
.pricing-card.featured li::before { border-color: #fff; }

.pricing-card .btn { justify-content: center; width: 100%; }

/* ---------- 联系页 ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; padding: 40px 0; }
.contact-qr {
  text-align: center;
  background: var(--card);
  border-radius: var(--radius);
  padding: 40px;
  box-shadow: var(--shadow-sm);
}
.contact-qr img { width: 240px; height: 240px; margin: 0 auto 20px; border-radius: 12px; }
.contact-qr h3 { font-size: 20px; font-weight: 700; margin-bottom: 6px; }
.contact-qr p { font-size: 15px; color: var(--text-2); }

.contact-lines { display: flex; flex-direction: column; gap: 16px; }
.contact-line {
  display: flex;
  align-items: center;
  gap: 16px;
  background: var(--card);
  border-radius: var(--radius-sm);
  padding: 22px 26px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.contact-line:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.contact-line .ic {
  width: 46px; height: 46px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  color: #fff;
  background: var(--gradient);
}
.contact-line .k { font-size: 13px; color: var(--text-3); }
.contact-line .v { font-size: 17px; font-weight: 600; }

/* ---------- 免责声明 ---------- */
.disclaimer {
  background: #fff;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
  padding: 28px 0;
}
.disclaimer p {
  font-size: 13px;
  color: var(--text-3);
  line-height: 1.8;
  max-width: 820px;
}

/* ---------- Footer ---------- */
.footer {
  background: #fff;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
  padding: 56px 0 40px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}
.footer .brand { margin-bottom: 14px; }
.footer .about-text { font-size: 14px; color: var(--text-2); max-width: 380px; line-height: 1.8; }
.footer h4 { font-size: 14px; font-weight: 700; margin-bottom: 16px; color: var(--text); }
.footer-links li { margin-bottom: 10px; }
.footer-links a { font-size: 14px; color: var(--text-2); transition: color 0.2s; }
.footer-links a:hover { color: var(--grad-start); }
.footer-bottom {
  padding-top: 24px;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
  text-align: center;
  font-size: 13px;
  color: var(--text-3);
}

/* ---------- 响应式 ---------- */
@media (max-width: 900px) {
  .grid-3 { grid-template-columns: 1fr; }
  .grid-2 { grid-template-columns: 1fr; }
  .about-grid { grid-template-columns: 1fr; }
  .about-photo { position: static; max-width: 320px; margin: 0 auto; }
  .stat-row { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
}

@media (max-width: 720px) {
  .nav-links {
    position: fixed;
    inset: 0 auto 0 0;
    width: 260px;
    background: #fff;
    flex-direction: column;
    align-items: stretch;
    padding: 80px 24px 24px;
    gap: 4px;
    box-shadow: 0 0 60px rgba(0, 0, 0, 0.12);
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    z-index: 99;
  }
  .nav-links.open { transform: translateX(0); }
  .nav-links a { font-size: 17px; padding: 14px 16px; }
  .nav-toggle { display: flex; z-index: 100; }
  .nav-cta { display: none; }
  .hero { padding: 60px 0 48px; }
  .section { padding: 48px 0; }
}
