/* ============ 基础 ============ */
:root {
  --primary: #c8102e;
  --primary-dark: #9f0c24;
  --primary-light: #f43f5e;
  --primary-soft: #fdf2f3;
  --text: #1e293b;
  --text-light: #64748b;
  --bg: #ffffff;
  --bg-alt: #fdf2f3;
  --border: #f0dade;
  --radius: 16px;
  --shadow: 0 10px 30px rgba(200, 16, 46, 0.08);
}
* { 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);
  line-height: 1.7;
}
.container { max-width: 1140px; margin: 0 auto; padding: 0 24px; }
img { max-width: 100%; }

/* ============ 按钮 ============ */
.btn {
  display: inline-block; padding: 12px 28px; border-radius: 999px;
  font-size: 15px; font-weight: 600; text-decoration: none;
  transition: all .25s ease; border: 2px solid transparent; cursor: pointer;
}
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-dark); transform: translateY(-2px); box-shadow: 0 8px 20px rgba(200,16,46,.35); }
.btn-ghost { color: var(--primary); border-color: var(--primary); background: transparent; }
.btn-ghost:hover { background: rgba(200,16,46,.08); }
.btn-lg { padding: 15px 34px; font-size: 16px; }
.btn-block { width: 100%; }

/* ============ 导航 ============ */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(255,255,255,.85); backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent; transition: all .3s;
}
.navbar.scrolled { border-color: var(--border); box-shadow: 0 4px 16px rgba(15,23,42,.05); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.logo { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--text); font-weight: 700; font-size: 18px; }
.logo-img { height: 40px; width: auto; display: block; }
.company-name {
  font-size: 14px; font-weight: 600; color: var(--text); letter-spacing: .5px;
  border-left: 1px solid var(--border); padding-left: 12px; white-space: nowrap;
}
.logo-mark {
  display: inline-flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; border-radius: 10px; color: #fff; font-weight: 700;
  background: linear-gradient(135deg, #c8102e, #ef4444);
}
.nav-links { display: flex; gap: 32px; }
.nav-links a { text-decoration: none; color: var(--text-light); font-size: 15px; font-weight: 500; transition: color .2s; }
.nav-links a:hover { color: var(--primary); }
.menu-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 6px; }
.menu-toggle span { width: 22px; height: 2px; background: var(--text); border-radius: 2px; transition: .3s; }

