/* ===========================================
    快乐公司 · products.css (v4, FULL ISOLATION)
    - Contains the full content of style.css
    - Defines custom styles for the Product Page
    =========================================== */

/* ===== Google Font ===== */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;600;700;800&display=swap');

/* ===== Root Tokens (edit these 2 first) ===== */
:root {
  --global-radius: 12px;
  /* ◀︎ Roundness for ALL buttons/chips/eyebrow */
  --global-transparency: 0.80;
  /* ◀︎ Fill opacity for gradient UI (0.5 glassy ~ 1 solid) */

  /* Theme */
  --bg: #060a12;
  --text: #eaf4ff;
  --muted: #9fb3c9;

  /* Gradient (from your sample) */
  --grad-top: #F2E6EE;
  --grad-bottom: #977DFF;

  /* === GEMINI MODIFICATION: Changed to Muted Blue-Violet Theme === */
  --accent-primary: #8A73FF;
  --accent-hover: #7059FF;
  /* A darker shade for hover */
  --accent-glow: rgba(138, 115, 255, 0.3);
  /* === END MODIFICATION === */

  /* Surfaces & effects */
  --border: rgba(255, 255, 255, .12);
  --radius: 16px;
  --shadow: 0 12px 40px rgba(0, 0, 0, .45);
  --shadow-purple: 0 8px 28px rgba(151, 125, 255, .30);

  /* ===== START: Added Chatbot Glass Variables ===== */
  /* These are needed for the chatbot's "glass" effect */
  --glass-bg: linear-gradient(180deg, rgba(15, 36, 54, .88), rgba(15, 36, 54, .78));
  --glass-border: rgba(255, 255, 255, .18);
  --glass-inset: rgba(255, 255, 255, .06);
  --glass-shadow: 0 18px 30px rgba(0, 0, 0, .35);
  /* ===== END: Added Chatbot Glass Variables ===== */
}

/* ===== Base ===== */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0
}

html,
body {
  height: 100%
}

body {
  font-family: 'Poppins', system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img {
  max-width: 100%;
  display: block
}

.container {
  width: min(1120px, 92%);
  margin: 0 auto
}

/* ===== Header / Nav ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: linear-gradient(to bottom, rgba(6, 10, 18, .9), rgba(6, 10, 18, .55), transparent);
  backdrop-filter: blur(8px);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text)
}

.brand__logo {
  width: 34px;
  height: 34px;
  object-fit: contain
}

.brand__name {
  font-weight: 800;
  font-size: 1.1rem
}

.menu {
  display: flex;
  gap: 22px
}

.menu a {
  color: var(--muted);
  text-decoration: none;
  font-weight: 600;
  transition: .2s
}

.menu a:hover {
  color: var(--text)
}

.nav-cta {
  display: flex;
  gap: 10px
}

/* ===== Buttons (use global vars) ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 11px 18px;
  font-weight: 700;
  letter-spacing: .2px;
  text-decoration: none;
  border: 1px solid rgba(255, 255, 255, .10);
  border-radius: var(--global-radius);
  transition: all .25s ease;
  backdrop-filter: blur(6px);
  cursor: pointer;
  /* Added for consistency */
}

/* Added: Disabled state for buttons */
.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}


/* === GEMINI MODIFICATION: Re-styled Primary Button to Muted Blue-Violet === */
.btn--primary {
  color: #ffffff;
  background: var(--accent-primary);
  border: 1px solid var(--accent-primary);
  box-shadow: 0 4px 20px var(--accent-glow);
}

.btn--primary:hover:not(:disabled) {
  color: #ffffff;
  background: var(--accent-hover);
  border: 1px solid var(--accent-hover);
  box-shadow: 0 6px 25px rgba(138, 115, 255, 0.4);
  transform: translateY(-1px);
}

/* === GEMINI MODIFICATION: Re-styled Ghost Button to Outline Muted Blue-Violet === */
.btn--ghost {
  color: var(--accent-primary);
  border: 1px solid var(--accent-primary);
  background: rgba(138, 115, 255, 0.1);
  /* Light blue-violet tint */
}

