/* 全局重置 */
* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: 'Segoe UI', 'PingFang SC', Roboto, 'Helvetica Neue', sans-serif; line-height: 1.6; background: #f8fafc; color: #1e293b; transition: background 0.3s, color 0.3s; }
body.dark { background: #0f172a; color: #e2e8f0; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { max-width: 100%; height: auto; border-radius: 12px; }

/* 导航栏 */
.navbar { background: #fff; box-shadow: 0 2px 20px rgba(0,0,0,0.05); position: sticky; top: 0; z-index: 1000; transition: background 0.3s; }
body.dark .navbar { background: #1e293b; }
.navbar .container { display: flex; justify-content: space-between; align-items: center; padding: 15px 20px; }
.logo { font-size: 24px; font-weight: 700; color: var(--theme-primary, #2563eb); display: flex; align-items: center; gap: 10px; }
.logo i { font-size: 28px; }
.nav-links { display: flex; gap: 25px; align-items: center; }
.nav-links a { padding: 8px 0; font-weight: 500; color: #475569; border-bottom: 2px solid transparent; transition: 0.3s; }
body.dark .nav-links a { color: #cbd5e1; }
.nav-links a:hover { color: var(--theme-primary, #2563eb); border-bottom-color: var(--theme-primary, #2563eb); }
.nav-actions { display: flex; gap: 10px; align-items: center; }
.btn-icon { background: transparent; border: none; font-size: 20px; color: #64748b; cursor: pointer; padding: 8px; border-radius: 50%; transition: 0.3s; }
body.dark .btn-icon { color: #94a3b8; }
.btn-icon:hover { background: #f1f5f9; color: var(--theme-primary, #2563eb); }
body.dark .btn-icon:hover { background: #334155; }
.hamburger { display: none; background: transparent; border: none; font-size: 24px; color: #475569; cursor: pointer; }
body.dark .hamburger { color: #cbd5e1; }

/* Hero */
.hero { background: linear-gradient(135deg, var(--theme-primary, #2563eb) 0%, var(--theme-secondary, #1d4ed8) 100%); color: #fff; padding: 80px 0 60px; text-align: center; position: relative; overflow: hidden; }
.hero::before { content: ''; position: absolute; top: -50%; left: -50%; width: 200%; height: 200%; background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%); animation: heroGlow 8s ease-in-out infinite; }
@keyframes heroGlow { 0%, 100% { transform: translate(0, 0); } 50% { transform: translate(30px, 30px); } }
.hero h1 { font-size: 42px; font-weight: 800; margin-bottom: 20px; position: relative; z-index: 1; }
.hero p { font-size: 18px; opacity: 0.9; margin-bottom: 30px; max-width: 600px; margin-left: auto; margin-right: auto; position: relative; z-index: 1; }
.hero-search { max-width: 600px; margin: 0 auto 30px; position: relative; z-index: 1; }
.hero-search form { display: flex; gap: 0; }
.hero-search input { flex: 1; padding: 16px 20px; border: none; border-radius: 50px 0 0 50px; font-size: 16px; outline: none; }
.hero-search button { padding: 16px 30px; background: #fff; color: var(--theme-primary, #2563eb); border: none; border-radius: 0 50px 50px 0; font-size: 16px; font-weight: 600; cursor: pointer; transition: 0.3s; }
.hero-search button:hover { background: #f1f5f9; }
.hero-stats { display: flex; justify-content: center; gap: 40px; position: relative; z-index: 1; }
.hero-stats span { display: flex; align-items: center; gap: 8px; font-size: 16px; opacity: 0.9; }

/* 筛选区 */
.filters { background: #fff; padding: 25px 0; box-shadow: 0 2px 10px rgba(0,0,0,0.05); }
body.dark .filters { background: #1e293b; }
.filter-form { display: flex; gap: 15px; flex-wrap: wrap; align-items: flex-end; }
.filter-group { flex: 1; min-width: 150px; }
.filter-group label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 5px; color: #64748b; }
body.dark .filter-group label { color: #94a3b8; }
.filter-group input, .filter-group select { width: 100%; padding: 10px 12px; border: 2px solid #e2e8f0; border-radius: 8px; font-size: 14px; background: #fff; transition: border-color 0.3s; }
body.dark .filter-group input, body.dark .filter-group select { background: #334155; border-color: #475569; color: #e2e8f0; }
.filter-group input:focus, .filter-group select:focus { border-color: var(--theme-primary, #2563eb); outline: none; }
.btn-primary { padding: 10px 25px; background: var(--theme-primary, #2563eb); color: #fff; border: none; border-radius: 8px; cursor: pointer; font-size: 14px; font-weight: 600; transition: 0.3s; }
.btn-primary:hover { background: var(--theme-secondary, #1d4ed8); transform: translateY(-2px); }
.btn-secondary { padding: 10px 25px; background: #e2e8f0; color: #475569; border: none; border-radius: 8px; cursor: pointer; font-size: 14px; font-weight: 600; transition: 0.3s; display: inline-flex; align-items: center; gap: 8px; }
body.dark .btn-secondary { background: #334155; color: #cbd5e1; }
.btn-secondary:hover { background: #cbd5e1; }
body.dark .btn-secondary:hover { background: #475569; }

/* 服务列表 */
.services { padding: 60px 0; }
.services h2 { font-size: 28px; margin-bottom: 30px; color: #1e293b; display: flex; align-items: center; gap: 10px; }
body.dark .services h2 { color: #e2e8f0; }
.count { font-size: 16px; color: #64748b; font-weight: 400; }
.service-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 25px; }
.no-results { grid-column: 1 / -1; text-align: center; padding: 40px; color: #64748b; font-size: 18px; }
.service-card { background: #fff; border-radius: 16px; overflow: hidden; box-shadow: 0 4px 20px rgba(0,0,0,0.05); transition: 0.3s; }
body.dark .service-card { background: #1e293b; }
.service-card:hover { transform: translateY(-5px); box-shadow: 0 10px 40px rgba(0,0,0,0.1); }
.card-image { position: relative; height: 200px; overflow: hidden; }
.card-image img { width: 100%; height: 100%; object-fit: cover; transition: 0.5s; }
.service-card:hover .card-image img { transform: scale(1.05); }
.card-badge { position: absolute; top: 15px; left: 15px; background: var(--theme-primary, #2563eb); color: #fff; padding: 5px 15px; border-radius: 20px; font-size: 12px; font-weight: 600; }
.card-body { padding: 20px; }
.card-body h3 { font-size: 18px; margin-bottom: 10px; color: #1e293b; }
body.dark .card-body h3 { color: #e2e8f0; }
.card-body p { color: #64748b; font-size: 14px; margin-bottom: 15px; }
body.dark .card-body p { color: #94a3b8; }
.card-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 15px; }
.tag { background: #f1f5f9; color: #475569; padding: 4px 12px; border-radius: 20px; font-size: 12px; }
body.dark .tag { background: #334155; color: #cbd5e1; }
.card-footer { display: flex; justify-content: space-between; align-items: center; margin-bottom: 15px; }
.price { font-size: 20px; font-weight: 700; color: var(--theme-primary, #2563eb); }
.rating i { color: #d1d5db; font-size: 14px; }
.rating i.active { color: #f59e0b; }
.btn-card { display: inline-flex; align-items: center; gap: 8px; color: var(--theme-primary, #2563eb); font-weight: 600; font-size: 14px; transition: 0.3s; }
.btn-card:hover { gap: 12px; }

/* 热力图 */
.heatmap { padding: 40px 0; background: #fff; }
body.dark .heatmap { background: #1e293b; }
.heatmap h2 { text-align: center; margin-bottom: 30px; }
.heatmap-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 15px; }
.heatmap-item { padding: 20px; border-radius: 12px; color: #fff; text-align: center; min-height: 80px; display: flex; flex-direction: column; justify-content: center; transition: 0.3s; }
.heatmap-item:hover { transform: scale(1.05); }
.heatmap-item span { font-weight: 600; font-size: 14px; }
.heatmap-item small { font-size: 12px; opacity: 0.8; margin-top: 5px; }

/* 统计 */
.stats { padding: 60px 0; background: var(--theme-bg, #f0f4ff); }
body.dark .stats { background: #0f172a; }
.stats h2 { text-align: center; margin-bottom: 40px; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 25px; }
.stat-item { background: #fff; padding: 30px; border-radius: 16px; text-align: center; box-shadow: 0 4px 20px rgba(0,0,0,0.05); transition: 0.3s; }
body.dark .stat-item { background: #1e293b; }
.stat-item:hover { transform: translateY(-3px); }
.stat-item i { font-size: 36px; color: var(--theme-primary, #2563eb); margin-bottom: 15px; }
.stat-number { display: block; font-size: 32px; font-weight: 800; color: #1e293b; }
body.dark .stat-number { color: #e2e8f0; }
.stat-label { color: #64748b; font-size: 14px; margin-top: 5px; }

/* 页脚 */
.footer { background: #1e293b; color: #cbd5e1; padding: 60px 0 30px; }
.footer-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 40px; margin-bottom: 40px; }
.footer-col h4 { color: #fff; font-size: 18px; margin-bottom: 20px; position: relative; padding-bottom: 10px; }
.footer-col h4::after { content: ''; position: absolute; bottom: 0; left: 0; width: 40px; height: 2px; background: var(--theme-primary, #2563eb); }
.footer-col p { margin-bottom: 10px; font-size: 14px; }
.footer-col a { display: block; color: #94a3b8; margin-bottom: 8px; font-size: 14px; transition: 0.3s; }
.footer-col a:hover { color: #fff; padding-left: 5px; }
.social-links { display: flex; gap: 15px; margin-top: 15px; }
.social-links a { width: 40px; height: 40px; background: #334155; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: #cbd5e1; transition: 0.3s; }
.social-links a:hover { background: var(--theme-primary, #2563eb); color: #fff; }
.footer-bottom { text-align: center; padding-top: 30px; border-top: 1px solid #334155; font-size: 14px; }

/* 响应式 */
@media (max-width: 768px) {
    .nav-links { display: none; position: absolute; top: 70px; left: 0; right: 0; background: #fff; flex-direction: column; padding: 20px; gap: 15px; box-shadow: 0 10px 30px rgba(0,0,0,0.1); }
    body.dark .nav-links { background: #1e293b; }
    .nav-links.active { display: flex; }
    .hamburger { display: block; }
    .hero h1 { font-size: 28px; }
    .hero-stats { flex-direction: column; gap: 15px; }
    .filter-form { flex-direction: column; }
    .filter-group { min-width: 100%; }
    .service-grid { grid-template-columns: 1fr; }
    .stats-grid { grid-template-columns: 1fr 1fr; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 480px) {
    .stats-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; }
    .hero-search input { padding: 12px 15px; }
    .hero-search button { padding: 12px 20px; }
}