/* =========================================================
   小宝 · 设计系统
   外贸 & 货代获客增长 · 个人站
   风格：简洁现代 / 留白 / B端专业可信
   ========================================================= */

:root {
  /* 颜色 */
  --ink: #0f172a;          /* 主文字 / 标题 */
  --ink-soft: #1e293b;
  --muted: #64748b;        /* 次要文字 */
  --muted-2: #94a3b8;
  --line: #e5e9f0;         /* 描边 */
  --line-soft: #eef2f7;
  --bg: #ffffff;
  --bg-soft: #f7f9fc;      /* 浅色区块 */
  --bg-soft-2: #f1f4f9;

  --brand: #1f5fff;        /* 主品牌蓝 */
  --brand-dark: #1a4fd6;
  --brand-soft: #eaf1ff;   /* 浅品牌蓝 */
  --brand-ink: #0c2a73;

  --ok: #16a34a;

  /* 排版 */
  --font: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", -apple-system,
    BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  /* 圆角 */
  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 18px;
  --r-xl: 26px;

  /* 阴影 */
  --sh-sm: 0 1px 2px rgba(15, 23, 42, .06);
  --sh-md: 0 8px 24px rgba(15, 23, 42, .08);
  --sh-lg: 0 18px 48px rgba(15, 23, 42, .12);

  /* 布局 */
  --maxw: 1140px;
  --maxw-narrow: 820px;
  --nav-h: 68px;
}

