/* ============================================
   广州东百信息科技有限公司 - 全新UI
   科技感 · 深色渐变 · 现代简约
   ============================================ */

:root {
  --color-primary: #2563EB;
  --color-primary-dark: #1D4ED8;
  --color-primary-light: #3B82F6;
  --color-primary-glow: rgba(37, 99, 235, 0.3);
  --color-accent: #F97316;
  --color-accent-dark: #EA580C;
  --color-accent-light: #FB923C;
  --color-text: #1E293B;
  --color-text-light: #64748B;
  --color-bg: #FFFFFF;
  --color-bg-soft: #F8FAFC;
  --color-bg-section: #F1F5F9;
  --color-border: #E2E8F0;
  --color-success: #10B981;
  --color-danger: #EF4444;
  --color-warning: #F59E0B;
  --shadow-xs: 0 1px 2px rgba(0,0,0,0.05);
  --shadow-sm: 0 2px 4px rgba(0,0,0,0.06);
  --shadow: 0 4px 12px rgba(0,0,0,0.08);
  --shadow-md: 0 8px 24px rgba(0,0,0,0.12);
  --shadow-lg: 0 16px 48px rgba(0,0,0,0.16);
  --radius: 12px;
  --radius-sm: 8px;
  --radius-lg: 16px;
  --max-width: 1280px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif; font-size: 15px; line-height: 1.7; color: var(--color-text); background: var(--color-bg); min-height: 100vh; display: flex; flex-direction: column; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: var(--color-primary); text-decoration: none; transition: all 0.3s; }
a:hover { color: var(--color-primary-dark); }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
input, textarea, select { font-family: inherit; font-size: 14px; padding: 12px 16px; border: 1px solid var(--color-border); border-radius: var(--radius-sm); background: var(--color-bg-soft); transition: all 0.3s; outline: none; width: 100%; }
input:focus, textarea:focus, select:focus { border-color: var(--color-primary); box-shadow: 0 0 0 3px var(--color-primary-glow); background: white; }
textarea { resize: vertical; min-height: 100px; }
h1, h2, h3, h4, h5, h6 { font-weight: 700; line-height: 1.3; color: var(--color-text); letter-spacing: -0.02em; }
h1 { font-size: 32px; } h2 { font-size: 24px; } h3 { font-size: 18px; }
.container { max-width: var(--max-width); margin: 0 auto; padding: 0 24px; width: 100%; }
.container-wide { max-width: 1400px; margin: 0 auto; padding: 0 24px; width: 100%; }
main { flex: 1; padding-bottom: 48px; }

