@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;600&family=Libre+Baskerville:wght@400;700&display=swap');

/* Brand container */
.brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

/* Logo image */
.logo-img {
  height: 70px;
  /* 调整大小 */
  width: auto;
  object-fit: contain;
  filter: brightness(0.9) contrast(1.1);
}

/* Logo text */
.logo-text {
  font-family: "Libre Baskerville", serif;
  font-weight: 700;
  font-size: 1.3rem;
  letter-spacing: 2px;
  color: var(--ink);
}

.logo-img {
  opacity: 2.0;
  transition: opacity 0.3s ease;
}

.brand:hover .logo-img {
  opacity: 1;
}


:root {
  --bg: #211f1e;
  --section-bg: #3b3733;
  --ink: #f1ede6;
  --muted: #b7afa4;
  --accent: #d6b97b;
  --transition: 0.3s ease;
  --max-width: 1100px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  background: var(--bg);
  color: var(--ink);
  font-family: "Inter", sans-serif;
  line-height: 1.75;
}

/* HEADER */
.header {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 2rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.logo {
  font-family: "Libre Baskerville", serif;
  font-weight: 700;
  letter-spacing: 2px;
}

nav a {
  text-decoration: none;
  color: var(--muted);
  margin-left: 1.5rem;
  font-size: 0.95rem;
  transition: color var(--transition);
}

nav a:hover,
nav a.active {
  color: var(--accent);
}

/* HERO SECTION */
.hero {
  max-width: var(--max-width);
  margin: 5rem auto 4rem;
  padding: 0 2rem;
}

.hero h1 {
  font-family: "Libre Baskerville", serif;
  font-size: 2.3rem;
  color: var(--accent);
  margin-bottom: 1.2rem;
}

.hero p {
  margin-bottom: 1.3rem;
  color: var(--muted);
  text-align: justify;
  font-size: 1rem;
}

.manifesto {
  text-align: center;
  margin: 5rem auto;
  color: var(--muted);
  font-family: "Libre Baskerville", serif;
}

.manifesto blockquote {
  font-size: 1.2rem;
  font-style: italic;
  margin-bottom: 0.5rem;
  color: #b7afa4;
}

/* ===== ARCHIVE COMMENTS SECTION ===== */
.archive-comments {
  background: var(--bg);
  max-width: var(--max-width);
  margin: 6rem auto;
  padding: 0 2rem;
  text-align: center;
}

.archive-comments h2 {
  font-family: "Libre Baskerville", serif;
  font-size: 1.6rem;
  color: var(--accent);
  margin-bottom: 0.5rem;
}

.archive-comments .subtext {
  color: var(--muted);
  margin-bottom: 2.5rem;
  font-size: 0.95rem;
}

.comment-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.comment-card {
  background: rgba(80, 74, 68, 0.3);
  /* 半透明档案感 */
  border: 1px solid rgba(214, 185, 123, 0.3);
  border-radius: 6px;
  padding: 1.5rem;
  text-align: left;
  color: var(--ink);
  font-size: 0.95rem;
  position: relative;
  transition: transform 0.3s ease, border-color 0.3s ease;
  backdrop-filter: blur(6px);
}

.comment-card:hover {
  transform: translateY(-4px);
  border-color: var(--accent);
}

.card-header {
  display: flex;
  justify-content: space-between;
  font-family: "Inter", sans-serif;
  font-size: 0.8rem;
  color: var(--muted);
  margin-bottom: 1rem;
}

.comment-card p {
  font-family: "Libre Baskerville", serif;
  font-style: italic;
  color: var(--ink);
  line-height: 1.6;
  margin-bottom: 1rem;
}

.card-footer {
  text-align: right;
  color: var(--muted);
  font-size: 0.85rem;
  border-top: 1px dashed rgba(255, 255, 255, 0.1);
  padding-top: 0.6rem;
}

.archive-btn {
  margin-top: 3rem;
}

.archive-btn .btn {
  background: transparent;
  border: 1px solid var(--accent);
  color: var(--accent);
  padding: 0.5rem 1.2rem;
  text-decoration: none;
  transition: all 0.3s ease;
}

.archive-btn .btn:hover {
  background: var(--accent);
  color: var(--bg);
}


/* PRODUCT PREVIEW */
.preview {
  background: var(--section-bg);
  padding: 5rem 2rem;
}

.preview h2 {
  font-family: "Libre Baskerville", serif;
  font-size: 1.6rem;
  color: var(--accent);
  text-align: center;
  margin-bottom: 3rem;
}

.grid {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.card {
  background: #2f2b27;
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 6px;
  overflow: hidden;
  transition: transform 0.3s ease;
}

.card:hover {
  transform: translateY(-5px);
}

.card img {
  width: 100%;
  height: auto;
  display: block;
  filter: grayscale(0.3);
}

.card-content {
  padding: 1.5rem;
}

.card h3 {
  font-family: "Libre Baskerville", serif;
  color: var(--ink);
  margin-bottom: 0.5rem;
  font-size: 1.1rem;
}

.card p {
  color: var(--muted);
  font-size: 0.95rem;
  margin-bottom: 1rem;
}

.btn {
  text-decoration: none;
  color: var(--accent);
  border: 1px solid var(--accent);
  padding: 0.4rem 0.8rem;
  font-size: 0.9rem;
  transition: all 0.3s ease;
}

.btn:hover {
  background: var(--accent);
  color: var(--bg);
}

/* FOOTER */
.footer {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 2rem;
  display: flex;
  justify-content: space-between;
  color: var(--muted);
  font-size: 0.9rem;
}

.footer-left p {
  margin-bottom: 0.3rem;
}

@media (max-width: 700px) {
  .footer {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }
}

body {
  background: var(--bg) url('assets/images/texture.png');
  background-size: cover;
  background-blend-mode: multiply;
}

.newsletter {
  text-align: center;
  background: var(--section-bg);
  padding: 3rem 2rem;
}

.newsletter input {
  background: transparent;
  border: 1px solid var(--muted);
  color: var(--ink);
  padding: 0.5rem 1rem;
  width: 220px;
}

.newsletter button {
  background: var(--accent);
  border: none;
  color: var(--bg);
  padding: 0.5rem 1.2rem;
  margin-left: 0.5rem;
  cursor: pointer;
}

/* ===== COMMUNITY PAGE ===== */
.community-hero {
  max-width: var(--max-width);
  margin: 4rem auto 3rem;
  padding: 0 2rem;
  text-align: center;
}

.community-hero h1 {
  font-family: "Libre Baskerville", serif;
  color: var(--accent);
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.community-hero p {
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.7;
}

/* Blog Grid */
.community-feed {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  padding: 2rem;
}

.post-card {
  background: rgba(80, 74, 68, 0.3);
  border: 1px solid rgba(214, 185, 123, 0.3);
  border-radius: 6px;
  padding: 1.5rem;
  backdrop-filter: blur(6px);
  transition: transform 0.3s ease, border-color 0.3s ease;
}

.post-card:hover {
  transform: translateY(-5px);
  border-color: var(--accent);
}

.post-header {
  display: flex;
  justify-content: space-between;
  font-size: 0.8rem;
  color: var(--muted);
  margin-bottom: 0.8rem;
}

.post-card h3 {
  font-family: "Libre Baskerville", serif;
  color: var(--ink);
  margin-bottom: 0.5rem;
  font-size: 1.1rem;
}

.post-card p {
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* Load Button */
.load-more {
  text-align: center;
  margin: 3rem 0;
}

#loadMoreBtn {
  background: transparent;
  border: 1px solid var(--accent);
  color: var(--accent);
  padding: 0.6rem 1.5rem;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.3s ease;
}

#loadMoreBtn:hover {
  background: var(--accent);
  color: var(--bg);
}

/* ====== LIKE BUTTON ====== */
.post-actions {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  margin-top: 1rem;
  gap: 0.5rem;
  color: var(--muted);
  font-size: 0.9rem;
  user-select: none;
}

.like-btn {
  display: inline-flex;
  align-items: center;
  cursor: pointer;
  transition: color 0.3s ease;
}

.like-btn svg {
  width: 20px;
  height: 20px;
  margin-right: 4px;
  stroke: var(--muted);
  stroke-width: 1.5;
  fill: none;
  transition: stroke 0.3s ease, fill 0.3s ease;
}

.like-btn.liked svg {
  stroke: var(--accent);
  fill: rgba(214, 185, 123, 0.15);
}

.like-btn:hover svg {
  stroke: var(--accent);
}

/* ===== ADD OBSERVATION BUTTON ===== */
.add-observation {
  text-align: center;
  margin: 2rem 0;
}

#openFormBtn {
  background: transparent;
  border: 1px solid var(--accent);
  color: var(--accent);
  padding: 0.6rem 1.2rem;
  cursor: pointer;
  transition: all 0.3s ease;
}

#openFormBtn:hover {
  background: var(--accent);
  color: var(--bg);
}

