/* ============================================================
   影游阁科技 - 服装行业科技工具展示站
   风格:现代科技 / ToB 解决方案风(区别于电商卡片排版)
   ============================================================ */

:root {
  --ink: #101828;          /* 主文字 */
  --ink-soft: #475467;     /* 次要文字 */
  --ink-faint: #98a2b3;    /* 弱化文字 */
  --line: #e4e7ec;         /* 分隔线 */
  --bg: #ffffff;
  --bg-soft: #f4f7fb;      /* 浅色区块 */
  --brand: #0b57d0;        /* 品牌蓝 */
  --brand-dark: #0842a0;
  --accent: #16b8a6;       /* 点缀青 */
  --hero-from: #0a1530;
  --hero-to: #123a7a;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(16, 24, 40, .08);
  --maxw: 1120px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: "PingFang SC", "Microsoft YaHei", "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  line-height: 1.7;
}

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }

a { text-decoration: none; color: inherit; }

/* ---------- 按钮 ---------- */
.btn {
  display: inline-block; padding: 12px 26px; border-radius: 999px;
  font-size: 15px; font-weight: 600; cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
  border: 1px solid transparent;
}
.btn:hover { transform: translateY(-2px); }
.btn-sm { padding: 8px 18px; font-size: 14px; }
.btn-solid { background: var(--brand); color: #fff; box-shadow: 0 6px 18px rgba(11, 87, 208, .35); }
.btn-solid:hover { background: var(--brand-dark); }
.btn-ghost { border-color: rgba(255, 255, 255, .55); color: #fff; }
.btn-ghost:hover { border-color: #fff; background: rgba(255, 255, 255, .1); }
.btn-light { background: #fff; color: var(--brand-dark); }
.btn-light:hover { box-shadow: 0 8px 24px rgba(255, 255, 255, .25); }
.btn-block { display: block; text-align: center; }

/* ---------- 顶部导航 ---------- */
.topbar {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.topbar-inner { display: flex; align-items: center; gap: 24px; padding-top: 12px; padding-bottom: 12px; }
.brand { font-size: 20px; font-weight: 800; letter-spacing: .5px; display: flex; align-items: baseline; }
.brand-mark { color: var(--ink); }
.brand-sub { color: var(--brand); }
.menu { display: flex; gap: 26px; margin-left: auto; font-size: 15px; color: var(--ink-soft); }
.menu a { position: relative; padding: 4px 0; }
.menu a:hover { color: var(--brand); }

/* ---------- Hero ---------- */
.hero {
  background: linear-gradient(135deg, var(--hero-from) 0%, var(--hero-to) 60%, #14509c 100%);
  color: #fff; padding: 96px 0 108px;
}
.hero-eyebrow {
  display: inline-block; font-size: 13px; letter-spacing: 2px; color: #9fc0ff;
  border: 1px solid rgba(159, 192, 255, .4); border-radius: 999px; padding: 5px 14px; margin-bottom: 22px;
}
.hero h1 { font-size: 46px; line-height: 1.25; font-weight: 800; letter-spacing: 1px; }
.hero-desc { margin-top: 18px; font-size: 17px; color: #c9d7f2; }
.hero-actions { margin-top: 30px; display: flex; gap: 14px; flex-wrap: wrap; }

/* ---------- 通用区块 ---------- */
.section { padding: 72px 0; }
.section-alt { background: var(--bg-soft); }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 38px; }
.eyebrow { font-size: 13px; letter-spacing: 3px; color: var(--accent); font-weight: 700; margin-bottom: 8px; }
.section-head h2 { font-size: 30px; font-weight: 800; }
.section-desc { margin-top: 10px; color: var(--ink-soft); font-size: 15px; }

/* ---------- 分类筛选 ---------- */
.filter-bar { display: flex; justify-content: center; gap: 10px; flex-wrap: wrap; margin-bottom: 30px; }
.chip {
  border: 1px solid var(--line); background: #fff; color: var(--ink-soft);
  padding: 8px 20px; border-radius: 999px; cursor: pointer; font-size: 14px; font-weight: 500;
  transition: all .15s ease;
}
.chip:hover { border-color: var(--brand); color: var(--brand); }
.chip.active { background: var(--brand); border-color: var(--brand); color: #fff; }

/* ---------- 工具卡片 ---------- */
.tool-grid {
  display: grid; gap: 20px;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
}
.tool-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px; display: flex; flex-direction: column; gap: 12px;
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}
.tool-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: #c8d4ea; }
.tool-card-img {
  width: 100%; aspect-ratio: 4 / 3; object-fit: cover;
  border-radius: 10px; background: #eef0f6;
}
.modal-img {
  width: 100%; aspect-ratio: 4 / 3; object-fit: cover;
  border-radius: 10px; background: #eef0f6;
}
.tool-card-head { display: flex; align-items: center; gap: 14px; }
.tool-icon {
  width: 48px; height: 48px; border-radius: 12px; flex: none;
  background: linear-gradient(135deg, #eaf2ff, #e7fbf7);
  display: flex; align-items: center; justify-content: center; font-size: 24px;
}
.tool-name { font-size: 18px; font-weight: 700; }
.tool-cat { font-size: 12px; color: var(--ink-faint); }
.tool-desc { color: var(--ink-soft); font-size: 14px; flex: 1; }
.tool-tags { display: flex; gap: 6px; flex-wrap: wrap; }
.tool-tag {
  font-size: 12px; color: var(--brand); background: #eef4ff;
  border-radius: 6px; padding: 2px 8px;
}
.tool-meta { display: flex; gap: 8px; flex-wrap: wrap; font-size: 13px; }
.tool-price {
  background: #fff4e6; color: #b45309; font-weight: 600;
  border-radius: 6px; padding: 2px 8px;
}
.tool-scale {
  background: #eef4ff; color: var(--brand);
  border-radius: 6px; padding: 2px 8px;
}
.tool-more {
  font-size: 14px; font-weight: 600; color: var(--brand);
  background: none; border: none; cursor: pointer; padding: 0;
  font-family: inherit; text-align: left; align-self: flex-start;
}
.tool-card:hover .tool-more { text-decoration: underline; }

/* ---------- 核心价值 ---------- */
.value-grid { display: grid; gap: 20px; grid-template-columns: repeat(3, 1fr); }
.value-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px; transition: transform .15s ease, box-shadow .15s ease;
}
.value-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.value-icon { font-size: 30px; margin-bottom: 14px; }
.value-card h3 { font-size: 18px; margin-bottom: 8px; }
.value-card p { color: var(--ink-soft); font-size: 14px; }

/* ---------- 合作流程 ---------- */
.flow-grid { display: grid; gap: 20px; grid-template-columns: repeat(4, 1fr); }
.flow-step {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px; position: relative;
}
.step-no {
  font-size: 28px; font-weight: 800; color: var(--accent); opacity: .9; display: block; margin-bottom: 12px;
}
.flow-step h3 { font-size: 16px; margin-bottom: 6px; }
.flow-step p { color: var(--ink-soft); font-size: 13px; }

/* ---------- 关于我们 ---------- */
.about-inner { display: grid; gap: 40px; grid-template-columns: 1.4fr 1fr; align-items: center; }
.about-text h2 { font-size: 28px; font-weight: 800; margin-bottom: 14px; }
.about-text > p { color: var(--ink-soft); font-size: 15px; }
.about-list { margin-top: 18px; list-style: none; }
.about-list li { padding: 8px 0 8px 26px; position: relative; color: var(--ink-soft); font-size: 15px; }
.about-list li::before {
  content: "✓"; position: absolute; left: 0; top: 8px;
  color: var(--accent); font-weight: 700;
}
.about-panel {
  background: linear-gradient(135deg, var(--hero-from), var(--hero-to));
  color: #fff; border-radius: var(--radius); padding: 30px;
}
.panel-title { font-size: 18px; font-weight: 700; margin-bottom: 8px; }
.panel-note { font-size: 13px; color: #b7c8e8; margin-bottom: 22px; }

/* ---------- 弹窗 ---------- */
body.modal-open { overflow: hidden; }
.modal-mask {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(10, 21, 48, .55);
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
  opacity: 0; visibility: hidden; transition: opacity .2s ease, visibility .2s ease;
}
.modal-mask.open { opacity: 1; visibility: visible; }
.modal {
  background: #fff; border-radius: var(--radius); width: min(92vw, 520px);
  max-height: 88vh; overflow-y: auto; padding: 26px; position: relative;
  transform: translateY(14px); transition: transform .2s ease;
}
.modal-mask.open .modal { transform: translateY(0); }
.modal-close {
  position: absolute; top: 12px; right: 14px;
  background: none; border: none; font-size: 26px; line-height: 1;
  color: var(--ink-faint); cursor: pointer; padding: 2px 6px;
}
.modal-close:hover { color: var(--ink); }
.modal-head { display: flex; align-items: center; gap: 14px; padding-right: 30px; margin-bottom: 14px; }
.modal-head h3 { font-size: 20px; font-weight: 700; }
.modal-icon {
  width: 52px; height: 52px; border-radius: 12px; flex: none;
  background: linear-gradient(135deg, #eaf2ff, #e7fbf7);
  display: flex; align-items: center; justify-content: center; font-size: 26px;
}
.modal-body { display: flex; flex-direction: column; gap: 12px; }
.modal-desc { color: var(--ink-soft); font-size: 15px; }
.modal-meta { display: flex; gap: 8px; flex-wrap: wrap; font-size: 13px; }
.modal-actions { display: flex; gap: 10px; margin-top: 20px; }
.btn-ghost-dark {
  border-color: var(--line); color: var(--ink-soft); background: #fff;
}
.btn-ghost-dark:hover { border-color: var(--ink-faint); color: var(--ink); }

/* ---------- 模拟支付 ---------- */
.order-box {
  border: 1px solid var(--line); border-radius: 10px; padding: 14px 16px;
  display: flex; flex-direction: column; gap: 10px; margin-bottom: 14px;
}
.order-row { display: flex; justify-content: space-between; align-items: center; font-size: 14px; color: var(--ink-soft); }
.order-value { color: var(--ink); font-weight: 600; text-align: right; }
.order-price { color: #e5484d; font-weight: 700; font-size: 16px; }
.order-total { border-top: 1px dashed var(--line); padding-top: 10px; font-size: 15px; }
.order-total .order-price { font-size: 20px; }
.qty-ctl { display: flex; align-items: center; gap: 10px; }
.qty-ctl button {
  width: 28px; height: 28px; border-radius: 8px; border: 1px solid var(--line);
  background: #fff; color: var(--ink); font-size: 16px; cursor: pointer; line-height: 1;
}
.qty-ctl button:hover { border-color: var(--brand); color: var(--brand); }
#payQty { min-width: 22px; text-align: center; font-weight: 600; color: var(--ink); }
.pay-methods { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 14px; }
.pay-method {
  display: flex; align-items: center; gap: 6px; border: 1px solid var(--line);
  border-radius: 10px; padding: 10px 8px; cursor: pointer; font-size: 13px;
  transition: border-color .15s ease;
}
.pay-method:hover { border-color: var(--brand); }
.pay-method input { accent-color: var(--brand); }
.pay-method:has(input:checked) { border-color: var(--brand); background: #eef4ff; }
.pay-success-icon {
  width: 64px; height: 64px; border-radius: 50%; margin: 6px auto 14px;
  background: var(--accent); color: #fff; font-size: 32px; line-height: 64px; text-align: center;
}
.pay-success-line { color: var(--ink-soft); font-size: 14px; margin-bottom: 6px; }
#payShipInfo { word-break: break-all; }

/* ---------- 我的订单 ---------- */
.modal-lg { width: min(94vw, 640px); }
.orders-body {
  display: flex; flex-direction: column; gap: 12px;
  max-height: 55vh; overflow-y: auto;
}
.order-item {
  border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px;
  display: flex; flex-direction: column; gap: 5px; font-size: 13px; color: var(--ink-soft);
}
.order-item-top { display: flex; justify-content: space-between; align-items: center; }
.order-no { color: var(--ink); font-weight: 600; font-size: 13px; }
.order-status { color: #16a34a; font-weight: 700; font-size: 12px; }
.order-item-row.ship { color: var(--ink-faint); word-break: break-all; }
.orders-empty { text-align: center; color: var(--ink-faint); padding: 36px 0; font-size: 14px; }

/* ---------- 登录 / 注册 ---------- */
.auth-tabs { display: flex; border-bottom: 1px solid var(--line); margin-bottom: 6px; padding-right: 0; }
.auth-tab {
  flex: 1; padding: 10px 0; border: none; background: none;
  font-size: 15px; color: var(--ink-faint); cursor: pointer;
  border-bottom: 2px solid transparent; font-family: inherit;
}
.auth-tab.active { color: var(--brand); border-bottom-color: var(--brand); font-weight: 600; }
.auth-msg { color: #e5484d; font-size: 13px; min-height: 18px; }
.auth-switch { font-size: 13px; color: var(--ink-soft); text-align: center; }
.auth-switch a { color: var(--brand); text-decoration: underline; }

/* ---------- 客服 ---------- */
.service-float {
  position: fixed; right: 18px; bottom: 18px; z-index: 150;
  background: var(--brand); color: #fff; border: none; border-radius: 999px;
  padding: 12px 18px; font-size: 14px; cursor: pointer;
  box-shadow: 0 6px 18px rgba(11, 87, 208, .4);
  font-family: inherit;
}
.service-float:hover { background: var(--brand-dark); }
.service-body { display: flex; flex-direction: column; gap: 10px; }
.service-hello { font-size: 14px; color: var(--ink-soft); }
.faq-item { border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.faq-q {
  width: 100%; text-align: left; background: none; border: none; padding: 10px 12px;
  font-size: 14px; cursor: pointer; color: var(--ink); font-weight: 500; font-family: inherit;
}
.faq-q:hover { color: var(--brand); }
.faq-a { display: none; padding: 0 12px 10px; font-size: 13px; color: var(--ink-soft); }
.faq-item.open .faq-a { display: block; }
.service-channels { display: flex; gap: 8px; flex-wrap: wrap; font-size: 12px; color: var(--ink-soft); }
.channel { background: var(--bg-soft); border-radius: 6px; padding: 4px 10px; }

/* ---------- 收货信息 ---------- */
.ship-box {
  border: 1px solid var(--line); border-radius: 10px; padding: 14px 16px;
  display: flex; flex-direction: column; gap: 12px; margin-bottom: 14px;
}
.ship-title { font-size: 14px; font-weight: 600; color: var(--ink); }

/* ---------- 询价表单 ---------- */
.form { display: flex; flex-direction: column; gap: 14px; }
.form-label { display: flex; flex-direction: column; gap: 6px; font-size: 14px; color: var(--ink-soft); font-weight: 500; }
.form-label input,
.form-label textarea {
  border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px;
  font-size: 14px; font-family: inherit; color: var(--ink); background: #fff;
  transition: border-color .15s ease;
}
.form-label input:focus,
.form-label textarea:focus { outline: none; border-color: var(--brand); }
.form-label input[readonly] { background: var(--bg-soft); color: var(--ink); }
.req { color: #e5484d; }
.form-tip { font-size: 12px; color: var(--ink-faint); }

/* ---------- CTA ---------- */
.cta { background: linear-gradient(120deg, var(--brand), var(--accent)); }
.cta-inner { text-align: center; padding: 56px 20px; color: #fff; }
.cta h2 { font-size: 28px; font-weight: 800; margin-bottom: 8px; }
.cta p { opacity: .9; margin-bottom: 24px; }

/* ---------- 页脚 ---------- */
.footer { background: var(--ink); color: #b9c2d4; }
.footer-inner { padding-top: 40px; padding-bottom: 40px; display: flex; flex-direction: column; gap: 18px; }
.footer .brand-mark { color: #fff; }
.footer .brand-sub { color: #7db2ff; }
.footer-desc { font-size: 13px; margin-top: 6px; color: #7d8aa5; }
.footer-links { display: flex; gap: 24px; font-size: 14px; }
.footer-links a:hover { color: #fff; }
.footer-copy { font-size: 12px; color: #66748f; }
.footer-icp { font-size: 12px; color: #66748f; }
.footer-icp a { color: #7db2ff; }
.footer-icp a:hover { color: #fff; text-decoration: underline; }
.footer-icp .icp-holder { color: #57637e; margin-left: 6px; }

/* ---------- 空状态 ---------- */
.empty { text-align: center; color: var(--ink-faint); padding: 50px 0; grid-column: 1 / -1; }

/* ---------- 响应式 ---------- */
@media (max-width: 860px) {
  .value-grid { grid-template-columns: 1fr; }
  .flow-grid { grid-template-columns: repeat(2, 1fr); }
  .about-inner { grid-template-columns: 1fr; }
  .menu { display: none; } /* 移动端隐藏菜单,保留 CTA 按钮 */
}
@media (max-width: 560px) {
  .hero { padding: 64px 0 76px; }
  .hero h1 { font-size: 32px; }
  .tool-grid { grid-template-columns: 1fr; }
  .flow-grid { grid-template-columns: 1fr; }
  .br-mobile { display: none; }
}
