:root {
  --primary: #4A90E2; --accent: #D4AF37; --bg: #0F0F11; --card: #161618; 
  --border: #2C2C2E; --text: #EAEAEA; --muted: #A0A0A5; --gap: 24px; 
  --radius: 8px; --gold: #D4AF37; --wa-color: #25D366; --tg-color: #0088cc;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { background: var(--bg); color: var(--text); font-family: 'Open Sans', sans-serif; line-height: 1.7; padding-bottom: 80px; -webkit-font-smoothing: antialiased; }
a { text-decoration: none; transition: all 0.3s ease; }

header, section, footer { background: var(--card); border-radius: var(--radius); margin-bottom: 2.5rem; padding: 3.5rem 2.5rem; border: 1px solid var(--border); box-shadow: 0 10px 30px rgba(0,0,0,0.5); }
.wrapper { max-width: 1280px; margin: 0 auto; padding: 0 20px; }

header { position: sticky; top: 0; z-index: 100; padding: 0; background: rgba(22, 22, 24, 0.85); backdrop-filter: blur(16px); border-bottom: 1px solid var(--border); box-shadow: none; border-radius: 0; margin-bottom: 2rem;}
header .wrapper { display: flex; justify-content: space-between; align-items: center; padding: 1.2rem 0; }
nav a { margin-left: 1.5rem; padding: 8px 0; color: var(--text); font-weight: 600; position: relative; font-size: 0.95rem; text-transform: uppercase; letter-spacing: 1px; }
nav a::after { content: ''; position: absolute; width: 0; height: 2px; bottom: 0; left: 0; background-color: var(--accent); transition: width 0.3s ease; }
nav a:hover::after { width: 100%; }

.header-cta { background: transparent; border: 1px solid var(--accent); color: var(--accent); padding: 10px 24px; border-radius: 4px; margin-left: 2rem; }
.header-cta:hover { background: var(--accent); color: var(--bg); }

@keyframes shine { 0% { background-position: 0% 50%; } 100% { background-position: 100% 50%; } }
h1 { font-family: 'Cinzel', serif; font-size: 2.4rem; background: linear-gradient(45deg, #B8860B, #FFD700, #B8860B) 0/200% 200%; -webkit-background-clip: text; -webkit-text-fill-color: transparent; animation: shine 5s ease-in-out infinite alternate; text-align: center; margin: 0; letter-spacing: 2px; }
h2 { font-family: 'Cinzel', serif; font-size: 2.2rem; color: var(--text); position: relative; margin: 1rem 0 3.5rem; text-align: center; font-weight: 600; letter-spacing: 1px; }
h2::after { content: ""; position: absolute; bottom: -15px; left: 50%; transform: translateX(-50%); width: 40px; height: 2px; background: var(--accent); }

.hero { display: flex; flex-direction: column; gap: var(--gap); padding: 0; background: transparent; border: none; box-shadow: none; margin-bottom: 3rem; }
.hero video { width: 100%; aspect-ratio: 21/9; object-fit: cover; border-radius: var(--radius); border: 1px solid var(--border); box-shadow: 0 12px 40px rgba(0,0,0,0.6); background-color: #000; }

.trust-banner { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; background: var(--card); padding: 2rem; border-radius: var(--radius); margin-bottom: 3rem; text-align: center; border: 1px solid var(--border); }
.trust-item { padding: 1rem; border-right: 1px solid var(--border); }
.trust-item:last-child { border-right: none; }
.trust-item strong { display: block; color: var(--accent); font-size: 1.3rem; font-family: 'Cinzel', serif; margin-bottom: 0.5rem; }
.trust-item span { font-size: 0.95rem; color: var(--muted); text-transform: uppercase; letter-spacing: 1px; }

.grid { display: grid; gap: 1.5rem; }
.products-grid { grid-template-columns: repeat(4, 1fr); }
.intro-box { padding: 2rem 1.5rem; text-align: center; background: #1A1A1C; border: 1px solid var(--border); transition: all 0.4s ease; border-radius: var(--radius); display: flex; flex-direction: column; justify-content: center; align-items: center; }
.intro-box:hover { transform: translateY(-8px); border-color: var(--accent); }
.intro-badge { font-size: 2.2rem; margin-bottom: 1rem; filter: grayscale(30%); }
.intro-box h4 { font-size: 1.15rem; margin-bottom: 0.5rem; color: var(--text); font-weight: 600; }
.intro-box p { color: var(--muted); font-size: 0.9rem; margin: 0; }

.brand-desc { display: flex; gap: 2rem; padding: 2.5rem; background: #1A1A1C; border: 1px solid var(--border); margin-bottom: 2rem; border-radius: var(--radius); }
.brand-desc img.flag { width: 45px; height: auto; border-radius: 4px; }
.title { font-weight: 600; margin-bottom: 1rem; font-size: 1.4rem; color: var(--accent); font-family: 'Cinzel', serif; }
.para { color: var(--muted); }
.para ul { margin-left: 1.5rem; margin-top: 1rem; }

.table-wrapper { overflow-x: auto; margin-top: 1rem; border: 1px solid var(--border); border-radius: var(--radius); background: #1A1A1C; }
.comparison-table { width: 100%; min-width: 750px; border-collapse: collapse; text-align: left; }
.comparison-table th, .comparison-table td { padding: 1.2rem; border-bottom: 1px solid var(--border); }
.comparison-table th { color: var(--text); font-weight: 600; text-transform: uppercase; font-size: 0.9rem; }
.comparison-table td:first-child { font-weight: 600; color: var(--text); }
.comparison-table td { color: var(--muted); }
.gold-span { color: var(--gold); font-size: 1.2rem; letter-spacing: -2px;}

.fabric-item { display: flex; flex-direction: column; background: #1A1A1C; border-radius: var(--radius); border: 1px solid var(--border); overflow: hidden; transition: transform 0.3s; }
.fabric-item:hover { transform: translateY(-5px); border-color: var(--accent); }
.fabric-item .text { padding: 1rem; display: flex; flex-direction: column; justify-content: flex-start; flex: 1; text-align: center; }
.fabric-item .text h4 { margin-bottom: 0.4rem; font-size: 1rem; color: var(--text); font-family: 'Cinzel', serif; }
.fabric-item .text p { color: var(--muted); font-size: 0.85rem; margin: 0; }

.dooya-features { display: grid; gap: 2rem; grid-template-columns: 1fr 1fr 1.2fr; background: #1A1A1C; padding: 2.5rem; border-radius: var(--radius); border: 1px solid var(--border); align-items: center; }
.dooya-features img, .dooya-features video { width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: 6px; }
.dooya-features ul { list-style: none; padding: 0; }
.dooya-features li { margin-bottom: 1.2rem; padding-left: 32px; position: relative; color: var(--muted); font-size: 1.05rem; }
.dooya-features li::before { content: '✦'; position: absolute; left: 0; color: var(--accent); }

#quote-form form { padding: 3rem; background: #1A1A1C; border: 1px solid var(--border); border-radius: var(--radius); max-width: 800px; margin: 0 auto; }
#quote-form input, #quote-form select { width: 100%; padding: 16px; margin-bottom: 1.5rem; border: 1px solid var(--border); border-radius: 4px; font-family: inherit; background: var(--bg); color: var(--text); font-size: 16px; transition: border-color 0.3s ease, box-shadow 0.3s ease; }
#quote-form input:focus, #quote-form select:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 8px rgba(212, 175, 55, 0.4); }
#quote-form button { background: var(--wa-color); color: #fff; padding: 18px 30px; border: none; border-radius: 4px; font-weight: 600; cursor: pointer; font-size: 1.1rem; width: 100%; transition: transform 0.2s; }
#quote-form button:hover { background: #1EBE5D; transform: translateY(-2px); }

.video-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.video-item { background: #1A1A1C; overflow: hidden; border-radius: var(--radius); border: 1px solid var(--border); transition: transform 0.3s; }
.video-item:hover { transform: translateY(-5px); border-color: var(--accent); }
.video-item video { width: 100%; aspect-ratio: 16/9; object-fit: cover; background: #000; border-bottom: 1px solid var(--border); display: block; }
.video-item h4 { padding: 1.5rem; color: var(--text); font-size: 1.1rem; text-align: center; margin: 0; }

.reviews-grid { grid-template-columns: repeat(4, 1fr); }
.review-card { background: #1A1A1C; padding: 2rem; border-radius: var(--radius); border: 1px solid var(--border); display: flex; flex-direction: column; justify-content: space-between; transition: all 0.3s ease; }
.review-card:hover { border-color: #3C3C3E; transform: translateY(-4px); }
.stars { color: var(--gold); font-size: 1.1rem; margin-bottom: 1rem; }
.review-text { color: var(--text); font-style: italic; margin-bottom: 1.5rem; line-height: 1.8; font-size: 0.95rem; }
.review-author { color: var(--muted); font-weight: 600; font-size: 0.85rem; text-transform: uppercase; border-top: 1px solid var(--border); padding-top: 1rem; }

footer { text-align: center; color: var(--muted); margin-bottom: 0; background: var(--bg); border: none; border-top: 1px solid var(--border); box-shadow: none; padding: 3rem 1rem; }
footer strong { color: var(--text); letter-spacing: 2px; font-family: 'Cinzel', serif; font-size: 1.2rem; }

.floating-buttons { position: fixed; bottom: 30px; right: 30px; display: flex; flex-direction: column; gap: 15px; z-index: 9999; }
.fab { width: 64px; height: 64px; border-radius: 50%; display: flex; align-items: center; justify-content: center; box-shadow: 0 6px 20px rgba(0,0,0,0.5); transition: transform 0.3s; }
.fab:hover { transform: scale(1.15); }
.fab-whatsapp { background-color: var(--wa-color); }
.fab-telegram { background-color: var(--tg-color); }
.fab svg { width: 34px; height: 34px; fill: #fff; }

@media (max-width: 992px) {
  .hero video { aspect-ratio: 16/9; }
  .trust-banner { grid-template-columns: repeat(2, 1fr); gap: 1rem; padding: 1.5rem; }
  .trust-item:nth-child(even) { border-right: none; }
  .trust-item:nth-child(1), .trust-item:nth-child(2) { border-bottom: 1px solid var(--border); padding-bottom: 1.5rem; }
  .video-grid, .products-grid, .reviews-grid { grid-template-columns: repeat(2, 1fr); }
  .dooya-features { grid-template-columns: 1fr 1fr; }
  .dooya-text { grid-column: span 2; padding-top: 1rem; }
}

@media (max-width: 768px) {
  header, section, footer { padding: 2rem 1.2rem; border-radius: 0; margin-bottom: 1rem; border-left: none; border-right: none;}
  .wrapper { padding: 0 10px; }
  h1 { font-size: 1.8rem; }
  nav a { display: none; } 
  .header-cta { margin-left: auto; font-size: 0.9rem; padding: 8px 16px; }
  .trust-banner { grid-template-columns: 1fr; }
  .trust-item { border-right: none !important; border-bottom: 1px solid var(--border); padding: 1.2rem 0; }
  .trust-item:last-child { border-bottom: none; }
  .brand-desc { flex-direction: column; }
  .dooya-features, .video-grid, .reviews-grid { grid-template-columns: 1fr; }
  .dooya-text { grid-column: span 1; }
  .fab { width: 54px; height: 54px; }
  .fab svg { width: 28px; height: 28px; }
}

/* 极致性能优化：跳过屏幕外复杂元素的渲染，大幅提高 PageSpeed 得分 */
#fabric-gallery, #videos, #projects, #reviews {
  content-visibility: auto;
  contain-intrinsic-size: 0 800px;
}

/* ========================================================
   新增：布料网格与 Lightbox (点击放大) 样式 
   ======================================================== */

.fabric-list { 
  display: grid; 
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); 
  gap: 1.5rem; 
}
.fabric-item img { 
  width: 100%; 
  height: 160px; 
  object-fit: cover; 
  border-bottom: 1px solid var(--border); 
  cursor: pointer; 
  transition: transform 0.3s ease; 
}
.fabric-item img:hover { 
  transform: scale(1.05); 
}

/* Lightbox 弹窗样式 */
.lightbox {
  display: none; 
  position: fixed; 
  z-index: 10000; 
  padding-top: 80px;
  left: 0; 
  top: 0; 
  width: 100%; 
  height: 100%; 
  overflow: auto;
  background-color: rgba(0,0,0,0.92); 
  backdrop-filter: blur(6px);
}
.lightbox-content {
  margin: auto; 
  display: block; 
  max-width: 90%; 
  max-height: 75vh;
  border: 2px solid var(--accent); 
  border-radius: 8px;
  animation: zoomIn 0.3s ease;
  object-fit: contain;
}
#lightboxCaption {
  margin: auto; 
  display: block; 
  width: 80%; 
  max-width: 700px;
  text-align: center; 
  color: var(--accent); 
  padding: 15px 0; 
  height: 100px;
  font-family: 'Cinzel', serif; 
  font-size: 1.2rem; 
  letter-spacing: 1px;
}
.close-lightbox {
  position: absolute; 
  top: 25px; 
  right: 40px; 
  color: #f1f1f1;
  font-size: 50px; 
  font-weight: bold; 
  transition: 0.3s; 
  cursor: pointer;
}
.close-lightbox:hover, .close-lightbox:focus { 
  color: var(--accent); 
  text-decoration: none; 
}

@keyframes zoomIn { 
  from {transform:scale(0)} 
  to {transform:scale(1)} 
}