/* ===== FORM POPUP OVERLAY ===== */
.form-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(20, 18, 16, 0.85);
  backdrop-filter: blur(6px);
  z-index: 1000;
  justify-content: center;
  align-items: center;
}

.form-box {
  background: rgba(80, 74, 68, 0.3);
  border: 1px solid rgba(214, 185, 123, 0.3);
  border-radius: 6px;
  padding: 2rem;
  width: 90%;
  max-width: 480px;
  color: var(--ink);
  font-family: "Inter", sans-serif;
}

.form-box h2 {
  text-align: center;
  color: var(--accent);
  font-family: "Libre Baskerville", serif;
  margin-bottom: 1.5rem;
}

.form-box label {
  display: block;
  font-size: 0.9rem;
  color: var(--muted);
  margin-bottom: 0.3rem;
}

.form-box input,
.form-box textarea {
  width: 100%;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: var(--ink);
  font-size: 0.9rem;
  padding: 0.6rem;
  margin-bottom: 1rem;
  border-radius: 4px;
}

.form-actions {
  display: flex;
  justify-content: space-between;
}

.form-actions button {
  border: 1px solid var(--accent);
  background: transparent;
  color: var(--accent);
  padding: 0.5rem 1rem;
  cursor: pointer;
  transition: all 0.3s ease;
}

