/* ============ 川漾网络官网 前台样式 ============ */
:root {
  --navy: #22307a;
  --navy-dark: #16204f;
  --cyan: #2fb9ce;
  --cyan-dark: #1e97a9;
  --text: #2b3445;
  --muted: #69748a;
  --bg: #ffffff;
  --bg-alt: #f4f7fb;
  --line: #e4e9f2;
  --radius: 12px;
  --shadow: 0 6px 24px rgba(34, 48, 122, .08);
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  font-family: "PingFang SC", "Microsoft YaHei", "Segoe UI", sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.7;
  font-size: 15px;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; }
.container { max-width: 1120px; margin: 0 auto; padding: 0 20px; }
.container.narrow { max-width: 860px; }

/* ---------- Header ---------- */
.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; gap: 24px; height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; min-width: 0; }
.brand-logo { width: 40px; height: 40px; border-radius: 8px; flex: none; }
.brand-text { display: flex; flex-direction: column; line-height: 1.25; min-width: 0; }
.brand-name { font-weight: 700; font-size: 18px; color: var(--navy); }
.brand-sub { font-size: 11px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 190px; }
.main-nav { display: flex; gap: 4px; margin-left: auto; }
.main-nav a {
  padding: 8px 14px; border-radius: 8px; font-size: 15px; color: var(--text);
  transition: background .2s, color .2s;
}
.main-nav a:hover { background: var(--bg-alt); color: var(--navy); }
.main-nav a.active { color: var(--cyan-dark); font-weight: 600; }
.header-phone { text-align: right; line-height: 1.3; flex: none; }
.phone-label { display: block; font-size: 11px; color: var(--muted); }
.phone-num { font-weight: 700; color: var(--navy); font-size: 16px; }
.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 8px; margin-left: 4px; }
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--navy); margin: 5px 0; border-radius: 2px; transition: .25s; }
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  background: linear-gradient(135deg, var(--navy-dark) 0%, var(--navy) 55%, #2a4a8f 100%);
  color: #fff; padding: 92px 0 88px; position: relative; overflow: hidden;
}
.hero::after {
  content: ""; position: absolute; right: -140px; top: -140px;
  width: 420px; height: 420px; border-radius: 50%;
  background: radial-gradient(circle, rgba(47,185,206,.35), transparent 65%);
}
.hero-inner { position: relative; z-index: 1; }
.hero h1 { font-size: 38px; line-height: 1.3; letter-spacing: 1px; }
.hero-sub { margin-top: 16px; font-size: 16px; color: rgba(255,255,255,.82); max-width: 640px; }
.hero-actions { margin-top: 30px; display: flex; gap: 14px; flex-wrap: wrap; }
.hero-tags { margin-top: 34px; display: flex; gap: 10px; flex-wrap: wrap; }
.hero-tags span {
  border: 1px solid rgba(255,255,255,.28); border-radius: 999px;
  padding: 5px 14px; font-size: 13px; color: rgba(255,255,255,.85);
}

