/* =============================================================
   古品丽 · 品牌网站 — 样式表
   设计理念：织·韵 — 让针织在数字空间流动起来
   ============================================================= */

/* ===== 变量 ===== */
:root {
  --cream: #f8f3ed;
  --cream-dark: #f0e8de;
  --beige: #e8d5c4;
  --oat: #dcc8b0;
  --taupe: #c4ad96;
  --brown: #8b7355;
  --brown-dark: #6b5a42;
  --charcoal: #3a322c;
  --text: #2c241e;
  --text-light: #8a7a6a;
  --accent: #c45a4a;
  --accent2: #5a8a6a;
  --bg: #faf7f3;
  --card-bg: rgba(255,255,255,0.6);
  --radius: 16px;
  --font-serif: 'Noto Serif SC', 'Cormorant Garamond', Georgia, serif;
  --font-sans: 'Noto Sans SC', system-ui, sans-serif;
  --transition: 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

/* ===== Reset ===== */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--text);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* ===== Navbar ===== */
.navbar {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 1000; padding: 0 40px;
  height: 64px;
  display: flex; align-items: center;
  transition: var(--transition);
  background: transparent;
}
.navbar.scrolled {
  background: rgba(250,247,243,0.92);
  backdrop-filter: blur(20px);
  box-shadow: 0 1px 10px rgba(0,0,0,0.06);
}
.nav-inner {
  max-width: 1280px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  width: 100%;
}
.nav-logo {
  font-family: var(--font-serif);
  font-size: 22px; font-weight: 700;
  color: var(--charcoal); text-decoration: none;
  letter-spacing: 4px;
}
.nav-links { display: flex; gap: 32px; }
.nav-links a {
  text-decoration: none; color: var(--text-light);
  font-size: 13px; font-weight: 500;
  letter-spacing: 2px; text-transform: uppercase;
  transition: color 0.3s;
  position: relative;
}
.nav-links a::after {
  content: ''; position: absolute; bottom: -4px; left: 0;
  width: 0; height: 1.5px; background: var(--accent);
  transition: width 0.3s;
}
.nav-links a:hover { color: var(--charcoal); }
.nav-links a:hover::after { width: 100%; }
.nav-toggle { display: none; background: none; border: none; font-size: 24px; cursor: pointer; color: var(--charcoal); }

/* ===== Hero Section ===== */
.hero {
  position: relative;
  height: 100vh; min-height: 600px;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}
#heroCanvas {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
}
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(
    135deg,
    rgba(44,36,30,0.6) 0%,
    rgba(44,36,30,0.3) 40%,
    rgba(44,36,30,0.5) 100%
  );
  z-index: 1;
}
.hero-content {
  position: relative; z-index: 2;
  text-align: center; color: #fff;
  max-width: 720px; padding: 0 24px;
  opacity: 0; transform: translateY(30px);
  animation: heroFadeIn 1.2s ease 0.8s forwards;
}
@keyframes heroFadeIn {
  to { opacity: 1; transform: translateY(0); }
}
.hero-badge {
  display: inline-block;
  font-size: 12px; letter-spacing: 3px;
  border: 1px solid rgba(255,255,255,0.3);
  padding: 6px 20px; border-radius: 20px;
  margin-bottom: 24px;
  backdrop-filter: blur(4px);
}
.hero-title {
  font-family: var(--font-serif);
  font-size: clamp(48px, 8vw, 96px);
  font-weight: 300;
  letter-spacing: 8px;
  line-height: 1.15;
  margin-bottom: 16px;
}
.hero-subtitle {
  font-size: clamp(16px, 2.5vw, 24px);
  font-weight: 300;
  letter-spacing: 6px;
  opacity: 0.85;
  margin-bottom: 12px;
}
.hero-desc {
  font-size: 14px; opacity: 0.6;
  letter-spacing: 2px;
  margin-bottom: 40px;
}
.hero-actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
.hero-scroll-hint {
  position: absolute; bottom: 40px; left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex; flex-direction: column;
  align-items: center; gap: 8px;
  color: rgba(255,255,255,0.5);
  font-size: 11px; letter-spacing: 2px;
  animation: float 2s ease-in-out infinite;
}
.scroll-dot {
  width: 2px; height: 24px;
  background: linear-gradient(to bottom, rgba(255,255,255,0.5), transparent);
  border-radius: 2px;
}
@keyframes float {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(8px); }
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 36px; border-radius: 30px;
  font-size: 13px; font-weight: 500;
  letter-spacing: 2px; text-decoration: none;
  cursor: pointer; transition: var(--transition);
  border: none; font-family: inherit;
}
.btn-primary {
  background: #fff; color: var(--charcoal);
}
.btn-primary:hover {
  background: var(--cream); transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.15);
}
.btn-outline {
  background: transparent; color: #fff;
  border: 1px solid rgba(255,255,255,0.4);
}
.btn-outline:hover {
  border-color: #fff; background: rgba(255,255,255,0.1);
  transform: translateY(-2px);
}
.btn-block { width: 100%; justify-content: center; }

