/* ============================================================
   itis.ink · 印思品牌官网 — 轻量商务蓝 / 移动端优先
   ============================================================ */

:root{
  --brand:      #2E7BE8;
  --brand-deep: #1E63C4;
  --navy:       #16325C;
  --sky:        #8EC0F7;
  --cyan:       #22BFD4;
  --tint:       #F2F7FF;
  --text:       #16325C;
  --muted:      #6B7C93;
  --faint:      #93A3B8;
  --line:       #E6EEF9;
  --bg:         #FFFFFF;
  --r-lg: 20px;
  --r-md: 14px;
  --r-sm: 10px;
  --shadow: 0 6px 24px rgba(22,50,92,.06);
  --shadow-hi: 0 12px 32px rgba(30,99,196,.14);
  --safe-t: env(safe-area-inset-top, 0px);
  --safe-b: env(safe-area-inset-bottom, 0px);
}

*,*::before,*::after{ box-sizing:border-box; }

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

body{
  margin:0;
  background:var(--bg);
  color:var(--text);
  font-family:-apple-system,BlinkMacSystemFont,"PingFang SC","Helvetica Neue","Noto Sans SC","Microsoft YaHei",sans-serif;
  font-size:15px;
  line-height:1.7;
  -webkit-font-smoothing:antialiased;
  padding-bottom:calc(66px + var(--safe-b));
}

img,svg{ display:block; max-width:100%; }
a{ color:inherit; text-decoration:none; }
h1,h2,h3{ margin:0; font-weight:800; letter-spacing:-.01em; line-height:1.35; }
p{ margin:0; }
ul,ol{ margin:0; padding:0; list-style:none; }

.wrap{ width:100%; max-width:680px; margin:0 auto; padding:0 20px; }

/* ---------------- 顶部滚动进度 ---------------- */
.progress{
  position:fixed; top:0; left:0; right:0; height:2px; z-index:120;
  background:transparent; pointer-events:none;
}
.progress i{
  display:block; height:100%; width:0;
  background:linear-gradient(90deg,var(--brand),var(--cyan));
  transition:width .1s linear;
}

/* ---------------- 顶栏 ---------------- */
.header{
  position:sticky; top:0; z-index:100;
  padding-top:var(--safe-t);
  background:rgba(255,255,255,.82);
  backdrop-filter:saturate(180%) blur(14px);
  -webkit-backdrop-filter:saturate(180%) blur(14px);
  border-bottom:1px solid transparent;
  transition:border-color .25s ease, box-shadow .25s ease;
}
.header.is-stuck{
  border-bottom-color:var(--line);
  box-shadow:0 2px 16px rgba(22,50,92,.05);
}
.header__inner{
  height:56px;
  display:flex; align-items:center; justify-content:space-between; gap:12px;
}

.brand{ display:flex; align-items:center; gap:9px; }
.brand__mark{ flex:none; display:block; line-height:0; }
.brand__text{
  font-size:19px; font-weight:800; letter-spacing:-.02em; color:var(--navy);
}
.brand__dot{ color:var(--brand); }

/* 桌面导航 */
.nav{ display:none; }
.nav a{
  font-size:14px; color:var(--muted); padding:6px 2px; margin-left:20px;
  position:relative; transition:color .2s;
}
.nav a:hover{ color:var(--brand); }
.nav a.is-active{ color:var(--brand); }
.nav a.is-active::after{
  content:""; position:absolute; left:0; right:0; bottom:-2px; height:2px;
  background:var(--brand); border-radius:2px;
}
.nav__cta{
  color:var(--brand) !important; font-weight:700;
}

/* 汉堡按钮 */
.nav-toggle{
  width:40px; height:40px; flex:none;
  display:flex; flex-direction:column; align-items:center; justify-content:center; gap:4px;
  background:var(--tint); border:0; border-radius:12px; cursor:pointer; padding:0;
}
.nav-toggle i{
  display:block; width:16px; height:2px; background:var(--navy); border-radius:2px;
  transition:transform .25s ease, opacity .2s ease;
}
.nav-toggle[aria-expanded="true"] i:nth-child(1){ transform:translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] i:nth-child(2){ opacity:0; }
.nav-toggle[aria-expanded="true"] i:nth-child(3){ transform:translateY(-6px) rotate(-45deg); }

