/* ============================================================
   宁波慈溪棉拖鞋厂 · www.cottonshoes.cn
   暖色家居风（米白底 + 陶土橙）。mobile-first，无外部依赖。
   对比度规则：白字压 --brand(#B85E30) 约 4.6:1，按钮可用；
   小号正文压在白/米白底上时用 --brand-700，或直接用 --ink。
   ============================================================ */

:root {
  --brand: #B85E30;
  --brand-600: #A34F26;
  --brand-700: #853C18;
  --brand-050: #FBF1E9;
  --brand-100: #F4DFCD;
  --accent: #E0A16B;
  --ink: #2B1E17;
  --ink-2: #574840;
  --muted: #8A7970;
  --line: #ECE2D8;
  --bg: #FFFFFF;
  --bg-soft: #FAF6F0;
  --dark: #2B1E17;
  --dark-2: #3B2A20;
  --warn: #D9903A;
  --grad: linear-gradient(135deg, #B85E30 0%, #E0A16B 100%);
  --radius: 14px;
  --radius-sm: 9px;
  --shadow: 0 8px 30px rgba(43, 30, 23, .08);
  --shadow-lg: 0 20px 60px rgba(43, 30, 23, .12);
  --maxw: 1200px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue",
          Arial, "Noto Sans", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.75;
  color: var(--ink-2);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 { color: var(--ink); line-height: 1.25; margin: 0 0 .5em; font-weight: 700; }
h1 { font-size: clamp(1.85rem, 4.2vw, 3.1rem); letter-spacing: -.02em; }
h2 { font-size: clamp(1.5rem, 3vw, 2.25rem); letter-spacing: -.015em; }
h3 { font-size: clamp(1.15rem, 2vw, 1.4rem); }
p { margin: 0 0 1em; }
a { color: var(--brand-700); text-decoration: none; transition: color .18s; }
a:hover { color: var(--brand); }
img { max-width: 100%; height: auto; display: block; }
ul, ol { padding-left: 1.35em; }
li { margin-bottom: .4em; }

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }
.muted { color: var(--muted); }
.skip-link {
  position: absolute; left: -9999px; top: 0; background: var(--brand);
  color: #fff; padding: 10px 18px; z-index: 999; border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 4px; }

/* 高亮关键词（filters.highlight 生成，已转义） */
.hl { font-style: normal; color: var(--brand-700); font-weight: 700; }

/* ---------------------------------------------------- 按钮 */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  padding: 13px 28px; border-radius: 60px; border: 1.5px solid transparent;
  font: inherit; font-weight: 600; cursor: pointer; text-align: center;
  transition: transform .16s, box-shadow .16s, background .16s, color .16s;
}
.btn:active { transform: translateY(1px); }
.btn-sm { padding: 9px 20px; font-size: .92rem; }
.btn-lg { padding: 16px 36px; font-size: 1.05rem; }
.btn-primary { background: var(--grad); color: #fff; box-shadow: 0 6px 20px rgba(184,94,48,.28); }
.btn-primary:hover { color: #fff; box-shadow: 0 10px 28px rgba(184,94,48,.38); transform: translateY(-2px); }
.btn-ghost { border-color: var(--line); color: var(--ink); background: #fff; }
.btn-ghost:hover { border-color: var(--brand); color: var(--brand-700); }
.btn-light { background: #fff; color: var(--brand-700); }
.btn-light:hover { color: var(--brand-700); transform: translateY(-2px); }
.btn-outline-light { border-color: rgba(255,255,255,.45); color: #fff; }
.btn-outline-light:hover { border-color: #fff; color: #fff; background: rgba(255,255,255,.1); }

/* ---------------------------------------------------- 头部导航 */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.88);
  backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); }
.brand-mark { display: flex; }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-text strong { font-size: 1.06rem; letter-spacing: -.01em; }
.brand-text small { color: var(--muted); font-size: .74rem; font-weight: 500; }

.nav-menu { display: flex; align-items: center; gap: 26px; }
.nav-menu > a { color: var(--ink-2); font-size: .96rem; font-weight: 500; }
.nav-menu > a:hover, .nav-menu > a.is-active { color: var(--brand-700); }
.nav-menu > a.is-active { font-weight: 700; }
.nav-cta { margin-left: 4px; }
.nav-phone { display: none; }

.nav-toggle {
  display: none; flex-direction: column; gap: 5px; width: 42px; height: 42px;
  align-items: center; justify-content: center; background: none;
  border: 1px solid var(--line); border-radius: 10px; cursor: pointer;
}
.nav-toggle span { display: block; width: 19px; height: 2px; background: var(--ink); border-radius: 2px; transition: .2s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 900px) {
  .nav-toggle { display: flex; }
  .nav-menu {
    position: absolute; top: 68px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: #fff; border-bottom: 1px solid var(--line);
    padding: 8px 20px 20px; box-shadow: var(--shadow);
    display: none;
  }
  .nav-menu.is-open { display: flex; }
  .nav-menu > a { padding: 13px 4px; border-bottom: 1px solid var(--line); font-size: 1.02rem; }
  .nav-cta { margin: 14px 0 6px; }
  .nav-phone { display: block; padding-top: 10px; color: var(--brand-700); font-weight: 700; }
}

/* ---------------------------------------------------- flash */
.flash-wrap { max-width: var(--maxw); margin: 16px auto 0; padding: 0 20px; }
.flash {
  padding: 13px 18px; border-radius: var(--radius-sm); margin-bottom: 10px;
  font-size: .94rem; border-left: 4px solid var(--brand);
  background: var(--brand-050); color: var(--ink);
}
.flash-error { border-left-color: #E5484D; background: #FEF1F1; }
.flash-success { border-left-color: var(--brand); background: var(--brand-050); }

/* ---------------------------------------------------- 通用区块 */
.section { padding: 76px 0; }
.section-soft { background: var(--bg-soft); }
.section-head { max-width: 660px; margin-bottom: 40px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.eyebrow {
  display: inline-block; font-size: .8rem; font-weight: 700; letter-spacing: .1em;
  text-transform: uppercase; color: var(--brand-700);
  background: var(--brand-050); padding: 5px 13px; border-radius: 60px; margin-bottom: 14px;
}
.section-head p { color: var(--muted); font-size: 1.02rem; margin-bottom: 0; }

.grid { display: grid; gap: 22px; }
.grid-2 { grid-template-columns: 1fr; }
.grid-3 { grid-template-columns: 1fr; }
.grid-4 { grid-template-columns: 1fr; }
@media (min-width: 640px) { .grid-2, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px) {
  .grid-2 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .grid-4 { grid-template-columns: repeat(4, 1fr); }
}

.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px; transition: transform .2s, box-shadow .2s, border-color .2s;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: var(--brand-100); }
.card h3 { margin-bottom: .4em; }
.card p:last-child { margin-bottom: 0; }
.card-img { border-radius: var(--radius); overflow: hidden; margin: -28px -28px 20px; aspect-ratio: 16/10; }
.card-img img { width: 100%; height: 100%; object-fit: cover; }
.card-link { font-weight: 600; font-size: .93rem; }

/* ---------------------------------------------------- Hero */
.hero {
  position: relative; overflow: hidden; color: #fff;
  background: radial-gradient(1100px 520px at 78% -8%, rgba(184,94,48,.42), transparent 62%),
              linear-gradient(160deg, var(--dark) 0%, var(--dark-2) 62%, #071810 100%);
  padding: 76px 0 84px;
}
.hero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px);
  background-size: 54px 54px; mask-image: radial-gradient(ellipse at 50% 0%, #000 25%, transparent 78%);
}
.hero-grid { position: relative; z-index: 1; display: grid; gap: 44px; align-items: center; }
@media (min-width: 900px) { .hero-grid { grid-template-columns: 1.08fr .92fr; gap: 56px; } }
.hero h1 { color: #fff; margin-bottom: .42em; }
.hero h1 .hl { color: var(--accent); }
.hero-lead { font-size: clamp(1rem, 1.6vw, 1.14rem); color: rgba(255,255,255,.8); max-width: 34em; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px; margin-bottom: 20px;
  background: rgba(184,94,48,.16); border: 1px solid rgba(184,94,48,.4);
  color: #7FE9B0; font-size: .84rem; font-weight: 600;
  padding: 6px 15px; border-radius: 60px;
}
.hero-badge .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin: 30px 0 22px; }
.hero-meta { display: flex; flex-wrap: wrap; gap: 10px 26px; font-size: .9rem; color: rgba(255,255,255,.62); }
.hero-meta a { color: #fff; font-weight: 600; }
.hero-visual { position: relative; }
.hero-visual img {
  width: 100%; border-radius: 18px; box-shadow: 0 30px 70px rgba(0,0,0,.45);
  border: 1px solid rgba(255,255,255,.1);
}
.hero-float {
  position: absolute; left: -14px; bottom: 24px; background: #fff; color: var(--ink);
  border-radius: 12px; padding: 12px 17px; box-shadow: var(--shadow-lg); font-size: .84rem; line-height: 1.45;
}
.hero-float strong { display: block; color: var(--brand-700); font-size: 1.02rem; }

/* ---------------------------------------------------- 信任条 */
.trustbar { background: var(--bg-soft); border-bottom: 1px solid var(--line); padding: 20px 0; }
.trustbar-inner { display: flex; flex-wrap: wrap; gap: 12px 30px; align-items: center; justify-content: center; }
.trustbar span { font-size: .9rem; color: var(--ink-2); display: inline-flex; align-items: center; gap: 7px; }
.trustbar span::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--brand); }

/* ---------------------------------------------------- 优势 */
.adv-item { display: flex; gap: 18px; align-items: flex-start; }
.adv-num {
  flex: none; width: 44px; height: 44px; border-radius: 12px;
  background: var(--brand-050); color: var(--brand-700);
  display: grid; place-items: center; font-weight: 800; font-size: 1.05rem;
}

/* ---------------------------------------------------- 多端能力 */
.platform-card { text-align: center; }
.platform-card img { border-radius: 12px; aspect-ratio: 4/3; object-fit: cover; width: 100%; margin-bottom: 16px; }
.platform-card h3 { font-size: 1.05rem; margin-bottom: .3em; }
.platform-card p { font-size: .9rem; color: var(--muted); margin: 0; }

/* ---------------------------------------------------- 流程 */
.steps { counter-reset: step; display: grid; gap: 18px; }
@media (min-width: 900px) { .steps { grid-template-columns: repeat(5, 1fr); } }
.step { position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px 20px; }
.step-no {
  width: 34px; height: 34px; border-radius: 50%; background: var(--grad); color: #fff;
  display: grid; place-items: center; font-weight: 800; font-size: .92rem; margin-bottom: 14px;
}
.step h3 { font-size: 1.02rem; margin-bottom: .35em; }
.step p { font-size: .88rem; color: var(--muted); margin: 0; }
.step-free {
  display: inline-block; margin-top: 10px; font-size: .74rem; font-weight: 700;
  color: var(--brand-700); background: var(--brand-050); padding: 3px 10px; border-radius: 60px;
}

/* ---------------------------------------------------- 案例 */
.case-card { display: block; color: inherit; overflow: hidden; padding: 0; }
.case-card:hover { color: inherit; }
.case-card img { aspect-ratio: 16/10; object-fit: cover; width: 100%; }
.case-body { padding: 22px 24px 24px; }
.case-cat {
  display: inline-block; font-size: .74rem; font-weight: 700; letter-spacing: .04em;
  color: var(--brand-700); background: var(--brand-050); padding: 3px 11px; border-radius: 60px; margin-bottom: 10px;
}
.case-body h3 { font-size: 1.08rem; margin-bottom: .35em; }
.case-body p { font-size: .9rem; color: var(--muted); margin: 0; }

/* ---------------------------------------------------- 团队 */
.team-card { text-align: center; }
.avatar {
  width: 76px; height: 76px; border-radius: 50%; margin: 0 auto 16px;
  background: var(--grad); color: #fff; display: grid; place-items: center;
  font-size: 1.6rem; font-weight: 800;
}
.team-card h3 { font-size: 1.05rem; margin-bottom: .15em; }
.team-role { color: var(--brand-700); font-size: .86rem; font-weight: 600; margin-bottom: .7em; }
.team-card p { font-size: .9rem; color: var(--muted); margin: 0; }

/* ---------------------------------------------------- 文章 */
.article-card { display: block; color: inherit; overflow: hidden; padding: 0; }
.article-card:hover { color: inherit; }
.article-card img { aspect-ratio: 16/9; object-fit: cover; width: 100%; }
.article-body { padding: 22px 24px 24px; }
.article-meta { font-size: .8rem; color: var(--muted); margin-bottom: 8px; }
.article-body h3 { font-size: 1.05rem; margin-bottom: .35em; }
.article-body p { font-size: .9rem; color: var(--muted); margin: 0; }

/* ---------------------------------------------------- CTA / 表单 */
.cta-band { background: var(--dark); color: #fff; }
.cta-band h2 { color: #fff; }
.cta-band p { color: rgba(255,255,255,.75); }
.cta-grid { display: grid; gap: 44px; }
@media (min-width: 900px) { .cta-grid { grid-template-columns: 1fr 1.1fr; align-items: start; } }

.contact-info { display: grid; gap: 16px; margin-top: 26px; }
.contact-item { display: flex; gap: 13px; align-items: flex-start; }
.contact-item .ico {
  flex: none; width: 38px; height: 38px; border-radius: 10px;
  background: rgba(184,94,48,.16); display: grid; place-items: center; font-size: 1rem;
}
.contact-item dt { font-size: .8rem; color: rgba(255,255,255,.5); margin-bottom: 1px; }
.contact-item dd { margin: 0; color: #fff; font-weight: 600; }
.contact-item dd a { color: #fff; }

.form-card { background: #fff; border-radius: var(--radius); padding: 30px; box-shadow: var(--shadow-lg); color: var(--ink-2); }
.field { margin-bottom: 16px; }
.field label { display: block; font-size: .88rem; font-weight: 600; color: var(--ink); margin-bottom: 6px; }
.field .req { color: #E5484D; }
.field input, .field textarea, .field select {
  width: 100%; padding: 12px 14px; font: inherit; font-size: .95rem;
  border: 1.5px solid var(--line); border-radius: var(--radius-sm);
  background: #fff; color: var(--ink); transition: border-color .16s, box-shadow .16s;
}
.field input:focus, .field textarea:focus {
  outline: none; border-color: var(--brand); box-shadow: 0 0 0 4px rgba(184,94,48,.13);
}
.field textarea { min-height: 118px; resize: vertical; }
.field .err { color: #E5484D; font-size: .83rem; margin-top: 5px; }
.field-row { display: grid; gap: 16px; }
@media (min-width: 640px) { .field-row { grid-template-columns: 1fr 1fr; } }
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-note { font-size: .82rem; color: var(--muted); margin: 12px 0 0; }

/* ---------------------------------------------------- 页面头 */
.page-head {
  background: var(--bg-soft); border-bottom: 1px solid var(--line);
  padding: 54px 0 46px;
}
.page-head h1 { margin-bottom: .3em; }
.page-head p { color: var(--muted); max-width: 46em; margin: 0; }
.breadcrumb { font-size: .85rem; color: var(--muted); margin-bottom: 14px; }
.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--brand-700); }

/* ---------------------------------------------------- 正文排版 */
.prose { max-width: 46em; }
.prose h2 { margin-top: 1.8em; }
.prose h3 { margin-top: 1.5em; }
.prose ul, .prose ol { margin-bottom: 1.2em; }
.prose li { color: var(--ink-2); }
.prose img { border-radius: var(--radius); margin: 1.6em 0; }
.prose blockquote {
  margin: 1.6em 0; padding: 4px 0 4px 20px; border-left: 3px solid var(--brand);
  color: var(--muted);
}
.prose a { text-decoration: underline; text-underline-offset: 3px; }

/* ---------------------------------------------------- 筛选/分页 */
.filters { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 30px; }
.chip {
  padding: 8px 18px; border-radius: 60px; border: 1.5px solid var(--line);
  background: #fff; color: var(--ink-2); font-size: .9rem; font-weight: 500;
}
.chip:hover { border-color: var(--brand); color: var(--brand-700); }
.chip.is-active { background: var(--grad); border-color: transparent; color: #fff; font-weight: 600; }
.chip.is-active:hover { color: #fff; }

.pagination { display: flex; gap: 8px; justify-content: center; margin-top: 44px; flex-wrap: wrap; }
.pagination a, .pagination span {
  min-width: 42px; height: 42px; padding: 0 14px; border-radius: 10px;
  display: inline-flex; align-items: center; justify-content: center;
  border: 1.5px solid var(--line); background: #fff; color: var(--ink-2); font-size: .92rem;
}
.pagination a:hover { border-color: var(--brand); color: var(--brand-700); }
.pagination .is-current { background: var(--grad); border-color: transparent; color: #fff; font-weight: 700; }

/* ---------------------------------------------------- 详情页 */
.detail-grid { display: grid; gap: 48px; }
@media (min-width: 900px) { .detail-grid { grid-template-columns: 1fr 320px; align-items: start; } }
.detail-hero { border-radius: var(--radius); overflow: hidden; margin-bottom: 34px; }
.detail-hero img { width: 100%; aspect-ratio: 21/9; object-fit: cover; }
.sidebar { position: sticky; top: 92px; display: grid; gap: 20px; }
.sidebar-card { background: var(--bg-soft); border-radius: var(--radius); padding: 24px; }
.sidebar-card h3 { font-size: 1rem; margin-bottom: .6em; }
.sidebar-list { list-style: none; padding: 0; margin: 0; }
.sidebar-list li { padding: 11px 0; border-bottom: 1px solid var(--line); margin: 0; }
.sidebar-list li:last-child { border-bottom: 0; padding-bottom: 0; }
.sidebar-list a { font-size: .93rem; color: var(--ink-2); }
.sidebar-list a:hover { color: var(--brand-700); }

/* ---------------------------------------------------- 页脚 */
.site-footer { background: var(--dark); color: rgba(255,255,255,.66); padding: 58px 0 26px; margin-top: 0; }
.footer-grid { display: grid; gap: 34px; }
@media (min-width: 760px) { .footer-grid { grid-template-columns: 1.6fr 1fr 1fr 1.3fr; } }
.footer-brand strong { color: #fff; font-size: 1.12rem; display: block; margin-bottom: .5em; }
.footer-brand p { font-size: .9rem; margin-bottom: .4em; }
.footer-addr { color: rgba(255,255,255,.45); font-size: .86rem; }
.footer-col h4 { color: #fff; font-size: .92rem; margin-bottom: .9em; }
.footer-col a, .footer-col span { display: block; font-size: .9rem; color: rgba(255,255,255,.66); padding: 4px 0; }
.footer-col a:hover { color: var(--accent); }
.footer-contact .btn { margin-top: 12px; }
.footer-bottom {
  display: flex; flex-wrap: wrap; gap: 10px; justify-content: space-between;
  border-top: 1px solid rgba(255,255,255,.1); margin-top: 40px; padding-top: 22px;
  font-size: .85rem; color: rgba(255,255,255,.42);
}
.footer-bottom a { color: rgba(255,255,255,.42); }

/* ---------------------------------------------------- 错误页 */
.error-page { text-align: center; padding: 110px 0 90px; }
.error-page .code { font-size: clamp(4rem, 12vw, 7rem); font-weight: 800; line-height: 1; color: var(--brand-050); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}