/* ===== Section Common ===== */
.section {
  padding: 100px 40px;
  max-width: 1280px; margin: 0 auto;
}
.section-header {
  text-align: center;
  display: flex; flex-direction: column;
  align-items: center; gap: 12px;
  margin-bottom: 60px;
}
.section-tag {
  font-size: 11px; letter-spacing: 3px;
  color: var(--accent); text-transform: uppercase;
}
.section-title {
  font-family: var(--font-serif);
  font-size: clamp(28px, 4vw, 48px);
  font-weight: 300;
  letter-spacing: 4px;
  color: var(--charcoal);
}
.section-desc {
  font-size: 15px; color: var(--text-light);
  max-width: 520px; line-height: 1.8;
}

/* ===== Collection (Horizontal Scroll) ===== */
.scroll-container {
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding-bottom: 20px;
  cursor: grab;
}
.scroll-container::-webkit-scrollbar { display: none; }
.scroll-container:active { cursor: grabbing; }
.scroll-track {
  display: flex; gap: 24px;
  padding: 0 20px;
  width: max-content;
}
.product-card {
  width: 340px;
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  transition: var(--transition);
  box-shadow: 0 2px 20px rgba(0,0,0,0.04);
}
.product-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.08);
}
.product-image {
  position: relative;
  height: 420px; overflow: hidden;
}
.product-placeholder {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  transition: transform 0.6s ease;
}
.product-card:hover .product-placeholder { transform: scale(1.05); }
.product-zoom-hint {
  position: absolute; bottom: 20px;
  font-size: 12px; color: var(--charcoal);
  background: rgba(255,255,255,0.85);
  padding: 8px 16px; border-radius: 20px;
  opacity: 0; transform: translateY(10px);
  transition: var(--transition);
  backdrop-filter: blur(4px);
  letter-spacing: 1px;
}
.product-card:hover .product-zoom-hint {
  opacity: 1; transform: translateY(0);
}
.product-info {
  padding: 20px;
}
.product-tag {
  font-size: 10px; letter-spacing: 2px;
  color: var(--accent); text-transform: uppercase;
}
.product-info h3 {
  font-family: var(--font-serif);
  font-size: 18px; font-weight: 400;
  margin: 6px 0 4px;
}
.product-info p {
  font-size: 13px; color: var(--text-light);
}
.scroll-indicator {
  text-align: center;
  font-size: 12px; color: var(--text-light);
  letter-spacing: 3px;
  margin-top: 20px;
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 0.5; }
  50% { opacity: 1; }
}

/* ===== Fabric Lab ===== */
.fabric {
  background: linear-gradient(180deg, var(--bg) 0%, #f5efe8 100%);
  max-width: 100%; padding: 100px 40px;
}
.fabric-layout {
  max-width: 1280px; margin: 0 auto;
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 40px; align-items: start;
}
.fabric-visual {
  position: relative; aspect-ratio: 4/3;
  background: var(--cream-dark);
  border-radius: var(--radius);
  overflow: hidden;
}
#fabricTextureCanvas {
  width: 100%; height: 100%; display: block;
}
.fabric-hint {
  position: absolute; bottom: 16px; left: 50%;
  transform: translateX(-50%);
  font-size: 12px; color: var(--text-light);
  background: rgba(255,255,255,0.8);
  padding: 6px 14px; border-radius: 12px;
  white-space: nowrap;
  pointer-events: none;
}
.fabric-tags {
  display: flex; flex-direction: column;
  gap: 12px;
}
.fabric-tag {
  display: flex; align-items: center; gap: 16px;
  padding: 16px 20px;
  background: #fff;
  border: 1.5px solid transparent;
  border-radius: var(--radius);
  cursor: pointer;
  transition: var(--transition);
  text-align: left;
  font-family: inherit;
}
.fabric-tag:hover {
  border-color: var(--beige);
  transform: translateX(4px);
}
.fabric-tag.active {
  border-color: var(--accent);
  background: rgba(196,90,74,0.04);
  box-shadow: 0 4px 16px rgba(196,90,74,0.08);
}
.tag-icon { font-size: 24px; flex-shrink: 0; }
.tag-name {
  font-size: 15px; font-weight: 600;
  color: var(--charcoal);
  display: block;
}
.tag-desc {
  font-size: 12px; color: var(--text-light);
  display: block; margin-top: 2px;
}
.fabric-info {
  max-width: 1280px; margin: 32px auto 0;
  padding: 28px 32px;
  background: #fff;
  border-radius: var(--radius);
  box-shadow: 0 4px 20px rgba(0,0,0,0.04);
  transition: var(--transition);
}
.fabric-info h4 {
  font-family: var(--font-serif);
  font-size: 18px; margin-bottom: 8px;
  color: var(--charcoal);
}
.fabric-info p {
  font-size: 14px; line-height: 1.8;
  color: var(--text-light);
}