.btn--ghost:hover:not(:disabled) {
  color: var(--accent-hover);
  background: rgba(138, 115, 255, 0.2);
  border-color: var(--accent-hover);
  box-shadow: 0 0 20px rgba(138, 115, 255, 0.2);
}

.btn--lg {
  padding: 14px 24px;
  font-size: 1.05rem
}

/* ===== Video Background ===== */
.bg {
  position: fixed;
  inset: 0;
  z-index: -2
}

.bg__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(1.15) contrast(1.05) brightness(.85)
}

.bg__overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(1000px 600px at 50% 10%, rgba(151, 125, 255, .18), transparent 55%),
    radial-gradient(900px 500px at 70% 70%, rgba(242, 230, 238, .18), transparent 60%),
    linear-gradient(180deg, rgba(6, 10, 18, .35), rgba(6, 10, 18, .75) 30%, rgba(6, 10, 18, .9))
}

@media (prefers-reduced-motion:reduce) {
  .bg__video {
    display: none
  }
}

/* ===== Hero (Default - from Index_2.html) ===== */
.hero {
  padding: 120px 0 80px;
  min-height: 72vh;
  display: flex;
  align-items: center;
}

.hero__inner {
  text-align: left;
}

.hero__subtitle {
  font-size: 1.15rem;
  color: var(--muted);
  margin: 20px 0 30px;
  max-width: 550px;
  line-height: 1.7;
}

.hero__title {
  margin: 0;
  font-weight: 800;
  letter-spacing: -.5px;
  line-height: 1.06;
  font-size: min(66px, 10vw);
  text-shadow: 0 10px 50px rgba(0, 0, 0, .35)
}

.hero__cta {
  display: flex;
  gap: 12px;
  justify-content: flex-start;
  margin-top: 12px
}


/* ===== Sections (Default) ===== */
.section {
  padding: 80px 0
}

.section__title {
  font-size: 34px;
  margin: 0 0 12px
}

.section__lead {
  color: var(--muted);
  margin: 0 0 26px
}

/* ===== Solutions (cards x5) - Not used in products.html but kept for consistency ===== */
.cards {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(5, 1fr)
}

.card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, .05);
  box-shadow: var(--shadow);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.card__icon,
.card>img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 0;
  margin: 0;
  display: block;
}

.card>*:not(img):not(.card__icon) {
  padding: 16px 18px
}

.card h3 {
  margin: 0 0 6px
}

.card p {
  color: var(--muted);
  margin: 0 0 8px
}

.card__bullets {
  margin: 4px 0 14px 20px;
  padding: 0
}

.card__bullets li {
  margin: 6px 0
}

.card__link {
  margin-top: auto;
  color: var(--grad-bottom);
  text-decoration: none;
  padding: 0 18px 18px
}

/* ===== Use Cases - Not used in products.html but kept for consistency ===== */
.usecases {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px
}

.usecase {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 16px;
  padding: 14px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, .03)
}

.usecase img {
  width: 160px;
  height: 110px;
  object-fit: cover;
  border-radius: 12px
}

/* ===== Cases / Resources - Not used in products.html but kept for consistency ===== */
.casegrid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px
}

.case {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, .03);
  padding: 14px;
  transition: all .2s ease;
}

.case img {
  height: 160px;
  width: 100%;
  object-fit: cover;
  border-radius: 12px;
  margin-bottom: 10px
}

.resources {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px
}

.res {
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, .03)
}

.res img {
  height: 120px;
  width: 100%;
  object-fit: cover;
  border-radius: 12px;
  margin-bottom: 10px
}

.link {
  color: var(--grad-bottom);
  text-decoration: none
}

/* ===== CTA Band - Not used in products.html but kept for consistency ===== */
.section--cta {
  padding: 64px 0
}

.cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 24px 28px;
  background: linear-gradient(180deg, rgba(151, 125, 255, .25), rgba(242, 230, 238, .12) 70%)
}

