/* =========================================================
   台州市椒江欣隆电子商务商行 — 企业官网
   设计系统 / Design System
   风格：简约大气 · 暖色中性 · 大量留白
   ========================================================= */

:root {
  --bg: #FBF9F6;
  --surface: #FFFFFF;
  --surface-2: #F6F2EC;
  --ink: #23211E;
  --ink-soft: #4A453E;
  --muted: #8A8178;
  --line: #EAE4DB;
  --accent: #9C7A5B;        /* 暖铜棕 */
  --accent-deep: #7A5C40;
  --accent-soft: #F1E9DF;
  --radius: 14px;
  --radius-lg: 24px;
  --shadow-sm: 0 2px 10px rgba(35, 33, 30, .05);
  --shadow: 0 16px 48px rgba(35, 33, 30, .08);
  --maxw: 1180px;
  --font-serif: "Noto Serif SC", "Songti SC", "STSong", "SimSun", serif;
  --font-sans: "PingFang SC", "Microsoft YaHei", "Hiragino Sans GB", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.75;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 28px;
}

/* ---------- 通用排版 ---------- */
.section { padding: 96px 0; }
.section--tight { padding: 72px 0; }
.section--alt { background: var(--surface-2); }

.eyebrow {
  display: inline-block;
  font-size: 13px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 16px;
}

.h2 {
  font-family: var(--font-serif);
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: .01em;
  color: var(--ink);
}

.lead {
  font-size: 17px;
  color: var(--ink-soft);
  max-width: 620px;
}

