/* ManyExpo.com - Global Styles */
:root {
  --primary: #0F3B5D;
  --primary-light: #3288B9;
  --primary-bg: #CFE3F1;
  --accent: #E8A838;
  --success: #22C55E;
  --danger: #EF4444;
  --warning: #F59E0B;
  --text: #1A1A2E;
  --text-light: #6B7280;
  --bg: #F8FAFC;
  --white: #FFFFFF;
  --border: #E2E8F0;
  --shadow: 0 1px 3px rgba(0,0,0,0.1), 0 1px 2px rgba(0,0,0,0.06);
  --shadow-lg: 0 10px 25px rgba(0,0,0,0.1);
  --radius: 12px;
  --radius-sm: 8px;
}
* { margin:0; padding:0; box-sizing:border-box; }
body { font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', sans-serif; color: var(--text); background: var(--bg); line-height: 1.6; font-size: 15px; }
a { color: var(--primary-light); text-decoration: none; }
img { max-width: 100%; display: block; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* Navbar */
.navbar { background: var(--white); box-shadow: var(--shadow); position: sticky; top: 0; z-index: 100; }
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.logo { font-size: 22px; font-weight: 800; color: var(--primary); display: flex; align-items: center; gap: 8px; }
.logo span { color: var(--primary-light); }
.nav-links { display: flex; align-items: center; gap: 28px; list-style: none; }
.nav-links a { color: var(--text); font-weight: 500; font-size: 15px; transition: color .2s; }
.nav-links a:hover, .nav-links a.active { color: var(--primary-light); }
.nav-actions { display: flex; align-items: center; gap: 12px; }
.btn { display: inline-flex; align-items: center; justify-content: center; padding: 10px 22px; border-radius: var(--radius-sm); font-weight: 600; font-size: 14px; cursor: pointer; border: none; transition: all .2s; min-height: 44px; }
.btn-primary { background: var(--primary); color: var(--white); }
.btn-primary:hover { background: #0a2d47; }
.btn-outline { background: transparent; border: 1.5px solid var(--primary); color: var(--primary); }
.btn-outline:hover { background: var(--primary); color: var(--white); }
.btn-accent { background: var(--accent); color: var(--white); }
.btn-sm { padding: 6px 14px; font-size: 13px; min-height: 36px; }
.hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; padding: 8px; }
.hamburger span { width: 24px; height: 2.5px; background: var(--primary); border-radius: 2px; transition: .3s; }
.mobile-menu { display: none; position: fixed; top: 64px; left: 0; right: 0; bottom: 0; background: var(--white); z-index: 99; padding: 20px; overflow-y: auto; }
.mobile-menu.open { display: block; }
.mobile-menu ul { list-style: none; }
.mobile-menu li { border-bottom: 1px solid var(--border); }
.mobile-menu a { display: block; padding: 16px 0; font-size: 17px; font-weight: 500; color: var(--text); }
.mobile-menu .btn { width: 100%; margin-top: 16px; }

/* Hero */
.hero { background: linear-gradient(135deg, var(--primary) 0%, #1a5a8a 100%); color: var(--white); padding: 60px 0 50px; }
.hero h1 { font-size: 36px; font-weight: 800; margin-bottom: 12px; }
.hero p { font-size: 17px; opacity: 0.9; margin-bottom: 28px; }
.search-box { background: var(--white); border-radius: var(--radius); padding: 6px; display: flex; gap: 8px; max-width: 680px; box-shadow: var(--shadow-lg); }
.search-box input { flex: 1; border: none; outline: none; padding: 12px 16px; font-size: 15px; color: var(--text); }
.search-box .btn { border-radius: 8px; }
.hot-tags { margin-top: 14px; display: flex; gap: 10px; flex-wrap: wrap; }
.hot-tags a { color: rgba(255,255,255,0.8); font-size: 13px; background: rgba(255,255,255,0.15); padding: 4px 12px; border-radius: 20px; }

/* Sections */
.section { padding: 48px 0; }
.section-title { font-size: 24px; font-weight: 700; margin-bottom: 8px; }
.section-sub { color: var(--text-light); margin-bottom: 28px; }
.section-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 24px; }

/* Cards */
.card { background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; transition: transform .2s, box-shadow .2s; }
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.card-img { height: 160px; background: linear-gradient(135deg, var(--primary-light), var(--primary)); position: relative; display: flex; align-items: center; justify-content: center; color: var(--white); font-size: 32px; }
.card-badge { position: absolute; top: 10px; left: 10px; background: var(--danger); color: white; font-size: 11px; padding: 3px 10px; border-radius: 20px; font-weight: 600; }
.card-body { padding: 16px; }
.card-title { font-size: 16px; font-weight: 700; margin-bottom: 6px; }
.card-meta { font-size: 13px; color: var(--text-light); display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 12px; }
.card-stats { display: flex; gap: 16px; font-size: 12px; color: var(--text-light); margin-bottom: 12px; }
.card-stats strong { color: var(--text); }

/* Grid */
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }

/* Industry icons */
.industry-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; }
.industry-item { background: var(--white); border-radius: var(--radius); padding: 20px 12px; text-align: center; cursor: pointer; transition: all .2s; border: 1px solid var(--border); }
.industry-item:hover { border-color: var(--primary-light); box-shadow: var(--shadow); }
.industry-icon { font-size: 28px; margin-bottom: 8px; }
.industry-name { font-size: 13px; font-weight: 500; }

/* Stats */
.stats-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.stat-card { background: var(--white); border-radius: var(--radius); padding: 24px; text-align: center; box-shadow: var(--shadow); }
.stat-num { font-size: 32px; font-weight: 800; color: var(--primary); }
.stat-label { font-size: 14px; color: var(--text-light); margin-top: 4px; }

/* CTA */
.cta-section { background: linear-gradient(135deg, var(--primary), #1a5a8a); color: white; padding: 48px 0; text-align: center; }
.cta-section h2 { font-size: 26px; margin-bottom: 24px; }
.cta-buttons { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
.cta-buttons .btn { min-width: 180px; }

/* Footer */
.footer { background: #0a1f33; color: rgba(255,255,255,0.7); padding: 40px 0 20px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 32px; margin-bottom: 32px; }
.footer h4 { color: white; margin-bottom: 16px; font-size: 15px; }
.footer ul { list-style: none; }
.footer li { margin-bottom: 8px; }
.footer a { color: rgba(255,255,255,0.7); font-size: 14px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); padding-top: 20px; text-align: center; font-size: 13px; }

/* Expo Hall */
.filter-bar { background: var(--white); padding: 16px 20px; border-radius: var(--radius); box-shadow: var(--shadow); margin-bottom: 24px; display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.filter-bar select { padding: 8px 12px; border: 1px solid var(--border); border-radius: 6px; font-size: 14px; background: white; }
.filter-toggle { display: none; }
.expo-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.pagination { display: flex; justify-content: center; gap: 8px; margin-top: 32px; }
.pagination button { width: 40px; height: 40px; border: 1px solid var(--border); background: white; border-radius: 6px; cursor: pointer; font-size: 14px; }
.pagination button.active { background: var(--primary); color: white; border-color: var(--primary); }

/* Expo Detail */
.detail-hero { background: var(--white); padding: 32px 0; }
.detail-header { display: grid; grid-template-columns: 2fr 1fr; gap: 24px; }
.detail-main-img { height: 280px; background: linear-gradient(135deg, var(--primary-light), var(--primary)); border-radius: var(--radius); display: flex; align-items: center; justify-content: center; color: white; font-size: 48px; margin-bottom: 16px; }
.detail-info-card { background: var(--bg); border-radius: var(--radius); padding: 20px; }
.detail-info-card .row { display: flex; justify-content: space-between; padding: 10px 0; border-bottom: 1px solid var(--border); font-size: 14px; }
.detail-info-card .row:last-child { border: none; }
.tabs { display: flex; gap: 4px; border-bottom: 2px solid var(--border); margin-bottom: 24px; overflow-x: auto; }
.tab { padding: 12px 20px; cursor: pointer; font-weight: 500; color: var(--text-light); border-bottom: 2px solid transparent; margin-bottom: -2px; white-space: nowrap; }
.tab.active { color: var(--primary); border-bottom-color: var(--primary); }
.tab-content { display: none; }
.tab-content.active { display: block; }
.booth-map { background: #f0f4f8; border-radius: var(--radius); padding: 24px; min-height: 300px; }
.booth-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; }
.booth { aspect-ratio: 1.5; border-radius: 4px; display: flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 600; cursor: pointer; }
.booth.sold { background: #ccc; color: #666; }
.booth.available { background: var(--success); color: white; }
.booth.reserved { background: var(--warning); color: white; }
.exhibitor-item { display: flex; align-items: center; gap: 16px; padding: 16px; background: var(--white); border-radius: var(--radius); margin-bottom: 12px; box-shadow: var(--shadow); }
.exhibitor-logo { width: 48px; height: 48px; background: var(--primary-bg); border-radius: 8px; display: flex; align-items: center; justify-content: center; font-weight: 700; color: var(--primary); font-size: 18px; }
.exhibitor-info { flex: 1; }
.exhibitor-name { font-weight: 600; font-size: 15px; }
.exhibitor-desc { font-size: 13px; color: var(--text-light); }

/* Dashboard */
.dashboard { display: flex; min-height: calc(100vh - 64px); }
.dash-sidebar { width: 220px; background: var(--primary); color: white; padding: 20px 0; flex-shrink: 0; }
.dash-sidebar ul { list-style: none; }
.dash-sidebar a { display: flex; align-items: center; gap: 10px; padding: 12px 20px; color: rgba(255,255,255,0.8); font-size: 14px; }
.dash-sidebar a.active, .dash-sidebar a:hover { background: rgba(255,255,255,0.1); color: white; }
.dash-main { flex: 1; padding: 24px; background: var(--bg); overflow-x: auto; }
.dash-topbar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 24px; }
.dash-title { font-size: 20px; font-weight: 700; }
.kpi-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 24px; }
.kpi-card { background: white; border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow); }
.kpi-label { font-size: 13px; color: var(--text-light); }
.kpi-value { font-size: 28px; font-weight: 800; color: var(--primary); margin: 4px 0; }
.kpi-trend { font-size: 12px; }
.kpi-trend.up { color: var(--success); }
.kpi-trend.down { color: var(--danger); }
.dash-grid { display: grid; grid-template-columns: 2fr 1fr; gap: 20px; margin-bottom: 20px; }
.dash-card { background: white; border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow); }
.dash-card h3 { font-size: 16px; margin-bottom: 16px; }
.chart-placeholder { height: 200px; background: linear-gradient(180deg, rgba(50,136,185,0.1) 0%, transparent 100%); border-radius: 8px; position: relative; display: flex; align-items: flex-end; padding: 16px; gap: 8px; }
.chart-bar { flex: 1; background: var(--primary-light); border-radius: 4px 4px 0 0; min-height: 20px; }
.inquiry-item { padding: 12px 0; border-bottom: 1px solid var(--border); }
.inquiry-item:last-child { border: none; }
.inquiry-name { font-weight: 600; font-size: 14px; }
.inquiry-msg { font-size: 13px; color: var(--text-light); margin: 4px 0; }
.inquiry-time { font-size: 12px; color: var(--text-light); }
.todo-item { display: flex; align-items: center; gap: 10px; padding: 10px 0; font-size: 14px; }
.todo-item input[type="checkbox"] { width: 18px; height: 18px; }

/* Login */
.login-page { min-height: 100vh; display: flex; align-items: center; justify-content: center; background: linear-gradient(135deg, var(--primary) 0%, #1a5a8a 100%); padding: 20px; }
.login-card { background: white; border-radius: 16px; padding: 40px; width: 100%; max-width: 420px; box-shadow: var(--shadow-lg); }
.login-card h2 { text-align: center; margin-bottom: 8px; color: var(--primary); }
.login-card .sub { text-align: center; color: var(--text-light); margin-bottom: 24px; font-size: 14px; }
.role-selector { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 20px; }
.role-option { padding: 12px 8px; border: 2px solid var(--border); border-radius: 8px; text-align: center; cursor: pointer; font-size: 13px; transition: all .2s; }
.role-option.active { border-color: var(--primary); background: var(--primary-bg); color: var(--primary); font-weight: 600; }
.role-option .icon { font-size: 24px; display: block; margin-bottom: 4px; }
.form-group { margin-bottom: 16px; }
.form-group label { display: block; font-size: 14px; font-weight: 500; margin-bottom: 6px; }
.form-group input { width: 100%; padding: 12px 14px; border: 1px solid var(--border); border-radius: 8px; font-size: 14px; min-height: 44px; }
.form-group input:focus { outline: none; border-color: var(--primary-light); }
.form-row { display: flex; justify-content: space-between; align-items: center; font-size: 13px; margin-bottom: 20px; }
.social-login { display: flex; gap: 10px; margin-top: 20px; }
.social-btn { flex: 1; padding: 10px; border: 1px solid var(--border); border-radius: 8px; text-align: center; cursor: pointer; font-size: 13px; background: white; }
.divider { text-align: center; color: var(--text-light); font-size: 13px; margin: 20px 0; position: relative; }
.divider::before, .divider::after { content: ''; position: absolute; top: 50%; width: 40%; height: 1px; background: var(--border); }
.divider::before { left: 0; } .divider::after { right: 0; }

/* Responsive */
@media (max-width: 768px) {
  .nav-links, .nav-actions .btn-outline { display: none; }
  .hamburger { display: flex; }
  .hero h1 { font-size: 26px; }
  .hero p { font-size: 15px; }
  .search-box { flex-direction: column; }
  .search-box .btn { width: 100%; }
  .grid-4, .grid-3 { grid-template-columns: 1fr; }
  .grid-2 { grid-template-columns: 1fr; }
  .industry-grid { grid-template-columns: repeat(4, 1fr); gap: 10px; }
  .industry-item { padding: 14px 8px; }
  .industry-icon { font-size: 22px; }
  .stats-row { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .stat-num { font-size: 24px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 24px; }
  .cta-buttons { flex-direction: column; }
  .cta-buttons .btn { width: 100%; }
  .expo-list { grid-template-columns: 1fr; }
  .filter-bar { display: none; }
  .filter-toggle { display: inline-flex; }
  .detail-header { grid-template-columns: 1fr; }
  .detail-main-img { height: 180px; }
  .booth-grid { grid-template-columns: repeat(4, 1fr); }
  .exhibitor-item { flex-wrap: wrap; }
  .dashboard { flex-direction: column; }
  .dash-sidebar { display: none; width: 100%; position: fixed; top: 64px; left: 0; bottom: 0; z-index: 90; overflow-y: auto; }
  .dash-sidebar.open { display: block; }
  .dash-main { padding: 16px; }
  .kpi-row { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .kpi-value { font-size: 22px; }
  .dash-grid { grid-template-columns: 1fr; }
  .login-card { padding: 28px 20px; }
  .section { padding: 32px 0; }
  .section-title { font-size: 20px; }
}
@media (max-width: 480px) {
  .industry-grid { grid-template-columns: repeat(3, 1fr); }
  .stats-row { grid-template-columns: repeat(2, 1fr); }
}