/* ---------- 按钮 ---------- */
.btn {
  display: inline-block; padding: 11px 26px; border-radius: 8px;
  font-size: 15px; cursor: pointer; border: 1px solid transparent; transition: .2s;
}
.btn-primary { background: var(--cyan); color: #fff; }
.btn-primary:hover { background: var(--cyan-dark); }
.btn-ghost { border-color: rgba(255,255,255,.5); color: #fff; }
.btn-ghost:hover { background: rgba(255,255,255,.12); }
.btn-light { background: #fff; color: var(--navy); font-weight: 600; }
.btn-light:hover { background: #eef4ff; }
.btn-outline { border-color: var(--navy); color: var(--navy); }
.btn-outline:hover { background: var(--navy); color: #fff; }
.btn-block { width: 100%; }

/* ---------- Section ---------- */
.section { padding: 72px 0; }
.section-alt { background: var(--bg-alt); }
.section-head { text-align: center; margin-bottom: 44px; }
.section-head h2 { font-size: 28px; color: var(--navy); }
.section-head p { color: var(--muted); margin-top: 8px; font-size: 15px; }
.section-head.with-link { display: flex; justify-content: space-between; align-items: flex-end; text-align: left; }
.section-more { color: var(--cyan-dark); font-size: 14px; white-space: nowrap; padding-bottom: 4px; }
.breadcrumb { margin-top: 8px; font-size: 13px; color: rgba(255,255,255,.75); }
.breadcrumb a { color: rgba(255,255,255,.75); }
.breadcrumb a:hover { color: #fff; }
.page-hero {
  background: linear-gradient(120deg, var(--navy-dark), var(--navy));
  color: #fff; padding: 52px 0;
}
.page-hero h1 { font-size: 28px; }
.page-tip {
  background: #fff8ec; border: 1px solid #f2ddb4; color: #8a6116;
  padding: 12px 16px; border-radius: 8px; font-size: 13px; margin-bottom: 28px;
}
.empty-tip { color: var(--muted); }

/* ---------- 首页业务板块 ---------- */
.cat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.cat-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px 24px; display: flex; flex-direction: column; transition: .25s; position: relative;
}
.cat-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: transparent; }
.cat-head { display: flex; align-items: center; gap: 12px; }
.cat-icon {
  width: 46px; height: 46px; border-radius: 10px; flex: none;
  background: linear-gradient(135deg, var(--navy), var(--cyan));
  display: flex; align-items: center; justify-content: center; color: #fff;
}
.cat-icon .icon { width: 24px; height: 24px; }
.cat-head h3 { font-size: 18px; color: var(--navy); }
.cat-desc { color: var(--muted); font-size: 14px; margin-top: 14px; }
.cat-items { list-style: none; margin-top: 14px; flex: 1; }
.cat-items li {
  font-size: 14px; padding: 7px 0 7px 16px; position: relative;
  border-bottom: 1px dashed var(--line); color: var(--text);
}
.cat-items li::before { content: ""; position: absolute; left: 2px; top: 14px; width: 6px; height: 6px; border-radius: 50%; background: var(--cyan); }
.cat-more { margin-top: 16px; color: var(--cyan-dark); font-size: 14px; font-weight: 600; }

/* ---------- 优势 ---------- */
.adv-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.adv-item { background: #fff; border-radius: var(--radius); padding: 26px 22px; border: 1px solid var(--line); }
.adv-num { font-size: 26px; font-weight: 800; color: var(--cyan); opacity: .9; }
.adv-item h3 { font-size: 17px; color: var(--navy); margin: 10px 0 8px; }
.adv-item p { font-size: 14px; color: var(--muted); }

/* ---------- 案例 ---------- */
.case-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.case-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px 24px; display: flex; flex-direction: column; transition: .25s;
}
.case-card:hover { box-shadow: var(--shadow); transform: translateY(-3px); border-color: transparent; }
.section-alt .case-card, .section-alt .news-card { background: var(--bg); }
.case-tag {
  align-self: flex-start; background: rgba(47,185,206,.12); color: var(--cyan-dark);
  font-size: 12px; padding: 3px 10px; border-radius: 999px; margin-bottom: 12px;
}
.case-card h3 { font-size: 17px; color: var(--navy); }
.case-card p { color: var(--muted); font-size: 14px; margin-top: 10px; flex: 1; }
.case-more { margin-top: 14px; color: var(--cyan-dark); font-size: 14px; }

/* ---------- 新闻 ---------- */
.news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.news-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px; display: flex; flex-direction: column; transition: .25s;
}
.news-card:hover { box-shadow: var(--shadow); transform: translateY(-3px); border-color: transparent; }
.news-card time { font-size: 12px; color: var(--cyan-dark); }
.news-card h3 { font-size: 16px; color: var(--navy); margin: 10px 0 8px; line-height: 1.5; }
.news-card p { font-size: 13px; color: var(--muted); }

.news-list { display: flex; flex-direction: column; gap: 16px; }
.news-row {
  display: flex; gap: 20px; background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius); padding: 22px 24px; transition: .25s;
}
.news-row:hover { box-shadow: var(--shadow); border-color: transparent; }
.news-row time { flex: none; color: var(--muted); font-size: 13px; padding-top: 3px; }
.news-row h3 { font-size: 17px; color: var(--navy); }
.news-row p { font-size: 14px; color: var(--muted); margin-top: 6px; }

/* 置顶徽标 */
.pin-badge {
  display: inline-block; background: #ff6b35; color: #fff; font-size: 11px;
  padding: 1px 8px; border-radius: 4px; margin-right: 8px; vertical-align: 2px;
  font-weight: 600;
}

/* 上一篇 / 下一篇 */
.article-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 24px; }
.article-nav-item {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 14px 18px; display: flex; flex-direction: column; gap: 6px; transition: .2s;
}
.article-nav-item:hover:not(.disabled) { border-color: var(--cyan); box-shadow: var(--shadow); }
.article-nav-item.next { text-align: right; }
.article-nav-item.disabled { opacity: .45; cursor: default; }
.nav-label { font-size: 12px; color: var(--cyan-dark); }
.nav-title {
  font-size: 14px; color: var(--navy); font-weight: 600;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}

/* ---------- 服务详情页 ---------- */
.subcat-block { margin-bottom: 44px; }
.subcat-block:last-of-type { margin-bottom: 24px; }
.subcat-title {
  font-size: 20px; color: var(--navy); margin-bottom: 18px;
  padding-left: 14px; border-left: 4px solid var(--cyan);
}
.svc-list { display: flex; flex-direction: column; gap: 20px; }
.svc-item {
  display: flex; gap: 20px; background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius); padding: 26px;
}
.svc-icon {
  width: 52px; height: 52px; border-radius: 12px; flex: none;
  background: linear-gradient(135deg, var(--navy), var(--cyan));
  display: flex; align-items: center; justify-content: center; color: #fff;
}
.svc-icon .icon { width: 26px; height: 26px; }
.svc-body h3 { font-size: 18px; color: var(--navy); }
.svc-summary { color: var(--cyan-dark); font-size: 14px; margin-top: 6px; font-weight: 600; }
.svc-detail { margin-top: 10px; color: var(--muted); font-size: 14px; }
.svc-detail p + p { margin-top: 8px; }
.svc-compliance {
  margin-top: 30px; background: #f6f8fc; border: 1px solid var(--line);
  border-radius: var(--radius); padding: 16px 20px; font-size: 13px; color: var(--muted);
}

