/* 苍初自动化官网 - 共享样式 */
:root {
  --navy: #0e2a47;
  --navy-2: #123a63;
  --navy-3: #1b4a7e;
  --orange: #e8842c;
  --orange-2: #f39a4a;
  --ink: #1f2937;
  --muted: #64748b;
  --line: #e2e8f0;
  --bg: #f7f9fc;
  --card: #ffffff;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(14, 42, 71, .08);
}

* { 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(--bg);
  line-height: 1.7;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

.container { width: min(1160px, 92%); margin: 0 auto; }

/* ===== 顶部导航 ===== */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav-bar {
  display: flex; align-items: center; justify-content: space-between;
  height: 68px; gap: 16px;
}
.brand { display: flex; align-items: center; gap: 10px; min-width: 0; }
.brand-mark {
  width: 38px; height: 38px; border-radius: 9px; flex: none;
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-3) 60%, var(--orange) 140%);
  color: #fff; font-weight: 700; font-size: 17px;
  display: flex; align-items: center; justify-content: center;
  letter-spacing: .5px;
}
.brand-text { line-height: 1.25; min-width: 0; }
.brand-text b { display: block; font-size: 16px; color: var(--navy); white-space: nowrap; }
.brand-text span { display: block; font-size: 11px; color: var(--muted); letter-spacing: .4px; white-space: nowrap; }
.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-links a {
  padding: 8px 14px; border-radius: 8px; font-size: 15px; color: var(--ink);
  transition: background .15s, color .15s;
}
.nav-links a:hover { background: #eef3f9; color: var(--navy); }
.nav-links a.active { color: var(--orange); font-weight: 600; }
.nav-auth { display: flex; align-items: center; gap: 10px; }
.nav-user { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--muted); }
.avatar-dot {
  width: 30px; height: 30px; border-radius: 50%; flex: none;
  background: var(--navy); color: #fff; font-size: 13px;
  display: flex; align-items: center; justify-content: center;
}

/* ===== 按钮 ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 10px 22px; border-radius: 9px; font-size: 15px; cursor: pointer;
  border: 1px solid transparent; transition: all .15s; font-family: inherit;
}
.btn-primary { background: var(--orange); color: #fff; }
.btn-primary:hover { background: #d4751f; }
.btn-navy { background: var(--navy); color: #fff; }
.btn-navy:hover { background: var(--navy-2); }
.btn-ghost { border-color: var(--line); background: #fff; color: var(--ink); }
.btn-ghost:hover { border-color: var(--navy); color: var(--navy); }
.btn-sm { padding: 6px 14px; font-size: 13px; }
.btn-block { width: 100%; }
.btn:disabled { opacity: .55; cursor: not-allowed; }

/* ===== 通用区块 ===== */
.section { padding: 72px 0; }
.section-head { text-align: center; margin-bottom: 44px; }
.section-head .kicker {
  display: inline-block; font-size: 13px; letter-spacing: 3px;
  color: var(--orange); font-weight: 600; text-transform: uppercase; margin-bottom: 8px;
}
.section-head h2 { font-size: 30px; color: var(--navy); }
.section-head p { color: var(--muted); margin-top: 10px; max-width: 640px; margin-left: auto; margin-right: auto; }
.section.alt { background: #fff; }

/* ===== 首页 Hero ===== */
.hero {
  position: relative; color: #fff;
  background: linear-gradient(120deg, rgba(11, 32, 55, .93) 8%, rgba(18, 58, 99, .82) 55%, rgba(11, 32, 55, .55)),
    url("img/hero.jpg") center 40% / cover no-repeat;
  padding: 130px 0 120px;
}
.hero .kicker { color: var(--orange-2); letter-spacing: 4px; font-size: 14px; font-weight: 600; }
.hero h1 { font-size: clamp(30px, 4.6vw, 50px); line-height: 1.25; margin: 14px 0 10px; }
.hero .sub-en { font-size: 15px; opacity: .75; letter-spacing: 1px; }
.hero p.lead { max-width: 620px; margin-top: 22px; font-size: 17px; color: rgba(255, 255, 255, .88); }
.hero-actions { margin-top: 34px; display: flex; gap: 14px; flex-wrap: wrap; }
.hero-stats {
  margin-top: 56px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; max-width: 760px;
}
.hero-stat { border-left: 2px solid var(--orange); padding-left: 14px; }
.hero-stat b { font-size: 30px; display: block; line-height: 1.2; }
.hero-stat span { font-size: 13px; opacity: .78; }

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

.card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px; box-shadow: var(--shadow); transition: transform .18s, box-shadow .18s;
}
.card:hover { transform: translateY(-4px); box-shadow: 0 16px 36px rgba(14, 42, 71, .12); }
.card h3 { color: var(--navy); font-size: 19px; margin-bottom: 6px; }
.card .en { font-size: 12px; color: var(--muted); letter-spacing: .5px; margin-bottom: 12px; }
.card p { color: var(--muted); font-size: 14.5px; }
.icon-badge {
  width: 48px; height: 48px; border-radius: 12px; margin-bottom: 16px;
  background: linear-gradient(135deg, var(--navy), var(--navy-3));
  display: flex; align-items: center; justify-content: center; color: #fff;
}
.icon-badge svg { width: 24px; height: 24px; }
.feature-list { margin-top: 14px; display: grid; gap: 7px; }
.feature-list li {
  position: relative; padding-left: 22px; font-size: 14px; color: var(--ink);
}
.feature-list li::before {
  content: ""; position: absolute; left: 2px; top: 9px;
  width: 8px; height: 8px; border-radius: 2px; background: var(--orange);
  transform: rotate(45deg);
}

