/* ============================================================
   妙淘算电协同业务平台 · 样式
   主题：绿电(绿) + 算力(蓝) 渐变
   ============================================================ */
:root {
  --green: #00b96b;
  --green-deep: #009157;
  --cyan: #13c2c2;
  --blue: #1677ff;
  --blue-deep: #0a5bd6;
  --grad: linear-gradient(135deg, #00b96b 0%, #13c2c2 45%, #1677ff 100%);
  --grad-soft: linear-gradient(135deg, rgba(0,185,107,.12), rgba(22,119,255,.12));
  --ink: #0d1b1a;
  --ink-2: #455a57;
  --muted: #7a8c89;
  --line: #e4ecea;
  --bg: #f6faf9;
  --bg-card: #ffffff;
  --dark: #06140f;
  --dark-2: #0c221b;
  --dark-card: rgba(255,255,255,.04);
  --dark-line: rgba(255,255,255,.10);
  --radius: 18px;
  --shadow: 0 18px 50px rgba(8, 40, 30, .10);
  --shadow-lg: 0 28px 70px rgba(8, 40, 30, .18);
  --maxw: 1180px;
  --font: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei",
    "Hiragino Sans GB", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

/* ===== 按钮 ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 8px; padding: 11px 22px; border-radius: 999px;
  font-size: 15px; font-weight: 600; cursor: pointer;
  border: 1px solid transparent; transition: all .25s ease; white-space: nowrap;
}
.btn--primary { background: var(--grad); color: #fff; box-shadow: 0 10px 24px rgba(0,150,90,.28); }
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 16px 34px rgba(0,150,90,.38); }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn--ghost:hover { border-color: var(--green); color: var(--green-deep); }
.section--dark .btn--ghost { color: #cfe7df; border-color: var(--dark-line); }
.section--dark .btn--ghost:hover { border-color: var(--green); color: #fff; }
.btn--lg { padding: 14px 30px; font-size: 16px; }

/* ===== 导航 ===== */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  transition: all .3s ease; backdrop-filter: blur(0px);
}
.nav.scrolled {
  background: rgba(255,255,255,.85); backdrop-filter: blur(14px);
  box-shadow: 0 6px 24px rgba(8,40,30,.08);
}
.nav__inner {
  max-width: var(--maxw); margin: 0 auto; padding: 16px 24px;
  display: flex; align-items: center; gap: 24px;
}
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 19px; }
.brand__logo {
  width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center;
  background: var(--grad); color: #fff; font-size: 18px;
}
.brand__accent { color: var(--green-deep); }
.nav.scrolled .brand__accent { color: var(--green-deep); }
.nav__links { display: flex; gap: 28px; margin-left: auto; font-size: 15px; font-weight: 500; color: var(--ink-2); }
.nav__links a { position: relative; transition: color .2s; }
.nav__links a:hover { color: var(--green-deep); }
.nav__links a::after {
  content: ""; position: absolute; left: 0; bottom: -6px; height: 2px; width: 0;
  background: var(--grad); transition: width .25s;
}
.nav__links a:hover::after { width: 100%; }
.nav__cta { margin-left: 8px; padding: 9px 20px; font-size: 14px; }
.nav__cockpit {
  color: var(--green-deep) !important; font-weight: 700;
  border: 1px solid rgba(0,185,107,.4); border-radius: 999px; padding: 6px 14px;
}
.nav__cockpit::after { display: none !important; }
.nav__cockpit:hover { background: rgba(0,185,107,.1); }
.nav__toggle { display: none; background: none; border: none; font-size: 24px; cursor: pointer; color: var(--ink); }

