/* =========================================================
   冈男网络工作室 · 新主题「砚」 (Atelier)
   浅色东方雅致 + 科技感；衬线标题 + 无衬线正文
   结构参考 xingchenshuyuan.com（仅布局，非配色）
   ========================================================= */
:root {
  /* 底色：温润纸感 */
  --paper:      #f5f3ee;
  --paper-2:    #efece4;
  --surface:    #ffffff;
  --surface-2:  #faf8f3;
  /* 墨色文字 */
  --ink:    #23202e;
  --ink-2:  #4a4658;
  --muted:  #857f8f;
  /* 线条与阴影 */
  --line:   rgba(35, 32, 46, .10);
  --line-2: rgba(35, 32, 46, .16);
  --shadow: 0 18px 44px -24px rgba(35, 32, 46, .40);
  --shadow-sm: 0 8px 22px -16px rgba(35, 32, 46, .35);
  /* 品牌色：靛 → 紫 → 珊瑚 */
  --brand-1: #5045d6;
  --brand-2: #8b5cf6;
  --accent:  #ff7a59;
  --accent-2:#ffb259;
  --grad: linear-gradient(120deg, #5045d6 0%, #8b5cf6 52%, #ff7a59 100%);
  --grad-soft: linear-gradient(120deg, rgba(80,69,214,.12), rgba(139,92,246,.12) 55%, rgba(255,122,89,.12));
  --ok: #2bb673;
  /* 形状与排版 */
  --radius: 18px;
  --radius-lg: 26px;
  --maxw: 1140px;
  --serif: "Noto Serif SC", "Source Han Serif SC", "Songti SC", "STSong", "SimSun", serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--sans);
  background: var(--paper);
  color: var(--ink);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 700; letter-spacing: .01em; }
.wrap { width: min(var(--maxw), calc(100% - 36px)); margin: 0 auto; }
.section { padding: 84px 0 16px; }
.section-head { text-align: center; margin-bottom: 46px; }
.section-head .eyebrow {
  display: inline-block; font-family: var(--sans); font-size: 13px; font-weight: 700;
  letter-spacing: .22em; color: var(--brand-1); margin-bottom: 12px;
}
.section-head h2 { font-size: clamp(27px, 4.4vw, 40px); margin: 0 0 12px; color: var(--ink); }
.section-head p { color: var(--muted); font-size: 16px; margin: 0 auto; max-width: 620px; }

/* ---------- 导航 ---------- */
.nav {
  position: sticky; top: 0; z-index: 40;
  background: rgba(245, 243, 238, .82);
  backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.brand { display: flex; align-items: center; gap: 11px; font-family: var(--serif); font-weight: 700; font-size: 19px; color: var(--ink); }
.brand-mark {
  width: 36px; height: 36px; border-radius: 11px; display: grid; place-items: center;
  background: var(--grad); color: #fff; font-weight: 800; font-size: 19px; font-family: var(--serif);
  box-shadow: 0 8px 20px -6px rgba(80,69,214,.55);
}
.nav-links { display: flex; gap: 4px; }
.nav-links a {
  position: relative; padding: 9px 15px; border-radius: 11px; color: var(--ink-2);
  font-size: 14.5px; font-weight: 600; transition: color .2s, background .2s;
}
.nav-links a:hover { color: var(--brand-1); background: rgba(80,69,214,.07); }
.nav-links a.active { color: var(--brand-1); }
.nav-links a.active::after {
  content: ""; position: absolute; left: 15px; right: 15px; bottom: 3px; height: 2px;
  background: var(--grad); border-radius: 2px;
}

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 9px; cursor: pointer;
  padding: 13px 24px; border-radius: 13px; font-size: 15px; font-weight: 700; color: #fff; border: none;
  background: var(--grad); box-shadow: 0 14px 30px -14px rgba(80,69,214,.7);
  transition: transform .16s ease, box-shadow .16s ease;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 20px 38px -16px rgba(80,69,214,.75); }
