/* ============================================================
   风陵渡口 FENGLING DUKOU — 主样式
   户外运动 × 日常通勤：墨绿 / 米白 / 赭石
   ============================================================ */
:root {
  --ink: #22382C;
  --ink-deep: #12231B;
  --paper: #F5F0E6;
  --paper-2: #EDE5D5;
  --ochre: #B0713C;
  --gray: #6E6A5E;
  --line: #DDD3C0;
  --white: #FFFDF8;
  --red: #B4432F;
  --font-h: "Noto Serif SC", "Source Han Serif SC", Georgia, "SimSun", serif;
  --font-b: "Noto Sans SC", "Microsoft YaHei", "PingFang SC", "Helvetica Neue", Arial, sans-serif;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-b);
  background: var(--white);
  color: #2B2B28;
  line-height: 1.6;
  font-size: 15px;
}
img { max-width: 100%; display: block; }
a { color: var(--ink); text-decoration: none; }
a:hover { color: var(--ochre); }
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
h1, h2, h3, .serif { font-family: var(--font-h); }

/* ---------- 头部导航 ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 253, 248, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.nav {
  display: flex; align-items: center; justify-content: space-between;
  height: 66px;
}
.brand { display: flex; align-items: baseline; gap: 10px; }
.brand-cn { font-family: var(--font-h); font-size: 22px; font-weight: 700; letter-spacing: 4px; color: var(--ink); }
.brand-en { font-size: 11px; letter-spacing: 2px; color: var(--gray); text-transform: uppercase; }
.nav-links { display: flex; align-items: center; gap: 26px; }
.nav-links a { font-size: 14px; color: #3A3A36; letter-spacing: 1px; }
.nav-links a:hover, .nav-links a.active { color: var(--ochre); }
.nav-actions { display: flex; align-items: center; gap: 14px; }
.lang-btn {
  background: none; border: 1px solid var(--ink); color: var(--ink);
  padding: 4px 12px; font-size: 12px; cursor: pointer; border-radius: 2px;
  font-family: var(--font-b); letter-spacing: 1px;
}
.lang-btn:hover { background: var(--ink); color: var(--white); }
.cart-link { position: relative; font-size: 13px; color: var(--ink); display: flex; align-items: center; gap: 4px; }
.cart-badge {
  display: none; align-items: center; justify-content: center;
  min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px;
  background: var(--ochre); color: #fff; font-size: 11px;
}

/* ---------- Hero ---------- */
.hero {
  position: relative; height: 72vh; min-height: 460px;
  background: var(--ink-deep) url("../images/hero.svg") center/cover no-repeat;
  display: flex; align-items: center;
}
.hero-inner { color: var(--paper); max-width: 640px; }
.hero h1 { font-size: 52px; letter-spacing: 8px; margin-bottom: 18px; }
.hero p { font-size: 16px; color: rgba(245, 240, 230, 0.85); margin-bottom: 30px; letter-spacing: 1px; }
.btn {
  display: inline-block; padding: 12px 30px; font-size: 14px; letter-spacing: 2px;
  border: 1px solid var(--ink); background: var(--ink); color: var(--white);
  cursor: pointer; transition: all 0.2s; font-family: var(--font-b);
}
.btn:hover { background: var(--ochre); border-color: var(--ochre); color: #fff; }
.btn-light { background: transparent; border-color: var(--paper); color: var(--paper); }
.btn-light:hover { background: var(--paper); color: var(--ink); }
.btn-block { display: block; width: 100%; text-align: center; }
.btn-sm { padding: 8px 18px; font-size: 13px; }
.btn:disabled { opacity: 0.5; cursor: not-allowed; }

/* ---------- Section ---------- */
.section { padding: 70px 0; }
.section-head { text-align: center; margin-bottom: 44px; }
.section-head h2 { font-size: 30px; letter-spacing: 4px; color: var(--ink); }
.section-head .sub { color: var(--gray); font-size: 14px; letter-spacing: 2px; margin-top: 8px; text-transform: uppercase; }
.section-alt { background: var(--paper); }

/* ---------- 产品卡片 ---------- */
.product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 26px; }
.product-card {
  background: var(--white); border: 1px solid var(--line); overflow: hidden;
  transition: transform 0.2s, box-shadow 0.2s; position: relative;
}
.product-card:hover { transform: translateY(-4px); box-shadow: 0 10px 26px rgba(18, 35, 27, 0.12); }
.product-card .thumb { aspect-ratio: 4/5; overflow: hidden; background: var(--paper-2); }
.product-card .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s; }
.product-card:hover .thumb img { transform: scale(1.04); }
.product-card .tag {
  position: absolute; top: 12px; left: 12px; background: var(--ochre); color: #fff;
  font-size: 11px; padding: 3px 10px; letter-spacing: 1px;
}
.product-card .tag.tag-new { background: var(--ink); }
.card-body { padding: 16px 16px 20px; }
.card-body h3 { font-size: 16px; letter-spacing: 1px; margin-bottom: 4px; }
.card-body .cat { font-size: 11px; color: var(--gray); letter-spacing: 1px; text-transform: uppercase; }
.card-body .price { margin-top: 10px; font-size: 17px; color: var(--ink); font-weight: 700; }
.card-body .price .old { font-size: 13px; color: var(--gray); text-decoration: line-through; font-weight: 400; margin-left: 8px; }
.card-body .price .off { font-size: 12px; color: var(--red); margin-left: 6px; }

