/* ============================================================
 * 城市页样式 — 最小差异层
 *
 * Hero / step-card / cta-section / section-alt 全部复用 home.css
 * 本文件仅写城市页专属差异（Hero 高度、标题不换行、附近城市卡）
 * ============================================================ */

/* Hero 差异：内页高度略低 */
.city-hero {
    min-height: 480px;
}

.city-hero-content {
    padding: calc(var(--header-height) + var(--space-7)) 0 var(--space-7);
}

.city-hero-title {
    /* 完全继承 .hero-title 渐变文字效果，仅调小字号上限 */
    font-size: clamp(1.5rem, 3.5vw, 2.25rem);
}

/* 面包屑 */
.city-breadcrumb.section {
    padding: 0;
}

/* 服务亮点卡片 */
.city-services-grid {
    margin-top: var(--space-6);
}

/* 正文单列居中 */
.city-content {
    max-width: 760px;
    margin: 0 auto;
    font-size: var(--fs-base);
    line-height: var(--lh-base);
    color: var(--gray-700);
}

.city-content h2 {
    font-size: var(--fs-xl);
    font-weight: var(--fw-bold);
    line-height: var(--lh-heading);
    margin-top: var(--space-7);
    margin-bottom: var(--space-4);
    color: var(--gray-900);
}

.city-content h2:first-child {
    margin-top: 0;
}

.city-content h3 {
    font-size: var(--fs-lg);
    font-weight: var(--fw-medium);
    line-height: var(--lh-heading);
    margin-top: var(--space-6);
    margin-bottom: var(--space-3);
    color: var(--gray-800);
}

.city-content p {
    margin-bottom: var(--space-4);
}

.city-content ul {
    margin-bottom: var(--space-4);
    padding-left: var(--space-5);
    list-style: disc;
}

.city-content li {
    margin-bottom: var(--space-2);
}

/* 卡片内要点列表：去 disc，改用对号色块前缀，与首页 step-card 视觉一致 */
.city-feature-list {
    list-style: none;
    padding: 0;
    margin: var(--space-3) 0 0;
    text-align: left;
}

.city-feature-list li {
    position: relative;
    padding-left: var(--space-5);
    margin-bottom: var(--space-2);
    font-size: var(--fs-sm);
    line-height: var(--lh-base);
    color: var(--gray-700);
}

.city-feature-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.55em;
    width: 0.5rem;
    height: 0.5rem;
    border-radius: 50%;
    background: var(--color-primary);
}

/* 附近城市卡（复用 .step-card，仅加 hover 态） */
.city-nearby-card {
    display: block;
    text-decoration: none;
    transition: border-color var(--transition), box-shadow var(--transition);
}

.city-nearby-card:hover {
    border-color: var(--color-primary);
    box-shadow: var(--shadow-md);
}

.city-nearby-card:hover h3 {
    color: var(--color-primary);
}

/* 响应式 */
@media (max-width: 768px) {
    .city-hero {
        min-height: 380px;
    }

    .city-hero-content {
        padding: calc(var(--header-height) + var(--space-5)) 0 var(--space-5);
    }

    .city-hero-title {
        font-size: var(--fs-lg);
        white-space: normal;
    }

    .city-content {
        font-size: var(--fs-sm);
    }
}

/* ============================================================
 * 多布局排版差异（layout_key 控制 DOM 结构，非换色）
 * 仅写增量，standard 沿用 home.css 默认，不动。
 * ============================================================ */

/* feature：Hero 改为左文右图两栏 */
.layout-feature .hero-split .container {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: var(--space-6);
    align-items: center;
}

.layout-feature .hero-media {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.layout-feature .hero-media img {
    width: 100%;
    height: 100%;
    max-height: 420px;
    object-fit: cover;
    display: block;
}

/* compact：无 hero，标题 + CTA 简约条 */
.layout-compact .city-compact-head {
    padding: calc(var(--header-height) + var(--space-6)) 0 var(--space-5);
    text-align: center;
}

.layout-compact .city-compact-title {
    font-size: clamp(1.5rem, 4vw, 2.25rem);
    font-weight: var(--fw-bold);
    line-height: var(--lh-heading);
    margin-bottom: var(--space-4);
    color: var(--gray-900);
}

.layout-compact .section {
    padding-top: var(--space-5);
    padding-bottom: var(--space-5);
}

/* feature / compact 两栏在移动端退化为单列 */
@media (max-width: 768px) {
    .layout-feature .hero-split .container {
        grid-template-columns: 1fr;
    }

    .layout-feature .hero-media {
        order: -1;
    }
}