.cta__copy p {
  color: var(--muted);
  margin: .3rem 0 0
}

/* ===== Contact ===== */
.contact {
  display: grid;
  gap: 16px
}

.contact .grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px
}

.contact label {
  display: flex;
  flex-direction: column;
  gap: 6px
}

input,
select,
textarea {
  background: rgba(255, 255, 255, .03);
  border: 1px solid var(--border);
  color: var(--text);
  border-radius: 12px;
  padding: 12px;
  outline: none;
  font-family: inherit;
  /* Ensure custom inputs inherit font */
  font-size: 14px;
  /* Standardize font size */
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--accent-primary);
  box-shadow: 0 0 10px var(--accent-glow);
}

textarea {
  min-height: 120px;
  resize: vertical
}

/* ===== START: FIX for Dropdown Option Readability ===== */
select option {
  color: #1a202c;
  /* A dark text color */
  background: #FFFFFF;
  /* A standard white background */
}

/* ===== END: FIX for Dropdown Option Readability ===== */


/* ===== Footer ===== */
.footer {
  padding: 40px 0;
  border-top: 1px solid var(--border);
  background: rgba(0, 0, 0, .4)
}

.footer__grid {
  display: flex;
  align-items: center;
  justify-content: space-between
}

.footer__brand {
  display: flex;
  align-items: center;
  gap: 14px
}

.footer__brand img {
  width: 28px;
  height: 28px
}

.footer__links {
  display: flex;
  gap: 18px
}

.footer__links a {
  color: var(--muted);
  text-decoration: none
}

.footer__links a:hover {
  color: var(--text)
}

/* ===== Trust row - Not used in products.html but kept for consistency ===== */
.trust {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 40px;
  justify-content: flex-start;
}

.trust img {
  height: 50px;
  opacity: .9
}

/* ===== Scroll Indicator (optional) - Not used in products.html but kept for consistency ===== */
.scroll-indicator {
  --size: 26px;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: 28px;
  width: var(--size);
  height: var(--size);
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, .18);
  box-shadow: 0 0 20px rgba(151, 125, 255, .25);
  background:
    radial-gradient(closest-side, rgba(255, 255, 255, .85), rgba(255, 255, 255, 0) 70%),
    linear-gradient(180deg, rgba(255, 255, 255, .08), rgba(255, 255, 255, .02))
}

.scroll-indicator::after {
  content: "";
  position: absolute;
  inset: 0;
  margin: auto;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--grad-bottom);
  animation: drop 1.6s infinite
}

@keyframes drop {
  0% {
    transform: translateY(4px);
    opacity: 1
  }

  70% {
    transform: translateY(12px);
    opacity: .1
  }

  100% {
    transform: translateY(4px);
    opacity: 1
  }
}

/* ===== Responsive (Default) ===== */
@media (max-width:1200px) {
  .cards {
    grid-template-columns: repeat(3, 1fr)
  }
}

@media (max-width:1024px) {
  .hero__title {
    font-size: min(52px, 12vw)
  }

  .casegrid,
  .resources {
    grid-template-columns: repeat(2, 1fr)
  }
}

@media (max-width:640px) {
  .menu {
    display: none
  }

  .cards {
    grid-template-columns: 1fr
  }

  .casegrid,
  .resources {
    grid-template-columns: 1fr
  }

  .usecase {
    grid-template-columns: 1fr
  }

  .contact .grid {
    grid-template-columns: 1fr
  }
}


/* ======================================================== */
/* ===== START: ROBOT CHAT BOT STYLES (Integrated) ===== */
/* ======================================================== */

.hidden {
  display: none !important
}

.chat-fab {
  position: fixed;
  right: 22px;
  bottom: 22px;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  padding: 0;
  border: none;
  outline: none;
  background: transparent;
  overflow: hidden;
  cursor: pointer;
  z-index: 40;
}

.chat-fab:focus-visible {
  outline: 3px solid rgba(255, 255, 255, .35)
}

.chat-fab video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  pointer-events: none;
  display: block;
  background: transparent;
}