/* ---------- 详情页 ---------- */
.detail-wrap { display: grid; grid-template-columns: 1.1fr 1fr; gap: 44px; padding: 50px 0; }
.gallery .main-img { aspect-ratio: 4/5; background: var(--paper-2); overflow: hidden; border: 1px solid var(--line); }
.gallery .main-img img { width: 100%; height: 100%; object-fit: cover; }
.gallery .thumbs { display: flex; gap: 10px; margin-top: 12px; }
.gallery .thumbs img {
  width: 76px; height: 95px; object-fit: cover; cursor: pointer;
  border: 2px solid transparent; opacity: 0.7;
}
.gallery .thumbs img.active { border-color: var(--ochre); opacity: 1; }
.detail-info h1 { font-size: 28px; letter-spacing: 2px; color: var(--ink); }
.detail-info .en-name { color: var(--gray); font-size: 13px; letter-spacing: 1px; margin-top: 4px; text-transform: uppercase; }
.detail-info .price-row { margin: 18px 0; font-size: 26px; font-weight: 700; color: var(--ink); }
.detail-info .price-row .old { font-size: 15px; color: var(--gray); text-decoration: line-through; font-weight: 400; margin-left: 10px; }
.opt-block { margin: 18px 0; }
.opt-label { font-size: 13px; color: var(--gray); margin-bottom: 8px; letter-spacing: 1px; }
.opt-label span { color: var(--red); }
.swatches, .sizes { display: flex; flex-wrap: wrap; gap: 10px; }
.swatch {
  width: 34px; height: 34px; border-radius: 50%; border: 2px solid #fff;
  box-shadow: 0 0 0 1px var(--line); cursor: pointer; position: relative;
}
.swatch.active { box-shadow: 0 0 0 2px var(--ochre); }
.swatch .tip {
  position: absolute; bottom: -24px; left: 50%; transform: translateX(-50%);
  background: var(--ink); color: #fff; font-size: 10px; padding: 1px 6px;
  white-space: nowrap; opacity: 0; pointer-events: none;
}
.swatch.active .tip { opacity: 1; }
.size-btn {
  min-width: 44px; padding: 8px 12px; border: 1px solid var(--line);
  background: #fff; font-size: 13px; cursor: pointer; color: #333; text-align: center;
}
.size-btn.active { background: var(--ink); color: #fff; border-color: var(--ink); }
.qty-row { display: flex; align-items: center; gap: 12px; margin: 20px 0; }
.qty-btn {
  width: 34px; height: 34px; border: 1px solid var(--line); background: #fff;
  font-size: 16px; cursor: pointer;
}
.qty-input { width: 56px; height: 34px; text-align: center; border: 1px solid var(--line); font-size: 14px; }
.buy-row { display: flex; gap: 14px; margin-top: 24px; }
.buy-row .btn { flex: 1; text-align: center; }
.feature-list { margin: 16px 0 0; list-style: none; }
.feature-list li { padding: 7px 0 7px 24px; position: relative; font-size: 14px; color: #444; }
.feature-list li::before {
  content: ""; position: absolute; left: 0; top: 14px; width: 8px; height: 8px;
  background: var(--ochre); transform: rotate(45deg);
}
.tabs { margin-top: 44px; border-top: 1px solid var(--line); }
.tab-head { display: flex; gap: 30px; }
.tab-btn {
  background: none; border: none; font-size: 15px; letter-spacing: 2px;
  padding: 16px 4px; cursor: pointer; color: var(--gray);
  border-bottom: 2px solid transparent; font-family: var(--font-h);
}
.tab-btn.active { color: var(--ink); border-bottom-color: var(--ochre); }
.tab-panel { display: none; padding: 26px 4px; }
.tab-panel.active { display: block; }
.detail-imgs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 14px; }
.detail-imgs img { width: 100%; aspect-ratio: 1/1; object-fit: cover; border: 1px solid var(--line); }
.info-table { width: 100%; border-collapse: collapse; }
.info-table td { padding: 12px 4px; border-bottom: 1px solid var(--line); font-size: 14px; vertical-align: top; }
.info-table td:first-child { color: var(--gray); width: 120px; letter-spacing: 1px; }

/* ---------- 购物车 ---------- */
.cart-table { width: 100%; border-collapse: collapse; margin: 30px 0; }
.cart-table th { text-align: left; padding: 12px; border-bottom: 2px solid var(--ink); font-size: 13px; color: var(--gray); letter-spacing: 1px; }
.cart-table td { padding: 16px 12px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.cart-item { display: flex; gap: 14px; align-items: center; }
.cart-item img { width: 72px; height: 90px; object-fit: cover; border: 1px solid var(--line); }
.cart-item .meta { font-size: 13px; color: var(--gray); }
.cart-empty { text-align: center; padding: 80px 0; }
.cart-empty .btn { margin-top: 20px; }
.summary-box {
  border: 1px solid var(--line); background: var(--paper); padding: 26px; max-width: 380px; margin-left: auto;
}
.summary-box .row { display: flex; justify-content: space-between; padding: 8px 0; font-size: 14px; }
.summary-box .row.total { border-top: 1px solid var(--line); margin-top: 10px; padding-top: 14px; font-size: 18px; font-weight: 700; color: var(--ink); }

/* ---------- 结算 ---------- */
.checkout-wrap { display: grid; grid-template-columns: 1.2fr 1fr; gap: 44px; padding: 50px 0; }
.form-group { margin-bottom: 18px; }
.form-group label { display: block; font-size: 13px; color: var(--gray); margin-bottom: 6px; letter-spacing: 1px; }
.form-group input, .form-group textarea, .form-group select {
  width: 100%; padding: 12px 14px; border: 1px solid var(--line);
  font-size: 14px; font-family: var(--font-b); background: #fff; color: #333;
}
.form-group input:focus, .form-group textarea:focus { outline: none; border-color: var(--ink); }
.pay-options { display: flex; flex-direction: column; gap: 10px; }
.pay-opt {
  display: flex; align-items: center; gap: 12px; border: 1px solid var(--line);
  padding: 14px; cursor: pointer; background: #fff; font-size: 14px;
}
.pay-opt input { accent-color: var(--ink); }
.pay-opt.active { border-color: var(--ink); background: var(--paper); }
.pay-logo { width: 22px; height: 22px; border-radius: 4px; display: inline-flex; align-items: center; justify-content: center; color: #fff; font-size: 11px; font-weight: 700; }
.pay-alipay { background: #1677FF; }
.pay-wechat { background: #07C160; }
.pay-cod { background: var(--gray); }

/* ---------- 订单成功 ---------- */
.success-box { text-align: center; padding: 90px 0; max-width: 560px; margin: 0 auto; }
.success-icon {
  width: 72px; height: 72px; border-radius: 50%; background: var(--ink); color: var(--paper);
  font-size: 36px; display: flex; align-items: center; justify-content: center; margin: 0 auto 24px;
}
.success-box h1 { font-size: 28px; letter-spacing: 3px; color: var(--ink); margin-bottom: 14px; }
.order-no { font-size: 15px; color: var(--gray); margin-bottom: 30px; }
.qr-box {
  border: 1px dashed var(--line); padding: 24px; background: var(--paper);
  margin: 26px 0;
}
.qr-box img { width: 180px; height: 180px; margin: 0 auto 14px; }
.qr-box .note { font-size: 12px; color: var(--gray); }
.demo-note {
  background: var(--paper-2); border: 1px solid var(--line); color: #5A5245;
  font-size: 12px; padding: 8px 12px; margin-top: 16px;
}

/* ---------- 页脚 ---------- */
.site-footer { background: var(--ink-deep); color: rgba(245, 240, 230, 0.75); padding: 44px 0 30px; margin-top: 40px; }
.site-footer .brand-cn { color: var(--paper); }
.site-footer .col p { font-size: 13px; margin-top: 10px; }
.footer-bottom { border-top: 1px solid rgba(245, 240, 230, 0.15); margin-top: 26px; padding-top: 18px; font-size: 12px; text-align: center; }

/* ---------- Toast ---------- */
.toast {
  position: fixed; top: 80px; left: 50%; transform: translateX(-50%) translateY(-20px);
  background: var(--ink); color: var(--white); padding: 12px 26px; font-size: 14px;
  border-radius: 2px; opacity: 0; pointer-events: none; transition: all 0.25s; z-index: 999;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ---------- 响应式 ---------- */
@media (max-width: 860px) {
  .nav-links { display: none; }
  .detail-wrap, .checkout-wrap { grid-template-columns: 1fr; }
  .hero h1 { font-size: 34px; }
  .cart-table thead { display: none; }
  .cart-table, .cart-table tbody, .cart-table tr, .cart-table td { display: block; }
  .cart-table td { border: none; }
}

/* ---------- 三大系列展示 ---------- */
.series-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.series-card {
  position: relative; overflow: hidden; border: 1px solid var(--line);
  background: var(--ink-deep); display: block; color: var(--paper);
}
.series-card .s-img { width: 100%; aspect-ratio: 3/4; object-fit: cover; opacity: 0.9; transition: transform 0.5s; }
.series-card:hover .s-img { transform: scale(1.05); }
.series-card .s-body {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 26px 22px 22px;
  background: linear-gradient(to top, rgba(18,35,27,0.92), rgba(18,35,27,0.15) 70%, transparent);
}
.series-card .s-name { font-family: var(--font-h); font-size: 22px; letter-spacing: 3px; color: var(--paper); }
.series-card .s-en { font-size: 11px; letter-spacing: 2px; color: rgba(245,240,230,0.7); text-transform: uppercase; margin-top: 4px; }
.series-card .s-poem { font-family: var(--font-h); font-size: 13px; color: rgba(245,240,230,0.85); margin-top: 12px; letter-spacing: 1px; line-height: 1.7; }
.series-card .s-link { display: inline-block; margin-top: 14px; font-size: 12px; letter-spacing: 2px; color: var(--ochre); border-bottom: 1px solid var(--ochre); padding-bottom: 2px; }
@media (max-width: 860px) { .series-grid { grid-template-columns: 1fr; } }

/* ---------- Hero 实景背景 ---------- */
.hero { background: var(--ink-deep) url("../images/products/c1-1.jpg") center/cover no-repeat; }
.hero::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(100deg, rgba(18,35,27,0.92) 0%, rgba(18,35,27,0.55) 55%, rgba(18,35,27,0.25) 100%);
}
.hero-inner { position: relative; z-index: 2; }
.hero-cutout {
  position: absolute; right: 4%; bottom: 0; z-index: 2; width: 30%; max-width: 380px;
  filter: drop-shadow(0 18px 30px rgba(0,0,0,0.45));
  animation: floaty 5s ease-in-out infinite;
}
@keyframes floaty { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-14px); } }
@media (max-width: 860px) { .hero-cutout { display: none; } }

/* ---------- 视频与实拍 ---------- */
.video-box { background: #000; }
.video-box video { width: 100%; max-height: 70vh; display: block; }
.raw-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.raw-grid img { width: 100%; aspect-ratio: 3/4; object-fit: cover; border: 1px solid var(--line); }
@media (max-width: 860px) { .raw-grid { grid-template-columns: repeat(2, 1fr); } }
.gallery .thumbs { overflow-x: auto; padding-bottom: 6px; }
.size-chart-title { font-family: var(--font-h); font-size: 16px; color: var(--ink); margin: 18px 0 8px; letter-spacing: 2px; }

/* ---------- 买家留言 / 买家秀 ---------- */
.social-box { border: 1px solid var(--line); background: var(--paper); padding: 26px; margin: 34px 0; }
.social-title { font-family: var(--font-h); font-size: 20px; letter-spacing: 3px; color: var(--ink); margin-bottom: 18px; border-left: 4px solid var(--ochre); padding-left: 12px; }
.social-form { background: #fff; border: 1px solid var(--line); padding: 16px; margin-bottom: 18px; }
.social-form textarea { width: 100%; border: 1px solid var(--line); padding: 10px 12px; font-size: 13px; font-family: var(--font-b); margin-bottom: 10px; resize: vertical; }
.verify-panel { background: #fff; border: 1px dashed var(--line); padding: 16px; }
.v-title { font-weight: 700; color: var(--ink); font-size: 14px; letter-spacing: 1px; }
.v-desc { font-size: 12px; color: var(--gray); margin: 6px 0 12px; line-height: 1.7; }
.v-form { display: flex; gap: 10px; flex-wrap: wrap; }
.v-form input { flex: 1; min-width: 140px; border: 1px solid var(--line); padding: 9px 12px; font-size: 13px; font-family: var(--font-b); }
.v-msg { font-size: 12px; margin-top: 8px; min-height: 16px; color: var(--gray); }
.v-ok { color: #1E7A3C; font-size: 13px; font-weight: 700; margin-bottom: 10px; }
.comment-item { padding: 12px 0; border-bottom: 1px solid var(--line); }
.comment-item:last-child { border-bottom: none; }
.c-head { display: flex; justify-content: space-between; font-size: 12px; }
.c-author { color: var(--ink); font-weight: 700; }
.c-date { color: var(--gray); }
.c-text { font-size: 14px; margin-top: 6px; line-height: 1.8; color: #444; }
.social-empty { text-align: center; color: var(--gray); padding: 26px 0; font-size: 13px; }
.show-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.show-item { border: 1px solid var(--line); background: #fff; overflow: hidden; }
.show-item img { width: 100%; aspect-ratio: 1/1; object-fit: cover; cursor: zoom-in; }
.show-meta { display: flex; justify-content: space-between; padding: 6px 10px; font-size: 11px; color: var(--gray); }
.show-text { padding: 0 10px 10px; font-size: 12px; color: #444; }
.bs-file { margin-bottom: 10px; }

/* ---------- 买家社区（贴吧式） ---------- */
.forum-new { text-align: right; margin-bottom: 18px; }
.forum-post { background: #fff; border: 1px solid var(--line); margin-bottom: 16px; }
.fp-head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; padding: 16px 20px 8px; flex-wrap: wrap; }
.fp-head h3 { font-size: 16px; color: var(--ink); letter-spacing: 1px; }
.fp-meta { font-size: 12px; color: var(--gray); }
.fp-body { padding: 4px 20px 14px; font-size: 14px; color: #444; line-height: 1.9; white-space: pre-wrap; }
.fp-imgs { display: flex; gap: 10px; flex-wrap: wrap; padding: 0 20px 12px; }
.fp-imgs img { width: 120px; height: 120px; object-fit: cover; border: 1px solid var(--line); cursor: zoom-in; }
.fp-replies { border-top: 1px dashed var(--line); padding: 12px 20px 16px; background: #FAF7F0; }
.fp-reply { padding: 8px 0; border-bottom: 1px solid var(--line); font-size: 13px; }
.fp-reply:last-child { border-bottom: none; }
.fp-reply .r-author { color: var(--ink); font-weight: 700; }
.fp-reply .r-date { color: var(--gray); font-size: 11px; margin-left: 8px; }
.fp-reply .r-text { margin-top: 3px; color: #444; }
.reply-form { display: flex; gap: 10px; margin-top: 10px; }
.reply-form input { flex: 1; border: 1px solid var(--line); padding: 8px 12px; font-size: 13px; font-family: var(--font-b); }
.newpost-form { background: #fff; border: 1px solid var(--line); padding: 20px; margin-bottom: 20px; }
.newpost-form input, .newpost-form textarea { width: 100%; border: 1px solid var(--line); padding: 10px 12px; font-size: 13px; font-family: var(--font-b); margin-bottom: 10px; }
.lightbox { position: fixed; inset: 0; background: rgba(0,0,0,0.88); z-index: 999; display: flex; align-items: center; justify-content: center; cursor: zoom-out; }
.lightbox img { max-width: 90vw; max-height: 90vh; }
