/* ===== 万知科技官网样式 ===== */
:root {
  --primary: #0b5cff;
  --primary-dark: #0743c2;
  --teal: #00c2a8;
  --ink: #101828;
  --gray: #5b6472;
  --bg: #f6f8fc;
  --white: #ffffff;
  --dark: #0b1530;
  --radius: 16px;
  --shadow: 0 12px 40px rgba(11, 92, 255, .10);
  --grad: linear-gradient(120deg, #0b5cff 0%, #00c2a8 100%);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  color: var(--ink); background: var(--white); line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
.container { width: min(1200px, 92%); margin: 0 auto; }

/* ===== 按钮 ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 12px 28px; border-radius: 999px; font-size: 15px; font-weight: 600;
  cursor: pointer; border: none; transition: .3s; white-space: nowrap;
}
.btn-primary { background: var(--grad); color: #fff; box-shadow: 0 8px 24px rgba(11,92,255,.35); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 32px rgba(11,92,255,.45); }
.btn-ghost { border: 1.5px solid rgba(255,255,255,.7); color: #fff; background: rgba(255,255,255,.08); backdrop-filter: blur(6px); }
.btn-ghost:hover { background: rgba(255,255,255,.18); }
.btn-lg { padding: 15px 36px; font-size: 16px; }
.btn-block { width: 100%; }

/* ===== 导航 ===== */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  padding: 18px 0; transition: .35s;
}
.navbar.scrolled { background: rgba(255,255,255,.92); backdrop-filter: blur(14px); padding: 10px 0; box-shadow: 0 4px 24px rgba(16,24,40,.08); }
.nav-inner { display: flex; align-items: center; gap: 32px; }
.logo { display: flex; align-items: center; gap: 10px; }
.logo-mark {
  width: 42px; height: 42px; border-radius: 12px; background: var(--grad);
  color: #fff; font-size: 22px; font-weight: 800; display: grid; place-items: center;
  box-shadow: 0 6px 16px rgba(11,92,255,.35);
}
.logo-text { font-size: 19px; font-weight: 800; color: #fff; line-height: 1.15; display: flex; flex-direction: column; }
/* 英文与中文四字号宽对齐：19px*4=76px，10px 拉丁字母约 6px*10=60px，字距补 16px */
.logo-text small { font-size: 10px; font-weight: 500; letter-spacing: 1.6px; opacity: .75; }
.navbar.scrolled .logo-text { color: var(--ink); }
.nav-links { display: flex; gap: 30px; margin-left: auto; }
.nav-links a { color: rgba(255,255,255,.88); font-size: 15px; font-weight: 500; position: relative; padding: 4px 0; transition: .25s; }
.nav-links a::after { content: ""; position: absolute; left: 0; bottom: -2px; width: 0; height: 2px; background: var(--teal); border-radius: 2px; transition: .3s; }
.nav-links a:hover::after, .nav-links a.active::after { width: 100%; }
.navbar.scrolled .nav-links a { color: var(--ink); }
.nav-cta { padding: 10px 24px; font-size: 14px; }
.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 6px; }
.nav-toggle span { width: 24px; height: 2.5px; background: #fff; border-radius: 2px; transition: .3s; }
.navbar.scrolled .nav-toggle span { background: var(--ink); }

/* ===== Hero ===== */
.hero { position: relative; min-height: 100vh; display: flex; align-items: center; overflow: hidden; color: #fff; }
.hero-bg { position: absolute; inset: 0; background: url("../assets/hero.png") center/cover no-repeat; transform: scale(1.06); animation: heroZoom 18s ease-in-out infinite alternate; }
@keyframes heroZoom { from { transform: scale(1.06); } to { transform: scale(1.14); } }
.hero-overlay { position: absolute; inset: 0; background: linear-gradient(105deg, rgba(6,18,48,.88) 0%, rgba(6,24,60,.62) 45%, rgba(4,40,70,.30) 100%); }
.hero-content { position: relative; z-index: 2; padding: 140px 0 90px; }
.hero-tag { font-size: 13px; letter-spacing: 4px; color: var(--teal); font-weight: 600; margin-bottom: 18px; }
.hero h1 { font-size: clamp(38px, 6vw, 64px); font-weight: 800; line-height: 1.25; letter-spacing: 2px; }
.hero h1 span { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-sub { margin: 22px 0 36px; font-size: clamp(15px, 1.6vw, 18px); color: rgba(255,255,255,.85); }
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }
.hero-stats { display: flex; gap: clamp(24px, 5vw, 64px); margin-top: 70px; flex-wrap: wrap; }
.hstat strong { font-size: clamp(28px, 3.4vw, 42px); font-weight: 800; display: block; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hstat strong::after { content: "+"; }
.hstat span { font-size: 13.5px; color: rgba(255,255,255,.72); }
.hero-scroll { position: absolute; bottom: 26px; left: 50%; transform: translateX(-50%); width: 26px; height: 42px; border: 2px solid rgba(255,255,255,.5); border-radius: 14px; z-index: 2; }
.hero-scroll span { position: absolute; top: 7px; left: 50%; width: 4px; height: 8px; margin-left: -2px; border-radius: 4px; background: #fff; animation: wheel 1.6s infinite; }
@keyframes wheel { 0% { opacity: 1; transform: translateY(0); } 100% { opacity: 0; transform: translateY(14px); } }

/* ===== 通用 Section ===== */
.section { padding: 100px 0; }
.eyebrow { font-size: 13px; letter-spacing: 3px; font-weight: 700; color: var(--primary); margin-bottom: 12px; }
.eyebrow.light { color: var(--teal); }
.section-head { text-align: center; max-width: 680px; margin: 0 auto 56px; }
.section-head h2, .about-text h2, .contact-info h2 { font-size: clamp(28px, 3.4vw, 40px); font-weight: 800; line-height: 1.35; }
.section-desc { margin-top: 14px; color: var(--gray); font-size: 16px; }

/* ===== 关于我们 ===== */
.about { background: var(--bg); }
.about-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 64px; align-items: center; }
.about-media { position: relative; }
.about-media img { border-radius: var(--radius); box-shadow: var(--shadow); }
.about-badge {
  position: absolute; right: -18px; bottom: -24px; background: var(--grad); color: #fff;
  border-radius: var(--radius); padding: 20px 28px; text-align: center; box-shadow: 0 14px 34px rgba(11,92,255,.4);
}
.about-badge strong { font-size: 34px; font-weight: 800; display: block; line-height: 1; }
.about-badge span { font-size: 13px; opacity: .9; }
.about-text p { color: var(--gray); margin: 18px 0; }
.about-points { list-style: none; margin: 8px 0 28px; }
.about-points li { padding: 7px 0; font-weight: 600; font-size: 15px; display: flex; gap: 10px; align-items: baseline; }
.about-points i { color: var(--teal); font-style: normal; font-size: 12px; }

/* ===== 核心业务 ===== */
.biz-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.biz-card {
  background: var(--white); border: 1px solid #e8edf6; border-radius: var(--radius);
  padding: 34px 26px; transition: .35s; position: relative; overflow: hidden;
}
.biz-card::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 4px; background: var(--grad); transform: scaleX(0); transform-origin: left; transition: .35s; }
.biz-card:hover { transform: translateY(-8px); box-shadow: var(--shadow); border-color: transparent; }
.biz-card:hover::before { transform: scaleX(1); }
.biz-icon { width: 62px; height: 62px; border-radius: 16px; background: linear-gradient(135deg, #eaf1ff, #e2fbf6); display: grid; place-items: center; margin-bottom: 20px; color: var(--primary); }
.biz-icon svg { width: 34px; height: 34px; }
.biz-card h3 { font-size: 19px; margin-bottom: 12px; }
.biz-card p { color: var(--gray); font-size: 14.5px; margin-bottom: 16px; }
.biz-card ul { list-style: none; }
.biz-card li { font-size: 13.5px; color: var(--gray); padding: 5px 0 5px 18px; position: relative; }
.biz-card li::before { content: ""; position: absolute; left: 0; top: 13px; width: 7px; height: 7px; border-radius: 50%; background: var(--grad); }

/* ===== 解决方案 ===== */
.solutions { background: var(--dark); color: #fff; }
.solutions .section-head h2 { color: #fff; }
.solutions .section-desc { color: rgba(255,255,255,.6); }
.sol-tabs { display: flex; justify-content: center; gap: 14px; flex-wrap: wrap; margin-bottom: 44px; }
.sol-tab {
  padding: 12px 32px; border-radius: 999px; border: 1px solid rgba(255,255,255,.22);
  background: transparent; color: rgba(255,255,255,.8); font-size: 15px; font-weight: 600; cursor: pointer; transition: .3s;
}
.sol-tab:hover { border-color: var(--teal); color: #fff; }
.sol-tab.active { background: var(--grad); border-color: transparent; color: #fff; box-shadow: 0 8px 24px rgba(0,194,168,.35); }
.sol-panel {
  display: none; grid-template-columns: 1.4fr 1fr; gap: 48px; align-items: center;
  background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.1);
  border-radius: 20px; padding: 48px; backdrop-filter: blur(8px);
}
.sol-panel.active { display: grid; animation: fadeUp .5s ease; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
.sol-info h3 { font-size: 24px; margin-bottom: 14px; }
.sol-info p { color: rgba(255,255,255,.72); margin-bottom: 20px; }
.sol-info ul { list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.sol-info li { font-size: 14.5px; padding-left: 22px; position: relative; color: rgba(255,255,255,.88); }
.sol-info li::before { content: "✓"; position: absolute; left: 0; color: var(--teal); font-weight: 800; }
.sol-metrics { display: grid; gap: 18px; }
.sol-metrics div { background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.1); border-radius: 14px; padding: 20px 26px; }
.sol-metrics strong { font-size: 30px; font-weight: 800; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; display: block; }
.sol-metrics span { font-size: 13.5px; color: rgba(255,255,255,.65); }

/* ===== 服务流程 ===== */
.process { background: var(--bg); }
.process-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.p-step { background: #fff; border-radius: var(--radius); padding: 32px 26px; box-shadow: 0 6px 22px rgba(16,24,40,.05); transition: .3s; position: relative; }
.p-step:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.p-step em { font-style: normal; font-size: 40px; font-weight: 800; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; display: block; margin-bottom: 12px; }
.p-step h3 { font-size: 18px; margin-bottom: 10px; }
.p-step p { color: var(--gray); font-size: 14px; }

/* ===== 新闻 ===== */
.news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.news-card { display: flex; gap: 20px; background: #fff; border: 1px solid #e8edf6; border-radius: var(--radius); padding: 26px; transition: .3s; }
.news-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: transparent; }
.news-date { flex-shrink: 0; width: 74px; height: 74px; border-radius: 14px; background: linear-gradient(135deg, #eaf1ff, #e2fbf6); display: flex; flex-direction: column; align-items: center; justify-content: center; }
.news-date strong { font-size: 26px; color: var(--primary); line-height: 1; }
.news-date span { font-size: 12px; color: var(--gray); margin-top: 4px; }
.news-body h3 { font-size: 16.5px; line-height: 1.5; margin-bottom: 8px; }
.news-body p { font-size: 13.5px; color: var(--gray); margin-bottom: 12px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.news-tag { font-size: 12px; color: var(--primary); background: #eaf1ff; padding: 4px 12px; border-radius: 999px; }

/* ===== 联系我们 ===== */
.contact { background: var(--dark); color: #fff; }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: start; }
.contact-info h2 { color: #fff; }
.c-list { list-style: none; margin-top: 36px; display: grid; gap: 22px; }
.c-list li { display: flex; gap: 16px; align-items: flex-start; }
.c-list i { font-style: normal; font-size: 22px; width: 50px; height: 50px; flex-shrink: 0; border-radius: 14px; background: rgba(255,255,255,.08); display: grid; place-items: center; }
.c-list strong { display: block; margin-bottom: 2px; }
.c-list p { color: rgba(255,255,255,.65); font-size: 14.5px; }
.contact-form { background: #fff; border-radius: 20px; padding: 40px; color: var(--ink); box-shadow: 0 24px 60px rgba(0,0,0,.35); }
.contact-form h3 { font-size: 22px; margin-bottom: 24px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-field { margin-bottom: 16px; }
.form-field label { display: block; font-size: 13.5px; font-weight: 600; margin-bottom: 7px; color: var(--ink); }
.form-field input, .form-field select, .form-field textarea {
  width: 100%; padding: 12px 14px; border: 1.5px solid #e2e8f2; border-radius: 10px;
  font-size: 14.5px; font-family: inherit; color: var(--ink); background: #f8fafd; transition: .25s; resize: vertical;
}
.form-field input:focus, .form-field select:focus, .form-field textarea:focus { outline: none; border-color: var(--primary); background: #fff; box-shadow: 0 0 0 4px rgba(11,92,255,.1); }
.form-tip { margin-top: 14px; font-size: 14px; color: var(--teal); text-align: center; min-height: 20px; }

/* ===== 页脚 ===== */
.footer { background: #081026; color: rgba(255,255,255,.65); padding-top: 64px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 48px; }
.logo.light .logo-text { color: #fff; }
.f-brand p { margin-top: 16px; font-size: 14px; }
.f-col h4 { color: #fff; font-size: 16px; margin-bottom: 16px; }
.f-col a { display: block; padding: 5px 0; font-size: 14px; transition: .25s; }
/* 页脚品牌 LOGO 保持横向：还原被 .f-col a 覆盖的 flex 布局 */
.f-col a.logo { display: flex; align-items: center; gap: 10px; padding: 0; }
.f-col a.logo:hover { transform: none; }
.f-col a:hover { color: var(--teal); transform: translateX(4px); }
.footer-bar { border-top: 1px solid rgba(255,255,255,.08); padding: 20px 0; text-align: center; font-size: 13px; }

/* ===== 回到顶部 ===== */
.back-top {
  position: fixed; right: 26px; bottom: 26px; width: 46px; height: 46px; border-radius: 50%;
  background: var(--grad); color: #fff; display: grid; place-items: center; font-size: 20px; z-index: 90;
  opacity: 0; pointer-events: none; transform: translateY(12px); transition: .3s; box-shadow: 0 8px 22px rgba(11,92,255,.4);
}
.back-top.show { opacity: 1; pointer-events: auto; transform: none; }

/* ===== 滚动显现动画 ===== */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s ease, transform .7s ease; }
.reveal.visible { opacity: 1; transform: none; }

/* ===== 响应式 ===== */
@media (max-width: 1024px) {
  .biz-grid, .process-grid { grid-template-columns: repeat(2, 1fr); }
  .news-grid { grid-template-columns: 1fr; }
  .about-grid, .contact-grid { grid-template-columns: 1fr; gap: 48px; }
  .about-badge { right: 12px; }
  .sol-panel { grid-template-columns: 1fr; padding: 32px; }
}
@media (max-width: 768px) {
  .section { padding: 70px 0; }
  .nav-links {
    position: fixed; inset: 0 0 0 auto; width: min(300px, 78vw); background: #fff; flex-direction: column;
    padding: 90px 32px; gap: 8px; transform: translateX(100%); transition: .35s; box-shadow: -10px 0 40px rgba(0,0,0,.12);
  }
  .nav-links.open { transform: none; }
  .nav-links a { color: var(--ink); font-size: 16px; padding: 12px 0; }
  .nav-toggle { display: flex; z-index: 101; position: relative; }
  .nav-toggle.open span { background: var(--ink); }
  .nav-toggle.open span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
  .nav-toggle.open span:nth-child(2) { opacity: 0; }
  .nav-toggle.open span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }
  .nav-cta { display: none; }
  .hero-stats { gap: 20px; }
  .hstat { min-width: 40%; }
  .form-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .biz-grid, .process-grid { grid-template-columns: 1fr; }
  .sol-info ul { grid-template-columns: 1fr; }
  .contact-form { padding: 28px 22px; }
}
