/* Generic promo page additions (loaded after style.css) */

/* Anchor offset below sticky nav */
#page-zhendang section[id] { scroll-margin-top: 80px; }

/* Nav */
.nav .brand { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; }
.nav .links a.nav-cta { background: #FF9F0A; color: #fff; font-weight: 700; }
.nav .links a.nav-cta:hover { background: #E08600; color: #fff; }
.hamburger { margin-left: auto; }

/* Hero */
.hero-product .btn-ghost { background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.38); box-shadow: none; }
.hero-product .btn-ghost:hover { background: rgba(255,255,255,.2); transform: translateY(-3px); box-shadow: none; }
.hero-trial { display: inline-block; position: relative; z-index: 1; margin-top: 18px; background: rgba(0,200,150,.16); border: 1px solid rgba(0,200,150,.45); color: #9BFFE0; padding: 8px 20px; border-radius: 22px; font-size: 16px; font-weight: 600; }

/* Product overview */
.product-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.product-card { display: block; background: #fff; border: 1px solid #f0f0f0; border-radius: 14px; padding: 28px 24px; text-decoration: none; color: inherit; box-shadow: 0 1px 3px rgba(0,0,0,.1); transition: all .3s; }
.product-card:hover { transform: translateY(-4px); box-shadow: 0 8px 30px rgba(0,0,0,.12); }
.product-icon { font-size: 34px; margin-bottom: 12px; }
.product-card h3 { font-size: 22px; color: #1A1A2E; margin-bottom: 8px; }
.product-card p { font-size: 17px; color: #4B5563; line-height: 1.7; }
.product-link { display: inline-block; margin-top: 14px; color: #FF9F0A; font-weight: 700; }

/* Video cards */
.video-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.video-grid-3 { grid-template-columns: repeat(3, 1fr); }
.video-grid-2 { grid-template-columns: repeat(2, 1fr); }
.video-card { display: block; width: 100%; background: #fff; border: 1px solid #f0f0f0; border-radius: 12px; padding: 0; overflow: hidden; cursor: pointer; text-align: left; box-shadow: 0 1px 3px rgba(0,0,0,.1); transition: all .3s; font-family: inherit; color: inherit; }
.video-card:hover { transform: translateY(-4px); box-shadow: 0 8px 30px rgba(0,0,0,.12); }
.video-thumb { position: relative; display: block; aspect-ratio: 16 / 9; background: #0F0F23; overflow: hidden; }
.video-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.video-play { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 54px; height: 54px; border-radius: 50%; background: rgba(255,159,10,.92); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 22px; padding-left: 3px; box-shadow: 0 4px 18px rgba(0,0,0,.3); }
.video-dur { position: absolute; right: 8px; bottom: 8px; background: rgba(0,0,0,.72); color: #fff; font-size: 13px; line-height: 1; padding: 5px 8px; border-radius: 10px; }
.video-title { display: block; padding: 12px 14px 4px; font-size: 18px; font-weight: 700; color: #1A1A2E; }
.video-desc { display: block; padding: 0 14px 14px; font-size: 14px; color: #6B7280; }

/* Buy section extra button */
.buy-section .btn-buy + .btn-buy { margin-left: 12px; }
.buy-section .btn-video { background: #00C896; box-shadow: 0 4px 20px rgba(0,200,150,.4); }
.buy-section .btn-video:hover { background: #00A87E; box-shadow: 0 6px 30px rgba(0,200,150,.5); }
button.btn-buy { border: none; font-family: inherit; cursor: pointer; }

/* QR modal */
.qr-modal-box { position: relative; padding: 34px 38px 30px; }
.qr-modal-box h2 { font-size: 22px; color: #1A1A2E; margin: 0 0 6px; }
.qr-tip { font-size: 15px; color: #4B5563; margin: 0 0 16px; }
.qr-img { display: block; width: 230px; height: 230px; margin: 0 auto; border: 1px solid #EEF0F4; border-radius: 12px; padding: 10px; background: #fff; box-shadow: 0 4px 18px rgba(0,0,0,.08); }
.qr-note { margin-top: 14px; font-size: 13px; color: #9CA3AF; line-height: 1.6; }
@media (max-width: 768px) {
  .qr-modal-box { padding: 26px 18px 22px; }
  .qr-img { width: 190px; height: 190px; }
}

/* Footer */
.footer p { margin: 4px 0; }
.footer a { color: #6B7280; text-decoration: none; }
.footer a:hover { color: #FF9F0A; }

/* Modal base overrides */
.modal-overlay { z-index: 2000; }
body.modal-open { overflow: hidden; }
.modal-close { position: absolute; top: 10px; right: 14px; background: none; border: none; color: #9CA3AF; font-size: 24px; line-height: 1; cursor: pointer; padding: 4px; }
.modal-close:hover { color: #D93025; }

/* Video modal */
.video-modal-box { position: relative; max-width: 900px; width: 94%; padding: 22px 26px; text-align: left; max-height: 92vh; overflow-y: auto; }
.video-modal-box h2 { font-size: 21px; text-align: left; color: #1A1A2E; margin: 0 30px 12px 0; }
.video-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.video-tab { background: #F3F4F6; border: none; border-radius: 6px; padding: 8px 12px; font-size: 14px; color: #374151; cursor: pointer; font-family: inherit; transition: all .2s; }
.video-tab:hover { background: #E5E7EB; }
.video-tab.active { background: #FF9F0A; color: #fff; font-weight: 700; }
#zdVideo { width: 100%; max-height: 60vh; display: block; background: #000; border-radius: 8px; }
.video-note { margin-top: 10px; font-size: 14px; color: #6B7280; line-height: 1.7; }

/* Responsive */
@media (max-width: 900px) {
  .product-grid { grid-template-columns: 1fr; }
  .video-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .hero-trial { font-size: 14px; padding: 7px 16px; }
  .product-grid { grid-template-columns: 1fr; }
  .video-grid { grid-template-columns: 1fr; }
  .video-modal-box { padding: 18px 14px; }
  .video-modal-box h2 { font-size: 18px; }
  .video-tab { font-size: 12px; padding: 7px 9px; }
  #zdVideo { max-height: 50vh; }
  .buy-section .btn-buy + .btn-buy { margin-left: 0; }
}