/* ---------- 文章详情 ---------- */
.article { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 34px 36px; }
.article-meta { color: var(--muted); font-size: 13px; }
.lead { margin-top: 14px; color: var(--navy); font-weight: 600; }
.article-body { margin-top: 18px; font-size: 15px; }
.article-body p + p { margin-top: 12px; }
.back-link { margin-top: 24px; }

/* ---------- 关于我们 ---------- */
.about-values { margin-top: 28px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.value-item { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.value-item h3 { color: var(--navy); font-size: 16px; }
.value-item p { color: var(--muted); font-size: 14px; margin-top: 8px; }

/* ---------- 联系我们 ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.4fr; gap: 36px; align-items: start; }
.contact-info, .contact-form-wrap { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 30px; }
.contact-info h2, .contact-form-wrap h2 { font-size: 20px; color: var(--navy); margin-bottom: 20px; }
.contact-row { padding: 12px 0; border-bottom: 1px dashed var(--line); }
.contact-row:last-child { border-bottom: 0; }
.contact-row strong { font-size: 13px; color: var(--muted); display: block; }
.contact-row p { margin-top: 4px; color: var(--text); }
.form-success {
  background: #e9f9ef; border: 1px solid #bfe8cd; color: #1c7a3d;
  padding: 12px 16px; border-radius: 8px; font-size: 14px; margin-bottom: 18px;
}
.form-row { margin-bottom: 16px; }
.form-row label { display: block; font-size: 14px; margin-bottom: 6px; }
.form-row em { color: #d33; font-style: normal; }
.form-row input, .form-row textarea {
  width: 100%; border: 1px solid var(--line); border-radius: 8px;
  padding: 10px 12px; font-size: 14px; font-family: inherit; outline: none; transition: border .2s;
}
.form-row input:focus, .form-row textarea:focus { border-color: var(--cyan); }
.form-privacy { font-size: 12px; color: var(--muted); margin-top: 12px; }

/* ---------- CTA ---------- */
.cta-band { background: linear-gradient(120deg, var(--navy), #2a4a8f); color: #fff; padding: 46px 0; }
.cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.cta-inner h2 { font-size: 22px; }
.cta-inner p { color: rgba(255,255,255,.8); margin-top: 6px; font-size: 14px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-dark); color: rgba(255,255,255,.75); margin-top: 0; }
.footer-grid {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.3fr; gap: 30px; padding: 52px 20px 34px;
}
.footer-brand { display: flex; align-items: center; gap: 10px; color: #fff; }
.footer-logo { width: 34px; height: 34px; border-radius: 7px; }
.footer-slogan { margin-top: 12px; font-size: 13px; }
.footer-col h4 { color: #fff; font-size: 15px; margin-bottom: 14px; }
.footer-col a, .footer-col p { display: block; font-size: 13px; padding: 4px 0; color: rgba(255,255,255,.68); }
.footer-col a:hover { color: var(--cyan); }
.footer-note { border-top: 1px solid rgba(255,255,255,.12); padding-top: 18px; padding-bottom: 22px; font-size: 12px; color: rgba(255,255,255,.5); }
.footer-note p + p { margin-top: 6px; }

/* ---------- 404 ---------- */
.notfound h1 { font-size: 72px; color: var(--navy); }
.notfound p { margin: 12px 0 24px; color: var(--muted); }

/* ---------- 移动端 ---------- */
@media (max-width: 900px) {
  .adv-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
  .news-grid { grid-template-columns: 1fr; }
  .header-phone { display: none; }
  .cat-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
  .main-nav {
    display: none; position: absolute; top: 68px; left: 0; right: 0;
    background: #fff; flex-direction: column; padding: 10px 16px 16px;
    border-bottom: 1px solid var(--line); box-shadow: 0 12px 24px rgba(0,0,0,.06);
  }
  .main-nav.open { display: flex; }
  .main-nav a { padding: 12px 10px; border-radius: 8px; }
  .nav-toggle { display: block; margin-left: auto; }
  .hero { padding: 56px 0; }
  .hero h1 { font-size: 26px; }
  .hero-sub { font-size: 14px; }
  .section { padding: 52px 0; }
  .section-head h2 { font-size: 22px; }
  .section-head.with-link { flex-direction: column; align-items: flex-start; gap: 8px; }
  .case-grid, .adv-grid { grid-template-columns: 1fr; }
  .svc-item { flex-direction: column; padding: 22px 18px; }
  .article { padding: 24px 20px; }
  .cta-inner { flex-direction: column; text-align: center; }
  .page-hero { padding: 38px 0; }
  .page-hero h1 { font-size: 22px; }
  .brand-sub { display: none; }
  .footer-grid { grid-template-columns: 1fr; gap: 22px; }
  .news-row { flex-direction: column; gap: 6px; }
  .article-nav { grid-template-columns: 1fr; }
}