/* 移动端抽屉导航 */
.nav-mask{
  position:fixed; inset:0; z-index:98;
  background:rgba(22,50,92,.35);
  opacity:0; visibility:hidden; transition:opacity .25s ease, visibility .25s;
}
.nav-mask.is-open{ opacity:1; visibility:visible; }

@media (max-width: 767px){
  .nav{
    display:flex; flex-direction:column; gap:2px;
    position:fixed; z-index:99;
    top:calc(56px + var(--safe-t)); right:0; width:min(78vw, 300px);
    padding:14px;
    background:#fff;
    border-left:1px solid var(--line);
    border-bottom-left-radius:20px;
    box-shadow:-8px 12px 40px rgba(22,50,92,.12);
    transform:translateX(105%);
    transition:transform .28s cubic-bezier(.4,0,.2,1);
  }
  .nav.is-open{ transform:translateX(0); }
  .nav a{
    margin:0; padding:12px 14px; font-size:15px; border-radius:10px; color:var(--text);
  }
  .nav a:active{ background:var(--tint); }
  .nav__cta{
    background:var(--brand); color:#fff !important; text-align:center; margin-top:6px; font-weight:700;
  }
  .nav__cta:active{ background:var(--brand-deep); }
}
@media (min-width: 768px){
  .nav{ display:flex; align-items:center; }
  .nav-toggle{ display:none; }
  .nav-mask{ display:none; }
  body{ padding-bottom:0; }
}

/* ---------------- Hero ---------------- */
.hero{
  position:relative;
  overflow:hidden;
  padding:36px 0 44px;
}
.hero__glow{
  position:absolute; inset:-30% -20% auto -20%; height:340px;
  background:radial-gradient(60% 60% at 50% 40%, rgba(46,123,232,.12), transparent 70%);
  pointer-events:none;
}
.hero::after{
  content:""; position:absolute; inset:0; pointer-events:none;
  background-image:radial-gradient(circle at center, rgba(46,123,232,.09) 1.4px, transparent 1.5px);
  background-size:20px 20px;
  mask-image:linear-gradient(180deg, rgba(0,0,0,.8), transparent 85%);
  -webkit-mask-image:linear-gradient(180deg, rgba(0,0,0,.8), transparent 85%);
}
.hero__inner{ position:relative; z-index:1; text-align:center; }
.hero__logo{ display:flex; justify-content:center; margin-bottom:22px; }
.hero__wordmark{
  display:flex; align-items:baseline; justify-content:center;
  font-size:clamp(46px, 15vw, 66px);
  font-weight:800; letter-spacing:-.035em; line-height:1.05;
}
.wm{ color:var(--navy); }
.wm--accent{ color:var(--brand); }
.hero__cn{
  margin-top:10px;
  font-size:26px; font-weight:800; letter-spacing:.42em; text-indent:.42em; color:var(--navy);
}
.hero__slogan{
  margin-top:14px;
  font-size:16px; font-weight:700; color:var(--brand);
}
.hero__slogan .sep{ margin:0 8px; color:var(--sky); }
.hero__desc{
  margin-top:8px; font-size:13.5px; color:var(--muted);
}
.hero__btns{
  margin-top:26px; display:flex; gap:10px; justify-content:center;
}

/* ---------------- 按钮 ---------------- */
.btn{
  display:inline-flex; align-items:center; justify-content:center; gap:6px;
  height:46px; padding:0 24px; border-radius:23px;
  font-size:15px; font-weight:700; border:1px solid transparent;
  cursor:pointer; transition:transform .15s ease, box-shadow .2s ease, background .2s;
  -webkit-tap-highlight-color:transparent;
}
.btn:active{ transform:scale(.97); }
.btn--primary{
  background:var(--brand); color:#fff; box-shadow:var(--shadow-hi);
}
.btn--primary:hover{ background:var(--brand-deep); }
.btn--ghost{
  background:#fff; color:var(--brand); border-color:var(--sky);
}
.btn--ghost:hover{ background:var(--tint); }
.btn--block{ width:100%; }
.btn[disabled]{ opacity:.6; pointer-events:none; }

