/* ===== Reset & Variables ===== */
:root {
  --red: #cc0000;
  --red-dark: #990000;
  --red-light: #ff2222;
  --red-bg: #fef5f5;
  --text: #1a1a1a;
  --text-secondary: #555;
  --text-muted: #888;
  --border: #e8e8e8;
  --bg: #fafafa;
  --bg-alt: #f5f5f7;
  --white: #ffffff;
  --radius: 10px;
  --radius-sm: 6px;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.06);
  --shadow: 0 4px 20px rgba(0,0,0,0.07);
  --shadow-lg: 0 12px 40px rgba(0,0,0,0.1);
  --transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

*, *::before, *::after { margin:0; padding:0; box-sizing:border-box; }
html { scroll-behavior:smooth; scroll-padding-top:120px; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "PingFang SC", "Microsoft YaHei", "Helvetica Neue", sans-serif;
  font-size: 15px; line-height: 1.7; color: var(--text); background: var(--white);
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
}
a { text-decoration:none; color:inherit; }
img { max-width:100%; height:auto; display:block; }
.container { max-width:1200px; margin:0 auto; padding:0 24px; }

/* ===== Section ===== */
.section { padding: 90px 0; }
.section-alt { background: var(--bg-alt); }
.section-head { text-align:center; margin-bottom:56px; }
.section-tag { display:inline-block; font-size:12px; font-weight:700; letter-spacing:3px; color:var(--red); text-transform:uppercase; margin-bottom:12px; }
.section-title { font-size:36px; font-weight:700; color:var(--text); margin-bottom:12px; letter-spacing:-0.5px; }
.section-desc { font-size:16px; color:var(--text-secondary); max-width:600px; margin:0 auto; }