/* ============ Hero ============ */
.hero { position: relative; padding: 160px 0 100px; overflow: hidden; }
.hero-bg { position: absolute; inset: 0; pointer-events: none; }
.blob { position: absolute; border-radius: 50%; filter: blur(80px); opacity: .35; }
.blob-1 { width: 480px; height: 480px; background: #fca5a5; top: -120px; right: -80px; }
.blob-2 { width: 380px; height: 380px; background: #fecdd3; bottom: -100px; left: -60px; }
.grid-lines {
  position: absolute; inset: 0;
  background-image: linear-gradient(rgba(200,16,46,.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(200,16,46,.05) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse at center, black 30%, transparent 75%);
}
.hero-inner { position: relative; display: grid; grid-template-columns: 1.1fr .9fr; gap: 60px; align-items: center; }
.badge {
  display: inline-block; padding: 6px 16px; border-radius: 999px;
  background: rgba(200,16,46,.1); color: var(--primary);
  font-size: 13px; font-weight: 600; margin-bottom: 20px;
}
.hero h1 { font-size: 52px; line-height: 1.2; letter-spacing: -1px; margin-bottom: 20px; }
.hero h1 em { font-style: normal; background: linear-gradient(90deg, #c8102e, #f43f5e); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-desc { color: var(--text-light); font-size: 17px; max-width: 480px; margin-bottom: 32px; }
.hero-actions { display: flex; gap: 16px; margin-bottom: 48px; flex-wrap: wrap; }
.hero-stats { display: flex; gap: 40px; flex-wrap: wrap; }
.stat strong { font-size: 32px; font-weight: 800; color: var(--text); display: block; }
.stat span { color: var(--text-light); font-size: 14px; }

/* Hero 视觉卡片 */
.card-stack { position: relative; height: 420px; }
.glass-card {
  background: rgba(255,255,255,.75); backdrop-filter: blur(10px);
  border: 1px solid var(--border); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 20px;
}
.card-main { position: absolute; top: 20px; left: 50%; transform: translateX(-50%); width: 320px; animation: float 5s ease-in-out infinite; }
.card-header { display: flex; gap: 6px; margin-bottom: 16px; }
.dot { width: 10px; height: 10px; border-radius: 50%; }
.dot.red { background: #c8102e; } .dot.yellow { background: #fda4af; } .dot.green { background: #fecdd3; }
.chart-mock { display: flex; align-items: flex-end; gap: 12px; height: 150px; padding: 8px 4px; }
.bar { flex: 1; height: var(--h); border-radius: 8px 8px 4px 4px; background: linear-gradient(180deg, #c8102e, #fca5a5); animation: grow 1s ease both; }
.bar:nth-child(even) { background: linear-gradient(180deg, #f43f5e, #fecdd3); }
.card-footer { margin-top: 14px; font-weight: 700; color: var(--primary); font-size: 14px; text-align: center; }
.card-float-1 { position: absolute; top: 0; right: 0; font-weight: 600; font-size: 14px; animation: float 6s ease-in-out infinite .5s; }
.card-float-2 { position: absolute; bottom: 90px; left: 0; font-weight: 600; font-size: 14px; animation: float 7s ease-in-out infinite 1s; }
.card-float-3 { position: absolute; bottom: 0; right: 40px; font-weight: 600; font-size: 14px; animation: float 6.5s ease-in-out infinite 1.5s; }
@keyframes float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-14px); } }
@keyframes grow { from { height: 0; } }

/* ============ 通用 Section ============ */
.section { padding: 100px 0; }
.section-alt { background: var(--bg-alt); }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 56px; }
.section-tag { display: inline-block; color: var(--primary); font-weight: 700; font-size: 14px; letter-spacing: 2px; margin-bottom: 12px; }
.section-head h2 { font-size: 36px; margin-bottom: 14px; letter-spacing: -0.5px; }
.section-head p { color: var(--text-light); }
.grid { display: grid; gap: 24px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

/* ============ 关于/特性卡片 ============ */
.feature-card {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  padding: 36px 28px; transition: all .3s; box-shadow: 0 2px 8px rgba(15,23,42,.04);
}
.feature-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: rgba(200,16,46,.3); }
.feature-icon { font-size: 36px; margin-bottom: 16px; }
.feature-card h3 { font-size: 19px; margin-bottom: 10px; }
.feature-card p { color: var(--text-light); font-size: 15px; }

/* ============ 服务卡片 ============ */
.service-card {
  background: #fff; border-radius: var(--radius); padding: 32px 24px;
  border: 1px solid var(--border); transition: all .3s;
}
.service-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.service-icon {
  width: 56px; height: 56px; border-radius: 14px; display: flex; align-items: center;
  justify-content: center; font-size: 26px; margin-bottom: 18px;
  background: color-mix(in srgb, var(--c) 12%, white);
  border: 1px solid color-mix(in srgb, var(--c) 25%, white);
}
.service-card h3 { font-size: 18px; margin-bottom: 8px; }
.service-card p { color: var(--text-light); font-size: 14.5px; }

/* ============ 案例 ============ */
.case-card { background: #fff; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border); transition: all .3s; }
.case-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.case-cover { height: 160px; display: flex; align-items: flex-end; padding: 20px; color: #fff; font-size: 20px; font-weight: 700; }
.cover-1 { background: linear-gradient(135deg, #c8102e, #f43f5e); }
.cover-2 { background: linear-gradient(135deg, #9f0c24, #e11d48); }
.cover-3 { background: linear-gradient(135deg, #7f1d1d, #c8102e); }
.case-body { padding: 24px; }
.case-body h3 { font-size: 17px; margin-bottom: 8px; }
.case-body p { color: var(--text-light); font-size: 14.5px; margin-bottom: 14px; }
.case-link { color: var(--primary); text-decoration: none; font-weight: 600; font-size: 14px; }
.case-link:hover { text-decoration: underline; }

/* ============ 联系 / CTA ============ */
.section-cta { background: linear-gradient(135deg, #7f0d1e, #c8102e); color: #fff; }
.cta-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.cta-text h2 { font-size: 34px; margin-bottom: 14px; }
.cta-text p { color: rgba(255,255,255,.8); margin-bottom: 24px; }
.contact-list { list-style: none; display: flex; flex-direction: column; gap: 10px; color: rgba(255,255,255,.9); }
.contact-list .cta-ico { width: 48px; height: 48px; object-fit: contain; vertical-align: middle; margin-right: 8px; border-radius: 8px; background: rgba(255,255,255,.92); padding: 3px; box-sizing: border-box; }
.contact-list a { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.contact-list a:hover { color: #ffe3e8; }
.cta-form { background: #fff; border-radius: var(--radius); padding: 32px; display: flex; flex-direction: column; gap: 14px; }
.cta-form input, .cta-form textarea {
  padding: 13px 16px; border: 1px solid var(--border); border-radius: 10px;
  font-size: 15px; font-family: inherit; outline: none; transition: border .2s; resize: vertical;
}
.cta-form input:focus, .cta-form textarea:focus { border-color: var(--primary); }
.form-tip { text-align: center; font-size: 14px; color: var(--primary); min-height: 20px; margin: 0; }

/* ============ 页脚 ============ */
.footer { background: #7a0c1e; color: #f0c9cf; padding: 56px 0 32px; }
.footer-inner { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 14px 48px; align-items: start; }
.footer-brand { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; color: #fff; font-weight: 700; font-size: 17px; }
.footer-logo { height: 56px; width: auto; display: block; }
/* 页脚中间：子公司下拉框 */
.footer-subs { min-width: 240px; }
.footer-subs .subs-title { color: #fff; font-size: 15px; margin: 0 0 12px; }
.subs-select {
  width: 100%; appearance: none; -webkit-appearance: none;
  background: rgba(255,255,255,.1) url("data:image/svg+xml;charset=UTF-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23fff' stroke-width='2' fill='none' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat right 12px center;
  border: 1px solid rgba(255,255,255,.35); border-radius: 10px;
  color: #fff; font-size: 14px; padding: 10px 36px 10px 14px; cursor: pointer;
}
.subs-select:focus { outline: none; border-color: #fff; }
.subs-select option { background: #fff; color: #333; }
.subs-info {
  margin-top: 14px; padding: 14px 16px; border-radius: 12px;
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.18);
  color: #fff; font-size: 13.5px; line-height: 1.7; animation: subsFade .25s ease;
}
.subs-info strong { display: block; font-size: 15px; margin-bottom: 4px; }
.subs-info p { margin: 0 0 6px; color: #e6aeb7; }
.subs-line { color: #f0c9cf; }
@keyframes subsFade { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }

/* ============ 品牌展示 ============ */
.brand-showcase { padding: 72px 0 56px; }
.brand-inner { text-align: center; }
.brand-logo { max-width: 400px; width: 72%; height: auto; display: block; margin: 0 auto 26px; }
.brand-name { font-size: 26px; letter-spacing: 3px; margin-bottom: 10px; }
.brand-slogan { color: var(--text-light); letter-spacing: 5px; font-size: 15px; }
.brand-slogan::before, .brand-slogan::after {
  content: ""; display: inline-block; width: 36px; height: 1px;
  background: var(--primary); vertical-align: middle; margin: 0 14px; opacity: .6;
}
.footer-brand p { width: 100%; font-weight: 500; font-size: 20px; color: #f2cdd4; margin: 8px 0 0; letter-spacing: .5px; }
.footer-links { display: flex; gap: 24px; flex-wrap: wrap; }
.footer-links a { color: #f0c9cf; text-decoration: none; font-size: 14px; transition: color .2s; }
.footer-links a:hover { color: #fff; }
/* 页脚多栏（后台「页脚栏目」编辑） */
.footer-cols-multi { display: flex; gap: 48px; flex-wrap: wrap; }
.footer-col { min-width: 140px; }
.footer-col h4 { color: #fff; font-size: 15px; margin: 0 0 12px; }
/* 点击标题才展开链接列表：默认收起只显示白色标题 */
.footer-col h4.footer-col-toggle { cursor: pointer; position: relative; padding-right: 20px; user-select: none; }
.footer-col h4.footer-col-toggle::after {
  content: "▾"; position: absolute; right: 0; top: 50%; transform: translateY(-50%);
  color: rgba(255,255,255,.7); font-size: 12px; transition: transform .2s;
}
.footer-col.open h4.footer-col-toggle::after { transform: translateY(-50%) rotate(180deg); }
.footer-col .footer-col-body { display: none; }
.footer-col.open .footer-col-body { display: block; }
.footer-col .footer-col-item { display: block; color: #f0c9cf; text-decoration: none; font-size: 13.5px; padding: 4px 0; transition: color .2s; }
.footer-col a.footer-col-item:hover { color: #fff; }
.copyright { grid-column: 1 / -1; border-top: 1px solid rgba(255,255,255,.15); padding-top: 14px; font-size: 13px; margin-bottom: 0; text-align: center; }
.footer-legal {
  grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 10px 26px; justify-content: center; text-align: center;
  font-size: 12.5px; color: #e6aeb7; margin-top: -4px;
}
.footer-legal a { color: #f0c9cf; text-decoration: none; border-bottom: 1px dashed rgba(255,255,255,.35); }
.footer-legal a:hover { color: #fff; }

/* ============ 产品中心 ============ */
.filter-bar { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-bottom: 40px; }
.filter-btn {
  padding: 9px 22px; border-radius: 999px; border: 1px solid var(--border);
  background: #fff; color: var(--text-light); font-size: 14px; font-weight: 500;
  cursor: pointer; transition: all .2s;
}
.filter-btn:hover { border-color: var(--primary); color: var(--primary); }
.filter-btn.active { background: var(--primary); border-color: var(--primary); color: #fff; }

.product-card {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  overflow: hidden; display: flex; flex-direction: column; transition: all .3s;
}
.product-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.product-cover {
  height: 140px; display: flex; align-items: center; justify-content: center;
  font-size: 74px; position: relative; cursor: pointer;
  text-shadow: 0 6px 18px rgba(0,0,0,.18);
}
.product-tag {
  position: absolute; top: 14px; left: 14px; padding: 3px 12px; border-radius: 999px;
  background: rgba(255,255,255,.9); font-size: 12px; font-weight: 600; color: var(--text);
  z-index: 2; box-shadow: 0 2px 8px rgba(0,0,0,.12);
}
.product-tag.hot { color: var(--primary); }
.product-body { padding: 22px; flex: 1; display: flex; flex-direction: column; }
.product-body h3 { font-size: 18px; margin-bottom: 6px; }
.product-desc { color: var(--text-light); font-size: 14px; flex: 1; margin-bottom: 16px; }
.product-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.product-price { font-size: 22px; font-weight: 800; color: var(--primary); }
.product-price small { font-size: 12px; font-weight: 400; color: var(--text-light); }
.add-btn {
  padding: 9px 18px; border-radius: 999px; border: none; background: var(--primary);
  color: #fff; font-size: 14px; font-weight: 600; cursor: pointer; transition: all .2s; white-space: nowrap;
}
.add-btn:hover { background: var(--primary-dark); transform: scale(1.04); }
.detail-link { color: var(--primary); font-size: 13px; cursor: pointer; margin-bottom: 8px; display: inline-block; }
.detail-link:hover { text-decoration: underline; }

/* ============ 购物车 ============ */
.cart-fab {
  position: fixed; right: 28px; bottom: 28px; z-index: 90;
  width: 60px; height: 60px; border-radius: 50%; border: none; cursor: pointer;
  background: linear-gradient(135deg, #c8102e, #ef4444); color: #fff; font-size: 24px;
  box-shadow: 0 10px 24px rgba(200,16,46,.4); transition: transform .2s;
}
.cart-fab:hover { transform: scale(1.08); }
.cart-badge {
  position: absolute; top: -4px; right: -4px; min-width: 22px; height: 22px;
  border-radius: 999px; background: #c8102e; color: #fff; font-size: 12px; font-weight: 700;
  display: flex; align-items: center; justify-content: center; padding: 0 5px;
}
.cart-badge.hidden { display: none; }

.cart-mask, .modal-mask {
  position: fixed; inset: 0; background: rgba(15,23,42,.5); z-index: 110;
  opacity: 0; pointer-events: none; transition: opacity .3s;
}
.cart-mask.open, .modal-mask.open { opacity: 1; pointer-events: auto; }

.cart-drawer {
  position: fixed; top: 0; right: -420px; width: 380px; max-width: 92vw; height: 100%;
  background: #fff; z-index: 120; display: flex; flex-direction: column;
  transition: right .35s cubic-bezier(.4,0,.2,1); box-shadow: -8px 0 30px rgba(15,23,42,.15);
}
.cart-drawer.open { right: 0; }
.cart-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px 24px; border-bottom: 1px solid var(--border);
}
.cart-head h3 { font-size: 18px; }
.cart-close { background: none; border: none; font-size: 18px; cursor: pointer; color: var(--text-light); }
.cart-items { flex: 1; overflow-y: auto; padding: 12px 24px; }
.cart-item { display: flex; gap: 12px; padding: 14px 0; border-bottom: 1px dashed var(--border); }
.cart-item-icon {
  width: 48px; height: 48px; border-radius: 12px; display: flex; align-items: center;
  justify-content: center; font-size: 26px; flex-shrink: 0; background: rgba(200,16,46,.08);
  justify-content: center; font-size: 24px; background: var(--bg-alt); flex-shrink: 0;
}
.cart-item-info { flex: 1; min-width: 0; }
.cart-item-info h4 { font-size: 14.5px; margin-bottom: 2px; }
.cart-item-info .ci-price { color: var(--primary); font-weight: 700; font-size: 14px; }
.cart-item-ctrl { display: flex; align-items: center; gap: 8px; margin-top: 8px; }
.qty-btn {
  width: 24px; height: 24px; border-radius: 6px; border: 1px solid var(--border);
  background: #fff; cursor: pointer; font-size: 14px; line-height: 1; color: var(--text);
}
.qty-btn:hover { border-color: var(--primary); color: var(--primary); }
.ci-qty { min-width: 20px; text-align: center; font-size: 14px; font-weight: 600; }
.ci-remove { margin-left: auto; background: none; border: none; color: var(--text-light); cursor: pointer; font-size: 12.5px; }
.ci-remove:hover { color: var(--primary); }
.cart-empty { text-align: center; color: var(--text-light); padding: 40px 0 20px; display: none; }
.cart-empty .btn { margin-top: 12px; }
.cart-drawer.empty .cart-empty { display: block; }
.cart-drawer.empty .cart-items, .cart-drawer.empty .cart-foot { display: none; }
.cart-foot { padding: 20px 24px; border-top: 1px solid var(--border); }
.cart-total-row { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; }
.cart-total-row strong { font-size: 24px; color: var(--primary); }
.order-form { display: flex; flex-direction: column; gap: 10px; margin-bottom: 14px; }
.order-form input {
  padding: 11px 14px; border: 1px solid var(--border); border-radius: 10px;
  font-size: 14px; font-family: inherit; outline: none; transition: border .2s;
}
.order-form input:focus { border-color: var(--primary); }

/* ============ 结算积分抵扣 ============ */
.points-deduct {
  background: var(--bg-alt); border: 1px dashed var(--border);
  border-radius: 10px; padding: 10px 14px; margin-bottom: 14px;
}
.points-deduct .switch { font-size: 13.5px; }
.points-note { margin: 6px 0 0; font-size: 12.5px; color: var(--text-light); }

/* ============ 产品详情弹窗 ============ */
.modal-mask { display: flex; align-items: center; justify-content: center; padding: 24px; }
.modal-card {
  background: #fff; border-radius: var(--radius); max-width: 560px; width: 100%;
  max-height: 88vh; overflow-y: auto; transform: translateY(20px) scale(.97);
  transition: transform .3s;
}
.modal-mask.open .modal-card { transform: none; }
/* ============ 顶部公告条（后台「网站设置」里可开关） ============ */
.notice-bar {
  background: linear-gradient(90deg, var(--primary), var(--primary-dark));
  color: #fff; text-align: center; font-size: 13.5px; padding: 9px 20px;
  font-weight: 500; letter-spacing: .3px;
}
.notice-bar[hidden] { display: none; }

/* ============ 商品图片（后台上传后自动启用） ============ */
.product-cover { overflow: hidden; }
/* 商品卡片：图片完整居中显示（不裁切），四周保留品牌渐变红色封面框 */
.product-cover .cover-img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: contain; padding: 10px; box-sizing: border-box; display: block;
}
.modal-cover .cover-img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block;
}
.modal-cover { position: relative; overflow: hidden; }
.cart-item-icon { overflow: hidden; }
.cart-item-icon img { width: 100%; height: 100%; object-fit: cover; display: block; }

.modal-cover {
  height: 180px; display: flex; align-items: center; justify-content: center;
  font-size: 88px; border-radius: var(--radius) var(--radius) 0 0;
  text-shadow: 0 6px 18px rgba(0,0,0,.18);
}
.modal-body { padding: 28px; }
.modal-body h3 { font-size: 24px; margin-bottom: 6px; }
.modal-price { color: var(--primary); font-weight: 800; font-size: 26px; margin: 10px 0 16px; }
.modal-price small { font-size: 13px; font-weight: 400; color: var(--text-light); }
.modal-desc { color: var(--text-light); font-size: 15px; margin-bottom: 18px; }
.modal-feats { list-style: none; margin-bottom: 22px; }
.modal-feats li { padding: 6px 0; font-size: 14.5px; }
.modal-feats li::before { content: "✓ "; color: var(--primary); font-weight: 700; }
.modal-actions { display: flex; gap: 12px; }
.modal-actions .btn-ghost { cursor: pointer; font-family: inherit; }

/* ============ 动效 ============ */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s ease; }
.reveal.visible { opacity: 1; transform: none; }

/* ============ 响应式 ============ */
@media (max-width: 1100px) {
  .company-name { display: none; }
}
@media (max-width: 960px) {
  .hero-inner, .cta-inner { grid-template-columns: 1fr; }
  .hero h1 { font-size: 38px; }
  .hero-visual { display: none; }
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .nav-cta { display: none; }
  .menu-toggle { display: flex; }
  .nav-links {
    position: absolute; top: 68px; left: 0; right: 0; flex-direction: column;
    background: #fff; padding: 20px 24px; gap: 16px; border-bottom: 1px solid var(--border);
    display: none;
  }
  .nav-links.open { display: flex; }
  .cart-fab { right: 18px; bottom: 18px; width: 54px; height: 54px; font-size: 21px; }
  .logo-img { height: 34px; }
  .brand-logo { width: 84%; max-width: 320px; }
  .brand-name { font-size: 20px; }
}
@media (max-width: 600px) {
  .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .section { padding: 72px 0; }
  .footer-inner { grid-template-columns: 1fr; gap: 20px; }
  .footer-legal { margin-top: -10px; }
}

/* ============ 二级页面（商品详情 / 案例详情） ============ */
.subpage { padding-top: 68px; background: #fff; }

/* 面包屑 */
.crumb-bar { background: var(--bg-alt); border-bottom: 1px solid var(--border); padding: 14px 0; }
.crumb { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; font-size: 13.5px; color: var(--text-light); }
.crumb a { color: var(--text-light); text-decoration: none; }
.crumb a:hover { color: var(--primary); }
.crumb i { color: #d9a5ad; font-style: normal; }
.crumb b { color: var(--text); font-weight: 600; max-width: 320px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ---- 商品详情主体 ---- */
.pdp-section { padding: 48px 0 80px; }
.pdp { display: grid; grid-template-columns: 460px 1fr; gap: 48px; align-items: start; }
.pdp-cover {
  height: 360px; border-radius: var(--radius); display: flex; align-items: center; justify-content: center;
  font-size: 150px; position: relative; overflow: hidden; box-shadow: var(--shadow);
  text-shadow: 0 10px 28px rgba(0,0,0,.2);
}
.pdp-cover .cover-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
/* ---- 详情页大图滑动相册（多图横向滑动，无缩略图） ---- */
.pdp-carousel {
  position: relative; height: 360px; border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow); display: flex; align-items: center; justify-content: center;
  font-size: 150px; text-shadow: 0 10px 28px rgba(0,0,0,.2);
  overflow-x: auto; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.pdp-carousel::-webkit-scrollbar { display: none; }
.pdp-slide { flex: 0 0 100%; width: 100%; height: 100%; scroll-snap-align: center; position: relative; }
.pdp-slide img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.pdp-nav {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 2;
  width: 38px; height: 38px; border-radius: 50%; border: none; cursor: pointer;
  background: rgba(255,255,255,.88); color: #9f0c24; font-size: 24px; line-height: 1;
  box-shadow: 0 2px 10px rgba(0,0,0,.18); opacity: 0; transition: opacity .2s;
}
.pdp-carousel:hover .pdp-nav { opacity: 1; }
.pdp-nav.prev { left: 12px; }
.pdp-nav.next { right: 12px; }
.pdp-dots { position: absolute; bottom: 12px; left: 0; right: 0; display: flex; gap: 6px; justify-content: center; z-index: 2; }
.pdp-dots i { width: 8px; height: 8px; border-radius: 4px; background: rgba(255,255,255,.55); cursor: pointer; transition: all .2s; }
.pdp-dots i.on { background: #fff; width: 22px; }
.pdp-service-chips { display: flex; gap: 10px; margin-top: 12px; flex-wrap: wrap; }
.pdp-service-chips span { flex: 1; text-align: center; background: #fff; border: 2px solid var(--border); border-radius: 12px; padding: 10px 6px; font-size: 13px; font-weight: 600; color: var(--text-light); }

.pdp-tags { display: flex; gap: 8px; margin-bottom: 14px; }
.pdp-name { font-size: 30px; line-height: 1.25; margin-bottom: 10px; }
.pdp-desc { color: var(--text-light); font-size: 15.5px; line-height: 1.7; margin-bottom: 20px; }
.pdp-price-box {
  display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap;
  background: var(--bg-alt); border-radius: 14px; padding: 18px 22px; margin-bottom: 20px;
}
.pdp-price { font-size: 36px; font-weight: 800; color: var(--primary); }
.pdp-unit { color: var(--text-light); font-size: 14px; }
.pdp-promo { margin-left: auto; font-size: 13px; color: var(--primary); font-weight: 600; }
.pdp-feats { list-style: none; columns: 2; column-gap: 24px; margin-bottom: 24px; }
.pdp-feats li { padding: 5px 0; font-size: 14.5px; break-inside: avoid; }
.pdp-feats li::before { content: "✓ "; color: var(--primary); font-weight: 700; }

.pdp-buy { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-bottom: 22px; }
.qty {
  display: flex; align-items: center; border: 1px solid var(--border); border-radius: 12px; overflow: hidden;
}
.qty button {
  width: 42px; height: 46px; border: none; background: #fff; font-size: 18px; cursor: pointer; color: var(--text);
}
.qty button:hover { color: var(--primary); }
.qty input {
  width: 52px; height: 46px; text-align: center; border: none; border-left: 1px solid var(--border);
  border-right: 1px solid var(--border); font-size: 15px; font-weight: 600; outline: none; font-family: inherit;
}
.pdp-service { display: flex; flex-wrap: wrap; gap: 10px 22px; color: var(--text-light); font-size: 13.5px; padding-top: 16px; border-top: 1px dashed var(--border); }

/* 详情选项卡 */
.pdp-tabs { margin-top: 64px; }
.tab-bar { display: flex; gap: 8px; border-bottom: 2px solid var(--border); margin-bottom: 28px; }
.tab-btn {
  padding: 12px 26px; border: none; background: none; font-size: 15.5px; font-weight: 600;
  color: var(--text-light); cursor: pointer; border-bottom: 2px solid transparent; margin-bottom: -2px; font-family: inherit;
}
.tab-btn:hover { color: var(--primary); }
.tab-btn.active { color: var(--primary); border-bottom-color: var(--primary); }
.tab-panel { display: none; font-size: 15px; line-height: 1.9; color: var(--text); }
.tab-panel.active { display: block; animation: fadeIn .35s ease; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.tab-panel h3 { font-size: 17px; margin: 18px 0 8px; }
.tab-panel ul { padding-left: 4px; list-style: none; }
.tab-panel li { padding: 4px 0; }
.tab-panel li::before { content: "· "; color: var(--primary); font-weight: 800; }
.pdp-lead { font-size: 16.5px; margin-bottom: 20px; }
.pdp-intro-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 10px; }
.intro-card { background: var(--bg-alt); border-radius: 14px; padding: 18px 20px; font-size: 14px; color: var(--text-light); line-height: 1.8; }
.intro-card b { display: block; color: var(--text); font-size: 15px; margin-bottom: 6px; }
.spec-table { width: 100%; max-width: 720px; border-collapse: collapse; }
.spec-table th, .spec-table td { text-align: left; padding: 12px 16px; border-bottom: 1px solid var(--border); font-size: 14.5px; vertical-align: top; }
.spec-table th { width: 130px; color: var(--text-light); font-weight: 600; background: var(--bg-alt); }

/* 相关推荐 */
.rel-wrap { margin-top: 72px; }
.rel-wrap .product-cover { cursor: pointer; }

/* 未找到 */
.pdp-miss { text-align: center; padding: 70px 20px; }
.pdp-miss-icon { font-size: 64px; margin-bottom: 12px; }
.pdp-miss h2 { font-size: 24px; margin-bottom: 10px; }
.pdp-miss p { color: var(--text-light); margin-bottom: 24px; }

/* 加购提示 */
.toast {
  position: fixed; left: 50%; bottom: 110px; transform: translateX(-50%) translateY(20px);
  background: rgba(15,23,42,.88); color: #fff; padding: 12px 26px; border-radius: 999px;
  font-size: 14.5px; opacity: 0; pointer-events: none; transition: all .3s; z-index: 200;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ---- 案例详情页 ---- */
.case-article { max-width: 860px; margin: 0 auto; }
.case-banner {
  height: 260px; border-radius: var(--radius); display: flex; align-items: flex-end; padding: 28px;
  color: #fff; font-size: 26px; font-weight: 800; letter-spacing: 2px; box-shadow: var(--shadow);
}
.case-head { padding: 36px 8px 8px; }
.case-head h1 { font-size: 30px; margin-bottom: 10px; }
.case-sum { color: var(--text-light); font-size: 16px; margin-bottom: 16px; }
.case-meta { display: flex; flex-wrap: wrap; gap: 10px; }
.case-meta span {
  background: var(--bg-alt); color: var(--primary); font-size: 13px; font-weight: 600;
  padding: 6px 16px; border-radius: 999px;
}
.case-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin: 36px 0; }
.case-stat {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark)); color: #fff;
  border-radius: 16px; padding: 24px 18px; text-align: center;
}
.case-stat b { display: block; font-size: 30px; font-weight: 800; margin-bottom: 4px; }
.case-stat span { font-size: 13.5px; opacity: .9; }
.case-body-blocks { display: flex; flex-direction: column; gap: 26px; }
.case-block { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 28px 32px; }
.case-block h2 { font-size: 19px; margin-bottom: 10px; padding-left: 14px; border-left: 4px solid var(--primary); }
.case-block p { color: var(--text-light); line-height: 1.9; font-size: 15px; }
.case-cta { text-align: center; margin-top: 48px; padding: 36px 20px; background: var(--bg-alt); border-radius: var(--radius); }
.case-cta p { font-size: 16.5px; font-weight: 600; margin-bottom: 18px; }

/* ---- 二级页面响应式 ---- */
@media (max-width: 960px) {
  .pdp { grid-template-columns: 1fr; gap: 28px; }
  .pdp-cover, .pdp-carousel { height: 280px; font-size: 120px; }
  .pdp-name { font-size: 24px; }
  .pdp-feats { columns: 1; }
  .pdp-intro-cards { grid-template-columns: 1fr; }
  .pdp-section { padding: 32px 0 64px; }
  .crumb b { max-width: 160px; }
}
@media (max-width: 600px) {
  .case-stats { grid-template-columns: 1fr; }
  .case-banner { height: 190px; font-size: 21px; }
  .pdp-buy .btn { flex: 1; }
  .pdp-nav { opacity: 1; width: 32px; height: 32px; }
}

/* ============ 支付方式选择（购物车内） ============ */
.pay-methods { margin-bottom: 14px; }
.pm-label { margin: 0 0 8px; font-size: 13px; font-weight: 700; color: var(--text); }
.pm-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.pm-item {
  display: flex; align-items: center; gap: 6px;
  border: 1.5px solid var(--border); border-radius: 10px;
  padding: 9px 10px; font-size: 13px; cursor: pointer;
  color: var(--text); transition: all .15s; user-select: none;
}
.pm-item input { display: none; }
.pm-ico { font-size: 16px; }
.pm-item.on {
  border-color: var(--primary); background: rgba(200, 16, 46, 0.06);
  color: var(--primary); font-weight: 700;
}
@media (max-width: 420px) {
  .pm-grid { grid-template-columns: repeat(2, 1fr); }
  .pm-item { padding: 8px 6px; font-size: 12px; }
}

/* ============ 支付弹窗（下单成功后） ============ */
.pay-modal {
  position: fixed; inset: 0; z-index: 200;
  display: none; align-items: center; justify-content: center; padding: 20px;
  background: rgba(15, 23, 42, 0.55); backdrop-filter: blur(4px);
}
.pay-modal.open { display: flex; }
.pay-card {
  background: #fff; border-radius: var(--radius); max-width: 400px; width: 100%;
  max-height: 86vh; overflow: auto; box-shadow: 0 24px 60px rgba(0,0,0,.25);
  animation: popIn .22s ease;
}
@keyframes popIn { from { transform: scale(.92); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.pay-card-head {
  background: linear-gradient(135deg, var(--primary), #e11d48); color: #fff;
  padding: 20px 22px; text-align: center;
}
.pay-card-head h3 { margin: 0 0 6px; font-size: 18px; }
.pay-card-head .pay-amount { font-size: 30px; font-weight: 800; letter-spacing: .5px; }
.pay-card-head .pay-orno { font-size: 12.5px; opacity: .9; margin-top: 4px; }
.pay-card-body { padding: 20px 22px 24px; text-align: center; }
.pay-qr {
  width: 226px; height: 226px; margin: 0 auto 12px; box-sizing: border-box;
  border: 2px solid var(--primary); border-radius: 14px; overflow: hidden;
  background: #fff; padding: 8px; box-shadow: 0 0 0 5px var(--bg-red-soft, #fdf2f3);
}
.pay-qr img { width: 100%; height: 100%; object-fit: contain; display: block; }
.pay-qr-empty {
  width: 226px; height: 226px; margin: 0 auto 12px; box-sizing: border-box;
  border: 2px dashed #e8b7bf; border-radius: 14px; box-shadow: 0 0 0 5px #fdf2f3; display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 8px; color: var(--text-light); font-size: 13px; padding: 12px;
}
.pay-qr-empty .big { font-size: 40px; }
.pay-qr-empty a { color: var(--primary); font-weight: 700; text-decoration: none; }
.pay-bank {
  text-align: left; background: var(--bg-alt); border-radius: 12px;
  padding: 14px 16px; margin-bottom: 12px; font-size: 13.5px; line-height: 1.9;
}
.pay-bank b { color: var(--text); }
.pay-bank .acct { font-size: 16px; font-weight: 800; color: var(--primary); letter-spacing: .5px; }
.pay-note { font-size: 12.5px; color: var(--text-light); line-height: 1.8; margin: 0 0 14px; }
.pay-note b { color: var(--primary); }

/* ============ 会员中心 ============ */
.member-main { min-height: calc(100vh - 380px); padding: 120px 0 80px; }
.hidden { display: none !important; }
.m-loading, .m-tip-err { text-align: center; color: var(--text-light); padding: 40px 0; }

/* 登录 / 注册卡片 */
.auth-wrap { display: flex; justify-content: center; }
.auth-card {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 32px 34px 28px; width: 100%; max-width: 420px;
}
.auth-tabs { display: flex; gap: 8px; margin-bottom: 24px; background: var(--bg-alt); border-radius: 12px; padding: 5px; }
.auth-tab {
  flex: 1; padding: 10px; border: none; background: transparent; border-radius: 9px;
  font-size: 14.5px; font-weight: 700; color: var(--text-light); cursor: pointer; transition: all .15s;
}
.auth-tab.on { background: #fff; color: var(--primary); box-shadow: 0 2px 8px rgba(200,16,46,.12); }
.auth-form { display: flex; flex-direction: column; gap: 12px; }
.auth-form input {
  padding: 13px 15px; border: 1.5px solid var(--border); border-radius: 10px;
  font-size: 15px; outline: none; transition: border-color .15s; font-family: inherit;
}
.auth-form input:focus { border-color: var(--primary); }
.auth-tip { text-align: center; font-size: 13px; min-height: 18px; margin: 4px 0 0; }
.auth-note { font-size: 12.5px; color: var(--text-light); line-height: 1.8; text-align: center; margin: 4px 0 0; }
.auth-note b { color: var(--primary); }

/* 会员头部 */
.member-hero {
  background: linear-gradient(135deg, var(--primary), #e11d48); color: #fff;
  border-radius: var(--radius); padding: 26px 30px; margin-bottom: 22px;
  display: flex; align-items: center; gap: 26px; flex-wrap: wrap; box-shadow: 0 12px 28px rgba(200,16,46,.25);
}
.mh-hello { margin: 0 0 4px; font-size: 21px; font-weight: 800; }
.mh-sub { margin: 0; opacity: .85; font-size: 13.5px; }
.mh-points { margin-left: auto; text-align: center; }
.mh-points b { display: block; font-size: 34px; font-weight: 800; line-height: 1.1; }
.mh-points span { font-size: 12.5px; opacity: .9; }
.member-hero .btn-ghost { color: #fff; border-color: rgba(255,255,255,.6); }
.member-hero .btn-ghost:hover { background: rgba(255,255,255,.15); }
.mh-tier {
  display: inline-block; margin-top: 8px; padding: 4px 12px; border-radius: 999px;
  background: rgba(255,255,255,.22); color: #fff; font-size: 12.5px; font-weight: 700; letter-spacing: .5px;
}

/* 会员等级 */
.tier-progress {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  padding: 20px 22px; margin-bottom: 18px;
}
.tp-head { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: 14px; margin-bottom: 12px; }
.tp-bar { height: 10px; border-radius: 999px; background: #f1f5f9; overflow: hidden; }
.tp-bar i { display: block; height: 100%; border-radius: 999px; transition: width .4s; }
.tp-note { margin: 10px 0 0; font-size: 12.5px; color: var(--text-light); }
.tier-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; }
.tier-card {
  position: relative; background: #fff; border: 1.5px solid var(--border); border-radius: var(--radius);
  padding: 20px 12px 16px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 6px;
}
.tier-card.on { border-color: var(--tc); box-shadow: 0 8px 20px rgba(200,16,46,.10); }
.tc-crown { font-size: 24px; }
.tc-name { font-size: 14.5px; font-weight: 800; color: var(--tc); }
.tc-range { font-size: 12px; color: var(--text-light); }
.tc-now {
  position: absolute; top: -10px; left: 50%; transform: translateX(-50%);
  background: var(--tc); color: #fff; font-size: 11px; font-weight: 700;
  padding: 2px 10px; border-radius: 999px; white-space: nowrap;
}

/* 面板 Tab */
.m-tabs { display: flex; gap: 8px; margin-bottom: 18px; flex-wrap: wrap; }
.m-tab {
  padding: 11px 22px; border: 1.5px solid var(--border); background: #fff; border-radius: 999px;
  font-size: 14.5px; font-weight: 700; color: var(--text-light); cursor: pointer; transition: all .15s;
}
.m-tab.on { border-color: var(--primary); color: var(--primary); background: rgba(200,16,46,.06); }

/* 订单卡片 */
.m-order { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 18px 22px; margin-bottom: 14px; }
.mo-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 10px; }
.mo-no { font-size: 15px; }
.mo-date { display: block; font-size: 12.5px; color: var(--text-light); margin-top: 2px; }
.mo-status { font-size: 12.5px; font-weight: 700; padding: 4px 12px; border-radius: 999px; }
.mo-status.s0 { background: rgba(200,16,46,.1); color: var(--primary); }
.mo-status.s1 { background: rgba(159,12,36,.1); color: #9f0c24; }
.mo-status.s2 { background: rgba(225,29,72,.12); color: #e11d48; }
.mo-status.s3 { background: rgba(22,163,74,.1); color: #16a34a; }
.mo-status.s4 { background: #f1f5f9; color: #94a3b8; }
.mo-items { border-top: 1px dashed var(--border); padding: 12px 0; font-size: 13.5px; color: var(--text); line-height: 1.9; }
.mo-foot { display: flex; justify-content: space-between; align-items: center; font-size: 13px; color: var(--text-light); }
.mo-foot b { font-size: 17px; color: var(--primary); }

/* 积分明细 */
.m-log-list { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.m-log { display: flex; justify-content: space-between; align-items: center; padding: 14px 20px; border-bottom: 1px solid var(--border); }
.m-log:last-child { border-bottom: none; }
.m-log b { display: block; font-size: 14px; }
.m-log .mo-date { margin-top: 3px; }
.m-log .plus { color: #16a34a; font-size: 16px; }
.m-log .minus { color: var(--primary); font-size: 16px; }

/* 积分兑换 */
.redeem-note { font-size: 13.5px; color: var(--text-light); margin: 0 0 16px; }
.redeem-note b { color: var(--primary); }
.redeem-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.redeem-card {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  padding: 22px 20px; text-align: center; display: flex; flex-direction: column; gap: 10px; align-items: center;
}
.rc-name { font-size: 15px; font-weight: 700; }
.rc-points { font-size: 13px; color: var(--text-light); }
.rc-points b { font-size: 24px; color: var(--primary); font-weight: 800; margin-right: 4px; }
.redeem-card .btn[disabled] { opacity: .55; cursor: not-allowed; }

/* 会员页空态 */
.m-empty { text-align: center; padding: 50px 20px; color: var(--text-light); }
.m-empty .big { font-size: 44px; display: block; margin-bottom: 10px; }
.m-empty p { margin: 0 0 16px; }

@media (max-width: 640px) {
  .member-main { padding: 100px 0 60px; }
  .member-hero { padding: 22px; gap: 16px; }
  .mh-points { margin-left: 0; }
  .redeem-grid { grid-template-columns: 1fr; }
  .tier-grid { grid-template-columns: repeat(2, 1fr); }
  .auth-card { padding: 26px 20px 22px; }
}


