/* ============ 温拿健康官网 ============ */
:root {
  --primary: #F0A400;        /* 温拿黄 */
  --primary-dark: #D68F00;
  --ink: #223047;            /* 深蓝灰标题 */
  --text: #4A5568;           /* 正文 */
  --muted: #8B95A5;
  --bg: #FFFFFF;
  --bg-soft: #F6F8FB;
  --line: #E7ECF2;
  --radius: 12px;
  --shadow: 0 8px 24px rgba(34, 48, 71, .08);
  --container: 1180px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: "PingFang SC", "Microsoft YaHei", "Segoe UI", sans-serif;
  color: var(--text);
  background: var(--bg);
  font-size: 15px;
  line-height: 1.75;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

.container { max-width: var(--container); margin: 0 auto; padding: 0 24px; }

/* ============ 头部 ============ */
.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; height: 68px; gap: 32px; }
.logo { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.logo-badge {
  width: 40px; height: 40px; border-radius: 10px;
  background: linear-gradient(135deg, var(--primary), #F6C345);
  color: #fff; font-size: 20px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}
.logo-text { display: flex; flex-direction: column; line-height: 1.15; }
.logo-text strong { color: var(--ink); font-size: 19px; letter-spacing: 1px; }
.logo-text em { font-style: normal; color: var(--muted); font-size: 11px; letter-spacing: 3px; text-transform: lowercase; }

.main-nav { display: flex; gap: 6px; flex: 1; }
.main-nav a {
  padding: 8px 16px; font-size: 15px; color: var(--ink);
  border-radius: 8px; position: relative; transition: color .2s;
}
.main-nav a:hover { color: var(--primary-dark); }
.main-nav a.active { color: var(--primary-dark); font-weight: 600; }
.main-nav a.active::after {
  content: ""; position: absolute; left: 16px; right: 16px; bottom: 2px;
  height: 3px; border-radius: 2px; background: var(--primary);
}
.header-phone {
  display: flex; align-items: center; gap: 8px;
  color: var(--primary-dark); font-weight: 600; font-size: 15px;
  border: 1px solid #F3DFB3; background: #FDF7EA;
  padding: 8px 16px; border-radius: 999px; flex-shrink: 0;
}
.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 6px; }
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--ink); margin: 5px 0; border-radius: 2px; }

