/* ===== 广东三晟 - 共享样式 ===== */

/* 图片/视频资源防盗保护 */
img, video, source, picture, canvas {
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
  -webkit-user-drag: none;
  -khtml-user-drag: none;
  -moz-user-drag: none;
  -o-user-drag: none;
  user-drag: none;
  -webkit-touch-callout: none;
}

img {
  pointer-events: none;
}
:root {
  --primary: #2563eb;
  --primary-light: #3b82f6;
  --primary-dark: #1d4ed8;
  --primary-bg: #eff6ff;
  --cyan: #06b6d4;
  --violet: #7c3aed;
  --text: #0f172a;
  --text-secondary: #475569;
  --text-muted: #94a3b8;
  --bg: #ffffff;
  --bg-gray: #f8fafc;
  --bg-section: #f1f5f9;
  --border: #e2e8f0;
  --radius: 12px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --shadow-sm: 0 1px 3px rgba(15,23,42,0.06);
  --shadow: 0 8px 30px rgba(15,23,42,0.08);
  --shadow-lg: 0 20px 50px rgba(15,23,42,0.12);
  --shadow-primary: 0 14px 34px rgba(37,99,235,0.25);
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background: var(--bg); color: var(--text);
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font-family: inherit; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* NAV */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(255,255,255,0.88);
  backdrop-filter: blur(20px) saturate(1.6);
  border-bottom: 1px solid var(--border);
  transition: box-shadow var(--transition);
}
.nav.scrolled { box-shadow: 0 4px 20px rgba(15,23,42,0.08); }
.nav-inner {
  max-width: 1200px; margin: 0 auto; padding: 0 24px;
  display: flex; align-items: center; justify-content: space-between; height: 64px;
}
.nav-brand { display: flex; align-items: center; gap: 10px; }
.nav-logo {
  width: 36px; height: 36px; border-radius: 10px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--cyan) 100%);
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-weight: 800; font-size: 15px; letter-spacing: 0.05em;
}
.nav-brand-text { font-size: 18px; font-weight: 700; color: var(--text); letter-spacing: -0.02em; }
.nav-links { display: flex; align-items: center; gap: 6px; }
.nav-link-item {
  padding: 8px 16px; border-radius: 8px; font-size: 14px; font-weight: 500;
  color: var(--text-secondary); cursor: pointer; transition: all var(--transition);
  position: relative; border: none; background: none;
}
.nav-link-item:hover, .nav-link-item.active { color: var(--primary); background: var(--primary-bg); }
.nav-right { display: flex; align-items: center; gap: 12px; }
.nav-phone { font-size: 13px; color: var(--text-muted); display: none; }