/* ===== 数字统计（浅色区） ===== */
.stat-strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.stat-box { text-align: center; padding: 26px 10px; background: var(--card); border-radius: var(--radius); border: 1px solid var(--line); }
.stat-box b { font-size: 36px; color: var(--navy); display: block; }
.stat-box b em { font-style: normal; color: var(--orange); }
.stat-box span { font-size: 14px; color: var(--muted); }

/* ===== 双栏图文 ===== */
.split { display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: center; }
.split img {
  width: 100%; height: 420px; object-fit: cover; object-position: center;
  border-radius: var(--radius); box-shadow: var(--shadow);
}
@media (max-width: 960px) {
  .split img { height: 300px; }
}

/* ===== 公司简介图片轮播 ===== */
.img-carousel {
  position: relative; width: 100%; height: 420px;
  border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow);
  background: var(--navy);
}
.img-carousel img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: center;
  opacity: 0; transition: opacity .9s ease;
}
.img-carousel img.active { opacity: 1; }
.img-carousel .carousel-dots {
  position: absolute; bottom: 12px; left: 0; right: 0;
  display: flex; justify-content: center; gap: 8px; z-index: 2;
}
.img-carousel .carousel-dots button {
  width: 9px; height: 9px; border-radius: 50%; border: none; cursor: pointer;
  background: rgba(255, 255, 255, .45); padding: 0;
  transition: background .3s, transform .3s;
}
.img-carousel .carousel-dots button.active { background: #fff; transform: scale(1.25); }
@media (max-width: 960px) {
  .img-carousel { height: 300px; }
}
.split .kicker { color: var(--orange); font-size: 13px; letter-spacing: 3px; font-weight: 600; }
.split h2 { font-size: 28px; color: var(--navy); margin: 8px 0 16px; }
.split p { color: var(--muted); margin-bottom: 12px; }

/* ===== 应用领域标签 ===== */
.tag-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; }
.tag-card {
  background: var(--card); border: 1px solid var(--line); border-radius: 12px;
  padding: 22px 10px; text-align: center; font-size: 15px; color: var(--navy); font-weight: 600;
  transition: all .15s;
}
.tag-card:hover { border-color: var(--orange); color: var(--orange); transform: translateY(-3px); }
.tag-card svg { width: 26px; height: 26px; margin: 0 auto 8px; color: var(--navy); }

/* ===== 页脚 ===== */
.site-footer { background: var(--navy); color: rgba(255, 255, 255, .85); margin-top: 0; }
.footer-main { display: grid; grid-template-columns: 1.4fr 1fr 1.2fr; gap: 40px; padding: 54px 0 40px; }
.footer-main h4 { color: #fff; font-size: 16px; margin-bottom: 14px; }
.footer-main p, .footer-main a { font-size: 14px; color: rgba(255, 255, 255, .72); display: block; margin-bottom: 8px; }
.footer-main a:hover { color: var(--orange-2); }
.footer-brand { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.footer-brand .brand-mark { background: linear-gradient(135deg, var(--orange), var(--orange-2)); }
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, .12); padding: 18px 0;
  font-size: 13px; color: rgba(255, 255, 255, .55);
  display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap;
}

/* ===== 内页 Banner ===== */
.page-banner {
  background: linear-gradient(120deg, rgba(11, 32, 55, .94), rgba(18, 58, 99, .86)),
    url("img/cabinet-bank.jpg") center / cover no-repeat;
  color: #fff; padding: 74px 0; text-align: center;
}
.page-banner h1 { font-size: 34px; }
.page-banner p { color: rgba(255, 255, 255, .75); margin-top: 8px; font-size: 15px; }
.page-banner .crumb { font-size: 13px; color: rgba(255, 255, 255, .6); margin-top: 18px; }
.page-banner .crumb a:hover { color: var(--orange-2); }

