/* 东创IT顾问 官网共用样式 — 现代极简 + 收敛科技感（企业形象版） */
/* 设计令牌与 /tools/ 工具库保持同一套，全站视觉统一 */
:root {
  --bg: #fafafa; --surface: #ffffff;
  --ink: #10131a; --ink-2: #545b68; --ink-3: #98a0ac;
  --line: #e7eaef;
  --brand: #1d5fd6;        /* 企业蓝 */
  --brand-deep: #0d3a8f;
  --brand-soft: #e9f0fd;
  --accent: #1d5fd6;       /* 同 brand，工具库组件沿用 accent 命名 */
  --accent-soft: #e9f0fd;
  --tech: #00b8a0;         /* 科技青点缀 */
  --tech-soft: #e2f7f3;
  --danger: #e5484d;
  --radius: 16px;
  --maxw: 1120px;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  background: var(--bg); color: var(--ink); line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
/* 内容区：左右预留刘海/圆角安全区（iPhone 横屏、折叠屏外屏） */
.wrap {
  max-width: var(--maxw); margin: 0 auto; padding: 0 22px;
  padding-left: max(22px, env(safe-area-inset-left));
  padding-right: max(22px, env(safe-area-inset-right));
}
a { color: var(--brand); text-decoration: none; }
img { max-width: 100%; }
/* 长串（公司名/邮箱/备案号）不撑破容器 */
p, li, dd, dt, h1, h2, h3, .foot-bottom { overflow-wrap: anywhere; }

/* 导航 */
header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(250,250,250,.88); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
  padding-top: env(safe-area-inset-top);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.logo { display: flex; align-items: center; gap: 10px; color: var(--ink); }
.logo-mark {
  width: 34px; height: 34px; border-radius: 9px; flex: none;
  background: linear-gradient(135deg, var(--brand), var(--tech));
  display: grid; place-items: center; color: #fff; font-weight: 700; font-size: 15px;
}
.logo b { font-size: 16.5px; letter-spacing: .3px; }
.logo small { display: block; font-size: 11px; color: var(--ink-3); font-weight: 400; line-height: 1.2; }
nav.menu { display: flex; gap: 30px; }
nav.menu a { color: var(--ink-2); font-size: 14.5px; padding: 6px 2px; position: relative; }
nav.menu a:hover { color: var(--ink); }
nav.menu a.active { color: var(--brand); font-weight: 600; }
nav.menu a.active::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -2px;
  height: 2px; border-radius: 2px; background: var(--brand);
}
.btn {
  display: inline-block; padding: 10px 22px; border-radius: 10px; border: none; cursor: pointer;
  font-size: 14.5px; font-weight: 600; text-decoration: none; transition: all .2s; font-family: inherit;
}
.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { background: #1749b4; transform: translateY(-1px); }
.btn-ghost { background: var(--surface); color: var(--ink); border: 1px solid var(--line); }
.btn-ghost:hover { border-color: var(--brand); color: var(--brand); }

/* 通用区块 */
section.block { padding: 80px 0; }
.kicker {
  display: inline-block; color: var(--brand); font-size: 13px; font-weight: 700;
  letter-spacing: 2.5px; margin-bottom: 12px;
}
h2.sec-title { font-size: clamp(24px, 3.6vw, 34px); font-weight: 700; letter-spacing: -.5px; line-height: 1.3; }
.sec-sub { color: var(--ink-2); margin-top: 10px; max-width: 640px; }
.center { text-align: center; }
.center .sec-sub { margin-left: auto; margin-right: auto; }

/* 卡片 */
.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px 26px; transition: transform .22s, box-shadow .22s, border-color .22s;
}
.card:hover { transform: translateY(-4px); box-shadow: 0 12px 30px rgba(16,19,26,.08); border-color: #d8dde6; }
.card h3 { font-size: 17.5px; font-weight: 700; margin-bottom: 8px; }
.card p { color: var(--ink-2); font-size: 14.5px; }
.icon {
  width: 46px; height: 46px; border-radius: 12px; margin-bottom: 18px;
  display: grid; place-items: center; font-size: 21px; background: var(--brand-soft); color: var(--brand);
}

/* 占位提示 */
.ph {
  display: inline-block; background: #fdf6e7; color: #8a6116; border: 1px dashed #e5c98c;
  border-radius: 6px; padding: 1px 8px; font-size: 12px; vertical-align: 1px;
}

/* 页脚 */
footer {
  background: #10131a; color: #9aa3b2; margin-top: 40px;
  padding: 52px 0 calc(34px + env(safe-area-inset-bottom));
}
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 36px; padding-bottom: 34px; border-bottom: 1px solid #232838; }
.foot-grid h4 { color: #e8ecf3; font-size: 14.5px; font-weight: 600; margin-bottom: 14px; }
.foot-grid a, .foot-grid p { color: #9aa3b2; font-size: 13.5px; display: block; margin-bottom: 8px; }
.foot-grid a:hover { color: #fff; }
.foot-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; padding-top: 22px; font-size: 12.5px; color: #6b7382; }

/* 全平台适配 */
@media (min-width: 1440px) { .wrap { max-width: 1240px; } }
/* 超宽（三折叠全展开 / 2K·4K 屏）：继续放宽，避免两侧大片留白 */
@media (min-width: 1920px) { .wrap { max-width: 1440px; } .foot-grid { gap: 56px; } }

@media (pointer: coarse) {
  .btn { padding: 14px 22px; }
  nav.menu a { padding: 12px 2px; }
  .logo { padding: 5px 0; }
  .foot-grid a { padding: 11px 0; margin-bottom: 2px; }
}
/* 触屏无 hover：取消位移与阴影，避免点完“粘住”导致卡片跳动 */
@media (hover: none) {
  .card:hover { transform: none; box-shadow: none; border-color: var(--line); }
  .btn-primary:hover { background: var(--brand); transform: none; }
  .btn-ghost:hover { border-color: var(--line); color: var(--ink); }
}
@media (max-width: 860px) {
  nav.menu { display: none; }
  .foot-grid { grid-template-columns: 1fr; gap: 26px; }
  section.block { padding: 56px 0; }
  .hero-cta { gap: 12px; }
}
@media (max-width: 480px) {
  .wrap {
    padding-left: max(16px, env(safe-area-inset-left));
    padding-right: max(16px, env(safe-area-inset-right));
  }
  .foot-grid { grid-template-columns: 1fr; }
}
@media (max-width: 420px) {
  .card { padding: 22px 18px; }
  /* 极窄屏：隐藏 logo 副标题（公司全称），保证 logo 与按钮同行不挤压 */
  .logo small { display: none; }
  .logo b { font-size: 15.5px; }
  .nav { height: 58px; }
  .trust .wrap { gap: 12px; }
  .trust .num { font-size: 24px; }
  .dl-panel { padding: 40px 20px; border-radius: 18px; }
}
