/* ===== 洋湃服饰 — 主样式（参考高端婚纱工厂风格） ===== */
:root {
  --ink: #1a1a1a;
  --ink-soft: #4a4a4a;
  --ink-faint: #8a8a8a;
  --accent: #b6543a;
  --accent-dark: #9c452e;
  --bg: #ffffff;
  --bg-soft: #faf8f5;
  --line: #e8e2da;
  --serif: "Cormorant Garamond", "Noto Serif SC", "Songti SC", serif;
  --sans: "Jost", "PingFang SC", "Microsoft YaHei", sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--sans);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.7;
  font-weight: 300;
  letter-spacing: 0.01em;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }

/* 中文页面正文使用宋体 */
html[lang="zh-CN"] body {
  font-family: "Songti SC", "STSong", "SimSun", "Noto Serif SC", serif;
  font-weight: 400;
}

.page-loading {
  min-height: 100vh; display: flex; align-items: center; justify-content: center;
}
.page-loading span {
  width: 34px; height: 34px; border: 2px solid var(--line); border-top-color: var(--accent);
  border-radius: 50%; animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- 顶部导航（品牌居中 + 导航居中） ---------- */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
  transition: box-shadow 0.3s;
}
.site-header.scrolled { box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06); }
.header-top {
  position: relative; max-width: 1280px; margin: 0 auto;
  padding: 22px 32px 12px; text-align: center;
}
.header-side {
  position: absolute; right: 32px; top: 50%; transform: translateY(-50%);
  display: flex; align-items: center; gap: 14px;
}
.brand { display: inline-block; text-align: center; line-height: 1.1; }
.brand-name {
  font-family: var(--serif);
  font-size: 38px; font-weight: 700; letter-spacing: 0.18em;
}
.brand-sub {
  font-size: 12px; letter-spacing: 0.34em; color: var(--ink-soft);
  text-transform: uppercase; margin-top: 6px;
}
.main-nav { display: flex; align-items: center; justify-content: center; gap: 42px; padding-bottom: 14px; }
.main-nav a {
  font-size: 14px; letter-spacing: 0.08em; color: var(--ink-soft);
  padding: 6px 0; position: relative; transition: color 0.25s;
}
.main-nav a::after {
  content: ""; position: absolute; left: 0; bottom: 0; height: 1px; width: 0;
  background: var(--accent); transition: width 0.25s;
}
.main-nav a:hover { color: var(--accent); }
.main-nav a:hover::after { width: 100%; }

.lang-switch { display: flex; border: 1px solid var(--line); border-radius: 2px; overflow: hidden; }
.lang-switch button {
  border: 0; background: transparent; padding: 6px 14px; cursor: pointer;
  font-family: var(--sans); font-size: 13px; letter-spacing: 0.06em; color: var(--ink-soft);
  transition: all 0.25s;
}
.lang-switch button.active { background: var(--ink); color: #fff; }

.menu-toggle {
  display: none; border: 0; background: none; cursor: pointer; padding: 8px;
}
.menu-toggle span {
  display: block; width: 24px; height: 2px; background: var(--ink); margin: 5px 0;
  transition: all 0.3s;
}
.menu-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle.open span:nth-child(2) { opacity: 0; }
.menu-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: 88vh; display: flex; align-items: center;
  margin-top: 130px; overflow: hidden;
}
.hero-bg { position: absolute; inset: 0; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; object-position: center right; }
.hero-bg img.hero-slide { position: absolute; inset: 0; opacity: 0; transition: opacity 0.9s ease; }
.hero-bg img.hero-slide.active { opacity: 1; }

.hero-bg::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(255,255,255,0.88) 0%, rgba(255,255,255,0.55) 42%, rgba(255,255,255,0.05) 75%);
}
.hero-content {
  position: relative; z-index: 2; max-width: 1280px; margin: 0 auto;
  padding: 64px 32px; width: 100%;
}
.hero-text { max-width: 620px; }