.form-actions button:hover {
  background: var(--accent);
  color: var(--bg);
}

/* ===== STORE PAGE ===== */
.store-hero {
  max-width: var(--max-width);
  margin: 4rem auto 3rem;
  padding: 0 2rem;
  text-align: center;
}

.store-hero h1 {
  font-family: "Libre Baskerville", serif;
  font-size: 2rem;
  color: var(--accent);
  margin-bottom: 0.5rem;
}

.store-hero p {
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.7;
  max-width: 680px;
  margin: 0 auto;
}

/* PRODUCT GALLERY */
.product-gallery {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 4rem;
}

/* PRODUCT CARD */
.product-card {
  display: flex;
  flex-wrap: nowrap;
  background: rgba(80, 74, 68, 0.3);
  border: 1px solid rgba(214, 185, 123, 0.3);
  border-radius: 10px;
  padding: 2.5rem;
  gap: 3rem;
  align-items: center;
  backdrop-filter: blur(8px);
  max-width: 1100px;
  margin: 100px;
}

.product-images {
  flex: 1 1 300px;
  position: relative;
  overflow: hidden;
  border-radius: 6px;
}

.product-images img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.4s ease;
}

.product-images:hover img {
  transform: scale(1.05);
}

.product-card {
  min-height: 480px;
  /* 加高度 */
}


/* SLIDE CONTROLS */
.slide-controls {
  position: absolute;
  top: 50%;
  width: 100%;
  display: flex;
  justify-content: space-between;
  transform: translateY(-50%);
}

