* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif; background: #f0f2f5; color: #333; font-size: 14px; -webkit-tap-highlight-color: transparent; }
a { text-decoration: none; color: inherit; }
img { display: block; max-width: 100%; }

/* ===== 首页容器 ===== */
.home-wrap { max-width: 750px; margin: 0 auto; min-height: 100vh; background: #f0f2f5; position: relative; padding-bottom: 80px; }

/* ===== 顶部搜索栏 ===== */
.home-topbar {
    background: linear-gradient(135deg, #1a73e8, #4285f4);
    padding: 12px 14px;
    display: flex;
    align-items: center;
    gap: 10px;
    position: sticky;
    top: 0;
    z-index: 100;
}
.home-topbar .city {
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 2px;
    white-space: nowrap;
}
.home-topbar .city:after {
    content: "";
    display: inline-block;
    width: 0;
    height: 0;
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    border-top: 5px solid #fff;
    margin-left: 2px;
}
.home-search {
    flex: 1;
    background: rgba(255,255,255,0.95);
    border-radius: 22px;
    padding: 8px 14px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.home-search input { flex: 1; border: none; outline: none; font-size: 13px; color: #333; background: transparent; }
.home-search .search-icon { color: #999; font-size: 14px; }
.home-topbar .nav-links { display: none; gap: 16px; }
.home-topbar .nav-links a { color: #fff; font-size: 13px; opacity: 0.85; }

/* ===== Banner区域 ===== */
.home-banner {
    background: linear-gradient(135deg, #1a73e8 0%, #0d47a1 100%);
    color: #fff;
    padding: 28px 16px 24px;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.home-banner:after {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: rgba(255,255,255,0.08);
}
.home-banner h1 { font-size: 24px; font-weight: 700; margin-bottom: 8px; position: relative; }
.home-banner p { font-size: 14px; opacity: 0.85; margin-bottom: 18px; position: relative; }
.home-banner-btns { display: flex; gap: 12px; justify-content: center; position: relative; }
.home-banner-btn { padding: 10px 28px; border-radius: 22px; font-size: 14px; font-weight: 600; }
.home-banner-btn-fill { background: #fff; color: #1a73e8; box-shadow: 0 4px 12px rgba(0,0,0,0.15); }
.home-banner-btn-outline { background: transparent; color: #fff; border: 1px solid rgba(255,255,255,0.5); }

/* ===== 分类导航网格 ===== */
.home-cat-section { background: #fff; padding: 18px 14px; border-radius: 12px; margin: 8px 5px; }
.home-cat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.home-cat-item { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.home-cat-item:active { transform: scale(0.95); }
.home-cat-icon {
    width: 46px;
    height: 46px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: 700;
}
.home-cat-icon-1 { background: #e8f0fe; color: #1a73e8; }
.home-cat-icon-2 { background: #e6f4ea; color: #34a853; }
.home-cat-icon-3 { background: #fef7e0; color: #f9ab00; }
.home-cat-icon-4 { background: #f3e8fd; color: #9c27b0; }
.home-cat-icon-5 { background: #fce8e6; color: #ea4335; }
.home-cat-icon-6 { background: #e0f2f1; color: #00897b; }
.home-cat-icon-7 { background: #e3f2fd; color: #0288d1; }
.home-cat-icon-8 { background: #fff3e0; color: #ef6c00; }
.home-cat-name { font-size: 12px; color: #666; text-align: center; }

/* ===== 快捷入口 ===== */
.home-quick-section { background: #fff; padding: 14px 14px; border-radius: 12px; margin: 8px 5px; }
.home-quick-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.home-quick-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 12px 4px;
    border-radius: 10px;
    background: #f8f9fb;
    gap: 6px;
}
.home-quick-item:active { transform: scale(0.95); }
.home-quick-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-weight: 700;
}
.home-quick-name { font-size: 12px; color: #555; }

/* ===== 信息流卡片 ===== */
.home-feed-section { padding: 0 5px; }
.home-feed-title {
    font-size: 17px;
    font-weight: 700;
    color: #333;
    margin: 14px 0 10px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.home-feed-title span { font-size: 12px; color: #999; font-weight: 400; }
.home-feed-card {
    background: #fff;
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}
.home-feed-card:active { transform: scale(0.98); }
.home-feed-card-header { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 10px; }
.home-feed-card-title { font-size: 16px; font-weight: 600; color: #333; flex: 1; }
.home-feed-card-tag { font-size: 11px; padding: 3px 10px; border-radius: 12px; margin-left: 8px; white-space: nowrap; font-weight: 500; }
.home-feed-card-tag-hot { background: #fce8e6; color: #ea4335; }
.home-feed-card-tag-new { background: #e6f4ea; color: #34a853; }
.home-feed-card-tag-rec { background: #e8f0fe; color: #1a73e8; }
.home-feed-card-body { font-size: 13px; color: #666; line-height: 1.6; }
.home-feed-card-footer { display: flex; justify-content: space-between; align-items: center; margin-top: 10px; padding-top: 10px; border-top: 1px solid #f0f0f0; }
.home-feed-card-price { font-size: 18px; font-weight: 700; color: #ea4335; }
.home-feed-card-price span { font-size: 12px; color: #999; font-weight: 400; }
.home-feed-card-meta { font-size: 12px; color: #999; }

/* ===== 套餐卡片 ===== */
.home-pkg-section { padding: 0 5px; margin-top: 8px; }
.home-pkg-grid { display: grid; grid-template-columns: 1fr; gap: 12px; }
.home-pkg-card {
    background: #fff;
    border-radius: 12px;
    padding: 18px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    position: relative;
    border: 1px solid #eee;
}
.home-pkg-featured { border: 2px solid #34a853; }
.home-pkg-badge {
    position: absolute;
    top: -10px;
    right: 14px;
    background: linear-gradient(135deg, #34a853, #2d8e47);
    color: #fff;
    font-size: 11px;
    padding: 4px 12px;
    border-radius: 12px;
    font-weight: 600;
}
.home-pkg-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.home-pkg-name { font-size: 17px; font-weight: 700; color: #333; }
.home-pkg-price { font-size: 24px; font-weight: 800; color: #ea4335; }
.home-pkg-price span { font-size: 12px; color: #999; font-weight: 400; }
.home-pkg-desc { font-size: 13px; color: #666; margin-bottom: 12px; line-height: 1.5; }
.home-pkg-features { list-style: none; margin-bottom: 14px; }
.home-pkg-features li { font-size: 13px; color: #555; padding: 4px 0; display: flex; align-items: center; gap: 6px; }
.home-pkg-features li:before { content: "\2713"; color: #34a853; font-weight: 700; font-size: 14px; }
.home-pkg-btn { display: block; text-align: center; padding: 12px; border-radius: 22px; font-size: 14px; font-weight: 600; }
.home-pkg-btn-primary { background: linear-gradient(135deg, #1a73e8, #4285f4); color: #fff; box-shadow: 0 4px 12px rgba(26,115,232,0.3); }
.home-pkg-btn-default { background: #f0f4ff; color: #1a73e8; }

/* ===== 平台入口 ===== */
.home-portal-section { padding: 0 5px; margin-top: 8px; }
.home-portal-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.home-portal-card {
    background: #fff;
    border-radius: 12px;
    padding: 18px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}
.home-portal-card:active { transform: scale(0.97); }
.home-portal-icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    margin: 0 auto 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: 700;
}
.home-portal-card h3 { font-size: 16px; font-weight: 600; color: #333; margin-bottom: 4px; }
.home-portal-card p { font-size: 12px; color: #999; margin-bottom: 12px; line-height: 1.4; }
.home-portal-btn { display: inline-block; padding: 8px 20px; border-radius: 18px; font-size: 13px; font-weight: 600; color: #fff; }
.home-portal-btn-blue { background: linear-gradient(135deg, #1a73e8, #4285f4); }
.home-portal-btn-green { background: linear-gradient(135deg, #34a853, #2d8e47); }
.home-portal-btn-purple { background: linear-gradient(135deg, #9c27b0, #7b1fa2); }
.home-portal-btn-orange { background: linear-gradient(135deg, #f9ab00, #ef6c00); }

/* ===== Footer ===== */
.home-footer { background: #fff; padding: 24px 16px; text-align: center; margin-top: 16px; border-radius: 12px 12px 0 0; }
.home-footer-brand { font-size: 17px; font-weight: 700; color: #333; margin-bottom: 12px; }
.home-footer-links { display: flex; justify-content: center; gap: 20px; margin-bottom: 12px; }
.home-footer-links a { font-size: 13px; color: #666; }
.home-footer-phone { font-size: 13px; color: #999; margin-bottom: 6px; }
.home-footer-copy { font-size: 11px; color: #bbb; }

/* ===== 响应式 - 平板 ===== */
@media (min-width: 600px) {
    .home-banner { padding: 40px 16px; }
    .home-banner h1 { font-size: 30px; }
    .home-banner p { font-size: 16px; }
    .home-cat-grid { grid-template-columns: repeat(4, 1fr); gap: 18px; }
    .home-cat-icon { width: 50px; height: 50px; font-size: 22px; }
    .home-pkg-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
    .home-portal-grid { grid-template-columns: repeat(4, 1fr); gap: 14px; }
    .home-feed-card { padding: 18px; }
}

/* ===== 响应式 - 桌面 ===== */
@media (min-width: 960px) {
    .home-topbar .nav-links { display: flex; }
    .home-banner { padding: 52px 16px; }
    .home-banner h1 { font-size: 34px; }
    .home-banner p { font-size: 18px; max-width: 500px; margin-left: auto; margin-right: auto; }
    .home-cat-grid { grid-template-columns: repeat(8, 1fr); gap: 18px; }
    .home-quick-grid { grid-template-columns: repeat(4, 1fr); }
    .home-pkg-grid { grid-template-columns: repeat(3, 1fr); gap: 16px; }
    .home-portal-grid { grid-template-columns: repeat(4, 1fr); gap: 14px; }
    .home-wrap { padding-bottom: 0; }
}