/* ---------------- 数据条 ---------------- */
.stats{
  padding:22px 0 4px;
}
.stats__grid{
  display:grid; grid-template-columns:repeat(2,1fr); gap:12px;
}
.stat{
  background:var(--tint); border-radius:var(--r-md); padding:16px 14px; text-align:center;
}
.stat b{
  display:block; font-size:26px; font-weight:800; color:var(--brand); line-height:1.2;
  letter-spacing:-.02em;
}
.stat b em{ font-style:normal; font-size:14px; margin-left:2px; }
.stat span{ font-size:12.5px; color:var(--muted); }

/* ---------------- 区块通用 ---------------- */
.section{ padding:44px 0; scroll-margin-top:calc(56px + var(--safe-t)); }
.section--tint{
  background:var(--tint);
  border-top:1px solid var(--line);
  border-bottom:1px solid var(--line);
}
.sec-head{ margin-bottom:22px; }
.sec-tag{
  display:inline-block;
  font-size:11.5px; font-weight:700; letter-spacing:.14em; text-transform:uppercase;
  color:var(--brand); background:#fff; border:1px solid var(--sky);
  padding:3px 10px; border-radius:20px; margin-bottom:10px;
}
.section--tint .sec-tag{ background:#fff; }
.sec-title{ font-size:24px; }
.sec-sub{ margin-top:6px; font-size:13.5px; color:var(--muted); }
.lead{ font-size:15px; color:var(--muted); }
.lead b{ color:var(--navy); font-weight:800; }

/* ---------------- 关于 ---------------- */
.about__grid{
  margin-top:24px; display:grid; gap:12px;
}
.tile{
  background:#fff; border:1px solid var(--line); border-radius:var(--r-md);
  padding:18px 16px; box-shadow:var(--shadow);
}
.tile__ico{
  width:38px; height:38px; border-radius:11px; background:var(--tint);
  display:flex; align-items:center; justify-content:center; margin-bottom:12px;
}
.tile__ico svg{ width:20px; height:20px; fill:var(--brand); }
.tile h3{ font-size:15.5px; margin-bottom:4px; }
.tile p{ font-size:13px; color:var(--muted); }

/* ---------------- 核心业务 ---------------- */
.svc__list{ display:grid; gap:10px; }
.svc{
  display:flex; gap:14px; align-items:flex-start;
  background:#fff; border:1px solid var(--line); border-radius:var(--r-md);
  padding:16px; box-shadow:var(--shadow);
}
.svc__ico{
  width:44px; height:44px; flex:none; border-radius:13px;
  background:linear-gradient(135deg, rgba(46,123,232,.12), rgba(34,191,212,.12));
  display:flex; align-items:center; justify-content:center;
}
.svc__ico svg{ width:22px; height:22px; fill:var(--brand); }
.svc h3{ font-size:16px; margin-bottom:3px; }
.svc p{ font-size:13px; color:var(--muted); }

/* ---------------- 为什么选我们 ---------------- */
.why__grid{ display:grid; gap:12px; }
.why{
  background:var(--tint); border-radius:var(--r-md); padding:18px 16px;
  position:relative; overflow:hidden;
}
.why b{
  display:block; font-size:30px; font-weight:800; line-height:1;
  color:var(--sky); margin-bottom:8px; letter-spacing:-.02em;
}
.why h3{ font-size:15.5px; margin-bottom:3px; }
.why p{ font-size:13px; color:var(--muted); }

/* ---------------- 流程 ---------------- */
.steps{ display:grid; gap:10px; counter-reset:s; }
.steps li{
  display:flex; align-items:flex-start; gap:14px;
  background:#fff; border:1px solid var(--line); border-radius:var(--r-md);
  padding:14px 16px; box-shadow:var(--shadow);
}
.steps li span{
  flex:none; width:34px; height:34px; border-radius:11px;
  background:var(--brand); color:#fff;
  font-size:13px; font-weight:800; display:flex; align-items:center; justify-content:center;
}
.steps li h3{ font-size:15px; }
.steps li p{ font-size:12.5px; color:var(--muted); }

/* ---------------- 小程序 ---------------- */
.miniapp{
  display:flex; flex-direction:column; align-items:center; gap:22px; text-align:center;
}
.miniapp__code{
  width:190px; height:190px; padding:10px; border-radius:20px;
  background:#fff; border:1px solid var(--line); box-shadow:var(--shadow);
}
.miniapp__code svg{ width:100%; height:100%; }
.miniapp__txt .sec-title{ font-size:22px; }
.miniapp__txt p{ margin-top:8px; font-size:13.5px; color:var(--muted); }
.miniapp__feat{
  margin-top:14px; display:inline-grid; gap:6px; text-align:left;
}
.miniapp__feat li{
  font-size:13px; color:var(--text); padding-left:18px; position:relative;
}
.miniapp__feat li::before{
  content:""; position:absolute; left:0; top:9px;
  width:7px; height:7px; border-radius:50%; background:var(--brand);
}

/* ---------------- 表单 ---------------- */
.form{
  background:#fff; border:1px solid var(--line); border-radius:var(--r-lg);
  padding:20px 18px; box-shadow:var(--shadow);
  display:grid; gap:16px;
}
.field{ display:grid; gap:7px; }
.field label{ font-size:13.5px; font-weight:700; }
.field label em{ color:var(--brand); font-style:normal; }
.field input,
.field textarea,
.field select{
  width:100%; font:inherit; font-size:15px; color:var(--text);
  background:var(--tint); border:1px solid var(--line); border-radius:var(--r-sm);
  padding:12px 14px; outline:none;
  transition:border-color .2s, box-shadow .2s, background .2s;
  -webkit-appearance:none; appearance:none;
}
.field textarea{ resize:vertical; line-height:1.6; }
.field input::placeholder,
.field textarea::placeholder{ color:var(--faint); }
.field input:focus,
.field textarea:focus,
.field select:focus{
  background:#fff; border-color:var(--brand);
  box-shadow:0 0 0 3px rgba(46,123,232,.13);
}
.field.is-error input,
.field.is-error textarea{ border-color:#E5484D; background:#FFF7F7; }
.err{ font-size:12px; color:#E5484D; min-height:0; }
.select{ position:relative; }
.select::after{
  content:""; position:absolute; right:15px; top:50%; width:7px; height:7px;
  border-right:2px solid var(--brand); border-bottom:2px solid var(--brand);
  transform:translateY(-70%) rotate(45deg); pointer-events:none;
}
.counter{ text-align:right; font-size:11.5px; color:var(--faint); }
.form__note{
  font-size:13px; text-align:center; min-height:20px; color:var(--muted);
}
.form__note.is-ok{ color:#0F9D58; font-weight:700; }
.form__note.is-error{ color:#E5484D; font-weight:700; }

/* ---------------- 联系 ---------------- */
.contact__card{
  background:var(--tint); border-radius:var(--r-lg); padding:22px 18px;
}
.contact__person{
  display:flex; align-items:center; gap:14px; padding-bottom:16px;
  border-bottom:1px solid var(--line); margin-bottom:6px;
}
.avatar{
  width:60px; height:60px; flex:none; border-radius:16px; overflow:hidden;
  background:#fff; border:1px solid var(--line);
}
.avatar svg{ width:100%; height:100%; }
.contact__person b{ display:block; font-size:17px; }
.contact__person span{ font-size:12.5px; color:var(--muted); }
.contact__list li{ border-bottom:1px solid var(--line); }
.contact__list li:last-child{ border-bottom:0; }
.crow{
  display:flex; align-items:center; gap:12px; padding:13px 0;
}
.crow__ico{
  width:34px; height:34px; flex:none; border-radius:11px; background:#fff;
  border:1px solid var(--line);
  display:flex; align-items:center; justify-content:center;
}
.crow__ico svg{ width:18px; height:18px; fill:var(--brand); }
.crow__txt{ flex:1; min-width:0; }
.crow__txt small{ display:block; font-size:11px; color:var(--muted); letter-spacing:.04em; }
.crow__txt span{ font-size:14.5px; font-weight:700; word-break:break-all; }
.crow__txt span.is-empty{ color:var(--faint); font-weight:600; }
.crow__act{
  flex:none; height:32px; padding:0 14px; border-radius:16px;
  border:1px solid var(--sky); background:#fff; color:var(--brand);
  font-size:12.5px; font-weight:700; cursor:pointer;
  display:inline-flex; align-items:center; justify-content:center;
  -webkit-tap-highlight-color:transparent;
}
.crow__act:active{ background:var(--tint); }
.crow__act[disabled]{ opacity:.5; pointer-events:none; }

/* ---------------- 页脚 ---------------- */
.footer{
  background:var(--navy); color:#fff;
  padding:34px 0 calc(30px + var(--safe-b));
  text-align:center;
}
.footer__brand{ display:flex; align-items:center; justify-content:center; gap:9px; }
.footer__wm{ font-size:20px; font-weight:800; letter-spacing:-.02em; }
.footer .brand__dot{ color:var(--sky); }
.footer__slogan{ margin-top:10px; font-size:13px; color:var(--sky); }
.footer__copy{ margin-top:16px; font-size:12px; color:rgba(255,255,255,.62); }
.footer__icp{ margin-top:4px; font-size:11.5px; color:rgba(255,255,255,.42); }

/* ---------------- 底部操作栏（移动端） ---------------- */
.tabbar{
  position:fixed; left:0; right:0; bottom:0; z-index:100;
  display:flex;
  background:rgba(255,255,255,.94);
  backdrop-filter:saturate(180%) blur(14px);
  -webkit-backdrop-filter:saturate(180%) blur(14px);
  border-top:1px solid var(--line);
  padding-bottom:var(--safe-b);
}
.tabbar a{
  flex:1; height:60px;
  display:flex; flex-direction:column; align-items:center; justify-content:center; gap:3px;
  color:var(--muted); font-size:11px; font-weight:600;
  -webkit-tap-highlight-color:transparent;
}
.tabbar a:active{ background:var(--tint); }
.tabbar span{ display:flex; }
.tabbar svg{ width:21px; height:21px; fill:var(--brand); }
.tabbar i{ font-style:normal; }
@media (min-width: 768px){
  .tabbar{ display:none; }
}

/* ---------------- Toast ---------------- */
.toast{
  position:fixed; left:50%; bottom:calc(90px + var(--safe-b));
  transform:translate(-50%,10px);
  background:rgba(22,50,92,.94); color:#fff;
  font-size:13.5px; font-weight:600;
  padding:9px 18px; border-radius:20px;
  opacity:0; visibility:hidden; z-index:200;
  transition:opacity .22s ease, transform .22s ease, visibility .22s;
  pointer-events:none; white-space:nowrap;
}
.toast.is-show{ opacity:1; visibility:visible; transform:translate(-50%,0); }

/* ---------------- 滚动渐显 ---------------- */
.reveal{
  opacity:0; transform:translateY(18px);
  transition:opacity .55s cubic-bezier(.2,.7,.3,1), transform .55s cubic-bezier(.2,.7,.3,1);
}
.reveal.is-in{ opacity:1; transform:none; }

@media (prefers-reduced-motion: reduce){
  html{ scroll-behavior:auto; }
  .reveal{ opacity:1; transform:none; transition:none; }
}

/* ---------------- 桌面增强 ---------------- */
@media (min-width: 768px){
  .section{ padding:64px 0; }
  .about__grid{ grid-template-columns:repeat(3,1fr); }
  .why__grid{ grid-template-columns:repeat(2,1fr); }
  .steps{ grid-template-columns:repeat(5,1fr); }
  .steps li{ flex-direction:column; align-items:flex-start; }
  .svc__list{ grid-template-columns:repeat(2,1fr); }
  .miniapp{ flex-direction:row; text-align:left; }
  .stats__grid{ grid-template-columns:repeat(4,1fr); }
  .sec-title{ font-size:28px; }
}

@media (min-width: 1024px){
  .svc__list{ grid-template-columns:repeat(3,1fr); }
}
