/* 由模板内联样式迁移而来 */
.city-page {
    padding: 96px 0 120px;
    background: var(--bg);
    position: relative;
    overflow: hidden;
}

/* Background Decorative elements */
.city-page::before {
    content: '';
    position: absolute;
    width: 600px;
    height: 600px;
    background: transparent;
    top: -100px;
    right: -100px;
    z-index: 1;
    pointer-events: none;
}

.city-hero {
    max-width: 800px;
    margin: 0 auto 56px;
    text-align: center;
    position: relative;
    z-index: 2;
}

.city-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px;
    background: var(--pink-soft);
    border: 1px solid rgba(232, 16, 122, 0.15);
    color: #b3136b;
    font-size: var(--text-xs);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    border-radius: var(--radius-full);
    margin-bottom: 24px;
    box-shadow: 0 4px 12px rgba(232, 16, 122, 0.04);
}

.city-badge .pulse-dot {
    width: 6px;
    height: 6px;
    background-color: var(--pink);
    border-radius: 50%;
    position: relative;
}

.city-badge .pulse-dot::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0; left: 0;
    background-color: var(--pink);
    border-radius: 50%;
    animation: badgePulse 2s infinite ease-out;
}

@keyframes badgePulse {
    0% { transform: scale(1); opacity: 0.8; }
    100% { transform: scale(3.5); opacity: 0; }
}

.city-hero h1 {
    margin: 0 0 18px;
    font-size: clamp(2.25rem, 5vw, 3.25rem);
    font-weight: 800;
    line-height: 1.15;
    color: var(--navy-deep);
    letter-spacing: -0.02em;
}

.city-hero h1 span {
    background: #e8107a;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.city-hero p {
    margin: 0;
    font-size: var(--text-lg);
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Stunning Interactive Search Box */
.search-container {
    max-width: 580px;
    margin: 36px auto 0;
    position: relative;
    z-index: 10;
}

.search-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    background: var(--surface-strong);
    border: 2px solid rgba(19, 60, 117, 0.08);
    box-shadow: var(--shadow-lg);
    border-radius: var(--radius-md);
    padding: 4px 8px 4px 20px;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.search-wrapper:focus-within {
    border-color: var(--pink);
    box-shadow: 0 12px 30px rgba(232, 16, 122, 0.12);
    transform: translateY(-2px);
}

.search-icon {
    width: 20px;
    height: 20px;
    color: var(--text-disabled);
    margin-right: 14px;
    flex-shrink: 0;
    transition: color 0.3s ease;
}

.search-wrapper:focus-within .search-icon {
    color: var(--pink);
}

.search-input {
    border: none;
    outline: none;
    width: 100%;
    height: 48px;
    font-size: var(--text-base);
    color: var(--text-primary);
    background: transparent;
    font-weight: 500;
}

.search-input::placeholder {
    color: var(--text-disabled);
    font-weight: 400;
}

.search-clear {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(12, 39, 77, 0.04);
    border: none;
    outline: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    transition: all 0.2s ease;
    opacity: 0;
    visibility: hidden;
}

.search-clear.visible {
    opacity: 1;
    visibility: visible;
}

.search-clear:hover {
    background: var(--pink-soft);
    color: var(--pink);
}

/* Main Container Grid & Cards */
.city-container {
    max-width: var(--container);
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 32px;
    position: relative;
    z-index: 2;
}

.city-card-section {
    border-radius: var(--radius-lg);
    background: var(--surface);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--line);
    box-shadow: var(--shadow-md);
    padding: 36px;
    transition: all 0.3s ease;
}

.city-card-section:hover {
    box-shadow: var(--shadow-lg);
    border-color: rgba(19, 60, 117, 0.12);
}

/* Specific styling for Hot Cities block */
.hot-section {
    background: transparent;
    border: 1px solid rgba(232, 16, 122, 0.1);
    box-shadow: 0 12px 36px rgba(232, 16, 122, 0.05);
}

.hot-section .city-block-header h2 {
    color: var(--pink);
}

.hot-section .city-block-header svg {
    color: var(--pink);
}

