/* ==========================================================
   天津瑜喜悦科技有限公司 - 全局样式
   ========================================================== */
:root {
  --brand: #12a37a;
  --brand-dark: #0b7d5c;
  --brand-light: #e6f6f0;
  --ink: #1b2733;
  --text: #4a5a69;
  --muted: #8a99a8;
  --line: #e4ebf1;
  --bg: #ffffff;
  --soft: #f6f9fb;
  --radius: 14px;
  --shadow: 0 8px 30px rgba(23, 58, 46, .08);
  --shadow-hover: 0 16px 40px rgba(23, 58, 46, .14);
}

* { 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(--text);
  background: var(--bg);
  line-height: 1.75;
  font-size: 15px;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
ul { list-style: none; }

.container { width: min(1200px, 92%); margin: 0 auto; }

/* ---------- 顶部条 ---------- */
.topbar {
  background: var(--ink);
  color: #c8d4de;
  font-size: 13px;
}
.topbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  min-height: 38px;
  flex-wrap: wrap;
}
.topbar span { display: inline-flex; align-items: center; gap: 6px; }
.topbar a:hover { color: #fff; }

/* ---------- 导航 ---------- */
#siteHeader { position: sticky; top: 0; z-index: 100; }
#siteHeader.compact .topbar { display: none; }
.header {
  background: rgba(255, 255, 255, .96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 72px; }

.logo { display: flex; align-items: center; gap: 10px; }
.logo .mark {
  width: 40px; height: 40px; border-radius: 12px;
  background: linear-gradient(135deg, var(--brand), #4fd1a5);
  color: #fff; font-weight: 700; font-size: 18px;
  display: grid; place-items: center;
  box-shadow: 0 6px 16px rgba(18, 163, 122, .35);
}
.logo .txt strong { display: block; color: var(--ink); font-size: 17px; letter-spacing: .5px; }
.logo .txt em { font-style: normal; font-size: 12px; color: var(--muted); letter-spacing: 2px; }

.menu { display: flex; align-items: center; gap: 4px; }
.menu > li { position: relative; }
.menu a {
  display: block; padding: 10px 14px; border-radius: 10px;
  color: var(--ink); font-size: 15px; transition: .2s;
}
.menu a:hover { color: var(--brand); background: var(--brand-light); }
.menu a.active { color: var(--brand); background: var(--brand-light); font-weight: 600; }

.has-sub > a::after {
  content: ""; display: inline-block; margin-left: 6px;
  border: 4px solid transparent; border-top-color: currentColor;
  transform: translateY(2px);
}
.submenu {
  position: absolute; left: 0; top: 100%; min-width: 200px;
  background: #fff; border: 1px solid var(--line); border-radius: 12px;
  box-shadow: var(--shadow); padding: 8px; opacity: 0; visibility: hidden;
  transform: translateY(8px); transition: .2s;
}
.has-sub:hover .submenu { opacity: 1; visibility: visible; transform: translateY(0); }
.submenu a { font-size: 14px; padding: 9px 12px; }
.submenu a small { display: block; color: var(--muted); font-size: 12px; }

.nav-actions { display: flex; align-items: center; gap: 10px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 10px 20px; border-radius: 10px; border: 1px solid transparent;
  font-size: 14px; cursor: pointer; transition: .2s; font-family: inherit;
}
.btn-primary { background: var(--brand); color: #fff; box-shadow: 0 6px 18px rgba(18, 163, 122, .28); }
.btn-primary:hover { background: var(--brand-dark); transform: translateY(-1px); }
.btn-ghost { border-color: var(--line); color: var(--ink); background: #fff; }
.btn-ghost:hover { border-color: var(--brand); color: var(--brand); }
.btn-block { width: 100%; }
.btn-lg { padding: 14px 28px; font-size: 16px; }

.burger { display: none; width: 42px; height: 42px; border: 1px solid var(--line);
  background: #fff; border-radius: 10px; cursor: pointer; }
.burger i { display: block; width: 18px; height: 2px; background: var(--ink); margin: 4px auto; }

/* ---------- 页面头图 ---------- */
.page-hero {
  background: linear-gradient(135deg, #0b7d5c 0%, #12a37a 55%, #35c39c 100%);
  color: #fff; padding: 66px 0 60px; position: relative; overflow: hidden;
}
.page-hero::after {
  content: ""; position: absolute; right: -80px; top: -80px;
  width: 320px; height: 320px; border-radius: 50%;
  background: rgba(255, 255, 255, .08);
}
.page-hero h1 { font-size: 34px; margin-bottom: 10px; color: #fff; }
.page-hero p { max-width: 720px; opacity: .92; }
.breadcrumb { font-size: 13px; opacity: .85; margin-bottom: 12px; }
.breadcrumb a:hover { text-decoration: underline; }

/* ---------- 通用区块 ---------- */
section { padding: 70px 0; }
.section-soft { background: var(--soft); }
.sec-head { text-align: center; max-width: 720px; margin: 0 auto 44px; }
.sec-head h2 { font-size: 28px; color: var(--ink); margin-bottom: 12px; }
.sec-head p { color: var(--muted); }
.eyebrow {
  display: inline-block; font-size: 13px; color: var(--brand);
  background: var(--brand-light); padding: 4px 12px; border-radius: 20px; margin-bottom: 14px;
}

h1, h2, h3, h4 { color: var(--ink); line-height: 1.4; font-weight: 600; }

/* ---------- 首页 Hero ---------- */
.hero { padding: 80px 0 70px; background: var(--soft); position: relative; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 46px; align-items: center; }
.hero h1 { font-size: 40px; line-height: 1.3; margin: 16px 0 18px; }
.hero h1 span { color: var(--brand); }
.hero p.lead { font-size: 16px; margin-bottom: 26px; }
.hero-btns { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-tags { display: flex; gap: 18px; margin-top: 30px; flex-wrap: wrap; }
.hero-tags div { font-size: 13px; color: var(--muted); }
.hero-tags b { display: block; font-size: 22px; color: var(--brand); }

.hero-visual {
  border-radius: 18px; overflow: hidden; background: #fff;
  border: 1px solid var(--line); box-shadow: var(--shadow);
}
.hero-visual img { display: block; width: 100%; height: 380px; object-fit: cover; }
@media (max-width: 768px) { .hero-visual img { height: 260px; } }

/* ---------- 卡片网格 ---------- */
.grid { display: grid; gap: 22px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px; transition: .25s;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); border-color: #cfe9df; }
.card .ico {
  width: 52px; height: 52px; border-radius: 14px; background: var(--brand-light);
  display: grid; place-items: center; font-size: 24px; margin-bottom: 16px;
}
.card h3 { font-size: 18px; margin-bottom: 10px; }
.card p { font-size: 14px; }
.card ul { margin-top: 14px; }
.card ul li { font-size: 13.5px; padding-left: 18px; position: relative; }
.card ul li::before {
  content: ""; position: absolute; left: 4px; top: 11px;
  width: 6px; height: 6px; border-radius: 50%; background: var(--brand);
}

/* ---------- 信息列表 ---------- */
.filter-bar {
  display: flex; gap: 12px; flex-wrap: wrap; align-items: center;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 16px; margin-bottom: 24px;
}
.filter-bar input, .filter-bar select {
  padding: 10px 14px; border: 1px solid var(--line); border-radius: 10px;
  font-size: 14px; font-family: inherit; color: var(--ink); background: #fff; outline: none;
}
.filter-bar input:focus, .filter-bar select:focus { border-color: var(--brand); }
.filter-bar input { flex: 1; min-width: 200px; }

.info-item {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px 24px; margin-bottom: 16px; display: grid;
  grid-template-columns: 1fr auto; gap: 20px; align-items: center; transition: .2s;
}
.info-item:hover { box-shadow: var(--shadow); border-color: #cfe9df; }
.info-item h3 { font-size: 17px; margin-bottom: 8px; }
.info-item .desc { font-size: 14px; color: var(--muted); margin-bottom: 10px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.meta-row { display: flex; gap: 14px; flex-wrap: wrap; font-size: 13px; color: var(--muted); }
.meta-row b { color: var(--ink); font-weight: 500; }
.tag {
  display: inline-block; font-size: 12px; padding: 3px 10px; border-radius: 20px;
  background: var(--brand-light); color: var(--brand-dark); margin-right: 8px;
}
.tag.gray { background: #eef2f6; color: #6b7b8b; }
.tag.warn { background: #fff4e5; color: #c47b12; }
.info-item .side { text-align: right; }
.info-item .price { font-size: 22px; color: var(--brand); font-weight: 700; }
.info-item .price small { font-size: 13px; font-weight: 400; }
.info-item .side .btn { margin-top: 10px; }

.empty { text-align: center; padding: 60px 20px; color: var(--muted); background: #fff;
  border: 1px dashed var(--line); border-radius: var(--radius); }

/* ---------- 表格 ---------- */
.table-wrap { overflow-x: auto; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
table { width: 100%; border-collapse: collapse; min-width: 640px; }
th, td { padding: 14px 18px; text-align: left; font-size: 14px; border-bottom: 1px solid var(--line); }
th { background: var(--soft); color: var(--ink); font-weight: 600; }
tbody tr:last-child td { border-bottom: 0; }
tbody tr:hover { background: #fbfdfc; }

/* ---------- 流程步骤 ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.step { position: relative; background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius); padding: 24px 20px; }
.step .num { width: 34px; height: 34px; border-radius: 50%; background: var(--brand);
  color: #fff; display: grid; place-items: center; font-weight: 700; margin-bottom: 12px; }
.step h4 { margin-bottom: 6px; }
.step p { font-size: 13.5px; }

/* ---------- 表单 ---------- */
.form-card {
  max-width: 460px; margin: 60px auto; background: #fff; border: 1px solid var(--line);
  border-radius: 18px; padding: 34px; box-shadow: var(--shadow);
}
.form-card h2 { font-size: 24px; margin-bottom: 6px; }
.form-card .sub { color: var(--muted); font-size: 14px; margin-bottom: 24px; }
.field { margin-bottom: 16px; }
.field label { display: block; font-size: 14px; color: var(--ink); margin-bottom: 6px; }
.field label i { color: #e05555; font-style: normal; }
.field input, .field select, .field textarea {
  width: 100%; padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px;
  font-size: 14px; font-family: inherit; color: var(--ink); background: #fff; outline: none; transition: .2s;
}
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(18,163,122,.12); }
.field textarea { min-height: 110px; resize: vertical; }
.field .tip { font-size: 12px; color: var(--muted); margin-top: 6px; }
.field .err { font-size: 12px; color: #e05555; margin-top: 6px; display: none; }
.field.invalid input, .field.invalid select, .field.invalid textarea { border-color: #e05555; }
.field.invalid .err { display: block; }
.form-links { display: flex; justify-content: space-between; font-size: 14px; margin-top: 14px; }
.form-links a { color: var(--brand); }
.form-note { background: var(--brand-light); border-radius: 10px; padding: 12px 14px; font-size: 13px; margin-bottom: 18px; }
.alert { padding: 12px 14px; border-radius: 10px; font-size: 13.5px; margin-bottom: 16px; display: none; }
.alert.show { display: block; }
.alert.ok { background: var(--brand-light); color: var(--brand-dark); }
.alert.err { background: #fdecec; color: #c93b3b; }

/* ---------- 信息详情页 ---------- */
.info-item h3 a:hover { color: var(--brand); }
.detail-head { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 30px 32px; }
.detail-head h1 { font-size: 26px; margin: 12px 0 14px; line-height: 1.45; }
.detail-desc { white-space: pre-wrap; margin-top: 20px; padding-top: 20px; border-top: 1px dashed var(--line); }
.detail-desc h4 { margin: 16px 0 6px; font-size: 16px; }
.spec-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 22px; }
.spec-list div { background: var(--soft); border-radius: 10px; padding: 14px 16px; }
.spec-list span { display: block; font-size: 12px; color: var(--muted); }
.spec-list b { font-size: 15px; color: var(--ink); font-weight: 600; }
.contact-line { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.contact-line .who { width: 44px; height: 44px; border-radius: 50%; background: var(--brand-light);
  color: var(--brand-dark); display: grid; place-items: center; font-weight: 600; flex: none; }
.contact-line b { display: block; color: var(--ink); }
@media (max-width: 768px) {
  .spec-list { grid-template-columns: 1fr 1fr; }
  .detail-head { padding: 22px 20px; }
  .detail-head h1 { font-size: 21px; }
}

/* ---------- 发布页两栏 ---------- */
.split { display: grid; grid-template-columns: 1.6fr 1fr; gap: 26px; align-items: start; }
.form-panel {
  background: #fff; border: 1px solid var(--line); border-radius: 18px;
  padding: 32px; box-shadow: var(--shadow);
}
.form-panel h2 { font-size: 24px; margin-bottom: 6px; }
.form-panel .sub { color: var(--muted); font-size: 14px; margin-bottom: 22px; }
.row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 900px) {
  .split { grid-template-columns: 1fr; }
  .row-2 { grid-template-columns: 1fr; }
}

/* ---------- 内容页 ---------- */
.doc { max-width: 900px; }
.doc h2 { font-size: 22px; margin: 34px 0 12px; padding-left: 12px; border-left: 4px solid var(--brand); }
.doc h3 { font-size: 17px; margin: 22px 0 8px; }
.doc p, .doc li { margin-bottom: 10px; }
.doc ul li { padding-left: 18px; position: relative; }
.doc ul li::before { content: ""; position: absolute; left: 4px; top: 11px; width: 6px; height: 6px;
  border-radius: 50%; background: var(--brand); }
.doc .update { color: var(--muted); font-size: 13px; }

.contact-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.contact-box { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.contact-box h4 { margin-bottom: 8px; }
.contact-box a { color: var(--brand); }

/* ---------- CTA ---------- */
.cta { background: linear-gradient(135deg, #0b7d5c, #12a37a); color: #fff; text-align: center; }
.cta h2 { color: #fff; font-size: 28px; margin-bottom: 12px; }
.cta p { opacity: .9; margin-bottom: 24px; }
.cta .btn-primary { background: #fff; color: var(--brand-dark); box-shadow: none; }
.cta .btn-ghost { background: transparent; border-color: rgba(255,255,255,.6); color: #fff; }
.cta .btn-ghost:hover { background: rgba(255,255,255,.12); color: #fff; border-color: #fff; }

/* ---------- 页脚 ---------- */
.footer { background: var(--ink); color: #a8b7c5; font-size: 14px; padding: 54px 0 0; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 36px; }
.footer h4 { color: #fff; font-size: 16px; margin-bottom: 16px; }
.footer li { margin-bottom: 8px; }
.footer li a:hover { color: #fff; }
.footer .logo .txt strong { color: #fff; }
.footer .logo .txt em { color: #7e8fa0; }
.footer p { font-size: 13.5px; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1); margin-top: 40px; padding: 18px 0;
  display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap; font-size: 13px;
}
.footer-bottom a:hover { color: #fff; text-decoration: underline; }

/* ---------- 提示条 ---------- */
.toast {
  position: fixed; left: 50%; bottom: 40px; transform: translate(-50%, 20px);
  background: var(--ink); color: #fff; padding: 12px 22px; border-radius: 10px;
  font-size: 14px; opacity: 0; pointer-events: none; transition: .25s; z-index: 999;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ---------- 响应式 ---------- */
@media (max-width: 980px) {
  .hero-grid, .grid-3, .grid-2, .grid-4, .steps, .contact-grid, .footer-grid { grid-template-columns: 1fr 1fr; }
  .steps, .grid-4 { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  .menu { display: none; position: absolute; top: 72px; left: 0; right: 0; background: #fff;
    border-bottom: 1px solid var(--line); flex-direction: column; align-items: stretch;
    padding: 12px; box-shadow: var(--shadow); }
  .menu.open { display: flex; }
  .menu .has-sub:hover .submenu, .submenu { position: static; opacity: 1; visibility: visible;
    transform: none; box-shadow: none; border: 0; padding: 0 0 0 10px; display: none; }
  .menu .has-sub.open .submenu { display: block; }
  .burger { display: block; }
  .nav-actions { display: none; }
  .nav-actions.open { display: flex; position: absolute; top: 100%; right: 12px;
    background: #fff; padding: 10px; border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow); }
  .hero h1 { font-size: 29px; }
  .page-hero h1 { font-size: 26px; }
  .hero-grid, .grid-3, .grid-2, .grid-4, .steps, .contact-grid, .footer-grid { grid-template-columns: 1fr; }
  .info-item { grid-template-columns: 1fr; }
  .info-item .side { text-align: left; }
  section { padding: 50px 0; }
  .footer { padding-top: 40px; }
}