.chat-panel {
  position: fixed;
  right: 22px;
  bottom: 90px;
  width: min(520px, 92vw);
  height: min(560px, 80vh);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  z-index: 50;
  border-radius: 18px;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-shadow), 0 0 0 1px var(--glass-inset) inset;
  backdrop-filter: blur(10px) saturate(120%);
  -webkit-backdrop-filter: blur(10px) saturate(120%);
  color: var(--text);
}

.chat-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
  background: linear-gradient(180deg, rgba(255, 255, 255, .08), rgba(255, 255, 255, .02));
  border-bottom: 1px solid var(--glass-border);
}

.chat-title {
  font-weight: 900;
  letter-spacing: .2px;
  color: var(--text)
}

.chat-actions {
  display: flex;
  gap: 8px;
  align-items: center
}

.chat-panel .chip {
  font-size: 12px;
  padding: 6px 10px;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(255, 255, 255, .08), rgba(255, 255, 255, .03));
  border: 1px solid rgba(255, 255, 255, .12);
  color: var(--text);
  box-shadow: none;
  font-weight: normal;
}

.chat-panel .chip:hover {
  transform: none;
  background: linear-gradient(180deg, rgba(255, 255, 255, .12), rgba(255, 255, 255, .05));
  box-shadow: none;
}

#chatClose.btn {
  background: transparent;
  color: var(--text);
  border: 1px solid rgba(255, 255, 255, .22);
  padding: 6px 10px;
  border-radius: 10px;
  font-weight: 800;
  letter-spacing: normal;
  display: inline-flex;
  line-height: 1;
  box-shadow: none;
  backdrop-filter: none;
}

#chatClose.btn:hover {
  background: rgba(255, 255, 255, .1);
  color: var(--text);
  box-shadow: none;
  transform: none;
}

.chat-body {
  flex: 1;
  display: grid;
  grid-template-columns: 1fr 240px;
  min-height: 0
}

@media (max-width:820px) {
  .chat-body {
    grid-template-columns: 1fr
  }

  .sidebar.chat-side {
    display: none;
  }
}

.thread.chat-thread {
  padding: 14px;
  overflow: auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: linear-gradient(180deg, rgba(0, 0, 0, .25), rgba(0, 0, 0, .45));
  border-right: 1px solid var(--glass-border);
}

.msg {
  max-width: 85%;
  padding: 10px 12px;
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(255, 255, 255, .08), rgba(255, 255, 255, .03));
  border: 1px solid rgba(255, 255, 255, .12);
  color: var(--text);
  line-height: 1.5;
}

.me {
  align-self: flex-end;
  background: linear-gradient(180deg, rgba(255, 213, 119, .22), rgba(0, 0, 0, .55));
  border-color: rgba(255, 213, 119, .45);
}

.sidebar.chat-side {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 14px;
  background: linear-gradient(180deg, rgba(255, 255, 255, .06), rgba(255, 255, 255, .02));
  border-left: 1px solid var(--glass-border);
  color: var(--text);
}

.side-item.chat-side-item {
  padding: 10px 12px;
  border-radius: 10px;
  background: linear-gradient(180deg, rgba(255, 255, 255, .06), rgba(255, 255, 255, .03));
  font-size: 12px;
  color: var(--text);
  border: 1px solid rgba(255, 255, 255, .12);
  cursor: pointer;
}

.side-item.chat-side-item:hover {
  background: linear-gradient(180deg, rgba(255, 255, 255, .1), rgba(255, 255, 255, .05));
}

.side-title {
  font-size: 12px;
  color: var(--muted);
  font-weight: 800;
  margin-bottom: 6px;
}

.chat-input {
  display: flex;
  gap: 10px;
  padding: 12px;
  background: linear-gradient(180deg, rgba(255, 255, 255, .06), rgba(255, 255, 255, .02));
  border-top: 1px solid var(--glass-border);
}