.slide-controls button {
  background: rgba(43, 39, 36, 0.7);
  border: 1px solid rgba(214, 185, 123, 0.3);
  color: var(--accent);
  cursor: pointer;
  font-size: 1rem;
  padding: 0.3rem 0.6rem;
}

/* INFO SIDE */
.product-info {
  flex: 1 1 280px;
}

.product-info h2 {
  font-family: "Libre Baskerville", serif;
  color: var(--ink);
  font-size: 1.4rem;
  margin-bottom: 0.6rem;
}

.product-info p {
  color: var(--muted);
  font-size: 0.95rem;
  margin-bottom: 1rem;
}

.detail-link {
  color: var(--accent);
  text-decoration: underline;
  cursor: pointer;
}

.product-actions {
  display: flex;
  gap: 0.8rem;
}

.action-btn {
  border: 1px solid var(--accent);
  background: transparent;
  color: var(--accent);
  padding: 0.5rem 1.2rem;
  cursor: pointer;
  transition: all 0.3s ease;
}

.action-btn:hover {
  background: var(--accent);
  color: var(--bg);
}

/* POPUP DETAIL */
.detail-popup {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(20, 18, 16, 0.85);
  backdrop-filter: blur(6px);
  justify-content: center;
  align-items: center;
  z-index: 2000;
}

.detail-content {
  background: rgba(80, 74, 68, 0.3);
  border: 1px solid rgba(214, 185, 123, 0.3);
  border-radius: 6px;
  color: var(--ink);
  width: 90%;
  max-width: 600px;
  padding: 2rem;
  position: relative;
}

.close-detail {
  position: absolute;
  top: 10px;
  right: 15px;
  cursor: pointer;
  color: var(--accent);
  font-size: 1.3rem;
}

/* ===== ABOUT PAGE ===== */

.about-hero {
  text-align: center;
  padding: 6rem 2rem 4rem;
  background: var(--section-bg);
}

.about-hero h1 {
  font-family: "Libre Baskerville", serif;
  color: var(--accent);
  font-size: 2rem;
  margin-bottom: 0.8rem;
}

.about-hero p {
  color: var(--muted);
  max-width: 600px;
  margin: 0 auto;
  font-size: 1rem;
  line-height: 1.7;
}

/* Mission Section */
.about-mission {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 3rem;
  max-width: var(--max-width);
  margin: 5rem auto;
  padding: 0 2rem;
}

.mission-text {
  flex: 1 1 400px;
}

.mission-text h2 {
  color: var(--accent);
  font-family: "Libre Baskerville", serif;
  font-size: 1.6rem;
  margin-bottom: 1rem;
}

.mission-text p {
  color: var(--muted);
  margin-bottom: 1rem;
  text-align: justify;
}

.mission-img {
  flex: 1 1 350px;
}

.mission-img img {
  width: 100%;
  border-radius: 6px;
  opacity: 0.9;
}

/* Archive Section */
.about-archive {
  display: flex;
  flex-wrap: wrap-reverse;
  align-items: center;
  gap: 3rem;
  max-width: var(--max-width);
  margin: 5rem auto;
  padding: 0 2rem;
}

.archive-image {
  flex: 1 1 400px;
}

.archive-image img {
  width: 100%;
  border-radius: 6px;
  opacity: 0.9;
}

.archive-text {
  flex: 1 1 350px;
}

.archive-text h2 {
  color: var(--accent);
  margin-bottom: 1rem;
  font-family: "Libre Baskerville", serif;
}

.archive-text p {
  color: var(--muted);
  margin-bottom: 1rem;
}

/* Philosophy */
.about-philosophy {
  text-align: center;
  max-width: 700px;
  margin: 6rem auto;
  padding: 0 2rem;
}

.about-philosophy h2 {
  color: var(--accent);
  font-family: "Libre Baskerville", serif;
  margin-bottom: 1rem;
}

.about-philosophy p {
  color: var(--muted);
  line-height: 1.8;
  text-align: justify;
}

/* Team Section */
.about-team {
  max-width: var(--max-width);
  margin: 6rem auto;
  padding: 0 2rem 6rem;
  text-align: center;
}