/* BUTTONS */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 14px; font-weight: 600; border-radius: 10px;
  padding: 10px 22px; border: none; cursor: pointer;
  transition: all var(--transition); position: relative; overflow: hidden;
}
.btn-primary {
  background: linear-gradient(135deg, var(--primary) 0%, #4f8cf7 100%);
  color: #fff; box-shadow: var(--shadow-primary);
}
.btn-primary::after {
  content: ""; position: absolute; inset: -50%;
  background: linear-gradient(120deg, transparent 35%, rgba(255,255,255,0.4), transparent 65%);
  transform: translateX(-80%) rotate(12deg); transition: transform 0.6s ease;
}
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 18px 40px rgba(37,99,235,0.32); }
.btn-primary:hover::after { transform: translateX(40%) rotate(12deg); }
.btn-outline {
  background: #fff; color: var(--primary); border: 1.5px solid var(--primary);
}
.btn-outline:hover { background: var(--primary-bg); transform: translateY(-1px); }
.btn-ghost-nav {
  background: transparent; color: var(--text-secondary); border: 1px solid var(--border);
  padding: 8px 16px; font-size: 13px;
}
.btn-ghost-nav:hover { border-color: var(--primary); color: var(--primary); }
.btn-white {
  background: #fff; color: var(--primary); font-weight: 600;
  box-shadow: 0 8px 24px rgba(0,0,0,0.15);
}
.btn-white:hover { transform: translateY(-2px); box-shadow: 0 14px 36px rgba(0,0,0,0.2); }
.btn-outline-white {
  background: transparent; color: #fff; border: 1.5px solid rgba(255,255,255,0.35);
}
.btn-outline-white:hover { border-color: #fff; background: rgba(255,255,255,0.08); }
.btn-lg { padding: 14px 32px; font-size: 16px; border-radius: 12px; }

/* SECTION */
.section { padding: 80px 0; }
.section-gray { background: var(--bg-gray); }
.section-header { text-align: center; margin-bottom: 56px; }
.section-header .section-tag {
  display: inline-block; padding: 6px 14px; border-radius: 999px;
  background: var(--primary-bg); color: var(--primary);
  font-size: 12px; font-weight: 600; letter-spacing: 0.08em;
  text-transform: uppercase; margin-bottom: 16px;
}
.section-header h2 { font-size: 36px; font-weight: 800; letter-spacing: -0.03em; margin-bottom: 12px; }
.section-header p { font-size: 16px; color: var(--text-secondary); max-width: 560px; margin: 0 auto; line-height: 1.6; }

/* PAGE HERO (sub-pages) */
.page-hero {
  padding: 120px 0 60px; text-align: center; position: relative; overflow: hidden;
  background: linear-gradient(180deg, #f8faff 0%, #fff 100%);
}
.page-hero::before {
  content: ""; position: absolute; width: 500px; height: 500px;
  border-radius: 999px; filter: blur(80px); opacity: 0.3; pointer-events: none;
  background: radial-gradient(circle, rgba(37,99,235,0.5), transparent 65%);
  top: -200px; right: -50px;
}
.page-hero h1 { font-size: 42px; font-weight: 800; letter-spacing: -0.03em; margin-bottom: 14px; position: relative; }
.page-hero p { font-size: 17px; color: var(--text-secondary); max-width: 600px; margin: 0 auto; line-height: 1.7; position: relative; }
.page-hero .breadcrumb {
  font-size: 13px; color: var(--text-muted); margin-bottom: 20px; position: relative;
}
.page-hero .breadcrumb a { color: var(--primary); }

/* CARDS (reusable) */
.card {
  background: #fff; border-radius: var(--radius-lg); border: 1px solid var(--border);
  padding: 28px; transition: all var(--transition); overflow: hidden; position: relative;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: rgba(37,99,235,0.3); }
.card::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--cyan));
  transform: scaleX(0); transform-origin: left; transition: transform 0.4s ease;
}
.card:hover::before { transform: scaleX(1); }

