/* ===== 一而以漾 | Rienatelier · 东方高定 ===== */

/* ----- 全局重置 & 变量 ----- */
* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --white: #ffffff;
  --off-white: #faf9f7;
  --black: #111111;
  --gray-dark: #2c2c2c;
  --gray-mid: #6e6e6e;
  --border-light: #eae7e2;
  --gold-dim: #c7a86b;
}

body {
  background: var(--white);
  color: var(--black);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
button, input { font-family: inherit; background: none; border: none; outline: none; }
a { text-decoration: none; color: inherit; }


.navbar {
  position: sticky; top: 0; z-index: 1000;
  background: var(--white);
  display: flex; justify-content: space-between; align-items: center;
  padding: 10px 48px 10px 24px;
  border-bottom: 1px solid var(--border-light);
  flex-wrap: wrap;
}

.nav-logo {
  position: absolute; left: 50%; transform: translateX(-50%);
  display: flex; align-items: center; justify-content: center; z-index: 10;
}
.nav-logo img { height: 32px; width: auto; }

.nav-left { display: flex; gap: 32px; }
.nav-left .series-quick-btn {
  display: flex; flex-direction: column; align-items: center;
  font-size: 12px; font-weight: 400; color: var(--black);
  cursor: pointer; padding: 4px 0; border-bottom: 1px solid transparent;
}
.nav-left .series-quick-btn span {
  font-size: 8px; color: var(--gray-mid); margin-top: 2px;
}
.nav-left .series-quick-btn.active {
  font-weight: 500; border-bottom-color: var(--black);
}

.nav-right { display: flex; gap: 48px; align-items: center; }
.nav-item { position: relative; text-align: center; }
.nav-right a {
  display: flex; flex-direction: column; align-items: center;
  font-size: 12px; letter-spacing: 0.3px; font-weight: 400;
  color: var(--black); cursor: pointer;
}
.nav-right a span {
  font-size: 8px; color: var(--gray-mid); margin-top: 2px;
}
.nav-right a:hover, .nav-right a.active { font-weight: 500; }
.nav-right a.active::after {
  content: ''; position: absolute; bottom: -6px; width: 20px; height: 1.5px;
  background: var(--black);
}

.series-menu {
  position: absolute; top: 100%; left: 50%; transform: translateX(-50%);
  background: var(--white); border: 1px solid var(--border-light);
  padding: 6px 0; min-width: 150px; display: none; z-index: 100;
  text-align: center;
}
.series-menu.show { display: block; }
.series-item {
  display: flex; flex-direction: column; align-items: center;
  padding: 6px 20px; font-size: 11px; color: var(--black);
  cursor: pointer; transition: background 0.1s;
}
.series-item span {
  font-size: 8px; color: var(--gray-mid); margin-top: 2px;
}
.series-item:hover { background: var(--off-white); }

@media (min-width: 769px) {
  .nav-item:hover .series-menu { display: block; }
}

/* ----- 尺码表 ----- */
.size-chart-box {
  width: 100%; overflow-x: auto; margin-top: 16px;
  -webkit-overflow-scrolling: touch; scrollbar-width: thin;
}
.size-chart-box h4 {
  font-size: 13px; font-weight: 500; margin-bottom: 12px;
  border-left: 3px solid #111; padding-left: 12px;
}
.size-table {
  width: 100%; min-width: 280px; border-collapse: collapse;
  background: #ffffff; font-size: 12px; margin: 0 auto;
}
.size-table th, .size-table td {
  border: 1px solid #eae7e2; padding: 10px 12px;
  text-align: center; white-space: nowrap;
}
.size-table th { background: #faf9f7; font-weight: 500; }

/* ----- Banner ----- */
.banner-wrapper { text-align: center; padding: 0 24px 32px; background: var(--white); }
.banner {
  width: 66%; margin: 0 auto;
  background: linear-gradient(0deg, rgba(0,0,0,0.1), rgba(0,0,0,0.15)),
    url('https://images.unsplash.com/photo-1539109136881-3be0616acf4b?q=80&w=1200');
  background-size: cover; background-position: center 30%; background-repeat: no-repeat;
  aspect-ratio: 3 / 4;
  display: flex; flex-direction: column; justify-content: center; align-items: center;
}
.banner h1 {
  font-size: 44px; font-weight: 350; letter-spacing: 6px;
  color: var(--white); margin-bottom: 12px;
  text-shadow: 0 2px 8px rgba(0,0,0,0.2);
}
.banner p {
  font-size: 14px; letter-spacing: 3px; color: rgba(255,255,255,0.95);
}
.btn {
  display: inline-block; margin-top: 28px; padding: 8px 26px;
  border: 1px solid var(--white); color: var(--white);
  background: transparent; font-size: 11px; letter-spacing: 1px;
  transition: all 0.2s; cursor: pointer;
}
.btn:hover { background: var(--white); color: var(--black); border-color: var(--white); }

/* ----- 搜索 ----- */
.search-section { max-width: 660px; margin: 36px auto 20px; padding: 0 24px; }
.search-wrapper {
  position: relative; display: flex; align-items: center;
  background: var(--white); border: 1px solid var(--border-light);
  border-radius: 40px; transition: all 0.2s; padding-right: 6px;
}
.search-wrapper:focus-within { border-color: var(--gray-mid); }
.search-wrapper input {
  flex: 1; padding: 10px 18px; font-size: 13px; color: var(--black);
  background: transparent; border-radius: 40px; padding-right: 32px;
}
.search-wrapper input::placeholder { color: #bbb; font-weight: 300; }
.search-wrapper button {
  padding: 6px 20px; font-size: 12px; letter-spacing: 0.5px;
  color: var(--black); cursor: pointer; border-radius: 40px;
}
.search-wrapper button:hover { background: var(--off-white); }
.input-clear {
  position: absolute; right: 80px; top: 50%; transform: translateY(-50%);
  cursor: pointer; font-size: 12px; color: var(--gray-mid);
  width: 18px; height: 18px; display: flex; align-items: center; justify-content: center;
  border-radius: 50%; transition: background 0.2s; display: none;
}
.input-clear:hover { background: var(--off-white); color: var(--black); }

/* ----- 内容面板 ----- */
.content-panel { display: none; }
.content-panel.active { display: block; }

.video-wrapper { width: 100%; }
.fullwidth-video video { width: 100%; height: auto; display: block; }

/* ----- 首页三图 ----- */
.three-grid-showcase {
  max-width: 1400px; margin: 56px auto; padding: 0 10%;
  display: flex; justify-content: space-between; align-items: stretch;
  gap: 40px; flex-wrap: wrap;
}
.left-single { flex: 1; cursor: pointer; }
.left-single img { width: 100%; aspect-ratio: 9 / 16; object-fit: cover; }
.right-mixed { flex: 1; display: flex; flex-direction: column; gap: 32px; }
.right-mixed .mixed-item { cursor: pointer; width: 100%; }
.right-mixed .mixed-item img { aspect-ratio: 3.5 / 3; object-fit: cover; width: 100%; }

.live-gallery { max-width: 1400px; margin: 16px auto 70px; padding: 0 10%; }
.live-grid { display: flex; justify-content: space-between; flex-wrap: wrap; }
.live-card {
  width: calc(25% - 20px); cursor: pointer; position: relative; margin-bottom: 20px;
}
.live-badge {
  position: absolute; top: 10px; left: 10px; background: var(--white);
  border: 1px solid var(--border-light); padding: 2px 6px;
  font-size: 8px; letter-spacing: 0.5px; z-index: 1;
}
.live-card img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; }

/* ----- 系列面板 ----- */
.series-container { max-width: 1400px; margin: 32px auto 70px; padding: 0 48px; }
.series-header { text-align: center; margin-bottom: 28px; }
.series-header h2 { font-size: 26px; font-weight: 350; letter-spacing: 2px; margin-bottom: 6px; }
.series-header p { font-size: 11px; color: var(--gray-mid); }
.series-container .search-wrapper { max-width: 560px; width: 100%; margin: 0 auto 32px; }

.gallery-masonry {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 28px 24px;
}
.gallery-item { cursor: pointer; transition: opacity 0.2s; }
.gallery-item img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; }
.gallery-caption { padding: 12px 0 6px; }
.gallery-caption h4 { font-size: 14px; font-weight: 450; margin-bottom: 2px; }
.gallery-caption p, .price-tag { font-size: 11px; color: var(--gray-mid); }

/* ----- 品牌故事 ----- */
.story-luxury { max-width: 1200px; margin: 60px auto; padding: 0 48px; }
.brand-slogan { text-align: center; margin-bottom: 60px; }
.brand-slogan h2 {
  font-size: 36px; font-weight: 320; letter-spacing: 2px;
  margin-bottom: 16px; color: var(--black);
}
.brand-slogan p {
  font-size: 13px; color: var(--gray-mid); max-width: 520px;
  margin: 0 auto; line-height: 1.6;
}
.brand-slogan::after {
  content: ''; display: block; width: 40px; height: 1px;
  background: var(--gold-dim); margin: 32px auto 0;
}
.long-image-strip {
  display: flex; flex-direction: column; gap: 40px; margin: 40px 0 60px;
}
.long-image-strip img { width: 100%; height: auto; display: block; }
.timeline-section { margin: 80px 0; text-align: center; }
.timeline-section h3 { font-size: 20px; font-weight: 400; margin-bottom: 56px; letter-spacing: 1px; }
.timeline {
  display: flex; justify-content: center; flex-wrap: wrap; gap: 28px;
}
.timeline-node {
  flex: 0 0 calc(25% - 28px); min-width: 180px;
  border-top: 1px solid var(--border-light); padding: 24px 8px 12px;
  transition: border-color 0.2s;
}
.timeline-node:hover { border-top-color: var(--gold-dim); }
.year { font-size: 24px; font-weight: 360; margin-bottom: 8px; }
.timeline-node h4 { font-weight: 450; font-size: 13px; margin-bottom: 4px; }
.timeline-node p { font-size: 11px; color: var(--gray-mid); line-height: 1.3; }
.philosophy {
  border-top: 1px solid var(--border-light); padding: 60px 0 40px;
  text-align: center; background: var(--off-white); margin-top: 60px;
}
.philosophy blockquote {
  font-size: 24px; font-weight: 320; max-width: 700px; margin: 0 auto 20px;
  color: var(--black); letter-spacing: 0.3px;
}
.philosophy p { font-size: 12px; color: var(--gray-mid); }

/* ----- 联系我们 ----- */
.dual-contact {
  max-width: 1000px; margin: 30px auto; padding: 0 48px;
  display: grid; grid-template-columns: 1fr 1fr; gap: 64px;
}
.contact-card {
  padding: 48px 24px 28px; text-align: center;
  display: flex; flex-direction: column; align-items: center; border-top: none;
}
.contact-card h3 { font-size: 15px; font-weight: 500; margin-bottom: 24px; text-align: center; width: 100%; }
.qr-box { display: flex; justify-content: center; }
.qr-box img {
  width: 150px; height: 150px; border: 1px solid var(--border-light); object-fit: cover;
}
.qr-tip { font-size: 12px; color: var(--gray-mid); margin: 20px 0 20px; text-align: center; }
.contact-info { text-align: left; }
.contact-info .item {
  font-size: 12px; display: flex; justify-content: flex-start;
  align-items: baseline; gap: 6px; margin: 10px 0; flex-wrap: wrap;
}
.contact-info .item strong { font-weight: 500; color: var(--black); }

/* ----- 产品详情 ----- */
.detail-panel { max-width: 1400px; margin: 20px auto 70px; padding: 0 10%; }
.back-btn {
  font-size: 11px; color: var(--gray-mid); cursor: pointer;
  margin-bottom: 24px; background: none; border: none;
}
.product-detail-grid {
  display: grid; grid-template-columns: 60px 1fr 0.9fr;
  gap: 60px; align-items: start; margin-bottom: 48px;
}
.thumb-vertical {
  display: flex; flex-direction: column; gap: 12px;
  max-height: 500px; overflow-y: auto; padding-right: 4px;
}
.thumb-vertical::-webkit-scrollbar { width: 2px; }
.thumb-vertical .thumb {
  width: 100%; aspect-ratio: 3 / 4; object-fit: cover;
  cursor: pointer; opacity: 0.6; transition: opacity 0.2s, border 0.2s;
  border: 1px solid transparent;
}
.thumb-vertical .thumb.active-thumb { opacity: 1; border-color: var(--black); }
.thumb-vertical .thumb:hover { opacity: 1; }
.main-image-container {
  width: 100%; display: flex; justify-content: center; align-items: center;
}
.main-img { width: 100%; max-height: 78vh; object-fit: contain; display: block; }
.product-info h1 { font-size: 24px; font-weight: 400; margin-bottom: 4px; }
.product-en { font-size: 11px; color: var(--gray-mid); margin-bottom: 18px; }
.price {
  font-size: 24px; font-weight: 400; margin-bottom: 20px;
  padding-bottom: 14px; border-bottom: 1px solid var(--border-light);
}
.params h3 { font-size: 13px; font-weight: 500; margin: 18px 0 12px; }
.param-row {
  display: flex; padding: 8px 0; font-size: 12px;
  border-bottom: 1px solid var(--border-light);
}
.param-label { width: 85px; color: var(--gray-mid); }
.btn-custom {
  margin-top: 28px; padding: 10px 20px; background: var(--black);
  color: var(--white); font-size: 11px; letter-spacing: 0.5px;
  cursor: pointer; width: 100%; transition: opacity 0.2s;
}
.btn-custom:hover { opacity: 0.85; }
.details-bottom { margin-top: 48px; display: flex; flex-direction: column; gap: 48px; }
.craft-long-image { width: 100%; margin-top: 0; }
.craft-long-image img { width: 100%; height: auto; display: block; }

/* ----- 全局搜索 ----- */
.search-results-container { max-width: 1400px; margin: 24px auto 60px; padding: 0 48px; }
.search-header {
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 16px; margin-bottom: 28px;
}
.search-header-left { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }
.search-header-left .search-wrapper { width: 280px; }
.series-filter-bar { display: flex; flex-wrap: wrap; gap: 12px; }
.filter-chip {
  padding: 6px 20px; font-size: 12px; border: 1px solid var(--border-light);
  background: var(--white); color: var(--gray-mid); cursor: pointer;
  border-radius: 40px; transition: all 0.2s;
}
.filter-chip.active { border-color: var(--black); color: var(--black); font-weight: 500; }
.result-count { font-size: 11px; color: var(--gray-mid); margin-bottom: 24px; }

/* ----- Footer ----- */
.footer-nav {
  border-top: 1px solid var(--border-light); padding: 50px 0 36px; margin-top: 30px;
}
.footer-container {
  display: grid; grid-template-columns: 1fr 1fr 1fr;
  max-width: 1200px; margin: 0 auto; padding: 0 48px; gap: 40px;
  align-items: start;
}
.footer-col { text-align: center; min-width: 0; }
.footer-col:last-child { text-align: center; }
.footer-col h4 {
  font-size: 12px; font-weight: 500; margin-bottom: 16px;
  letter-spacing: 0.5px; color: var(--gray-mid);
}
.footer-links { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.footer-links a, .contact-row, .social-icons span {
  font-size: 12px; color: var(--gray-mid); cursor: pointer;
}
.footer-links a:hover, .social-icons span:hover { color: var(--black); }
.contact-row {
  display: flex; align-items: center; justify-content: center; gap: 6px; margin-bottom: 8px;
}
.footer-col:last-child .contact-row { justify-content: center; }
.social-icons { display: flex; flex-direction: column; gap: 8px; align-items: center; }
.footer-copyright {
  text-align: center; margin-top: 48px; padding-top: 24px;
  border-top: 1px solid var(--border-light); font-size: 9px; color: #aaa;
}

/* ----- 图片预览遮罩 ----- */
.image-preview-overlay {
  position: fixed; top: 0; left: 0; width: 100%; height: 100%;
  background: rgba(255,255,255,0.98); z-index: 2000;
  display: flex; align-items: center; justify-content: center; cursor: pointer;
}
.image-preview-overlay img { max-width: 90%; max-height: 90%; }

/* ----- 自定义弹窗 ----- */
.confirm-mask {
  position: fixed; top: 0; left: 0; width: 100%; height: 100%;
  background: rgba(0,0,0,0.3); backdrop-filter: blur(4px);
  z-index: 9999; display: none; align-items: center; justify-content: center;
}
.confirm-box {
  background: var(--white); border-radius: 16px; padding: 32px 40px 28px;
  max-width: 440px; width: 90%; text-align: center;
  box-shadow: 0 20px 60px rgba(0,0,0,0.08); border: 1px solid var(--border-light);
}
.confirm-icon { font-size: 40px; color: var(--gold-dim); margin-bottom: 12px; }
.confirm-icon.danger { color: #b13e3e; }
.confirm-message { font-size: 16px; color: var(--black); line-height: 1.6; margin-bottom: 8px; font-weight: 450; }
.confirm-sub { font-size: 13px; color: var(--gray-mid); margin-bottom: 24px; }
.confirm-actions { display: flex; gap: 12px; justify-content: center; }
.confirm-actions .btn {
  min-width: 72px; justify-content: center; border-radius: 8px;
  padding: 7px 18px; font-size: 13px; font-weight: 450;
  border: 1px solid #d5d0ca; background: transparent; color: var(--black);
  cursor: pointer; transition: 0.2s;
}
.confirm-actions .btn-primary { background: var(--gold-dim); border-color: var(--gold-dim); color: #fff; }
.confirm-actions .btn-primary:hover { opacity: 0.85; }
.confirm-actions .btn-danger { background: #f0e0e0; border-color: #dbb8b8; color: #b13e3e; }

/* ================================================================
   响应式
   ================================================================ */
@media (max-width: 768px) {
  .series-header h2 { font-size: 16px; }
  .navbar {
    position: sticky; top: 0; z-index: 1000;
    width: 100%; padding: 12px 24px;
  }
  .nav-logo { position: relative; left: auto; transform: none; order: -1; margin-bottom: 12px; width: 100%; justify-content: center; }
  .nav-logo img { height: 28px; }
  .nav-left { display: none; }
  .nav-right { justify-content: space-between; width: 100%; }
  .product-detail-grid { grid-template-columns: 1fr; gap: 32px; }
  .thumb-vertical { flex-direction: row; flex-wrap: nowrap; overflow-x: auto; gap: 10px; max-height: none; padding-bottom: 8px; }
  .thumb-vertical .thumb { width: 60px; flex-shrink: 0; aspect-ratio: 3 / 4; opacity: 0.6; border: 1px solid transparent; }
  .thumb-vertical .thumb.active-thumb { opacity: 1; border-color: var(--black); }
  .main-img { max-height: 50vh; }
  .three-grid-showcase { flex-direction: column; padding: 0 5%; }
  .left-single, .right-mixed { width: 100%; }
  .mixed-item img { aspect-ratio: 4 / 3; }
  .live-grid { justify-content: center; gap: 16px; }
  .live-card { width: calc(50% - 16px); max-width: none; }
  .banner { width: 90%; }
  .dual-contact { grid-template-columns: 1fr; gap: 10px; padding: 0 24px; }
  .contact-card { padding: 24px 16px; }
  .contact-card:nth-child(2) { padding-top: 40px; }
  .qr-box img { width: 100px; height: 100px; }
  .contact-info .item { flex-wrap: wrap; justify-content: left; text-align: center; }
  .series-container, .story-luxury, .detail-panel, .search-results-container { padding: 0 24px; }
  .story-luxury { margin-top: 40px; }
  .brand-slogan { margin-bottom: 30px; }
  .timeline-section { margin-top: 40px; margin-bottom: 40px; }
  .brand-slogan h2 { font-size: 16px; }
  .detail-panel { padding: 0 5%; }
  .timeline-node { flex: 0 0 calc(50% - 28px); }
  .footer-container { grid-template-columns: 1fr; gap: 48px; padding: 0 24px; text-align: center; }
  .footer-col, .footer-col:last-child { text-align: center; }
  .footer-col:last-child .social-icons { align-items: center; }
  .footer-col:last-child .contact-row { justify-content: center; }
  .footer-links { align-items: center; }
  .contact-row { justify-content: center; }
  .social-icons { align-items: center; }
  .footer-nav { padding: 40px 0 28px; }
  .search-header { flex-direction: column; align-items: stretch; }
  .search-header-left { justify-content: space-between; }
  .series-filter-bar { justify-content: center; }
  .size-table { min-width: 240px; }
  .size-table th, .size-table td { padding: 8px 10px; font-size: 11px; }
}

@media (max-width: 600px) {
  .banner h1 { font-size: 28px; }
  .banner { width: 100%; }
  .live-card { width: calc(50% - 12px); }
  .timeline-node { flex: 0 0 100%; }
  .search-header-left { flex-direction: column; align-items: stretch; }
  .search-header-left .search-wrapper { width: 100%; }
  .thumb-vertical .thumb { width: 55px; }
  .long-image-strip { margin-bottom: 30px; }
  .philosophy { margin-top: 40px; }
  .philosophy blockquote { font-size: 18px; }
  .footer-container { padding: 0 16px; gap: 36px; }
}

/* ----- 工具类 ----- */
.hidden { display: none !important; }