/* ===== Hero ===== */
.hero {
  position: relative; min-height: 100vh; display: grid; place-items: center;
  text-align: center; padding: 120px 24px 80px; overflow: hidden; color: #fff;
}
.hero__bg { position: absolute; inset: 0; background: var(--dark); z-index: 0; }
.hero__bg::before {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(900px 500px at 15% 10%, rgba(0,185,107,.35), transparent 60%),
    radial-gradient(800px 600px at 85% 20%, rgba(22,119,255,.35), transparent 60%),
    radial-gradient(700px 500px at 50% 100%, rgba(19,194,194,.28), transparent 60%);
}
.hero__grid {
  position: absolute; inset: 0; z-index: 0; opacity: .35;
  background-image:
    linear-gradient(rgba(255,255,255,.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.06) 1px, transparent 1px);
  background-size: 46px 46px;
  mask-image: radial-gradient(circle at 50% 40%, #000 30%, transparent 75%);
}
.hero__inner { position: relative; z-index: 2; max-width: 880px; }
.hero__badge {
  display: inline-block; padding: 7px 18px; border-radius: 999px; font-size: 13px; font-weight: 600;
  background: rgba(255,255,255,.10); border: 1px solid rgba(255,255,255,.22); margin-bottom: 26px;
  letter-spacing: .5px;
}
.hero__title {
  font-size: clamp(38px, 6vw, 68px); font-weight: 900; line-height: 1.1; letter-spacing: 1px;
  background: linear-gradient(120deg, #fff, #b8f5da 40%, #a9d4ff 75%, #fff);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.hero__subtitle { font-size: clamp(20px, 3vw, 30px); font-weight: 700; margin-top: 14px; }
.hero__subtitle .hl { color: #5ff0b8; }
.hero__subtitle .hl--blue { color: #8fc4ff; }
.hero__desc { font-size: 17px; color: #d6e9e3; margin: 22px auto 0; max-width: 680px; }
.hero__desc strong { color: #fff; }
.hero__actions { display: flex; gap: 16px; justify-content: center; margin-top: 34px; flex-wrap: wrap; }
.hero__actions .btn--ghost { color: #fff; border-color: rgba(255,255,255,.3); }
.hero__actions .btn--ghost:hover { border-color: #fff; }
.hero__stats {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px;
  margin-top: 56px; padding: 26px; border-radius: var(--radius);
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12);
  backdrop-filter: blur(8px);
}
.stat__num {
  font-size: clamp(28px, 4vw, 44px); font-weight: 900;
  background: var(--grad); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.stat__label { font-size: 13px; color: #b9d4cc; margin-top: 4px; }
.hero__scroll { position: absolute; bottom: 26px; left: 50%; transform: translateX(-50%); z-index: 2; font-size: 13px; color: #b9d4cc; animation: bob 2s infinite; }
@keyframes bob { 0%,100%{ transform: translate(-50%,0); } 50%{ transform: translate(-50%,8px); } }

/* ===== 通用 section ===== */
.section { max-width: var(--maxw); margin: 0 auto; padding: 96px 24px; }
.section--dark {
  max-width: none; background: var(--dark);
  background-image: radial-gradient(800px 400px at 80% -10%, rgba(0,185,107,.18), transparent 60%), radial-gradient(700px 400px at 0% 110%, rgba(22,119,255,.18), transparent 60%);
  color: #eaf5f1;
}
.section--dark > * { max-width: var(--maxw); margin-left: auto; margin-right: auto; }
.section__head { text-align: center; max-width: 720px; margin: 0 auto 54px; }
.section__tag {
  display: inline-block; padding: 6px 16px; border-radius: 999px; font-size: 13px; font-weight: 700;
  background: var(--grad-soft); color: var(--green-deep); border: 1px solid rgba(0,185,107,.25);
}
.section--dark .section__tag { background: rgba(0,185,107,.14); color: #7fe9bf; border-color: rgba(0,185,107,.3); }
.section__title { font-size: clamp(28px, 4vw, 40px); font-weight: 800; margin: 16px 0 14px; letter-spacing: .5px; }
.section__lead { color: var(--ink-2); font-size: 16px; }
.section--dark .section__lead { color: #b9d4cc; }

/* ===== 三方协同 ===== */
.partners { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.partner {
  background: var(--bg-card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px 26px; box-shadow: var(--shadow); transition: transform .3s, box-shadow .3s;
  position: relative; overflow: hidden;
}
.partner:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.partner--lead { border-color: rgba(0,185,107,.4); background: linear-gradient(180deg, rgba(0,185,107,.06), #fff 40%); }
.partner__icon {
  width: 56px; height: 56px; border-radius: 14px; display: grid; place-items: center; font-size: 28px;
  background: var(--grad-soft); margin-bottom: 16px;
}
.partner h3 { font-size: 22px; font-weight: 800; }
.partner__role { color: var(--green-deep); font-weight: 600; font-size: 14px; margin: 6px 0 16px; }
.partner ul { list-style: none; display: grid; gap: 10px; }
.partner li { position: relative; padding-left: 22px; color: var(--ink-2); font-size: 14.5px; }
.partner li::before { content: "✓"; position: absolute; left: 0; color: var(--green); font-weight: 800; }

/* ===== 价值流 ===== */
.valueflow {
  display: flex; align-items: stretch; gap: 8px; margin-top: 40px; flex-wrap: wrap; justify-content: center;
}
.valueflow__item {
  flex: 1; min-width: 180px; background: var(--bg-card); border: 1px solid var(--line);
  border-radius: 14px; padding: 22px 18px; text-align: center; box-shadow: var(--shadow);
}
.valueflow__step {
  display: inline-grid; place-items: center; width: 38px; height: 38px; border-radius: 50%;
  background: var(--grad); color: #fff; font-weight: 800; font-size: 14px; margin-bottom: 12px;
}
.valueflow__item h4 { font-size: 17px; font-weight: 700; }
.valueflow__item p { font-size: 13.5px; color: var(--ink-2); margin-top: 6px; }
.valueflow__arrow { display: grid; place-items: center; color: var(--green); font-size: 22px; font-weight: 800; }

/* ===== 驾驶舱入口 banner ===== */
.cockpit-banner {
  display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap;
  margin-top: 40px; padding: 22px 28px; border-radius: var(--radius);
  background: var(--grad); color: #fff; box-shadow: var(--shadow-lg);
  transition: transform .3s, box-shadow .3s;
}
.cockpit-banner:hover { transform: translateY(-4px); box-shadow: 0 30px 70px rgba(0,150,90,.35); }
.cockpit-banner__txt { display: flex; flex-direction: column; gap: 4px; }
.cockpit-banner__tag {
  align-self: flex-start; font-size: 12px; font-weight: 700; background: rgba(255,255,255,.2);
  padding: 3px 12px; border-radius: 999px; letter-spacing: .5px;
}
.cockpit-banner__txt strong { font-size: 22px; font-weight: 800; }
.cockpit-banner__txt span:last-child { font-size: 14px; color: #eafaf3; }
.cockpit-banner__go { font-size: 16px; font-weight: 700; white-space: nowrap; }

/* ===== 筛选 ===== */
.filters { display: flex; gap: 12px; justify-content: center; margin-bottom: 40px; flex-wrap: wrap; }
.filter {
  padding: 9px 22px; border-radius: 999px; border: 1px solid var(--dark-line);
  background: rgba(255,255,255,.05); color: #cfe7df; font-size: 15px; font-weight: 600; cursor: pointer;
  transition: all .25s; display: inline-flex; align-items: center; gap: 8px;
}
.filter span {
  background: rgba(255,255,255,.12); border-radius: 999px; padding: 1px 9px; font-size: 12px;
}
.filter:hover { border-color: var(--green); color: #fff; }
.filter.is-active { background: var(--grad); color: #fff; border-color: transparent; }
.filter.is-active span { background: rgba(255,255,255,.25); }

/* ===== 模块卡片 ===== */
.modules { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.module {
  background: var(--bg-card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px 24px; box-shadow: var(--shadow); cursor: pointer; position: relative;
  transition: transform .3s, box-shadow .3s, opacity .3s; overflow: hidden;
}
.section--dark .module { background: rgba(255,255,255,.04); border-color: var(--dark-line); }
.module::before {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--grad);
  opacity: .85;
}
.module:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.module.hidden { display: none; }
.module__top { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.module__no {
  font-size: 13px; font-weight: 800; color: var(--green-deep);
  background: var(--grad-soft); border-radius: 8px; padding: 4px 10px; white-space: nowrap;
}
.section--dark .module__no { color: #7fe9bf; background: rgba(0,185,107,.14); }
.priority {
  font-size: 12px; font-weight: 800; padding: 4px 11px; border-radius: 999px; white-space: nowrap;
}
.priority--P0 { background: #fff1f0; color: #d4380d; border: 1px solid #ffccc7; }
.priority--P1 { background: #e6f4ff; color: #0958d9; border: 1px solid #bae0ff; }
.section--dark .priority--P0 { background: rgba(212,56,13,.18); color: #ff9c8a; border-color: rgba(212,56,13,.4); }
.section--dark .priority--P1 { background: rgba(9,88,217,.22); color: #8fc4ff; border-color: rgba(9,88,217,.4); }
.module__title { font-size: 19px; font-weight: 800; line-height: 1.4; margin-bottom: 8px; }
.module__meta { font-size: 13.5px; color: var(--ink-2); margin-bottom: 14px; }
.section--dark .module__meta { color: #9fbdb4; }
.module__meta b { color: var(--green-deep); font-weight: 700; }
.section--dark .module__meta b { color: #7fe9bf; }
.module__summary {
  font-size: 14px; color: var(--ink-2); display: -webkit-box; -webkit-line-clamp: 2;
  -webkit-box-orient: vertical; overflow: hidden;
}
.section--dark .module__summary { color: #9fbdb4; }
.module__toggle {
  margin-top: 16px; font-size: 13.5px; font-weight: 700; color: var(--green-deep);
  display: inline-flex; align-items: center; gap: 6px;
}
.section--dark .module__toggle { color: #7fe9bf; }
.module__toggle .chev { transition: transform .3s; }
.module.open .module__toggle .chev { transform: rotate(180deg); }

.module__detail {
  max-height: 0; overflow: hidden; transition: max-height .4s ease; border-top: 1px dashed transparent;
}
.module.open .module__detail { max-height: 720px; border-top-color: var(--line); margin-top: 16px; padding-top: 16px; }
.section--dark .module.open .module__detail { border-top-color: var(--dark-line); }
.detail__block { margin-bottom: 16px; }
.detail__h { font-size: 13px; font-weight: 800; color: var(--green-deep); margin-bottom: 8px; letter-spacing: .3px; }
.section--dark .detail__h { color: #7fe9bf; }
.detail__list { list-style: none; display: grid; gap: 7px; }
.detail__list li { position: relative; padding-left: 20px; font-size: 13.5px; color: var(--ink-2); }
.section--dark .detail__list li { color: #b9d4cc; }
.detail__list li::before { content: "●"; position: absolute; left: 0; color: var(--green); font-size: 9px; top: 5px; }
.detail__value { font-size: 13.5px; color: var(--ink-2); background: var(--grad-soft); border-radius: 12px; padding: 12px 14px; }
.section--dark .detail__value { color: #cfe7df; background: rgba(0,185,107,.10); }

/* ===== 架构 ===== */
.arch { display: flex; flex-direction: column; gap: 14px; }
.arch__layer {
  border-radius: 16px; padding: 22px 26px; border: 1px solid var(--line); background: var(--bg-card);
  box-shadow: var(--shadow);
}
.arch__layer--core { background: linear-gradient(135deg, rgba(0,185,107,.10), rgba(22,119,255,.10)); border-color: rgba(0,150,90,.3); }
.arch__layer--data { background: linear-gradient(135deg, rgba(19,194,194,.10), rgba(0,185,107,.08)); }
.arch__layer-title { font-size: 14px; font-weight: 800; color: var(--green-deep); margin-bottom: 14px; letter-spacing: .5px; }
.arch__chips { display: flex; flex-wrap: wrap; gap: 12px; }
.chip {
  padding: 10px 16px; border-radius: 10px; font-size: 14px; font-weight: 600;
  background: #eef5f3; border: 1px solid var(--line); color: var(--ink-2);
}
.chip--accent { background: var(--grad); color: #fff; border: none; box-shadow: 0 8px 20px rgba(0,150,90,.28); }
.chip--base { background: #e8f7f3; border-color: rgba(0,185,107,.3); color: var(--green-deep); }
.arch__layer--eco { background: var(--dark-2); border-color: var(--dark-line); }
.arch__layer--eco .arch__layer-title { color: #7fe9bf; }
.chip--eco { background: rgba(255,255,255,.06); border-color: var(--dark-line); color: #cfe7df; }

/* ===== 路线图 ===== */
.roadmap { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; position: relative; }
.roadmap::before {
  content: ""; position: absolute; left: 50%; top: 8px; bottom: 8px; width: 2px;
  background: linear-gradient(var(--green), var(--blue)); transform: translateX(-50%);
}
.roadmap__phase { position: relative; padding: 0 10px; }
.roadmap__phase:nth-child(odd) { text-align: right; padding-right: 40px; }
.roadmap__phase:nth-child(even) { text-align: left; padding-left: 40px; }
.roadmap__dot {
  position: absolute; top: 6px; width: 16px; height: 16px; border-radius: 50%;
  background: var(--grad); box-shadow: 0 0 0 5px rgba(0,185,107,.18);
}
.roadmap__phase:nth-child(odd) .roadmap__dot { right: -8px; }
.roadmap__phase:nth-child(even) .roadmap__dot { left: -8px; }
.roadmap__card {
  background: rgba(255,255,255,.05); border: 1px solid var(--dark-line);
  border-radius: 14px; padding: 22px 24px; display: inline-block; text-align: left; max-width: 420px;
}
.roadmap__tag { font-size: 12px; font-weight: 800; padding: 4px 12px; border-radius: 999px; }
.roadmap__tag--p0 { background: rgba(212,56,13,.2); color: #ff9c8a; }
.roadmap__tag--p1 { background: rgba(9,88,217,.25); color: #8fc4ff; }
.roadmap__card h4 { font-size: 18px; margin: 12px 0 8px; }
.roadmap__card p { font-size: 14px; color: #b9d4cc; }

/* ===== 联系 / 页脚 ===== */
.contact { text-align: center; }
.contact__card {
  background: var(--grad); color: #fff; border-radius: 26px; padding: 60px 40px;
  box-shadow: var(--shadow-lg); max-width: 920px; margin: 0 auto;
}
.contact__card h2 { font-size: clamp(26px, 4vw, 38px); font-weight: 900; }
.contact__card p { font-size: 17px; margin: 14px auto 28px; max-width: 600px; color: #eafaf3; }
.contact__actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.contact__card .btn--ghost { color: #fff; border-color: rgba(255,255,255,.45); }
.contact__card .btn--ghost:hover { border-color: #fff; }
.footer {
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px;
  margin-top: 50px; padding-top: 26px; border-top: 1px solid var(--line);
  font-size: 13.5px; color: var(--ink-2);
}
.footer__muted { color: var(--muted); }

/* ===== 返回顶部 ===== */
.totop {
  position: fixed; right: 26px; bottom: 26px; z-index: 90; width: 46px; height: 46px; border-radius: 50%;
  border: none; background: var(--grad); color: #fff; font-size: 20px; cursor: pointer;
  box-shadow: 0 10px 26px rgba(0,150,90,.35); opacity: 0; pointer-events: none; transition: all .3s;
}
.totop.show { opacity: 1; pointer-events: auto; }
.totop:hover { transform: translateY(-3px); }

/* ===== 出现动画 ===== */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ===== 响应式 ===== */
@media (max-width: 900px) {
  .partners { grid-template-columns: 1fr; }
  .modules { grid-template-columns: repeat(2, 1fr); }
  .hero__stats { grid-template-columns: repeat(2, 1fr); }
  .roadmap { grid-template-columns: 1fr; }
  .roadmap::before { left: 16px; }
  .roadmap__phase:nth-child(odd), .roadmap__phase:nth-child(even) { text-align: left; padding-left: 44px; padding-right: 0; }
  .roadmap__phase:nth-child(odd) .roadmap__dot, .roadmap__phase:nth-child(even) .roadmap__dot { left: 8px; right: auto; }
  .valueflow { flex-direction: column; }
  .valueflow__arrow { transform: rotate(90deg); }
}
@media (max-width: 640px) {
  .nav__links { display: none; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column;
    background: #fff; padding: 16px 24px; gap: 14px; box-shadow: 0 12px 30px rgba(8,40,30,.12); border-top: 1px solid var(--line); }
  .nav__links.open { display: flex; }
  .nav__links a { color: var(--ink); }
  .nav__toggle { display: block; }
  .nav__cta { display: none; }
  .modules { grid-template-columns: 1fr; }
  .section { padding: 70px 18px; }
  .hero { padding: 110px 18px 70px; }
  .footer { flex-direction: column; }
}