.chat-input textarea {
  resize: none;
  height: 44px;
  flex: 1;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, .22);
  background: rgba(0, 0, 0, .25);
  color: var(--text);
  padding: 10px 12px;
  outline: none;
  font-family: inherit;
  font-size: 14px;
}

.chat-input textarea:focus {
  border-color: rgba(255, 255, 255, .5);
  box-shadow: 0 0 10px var(--accent-glow);
}

.send-btn {
  height: 44px;
  padding: 0 16px;
  border-radius: 12px;
  border: 1px solid rgba(255, 213, 119, .45);
  background: linear-gradient(180deg, rgba(255, 213, 119, .28), rgba(0, 0, 0, .45));
  color: var(--text);
  font-weight: 800;
  cursor: pointer;
  font-family: inherit;
}

.send-btn:hover {
  box-shadow: 0 0 0 1px rgba(255, 213, 119, .35) inset;
  background: linear-gradient(180deg, rgba(255, 213, 119, .35), rgba(0, 0, 0, .55));
}

/* ======================================================== */
/* ===== END: ROBOT CHAT BOT STYLES (Integrated) ===== */
/* ======================================================== */



/* ======================================================== */
/* ===== START: Added by Gemini (Card Link) - Keep for completeness ===== */
/* ======================================================== */

.case-link {
  text-decoration: none;
  color: inherit;
  display: block;
  border-radius: var(--radius);
  transition: all .2s ease;
  outline: none;
}

.case-link:hover .case {
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, .35);
  border-color: rgba(255, 255, 255, .25);
}

.case-link:focus-visible {
  outline: 2px solid var(--grad-bottom);
  outline-offset: 2px;
}

.case-link:focus-visible .case {
  border-color: rgba(255, 255, 255, .25);
}


/* ======================================================== */
/* ===== START: Added by Gemini (Video Player Page) - Keep for completeness ===== */
/* ======================================================== */

.video-header {
  padding: 20px 0;
  border-bottom: 1px solid var(--border);
  background: rgba(6, 10, 18, .5);
  margin-bottom: 30px;
}

.video-page-wrapper {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  padding-bottom: 60px;
  width: min(1400px, 92%);
}

.video-player-container {
  width: 100%;
  background: #000;
  border-radius: var(--global-radius);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: 0 10px 40px rgba(0, 0, 0, .3);
}

.video-player-container video {
  width: 100%;
  display: block;
}

.video-info {
  margin-top: 20px;
}

.video-info h1 {
  font-size: 28px;
  font-weight: 700;
  color: var(--text);
  line-height: 1.3;
}

.video-stats {
  color: var(--muted);
  font-size: 0.9rem;
  margin-top: 8px;
}

.video-stats span+span {
  margin-left: 12px;
}

.video-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.video-tags .tag {
  background: rgba(255, 255, 255, .1);
  border: 1px solid var(--border);
  padding: 5px 12px;
  border-radius: var(--global-radius);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text);
}

.video-description {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
  color: var(--muted);
  line-height: 1.7;
}

.video-sidebar {
  background: rgba(255, 255, 255, .03);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  height: fit-content;
}

.video-sidebar h3 {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 16px;
  color: var(--text);
}

.video-playlist {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.chapter-item {
  display: flex;
  gap: 12px;
  cursor: pointer;
  background: rgba(0, 0, 0, .2);
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid transparent;
  transition: all .2s ease;
}

.chapter-item:hover {
  background: rgba(255, 255, 255, .1);
  border-color: var(--border);
}

.chapter-item img {
  width: 120px;
  height: 70px;
  object-fit: cover;
  flex-shrink: 0;
}

.chapter-item-info {
  padding: 8px 10px 8px 0;
  color: var(--text);
}

.chapter-item-info h4 {
  font-size: 0.9rem;
  font-weight: 600;
  margin: 0 0 4px;
}

.chapter-item-info span {
  font-size: 0.8rem;
  color: var(--muted);
}

@media (min-width: 900px) {
  .video-page-wrapper {
    grid-template-columns: 3fr 1fr;
  }
}

/* --- START: 从 Index_2.html 移入的新增样式 --- */
.card {
  position: relative;
  transition: transform 0.2s ease-out, box-shadow 0.2s ease-out;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow, 0 12px 40px rgba(0, 0, 0, .45));
}