.btn:active { transform: translateY(0); }
.btn.ghost {
  background: var(--surface); color: var(--ink); border: 1px solid var(--line-2);
  box-shadow: var(--shadow-sm);
}
.btn.ghost:hover { border-color: var(--brand-1); color: var(--brand-1); }
.btn.sm { padding: 9px 16px; font-size: 13.5px; }
.btn:disabled { opacity: .5; cursor: not-allowed; transform: none; box-shadow: none; }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden; text-align: center;
  padding: 104px 24px 64px;
}
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(620px 360px at 18% 8%, rgba(80,69,214,.16), transparent 68%),
    radial-gradient(560px 320px at 86% 4%, rgba(255,122,89,.16), transparent 68%),
    radial-gradient(700px 420px at 50% 110%, rgba(139,92,246,.12), transparent 70%);
}
.hero > * { position: relative; z-index: 1; }
.hero .tagline {
  display: inline-block; margin-bottom: 24px; padding: 8px 18px; border-radius: 999px;
  border: 1px solid rgba(255,122,89,.5); background: rgba(255,122,89,.10);
  color: #d8542f; font-size: 14px; font-weight: 700; letter-spacing: .02em;
}
.hero h1 {
  font-size: clamp(40px, 7vw, 70px); line-height: 1.06; margin: 0 0 20px; letter-spacing: -.01em;
  background: var(--grad); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.hero .sub { font-size: clamp(17px, 2.4vw, 21px); color: var(--ink-2); max-width: 680px; margin: 0 auto 14px; }
.hero .lead { font-size: 16px; color: var(--muted); max-width: 620px; margin: 0 auto 32px; }
.hero-cta { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ---------- 通用卡片 ---------- */
.card {
  border: 1px solid var(--line); background: var(--surface); border-radius: var(--radius);
  padding: 28px; box-shadow: var(--shadow-sm);
}

/* 理念 3 卡 */
.idea-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.idea {
  position: relative; padding: 32px 28px; border-radius: var(--radius-lg); overflow: hidden;
  background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-sm);
  transition: transform .25s ease, box-shadow .25s ease;
}
.idea:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.idea .ic {
  width: 52px; height: 52px; border-radius: 15px; display: grid; place-items: center; font-size: 24px;
  background: var(--grad-soft); border: 1px solid var(--line); margin-bottom: 18px;
}
.idea h3 { font-size: 21px; margin: 0 0 10px; color: var(--ink); }
.idea p { font-size: 15px; color: var(--muted); margin: 0; }
.idea .idx { position: absolute; right: 22px; top: 14px; font-family: var(--serif); font-size: 40px; color: rgba(35,32,46,.06); font-weight: 800; }

/* ---------- 探索：产品卡（真实链接） ---------- */
.explore-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.tile {
  position: relative; display: flex; flex-direction: column; padding: 28px 26px 24px;
  border-radius: var(--radius-lg); overflow: hidden; color: var(--ink);
  background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-sm);
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.tile:hover { transform: translateY(-5px); box-shadow: var(--shadow); border-color: rgba(80,69,214,.4); }
.tile .ic {
  width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; font-size: 22px;
  background: var(--grad); color: #fff; box-shadow: 0 10px 22px -10px rgba(80,69,214,.7); margin-bottom: 16px;
}
.tile h3 { font-size: 18.5px; margin: 0 0 8px; color: var(--ink); }
.tile p { font-size: 14px; color: var(--muted); margin: 0 0 16px; flex: 1; }
.tile .go {
  display: inline-flex; align-items: center; gap: 7px; align-self: flex-start;
  font-size: 13.5px; font-weight: 700; color: var(--brand-1);
}
.tile .go .arr { transition: transform .2s; }
.tile:hover .go .arr { transform: translateX(4px); }
.tile .badge {
  position: absolute; top: 18px; right: 18px; font-size: 11px; font-weight: 800; letter-spacing: .08em;
  padding: 4px 10px; border-radius: 999px; color: #fff; background: var(--accent);
}
.tile .addr { font-size: 12px; color: var(--muted); margin-top: 8px; word-break: break-all; }

/* ---------- 数据带 ---------- */
.stats {
  margin-top: 12px; border-radius: var(--radius-lg); padding: 44px 32px; text-align: center;
  background: var(--grad); color: #fff; box-shadow: 0 24px 50px -26px rgba(80,69,214,.8);
}
.stats .grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.stats .n { font-family: var(--serif); font-size: clamp(34px, 5vw, 50px); font-weight: 800; line-height: 1; }
.stats .l { font-size: 14px; opacity: .92; margin-top: 8px; }
.stats .divider { width: 1px; background: rgba(255,255,255,.28); }

/* ---------- 能力特色 4 卡 ---------- */
.feat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.feat {
  padding: 26px 22px; border-radius: var(--radius); border: 1px solid var(--line);
  background: var(--surface-2); transition: transform .22s ease, box-shadow .22s ease;
}
.feat:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.feat .ic { font-size: 26px; margin-bottom: 12px; }
.feat h3 { font-size: 17px; margin: 0 0 8px; color: var(--ink); }
.feat p { font-size: 13.5px; color: var(--muted); margin: 0; }

/* ---------- 接单 / 联系 CTA ---------- */
.cta-box {
  text-align: center; padding: 56px 30px; border-radius: var(--radius-lg);
  border: 1px solid var(--line); background: var(--surface);
  box-shadow: var(--shadow-sm); position: relative; overflow: hidden;
}
.cta-box::before {
  content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background: radial-gradient(520px 200px at 50% 0%, rgba(139,92,246,.14), transparent 70%);
}
.cta-box > * { position: relative; z-index: 1; }
.cta-box h2 { font-size: clamp(24px, 4vw, 34px); margin: 0 0 14px; color: var(--ink); }
.cta-box p { color: var(--muted); max-width: 560px; margin: 0 auto 26px; }
.cta-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.contact-chips { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 22px; }
.contact-chips span {
  padding: 10px 18px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface-2);
  font-size: 14px; color: var(--ink-2);
}
.contact-cards { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-top: 22px; }
.contact-cards .cc {
  display: flex; align-items: center; gap: 12px; text-decoration: none;
  padding: 14px 20px; border-radius: 16px; border: 1px solid var(--line);
  background: var(--surface); box-shadow: 0 1px 2px rgba(40,30,20,.05);
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
  cursor: pointer;
}
.contact-cards .cc:hover { transform: translateY(-2px); border-color: var(--brand-1); box-shadow: 0 8px 20px rgba(80,69,214,.12); }
.contact-cards .cc .ic {
  width: 40px; height: 40px; flex: 0 0 40px; display: grid; place-items: center;
  border-radius: 12px; background: linear-gradient(135deg, var(--brand-1), var(--brand-2)); color: #fff; font-size: 20px;
}
.contact-cards .cc div { display: flex; flex-direction: column; line-height: 1.35; text-align: left; }
.contact-cards .cc b { font-size: 13px; color: var(--muted); font-weight: 600; font-family: var(--sans); letter-spacing: .03em; }
.contact-cards .cc span { font-size: 15px; color: var(--ink); font-weight: 600; }
.contact-cards .cc .tip { font-style: normal; font-size: 11px; color: var(--brand-1); font-weight: 500; margin-left: 6px; }