.about-team h2 {
  color: var(--accent);
  font-family: "Libre Baskerville", serif;
  margin-bottom: 2rem;
}

.team-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
  margin-bottom: 2rem;
}

.team-member {
  background: rgba(80, 74, 68, 0.3);
  border: 1px solid rgba(214, 185, 123, 0.3);
  padding: 1.5rem;
  border-radius: 6px;
  width: 250px;
}

.team-member h3 {
  color: var(--ink);
  margin-bottom: 0.3rem;
}

.team-member p {
  color: var(--muted);
  font-size: 0.9rem;
}

/* Contact Info */
.contact {
  color: var(--muted);
  font-size: 0.95rem;
}


.intro-section {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  justify-content: center;
  gap: 40px;
  padding: 60px 80px;
}

.logo2-img {
  height: 290px;
  width: auto;
  object-fit: contain;
  filter: brightness(0.9) contrast(1.1);
}

.intro-text {
  flex: 1;
  max-width: 600px;
  color: #d6c37d;
  font-family: "Cinzel", serif;
}

.intro-text h2 {
  font-size: 2rem;
  margin-bottom: 12px;
  text-shadow: 0 0 8px rgba(255, 215, 0, 0.3);
}

/* ===== TIMELINE SECTION ===== */
.about-timeline {
  max-width: var(--max-width);
  margin: 6rem auto;
  padding: 0 2rem;
  text-align: left;
}

.about-timeline h2 {
  color: var(--accent);
  font-family: "Libre Baskerville", serif;
  text-align: center;
  margin-bottom: 1.5rem;
}

.timeline-intro {
  color: var(--muted);
  text-align: center;
  max-width: 700px;
  margin: 0 auto 3rem;
  line-height: 1.6;
}

/* Timeline vertical line */
.timeline {
  position: relative;
  margin-left: 2rem;
  border-left: 1px solid rgba(214, 185, 123, 0.3);
  padding-left: 2rem;
}

/* Each item */
.timeline-item {
  position: relative;
  margin-bottom: 3rem;
}

.timeline-item::before {
  content: "";
  position: absolute;
  left: -1.1rem;
  top: 0.5rem;
  width: 10px;
  height: 10px;
  background: var(--accent);
  border-radius: 50%;
}

.timeline-item .year {
  font-family: "Libre Baskerville", serif;
  color: var(--accent);
  font-size: 1.1rem;
  margin-bottom: 0.3rem;
}

.timeline-item .desc h3 {
  color: var(--ink);
  font-size: 1.1rem;
  margin-bottom: 0.4rem;
}

.timeline-item .desc p {
  color: var(--muted);
  line-height: 1.6;
  font-size: 0.95rem;
  text-align: justify;
}

/* Responsive */
@media (max-width: 768px) {
  .timeline {
    margin-left: 1rem;
    padding-left: 1.5rem;
  }

}

/* -------- 手机与平板响应式调整 -------- */
@media (max-width: 768px) {
    body {
        padding: 10px;
    }

    nav {
        flex-direction: column;
        align-items: center;
    }

    nav a {
        display: block;
        margin: 5px 0;
    }

    .container, .grid {
        display: grid;
        grid-template-columns: 1fr; /* 一列 */
        gap: 10px;
    }

    img {
        max-width: 100%;
        height: auto;
    }

    /* 如果有文字和图片并排的区域，可以强制堆叠 */
    .section {
        flex-direction: column;
        text-align: center;
    }
}