/* ===== 基础 ===== */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.7;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
h1, h2, h3, h4 { color: var(--ink); line-height: 1.25; margin: 0 0 .5em; font-weight: 700; letter-spacing: -.01em; }
h1 { font-size: clamp(2rem, 4.4vw, 3.1rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1em; }
a { color: var(--brand); text-decoration: none; transition: color .15s ease; }
a:hover { color: var(--brand-dark); }
img { max-width: 100%; display: block; }
ul { margin: 0 0 1em; padding-left: 1.2em; }
li { margin: .35em 0; }

.container { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.container.narrow { max-width: var(--maxw-narrow); }
.text-center { text-align: center; }
.muted { color: var(--muted); }
.brand-color { color: var(--brand); }

/* ===== 按钮 ===== */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 22px; border-radius: 999px;
  font-weight: 600; font-size: .95rem; cursor: pointer;
  border: 1px solid transparent; transition: all .18s ease;
  line-height: 1;
}
.btn-primary { background: var(--brand); color: #fff; box-shadow: var(--sh-sm); }
.btn-primary:hover { background: var(--brand-dark); color: #fff; transform: translateY(-1px); box-shadow: var(--sh-md); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--brand); color: var(--brand); }
.btn-light { background: #fff; color: var(--brand-dark); }
.btn-light:hover { background: var(--brand-soft); }

/* ===== 顶部导航 ===== */
.nav {
  position: sticky; top: 0; z-index: 50;
  height: var(--nav-h); background: rgba(255,255,255,.86);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line-soft);
}
.nav-inner { height: 100%; display: flex; align-items: center; justify-content: space-between; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; color: var(--ink); font-size: 1.05rem; letter-spacing: -.02em; }
.brand .logo {
  width: 32px; height: 32px; border-radius: 9px;
  background: linear-gradient(135deg, var(--brand), #4f86ff);
  color: #fff; display: grid; place-items: center; font-weight: 800; font-size: .95rem;
  box-shadow: var(--sh-sm);
}
.brand small { display: block; font-size: .68rem; font-weight: 600; color: var(--muted); letter-spacing: .04em; margin-top: 2px; }

.nav-links { display: flex; align-items: center; gap: 6px; list-style: none; margin: 0; padding: 0; }
.nav-links a {
  color: var(--ink-soft); font-weight: 500; font-size: .94rem;
  padding: 8px 14px; border-radius: 999px; transition: all .15s ease;
}
.nav-links a:hover { background: var(--bg-soft); color: var(--brand); }
.nav-links a.active { color: var(--brand); background: var(--brand-soft); }

.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--ink); margin: 4px 0; border-radius: 2px; transition: .2s; }

/* ===== Hero ===== */
.hero { padding: clamp(56px, 9vw, 104px) 0 clamp(40px, 6vw, 72px); position: relative; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(60% 60% at 85% 0%, var(--brand-soft) 0%, transparent 60%),
    radial-gradient(50% 50% at 0% 100%, #eef4ff 0%, transparent 55%);
}
.hero .eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: .8rem; font-weight: 600; color: var(--brand-dark);
  background: var(--brand-soft); padding: 6px 14px; border-radius: 999px; margin-bottom: 20px;
}
.hero h1 { max-width: 16ch; }
.hero .lead { font-size: clamp(1.05rem, 1.6vw, 1.22rem); color: var(--muted); max-width: 56ch; margin: 18px 0 28px; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-meta { margin-top: 36px; display: flex; gap: 36px; flex-wrap: wrap; }
.hero-meta .stat .num { font-size: 1.7rem; font-weight: 800; color: var(--ink); letter-spacing: -.02em; }
.hero-meta .stat .lbl { font-size: .85rem; color: var(--muted); }

/* ===== 区块 ===== */
.section { padding: clamp(48px, 7vw, 88px) 0; }
.section.soft { background: var(--bg-soft); }
.section-head { max-width: 60ch; margin: 0 auto 44px; text-align: center; }
.section-head .kicker { font-size: .8rem; font-weight: 700; color: var(--brand); letter-spacing: .08em; text-transform: uppercase; }
.section-head p { color: var(--muted); font-size: 1.05rem; margin-top: 12px; }

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

.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: 28px; transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--sh-md); border-color: transparent; }
.card .ic {
  width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center;
  background: var(--brand-soft); color: var(--brand-dark); font-size: 1.25rem; margin-bottom: 16px;
}
.card h3 { margin-bottom: 8px; }
.card p { color: var(--muted); font-size: .95rem; margin-bottom: 0; }
.card .more { display: inline-flex; align-items: center; gap: 6px; margin-top: 16px; font-weight: 600; font-size: .9rem; }

/* ===== 产品页 ===== */
.product {
  display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center;
  padding: clamp(40px, 6vw, 72px) 0; border-bottom: 1px solid var(--line-soft);
}
.product:last-child { border-bottom: 0; }
.product.flip .product-media { order: 2; }
.product-tag {
  display: inline-block; font-size: .75rem; font-weight: 700; letter-spacing: .06em;
  color: var(--brand-dark); background: var(--brand-soft); padding: 5px 12px; border-radius: 999px; margin-bottom: 14px;
}
.product h2 { margin-bottom: 14px; }
.product .desc { color: var(--muted); font-size: 1.02rem; margin-bottom: 20px; }
.feature-list { list-style: none; padding: 0; margin: 0 0 8px; }
.feature-list li { display: flex; gap: 10px; align-items: flex-start; margin: 10px 0; color: var(--ink-soft); }
.feature-list li .tick {
  flex: 0 0 auto; width: 20px; height: 20px; border-radius: 50%; background: var(--brand-soft);
  color: var(--brand-dark); display: grid; place-items: center; font-size: .7rem; margin-top: 3px;
}
.product-media {
  border-radius: var(--r-xl); background: linear-gradient(135deg, #f4f8ff, #eaf1ff);
  border: 1px solid var(--line); min-height: 280px; padding: 30px;
  display: flex; flex-direction: column; justify-content: center; gap: 12px; box-shadow: var(--sh-sm);
}
.product-media .mock {
  background: #fff; border-radius: var(--r-md); padding: 16px; border: 1px solid var(--line);
  box-shadow: var(--sh-sm);
}
.product-media .mock .bar { height: 10px; border-radius: 6px; background: var(--bg-soft-2); margin: 8px 0; }
.product-media .mock .bar.brand { background: var(--brand-soft); width: 60%; }
.product-media .mock .bar.short { width: 40%; }
.product-media .mock .pill { display: inline-block; font-size: .7rem; padding: 3px 10px; border-radius: 999px; background: var(--brand-soft); color: var(--brand-dark); font-weight: 600; }

/* ===== 关于页 ===== */
.profile-head { display: grid; grid-template-columns: 200px 1fr; gap: 36px; align-items: center; }
.avatar {
  width: 200px; height: 200px; border-radius: 26px; background: linear-gradient(135deg, var(--brand), #4f86ff);
  display: grid; place-items: center; color: #fff; font-size: 3.4rem; font-weight: 800;
  box-shadow: var(--sh-md);
}
.skill-tags { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 6px; }
.skill-tags span {
  font-size: .85rem; font-weight: 600; color: var(--brand-dark);
  background: var(--brand-soft); padding: 7px 14px; border-radius: 999px;
}
.audience-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; margin-top: 8px; }
.audience { border: 1px solid var(--line); border-radius: var(--r-lg); padding: 26px; background: #fff; }
.audience h3 { display: flex; align-items: center; gap: 10px; }
.audience h3 .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--brand); }

.contact-box {
  background: linear-gradient(135deg, var(--brand-ink), var(--brand-dark));
  color: #fff; border-radius: var(--r-xl); padding: clamp(28px, 5vw, 48px);
  display: grid; grid-template-columns: 1.4fr 1fr; gap: 30px; align-items: center;
}
.contact-box h2 { color: #fff; }
.contact-box p { color: rgba(255,255,255,.82); }
.contact-list { list-style: none; padding: 0; margin: 0; }
.contact-list li { display: flex; gap: 12px; align-items: center; padding: 10px 0; border-bottom: 1px solid rgba(255,255,255,.14); }
.contact-list li:last-child { border-bottom: 0; }
.contact-list .k { color: rgba(255,255,255,.6); font-size: .85rem; min-width: 64px; }
.contact-list .v { font-weight: 600; }

/* ===== 文章列表 ===== */
.article-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.article-card {
  display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line);
  border-radius: var(--r-lg); overflow: hidden; transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.article-card:hover { transform: translateY(-4px); box-shadow: var(--sh-md); border-color: transparent; }
.article-cover {
  height: 150px; background: linear-gradient(135deg, var(--brand-soft), #dbe7ff);
  display: grid; place-items: center; font-size: 2rem; color: var(--brand-dark);
}
.article-body { padding: 22px; display: flex; flex-direction: column; flex: 1; }
.article-cat { font-size: .72rem; font-weight: 700; letter-spacing: .06em; color: var(--brand-dark); text-transform: uppercase; }
.article-card h3 { font-size: 1.08rem; margin: 8px 0 10px; line-height: 1.4; }
.article-card p { color: var(--muted); font-size: .9rem; flex: 1; }
.article-foot { display: flex; align-items: center; justify-content: space-between; margin-top: 16px; font-size: .8rem; color: var(--muted-2); }
.article-foot .read { color: var(--brand); font-weight: 600; }

/* 文章详情 */
.article-detail { max-width: 760px; margin: 0 auto; }
.article-detail .meta { color: var(--muted); font-size: .9rem; margin-bottom: 18px; display: flex; gap: 14px; flex-wrap: wrap; }
.article-detail .content { font-size: 1.06rem; color: var(--ink-soft); }
.article-detail .content h3 { margin-top: 1.6em; }
.article-detail .content p { margin: 1em 0; }
.article-detail .content ul { margin: 1em 0; }
.back-link { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; margin-bottom: 24px; }

.filter-bar { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; margin-bottom: 36px; }
.filter-bar button {
  border: 1px solid var(--line); background: #fff; color: var(--muted);
  padding: 8px 18px; border-radius: 999px; cursor: pointer; font-weight: 600; font-size: .88rem; transition: .15s;
}
.filter-bar button:hover { border-color: var(--brand); color: var(--brand); }
.filter-bar button.active { background: var(--brand); color: #fff; border-color: var(--brand); }

/* ===== 页脚 ===== */
.footer { background: var(--ink); color: #cbd5e1; padding: 56px 0 30px; margin-top: 20px; }
.footer .cols { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 36px; }
.footer .brand { color: #fff; }
.footer h4 { color: #fff; font-size: .95rem; margin-bottom: 14px; }
.footer a { color: #cbd5e1; }
.footer a:hover { color: #fff; }
.footer ul { list-style: none; padding: 0; margin: 0; }
.footer ul li { margin: 8px 0; }
.footer .bottom { border-top: 1px solid rgba(255,255,255,.1); margin-top: 36px; padding-top: 20px; font-size: .82rem; color: var(--muted-2); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; }

/* ===== 响应式 ===== */
@media (max-width: 940px) {
  .grid-3 { grid-template-columns: 1fr 1fr; }
  .article-grid { grid-template-columns: 1fr 1fr; }
  .product, .product.flip { grid-template-columns: 1fr; gap: 26px; }
  .product.flip .product-media { order: 0; }
  .contact-box { grid-template-columns: 1fr; }
  .audience-grid { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .nav-links {
    position: absolute; top: var(--nav-h); left: 0; right: 0;
    background: #fff; flex-direction: column; align-items: stretch; gap: 0;
    padding: 12px 16px 18px; border-bottom: 1px solid var(--line);
    box-shadow: var(--sh-md); display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 12px 14px; border-radius: var(--r-sm); }
  .nav-toggle { display: block; }
  .grid-3, .grid-2, .article-grid { grid-template-columns: 1fr; }
  .profile-head { grid-template-columns: 1fr; text-align: center; justify-items: center; }
  .footer .cols { grid-template-columns: 1fr; gap: 26px; }
  .hero-meta { gap: 24px; }
}