/* ===== 表单 ===== */
.form-grid { display: grid; gap: 16px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field label { display: block; font-size: 14px; font-weight: 600; color: var(--navy); margin-bottom: 6px; }
.field input, .field textarea, .field select {
  width: 100%; padding: 11px 14px; border: 1px solid var(--line); border-radius: 9px;
  font-size: 15px; font-family: inherit; background: #fff; color: var(--ink);
  transition: border-color .15s, box-shadow .15s;
}
.field input:focus, .field textarea:focus {
  outline: none; border-color: var(--orange);
  box-shadow: 0 0 0 3px rgba(232, 132, 44, .14);
}
.field textarea { min-height: 120px; resize: vertical; }
.field .hint { font-size: 12.5px; color: var(--muted); margin-top: 4px; }

/* ===== 提示条 ===== */
.notice { padding: 12px 16px; border-radius: 9px; font-size: 14px; display: none; }
.notice.ok { display: block; background: #e8f7ef; color: #14804a; border: 1px solid #bfe8d2; }
.notice.err { display: block; background: #fdeeee; color: #b42318; border: 1px solid #f5c6c2; }

/* ===== 登录页 ===== */
.auth-wrap { max-width: 440px; margin: 0 auto; }
.auth-card { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 34px; box-shadow: var(--shadow); }
.auth-tabs { display: flex; border-bottom: 1px solid var(--line); margin-bottom: 24px; }
.auth-tabs button {
  flex: 1; padding: 12px 4px; background: none; border: none; cursor: pointer;
  font-size: 15px; color: var(--muted); border-bottom: 2px solid transparent; font-family: inherit;
}
.auth-tabs button.active { color: var(--navy); font-weight: 600; border-bottom-color: var(--orange); }
.auth-pane { display: none; }
.auth-pane.active { display: block; }
.auth-foot { margin-top: 16px; font-size: 13.5px; color: var(--muted); text-align: center; }
.auth-foot a { color: var(--orange); cursor: pointer; }
.link-btn { background: none; border: none; color: var(--orange); cursor: pointer; font-size: 13.5px; padding: 0; font-family: inherit; }

/* ===== 账户中心 ===== */
.my-list { display: grid; gap: 14px; }
.my-item { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 18px 20px; }
.my-item .meta { font-size: 13px; color: var(--muted); margin-top: 6px; display: flex; gap: 18px; flex-wrap: wrap; }
.status-chip { display: inline-block; padding: 2px 10px; border-radius: 999px; font-size: 12.5px; background: #fff4e8; color: var(--orange); border: 1px solid #f7d9b8; }
.file-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.file-row .name { font-size: 14.5px; color: var(--ink); word-break: break-all; }
.file-row .size { font-size: 12.5px; color: var(--muted); flex: none; }

/* ===== 产品页 ===== */
.product-block { display: grid; grid-template-columns: 380px 1fr; gap: 34px; align-items: stretch; margin-bottom: 34px; }
.product-block .pic { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); min-height: 260px; background: var(--navy); }
.product-block .pic img { width: 100%; height: 100%; object-fit: cover; }
.product-block .body { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 30px 34px; box-shadow: var(--shadow); }
.product-block h3 { font-size: 22px; color: var(--navy); }
.product-block .en { font-size: 13px; color: var(--orange); letter-spacing: .5px; margin: 2px 0 12px; }
.product-block p { color: var(--muted); }

/* ===== 响应式 ===== */
@media (max-width: 960px) {
  .grid-3, .stat-strip, .tag-grid { grid-template-columns: repeat(2, 1fr); }
  .split { grid-template-columns: 1fr; gap: 26px; }
  .product-block { grid-template-columns: 1fr; }
  .footer-main { grid-template-columns: 1fr; gap: 26px; }
  .hero-stats { grid-template-columns: repeat(2, 1fr); }
  .nav-links { display: none; }
}
@media (max-width: 560px) {
  .form-row { grid-template-columns: 1fr; }
  .grid-2 { grid-template-columns: 1fr; }
}

/* ===== 移动端菜单（独立部署版新增） ===== */
.nav-actions { display: flex; align-items: center; gap: 10px; }
.nav-toggle {
  display: none; width: 40px; height: 40px; border: 1px solid var(--line);
  border-radius: 9px; background: #fff; cursor: pointer;
  align-items: center; justify-content: center; color: var(--navy);
}
.nav-toggle svg { width: 20px; height: 20px; }
@media (max-width: 960px) {
  .nav-toggle { display: flex; }
  .nav-links {
    display: none; position: absolute; top: 68px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 2px; padding: 10px 16px 14px;
    background: #fff; border-bottom: 1px solid var(--line); box-shadow: var(--shadow);
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 12px 10px; font-size: 16px; }
  .brand-text b { font-size: 15px; }
}