/* 📱 让商品卡片在手机上更好看 */
@media (max-width: 768px) {
    .product-card {
        display: flex;
        flex-direction: column; /* 改为上下排列 */
        align-items: center;
        text-align: center;
        width: 100%;
        margin: 20px 0;
    }

    .product-card img {
        width: 80%; /* 图片宽度缩放到合适比例 */
        height: auto;
        margin-bottom: 10px;
        border-radius: 10px;
    }

    .product-info {
        width: 90%;
        margin: 0 auto;
    }

    .product-actions {
        display: flex;
        justify-content: center;
        flex-wrap: wrap;
        gap: 10px;
    }

    .product-actions button {
        width: auto;
        min-width: 120px;
    }
}
/* ======== 📱 手机端排版修复强力版 ======== */
@media (max-width: 768px) {
  .product-card {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
    width: 90% !important;
    margin: 20px auto !important;
  }

  .product-card img {
    width: 80% !important;
    height: auto !important;
    margin-bottom: 15px !important;
    border-radius: 10px;
  }

  .product-info {
    width: 90% !important;
    margin: 0 auto !important;
    text-align: center !important;
  }

  .product-actions {
    display: flex !important;
    justify-content: center !important;
    flex-wrap: wrap !important;
    gap: 10px !important;
  }

  .product-actions button {
    width: auto !important;
    min-width: 120px !important;
    padding: 10px 16px !important;
  }
}
/* ========= 📱 Store Product Card 手机端修复 ========= */
@media (max-width: 768px) {
  .product-gallery {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    gap: 2rem !important;
    padding: 1rem !important;
  }

  .product-card {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: flex-start !important;
    width: 90% !important;
    max-width: 400px !important;
    background: rgba(25, 25, 25, 0.7);
    border: 1px solid rgba(220, 200, 120, 0.3);
    border-radius: 14px;
    box-shadow: 0 0 18px rgba(255, 255, 255, 0.05);
    padding: 1.5rem !important;
    text-align: center;
  }

  .product-images {
    position: relative;
    width: 100%;
    max-width: 280px;
    margin-bottom: 1rem;
  }

  .product-images img {
    width: 100%;
    height: auto;
    border-radius: 10px;
  }

  .slide-controls {
    position: absolute;
    top: 45%;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 0 0.5rem;
  }

  .slide-controls button {
    background: rgba(0, 0, 0, 0.4);
    color: #d4af37;
    border: none;
    border-radius: 6px;
    font-size: 1.4rem;
    width: 30px;
    height: 30px;
  }

  .product-info {
    width: 100%;
  }

  .product-info h2 {
    font-size: 1.4rem;
    margin-bottom: 0.5rem;
    color: #f4e7b3;
  }

  .product-info p {
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 1rem;
    color: #d8d8d8;
  }

  .detail-link {
    display: inline-block;
    color: #d4af37;
    font-weight: bold;
    margin-bottom: 1rem;
  }

  .product-actions {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
  }

  .product-actions button {
    border: 1px solid #d4af37;
    background: transparent;
    color: #d4af37;
    border-radius: 6px;
    padding: 8px 14px;
    font-size: 0.9rem;
  }

  .product-actions button:hover {
    background: #d4af37;
    color: #111;
  }
}
  /* === Fine-tune vertical spacing === */
  .product-card {
    padding: 1rem !important;
  }

  .product-images {
    margin-bottom: 0.5rem !important;
  }

  .product-info h2 {
    margin-top: 0.2rem !important;
    margin-bottom: 0.3rem !important;
    line-height: 1.2;
  }

  .product-info p {
    margin-top: 0.2rem !important;
    margin-bottom: 0.8rem !important;
  }

  .slide-controls {
    bottom: 0;
    top: auto !important;
    transform: translateY(50%);
  }

  /* Optional: slightly reduce the card width so content feels centered */
  .product-gallery {
    gap: 1.5rem !important;
  }

  /* Reduce space below detail link */
  .detail-link {
    margin-bottom: 0.5rem !important;
  }

/* =====统一商品图片区比例 + 修正箭头定位===== */

/* 固定图片区比例（4:5，可改成1:1看你喜欢） */
.product-images {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 5;  /* 可改成 1 / 1 或 3 / 4 */
  overflow: hidden;
  border-radius: 10px;
  background: #222; /* 避免图片空白时出现背景 */
  display: flex;
  align-items: center;
  justify-content: center;
}

/* 图片自动填满框但保持比例，超出则裁切 */