/* 顶部导航 */
.topbar { background: linear-gradient(135deg, #0F172A 0%, #1E293B 100%); color: #CBD5E1; font-size: 13px; padding: 8px 0; border-bottom: 1px solid rgba(255,255,255,0.06); }
.topbar a { color: #CBD5E1; } .topbar a:hover { color: white; }
.topbar-inner { display: flex; justify-content: space-between; align-items: center; }
.topbar-info { display: flex; gap: 20px; } .topbar-links { display: flex; gap: 16px; }
.navbar { background: rgba(255,255,255,0.9); backdrop-filter: blur(12px); border-bottom: 1px solid var(--color-border); position: sticky; top: 0; z-index: 100; }
.navbar-inner { display: flex; align-items: center; justify-content: space-between; height: 68px; gap: 24px; }
.brand { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.brand img { height: 40px; width: auto; }
.brand-text { font-size: 15px; font-weight: 700; color: var(--color-text); white-space: nowrap; letter-spacing: 0.02em; }
.brand-text small { display: block; font-size: 11px; color: var(--color-text-light); font-weight: 500; margin-top: 2px; letter-spacing: 0.1em; text-transform: uppercase; }
.nav-list { display: flex; gap: 4px; list-style: none; flex: 1; justify-content: center; flex-wrap: nowrap; overflow: hidden; }
.nav-list a { display: block; padding: 8px 14px; color: var(--color-text-light); font-size: 14px; font-weight: 500; border-radius: 9999px; transition: all 0.3s; white-space: nowrap; }
.nav-list a:hover { background: var(--color-bg-section); color: var(--color-primary); }
.nav-list a.active { color: var(--color-primary); background: rgba(37,99,235,0.08); font-weight: 600; }
.nav-mall-btn { background: linear-gradient(135deg, var(--color-accent), var(--color-accent-dark)) !important; color: white !important; padding: 8px 20px !important; border-radius: 9999px !important; font-weight: 600 !important; box-shadow: 0 4px 12px rgba(249,115,22,0.3); }
.nav-mall-btn:hover { transform: translateY(-1px); box-shadow: 0 6px 16px rgba(249,115,22,0.4); }
.nav-actions { display: flex; align-items: center; gap: 16px; }
.nav-actions a, .nav-actions button { color: var(--color-text-light); font-size: 13px; display: flex; align-items: center; gap: 6px; }
.nav-actions a:hover { color: var(--color-primary); }
.cart-icon { position: relative; display: inline-block; }
.cart-count { position: absolute; top: -6px; right: -10px; background: var(--color-danger); color: white; font-size: 11px; padding: 1px 6px; border-radius: 9999px; min-width: 16px; text-align: center; display: none; }
.cart-count.active { display: block; }
.mobile-menu-btn { display: none; background: none; font-size: 24px; color: var(--color-text); padding: 4px 8px; }

/* 页脚 */
.footer { background: linear-gradient(135deg, #0F172A 0%, #1E293B 100%); color: #CBD5E1; padding: 56px 0 24px; margin-top: 60px; font-size: 14px; position: relative; overflow: hidden; }
.footer::before { content: ""; position: absolute; top: 0; left: 50%; transform: translateX(-50%); width: 600px; height: 1px; background: linear-gradient(90deg, transparent, var(--color-primary), transparent); }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
.footer h4 { color: white; font-size: 15px; margin-bottom: 16px; }
.footer-list { list-style: none; }
.footer-list li { margin-bottom: 8px; }
.footer-list a { color: #94A3B8; font-size: 13px; }
.footer-list a:hover { color: white; }
.footer-info p { margin-bottom: 4px; color: #94A3B8; font-size: 13px; line-height: 1.7; }
.footer-info p strong { color: #E2E8F0; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.08); padding-top: 20px; text-align: center; color: #94A3B8; font-size: 12px; line-height: 1.8; }
.footer-bottom a { color: #94A3B8; } .footer-bottom a:hover { color: white; }
.beian { display: inline-flex; align-items: center; gap: 4px; }

/* 按钮 */
.btn { display: inline-block; padding: 10px 22px; border-radius: var(--radius-sm); font-size: 14px; font-weight: 600; text-align: center; cursor: pointer; transition: all 0.3s; border: 1px solid transparent; text-decoration: none; }
.btn-primary { background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark)); color: white; box-shadow: 0 4px 12px var(--color-primary-glow); }
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 6px 20px var(--color-primary-glow); color: white; }
.btn-accent { background: linear-gradient(135deg, var(--color-accent), var(--color-accent-dark)); color: white; box-shadow: 0 4px 12px rgba(249,115,22,0.3); }
.btn-accent:hover { transform: translateY(-1px); color: white; }
.btn-outline { background: white; color: var(--color-primary); border-color: var(--color-primary); }
.btn-outline:hover { background: var(--color-primary); color: white; }
.btn-ghost { background: transparent; color: var(--color-text-light); border-color: var(--color-border); }
.btn-ghost:hover { background: var(--color-bg-section); color: var(--color-text); }
.btn-lg { padding: 14px 32px; font-size: 16px; border-radius: var(--radius); }
.btn-sm { padding: 6px 14px; font-size: 13px; }
.btn-block { display: block; width: 100%; }
.btn-danger { background: linear-gradient(135deg, var(--color-danger), #DC2626); color: white; }
.btn-danger:hover { color: white; }

/* 卡片 */
.card { background: white; border-radius: var(--radius); box-shadow: var(--shadow-xs); border: 1px solid var(--color-border); overflow: hidden; transition: all 0.3s; }
.card:hover { box-shadow: var(--shadow-md); transform: translateY(-4px); border-color: var(--color-primary-light); }
.card-body { padding: 24px; }
.card-img { width: 100%; height: 180px; object-fit: cover; background: var(--color-bg-section); }

/* 栅格 */
.grid { display: grid; gap: 20px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-5 { grid-template-columns: repeat(5, 1fr); }
.grid-6 { grid-template-columns: repeat(6, 1fr); }

/* 通用区块 */
.section { padding: 56px 0; }
.section-title { display: flex; justify-content: space-between; align-items: center; margin-bottom: 28px; }
.section-title h2 { font-size: 22px; } .section-title h2 small { color: var(--color-text-light); font-size: 14px; font-weight: 400; margin-left: 10px; }
.section-title a { color: var(--color-text-light); font-size: 14px; } .section-title a:hover { color: var(--color-primary); }

/* Hero */
.hero { background: linear-gradient(135deg, #0F172A 0%, #1E293B 100%); color: white; padding: 72px 0; position: relative; overflow: hidden; }
.hero::before { content: ""; position: absolute; right: -120px; top: -120px; width: 480px; height: 480px; background: radial-gradient(circle, rgba(37,99,235,0.2), transparent 60%); border-radius: 50%; }
.hero::after { content: ""; position: absolute; left: -80px; bottom: -120px; width: 360px; height: 360px; background: radial-gradient(circle, rgba(249,115,22,0.15), transparent 60%); border-radius: 50%; }
.hero-inner { position: relative; z-index: 1; max-width: 720px; }
.hero h1 { font-size: 42px; margin-bottom: 16px; line-height: 1.2; color: white; background: linear-gradient(135deg, #FFFFFF, #93C5FD); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.hero p { font-size: 17px; margin-bottom: 28px; opacity: 0.9; line-height: 1.7; color: #CBD5E1; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.hero .btn-primary { background: white; color: var(--color-primary); box-shadow: 0 4px 16px rgba(0,0,0,0.2); }
.hero .btn-primary:hover { background: var(--color-bg-section); }
.hero .btn-outline { background: transparent; color: white; border-color: rgba(255,255,255,0.4); }
.hero .btn-outline:hover { background: rgba(255,255,255,0.1); border-color: white; color: white; }

/* 行业入口 */
.industry-entries { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }
.entry-card { background: white; border: 1px solid var(--color-border); border-radius: var(--radius); padding: 28px 16px; text-align: center; transition: all 0.3s; display: block; color: var(--color-text); }
.entry-card:hover { border-color: var(--color-primary); transform: translateY(-4px); box-shadow: 0 8px 24px rgba(37,99,235,0.12); color: var(--color-text); }
.entry-icon { font-size: 42px; margin-bottom: 12px; }
.entry-card h3 { font-size: 16px; margin-bottom: 6px; } .entry-card p { font-size: 13px; color: var(--color-text-light); }

/* 信息卡 */
.info-card { display: flex; gap: 16px; background: white; border-radius: var(--radius); border: 1px solid var(--color-border); padding: 16px; margin-bottom: 12px; transition: all 0.3s; }
.info-card:hover { box-shadow: var(--shadow-md); }
.info-card img { width: 160px; height: 110px; object-fit: cover; border-radius: var(--radius-sm); flex-shrink: 0; }
.info-card-body { flex: 1; min-width: 0; }
.info-card h3 { font-size: 16px; margin-bottom: 6px; } .info-card h3 a { color: var(--color-text); } .info-card h3 a:hover { color: var(--color-primary); }
.info-card-meta { display: flex; gap: 12px; color: var(--color-text-light); font-size: 12px; margin-bottom: 6px; flex-wrap: wrap; align-items: center; }
.info-card-meta .tag { background: rgba(37,99,235,0.08); color: var(--color-primary); padding: 2px 8px; border-radius: 4px; font-weight: 500; }
.info-card p { color: var(--color-text-light); font-size: 13px; line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* 商品卡 */
.product-card { background: white; border-radius: var(--radius); border: 1px solid var(--color-border); overflow: hidden; transition: all 0.3s; display: flex; flex-direction: column; }
.product-card:hover { box-shadow: var(--shadow-md); transform: translateY(-4px); }
.product-card .img { width: 100%; height: 200px; background: var(--color-bg-section); object-fit: cover; }
.product-card-body { padding: 16px; flex: 1; display: flex; flex-direction: column; }
.product-card h3 { font-size: 14px; line-height: 1.4; margin-bottom: 8px; height: 40px; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.product-card .price { color: var(--color-danger); font-size: 20px; font-weight: 600; margin-bottom: 8px; }
.product-card .price small { font-size: 12px; color: var(--color-text-light); text-decoration: line-through; margin-left: 6px; font-weight: 400; }
.product-card .meta { display: flex; justify-content: space-between; font-size: 12px; color: var(--color-text-light); margin-top: auto; }
.product-card .actions { display: flex; gap: 8px; margin-top: 12px; } .product-card .actions .btn { flex: 1; }

/* 面包屑 */
.breadcrumb { background: var(--color-bg-soft); padding: 12px 0; font-size: 13px; color: var(--color-text-light); }
.breadcrumb a { color: var(--color-text-light); } .breadcrumb a:hover { color: var(--color-primary); }
.breadcrumb .sep { margin: 0 8px; color: #CBD5E1; } .breadcrumb .current { color: var(--color-text); }

/* 标签 */
.tag { display: inline-block; padding: 3px 10px; border-radius: 6px; font-size: 12px; background: var(--color-bg-section); color: var(--color-text-light); margin-right: 4px; }
.tag-primary { background: rgba(37,99,235,0.08); color: var(--color-primary); }
.tag-accent { background: rgba(249,115,22,0.08); color: var(--color-accent-dark); }
.tag-danger { background: rgba(239,68,68,0.08); color: var(--color-danger); }
.tag-success { background: rgba(16,185,129,0.08); color: var(--color-success); }
.tag-info { background: rgba(6,182,212,0.08); color: var(--color-info); }
.tag-warn { background: rgba(245,158,11,0.08); color: var(--color-warning); }

/* 列表 / Tab */
.tabs { display: flex; gap: 0; border-bottom: 2px solid var(--color-border); margin-bottom: 24px; flex-wrap: wrap; }
.tab { padding: 12px 20px; font-size: 15px; color: var(--color-text-light); cursor: pointer; border-bottom: 2px solid transparent; margin-bottom: -2px; transition: all 0.3s; background: none; border-top: none; border-left: none; border-right: none; font-weight: 500; }
.tab:hover { color: var(--color-primary); } .tab.active { color: var(--color-primary); border-bottom-color: var(--color-primary); }

/* 表单 */
.form-group { margin-bottom: 16px; }
.form-group label { display: block; font-size: 14px; font-weight: 500; margin-bottom: 6px; color: var(--color-text); }
.form-group label .req { color: var(--color-danger); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-actions { display: flex; gap: 12px; margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--color-border); }
.form-help { font-size: 12px; color: var(--color-text-light); margin-top: 4px; }
.radio-group, .checkbox-group { display: flex; flex-wrap: wrap; gap: 12px; }
.radio-item, .checkbox-item { display: flex; align-items: center; gap: 6px; cursor: pointer; padding: 6px 12px; border: 1px solid var(--color-border); border-radius: var(--radius-sm); transition: all 0.3s; }
.radio-item:hover, .checkbox-item:hover { border-color: var(--color-primary); }
.radio-item input, .checkbox-item input { width: auto; margin: 0; }
.radio-item.checked, .checkbox-item.checked { background: rgba(37,99,235,0.05); border-color: var(--color-primary); color: var(--color-primary); }

/* 模态框 */
.modal-mask { position: fixed; inset: 0; background: rgba(0,0,0,0.5); backdrop-filter: blur(4px); z-index: 9999; display: none; align-items: center; justify-content: center; padding: 20px; }
.modal-mask.active { display: flex; }
.modal { background: white; border-radius: var(--radius-lg); width: 100%; max-width: 380px; padding: 28px; position: relative; box-shadow: var(--shadow-lg); }
.modal-close { position: absolute; top: 12px; right: 12px; width: 28px; height: 28px; display: flex; align-items: center; justify-content: center; background: var(--color-bg-soft); border-radius: 50%; color: var(--color-text-light); font-size: 18px; line-height: 1; cursor: pointer; }
.modal-close:hover { background: var(--color-border); }
.modal-title { text-align: center; font-size: 18px; margin-bottom: 20px; }
.modal-body { text-align: center; }
.modal-qr { width: 200px; height: 200px; margin: 0 auto 16px; border: 1px solid var(--color-border); border-radius: var(--radius); padding: 8px; background: white; }
.modal-qr img { width: 100%; height: 100%; object-fit: contain; }
.modal-amount { font-size: 16px; margin: 12px 0; color: var(--color-text); }
.modal-amount .price { color: var(--color-danger); font-size: 24px; font-weight: 600; margin-left: 4px; }
.modal-tip { font-size: 13px; color: var(--color-text-light); margin: 12px 0 20px; line-height: 1.5; }
.modal-actions { display: flex; gap: 12px; } .modal-actions .btn { flex: 1; }

/* Toast */
.toast { position: fixed; top: 20px; left: 50%; transform: translateX(-50%) translateY(-100px); background: rgba(30,41,59,0.95); color: white; padding: 12px 24px; border-radius: var(--radius); z-index: 10000; font-size: 14px; transition: transform 0.3s; backdrop-filter: blur(4px); max-width: 90%; }
.toast.show { transform: translateX(-50%) translateY(0); }
.toast.success { background: var(--color-success); }
.toast.error { background: var(--color-danger); }
.toast.warn { background: var(--color-warning); }

/* 通用辅助 */
.text-center { text-align: center; }
.text-right { text-align: right; }
.text-primary { color: var(--color-primary); }
.text-accent { color: var(--color-accent); }
.text-danger { color: var(--color-danger); }
.text-light { color: var(--color-text-light); }
.text-sm { font-size: 13px; }
.text-lg { font-size: 18px; }
.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 8px; }
.mb-2 { margin-bottom: 16px; }
.mb-3 { margin-bottom: 24px; }
.mb-4 { margin-bottom: 32px; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }
.mt-4 { margin-top: 32px; }
.flex { display: flex; }
.flex-between { display: flex; justify-content: space-between; align-items: center; }
.flex-center { display: flex; align-items: center; justify-content: center; gap: 8px; }
.gap-1 { gap: 8px; }
.gap-2 { gap: 16px; }
.gap-3 { gap: 24px; }
.hidden { display: none !important; }
.divider { height: 1px; background: var(--color-border); margin: 16px 0; }
.placeholder-img { width: 100%; height: 100%; background: var(--color-bg-section); display: flex; align-items: center; justify-content: center; color: var(--color-text-light); font-size: 13px; }

/* 分页 */
.pagination { display: flex; gap: 4px; justify-content: center; margin-top: 32px; }
.pagination a, .pagination span { min-width: 36px; height: 36px; display: flex; align-items: center; justify-content: center; padding: 0 10px; border: 1px solid var(--color-border); border-radius: var(--radius-sm); font-size: 14px; color: var(--color-text); background: white; transition: all 0.3s; }
.pagination a:hover { border-color: var(--color-primary); color: var(--color-primary); }
.pagination .active { background: var(--color-primary); color: white; border-color: var(--color-primary); }
.pagination .disabled { color: var(--color-text-light); pointer-events: none; }

/* 响应式 */
@media (max-width: 1024px) { .grid-4, .grid-5, .grid-6 { grid-template-columns: repeat(3, 1fr); } .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 768px) {
  h1 { font-size: 26px; } h2 { font-size: 20px; }
  .hero { padding: 48px 0; } .hero h1 { font-size: 28px; } .hero p { font-size: 15px; }
  .industry-entries { grid-template-columns: repeat(2, 1fr); }
  .grid-3, .grid-4, .grid-5, .grid-6 { grid-template-columns: repeat(2, 1fr); }
  .grid-2 { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .topbar-info, .topbar-links { gap: 8px; font-size: 12px; }
  .nav-list { display: none; }
  .mobile-menu-btn { display: block; }
  .nav-list.mobile-open { display: flex; position: absolute; top: 68px; left: 0; right: 0; background: white; flex-direction: column; padding: 12px; box-shadow: var(--shadow-lg); z-index: 99; border-bottom: 1px solid var(--color-border); }
  .nav-list.mobile-open a { padding: 12px; border-radius: var(--radius-sm); }
  .brand-text { display: none; }
  .footer-grid { grid-template-columns: 1fr; gap: 24px; }
  .info-card { flex-direction: column; }
  .info-card img { width: 100%; height: 180px; }
  .section { padding: 36px 0; }
  .navbar-inner { height: 56px; }
  .module-grid { grid-template-columns: repeat(2, 1fr) !important; }
}
@media (max-width: 480px) { .grid-3, .grid-4, .grid-5, .grid-6 { grid-template-columns: 1fr; } .industry-entries { grid-template-columns: 1fr 1fr; } .hero-actions { flex-direction: column; } .hero-actions .btn { width: 100%; } }
