/* city-life/css/index.css */
/* 城市与生活（H01）页面专属样式 */

/* =========================================
   1. 首屏 Banner
   ========================================= */
.city-hero::after {
    content: "";
    position: absolute;
    inset: auto 0 0 0;
    height: 48%;
    background: linear-gradient(to top, rgba(15, 23, 42, 0.55), rgba(15, 23, 42, 0));
    pointer-events: none;
}

.hero-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    height: 46px;
    padding: 0 28px;
    border-radius: 9999px;
    font-size: 15px;
    font-weight: 600;
    transition: all 0.25s ease;
}
.hero-btn-primary {
    background: #E63946;
    color: #FFFFFF;
    box-shadow: 0 8px 20px -8px rgba(230, 57, 70, 0.75);
}
.hero-btn-primary:hover {
    background: #D62839;
    transform: translateY(-1px);
}
.hero-btn-ghost {
    border: 1.5px solid rgba(255, 255, 255, 0.75);
    background: rgba(255, 255, 255, 0.04);
    color: #FFFFFF;
}
.hero-btn-ghost:hover {
    background: rgba(255, 255, 255, 0.16);
    border-color: #FFFFFF;
}

/* =========================================
   2. 区块与标题
   ========================================= */
.section {
    padding: 28px 0;
    border-top: 1px solid #F1F5F9;
}

.section-head {
    display: flex;
    align-items: flex-end;
    gap: 12px;
    margin-bottom: 20px;
}

.section-title {
    position: relative;
    font-size: 24px;
    font-weight: 700;
    line-height: 1.2;
    padding-bottom: 8px;
    letter-spacing: 0.02em;
}
.section-title::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 22px;
    height: 3px;
    border-radius: 2px;
    background: #E63946;
}

.section-sub {
    font-size: 12px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #94A3B8;
    padding-bottom: 10px;
}

.more-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: #94A3B8;
    transition: color 0.2s;
}
.more-link:hover { color: #E63946; }

/* 通用：小圆角箭头 */
.chev {
    width: 24px;
    height: 24px;
    border-radius: 9999px;
    border: 1px solid #EDF1F5;
    background: #FFFFFF;
    color: #94A3B8;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.2s;
}
.group:hover .chev {
    color: #E63946;
    border-color: #FADBDD;
}

/* =========================================
   3. 两张入口卡片（认识无锡 / 在无锡生活）
   ========================================= */
.feature-card {
    display: flex;
    height: 214px;
    background: #FFFFFF;
    border: 1px solid #EFF2F6;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 2px 10px -4px rgba(15, 23, 42, 0.08);
    transition: box-shadow 0.25s ease, transform 0.25s ease;
}
.feature-card:hover {
    box-shadow: 0 14px 30px -16px rgba(15, 23, 42, 0.3);
    transform: translateY(-2px);
}

.en-label {
    font-size: 12px;
    font-weight: 400;
    color: #94A3B8;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    white-space: nowrap;
}

.pill-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    height: 34px;
    padding: 0 18px;
    border: 1px solid #E2E8F0;
    border-radius: 9999px;
    font-size: 13px;
    font-weight: 500;
    color: #334155;
    transition: all 0.2s;
}
.feature-card:hover .pill-link {
    border-color: #E63946;
    color: #E63946;
}

/* =========================================
   4. 我想找… / 本地服务与机构
   ========================================= */
.quick-card {
    display: flex;
    align-items: center;
    gap: 14px;
    background: #F8FAFC;
    border: 1px solid #F1F5F9;
    border-radius: 12px;
    padding: 14px 16px;
    transition: all 0.2s;
}
.quick-card:hover {
    background: #FFFFFF;
    border-color: #E2E8F0;
    box-shadow: 0 10px 24px -18px rgba(15, 23, 42, 0.45);
}

.quick-icon {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 21px;
    flex-shrink: 0;
}

/* =========================================
   5. 探索无锡卡片
   ========================================= */
.explore-card {
    display: block;
    background: #FFFFFF;
    border: 1px solid #EFF2F6;
    border-radius: 12px;
    padding: 6px;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04);
    transition: all 0.25s;
}
.explore-card:hover {
    border-color: #E2E8F0;
    box-shadow: 0 14px 26px -20px rgba(15, 23, 42, 0.5);
}
.explore-thumb {
    height: 104px;
    border-radius: 8px;
    overflow: hidden;
    background: #F1F5F9;
}
.explore-body {
    padding: 10px 6px 8px;
}

/* =========================================
   6. 城市数据
   ========================================= */
.stat-card {
    background: #F8FAFC;
    border-radius: 12px;
    padding: 18px;
    display: flex;
    flex-direction: column;
}
.stat-icon {
    width: 38px;
    height: 38px;
    border-radius: 9999px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #FFFFFF;
    font-size: 15px;
}
.stat-num {
    font-size: 26px;
    font-weight: 800;
    color: #0F172A;
    letter-spacing: -0.01em;
}
.stat-unit {
    font-size: 12px;
    font-weight: 600;
    color: #475569;
    margin-left: 5px;
}
.stat-label {
    font-size: 13px;
    font-weight: 500;
    color: #334155;
    margin-top: 8px;
}
.stat-note {
    font-size: 11px;
    color: #94A3B8;
    margin-top: 4px;
}