/* Elegant Block Header */
.city-block-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 24px;
    border-bottom: 1px solid var(--line);
    padding-bottom: 16px;
}

.city-block-header svg {
    width: 22px;
    height: 22px;
    color: var(--navy);
    flex-shrink: 0;
}

.city-block-header h2 {
    margin: 0;
    font-size: var(--text-xl);
    font-weight: 700;
    color: var(--navy-2);
    letter-spacing: -0.01em;
}

/* Beautiful Interactive Grid */
.city-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(136px, 1fr));
    gap: 14px;
}

/* Gorgeous City Links with Micro-interactions */

/* 热门分站数量少时用 flex 布局，避免 auto-fill 网格产生大量空白列 */
.hot-section .city-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

.hot-section .city-link {
    min-width: 160px;
    padding: 0 28px;
    font-size: var(--text-base);
}

.city-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 0 16px;
    border-radius: var(--radius-sm);
    border: 1px solid rgba(19, 60, 117, 0.08);
    background: var(--surface-strong);
    color: var(--text-primary);
    font-size: var(--text-sm);
    font-weight: 600;
    text-align: center;
    transition: all 0.25s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    box-shadow: 0 2px 4px rgba(12, 39, 77, 0.02);
    cursor: pointer;
    text-decoration: none;
}

.city-link:hover {
    transform: translateY(-3px);
    border-color: var(--pink);
    color: var(--pink);
    box-shadow: 0 8px 18px rgba(232, 16, 122, 0.08);
    background: #fff;
}

.city-link.active {
    background: #e8107a;
    border-color: transparent;
    color: #fff;
    box-shadow: 0 8px 20px rgba(232, 16, 122, 0.2);
}

.city-link.active:hover {
    color: #fff;
    box-shadow: 0 10px 24px rgba(232, 16, 122, 0.3);
}

/* No Results State */
.no-results-card {
    text-align: center;
    padding: 64px 32px;
    background: var(--surface-strong);
    border-radius: var(--radius-lg);
    border: 1px dashed var(--line-strong);
    display: none;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

.no-results-icon {
    width: 64px;
    height: 64px;
    color: var(--text-disabled);
    background: var(--bg);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 8px;
}

.no-results-card h3 {
    margin: 0;
    font-size: var(--text-lg);
    color: var(--navy-deep);
    font-weight: 700;
}

.no-results-card p {
    margin: 0;
    font-size: var(--text-sm);
    color: var(--text-secondary);
    max-width: 420px;
    line-height: 1.6;
}

/* Bottom Floating Actions */
.city-actions {
    margin-top: 24px;
    display: flex;
    justify-content: center;
    gap: 16px;
}

.city-actions .cta {
    min-height: 48px;
    padding: 0 32px;
    border-radius: var(--radius-full);
    font-size: var(--text-sm);
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.3s ease;
    text-decoration: none;
}

.city-actions .cta.primary {
    background: var(--navy);
    color: #fff;
    box-shadow: var(--shadow-sm);
}

.city-actions .cta.primary:hover {
    background: var(--navy-2);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.city-actions .cta.ghost {
    background: transparent;
    color: var(--text-primary);
    border: 1.5px solid var(--line-strong);
}

.city-actions .cta.ghost:hover {
    border-color: var(--text-primary);
    background: rgba(12, 39, 77, 0.02);
    transform: translateY(-2px);
}

/* Animations */
.animate-fade-in {
    animation: fadeInUp 0.6s cubic-bezier(0.16, 1, 0.3, 1) both;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(24px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Overrides */
@media (max-width: 992px) {
    .city-card-section {
        padding: 28px;
    }
}

@media (max-width: 768px) {
    .city-page {
        padding: 64px 0 80px;
    }
    .city-hero {
        margin-bottom: 40px;
    }
    .city-card-section {
        padding: 22px;
        border-radius: var(--radius-md);
    }
    .city-grid {
        grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
        gap: 10px;
    }
    .city-link {
        min-height: 40px;
        padding: 0 10px;
        font-size: 13px;
    }
    .city-actions {
        flex-direction: column;
        width: 100%;
    }
    .city-actions .cta {
        width: 100%;
    }
}