/* 首屏图片选取框 */
.hero-picker {
  position: absolute; right: 32px; bottom: 28px; z-index: 3;
  display: flex; gap: 10px;
}
.hero-thumb {
  width: 62px; height: 80px; padding: 0; cursor: pointer; overflow: hidden;
  background: none; border: 2px solid rgba(255, 255, 255, 0.65);
  opacity: 0.72; transition: all 0.25s ease; border-radius: 3px;
}
.hero-thumb img { width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.hero-thumb:hover { opacity: 1; transform: translateY(-2px); }
.hero-thumb.active {
  opacity: 1; border-color: #fff;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.28);
}
.hero-title {
  font-family: var(--serif); font-size: clamp(34px, 4.6vw, 58px);
  font-weight: 500; line-height: 1.25; letter-spacing: 0.01em;
}
.hero-subtitle {
  margin-top: 24px; font-size: 17px; color: var(--ink-soft); max-width: 520px;
}
.btn {
  display: inline-block; margin-top: 36px; padding: 15px 38px;
  font-size: 14px; letter-spacing: 0.14em; text-transform: uppercase;
  border: 1px solid var(--ink); cursor: pointer; transition: all 0.3s;
  font-family: var(--sans); font-weight: 400;
}
.btn-outline { background: transparent; color: var(--ink); }
.btn-outline:hover { background: var(--ink); color: #fff; }
.btn-solid { background: var(--ink); color: #fff; }
.btn-solid:hover { background: var(--accent); border-color: var(--accent); }
.btn-accent { background: var(--accent); border-color: var(--accent); color: #fff; width: 100%; text-align: center; }
.btn-accent:hover { background: var(--accent-dark); border-color: var(--accent-dark); }

/* ---------- 通用板块 ---------- */
.section { padding: 110px 32px; }
.section-inner { max-width: 1280px; margin: 0 auto; }
.section-head { text-align: center; margin-bottom: 72px; }
.section-title {
  font-family: var(--serif); font-size: clamp(32px, 3.6vw, 46px); font-weight: 500;
}
.section-title::after {
  content: ""; display: block; width: 56px; height: 1px; background: var(--accent);
  margin: 22px auto 0;
}
.section-sub { margin-top: 18px; color: var(--ink-faint); font-size: 16px; }

/* ---------- 关于我们 ---------- */
.about-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: center;
}
.about-title { font-family: var(--serif); font-size: clamp(32px, 3.4vw, 46px); font-weight: 600; letter-spacing: 0.06em; }
.about-sub {
  font-family: var(--serif); font-size: clamp(20px, 2vw, 27px); font-weight: 400;
  margin-top: 18px; line-height: 1.5;
}
.about-text { margin-top: 26px; color: var(--ink-soft); font-size: 16px; }
.about-features { margin-top: 30px; list-style: none; }
.about-features li {
  padding: 13px 0; border-bottom: 1px solid var(--line); font-size: 16px;
  display: flex; align-items: center; gap: 12px;
}
.about-features li::before { content: "•"; color: var(--accent); font-size: 20px; }
.about-actions { display: flex; gap: 18px; margin-top: 12px; flex-wrap: wrap; }
.about-actions .btn { margin-top: 24px; }
.about-image { position: relative; }
.about-image img { width: 100%; height: 560px; object-fit: cover; }
.about-image::before {
  content: ""; position: absolute; inset: 22px -22px -22px 22px;
  border: 1px solid var(--line); z-index: -1;
}

/* ---------- 产品 ---------- */
.products-section { background: var(--bg-soft); }
.product-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 36px; }
.product-card {
  background: #fff; overflow: hidden; cursor: pointer;
  transition: transform 0.4s, box-shadow 0.4s;
}
.product-card:hover { transform: translateY(-8px); box-shadow: 0 24px 48px rgba(0,0,0,0.10); }
.product-image { overflow: hidden; aspect-ratio: 3 / 4; }
.product-image img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.7s ease; }
.product-card:hover .product-image img { transform: scale(1.06); }
.product-info { padding: 30px 28px 36px; text-align: center; }
.product-name { font-family: var(--serif); font-size: 27px; font-weight: 600; letter-spacing: 0.04em; }
.product-desc { margin-top: 12px; color: var(--ink-faint); font-size: 14.5px; line-height: 1.8; }

/* ---------- 服务 ---------- */
.service-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 36px; }
.service-card {
  padding: 52px 38px; text-align: center; border: 1px solid var(--line);
  transition: all 0.35s; background: #fff;
}
.service-card:hover { border-color: var(--accent); transform: translateY(-6px); }
.service-icon { width: 56px; height: 56px; margin: 0 auto 26px; color: var(--accent); }
.service-icon svg { width: 100%; height: 100%; }
.service-title { font-family: var(--serif); font-size: 24px; font-weight: 600; }
.service-desc { margin-top: 14px; color: var(--ink-faint); font-size: 14.5px; }

