/* ===== Reset & Base ===== */
*,*::before,*::after{box-sizing:border-box;margin:0;padding:0}
html{scroll-behavior:smooth;font-size:16px}
body{font-family:-apple-system,BlinkMacSystemFont,"Segoe UI","PingFang SC","Hiragino Sans GB","Microsoft YaHei",sans-serif;color:#1a1a2e;background:#f8f9fc;line-height:1.6}
img{max-width:100%;display:block}
a{color:#2563eb;text-decoration:none;transition:color .2s}
a:hover{color:#1d4ed8}
ul{list-style:none}

/* ===== Layout ===== */
.container{max-width:1200px;margin:0 auto;padding:0 24px}

/* ===== Header ===== */
.site-header{background:#fff;box-shadow:0 1px 3px rgba(0,0,0,.08);position:sticky;top:0;z-index:100}
.header-inner{display:flex;align-items:center;justify-content:space-between;height:64px}
.logo{font-size:1.35rem;font-weight:700;color:#1a1a2e;letter-spacing:0}
.logo span{color:#2563eb}
.main-nav{display:flex;gap:28px;align-items:center}
.main-nav a{color:#475569;font-size:.9rem;font-weight:500;transition:color .2s}
.main-nav a:hover{color:#2563eb}
.nav-toggle{display:none;background:none;border:none;font-size:1.5rem;cursor:pointer;color:#1a1a2e}

/* ===== Hero ===== */
.hero{background:linear-gradient(135deg,#0f172a 0%,#1e3a5f 100%);color:#fff;padding:80px 0 60px;text-align:center}
.hero h1{font-size:2.6rem;font-weight:800;margin-bottom:16px;letter-spacing:0}
.hero p{font-size:1.15rem;color:#94a3b8;max-width:640px;margin:0 auto 32px}
.hero-btn{display:inline-block;background:#2563eb;color:#fff;padding:14px 36px;border-radius:8px;font-weight:600;font-size:1rem;transition:background .2s}
.hero-btn:hover{background:#1d4ed8;color:#fff}

/* ===== Section Titles ===== */
.section-title{text-align:center;margin-bottom:48px}
.section-title h2{font-size:2rem;font-weight:700;color:#1a1a2e;margin-bottom:8px}
.section-title p{color:#64748b;font-size:1rem}

/* ===== Product Grid ===== */
.products-section{padding:64px 0}
.product-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(340px,1fr));gap:28px}
.product-card{background:#fff;border-radius:12px;overflow:hidden;box-shadow:0 2px 12px rgba(0,0,0,.06);transition:transform .25s,box-shadow .25s}
.product-card:hover{transform:translateY(-4px);box-shadow:0 8px 24px rgba(0,0,0,.12)}
.product-card img{width:100%;height:220px;object-fit:cover}
.product-card .card-body{padding:20px 24px 24px}
.product-card .card-body h3{font-size:1.1rem;font-weight:600;color:#1a1a2e;margin-bottom:8px}
.product-card .card-body .spec-tags{display:flex;flex-wrap:wrap;gap:6px;margin-bottom:12px}
.product-card .card-body .spec-tags span{background:#eff6ff;color:#2563eb;font-size:.75rem;padding:3px 10px;border-radius:20px;font-weight:500}
.product-card .card-body .desc{font-size:.88rem;color:#64748b;line-height:1.55;margin-bottom:14px}
.product-card .card-body .price{font-size:1.15rem;font-weight:700;color:#2563eb}
.product-card .card-body .buy-btn{display:inline-block;margin-top:12px;background:#2563eb;color:#fff;padding:8px 20px;border-radius:6px;font-size:.85rem;font-weight:600;text-decoration:none;transition:background .2s}
.product-card .card-body .buy-btn:hover{background:#1d4ed8;color:#fff}

/* ===== Features Section ===== */
.features-section{padding:64px 0;background:#fff}
.features-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(260px,1fr));gap:24px}
.feature-card{text-align:center;padding:32px 20px;border-radius:10px;background:#f8f9fc;transition:transform .2s}
.feature-card:hover{transform:translateY(-3px)}
.feature-icon{width:56px;height:56px;background:linear-gradient(135deg,#2563eb,#7c3aed);border-radius:14px;display:flex;align-items:center;justify-content:center;margin:0 auto 16px;font-size:1.5rem;color:#fff}
.feature-card h3{font-size:1rem;font-weight:600;color:#1a1a2e;margin-bottom:8px}
.feature-card p{font-size:.85rem;color:#64748b}

/* ===== Payment Badges ===== */
.payment-section{padding:48px 0;text-align:center}
.payment-badges{display:flex;justify-content:center;gap:20px;flex-wrap:wrap;margin-top:24px}
.payment-badge{background:#fff;border:1px solid #e2e8f0;border-radius:8px;padding:12px 28px;font-weight:600;color:#1a1a2e;font-size:.95rem;box-shadow:0 1px 3px rgba(0,0,0,.04)}
.card-logo-strip{max-width:820px;margin:0 auto 22px}
.card-logo-strip img{width:100%;height:auto}

/* ===== Footer ===== */
.site-footer{background:#0f172a;color:#94a3b8;padding:48px 0 24px}
.footer-grid{display:grid;grid-template-columns:2fr 1fr 1fr 1fr;gap:40px;margin-bottom:40px}
.footer-col h4{color:#fff;font-size:.95rem;font-weight:600;margin-bottom:16px}
.footer-col p,.footer-col a{font-size:.85rem;color:#94a3b8;line-height:1.8}
.footer-col a:hover{color:#60a5fa}
.footer-payment{border-top:1px solid #1e293b;padding-top:22px;margin-bottom:22px;text-align:center}
.footer-card-logos{max-width:760px;margin:0 auto}
.footer-card-logos img{width:100%;height:auto}
.footer-bottom{border-top:1px solid #1e293b;padding-top:20px;text-align:center;font-size:.8rem;color:#64748b}

/* ===== Policy Pages ===== */
.policy-page{padding:64px 0}
.policy-page h1{font-size:2rem;font-weight:700;color:#1a1a2e;margin-bottom:32px;text-align:center}
.policy-content{background:#fff;border-radius:12px;padding:40px 48px;box-shadow:0 2px 12px rgba(0,0,0,.06);max-width:900px;margin:0 auto}
.policy-content h2{font-size:1.3rem;font-weight:600;color:#1a1a2e;margin:32px 0 12px;padding-bottom:8px;border-bottom:2px solid #eff6ff}
.policy-content h2:first-child{margin-top:0}
.policy-content p{font-size:.92rem;color:#475569;margin-bottom:12px;line-height:1.7}
.policy-content ul{margin:0 0 12px 20px;list-style:disc}
.policy-content ul li{font-size:.92rem;color:#475569;line-height:1.7;margin-bottom:4px}
.policy-content ol{margin:0 0 12px 20px;list-style:decimal}
.policy-content ol li{font-size:.92rem;color:#475569;line-height:1.7;margin-bottom:4px}
.policy-content table{width:100%;border-collapse:collapse;margin:16px 0}
.policy-content table th,.policy-content table td{border:1px solid #e2e8f0;padding:10px 14px;font-size:.88rem;text-align:left}
.policy-content table th{background:#f1f5f9;font-weight:600;color:#1a1a2e}
.policy-content .highlight{background:#fff7ed;border-left:4px solid #f59e0b;padding:12px 16px;border-radius:0 8px 8px 0;margin:16px 0;font-size:.9rem;color:#92400e}
.policy-content .contact-box{background:#eff6ff;border-radius:8px;padding:20px 24px;margin:20px 0}
.policy-content .contact-box p{color:#1e40af;margin-bottom:4px}
.legal-object-wrap object{min-height:720px;border:0}

/* ===== Contact Page ===== */
.contact-grid{display:grid;grid-template-columns:1fr 1fr;gap:32px;margin-top:32px}
.contact-info-card{background:#f8f9fc;border-radius:10px;padding:28px}
.contact-info-card h3{font-size:1rem;font-weight:600;color:#1a1a2e;margin-bottom:12px}
.contact-info-card p{font-size:.9rem;color:#475569;margin-bottom:6px}
.contact-info-card .icon-label{display:flex;align-items:center;gap:8px;margin-bottom:12px}
.contact-info-card .icon-label span:first-child{font-size:1.2rem}

/* ===== Product Detail Modal ===== */
.modal-overlay{display:none;position:fixed;top:0;left:0;width:100%;height:100%;background:rgba(0,0,0,.5);z-index:200;justify-content:center;align-items:center}
.modal-overlay.active{display:flex}
.modal{background:#fff;border-radius:14px;max-width:720px;width:90%;max-height:85vh;overflow-y:auto;padding:32px;position:relative}
.modal-close{position:absolute;top:16px;right:20px;font-size:1.5rem;cursor:pointer;background:none;border:none;color:#64748b}
.modal h2{font-size:1.3rem;font-weight:700;color:#1a1a2e;margin-bottom:16px}
.modal .modal-img{width:100%;height:280px;object-fit:cover;border-radius:8px;margin-bottom:20px}
.modal .spec-table{width:100%;border-collapse:collapse;margin:12px 0}
.modal .spec-table th,.modal .spec-table td{border:1px solid #e2e8f0;padding:8px 12px;font-size:.85rem;text-align:left}
.modal .spec-table th{background:#f1f5f9;font-weight:600;width:35%;color:#1a1a2e}
.modal .spec-table td{color:#475569}

/* ===== Responsive ===== */
@media(max-width:768px){
  .header-inner{flex-wrap:wrap}
  .main-nav{display:none;flex-direction:column;width:100%;padding:12px 0;gap:0}
  .main-nav.active{display:flex}
  .main-nav a{padding:10px 0;border-bottom:1px solid #f1f5f9}
  .nav-toggle{display:block}
  .hero h1{font-size:1.8rem}
  .hero p{font-size:1rem}
  .product-grid{grid-template-columns:1fr}
  .footer-grid{grid-template-columns:1fr 1fr}
  .contact-grid{grid-template-columns:1fr}
  .policy-content{padding:24px 20px}
}
@media(max-width:480px){
  .footer-grid{grid-template-columns:1fr}
  .payment-badges{gap:10px}
  .payment-badge{padding:10px 18px;font-size:.85rem}
}