/* ---------- 页脚 ---------- */
.footer { border-top: 1px solid var(--line); margin-top: 64px; padding: 52px 24px 30px; background: var(--paper-2); }
.footer-inner { display: grid; grid-template-columns: 1.7fr 1fr 1fr 1fr; gap: 28px; }
.footer .brand { margin-bottom: 14px; }
.footer p { color: var(--muted); font-size: 13.5px; max-width: 300px; margin: 0; }
.footer h4 { font-family: var(--sans); font-size: 14px; margin: 0 0 14px; color: var(--ink); letter-spacing: .04em; }
.footer a { display: block; color: var(--muted); font-size: 13.5px; margin: 0 0 10px; transition: color .2s; }
.footer a:hover { color: var(--brand-1); }
.footer-bottom {
  text-align: center; color: var(--muted); font-size: 12.5px; margin-top: 32px; padding-top: 20px; border-top: 1px solid var(--line);
}

/* ---------- 响应式 ---------- */
@media (max-width: 920px) {
  .idea-grid, .explore-grid { grid-template-columns: repeat(2, 1fr); }
  .feat-grid { grid-template-columns: repeat(2, 1fr); }
  .stats .grid { grid-template-columns: repeat(2, 1fr); }
  .footer-inner { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .nav-links { display: none; }
  .hero { padding: 76px 18px 48px; }
  .idea-grid, .explore-grid, .feat-grid { grid-template-columns: 1fr; }
  .stats .grid { grid-template-columns: 1fr 1fr; }
  .footer-inner { grid-template-columns: 1fr; }
}