.section-head { max-width: 720px; margin-bottom: 56px; }
.section-head .lead { margin-top: 14px; }

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 15px;
  font-weight: 600;
  padding: 13px 26px;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all .25s ease;
  white-space: nowrap;
}
.btn--primary { background: var(--accent); color: #fff; }
.btn--primary:hover { background: var(--accent-deep); transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn--ghost:hover { border-color: var(--accent); color: var(--accent); }
.btn--light { background: #fff; color: var(--ink); }
.btn--light:hover { transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.btn--outline-light { background: transparent; color: #fff; border-color: rgba(255,255,255,.5); }
.btn--outline-light:hover { background: rgba(255,255,255,.12); }

/* ---------- 顶部导航 ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(251, 249, 246, .82);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 74px;
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand__mark {
  width: 38px; height: 38px;
  border-radius: 11px;
  background: linear-gradient(135deg, var(--accent), var(--accent-deep));
  display: grid; place-items: center;
  flex: none;
}
.brand__mark svg { width: 22px; height: 22px; }
.brand__name { font-family: var(--font-serif); font-weight: 600; font-size: 18px; line-height: 1.1; }
.brand__name small { display: block; font-family: var(--font-sans); font-weight: 500; font-size: 11px; letter-spacing: .18em; color: var(--muted); margin-top: 2px; }

.nav__links { display: flex; align-items: center; gap: 6px; list-style: none; }
.nav__links a {
  display: inline-block;
  padding: 9px 16px;
  border-radius: 999px;
  font-size: 15px;
  color: var(--ink-soft);
  transition: all .2s ease;
}
.nav__links a:hover { color: var(--accent); background: var(--accent-soft); }
.nav__links a.is-active { color: var(--accent); background: var(--accent-soft); font-weight: 600; }

.nav__cta { margin-left: 14px; }

.nav__toggle {
  display: none;
  background: none; border: none; cursor: pointer;
  width: 42px; height: 42px;
  flex-direction: column; gap: 5px; align-items: center; justify-content: center;
}
.nav__toggle span { width: 22px; height: 2px; background: var(--ink); border-radius: 2px; transition: .25s; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 86vh;
  display: flex;
  align-items: center;
  color: #fff;
  overflow: hidden;
}
.hero__bg {
  position: absolute; inset: 0;
  background-size: cover;
  background-position: center;
  transform: scale(1.05);
}
.hero__bg::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(95deg, rgba(28,24,20,.78) 0%, rgba(28,24,20,.5) 45%, rgba(28,24,20,.18) 100%);
}
.hero__inner { position: relative; z-index: 2; padding: 120px 0; max-width: 720px; }
.hero__eyebrow { color: #EAD9C5; }
.hero h1 {
  font-family: var(--font-serif);
  font-size: clamp(38px, 6.2vw, 68px);
  line-height: 1.12;
  font-weight: 600;
  letter-spacing: .01em;
  margin: 18px 0 22px;
}
.hero p { font-size: 18px; color: rgba(255,255,255,.85); max-width: 560px; margin-bottom: 34px; }
.hero__actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero__scroll {
  position: absolute; bottom: 30px; left: 50%; transform: translateX(-50%);
  z-index: 2; color: rgba(255,255,255,.7); font-size: 12px; letter-spacing: .2em;
  display: flex; flex-direction: column; align-items: center; gap: 8px;
}
.hero__scroll span { width: 1px; height: 38px; background: rgba(255,255,255,.5); animation: scrollLine 1.8s infinite; }
@keyframes scrollLine { 0% { transform: scaleY(0); transform-origin: top; } 50% { transform: scaleY(1); transform-origin: top; } 51% { transform-origin: bottom; } 100% { transform: scaleY(0); transform-origin: bottom; } }

/* ---------- 数据条 ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.stat { text-align: center; padding: 18px 10px; }
.stat__num { font-family: var(--font-serif); font-size: clamp(30px, 4vw, 46px); font-weight: 600; color: var(--accent); line-height: 1; }
.stat__label { color: var(--muted); font-size: 14px; margin-top: 10px; }

/* ---------- 业务卡片 ---------- */
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.feature {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 38px 32px;
  transition: .3s ease;
}
.feature:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: var(--accent-soft); }
.feature__icon {
  width: 56px; height: 56px; border-radius: 16px;
  background: var(--accent-soft); display: grid; place-items: center; margin-bottom: 22px;
}
.feature__icon svg { width: 28px; height: 28px; stroke: var(--accent); }
.feature h3 { font-family: var(--font-serif); font-size: 22px; font-weight: 600; margin-bottom: 10px; }
.feature p { color: var(--ink-soft); font-size: 15px; }

/* ---------- 优势列表 ---------- */
.why-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.why__media { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow); }
.why__list { list-style: none; margin-top: 30px; }
.why__list li { display: flex; gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.why__list li:last-child { border-bottom: none; }
.why__list .tick {
  flex: none; width: 30px; height: 30px; border-radius: 50%;
  background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; font-size: 15px; font-weight: 700;
}
.why__list h4 { font-size: 17px; font-weight: 600; }
.why__list p { color: var(--muted); font-size: 14px; }

/* ---------- 产品卡片 ---------- */
.product-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.product {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: .3s ease;
  display: flex; flex-direction: column;
}
.product:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.product__media { aspect-ratio: 4 / 3; overflow: hidden; background: var(--surface-2); }
.product__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.product:hover .product__media img { transform: scale(1.06); }
.product__body { padding: 24px 26px 28px; }
.product__tag { display: inline-block; font-size: 12px; letter-spacing: .1em; color: var(--accent); background: var(--accent-soft); padding: 4px 12px; border-radius: 999px; margin-bottom: 12px; }
.product__body h3 { font-family: var(--font-serif); font-size: 20px; font-weight: 600; margin-bottom: 8px; }
.product__body p { color: var(--muted); font-size: 14px; }
.product__more { margin-top: 16px; font-size: 14px; font-weight: 600; color: var(--accent); display: inline-flex; align-items: center; gap: 6px; }

/* ---------- 分类标签 ---------- */
.tabs { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 40px; }
.tab {
  font-size: 14px; font-weight: 600; padding: 10px 22px; border-radius: 999px;
  border: 1px solid var(--line); background: var(--surface); color: var(--ink-soft); cursor: pointer;
  transition: .2s;
}
.tab:hover { border-color: var(--accent); color: var(--accent); }
.tab.is-active { background: var(--accent); color: #fff; border-color: var(--accent); }

/* ---------- 服务区块 ---------- */
.service-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.service {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 32px 28px; transition: .3s;
}
.service:hover { border-color: var(--accent-soft); box-shadow: var(--shadow-sm); }
.service__no { font-family: var(--font-serif); font-size: 28px; color: var(--accent-soft); font-weight: 600; }
.service h3 { font-size: 19px; font-weight: 600; margin: 8px 0 8px; }
.service p { color: var(--muted); font-size: 14px; }

/* ---------- 引用 / 评价 ---------- */
.quote { max-width: 820px; margin: 0 auto; text-align: center; }
.quote p { font-family: var(--font-serif); font-size: clamp(22px, 3vw, 30px); line-height: 1.6; color: var(--ink); }
.quote cite { display: block; margin-top: 24px; font-style: normal; color: var(--muted); font-size: 14px; letter-spacing: .05em; }

/* ---------- CTA 横幅 ---------- */
.cta-band {
  background: linear-gradient(120deg, var(--accent-deep), var(--accent));
  border-radius: var(--radius-lg);
  padding: 64px 56px;
  color: #fff;
  display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap;
}
.cta-band h2 { font-family: var(--font-serif); font-size: clamp(26px, 3.4vw, 38px); font-weight: 600; }
.cta-band p { color: rgba(255,255,255,.85); margin-top: 10px; max-width: 520px; }

/* ---------- 关于页时间线 ---------- */
.timeline { list-style: none; position: relative; padding-left: 28px; }
.timeline::before { content: ""; position: absolute; left: 7px; top: 6px; bottom: 6px; width: 2px; background: var(--line); }
.timeline li { position: relative; padding: 0 0 34px 8px; }
.timeline li::before { content: ""; position: absolute; left: -28px; top: 6px; width: 16px; height: 16px; border-radius: 50%; background: var(--surface); border: 3px solid var(--accent); }
.timeline .year { font-family: var(--font-serif); font-weight: 600; color: var(--accent); font-size: 18px; }
.timeline h4 { font-size: 17px; margin: 4px 0 6px; }
.timeline p { color: var(--muted); font-size: 14px; }

.value-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.value { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 30px 24px; text-align: center; transition: .3s; }
.value:hover { transform: translateY(-4px); box-shadow: var(--shadow-sm); }
.value .em { font-family: var(--font-serif); font-size: 30px; color: var(--accent); }
.value h4 { font-size: 17px; margin: 12px 0 6px; }
.value p { color: var(--muted); font-size: 13px; }

/* ---------- 联系页 ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 56px; align-items: start; }
.info-list { list-style: none; margin-top: 8px; }
.info-list li { display: flex; gap: 18px; padding: 22px 0; border-bottom: 1px solid var(--line); }
.info-list .ic { flex: none; width: 46px; height: 46px; border-radius: 13px; background: var(--accent-soft); display: grid; place-items: center; }
.info-list .ic svg { width: 22px; height: 22px; stroke: var(--accent); }
.info-list h4 { font-size: 15px; color: var(--muted); font-weight: 500; }
.info-list p { font-size: 17px; color: var(--ink); font-weight: 600; }

.form-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 40px; box-shadow: var(--shadow-sm); }
.field { margin-bottom: 20px; }
.field label { display: block; font-size: 14px; font-weight: 600; margin-bottom: 8px; color: var(--ink-soft); }
.field input, .field textarea {
  width: 100%; font-family: inherit; font-size: 15px; color: var(--ink);
  padding: 13px 16px; border: 1px solid var(--line); border-radius: 12px; background: var(--bg);
  transition: .2s;
}
.field input:focus, .field textarea:focus { outline: none; border-color: var(--accent); background: #fff; box-shadow: 0 0 0 4px var(--accent-soft); }
.field textarea { resize: vertical; min-height: 120px; }
.form-note { font-size: 13px; color: var(--muted); margin-top: 12px; }
.form-ok { display: none; margin-top: 18px; padding: 14px 18px; border-radius: 12px; background: #EEF6EE; color: #2E7D32; font-size: 14px; font-weight: 600; }

.map {
  margin-top: 56px; border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--line);
  background: var(--surface-2); height: 320px; display: grid; place-items: center; color: var(--muted);
  position: relative;
}
.map iframe { width: 100%; height: 100%; border: 0; }

/* ---------- 页脚 ---------- */
.site-footer { background: #1B1815; color: rgba(255,255,255,.72); padding: 72px 0 32px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; }
.footer-grid h5 { color: #fff; font-size: 15px; margin-bottom: 18px; font-weight: 600; }
.footer-grid ul { list-style: none; }
.footer-grid ul li { margin-bottom: 12px; font-size: 14px; }
.footer-grid ul a:hover { color: var(--accent); }
.footer-brand .brand__name { color: #fff; }
.footer-brand p { font-size: 14px; margin-top: 16px; max-width: 280px; color: rgba(255,255,255,.6); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); margin-top: 48px; padding-top: 24px; font-size: 13px; color: rgba(255,255,255,.5); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; }

/* ---------- 内页页头 ---------- */
.page-hero { background: var(--surface-2); padding: 86px 0 64px; border-bottom: 1px solid var(--line); }
.page-hero h1 { font-family: var(--font-serif); font-size: clamp(32px, 5vw, 52px); font-weight: 600; margin: 12px 0 14px; }
.page-hero p { color: var(--ink-soft); max-width: 660px; }

/* ---------- 滚动淡入 ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; } }

/* ---------- 响应式 ---------- */
@media (max-width: 960px) {
  .feature-grid, .product-grid, .service-grid { grid-template-columns: repeat(2, 1fr); }
  .why-grid, .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .value-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .stats { grid-template-columns: repeat(2, 1fr); gap: 32px 16px; }
}
@media (max-width: 720px) {
  .section { padding: 64px 0; }
  .nav__links {
    position: fixed; top: 74px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--bg); border-bottom: 1px solid var(--line);
    padding: 12px 24px 24px; transform: translateY(-120%); transition: .3s ease; box-shadow: var(--shadow);
  }
  .nav__links.is-open { transform: translateY(0); }
  .nav__links a { padding: 14px 8px; border-radius: 10px; }
  .nav__cta { display: none; }
  .nav__toggle { display: flex; }
  .cta-band { padding: 44px 28px; }
  .form-card { padding: 28px 22px; }
}
@media (max-width: 520px) {
  .feature-grid, .product-grid, .service-grid, .value-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .container { padding: 0 20px; }
}


/* 1. 美化地图容器 */
.map {
    width: 100%;
    max-width: 800px;      /* 限制最大宽度，防止在大屏幕上过宽 */
    margin: 0 auto;        /* 让地图在父容器中水平居中 */
    border-radius: 16px;   /* 添加圆角，看起来更柔和 */
    overflow: hidden;      /* 确保圆角效果能应用到内部的iframe上 */
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12); /* 添加一点阴影，增加立体感 */
    transition: box-shadow 0.3s ease;
}

.map:hover {
    box-shadow: 0 12px 36px rgba(0, 0, 0, 0.18); /* 鼠标悬停时阴影加深一点 */
}

/* 2. 控制地图 iframe 的样式 */
.map iframe {
    display: block;        /* 去除 iframe 底部多余的空隙 */
    width: 100%;           /* 宽度填满容器 */
    height: 450px;         /* 设置一个你喜欢的固定高度 */
    border: none;          /* 去除边框 */
}

/* 3. 响应式设计：让地图在手机上更好看 */
@media (max-width: 600px) {
    .map iframe {
        height: 300px;     /* 在小屏幕设备上降低地图高度 */
    }
}