/* 行政区划示意图标签 */
.map-pill {
    position: absolute;
    transform: translate(-50%, -50%);
    padding: 2px 8px;
    border-radius: 9999px;
    font-size: 10px;
    font-weight: 600;
    line-height: 1.35;
    white-space: nowrap;
    letter-spacing: 0.02em;
}

/* =========================================
   7. 生活服务指南
   ========================================= */
.guide-card {
    display: block;
    background: #F8FAFC;
    border: 1px solid #F1F5F9;
    border-radius: 10px;
    padding: 14px;
    transition: all 0.2s;
}
.guide-card:hover {
    background: #FFFFFF;
    border-color: #E2E8F0;
    box-shadow: 0 10px 22px -18px rgba(15, 23, 42, 0.45);
}
.guide-title {
    font-size: 13px;
    font-weight: 700;
    color: #1E293B;
    line-height: 1.3;
    margin-top: 10px;
}
.guide-desc {
    font-size: 11px;
    color: #94A3B8;
    line-height: 1.5;
    margin-top: 5px;
}

/* =========================================
   8. 常用生活指南
   ========================================= */
.feature-guide {
    display: flex;
    height: 140px;
    background: #FFFFFF;
    border: 1px solid #EFF2F6;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 10px -6px rgba(15, 23, 42, 0.1);
    transition: all 0.25s;
}
.feature-guide:hover {
    box-shadow: 0 16px 30px -22px rgba(15, 23, 42, 0.5);
}
.feature-guide-thumb {
    position: relative;
    width: 132px;
    flex-shrink: 0;
    overflow: hidden;
    background: #F1F5F9;
}

.tag {
    position: absolute;
    left: 8px;
    bottom: 8px;
    padding: 3px 9px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 600;
    line-height: 1.2;
    white-space: nowrap;
}

/* =========================================
   9. 发现城市生活
   ========================================= */
.life-card {
    position: relative;
    display: block;
    height: 116px;
    border-radius: 10px;
    overflow: hidden;
    background: #0F172A;
}
.life-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.78), rgba(0, 0, 0, 0.12) 62%, rgba(0, 0, 0, 0));
}
.life-text {
    position: absolute;
    left: 14px;
    right: 14px;
    bottom: 12px;
    color: #FFFFFF;
}

/* =========================================
   10. 近期活动
   ========================================= */
.event-card {
    display: flex;
    gap: 12px;
    min-height: 86px;
    padding: 8px 10px 8px 8px;
    background: #FFFFFF;
    border: 1px solid #EFF2F6;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.05);
    transition: all 0.2s;
}
.event-card:hover {
    border-color: #E2E8F0;
    box-shadow: 0 12px 26px -20px rgba(15, 23, 42, 0.5);
}
.event-thumb {
    position: relative;
    width: 96px;
    height: 68px;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
    background: #F1F5F9;
}
.event-thumb .tag {
    top: 6px;
    bottom: auto;
    left: 6px;
    padding: 2px 7px;
    font-size: 10px;
}

/* =========================================
   11. AI 助手提示条
   ========================================= */
.ai-cta {
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 18px 22px;
    border-radius: 14px;
    border: 1px solid #EFF2F6;
    background: linear-gradient(90deg, #EEF5FF 0%, #F4F2FE 48%, #FDF0F1 100%);
}
.ai-cta-icon {
    width: 52px;
    height: 52px;
    border-radius: 9999px;
    background: #FFFFFF;
    color: #3B82F6;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    flex-shrink: 0;
    box-shadow: 0 8px 18px -12px rgba(59, 130, 246, 0.8);
}
.ai-cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    height: 38px;
    padding: 0 20px;
    border-radius: 9999px;
    background: #E63946;
    color: #FFFFFF;
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
    transition: background 0.2s;
}
.ai-cta-btn:hover { background: #D62839; }

/* =========================================
   12. 进入视口渐显
   ========================================= */
.reveal {
    opacity: 0;
    transform: translateY(14px);
}
.reveal.is-visible {
    opacity: 1;
    transform: none;
    transition: opacity 0.6s ease, transform 0.6s ease;
}

@media (prefers-reduced-motion: reduce) {
    .reveal { opacity: 1 !important; transform: none !important; }
}

/* =========================================
   13. 响应式适配
   ========================================= */
@media (max-width: 1279px) {
    .feature-card { height: 200px; }
    .feature-card h3 { font-size: 22px; }
    .en-label { font-size: 11px; }
}

@media (max-width: 1023px) {
    .feature-card { height: auto; min-height: 190px; }
    .feature-card > div:first-child { width: 38%; min-height: 190px; }
}

@media (max-width: 767px) {
    .city-hero { height: 400px; }
    .city-hero h1 { font-size: 40px; }
    .city-hero .hero-sub { font-size: 19px; }
    .city-hero .hero-desc { font-size: 14px; }
    .hero-btn { height: 42px; padding: 0 20px; font-size: 14px; }
    .section { padding: 22px 0; }
    .section-title { font-size: 20px; }
    .stat-card { padding: 14px; }
    .stat-num { font-size: 21px; }
    .stat-unit { font-size: 11px; margin-left: 3px; white-space: nowrap; }
    .feature-card { flex-direction: column; min-height: 0; }
    .feature-card > div:first-child { width: 100%; height: 160px; min-height: 0; }
    .feature-guide { height: auto; }
    .feature-guide-thumb { width: 116px; min-height: 116px; }
    .ai-cta { flex-direction: column; align-items: flex-start; }
}