.card .card-click-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
}

.card>*:not(.card-click-overlay) {
  position: relative;
  z-index: 1;
}

.card .card__link {
  color: var(--brand, #8A73FF);
  font-weight: 600;
}

/* --- START: 新增的合作伙伴区域样式 - Keep for completeness --- */
#partners {
  padding-top: 40px;
  padding-bottom: 40px;
}

#partners .section__title {
  letter-spacing: 0.1em;
  margin-bottom: 10px;
}

#partners .section__lead {
  letter-spacing: 0.2em;
  font-size: 1.1rem;
  margin-top: -10px;
  margin-bottom: 40px;
  color: var(--muted, #9fb3c9);
}

.partner-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-radius: var(--radius, 16px);
  overflow: hidden;
  border: 1px solid var(--border, rgba(255, 255, 255, .12));
  box-shadow: var(--shadow, 0 12px 40px rgba(0, 0, 0, .45));
}

.partner-card {
  padding: 40px 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-right: 1px solid var(--border, rgba(255, 255, 255, .12));
  border-bottom: 1px solid var(--border, rgba(255, 255, 255, .12));
}

.partner-grid .partner-card:nth-child(3n) {
  border-right: none;
}

.partner-grid .partner-card:nth-child(n+4) {
  border-bottom: none;
}

.partner-card img {
  max-width: 100%;
  height: 60px;
  object-fit: contain;
  transition: filter 0.3s ease, opacity 0.3s ease;
}

.partner-card:hover img {
  opacity: 1;
}

@media (max-width: 768px) {
  .partner-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .partner-grid .partner-card:nth-child(3n) {
    border-right: 1px solid var(--border, rgba(255, 255, 255, .12));
  }

  .partner-grid .partner-card:nth-child(2n) {
    border-right: none;
  }

  .partner-grid .partner-card:nth-child(n+4) {
    border-bottom: 1px solid var(--border, rgba(255, 255, 255, .12));
  }

  .partner-grid .partner-card:nth-child(n+5) {
    border-bottom: none;
  }
}

@media (max-width: 480px) {
  .partner-grid {
    grid-template-columns: 1fr;
  }

  .partner-grid .partner-card {
    border-right: none;
    border-bottom: 1px solid var(--border, rgba(255, 255, 255, .12));
  }

  .partner-grid .partner-card:last-child {
    border-bottom: none;
  }
}

/* --- END: W(q)= ( (q-1) * (I(q)-I(q-1)) + I(1) ) / q
 合作伙伴样式 --- */


/* ======================================================== */
/* ===== START: NEW PDF Download Modal Styles (BASE THEME) - Keep for completeness ===== */
/* ======================================================== */

.modal-hidden {
  display: none;
}

.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-panel {
  position: relative;
  width: min(480px, 90vw);
  /* Re-use the chat panel's glass effect for consistency */
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-shadow), 0 0 0 1px var(--glass-inset) inset;
  border-radius: var(--radius);
  padding: 28px 24px 24px;
  z-index: 101;
  color: var(--text);
}

.modal-panel h3 {
  font-size: 22px;
  font-weight: 700;
  margin: 0 0 8px;
}

.modal-lead {
  color: var(--muted);
  margin: 0 0 20px;
  font-size: 15px;
}

.modal-close-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  background: transparent;
  border: none;
  color: var(--muted);
  font-size: 20px;
  font-weight: 700;
  padding: 8px;
  line-height: 1;
  cursor: pointer;
  border-radius: 50%;
  transition: all .2s ease;
}

.modal-close-btn:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.1);
}

.modal-overlay.modal-hidden {
  display: none;
}

#pdf-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* Use same styles as contact form */
#pdf-form label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 14px;
  font-weight: 600;
}