/* ---------- 联系 ---------- */
.contact-section { background: var(--bg-soft); }
.contact-grid { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 64px; align-items: start; }
.contact-form-card { background: #fff; padding: 48px 44px; border: 1px solid var(--line); }
.contact-form-title { font-family: var(--serif); font-size: 28px; font-weight: 600; margin-bottom: 28px; }
.form-field { margin-bottom: 22px; }
.form-field label { display: block; font-size: 13.5px; color: var(--ink-soft); margin-bottom: 8px; letter-spacing: 0.04em; }
.form-field input, .form-field textarea {
  width: 100%; border: 1px solid var(--line); padding: 13px 15px; font-size: 15px;
  font-family: var(--sans); color: var(--ink); background: #fff; outline: none;
  transition: border-color 0.25s; resize: vertical;
}
.form-field input:focus, .form-field textarea:focus { border-color: var(--accent); }
.form-hint { font-size: 13px; color: var(--ink-faint); margin-top: -12px; margin-bottom: 20px; }
.form-feedback { margin-top: 16px; font-size: 14.5px; }
.form-feedback.ok { color: #2e7d4f; }
.form-feedback.err { color: var(--accent-dark); }

.contact-info-card h3 { font-family: var(--serif); font-size: 26px; font-weight: 600; }
.contact-info-card > p { margin-top: 14px; color: var(--ink-soft); font-size: 15.5px; }
.contact-rows { margin-top: 34px; }
.contact-row {
  display: flex; align-items: center; gap: 18px; padding: 20px 0;
  border-bottom: 1px solid var(--line);
}
.contact-row .icon { width: 24px; height: 24px; color: var(--accent); flex-shrink: 0; }
.contact-row .icon svg { width: 100%; height: 100%; }
.contact-row .label { font-size: 12.5px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-faint); }
.contact-row .value { font-size: 16.5px; margin-top: 2px; }
.contact-row a.value:hover { color: var(--accent); }
.social-links { display: flex; gap: 16px; margin-top: 28px; }
.social-links a {
  width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 50%;
  display: flex; align-items: center; justify-content: center; transition: all 0.3s;
  color: var(--ink);
}
.social-links a:hover { background: var(--ink); border-color: var(--ink); color: #fff; }
.social-links svg { width: 19px; height: 19px; }

/* ---------- 页脚 ---------- */
.site-footer { border-top: 1px solid var(--line); background: #fff; }
.footer-grid {
  max-width: 1280px; margin: 0 auto; padding: 64px 32px;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 40px; text-align: center;
}
.footer-col h4 { font-family: var(--serif); font-size: 21px; font-weight: 600; margin-bottom: 16px; }
.footer-col p, .footer-col a { font-size: 14.5px; color: var(--ink-soft); display: inline-block; }
.footer-col a:hover { color: var(--accent); }
.footer-col .icon { width: 26px; height: 26px; margin: 0 auto 12px; color: var(--ink); }
.footer-col .icon svg { width: 100%; height: 100%; }
.footer-social { display: flex; gap: 12px; justify-content: center; margin-top: 6px; }
.footer-social a {
  width: 38px; height: 38px; border-radius: 50%; background: var(--ink); color: #fff;
  display: flex; align-items: center; justify-content: center; transition: background 0.3s;
}
.footer-social a:hover { background: var(--accent); }
.footer-social svg { width: 17px; height: 17px; }
.copyright {
  text-align: center; padding: 22px; font-size: 13px; color: var(--ink-faint);
  border-top: 1px solid var(--line);
}

/* ---------- 产品详情页 ---------- */
.product-more {
  display: inline-block; margin-top: 16px; font-size: 13px; letter-spacing: 0.12em;
  color: var(--accent); text-transform: uppercase;
}
.product-detail { padding: 150px 32px 100px; min-height: 80vh; }
.back-link {
  display: inline-block; font-size: 14px; color: var(--ink-faint); margin-bottom: 34px;
  letter-spacing: 0.04em; transition: color 0.25s;
}
.back-link:hover { color: var(--accent); }
.product-detail-head { text-align: center; margin-bottom: 54px; }
.product-detail-head .section-title::after { margin-left: auto; margin-right: auto; }
.gallery-main {
  max-width: 900px; margin: 0 auto; background: var(--bg-soft);
  border: 1px solid var(--line); cursor: zoom-in; position: relative;
}
.gallery-main img { width: 100%; max-height: 78vh; object-fit: contain; }
.zoom-hint {
  position: absolute; right: 12px; bottom: 12px; padding: 6px 12px;
  background: rgba(26, 26, 26, 0.55); color: #fff; font-size: 12px;
  letter-spacing: 0.08em; pointer-events: none; opacity: 0; transition: opacity 0.25s;
}
.gallery-main:hover .zoom-hint { opacity: 1; }
.gallery-thumbs {
  max-width: 900px; margin: 18px auto 0; display: flex; gap: 14px;
  overflow-x: auto; padding-bottom: 6px;
}
.thumb {
  flex: 0 0 108px; height: 138px; border: 2px solid transparent; padding: 0;
  background: var(--bg-soft); cursor: pointer; opacity: 0.65; transition: all 0.25s;
}
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb:hover { opacity: 1; }
.thumb.active { border-color: var(--accent); opacity: 1; }
.detail-cta { text-align: center; margin-top: 72px; }
.detail-cta p { color: var(--ink-soft); font-size: 16px; }

/* ---------- 图集灯箱（点击放大） ---------- */
.lightbox {
  position: fixed; inset: 0; z-index: 300; overflow: hidden;
  background: rgba(20, 16, 14, 0.92);
  display: flex; align-items: center; justify-content: center;
}
.lightbox[hidden] { display: none; }
.lightbox img {
  max-width: 92vw; max-height: 88vh; object-fit: contain;
  box-shadow: 0 20px 80px rgba(0, 0, 0, 0.5);
  transition: transform 0.08s ease-out; cursor: grab;
  user-select: none; -webkit-user-select: none; touch-action: none;
}
.lightbox img.zoomed { cursor: grabbing; }
.lb-hint {
  position: absolute; bottom: 52px; left: 50%; transform: translateX(-50%);
  color: rgba(255, 255, 255, 0.55); font-size: 12.5px; letter-spacing: 0.1em;
  pointer-events: none; transition: opacity 0.3s;
}
.lb-close, .lb-prev, .lb-next {
  position: absolute; z-index: 2; width: 48px; height: 48px; border-radius: 50%;
  background: rgba(255, 255, 255, 0.12); color: #fff; border: 0; cursor: pointer;
  font-size: 30px; line-height: 1; transition: background 0.2s;
}
.lb-close:hover, .lb-prev:hover, .lb-next:hover { background: rgba(255, 255, 255, 0.28); }
.lb-close { top: 22px; right: 26px; font-size: 26px; }
.lb-prev { left: 20px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 20px; top: 50%; transform: translateY(-50%); }
.lb-counter {
  position: absolute; bottom: 20px; left: 50%; transform: translateX(-50%);
  color: rgba(255, 255, 255, 0.75); font-size: 13px; letter-spacing: 0.12em;
}
@media (max-width: 760px) {
  .lb-close { top: 14px; right: 14px; }
  .lb-prev { left: 8px; }
  .lb-next { right: 8px; }
}

/* ---------- 滚动动效 ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.visible { opacity: 1; transform: none; }

/* ---------- 响应式 ---------- */
@media (max-width: 960px) {
  .about-grid, .contact-grid { grid-template-columns: 1fr; gap: 48px; }
  .product-grid, .service-grid { grid-template-columns: 1fr; max-width: 460px; margin: 0 auto; }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
  .about-image img { height: 420px; }
  .section { padding: 80px 24px; }
}
@media (max-width: 760px) {
  .header-top { padding: 14px 20px 10px; }
  .header-side { right: 16px; }
  .brand-name { font-size: 25px; }
  .brand-sub { font-size: 10px; letter-spacing: 0.26em; }
  .menu-toggle { display: block; }
  .main-nav {
    position: fixed; top: 96px; left: 0; right: 0; background: #fff;
    flex-direction: column; gap: 0; padding: 12px 0; border-bottom: 1px solid var(--line);
    transform: translateY(-130%); transition: transform 0.35s; box-shadow: 0 16px 24px rgba(0,0,0,0.08);
  }
  .main-nav.open { transform: none; }
  .main-nav a { padding: 15px; width: 100%; text-align: center; font-size: 15px; }
  .hero { margin-top: 96px; min-height: 76vh; }
  .hero-picker { right: 16px; bottom: 16px; gap: 8px; }
  .hero-thumb { width: 48px; height: 62px; }
  .hero-bg::after { background: linear-gradient(180deg, rgba(255,255,255,0.85) 0%, rgba(255,255,255,0.5) 60%, rgba(255,255,255,0.15) 100%); }
  .contact-form-card { padding: 34px 24px; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
}