/* ===== Gallery ===== */
.gallery-masonry {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.gallery-item {
  border-radius: 12px;
  overflow: hidden;
  position: relative;
  cursor: pointer;
}
.gallery-placeholder {
  width: 100%; height: 100%;
  min-height: 180px;
  display: flex; align-items: center; justify-content: center;
  transition: transform 0.6s ease;
}
.gallery-item:hover .gallery-placeholder {
  transform: scale(1.04);
}
.gallery-quote {
  font-family: var(--font-serif);
  font-size: 14px; color: var(--charcoal);
  text-align: center; padding: 16px;
  background: rgba(255,255,255,0.8);
  border-radius: 8px;
  margin: 16px;
  line-height: 1.6;
  font-style: italic;
}
.gallery-cta {
  text-align: center; margin-top: 40px;
}
.gallery-cta .btn-primary {
  background: var(--charcoal); color: #fff;
}
.gallery-cta .btn-primary:hover {
  background: var(--brown-dark);
}

/* ===== Story Section ===== */
.story {
  max-width: 100%;
  padding: 120px 40px;
  position: relative;
  overflow: hidden;
}
.story-bg {
  position: absolute; inset: 0;
  background: linear-gradient(135deg, var(--charcoal) 0%, #1a1512 100%);
  z-index: 0;
}
.story-content {
  position: relative; z-index: 1;
  max-width: 1280px; margin: 0 auto;
  color: rgba(255,255,255,0.9);
}
.story-body {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 60px; align-items: center;
}
.story-text { max-width: 560px; }
.story-paragraph {
  font-size: 15px; line-height: 2;
  margin-bottom: 24px;
  opacity: 0; transform: translateY(20px);
  transition: all 0.8s ease;
}
.story-paragraph.visible {
  opacity: 1; transform: translateY(0);
}
.story-image {
  aspect-ratio: 3/4;
  border-radius: var(--radius);
  overflow: hidden;
}
.story-placeholder {
  width: 100%; height: 100%;
  background: linear-gradient(135deg, #3a322c, #5a4a3a);
  display: flex; align-items: center; justify-content: center;
}
.story-placeholder-inner {
  width: 80px; height: 80px;
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 32px; color: rgba(255,255,255,0.3);
}

/* ===== Footer ===== */
.footer {
  background: var(--charcoal);
  color: rgba(255,255,255,0.7);
  padding: 60px 40px 0;
}
.footer-inner {
  max-width: 1280px; margin: 0 auto;
  display: grid; grid-template-columns: 1fr 2fr;
  gap: 60px; padding-bottom: 40px;
}
.footer-logo {
  font-family: var(--font-serif);
  font-size: 24px; letter-spacing: 4px;
  color: #fff; margin-bottom: 8px;
}
.footer-brand p { font-size: 13px; line-height: 1.8; }
.footer-links {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px;
}
.footer-col h4 {
  font-size: 12px; letter-spacing: 2px;
  color: #fff; margin-bottom: 16px;
}
.footer-col a {
  display: block; color: rgba(255,255,255,0.5);
  text-decoration: none; font-size: 13px;
  margin-bottom: 10px; transition: color 0.3s;
}
.footer-col a:hover { color: rgba(255,255,255,0.9); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  text-align: center; padding: 24px;
  font-size: 12px; color: rgba(255,255,255,0.3);
}

/* ===== Modal ===== */
.modal-overlay {
  display: none; position: fixed; inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 2000;
  align-items: center; justify-content: center;
  padding: 20px;
}
.modal-overlay.show { display: flex; }
.modal-content {
  background: #fff; border-radius: var(--radius);
  max-width: 720px; width: 100%;
  max-height: 80vh; overflow-y: auto;
  box-shadow: 0 20px 60px rgba(0,0,0,0.2);
  animation: modalIn 0.3s ease;
}
@keyframes modalIn {
  from { opacity: 0; transform: scale(0.95) translateY(10px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}
.modal-close {
  position: absolute; top: 16px; right: 16px;
  background: none; border: none;
  font-size: 20px; cursor: pointer;
  color: var(--text-light); z-index: 1;
}
.modal-body { position: relative; padding: 32px; }
.modal-image {
  height: 200px;
  background: linear-gradient(135deg, var(--cream-dark), var(--beige));
  border-radius: 12px; margin-bottom: 24px;
}
.modal-info h3 {
  font-family: var(--font-serif);
  font-size: 24px; margin-bottom: 8px;
}
.modal-desc { font-size: 14px; line-height: 1.8; color: var(--text-light); margin-bottom: 20px; }
.modal-details { border-top: 1px solid #eee; padding-top: 16px; }
.modal-detail {
  display: flex; justify-content: space-between;
  padding: 8px 0; font-size: 13px;
  border-bottom: 1px solid #f5f5f5;
}
.modal-detail span:last-child { color: var(--text-light); }

/* ===== Share ===== */
.share-upload {
  position: relative;
  border: 2px dashed var(--beige);
  border-radius: 12px;
  padding: 40px; text-align: center;
  cursor: pointer; transition: var(--transition);
}
.share-upload:hover {
  border-color: var(--accent);
  background: rgba(196,90,74,0.04);
}
.share-upload input {
  position: absolute; inset: 0; opacity: 0; cursor: pointer;
}
.share-upload-icon { font-size: 32px; display: block; margin-bottom: 8px; }
.share-note {
  font-size: 11px; color: var(--text-light);
  text-align: center; margin-top: 12px;
}
.form-group { margin-bottom: 16px; }
.form-group label {
  display: block; font-size: 12px; font-weight: 600;
  color: #666; margin-bottom: 6px;
}
.form-input {
  width: 100%; padding: 10px 14px;
  border: 1.5px solid #e8e4e0; border-radius: 8px;
  font-size: 14px; font-family: inherit; outline: none;
  transition: 0.2s;
}
.form-input:focus { border-color: var(--brown); }



/* ===== Beian ===== */
.footer-beian {
  text-align: center;
  padding: 12px 24px 24px;
  font-size: 12px;
  color: rgba(255,255,255,0.3);
  display: flex; gap: 16px; justify-content: center; flex-wrap: wrap;
}
.footer-beian a {
  color: rgba(255,255,255,0.3);
  text-decoration: none;
  font-size: 12px;
  transition: color 0.3s;
}
.footer-beian a:hover { color: rgba(255,255,255,0.3); }
.footer-tech {
  text-align: center;
  padding: 4px 24px 20px;
  font-size: 12px;
  color: rgba(255,255,255,0.25);
}
.footer-tech a {
  color: rgba(255,255,255,0.25);
  text-decoration: none;
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
  .navbar { padding: 0 20px; }
  .nav-links { display: none; }
  .nav-toggle { display: block; }
  .nav-links.open {
    display: flex; flex-direction: column;
    position: absolute; top: 64px; left: 0; right: 0;
    background: rgba(250,247,243,0.98);
    padding: 20px; gap: 16px;
    backdrop-filter: blur(20px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
  }
  .section { padding: 60px 20px; }
  .fabric-layout { grid-template-columns: 1fr; }
  .fabric { padding: 60px 20px; }
  .story { padding: 80px 20px; }
  .story-body { grid-template-columns: 1fr; gap: 32px; }
  .footer-inner { grid-template-columns: 1fr; gap: 32px; }
  .footer-links { grid-template-columns: 1fr 1fr; }
  .gallery-masonry { grid-template-columns: repeat(2, 1fr); }
  .product-card { width: 280px; }
  .product-image { height: 340px; }
  .hero-title { letter-spacing: 4px; }
  .fabrics { flex-direction: column; }
}

@media (max-width: 480px) {
  .gallery-masonry { grid-template-columns: 1fr; }
  .footer-links { grid-template-columns: 1fr; }
  .product-card { width: 240px; }
  .product-image { height: 300px; }
}
root@iZbp1d0jyyki6r2dhoe4m0Z:~root@iZbp1d0jyyki6r2dhoe4m0Z:~root@iZbp1d0jyyki6r2dhoe4m0Z:~root@iZbp1d0jyyki6r2dhoe4m0Z:~