/* Use same styles as contact form inputs */
#pdf-form input,
#pdf-form select {
  background: rgba(0, 0, 0, .25);
  /* Darker than main contact form for better contrast in modal */
  border: 1px solid var(--border);
  color: var(--text);
  border-radius: 12px;
  padding: 12px;
  outline: none;
  font-family: inherit;
  font-size: 15px;
}

#pdf-form input:focus,
#pdf-form select:focus {
  border-color: var(--accent-primary);
  box-shadow: 0 0 10px var(--accent-glow);
}

.form-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 8px;
}

.form-actions .btn {
  width: 100%;
  /* Make button full width */
}

.form-status-msg {
  font-size: 14px;
  text-align: center;
  margin-top: 10px;
  color: var(--muted);
}

.form-status-msg.error {
  color: #ffaaaa;
  /* A light red for errors */
}

/* ======================================================== */
/* ===== END: NEW PDF Download Modal Styles (BASE THEME) ===== */
/* ======================================================== */

/* ======================================================== */
/* ===== START: FIX for Dropdown Visibility (NEW) - Keep for completeness ===== */
/* ======================================================== */

.dropdown-menu {
  /* This is the key fix. It forces the menu to be hidden,
     overridden ONLY by the specific :hover rule in products.css */
  display: none !important;
  /* Also reset pointer events for safety */
  pointer-events: none;
}

/* ======================================================== */
/* ===== END: FIX for Dropdown Visibility (NEW) ===== */
/* ======================================================== */


/* ======================================================== */
/* ===== START: Custom Product Page Styles (NEW) ===== */
/* ======================================================== */

/* --- Custom Hero/Video Styles for Product Page --- */
.product-hero {
  padding: 80px 0 60px;
  /* Reduced top padding for a shorter hero */
  min-height: auto;
  /* Allow height to be determined by content */
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.product-hero__title {
  margin: 0;
  font-weight: 800;
  letter-spacing: -.5px;
  line-height: 1.06;
  font-size: min(52px, 10vw);
  text-shadow: 0 10px 50px rgba(0, 0, 0, .35);
  margin-bottom: 10px;
}

.product-hero__subtitle {
  font-size: 1.15rem;
  color: var(--muted);
  max-width: 700px;
  line-height: 1.7;
  margin: 0 auto 30px;
}

.product-video-container {
  width: 100%;
  background: #000;
  border-radius: var(--global-radius);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: 0 10px 40px rgba(0, 0, 0, .3);
}

.product-video-container video {
  width: 100%;
  display: block;
}


/* --- Custom Cards Grid (3 columns) --- */
.product-cards {
  display: grid;
  gap: 20px;
  /* Use 3 columns for a clean look, mirroring the image layout */
  grid-template-columns: repeat(3, 1fr);
}

/* Ensure the cards section title has proper margin */
.products-section .section__title {
  margin-bottom: 25px;
}


/* Style for the card content to hold the product info */
.product-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, .05);
  box-shadow: var(--shadow);
  overflow: hidden;
  padding: 20px;
  /* Added padding */
  display: flex;
  flex-direction: column;
  transition: all .2s ease;
  min-height: 150px;
  /* Ensure a minimum height for visual consistency */
}

.product-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, .55);
}

.product-card h4 {
  font-size: 1.15rem;
  margin: 0 0 8px;
  font-weight: 700;
  color: var(--accent-primary);
  /* Highlight the product name */
}

.product-card p {
  color: var(--muted);
  margin: 0;
  font-size: 0.95rem;
}

/* --- Responsive adjustments for the product grid --- */
@media (max-width: 1024px) {
  .product-cards {
    grid-template-columns: repeat(2, 1fr);
  }

  .product-hero {
    padding: 60px 0 40px;
  }
}

@media (max-width: 640px) {
  .product-cards {
    grid-template-columns: 1fr;
  }

  .product-hero {
    padding: 40px 0 30px;
  }

  .product-hero__title {
    font-size: min(40px, 10vw);
  }
}

/* ======================================================== */
/* ===== END: Custom Product Page Styles (NEW) ===== */
/* ======================================================== */