/* ============ 轮播 ============ */
.hero { position: relative; overflow: hidden; background: #EDF2F8; }
.hero-track { display: flex; transition: transform .6s ease; }
.hero-slide { min-width: 100%; position: relative; }
.hero-slide img { width: 100%; height: 520px; object-fit: cover; }
.hero-caption {
  position: absolute; left: 8%; bottom: 18%; max-width: 46%;
  background: rgba(255,255,255,.88); backdrop-filter: blur(4px);
  padding: 20px 26px; border-radius: 14px; border-left: 5px solid var(--primary);
}
.hero-caption h2 { color: var(--ink); font-size: 26px; line-height: 1.3; }
.hero-caption p { color: var(--muted); font-size: 13px; letter-spacing: 1px; margin-top: 6px; }
.hero-dots { position: absolute; bottom: 18px; left: 0; right: 0; display: flex; justify-content: center; gap: 8px; z-index: 5; }
.hero-dots button {
  width: 26px; height: 4px; border: 0; border-radius: 2px;
  background: rgba(255,255,255,.55); cursor: pointer; transition: background .2s;
}
.hero-dots button.on { background: var(--primary); }
.hero-arrow {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 42px; height: 42px; border-radius: 50%; border: 0; cursor: pointer;
  background: rgba(255,255,255,.7); color: var(--ink); font-size: 20px; z-index: 5;
}
.hero-arrow:hover { background: #fff; }
.hero-arrow.prev { left: 18px; } .hero-arrow.next { right: 18px; }

/* ============ 区块通用 ============ */
.section { padding: 72px 0; }
.section.soft { background: var(--bg-soft); }
.sec-head { text-align: center; margin-bottom: 44px; }
.sec-head h2 { color: var(--ink); font-size: 30px; letter-spacing: 2px; }
.sec-head .sub {
  display: inline-block; margin-top: 8px; color: var(--muted);
  font-size: 13px; letter-spacing: 4px; position: relative; padding: 0 56px;
}
.sec-head .sub::before, .sec-head .sub::after {
  content: ""; position: absolute; top: 50%; width: 40px; height: 1px; background: var(--line);
}
.sec-head .sub::before { left: 0; } .sec-head .sub::after { right: 0; }

.btn-more {
  display: inline-block; margin-top: 18px; padding: 9px 30px;
  border: 1px solid var(--primary); color: var(--primary-dark);
  border-radius: 999px; font-size: 14px; transition: all .2s;
}
.btn-more:hover { background: var(--primary); color: #fff; }

/* ============ 首页 · 品牌介绍 ============ */
.brand-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 48px; align-items: center; }
.brand-grid .pic { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.brand-grid .pic img { width: 100%; height: 340px; object-fit: cover; }
.brand-grid h3 { color: var(--ink); font-size: 24px; margin-bottom: 16px; }
.brand-grid h3 span { color: var(--primary-dark); }
.brand-grid p { margin-bottom: 12px; }
.brand-slogan { color: var(--primary-dark); font-weight: 600; }

/* ============ 通用页头 ============ */
.page-hero {
  background: linear-gradient(120deg, #223047 0%, #3A4E6E 100%);
  color: #fff; text-align: center; padding: 56px 0;
}
.page-hero h1 { font-size: 28px; letter-spacing: 4px; }
.page-hero p { margin-top: 8px; color: rgba(255,255,255,.65); font-size: 13px; letter-spacing: 5px; }

/* ============ 技术体系 ============ */
.tech-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.tech-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px 24px; transition: all .25s; display: flex; gap: 16px; align-items: flex-start;
}
.tech-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: #F3DFB3; }
.tech-badge {
  flex-shrink: 0; width: 56px; height: 56px; border-radius: 14px;
  background: linear-gradient(135deg, #FDF4E0, #FAE7BF);
  color: var(--primary-dark); font-weight: 700; font-size: 13px;
  display: flex; align-items: center; justify-content: center; text-align: center; line-height: 1.2;
}
.tech-card h4 { color: var(--ink); font-size: 16px; margin-bottom: 6px; }
.tech-card p { font-size: 13px; color: var(--muted); }
.tech-poster { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); margin-top: 40px; }
.tech-block { margin-top: 44px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 30px; }
.tech-block h3 { color: var(--ink); font-size: 20px; margin-bottom: 10px; display: flex; align-items: center; gap: 10px; }
.tech-block h3::before { content: ""; width: 5px; height: 20px; border-radius: 3px; background: var(--primary); }
.tech-block p { color: var(--text); }

/* ============ 产品 ============ */
.prod-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.prod-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; cursor: pointer; transition: all .25s;
}
.prod-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.prod-pic {
  height: 200px; position: relative; display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, #EDF2F8, #E1EAF3);
}
.prod-pic img { width: 100%; height: 100%; object-fit: cover; }
.prod-pic .code {
  font-size: 44px; font-weight: 700; color: rgba(58, 78, 110, .22); letter-spacing: 2px;
}
.prod-info { padding: 18px 20px 22px; }
.prod-info h4 { color: var(--ink); font-size: 17px; display: flex; align-items: center; justify-content: space-between; }
.prod-info h4 .arrow { color: var(--primary-dark); font-size: 14px; }
.prod-info p { font-size: 13px; color: var(--muted); margin-top: 8px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* ============ 资讯 ============ */
.news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.news-col { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; }
.news-col h4 { color: var(--ink); font-size: 18px; padding-bottom: 14px; border-bottom: 1px solid var(--line); margin-bottom: 14px; position: relative; }
.news-col h4::after { content: ""; position: absolute; left: 0; bottom: -1px; width: 44px; height: 3px; background: var(--primary); border-radius: 2px; }
.news-col li { padding: 10px 0; border-bottom: 1px dashed var(--line); }
.news-col li:last-child { border-bottom: 0; }
.news-item { cursor: pointer; }
.news-item .t { color: var(--ink); font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.news-item:hover .t { color: var(--primary-dark); }
.news-item .d { color: var(--muted); font-size: 12px; margin-top: 2px; }
.news-empty { color: var(--muted); font-size: 13px; padding: 8px 0; }

.news-tabs { display: flex; justify-content: center; gap: 12px; margin-bottom: 34px; flex-wrap: wrap; }
.news-tabs button {
  padding: 9px 26px; border-radius: 999px; border: 1px solid var(--line);
  background: #fff; color: var(--text); cursor: pointer; font-size: 14px; transition: all .2s;
}
.news-tabs button.on { background: var(--primary); border-color: var(--primary); color: #fff; }

.news-list-item {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px 26px; margin-bottom: 16px; cursor: pointer; transition: all .2s;
  display: flex; justify-content: space-between; align-items: center; gap: 20px;
}
.news-list-item:hover { box-shadow: var(--shadow); border-color: #F3DFB3; }
.news-list-item h4 { color: var(--ink); font-size: 16px; }
.news-list-item .meta { color: var(--muted); font-size: 13px; flex-shrink: 0; }

/* ============ 走进温拿 ============ */
.about-story { display: grid; grid-template-columns: 1fr 1.15fr; gap: 44px; align-items: center; }
.about-story .pic { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.about-story .pic img { width: 100%; height: 360px; object-fit: cover; }
.about-story p { margin-bottom: 12px; text-align: justify; }

.timeline { position: relative; margin-top: 10px; padding-left: 26px; }
.timeline::before { content: ""; position: absolute; left: 6px; top: 6px; bottom: 6px; width: 2px; background: var(--line); }
.timeline li { position: relative; padding: 0 0 26px 18px; }
.timeline li::before {
  content: ""; position: absolute; left: -26px; top: 8px;
  width: 12px; height: 12px; border-radius: 50%; background: #fff;
  border: 3px solid var(--primary);
}
.timeline .y { color: var(--primary-dark); font-weight: 700; font-size: 16px; }
.timeline .e { color: var(--text); margin-top: 2px; }

.culture-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.culture-card {
  background: #fff; border-radius: var(--radius); border: 1px solid var(--line);
  padding: 40px 28px; text-align: center; transition: all .25s;
}
.culture-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.culture-card .ico { font-size: 34px; margin-bottom: 14px; }
.culture-card h4 { color: var(--ink); font-size: 18px; margin-bottom: 10px; }
.culture-card p { color: var(--primary-dark); font-weight: 600; }

.cert-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.cert-card {
  background: #fff; border: 1px dashed #E3C77E; border-radius: var(--radius);
  padding: 26px; display: flex; gap: 14px; align-items: center;
}
.cert-card .ico { flex-shrink: 0; width: 46px; height: 46px; border-radius: 12px; background: #FDF4E0; display: flex; align-items: center; justify-content: center; font-size: 22px; }
.cert-card h5 { color: var(--ink); font-size: 15px; }

/* ============ 联系我们 ============ */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 44px; }
.contact-info-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 34px; }
.contact-info-card h3 { color: var(--ink); font-size: 20px; margin-bottom: 20px; }
.contact-line { display: flex; gap: 14px; margin-bottom: 18px; align-items: flex-start; }
.contact-line .ico {
  flex-shrink: 0; width: 42px; height: 42px; border-radius: 12px; background: #FDF4E0;
  display: flex; align-items: center; justify-content: center; font-size: 18px;
}
.contact-line .k { color: var(--muted); font-size: 12px; }
.contact-line .v { color: var(--ink); font-weight: 600; word-break: break-all; }
.qr-wrap { text-align: center; margin-top: 22px; }
.qr-wrap img { width: 130px; height: 130px; margin: 0 auto 8px; border: 1px solid var(--line); border-radius: 10px; padding: 6px; background: #fff; }
.qr-wrap p { color: var(--muted); font-size: 12px; }

.contact-form { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 34px; }
.contact-form h3 { color: var(--ink); font-size: 20px; margin-bottom: 20px; }
.field { margin-bottom: 16px; }
.field label { display: block; color: var(--ink); font-size: 13px; margin-bottom: 6px; }
.field input, .field textarea {
  width: 100%; padding: 11px 14px; border: 1px solid var(--line); border-radius: 10px;
  font-size: 14px; font-family: inherit; color: var(--ink); background: var(--bg-soft);
  outline: none; transition: border .2s;
}
.field input:focus, .field textarea:focus { border-color: var(--primary); background: #fff; }
.field textarea { min-height: 120px; resize: vertical; }
.btn-submit {
  width: 100%; padding: 13px; border: 0; border-radius: 10px; cursor: pointer;
  background: var(--primary); color: #fff; font-size: 15px; font-weight: 600; transition: background .2s;
}
.btn-submit:hover { background: var(--primary-dark); }

/* ============ 页脚 ============ */
.site-footer { background: #1C2739; color: #B9C2D0; margin-top: 0; }
.footer-top { display: grid; grid-template-columns: 1.4fr 1fr .8fr; gap: 40px; padding: 52px 0 40px; }
.footer-top h4 { color: #fff; font-size: 17px; margin-bottom: 16px; }
.footer-top .f-logo { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; }
.footer-top .f-logo .logo-badge { width: 36px; height: 36px; font-size: 17px; }
.footer-top .f-logo strong { color: #fff; font-size: 18px; letter-spacing: 1px; }
.footer-top p { font-size: 13px; margin-bottom: 8px; }
.footer-qr { text-align: center; }
.footer-qr img { width: 110px; height: 110px; margin: 0 auto 8px; border-radius: 8px; background: #fff; padding: 5px; }
.footer-qr span { font-size: 12px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.08); padding: 18px 0; text-align: center; font-size: 12px; color: #77839A; }
.footer-bottom a { color: #9AA6BC; }
.footer-bottom a:hover { color: #fff; }

/* ============ 弹窗 / 提示 ============ */
.modal-mask {
  position: fixed; inset: 0; background: rgba(20,28,42,.55); z-index: 200;
  display: none; align-items: center; justify-content: center; padding: 24px;
}
.modal-mask.show { display: flex; }
.modal {
  background: #fff; border-radius: 16px; max-width: 640px; width: 100%;
  max-height: 82vh; overflow: auto; position: relative; padding: 36px;
  animation: pop .25s ease;
}
@keyframes pop { from { transform: scale(.94); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.modal-close {
  position: absolute; top: 12px; right: 16px; border: 0; background: none;
  font-size: 26px; color: var(--muted); cursor: pointer; line-height: 1;
}
.modal h3 { color: var(--ink); font-size: 20px; margin-bottom: 6px; }
.modal .m-meta { color: var(--muted); font-size: 12px; margin-bottom: 16px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.modal img { border-radius: 10px; margin-bottom: 14px; }
.modal p { white-space: pre-wrap; }

.toast {
  position: fixed; top: 84px; left: 50%; transform: translateX(-50%) translateY(-16px);
  background: rgba(28, 39, 57, .92); color: #fff; padding: 11px 24px; border-radius: 999px;
  font-size: 14px; z-index: 300; opacity: 0; pointer-events: none; transition: all .3s;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.toast.err { background: rgba(190, 52, 52, .94); }

/* ============ 响应式 ============ */
@media (max-width: 960px) {
  .brand-grid, .about-story, .contact-grid { grid-template-columns: 1fr; }
  .tech-grid, .news-grid, .culture-grid, .cert-list { grid-template-columns: repeat(2, 1fr); }
  .prod-grid { grid-template-columns: repeat(2, 1fr); }
  .hero-slide img { height: 380px; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .main-nav {
    position: fixed; top: 68px; left: 0; right: 0; flex-direction: column;
    background: #fff; padding: 12px 24px 18px; gap: 2px;
    border-bottom: 1px solid var(--line); display: none;
  }
  .main-nav.open { display: flex; }
  .nav-toggle { display: block; }
  .header-phone { display: none; }
}
@media (max-width: 560px) {
  .tech-grid, .news-grid, .culture-grid, .cert-list, .prod-grid { grid-template-columns: 1fr; }
  .hero-slide img { height: 260px; }
  .hero-caption { left: 6%; right: 6%; bottom: 12%; max-width: none; padding: 14px 16px; }
  .hero-caption h2 { font-size: 18px; }
  .sec-head h2 { font-size: 24px; }
  .section { padding: 48px 0; }
  .footer-top { grid-template-columns: 1fr; }
}