/* 箭头恢复在图片两侧 */
.slide-controls {
  position: absolute;
  top: 50%;
  left: 0;
  width: 100%;
  display: flex;
  justify-content: space-between;
  transform: translateY(-50%);
  padding: 0 10px;
  pointer-events: none;
}

.slide-controls button {
  background: rgba(0, 0, 0, 0.5);
  border: none;
  color: white;
  font-size: 1.5rem;
  padding: 5px 10px;
  border-radius: 50%;
  cursor: pointer;
  pointer-events: all;
  transition: background 0.2s ease;
}

.slide-controls button:hover {
  background: rgba(255, 255, 255, 0.3);
}




/* ===== 修正箭头贴左右居中 ===== */
.slide-controls {
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  transform: translateY(-50%);
  display: flex;
  justify-content: space-between;
  align-items: center;
  pointer-events: none; /* 不挡住图片点击 */
}

.slide-controls button {
  background: rgba(0, 0, 0, 0.4);
  color: var(--accent);
  border: none;
  border-radius: 50%;
  width: 34px;
  height: 34px;
  font-size: 1.3rem;
  cursor: pointer;
  pointer-events: auto; /* 让按钮可点 */
  transition: background 0.3s ease;
}

.slide-controls button:hover {
  background: rgba(214, 185, 123, 0.6);
  color: var(--bg);
}


/* 手机端下让比例不变，只是缩小间距 */
@media (max-width: 768px) {
  .product-card {
    width: 90%;
    margin: 0 auto 2rem;
  }
}

/* 🖥 桌面端图片大小限制 */


/* 调整箭头按钮位置 */
.slide-controls {
  position: absolute;
  top: 50%;
  left: 0;
  width: 100%;
  display: flex;
  justify-content: space-between;
  transform: translateY(-50%);
  pointer-events: none;
}

.slide-controls button {
  background: rgba(0, 0, 0, 0.5);
  color: #fff;
  border: none;
  padding: 6px 10px;
  border-radius: 50%;
  cursor: pointer;
  pointer-events: all;
  transition: background 0.3s ease;
}

.slide-controls button:hover {
  background: rgba(0, 0, 0, 0.8);
}

/* 📱 手机端：图片区域稍微小一点 */
@media (max-width: 768px) {
  .product-images {
    height: 220px;
  }
}
/* 🌒 音乐按钮风格化设计 */
.music-button {
  position: fixed;
  top: 20px;
  left: 24px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: radial-gradient(circle at center, rgba(212, 175, 55, 0.15), rgba(0, 0, 0, 0.5));
  border: 1px solid rgba(212, 175, 55, 0.4);
  box-shadow: 0 0 12px rgba(212, 175, 55, 0.3);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.4s ease;
  z-index: 999;
}

.music-button:hover {
  box-shadow: 0 0 20px rgba(212, 175, 55, 0.6);
  transform: scale(1.05);
}

/* 音符符号样式 */
.note-symbol {
  font-size: 1.3rem;
  color: #d4af37;
  text-shadow: 0 0 10px rgba(212, 175, 55, 0.6);
  transition: all 0.3s ease;
}

/* 播放中状态 */
.music-button.playing {
  background: radial-gradient(circle at center, rgba(163, 230, 53, 0.25), rgba(0, 0, 0, 0.7));
  box-shadow: 0 0 25px rgba(163, 230, 53, 0.6);
}

.music-button.playing .note-symbol {
  color: #a3e635;
  animation: pulseNote 1.6s infinite alternate;
}

/* 暂停状态带划痕 */
.music-button.paused::after {
  content: "";
  position: absolute;
  width: 2px;
  height: 26px;
  background: rgba(185, 28, 28, 0.9);
  transform: rotate(-25deg);
  box-shadow: 0 0 6px rgba(185, 28, 28, 0.6);
}

@keyframes pulseNote {
  from {
    text-shadow: 0 0 6px rgba(163, 230, 53, 0.4);
  }
  to {
    text-shadow: 0 0 18px rgba(163, 230, 53, 0.8);
  }
}