/* ===== Header Bar ===== */
.header-bar { background:#1a1a1a; color:#bbb; font-size:13px; padding:7px 0; }
.header-bar .container { display:flex; justify-content:space-between; align-items:center; gap:12px; }
.bar-actions { display:flex; align-items:center; gap:6px; flex-wrap:wrap; }
.bar-phone { color:#fff; font-weight:600; display:flex; align-items:center; gap:4px; }
.bar-phone svg { color:var(--red-light); }
.bar-divider { color:#444; margin:0 4px; }
.bar-link { color:#bbb; padding:2px 6px; border-radius:3px; transition:var(--transition); }
.bar-link:hover { color:#fff; background:rgba(255,255,255,0.06); }
.bar-btn-erp { background:var(--red); color:#fff; padding:4px 14px; border-radius:4px; font-size:12px; font-weight:600; display:flex; align-items:center; gap:4px; margin-left:8px; transition:var(--transition); }
.bar-btn-erp:hover { background:#e60000; }

/* ===== Header Main ===== */
.header-main { background:rgba(255,255,255,0.97); backdrop-filter:blur(12px); border-bottom:1px solid var(--border); position:sticky; top:0; z-index:100; }
.header-main .container { display:flex; align-items:center; justify-content:space-between; padding:0 24px; height:68px; }
.logo { display:flex; align-items:center; gap:12px; }
.logo-mark { width:44px; height:44px; background:var(--red); border-radius:10px; display:flex; align-items:center; justify-content:center; color:#fff; flex-shrink:0; }
.logo-text h1 { font-size:17px; font-weight:700; color:var(--text); line-height:1.2; }
.logo-text p { font-size:9px; color:var(--text-muted); letter-spacing:1.5px; text-transform:uppercase; }
.logo-tagline { font-size:11px; color:var(--red); font-weight:500; }
.nav { display:flex; align-items:center; gap:4px; }
.nav-link { padding:8px 14px; font-size:14px; font-weight:500; color:var(--text-secondary); border-radius:6px; transition:var(--transition); position:relative; }
.nav-link:hover, .nav-link.active { color:var(--red); background:var(--red-bg); }
.nav-dropdown { position:relative; }
.nav-dropdown:hover .dropdown-menu { opacity:1; visibility:visible; transform:translateY(0); }
.dropdown-menu {
  position:absolute; top:100%; left:50%; transform:translateX(-50%) translateY(4px);
  background:#fff; border-radius:10px; box-shadow:var(--shadow-lg); padding:8px 0;
  min-width:180px; opacity:0; visibility:hidden; transition:var(--transition); border:1px solid var(--border);
}
.dropdown-menu a { display:block; padding:10px 20px; font-size:14px; color:var(--text-secondary); transition:var(--transition); }
.dropdown-menu a:hover { background:var(--red-bg); color:var(--red); }
.nav-btn-erp { background:var(--red); color:#fff !important; padding:9px 18px; border-radius:6px; font-size:13px; font-weight:600; display:flex; align-items:center; gap:6px; margin-left:6px; transition:var(--transition); }
.nav-btn-erp:hover { background:var(--red-dark); transform:translateY(-1px); box-shadow:0 4px 12px rgba(204,0,0,0.3); }
.menu-toggle { display:none; background:none; border:none; cursor:pointer; padding:8px; flex-direction:column; gap:5px; }
.menu-toggle span { display:block; width:24px; height:2px; background:var(--text); border-radius:2px; transition:var(--transition); }
.menu-toggle.active span:nth-child(1) { transform:rotate(45deg) translate(5px,5px); }
.menu-toggle.active span:nth-child(2) { opacity:0; }
.menu-toggle.active span:nth-child(3) { transform:rotate(-45deg) translate(5px,-5px); }

/* Mobile Nav */
.mobile-nav { display:none; position:fixed; top:68px; left:0; width:100%; height:calc(100vh - 68px); background:rgba(0,0,0,0.5); z-index:99; }
.mobile-nav.active { display:block; }
.mobile-nav-inner { background:#fff; padding:16px 0; margin:0 12px; border-radius:12px; box-shadow:var(--shadow-lg); }
.mobile-nav-inner a { display:block; padding:14px 24px; font-size:16px; font-weight:500; color:var(--text); border-bottom:1px solid var(--border); transition:var(--transition); }
.mobile-nav-inner a:hover { color:var(--red); background:var(--red-bg); }
.mobile-erp-btn { background:var(--red) !important; color:#fff !important; margin:12px 16px; border-radius:8px !important; text-align:center; border:none !important; }

/* ===== Hero ===== */
.hero { background:#0d1117; position:relative; overflow:hidden; min-height:620px; display:flex; align-items:center; }
.hero-bg { position:absolute; inset:0; }
.hero-pattern {
  position:absolute; inset:0; opacity:0.08;
  background-image: radial-gradient(circle at 25% 25%, #ffffff 1px, transparent 1px), radial-gradient(circle at 75% 75%, #ffffff 1px, transparent 1px);
  background-size: 50px 50px;
}
.hero-overlay {
  position:absolute; top:0; left:0; right:0; bottom:0;
  background: radial-gradient(ellipse at 60% 30%, rgba(204,0,0,0.15) 0%, transparent 60%),
              radial-gradient(ellipse at 30% 70%, rgba(0,100,200,0.08) 0%, transparent 60%);
}
.hero-content { position:relative; z-index:2; text-align:center; padding:80px 0; }
.hero-badge {
  display:inline-block; padding:6px 16px; border:1px solid rgba(255,255,255,0.2); border-radius:20px;
  font-size:11px; color:rgba(255,255,255,0.7); letter-spacing:3px; margin-bottom:24px;
}
.hero-title { font-size:52px; font-weight:800; color:#fff; margin-bottom:16px; letter-spacing:-1px; line-height:1.2; }
.hero-highlight { color:var(--red-light); }
.hero-desc { font-size:19px; color:rgba(255,255,255,0.85); margin-bottom:8px; }
.hero-sub { font-size:14px; color:rgba(255,255,255,0.55); margin-bottom:36px; line-height:1.8; }
.hero-actions { display:flex; justify-content:center; gap:16px; margin-bottom:48px; flex-wrap:wrap; }
.btn-hero-primary {
  display:inline-flex; align-items:center; gap:8px; background:var(--red); color:#fff; padding:14px 32px;
  border-radius:50px; font-size:15px; font-weight:600; transition:var(--transition);
}
.btn-hero-primary:hover { background:var(--red-dark); transform:translateY(-2px); box-shadow:0 8px 25px rgba(204,0,0,0.4); }
.btn-hero-outline {
  display:inline-flex; align-items:center; border:2px solid rgba(255,255,255,0.4); color:#fff; padding:14px 32px;
  border-radius:50px; font-size:15px; font-weight:600; transition:var(--transition);
}
.btn-hero-outline:hover { border-color:#fff; background:rgba(255,255,255,0.08); transform:translateY(-2px); }
.hero-features { display:flex; justify-content:center; gap:40px; flex-wrap:wrap; }
.hero-feat { display:flex; align-items:center; gap:8px; color:rgba(255,255,255,0.6); font-size:13px; }
.hero-feat-icon { font-size:18px; }
.hero-scroll { position:absolute; bottom:24px; left:50%; transform:translateX(-50%); z-index:2; display:flex; flex-direction:column; align-items:center; gap:4px; color:rgba(255,255,255,0.4); font-size:11px; animation: bounce 2s infinite; }
@keyframes bounce { 0%,100%{transform:translate(-50%,0)} 50%{transform:translate(-50%,8px)} }

/* ===== Stats ===== */
.stats { background:#fff; padding:0; margin-top:-40px; position:relative; z-index:3; }
.stats-grid { display:grid; grid-template-columns:repeat(4,1fr); gap:20px; }
.stat-card {
  background:#fff; border-radius:12px; padding:28px 20px; text-align:center;
  box-shadow:var(--shadow); transition:var(--transition); border:1px solid var(--border);
}
.stat-card:hover { transform:translateY(-4px); box-shadow:var(--shadow-lg); }
.stat-icon { margin-bottom:12px; color:var(--red); display:flex; justify-content:center; }
.stat-num { font-size:38px; font-weight:800; color:var(--text); margin-bottom:4px; letter-spacing:-1px; }
.stat-label { font-size:14px; color:var(--text-muted); }

/* ===== Product Categories ===== */
.product-cats { display:grid; grid-template-columns:repeat(4,1fr); gap:20px; }
.cat-card {
  background:#fff; border-radius:14px; overflow:hidden; box-shadow:var(--shadow);
  transition:var(--transition); border:1px solid var(--border); display:block;
}
.cat-card:hover { transform:translateY(-6px); box-shadow:var(--shadow-lg); }
.cat-thumb { height:160px; }
.cat-thumb-inner { width:100%; height:100%; display:flex; align-items:center; justify-content:center; }
.cat-body { padding:24px 20px 20px; }
.cat-body h3 { font-size:18px; font-weight:700; margin-bottom:8px; color:var(--text); }
.cat-body p { font-size:13px; color:var(--text-muted); line-height:1.7; margin-bottom:12px; }
.cat-arrow { font-size:13px; font-weight:600; color:var(--red); }

/* ===== About ===== */
.about-grid { display:grid; grid-template-columns:1fr 1.2fr; gap:60px; align-items:center; }
.about-visual { position:relative; }
.about-img-box { position:relative; }
.about-img-main { border-radius:14px; overflow:hidden; }
.about-placeholder {
  width:100%; height:380px; background:linear-gradient(135deg,#e8eaed,#d5d8dc);
  display:flex; flex-direction:column; align-items:center; justify-content:center;
  gap:8px; color:var(--text-muted); border-radius:14px;
}
.about-img-badge {
  position:absolute; top:20px; right:-10px; background:var(--red); color:#fff;
  width:70px; height:70px; border-radius:50%; display:flex; flex-direction:column;
  align-items:center; justify-content:center; box-shadow:0 8px 24px rgba(204,0,0,0.3);
}
.badge-year { font-size:26px; font-weight:800; line-height:1; }
.badge-text { font-size:12px; }
.about-lead { font-size:17px; color:var(--text); margin-bottom:16px; line-height:1.8; font-weight:500; }
.text-highlight { color:var(--red); font-weight:600; }
.about-text { font-size:15px; color:var(--text-secondary); margin-bottom:24px; line-height:1.8; }
.about-points { display:grid; gap:16px; }
.about-point { display:flex; gap:12px; align-items:flex-start; }
.about-point strong { display:block; font-size:15px; margin-bottom:2px; }
.about-point p { font-size:13px; color:var(--text-muted); margin:0; }

/* ===== Engineering Cases ===== */
.cases-grid { display:grid; grid-template-columns:repeat(4,1fr); gap:20px; }
.case-card { background:#fff; border-radius:14px; overflow:hidden; box-shadow:var(--shadow); border:1px solid var(--border); transition:var(--transition); }
.case-card:hover { transform:translateY(-4px); box-shadow:var(--shadow-lg); }
.case-img { height:140px; display:flex; align-items:center; justify-content:center; }
.case-body { padding:20px; }
.case-tag { font-size:11px; font-weight:700; letter-spacing:1px; color:var(--red); text-transform:uppercase; }
.case-body h3 { font-size:16px; font-weight:700; margin:6px 0; color:var(--text); }
.case-body p { font-size:13px; color:var(--text-muted); line-height:1.6; }

/* ===== Honor ===== */
.honor-grid { display:grid; grid-template-columns:repeat(4,1fr); gap:24px; }
.honor-card {
  background:#fff; border-radius:14px; padding:36px 24px; text-align:center;
  box-shadow:var(--shadow); border:1px solid var(--border); transition:var(--transition);
}
.honor-card:hover { transform:translateY(-3px); box-shadow:var(--shadow-lg); }
.honor-medal { font-size:44px; margin-bottom:16px; }
.honor-card h3 { font-size:16px; font-weight:700; margin-bottom:6px; }
.honor-card p { font-size:13px; color:var(--text-muted); }

/* ===== Stores ===== */
.store-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:20px; }
.store-card {
  display:block; text-align:center; padding:36px 24px; border-radius:14px;
  box-shadow:var(--shadow); border:2px solid transparent; transition:var(--transition);
}
.store-card:hover { transform:translateY(-4px); box-shadow:var(--shadow-lg); }
.tmall { background:linear-gradient(135deg,#fff5f5,#fff0f0); border-color:#ffd4d4; }
.tmall:hover { border-color:var(--red); }
.pdd { background:linear-gradient(135deg,#fffbf5,#fff8f0); border-color:#ffe4c4; }
.pdd:hover { border-color:#ff9500; }
.douyin { background:linear-gradient(135deg,#f5f5ff,#f0f0ff); border-color:#d4d4ff; }
.douyin:hover { border-color:#6c5ce7; }
.store-logo { width:56px; height:56px; border-radius:14px; color:#fff; font-size:24px; font-weight:800; display:flex; align-items:center; justify-content:center; margin:0 auto 16px; }
.tmall .store-logo { background:#e60012; }
.pdd .store-logo { background:#ff6b00; }
.douyin .store-logo { background:#111; }
.store-card h3 { font-size:17px; font-weight:700; margin-bottom:4px; }
.store-card p { font-size:13px; color:var(--text-muted); margin-bottom:12px; }
.store-link { font-size:13px; font-weight:600; }

/* ===== CTA ===== */
.section-cta { background:var(--bg-alt); }
.cta-grid { display:grid; grid-template-columns:1fr 1.2fr; gap:50px; }
.cta-info h2 { font-size:32px; font-weight:700; margin-bottom:8px; }
.cta-desc { color:var(--text-secondary); margin-bottom:28px; }
.cta-items { display:flex; flex-direction:column; gap:16px; }
.cta-item { display:flex; align-items:center; gap:14px; padding:14px 18px; background:#fff; border-radius:10px; box-shadow:var(--shadow-sm); }
.cta-icon-box { width:42px; height:42px; background:var(--red-bg); color:var(--red); border-radius:10px; display:flex; align-items:center; justify-content:center; flex-shrink:0; }
.cta-item strong { display:block; font-size:14px; }
.cta-item span { font-size:13px; color:var(--text-muted); }
.cta-form { background:#fff; padding:36px; border-radius:14px; box-shadow:var(--shadow); }
.cta-form h3 { font-size:22px; font-weight:700; margin-bottom:6px; }
.cta-form > p { font-size:13px; color:var(--text-muted); margin-bottom:20px; }
.form-row { display:grid; grid-template-columns:1fr 1fr; gap:12px; margin-bottom:12px; }
.form-group { margin-bottom:12px; }
.form-group input, .form-group textarea {
  width:100%; padding:12px 16px; border:1.5px solid var(--border); border-radius:8px;
  font-size:14px; font-family:inherit; transition:var(--transition); background:var(--bg);
}
.form-group input:focus, .form-group textarea:focus { outline:none; border-color:var(--red); background:#fff; box-shadow:0 0 0 3px rgba(204,0,0,0.06); }
.form-group textarea { resize:vertical; min-height:100px; }
.btn-submit {
  width:100%; background:var(--red); color:#fff; border:none; padding:14px; border-radius:8px;
  font-size:15px; font-weight:600; cursor:pointer; transition:var(--transition);
}
.btn-submit:hover { background:var(--red-dark); transform:translateY(-1px); box-shadow:0 6px 20px rgba(204,0,0,0.3); }
.form-msg { margin-top:10px; font-size:13px; text-align:center; }

/* ===== Footer ===== */
.footer { background:#111; color:#999; }
.footer-main { padding:60px 0 40px; }
.footer-grid { display:grid; grid-template-columns:1.5fr 1fr 1fr 1.5fr; gap:40px; }
.footer-brand p { line-height:1.7; }
.footer-logo { display:flex; align-items:center; gap:10px; margin-bottom:16px; }
.footer-logo h3 { color:#fff; font-size:17px; }
.footer-logo p { color:#666; font-size:9px; letter-spacing:1px; }
.footer-desc { font-size:13px; margin-top:8px; line-height:1.8; }
.footer-col h4 { color:#fff; font-size:14px; margin-bottom:16px; }
.footer-col a { display:block; padding:4px 0; font-size:13px; color:#999; transition:var(--transition); }
.footer-col a:hover { color:#fff; }
.footer-contact-item { display:flex; align-items:center; gap:8px; margin-bottom:10px; font-size:13px; }
.footer-contact-item svg { color:#666; flex-shrink:0; }
.footer-erp-btn {
  display:inline-flex; align-items:center; gap:6px; background:var(--red); color:#fff !important;
  padding:10px 18px; border-radius:6px; font-size:13px; font-weight:600; margin-top:12px; transition:var(--transition);
}
.footer-erp-btn:hover { background:#e60000; }
.footer-bottom { border-top:1px solid #222; padding:20px 0; text-align:center; font-size:12px; color:#666; }

/* ===== Products Page ===== */
.page-header {
  background:linear-gradient(135deg,#0d1117,#1a1a2e); padding:70px 0 50px; text-align:center;
  margin-top:68px; position:relative; overflow:hidden;
}
.page-header::before {
  content:''; position:absolute; inset:0; opacity:0.05;
  background:radial-gradient(circle at 50% 50%, #cc0000 0%, transparent 70%);
}
.page-header .container { position:relative; z-index:1; }
.page-header h1 { color:#fff; font-size:38px; font-weight:800; margin-bottom:8px; }
.page-header p { color:rgba(255,255,255,0.6); font-size:16px; }
.products-page { padding:50px 0 80px; }
.products-toolbar { display:flex; gap:12px; margin-bottom:16px; flex-wrap:wrap; }
.cat-tabs { display:flex; gap:10px; margin-bottom:28px; flex-wrap:wrap; }
.cat-tab {
  padding:8px 20px; border:1.5px solid var(--border); border-radius:24px; background:#fff;
  font-size:14px; color:var(--text-secondary); cursor:pointer; transition:var(--transition); font-family:inherit;
}
.cat-tab:hover { border-color:var(--red); color:var(--red); }
.cat-tab.active { background:var(--red); color:#fff; border-color:var(--red); }
.search-input {
  flex:1; min-width:220px; padding:12px 18px; border:1.5px solid var(--border);
  border-radius:10px; font-size:14px; background:var(--bg); transition:var(--transition);
}
.search-input:focus { outline:none; border-color:var(--red); box-shadow:0 0 0 3px rgba(204,0,0,0.06); background:#fff; }
.category-filter {
  padding:12px 18px; border:1.5px solid var(--border); border-radius:10px; font-size:14px;
  background:var(--bg); cursor:pointer; min-width:140px;
}
.products-grid { display:grid; grid-template-columns:repeat(auto-fill, minmax(280px, 1fr)); gap:20px; }
.product-card {
  background:#fff; border-radius:14px; overflow:hidden; box-shadow:var(--shadow);
  border:1px solid var(--border); transition:var(--transition);
}
.product-card:hover { transform:translateY(-4px); box-shadow:var(--shadow-lg); }
.product-image {
  height:180px; background:linear-gradient(135deg,#f5f5f5,#eaeaea);
  display:flex; align-items:center; justify-content:center; font-size:13px; color:var(--text-muted);
}
.product-info { padding:20px; }
.product-info h3 { font-size:16px; font-weight:600; margin-bottom:10px; color:var(--text); line-height:1.4; }
.product-meta { display:flex; gap:8px; margin-bottom:10px; flex-wrap:wrap; }
.product-meta span { background:var(--red-bg); color:var(--red); padding:3px 10px; border-radius:20px; font-size:12px; }
.product-price { font-size:22px; color:var(--red); font-weight:700; }
.product-stock { font-size:12px; color:var(--text-muted); margin-top:2px; }
.loading, .empty { text-align:center; padding:80px 0; color:var(--text-muted); font-size:15px; }

/* ===== Contact Page ===== */
.contact-page { padding:50px 0 80px; }
.contact-cards { display:grid; grid-template-columns:repeat(3,1fr); gap:20px; margin-bottom:50px; }
.contact-card {
  text-align:center; padding:32px 20px; background:#fff; border-radius:14px;
  box-shadow:var(--shadow); border:1px solid var(--border);
}
.contact-card .card-icon { width:56px; height:56px; background:var(--red-bg); border-radius:14px; display:flex; align-items:center; justify-content:center; margin:0 auto 16px; font-size:24px; }
.contact-card h3 { font-size:16px; margin-bottom:6px; }
.contact-card p { font-size:14px; color:var(--text-muted); }

/* ===== Responsive ===== */
@media (max-width:1024px) {
  .product-cats, .cases-grid, .honor-grid { grid-template-columns:repeat(2,1fr); }
  .footer-grid { grid-template-columns:1fr 1fr; }
  .about-grid { grid-template-columns:1fr; }
  .about-visual { order:-1; }
  .about-img-badge { right:10px; }
}
@media (max-width:768px) {
  .header-bar { display:none; }
  .nav { display:none; }
  .menu-toggle { display:flex; }
  .header-main .container { height:60px; }
  .page-header { margin-top:60px; }
  .hero { min-height:auto; }
  .hero-title { font-size:30px; }
  .hero-desc { font-size:16px; }
  .hero-features { gap:16px; }
  .stats-grid { grid-template-columns:repeat(2,1fr); }
  .product-cats, .cases-grid, .honor-grid, .contact-cards { grid-template-columns:1fr; }
  .store-grid { grid-template-columns:1fr; }
  .section { padding:60px 0; }
  .section-title { font-size:26px; }
  .cta-grid { grid-template-columns:1fr; }
  .form-row { grid-template-columns:1fr; }
  .footer-grid { grid-template-columns:1fr; gap:30px; }
  .about-grid { gap:30px; }
  .about-placeholder { height:240px; }
}
@media (min-width:769px) {
  .mobile-nav.active { display:none; }
}