/* PRODUCT CARDS */
.product-card {
  background: #fff; border-radius: var(--radius-lg); border: 1px solid var(--border);
  padding: 28px; position: relative; overflow: hidden;
  transition: all var(--transition); cursor: pointer;
}
.product-card::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--cyan));
  transform: scaleX(0); transform-origin: left; transition: transform 0.4s ease;
}
.product-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: rgba(37,99,235,0.3); }
.product-card:hover::before { transform: scaleX(1); }
.product-icon {
  width: 48px; height: 48px; border-radius: 14px; margin-bottom: 18px;
  display: flex; align-items: center; justify-content: center;
  font-size: 22px; font-weight: 700; color: #fff;
}
.product-icon.blue { background: linear-gradient(135deg, #3b82f6, #06b6d4); }
.product-icon.violet { background: linear-gradient(135deg, #7c3aed, #a78bfa); }
.product-icon.emerald { background: linear-gradient(135deg, #10b981, #34d399); }
.product-icon.amber { background: linear-gradient(135deg, #f59e0b, #fbbf24); }
.product-icon.rose { background: linear-gradient(135deg, #f43f5e, #fb7185); }
.product-icon.sky { background: linear-gradient(135deg, #0ea5e9, #38bdf8); }
.product-card h3 { font-size: 18px; font-weight: 700; margin-bottom: 8px; }
.product-card p { font-size: 14px; color: var(--text-secondary); line-height: 1.6; margin-bottom: 18px; }
.product-card-link {
  font-size: 13px; font-weight: 600; color: var(--primary);
  display: inline-flex; align-items: center; gap: 6px; transition: gap var(--transition);
}
.product-card:hover .product-card-link { gap: 10px; }
.product-card-link svg { width: 14px; height: 14px; }

/* GRID helpers */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }

/* IMAGE PLACEHOLDER */
.img-placeholder {
  border-radius: var(--radius-lg); overflow: hidden;
  background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 50%, #dbeafe 100%);
  display: flex; align-items: center; justify-content: center;
  color: var(--text-muted); font-size: 14px;
}

/* FEATURE LIST */
.feature-list { display: flex; flex-direction: column; gap: 16px; }
.feature-item {
  display: flex; gap: 14px; align-items: flex-start;
  padding: 16px; border-radius: var(--radius); background: var(--bg-gray);
  border: 1px solid var(--border); transition: all var(--transition);
}
.feature-item:hover { border-color: rgba(37,99,235,0.3); background: var(--primary-bg); }
.feature-dot {
  width: 8px; height: 8px; border-radius: 999px; background: var(--primary);
  margin-top: 6px; flex-shrink: 0;
}
.feature-item h4 { font-size: 15px; font-weight: 600; margin-bottom: 4px; }
.feature-item p { font-size: 13px; color: var(--text-secondary); line-height: 1.5; }

/* TAGS */
.tag {
  display: inline-block; padding: 4px 12px; border-radius: 6px;
  background: var(--primary-bg); color: var(--primary); font-size: 12px; font-weight: 600;
}

/* CTA */
.cta-section {
  padding: 80px 0;
  background: linear-gradient(135deg, #1e3a5f 0%, #0f172a 100%);
  color: #fff; text-align: center; position: relative; overflow: hidden;
}
.cta-section::before {
  content: ""; position: absolute; width: 500px; height: 500px;
  border-radius: 999px; filter: blur(80px); opacity: 0.15; pointer-events: none;
  background: radial-gradient(circle, rgba(37,99,235,0.8), transparent 60%);
  top: -150px; left: 50%; transform: translateX(-50%);
}
.cta-section h2 { font-size: 36px; font-weight: 800; margin-bottom: 14px; letter-spacing: -0.03em; position: relative; }
.cta-section p { font-size: 16px; color: rgba(255,255,255,0.7); margin-bottom: 36px; position: relative; }
.cta-actions { display: flex; justify-content: center; gap: 16px; position: relative; flex-wrap: wrap; }

/* FOOTER */
.footer { padding: 56px 0 32px; background: var(--bg-gray); border-top: 1px solid var(--border); }
.footer-grid { display: grid; grid-template-columns: 1.3fr repeat(3, 1fr); gap: 40px; margin-bottom: 40px; }
.footer-brand h4 { font-size: 16px; font-weight: 700; margin-bottom: 10px; }
.footer-brand p { font-size: 13px; color: var(--text-secondary); line-height: 1.7; margin-bottom: 14px; }
.footer-phone { font-size: 14px; font-weight: 600; color: var(--primary); }
.footer-col h5 { font-size: 13px; font-weight: 600; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 14px; }
.footer-links { display: flex; flex-direction: column; gap: 8px; }
.footer-links a { font-size: 13px; color: var(--text-secondary); transition: color var(--transition); }
.footer-links a:hover { color: var(--primary); }
.footer-bottom {
  padding-top: 24px; border-top: 1px solid var(--border);
  display: flex; justify-content: space-between; align-items: center;
  font-size: 12px; color: var(--text-muted); flex-wrap: wrap; gap: 8px;
}

/* ANIMATIONS */
.anim-up { opacity: 0; transform: translateY(30px); transition: opacity 0.7s ease, transform 0.7s ease; }
.anim-up.visible { opacity: 1; transform: none; }
.anim-up.d1 { transition-delay: 0.1s; }
.anim-up.d2 { transition-delay: 0.2s; }
.anim-up.d3 { transition-delay: 0.3s; }
.anim-up.d4 { transition-delay: 0.4s; }
.anim-up.d5 { transition-delay: 0.5s; }
.anim-scale { opacity: 0; transform: scale(0.95); transition: opacity 0.6s ease, transform 0.6s ease; }
.anim-scale.visible { opacity: 1; transform: none; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes heroFloat { 0%, 100% { transform: translate(0,0) scale(1); } 50% { transform: translate(20px,30px) scale(1.05); } }
@keyframes iconFloat { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.4; } }

/* ========== HAMBURGER MENU ========== */
.nav-hamburger {
  display: none;
  width: 44px; height: 44px;
  align-items: center; justify-content: center;
  background: none; border: none; cursor: pointer;
  padding: 0; position: relative; z-index: 201;
  -webkit-tap-highlight-color: transparent;
}
.nav-hamburger span {
  display: block; width: 22px; height: 2px;
  background: var(--text); border-radius: 2px;
  transition: all 0.3s ease; position: relative;
}
.nav-hamburger span::before,
.nav-hamburger span::after {
  content: ""; position: absolute; left: 0; width: 100%; height: 2px;
  background: var(--text); border-radius: 2px; transition: all 0.3s ease;
}
.nav-hamburger span::before { top: -7px; }
.nav-hamburger span::after { top: 7px; }
/* Hamburger active (X) */
.nav-hamburger.active span { background: transparent; }
.nav-hamburger.active span::before { top: 0; transform: rotate(45deg); }
.nav-hamburger.active span::after { top: 0; transform: rotate(-45deg); }

/* Mobile overlay */
.nav-mobile-overlay {
  display: none; position: fixed; inset: 0; z-index: 150;
  background: rgba(15,23,42,0.5); backdrop-filter: blur(4px);
  opacity: 0; transition: opacity 0.3s ease;
}
.nav-mobile-overlay.active { display: block; opacity: 1; }

/* Mobile drawer */
.nav-links-mobile {
  display: none; position: fixed; top: 0; right: -280px;
  width: 280px; height: 100vh; z-index: 200;
  background: #fff; box-shadow: -4px 0 24px rgba(15,23,42,0.15);
  padding: 80px 24px 32px;
  flex-direction: column; gap: 4px;
  transition: right 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  overflow-y: auto;
}
.nav-links-mobile.active { right: 0; }
.nav-links-mobile a {
  display: block; padding: 14px 16px; border-radius: 10px;
  font-size: 16px; font-weight: 500; color: var(--text-secondary);
  transition: all var(--transition);
}
.nav-links-mobile a:hover,
.nav-links-mobile a.active { color: var(--primary); background: var(--primary-bg); }
.nav-links-mobile .mobile-nav-phone {
  margin-top: auto; padding: 16px; border-top: 1px solid var(--border);
  font-size: 14px; color: var(--text-muted); text-align: center;
}
.nav-links-mobile .mobile-nav-phone a {
  display: inline; padding: 0; font-weight: 600; color: var(--primary);
}
.nav-links-mobile .mobile-nav-cta {
  margin-top: 12px; padding: 0 16px;
}
.nav-links-mobile .mobile-nav-cta .btn { width: 100%; justify-content: center; }

/* RESPONSIVE */
@media (max-width: 1024px) {
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
  .page-hero h1 { font-size: 32px; }
  .section { padding: 64px 0; }
  .section-header { margin-bottom: 40px; }
}

@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-hamburger { display: flex; }
  .nav-links-mobile { display: flex; }
  .nav-right .btn { display: none; }
  .nav-phone { display: block; }
  .grid-2 { grid-template-columns: 1fr; }
  .grid-3 { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 24px; }
  .section { padding: 48px 0; }
  .section-header h2 { font-size: 28px; }
  .section-header p { font-size: 14px; }
  .section-header { margin-bottom: 32px; }
  .page-hero { padding: 88px 0 36px; }
  .page-hero h1 { font-size: 26px; }
  .page-hero p { font-size: 15px; }
  .cta-section { padding: 56px 0; }
  .cta-section h2 { font-size: 26px; }
  .cta-section p { font-size: 14px; margin-bottom: 24px; }
  .cta-actions { flex-direction: column; align-items: center; gap: 12px; }
  .cta-actions .btn { width: 100%; max-width: 300px; justify-content: center; }
  .btn-lg { padding: 12px 24px; font-size: 15px; }
  .card { padding: 20px; }
  .feature-item { padding: 12px; }
  .footer { padding: 40px 0 24px; }
  .footer-brand p { font-size: 12px; }
  .footer-bottom { flex-direction: column; text-align: center; }
}

@media (max-width: 480px) {
  .container { padding: 0 16px; }
  .grid-4 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 20px; }
  .section { padding: 40px 0; }
  .section-header h2 { font-size: 24px; }
  .page-hero h1 { font-size: 22px; }
  .page-hero p { font-size: 14px; }
  .nav-inner { padding: 0 16px; }
  .btn { padding: 10px 18px; font-size: 13px; }
  .card { padding: 16px; }
  .product-card { padding: 20px; }
  .product-card h3 { font-size: 16px; }
  .product-card p { font-size: 13px; }
}

@media (max-width: 375px) {
  .container { padding: 0 12px; }
  .section-header h2 { font-size: 22px; }
  .page-hero h1 { font-size: 20px; }
  .nav-inner { height: 56px; padding: 0 12px; }
  .nav-logo { width: 32px; height: 32px; font-size: 13px; }
  .nav-brand-text { font-size: 16px; }
}
