/* ==========================================================================
   羽泽之家官网 —— 全站样式表
   ==========================================================================
   配色完全按公司 logo 取色（从 logo 定稿图采样得到）：
     --navy        #163561   品牌主色（logo 深蓝底）
     --navy-deep   #0E2244   更深的蓝（页脚、深色区块）
     --navy-soft   #1A4A72   次级蓝（渐变、卡片）
     --accent      #2E8BC0   点缀冷蓝（按钮悬停、强调）
     --light-blue  #E1EEF6   浅蓝（logo 头像光晕色，用于浅底区块）
     --silver      #C9D3DE   银灰（logo 银色弧带色）
     --bg          #FAFAF8   纸白底色（logo 图片背景色）

   结构分区：
     1. 变量与基础重置   2. 通用组件（按钮/卡片/标签/表单）
     3. 页头与导航       4. 页脚
     5. 首页各区块       6. 列表 / 详情 / 表格
     7. 账户中心与后台   8. 提示与弹窗   9. 响应式（手机端适配）
   ========================================================================== */

/* ===================== 1. 变量与基础重置 ===================== */
:root {
  --navy: #163561;
  --navy-deep: #0E2244;
  --navy-soft: #1A4A72;
  --accent: #2E8BC0;
  --accent-light: #5CC7F5;
  --light-blue: #E1EEF6;
  --silver: #C9D3DE;

  --bg: #FAFAF8;
  --white: #fff;
  --text: #1C2530;
  --text-2: #5A6675;
  --text-3: #8A94A3;
  --line: #E6E9EE;

  --radius: 14px;
  --radius-sm: 8px;
  --shadow: 0 6px 24px rgba(22, 53, 97, .08);
  --shadow-lg: 0 16px 48px rgba(22, 53, 97, .14);
  --container: 1240px;
  --header-h: 76px;

  --font: "Microsoft YaHei", "PingFang SC", "Hiragino Sans GB", "Source Han Sans SC",
          "Noto Sans SC", "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }

html, body {
  margin: 0; padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  scroll-behavior: smooth;
  /* 防止个别长内容把整页撑宽（移动端常见问题）；用 clip 不影响 sticky 页头 */
  max-width: 100%;
  overflow-x: clip;
}

h1, h2, h3, h4, h5 { margin: 0 0 .6em; font-weight: 700; line-height: 1.35; color: var(--navy); }
h1 { font-size: 34px; letter-spacing: .5px; }
h2 { font-size: 27px; }
h3 { font-size: 19px; }
p { margin: 0 0 1em; }
a { color: var(--navy); text-decoration: none; transition: color .2s; }
a:hover { color: var(--accent); }
img { max-width: 100%; display: block; }
ul { margin: 0; padding-left: 1.2em; }
button { font-family: inherit; cursor: pointer; }
input, textarea, select { font-family: inherit; font-size: 15px; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.hidden { display: none !important; }
.text-center { text-align: center; }
.muted { color: var(--text-2); }
.small { font-size: 13px; }

/* 通用滚动淡入动画
   设计原则：内容默认可见（.reveal 本身不隐藏），只有"首屏之外、且浏览器支持动画"的
   元素才由 JS 加上 .pre 临时隐藏，进入视口后移除 → 保证任何情况下内容都不会丢。 */
.reveal { transition: opacity .55s ease, transform .55s ease; }
.reveal.pre { opacity: 0; transform: translateY(18px); }
.reveal.pre.in-view { opacity: 1; transform: none; }

/* ===================== 2. 通用组件 ===================== */
/* ---- 按钮 ---- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 26px; border-radius: 999px; border: 1px solid transparent;
  background: var(--navy); color: #fff; font-size: 15px; font-weight: 600;
  transition: all .22s; white-space: nowrap;
}
.btn:hover { background: var(--navy-soft); color: #fff; transform: translateY(-1px); box-shadow: var(--shadow); }
.btn-outline { background: transparent; border-color: var(--navy); color: var(--navy); }
.btn-outline:hover { background: var(--navy); color: #fff; }
.btn-light { background: #fff; color: var(--navy); }
.btn-light:hover { background: var(--light-blue); color: var(--navy); }
.btn-ghost { background: transparent; color: var(--navy); border-color: var(--line); }
.btn-ghost:hover { background: var(--light-blue); border-color: var(--light-blue); }
.btn-accent { background: var(--accent); }
.btn-accent:hover { background: var(--accent-light); color: var(--navy); }
.btn-sm { padding: 8px 16px; font-size: 13.5px; }
.btn-lg { padding: 15px 36px; font-size: 16.5px; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .55; cursor: not-allowed; transform: none; }
.btn-danger { background: #C0392B; }
.btn-danger:hover { background: #D64534; }

/* ---- 卡片 ---- */
.card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px; transition: box-shadow .25s, transform .25s, border-color .25s;
}
.card:hover { box-shadow: var(--shadow); border-color: #DCE2EA; }
.card-flat:hover { transform: none; box-shadow: none; }

/* ---- 图片占位块（后台上传图片后自动替换） ---- */
.img-block {
  position: relative; width: 100%; background: var(--navy);
  border-radius: var(--radius-sm); overflow: hidden;
  display: flex; align-items: center; justify-content: center;
}
.img-block > img { width: 100%; height: 100%; object-fit: cover; }
.img-block .ph-label {
  color: rgba(255,255,255,.92); font-weight: 600; letter-spacing: 1px;
  font-size: 15px; text-align: center; padding: 12px; line-height: 1.6;
}
.img-block .ph-label small { display: block; opacity: .7; font-weight: 400; margin-top: 4px; letter-spacing: 0; }
.img-block::after {   /* 占位块的斜向纹理，避免显得空 */
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(115deg, rgba(255,255,255,.10) 0%, rgba(255,255,255,0) 42%);
}
.img-block.has-image::after { display: none; }

/* ---- 标签 ---- */
.tag {
  display: inline-block; padding: 3px 12px; border-radius: 999px; font-size: 12.5px;
  background: var(--light-blue); color: var(--navy); margin: 0 6px 6px 0;
}
.tag-role { background: var(--navy); color: #fff; }
.tag-pending { background: #FFF3D6; color: #8A6100; }
.tag-ok { background: #E3F6E9; color: #1D7A3E; }
.tag-off { background: #F1F2F4; color: var(--text-3); }

/* ---- 区块标题 ---- */
.section { padding: 76px 0; }
.section-alt { background: var(--white); }
.section-tint { background: var(--light-blue); }
.section-navy { background: var(--navy); color: #fff; }
.section-navy h1, .section-navy h2, .section-navy h3 { color: #fff; }

.section-head { text-align: center; max-width: 820px; margin: 0 auto 46px; }
.section-head .eyebrow {
  display: inline-block; font-size: 12.5px; letter-spacing: 3px; color: var(--accent);
  font-weight: 700; text-transform: uppercase; margin-bottom: 10px;
}
.section-head h2 { position: relative; padding-bottom: 16px; }
.section-head h2::after {
  content: ''; position: absolute; left: 50%; bottom: 0; transform: translateX(-50%);
  width: 48px; height: 3px; border-radius: 2px; background: var(--navy);
}
.section-head p { color: var(--text-2); font-size: 15.5px; }
.section-navy .section-head p { color: rgba(255,255,255,.76); }
.section-navy .section-head h2::after { background: var(--accent-light); }

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

/* ---- 表单 ---- */
.form-row { margin-bottom: 16px; }
.form-row label { display: block; font-size: 13.5px; font-weight: 600; color: var(--text-2); margin-bottom: 6px; }
.form-row .hint { font-size: 12px; color: var(--text-3); margin-top: 4px; }
.input, .textarea, .select {
  width: 100%; padding: 11px 14px; border: 1px solid var(--line); border-radius: var(--radius-sm);
  background: #fff; color: var(--text); transition: border-color .2s, box-shadow .2s;
}
.input:focus, .textarea:focus, .select:focus {
  outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(46,139,192,.12);
}
.textarea { min-height: 110px; resize: vertical; line-height: 1.7; }
.textarea-sm { min-height: 74px; }
.form-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 18px; }
.form-actions { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; margin-top: 8px; }
.required::after { content: ' *'; color: #C0392B; }

/* ===================== 3. 页头与导航 ===================== */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.96); backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); gap: 20px; }
.brand { display: flex; align-items: center; }
.brand-logo { height: 44px; width: auto; }
/* 导航：标签一律不许折行（之前没设 nowrap，项一多就被挤成"公司介/绍"两行，很难看）
   间距从 26px 收到 18px，为新增的「咨询服务」腾出位置，实测 9 项单行排得下 */
.main-nav { display: flex; gap: 18px; }
.main-nav a { font-size: 15.5px; font-weight: 600; color: var(--text); position: relative; padding: 6px 0; white-space: nowrap; }
.main-nav a::after {
  content: ''; position: absolute; left: 0; right: 100%; bottom: 0; height: 2px;
  background: var(--navy); transition: right .25s; border-radius: 2px;
}
.main-nav a:hover::after, .main-nav a.active::after { right: 0; }
.main-nav a.active { color: var(--navy); }
.nav-account-mobile { display: none; }

.header-right { display: flex; align-items: center; gap: 14px; }
.header-phone { text-align: right; line-height: 1.25; }
.header-phone-label { display: block; font-size: 11.5px; color: var(--text-3); letter-spacing: .5px; }
.header-phone strong { font-size: 16px; color: var(--navy); letter-spacing: .5px; }
.header-phone:hover strong { color: var(--accent); }
.nav-toggle { display: none; width: 42px; height: 38px; border: 1px solid var(--line); background: #fff; border-radius: var(--radius-sm); flex-direction: column; align-items: center; justify-content: center; gap: 4px; }
.nav-toggle span { display: block; width: 18px; height: 2px; background: var(--navy); transition: .25s; }

/* 公告条 */
.notice-bar { background: var(--navy); color: #fff; font-size: 13.5px; overflow: hidden; }
.notice-inner { display: flex; align-items: center; gap: 12px; height: 38px; }
.notice-icon { flex: 0 0 auto; background: var(--accent); color: #fff; font-size: 11.5px; padding: 2px 9px; border-radius: 4px; letter-spacing: 1px; }
.notice-track { overflow: hidden; white-space: nowrap; flex: 1; }
.notice-track > span { display: inline-block; padding-left: 100%; animation: noticeScroll 26s linear infinite; }
@keyframes noticeScroll { 0% { transform: translateX(0); } 100% { transform: translateX(-100%); } }

/* ===================== 4. 页脚 ===================== */
.site-footer { background: var(--navy-deep); color: rgba(255,255,255,.78); margin-top: 0; }
.footer-inner { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.25fr; gap: 36px; padding: 56px 24px 40px; }
/* 页脚 logo：用「显示尺寸 2 倍」的素材（108px 高），避免大图缩到小尺寸后笔画发虚 */
.footer-logo { height: 54px; width: auto; margin-bottom: 16px; }
.footer-slogan { color: #DCE5F0; font-size: 14px; letter-spacing: 2px; margin-bottom: 10px; }
.footer-desc { font-size: 14px; line-height: 1.85; color: rgba(255,255,255,.82); }
.footer-col h4 { color: #fff; font-size: 15.5px; margin-bottom: 16px; position: relative; padding-bottom: 10px; }
.footer-col h4::after { content: ''; position: absolute; left: 0; bottom: 0; width: 26px; height: 2px; background: var(--accent); }
.footer-col a { display: block; color: rgba(255,255,255,.88); font-size: 14.5px; padding: 5px 0; }
.footer-col a:hover { color: #fff; padding-left: 4px; }
/* 联系方式行：标签列要放得下「业务负责人」四个字且不许折行
   （之前 62px + 不设 nowrap，"业务负责人"被折成"业务负责/人"两行，客户一眼就看到了） */
.footer-contact { display: flex; gap: 10px; font-size: 13.5px; margin-bottom: 9px; align-items: baseline; }
.footer-contact span { flex: 0 0 74px; color: rgba(255,255,255,.62); white-space: nowrap; }
/* 电话不做特殊字体/字号/颜色 —— 与其它行完全一致（客户明确要求） */
.footer-contact a,
.footer-contact a em,
.footer-contact em { font-style: normal; color: rgba(255,255,255,.78); }
.footer-contact a:hover em { color: #fff; }
.footer-note { font-size: 13px; color: rgba(255,255,255,.62); border-left: 2px solid var(--accent); padding-left: 10px; margin-top: 14px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); font-size: 13px; }
.footer-bottom-inner { display: flex; justify-content: space-between; align-items: center; padding: 16px 24px; color: rgba(255,255,255,.68); flex-wrap: wrap; gap: 8px; }

/* 浮动按钮 */
.float-actions { position: fixed; right: 20px; bottom: 26px; display: flex; flex-direction: column; gap: 10px; z-index: 90; }
.float-btn {
  width: 52px; height: 52px; border-radius: 50%; background: #fff; color: var(--navy);
  display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 700;
  box-shadow: var(--shadow); border: 1px solid var(--line);
}
.float-btn:hover { background: var(--light-blue); color: var(--navy); }
.float-btn-primary { background: var(--navy); color: #fff; border-color: var(--navy); }
.float-btn-primary:hover { background: var(--accent); color: #fff; }
.float-btn-top { font-size: 12px; opacity: 0; pointer-events: none; }
.float-btn-top.show { opacity: 1; pointer-events: auto; }

/* ===================== 5. 首页 ===================== */
/* 轮播 */
.hero { position: relative; height: 560px; overflow: hidden; background: var(--navy); }
.hero-slide { position: absolute; inset: 0; opacity: 0; transition: opacity .8s ease; display: flex; align-items: center; }
.hero-slide.active { opacity: 1; }
.hero-bg { position: absolute; inset: 0; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; }
.hero-bg::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(14,34,68,.86) 0%, rgba(14,34,68,.55) 55%, rgba(14,34,68,.30) 100%); }
/* 还没有上传轮播图时：给纯色块加一层品牌感的银蓝光效（和 logo 的银色弧带呼应），避免显得空 */
.hero-bg.ph {
  background-image:
    radial-gradient(ellipse 60% 90% at 82% 22%, rgba(143,211,244,.22), rgba(143,211,244,0) 62%),
    linear-gradient(112deg, rgba(255,255,255,0) 40%, rgba(255,255,255,.10) 50%, rgba(255,255,255,0) 60%),
    linear-gradient(160deg, rgba(255,255,255,.05), rgba(0,0,0,.12));
}
.hero-content { position: relative; z-index: 2; color: #fff; max-width: 720px; }
.hero-content h1 { font-size: 44px; color: #fff; margin-bottom: 18px; letter-spacing: 1px; }
.hero-content p { font-size: 17.5px; color: rgba(255,255,255,.86); margin-bottom: 30px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-dots { position: absolute; left: 0; right: 0; bottom: 26px; display: flex; justify-content: center; gap: 10px; z-index: 3; }
.hero-dot { width: 30px; height: 4px; border-radius: 3px; background: rgba(255,255,255,.35); border: none; padding: 0; transition: .25s; }
.hero-dot.active { background: #fff; width: 46px; }
.hero-arrow {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 3; width: 46px; height: 46px;
  border-radius: 50%; background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.34);
  color: #fff; font-size: 20px; line-height: 1;
}
.hero-arrow:hover { background: rgba(255,255,255,.28); }
.hero-arrow.prev { left: 24px; }
.hero-arrow.next { right: 24px; }

/* 优势卡 */
.adv-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 30px 26px; position: relative; overflow: hidden; transition: .25s; }
.adv-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.adv-card .adv-no { font-size: 34px; font-weight: 800; color: var(--light-blue); line-height: 1; margin-bottom: 12px; }
.adv-card h3 { font-size: 18px; margin-bottom: 10px; }
.adv-card p { font-size: 14px; color: var(--text-2); margin: 0; }
.adv-card::before { content: ''; position: absolute; left: 0; top: 0; width: 3px; height: 100%; background: var(--navy); transform: scaleY(0); transform-origin: top; transition: .3s; }
.adv-card:hover::before { transform: scaleY(1); }

/* 数字看板 */
.stats-row { display: grid; grid-template-columns: repeat(4, 1fr); background: var(--navy); border-radius: var(--radius); overflow: hidden; }
.stat-item { padding: 34px 20px; text-align: center; color: #fff; border-right: 1px solid rgba(255,255,255,.12); }
.stat-item:last-child { border-right: none; }
.stat-value { font-size: 40px; font-weight: 800; letter-spacing: 1px; line-height: 1; }
.stat-value small { font-size: 17px; font-weight: 600; margin-left: 3px; }
.stat-label { font-size: 13.5px; color: rgba(255,255,255,.72); margin-top: 10px; letter-spacing: 1px; }

/* 产品卡 */
.product-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; transition: .25s; }
.product-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.product-card .pc-img { height: 196px; }
.product-card .pc-body { padding: 20px 22px 22px; display: flex; flex-direction: column; flex: 1; }
.product-card h3 { font-size: 17.5px; margin-bottom: 8px; }
.product-card .pc-model { font-size: 12.5px; color: var(--text-3); letter-spacing: .5px; margin-bottom: 10px; }
.product-card .pc-summary { font-size: 13.5px; color: var(--text-2); flex: 1; margin-bottom: 14px; }
.product-card .pc-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.pc-price { font-size: 13px; color: var(--navy); background: var(--light-blue); padding: 5px 10px; border-radius: 6px; }
.pc-locked { font-size: 12.5px; color: var(--text-3); }

/* 工艺流程（首页横向） */
.flow-strip { display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; }
.flow-step { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 20px 16px; text-align: center; position: relative; }
.flow-step .fs-no { width: 34px; height: 34px; margin: 0 auto 12px; border-radius: 50%; background: var(--navy); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 14px; }
.flow-step h4 { font-size: 14.5px; margin-bottom: 6px; }
.flow-step p { font-size: 12.5px; color: var(--text-3); margin: 0; }

/* 工厂图 */
.facility-card { position: relative; border-radius: var(--radius); overflow: hidden; }
.facility-card .fc-img { height: 220px; }
.facility-card .fc-info { position: absolute; left: 0; right: 0; bottom: 0; padding: 18px 20px; background: linear-gradient(transparent, rgba(14,34,68,.88)); color: #fff; }
.facility-card .fc-info h4 { color: #fff; font-size: 16px; margin-bottom: 2px; }
.facility-card .fc-info p { margin: 0; font-size: 12.5px; color: rgba(255,255,255,.75); }

/* CTA 条 */
.cta-bar { background: linear-gradient(120deg, var(--navy-deep), var(--navy-soft)); border-radius: var(--radius); padding: 40px 44px; display: flex; align-items: center; justify-content: space-between; gap: 28px; flex-wrap: wrap; color: #fff; }
.cta-bar h3 { color: #fff; font-size: 24px; margin-bottom: 8px; }
.cta-bar p { margin: 0; color: rgba(255,255,255,.78); font-size: 14.5px; }
.cta-phone { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
.cta-phone .cta-label { font-size: 12.5px; color: rgba(255,255,255,.6); letter-spacing: 1px; }
.cta-phone .cta-num { font-size: 32px; font-weight: 800; letter-spacing: 2px; color: #fff; }

/* ===================== 6. 列表 / 详情 / 表格 ===================== */
.page-hero { background: linear-gradient(120deg, var(--navy) 0%, var(--navy-soft) 100%); color: #fff; padding: 62px 0 54px; }
.page-hero h1 { color: #fff; font-size: 32px; margin-bottom: 10px; }
.page-hero p { color: rgba(255,255,255,.8); margin: 0; max-width: 760px; }
.breadcrumb { font-size: 13px; color: rgba(255,255,255,.62); margin-bottom: 14px; }
.breadcrumb a { color: rgba(255,255,255,.8); }

/* 筛选栏 */
.filter-bar { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; margin-bottom: 26px; }
.filter-tabs { display: flex; gap: 8px; flex-wrap: wrap; flex: 1; }
.filter-tab { padding: 9px 20px; border-radius: 999px; border: 1px solid var(--line); background: #fff; color: var(--text-2); font-size: 14px; font-weight: 600; }
.filter-tab:hover { border-color: var(--navy); color: var(--navy); }
.filter-tab.active { background: var(--navy); border-color: var(--navy); color: #fff; }
.search-box { display: flex; gap: 8px; }
.search-box .input { width: 240px; }

/* 分页 */
.pagination { display: flex; gap: 8px; justify-content: center; margin-top: 38px; flex-wrap: wrap; }
.page-btn { min-width: 40px; height: 40px; padding: 0 12px; border-radius: var(--radius-sm); border: 1px solid var(--line); background: #fff; color: var(--text-2); font-weight: 600; }
.page-btn:hover { border-color: var(--navy); color: var(--navy); }
.page-btn.active { background: var(--navy); border-color: var(--navy); color: #fff; }
.page-btn[disabled] { opacity: .45; cursor: not-allowed; }

/* 详情页 */
.detail-layout { display: grid; grid-template-columns: 1.15fr 1fr; gap: 42px; align-items: start; }
.detail-img { height: 400px; }
.spec-table { width: 100%; border-collapse: collapse; margin: 8px 0 0; }
.spec-table tr { border-bottom: 1px solid var(--line); }
.spec-table tr:last-child { border-bottom: none; }
.spec-table th { text-align: left; font-weight: 600; color: var(--text-2); font-size: 14px; padding: 13px 16px 13px 0; width: 34%; vertical-align: top; }
.spec-table td { padding: 13px 0; font-size: 14.5px; color: var(--text); }
.article-body { font-size: 15.5px; line-height: 2; color: #2B3745; }
.article-body p { margin-bottom: 1.15em; }
.article-meta { display: flex; gap: 16px; font-size: 13px; color: var(--text-3); margin-bottom: 20px; flex-wrap: wrap; }

/* 数据表格（后台） */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
table.data-table { width: 100%; border-collapse: collapse; font-size: 14px; min-width: 680px; }
table.data-table th { background: #F7F9FB; text-align: left; padding: 13px 14px; font-weight: 700; color: var(--navy); font-size: 13.5px; white-space: nowrap; border-bottom: 1px solid var(--line); }
table.data-table td { padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: middle; }
table.data-table tr:last-child td { border-bottom: none; }
table.data-table tr:hover td { background: #FBFCFD; }
table.data-table .actions { display: flex; gap: 8px; flex-wrap: wrap; }
.empty-row { text-align: center; color: var(--text-3); padding: 40px 0; }

/* ===================== 7. 账户中心与后台 ===================== */
.auth-wrap { max-width: 460px; margin: 0 auto; }
.auth-tabs { display: flex; gap: 0; margin-bottom: 26px; border-bottom: 1px solid var(--line); }
.auth-tab { flex: 1; padding: 13px; background: none; border: none; border-bottom: 2px solid transparent; font-size: 16px; font-weight: 700; color: var(--text-3); }
.auth-tab.active { color: var(--navy); border-bottom-color: var(--navy); }
.role-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.role-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 24px; }
.role-card.current { border-color: var(--navy); box-shadow: 0 0 0 3px rgba(22,53,97,.08); }
.role-card h3 { font-size: 17px; margin-bottom: 4px; }
.role-card .role-how { font-size: 12.5px; color: var(--text-3); margin-bottom: 14px; }
.role-card ul { padding-left: 0; list-style: none; }
.role-card li { font-size: 13.5px; color: var(--text-2); padding: 5px 0 5px 20px; position: relative; }
.role-card li::before { content: '✓'; position: absolute; left: 0; color: var(--accent); font-weight: 700; }

.dash-layout { display: grid; grid-template-columns: 220px 1fr; gap: 26px; align-items: start; }
.dash-side { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; position: sticky; top: calc(var(--header-h) + 16px); }
.dash-side a { display: block; padding: 11px 14px; border-radius: var(--radius-sm); font-size: 14.5px; font-weight: 600; color: var(--text-2); }
.dash-side a:hover { background: var(--light-blue); color: var(--navy); }
.dash-side a.active { background: var(--navy); color: #fff; }
.dash-side .dash-group { font-size: 11.5px; letter-spacing: 1px; color: var(--text-3); padding: 14px 14px 6px; }
.dash-panel { min-width: 0; }
.panel { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; margin-bottom: 20px; }
.panel-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 18px; flex-wrap: wrap; }
.panel-head h3 { margin: 0; font-size: 18px; }
.panel-head .sub { font-size: 13px; color: var(--text-3); }

.mini-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 22px; }
.mini-stat { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.mini-stat .ms-value { font-size: 28px; font-weight: 800; color: var(--navy); line-height: 1.1; }
.mini-stat .ms-label { font-size: 13px; color: var(--text-3); margin-top: 6px; }
.mini-stat.alert .ms-value { color: #C0392B; }

/* 图片上传控件 */
.upload-box { border: 1.5px dashed var(--silver); border-radius: var(--radius-sm); padding: 18px; text-align: center; background: #FCFDFE; cursor: pointer; transition: .2s; }
.upload-box:hover { border-color: var(--accent); background: var(--light-blue); }
.upload-box .up-tip { font-size: 13px; color: var(--text-3); }
.upload-preview { display: flex; align-items: center; gap: 14px; margin-top: 12px; }
.upload-preview img { width: 84px; height: 84px; object-fit: cover; border-radius: var(--radius-sm); border: 1px solid var(--line); }

/* 重复列表编辑器（后台设置页用） */
.repeat-row { display: grid; gap: 10px; padding: 14px; border: 1px solid var(--line); border-radius: var(--radius-sm); margin-bottom: 12px; background: #FCFDFE; position: relative; }
.repeat-row .rr-del { position: absolute; right: 10px; top: 10px; border: none; background: none; color: var(--text-3); font-size: 18px; line-height: 1; }
.repeat-row .rr-del:hover { color: #C0392B; }
.repeat-row .rr-grid { display: grid; gap: 8px; }
.rr-2 { grid-template-columns: 1fr 1fr; }
.rr-3 { grid-template-columns: 1fr 1fr 1fr; }

/* ===================== 8. 提示与弹窗 ===================== */
.toast-wrap { position: fixed; top: 22px; left: 50%; transform: translateX(-50%); z-index: 999; display: flex; flex-direction: column; gap: 10px; align-items: center; pointer-events: none; }
.toast {
  background: var(--navy); color: #fff; padding: 12px 22px; border-radius: 999px;
  font-size: 14.5px; box-shadow: var(--shadow-lg); opacity: 0; transform: translateY(-12px);
  transition: .28s; max-width: 92vw;
}
.toast.show { opacity: 1; transform: none; }
.toast.error { background: #C0392B; }
.toast.success { background: #1D7A3E; }

.modal-root { position: fixed; inset: 0; z-index: 998; display: none; }
.modal-root.open { display: block; }
.modal-mask { position: absolute; inset: 0; background: rgba(14,34,68,.5); backdrop-filter: blur(2px); }
.modal-box {
  position: relative; background: #fff; border-radius: var(--radius); width: min(760px, 94vw);
  max-height: 88vh; overflow-y: auto; margin: 6vh auto; padding: 30px 32px;
  box-shadow: var(--shadow-lg);
}
.modal-box.modal-sm { width: min(460px, 94vw); }
.modal-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 20px; }
.modal-head h3 { margin: 0; font-size: 20px; }
.modal-close { border: none; background: none; font-size: 26px; line-height: 1; color: var(--text-3); }
.modal-close:hover { color: var(--navy); }

.loading-wrap { display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 90px 0; color: var(--text-3); gap: 14px; }
.spinner { width: 30px; height: 30px; border: 3px solid var(--line); border-top-color: var(--navy); border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.notice-empty { text-align: center; padding: 54px 20px; color: var(--text-3); background: #fff; border: 1px dashed var(--line); border-radius: var(--radius); }

/* ===================== 9. 响应式 ===================== */
@media (max-width: 1100px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .flow-strip { grid-template-columns: repeat(3, 1fr); }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .mini-stats { grid-template-columns: repeat(2, 1fr); }
  .dash-layout { grid-template-columns: 1fr; }
  .dash-side { position: static; display: flex; overflow-x: auto; gap: 6px; }
  .dash-side a { white-space: nowrap; }
  .dash-side .dash-group { display: none; }
  /* 平板宽度：导航项多，收窄间距并让出电话位，避免挤到折行/溢出 */
  .main-nav { gap: 13px; }
  .main-nav a { font-size: 14.5px; }
  .header-phone { display: none; }
}

@media (max-width: 900px) {
  /* 再窄一档：logo 与导航再收一点（861px 以下才切移动端汉堡菜单） */
  .brand-logo { height: 38px; }
  .main-nav { gap: 11px; }
  .main-nav a { font-size: 14px; }
}

@media (max-width: 860px) {
  :root { --header-h: 64px; }
  h1 { font-size: 27px; }
  .section { padding: 52px 0; }
  .grid-3, .grid-2, .grid-4 { grid-template-columns: 1fr; }
  .flow-strip { grid-template-columns: repeat(2, 1fr); }

  /* 移动端页头：只留 logo + 账号入口 + 汉堡菜单，避免把页面撑宽 */
  .header-inner { gap: 10px; }
  .brand-logo { height: 34px; }
  .header-phone { display: none; }
  .header-right { gap: 8px; }
  .header-right .btn-sm { padding: 7px 12px; font-size: 13px; }
  .main-nav {
    position: fixed; left: 0; right: 0; top: var(--header-h); background: #fff;
    flex-direction: column; padding: 14px 24px 22px; gap: 4px; border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow); display: none;
  }
  .main-nav.open { display: flex; }
  .main-nav a { padding: 13px 0; border-bottom: 1px solid var(--line); font-size: 16px; }
  .nav-account-mobile { display: block; }
  .nav-toggle { display: flex; }
  .hero { height: auto; min-height: 420px; padding: 52px 0 60px; }
  .hero-content h1 { font-size: 28px; }
  .hero-content p { font-size: 15px; }
  .hero-actions { gap: 10px; }
  .hero-actions .btn-lg { padding: 12px 20px; font-size: 15px; }
  .hero-arrow { display: none; }
  .stats-row { grid-template-columns: repeat(2, 1fr); }
  .stat-item:nth-child(2) { border-right: none; }
  .stat-item:nth-child(1), .stat-item:nth-child(2) { border-bottom: 1px solid rgba(255,255,255,.12); }
  .detail-layout { grid-template-columns: 1fr; gap: 26px; }
  .form-grid, .rr-2, .rr-3 { grid-template-columns: 1fr; }
  .role-cards { grid-template-columns: 1fr; }
  .cta-bar { padding: 30px 24px; }
  .cta-phone { align-items: flex-start; }
  .cta-phone .cta-num { font-size: 26px; }
  .footer-inner { grid-template-columns: 1fr; gap: 26px; padding: 40px 24px 30px; }
  .filter-tabs { justify-content: flex-start; }
  .search-box { width: 100%; }
  .search-box .input { width: 100%; }
  .float-actions { right: 12px; bottom: 16px; }
  .float-btn { width: 46px; height: 46px; font-size: 12px; }
  .modal-box { padding: 22px 20px; margin: 3vh auto; }
  .mini-stats { grid-template-columns: 1fr 1fr; }
  .addr-text { font-size: 17px; }
  .addr-actions .btn { flex: 1 1 100%; }
}

/* ===================== 10. 一键复制（地址 / 电话 / 邮箱 / 微信号） =====================
   客户点一下就把内容复制走，自己去地图/搜索框里粘贴搜索 —— 不嵌入任何地图组件。 */
.copy-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 34px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--white);
  color: var(--accent);
  font-size: 13.5px;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  transition: .18s;
}
.copy-chip::before { content: "⧉"; font-size: 14px; line-height: 1; }
.copy-chip:hover { border-color: var(--accent); background: var(--light-blue); }
.copy-chip:active { transform: translateY(1px); }

/* 地址块（联系页右侧） */
.addr-box {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px 22px;
}
.addr-label { font-size: 13px; color: var(--text-3); margin-bottom: 8px; letter-spacing: .5px; }
.addr-text {
  font-size: 20px;
  font-weight: 800;
  line-height: 1.5;
  letter-spacing: .3px;
  color: var(--navy);
  margin-bottom: 16px;
  word-break: break-all;
}
.copy-btn-block { width: 100%; }
.copy-btn-block::before { content: "⧉"; margin-right: 8px; font-size: 17px; }
.addr-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.addr-actions .btn { height: 44px; }

/* 页脚地址的复制小按钮 */
.footer-copy {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-left: 8px;
  padding: 1px 9px;
  border: 1px solid rgba(255,255,255,.28);
  border-radius: 999px;
  background: transparent;
  color: rgba(255,255,255,.82);
  font-size: 12px;
  font-family: inherit;
  cursor: pointer;
  vertical-align: middle;
}
.footer-copy:hover { border-color: #fff; color: #fff; }

