/**
 * 城市详情页样式
 * 网约向导静态页面生成系统
 */

/* ========== 城市页面容器 ========== */
.city-page {
    background-color: #f5f5f5;
}

/* ========== 城市头部 Hero ========== */
.city-hero {
    margin-top: 70px;
    padding: 24px 0;
    background-color: #fff;
}

.city-hero .hero-wrapper {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 30px;
}

.city-hero .hero-bg {
    position: relative;
    width: 100%;
    height: 320px;
    border-radius: 16px;
    overflow: hidden;
    background: url('/images/default-city.png') no-repeat center center;
    background-size: cover;
}

.city-hero .hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0,0,0,0.1) 0%, rgba(0,0,0,0.5) 100%);
    border-radius: 16px;
}

.city-hero .hero-content {
    position: absolute;
    bottom: 40px;
    left: 40px;
    color: #fff;
    z-index: 1;
}

.city-hero .city-name {
    font-size: 42px;
    font-weight: 700;
    margin: 0 0 8px 0;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.city-hero .city-province {
    font-size: 18px;
    opacity: 0.9;
    margin: 0 0 16px 0;
}

.city-hero .city-stats {
    display: flex;
    gap: 24px;
}

.city-hero .stat-item {
    font-size: 14px;
    opacity: 0.9;
}

.city-hero .stat-item em {
    font-style: normal;
    font-weight: 700;
    font-size: 20px;
    margin-right: 4px;
}

/* ========== 城市简介 ========== */
.city-intro {
    background: #fff;
    padding: 0 0 24px 0;
}

.city-intro .intro-text {
    font-size: 15px;
    color: #666;
    line-height: 1.8;
    margin: 0;
}

/* ========== 内容区块 ========== */
.city-page .section {
    padding: 24px 0;
}

.city-page .section:nth-child(even) {
    background-color: #f8f9fa;
}

/* ========== 向导网格 ========== */
.city-page .guide-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.city-page .guide-card-new {
    background: url('/iconimages/n_persionInfo_bg.png') no-repeat center center;
    background-size: cover;
    border-radius: 16px;
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}

.city-page .guide-card-new:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.city-page .guide-card-new .card-link {
    display: flex;
    padding: 16px;
    text-decoration: none;
    gap: 16px;
    align-items: stretch;
}

.city-page .guide-card-new .card-left {
    position: relative;
    flex-shrink: 0;
}

.city-page .guide-card-new .card-avatar-wrap {
    position: relative;
    width: 120px;
    height: 160px;
    border-radius: 12px;
    overflow: hidden;
    border: 3px solid #4dd0e1;
}

.city-page .guide-card-new .card-avatar-wrap > img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.city-page .guide-card-new .badge-auth {
    position: absolute;
    top: 0;
    left: 0;
    background: rgba(0, 0, 0, 0.5);
    color: #fff;
    font-size: 12px;
    padding: 4px 8px;
    border-radius: 0 0 8px 0;
}

.city-page .guide-card-new .card-right {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.city-page .guide-card-new .card-name {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin: 0;
}

.city-page .guide-card-new .card-badges-row {
    display: flex;
    align-items: center;
    gap: 10px;
}

.city-page .guide-card-new .card-age {
    position: relative;
    display: inline-flex;
    align-items: center;
}

.city-page .guide-card-new .card-age img {
    width: 70px;
    height: auto;
}

.city-page .guide-card-new .card-age em {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    font-style: normal;
    font-size: 16px;
    font-weight: 600;
    color: #e88a9e;
}

.city-page .guide-card-new .card-age.male em {
    color: #5a9fd4;
}

.city-page .guide-card-new .badge-icon {
    height: 22px;
    width: auto;
}

.city-page .guide-card-new .card-desc {
    font-size: 14px;
    color: #666;
    margin: 0;
    line-height: 1.5;
}

.city-page .guide-card-new .card-price {
    color: #ff6b35;
    margin: 0;
    margin-top: auto;
}

.city-page .guide-card-new .price-symbol {
    font-size: 14px;
}

.city-page .guide-card-new .price-value {
    font-size: 22px;
    font-weight: 700;
}

.city-page .guide-card-new .price-unit {
    font-size: 12px;
    color: #999;
}

/* ========== 玩处网格 ========== */
.city-page .place-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.city-page .place-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    transition: transform 0.3s, box-shadow 0.3s;
}

.city-page .place-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.city-page .place-card .card-link {
    display: block;
    text-decoration: none;
}

.city-page .place-card .card-cover {
    position: relative;
    padding-top: 60%;
    overflow: hidden;
}

.city-page .place-card .card-cover img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.city-page .place-card:hover .card-cover img {
    transform: scale(1.05);
}

.city-page .place-card .card-info {
    padding: 14px;
}

.city-page .place-card .card-title-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 8px;
}

.city-page .place-card .card-name {
    font-size: 15px;
    font-weight: 600;
    color: #333;
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    flex: 1;
}

.city-page .place-card .card-rating {
    display: flex;
    align-items: center;
    gap: 2px;
    flex-shrink: 0;
}

.city-page .place-card .rating-stars {
    font-size: 14px;
    color: #ffb800;
}

.city-page .place-card .rating-value {
    font-size: 14px;
    font-weight: 600;
    color: #ffb800;
}

.city-page .place-card .card-address {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 13px;
    color: #999;
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.city-page .place-card .icon-location {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
}

/* ========== 路线网格 ========== */
.city-page .line-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.city-page .line-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    transition: transform 0.3s, box-shadow 0.3s;
}

.city-page .line-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.city-page .line-card .card-link {
    display: block;
    text-decoration: none;
}

.city-page .line-card .card-cover {
    position: relative;
    padding-top: 66%;
    overflow: hidden;
}

.city-page .line-card .card-cover img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.city-page .line-card:hover .card-cover img {
    transform: scale(1.05);
}

.city-page .line-card .card-stats {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 12px;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.6));
    color: #fff;
    font-size: 12px;
}

.city-page .line-card .stat-item {
    display: flex;
    align-items: center;
    gap: 4px;
}

.city-page .line-card .card-info {
    padding: 14px;
}

.city-page .line-card .card-name {
    font-size: 15px;
    font-weight: 600;
    color: #333;
    margin: 0 0 10px 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.city-page .line-card .card-tags {
    display: flex;
    gap: 8px;
    margin-bottom: 10px;
}

.city-page .line-card .tag {
    padding: 3px 10px;
    background: rgba(0, 180, 216, 0.1);
    color: #00b4d8;
    border-radius: 4px;
    font-size: 12px;
    border: 1px solid rgba(0, 180, 216, 0.3);
}

.city-page .line-card .card-price {
    color: #ff6b35;
    margin: 0;
}

.city-page .line-card .price-symbol {
    font-size: 14px;
}

.city-page .line-card .price-value {
    font-size: 22px;
    font-weight: 700;
}

.city-page .line-card .price-unit {
    font-size: 12px;
    color: #999;
}

/* ========== CTA 区域 ========== */
.section-cta {
    padding: 40px 0;
}

.cta-card {
    background: linear-gradient(135deg, #00b4d8 0%, #00d4aa 100%);
    border-radius: 16px;
    padding: 50px 40px;
    text-align: center;
    color: #fff;
}

.cta-card h3 {
    font-size: 28px;
    font-weight: 700;
    margin: 0 0 12px 0;
}

.cta-card p {
    font-size: 16px;
    opacity: 0.9;
    margin: 0 0 24px 0;
}

.cta-card .btn-gradient {
    background: #fff;
    color: #00b4d8;
    padding: 14px 40px;
    font-size: 16px;
}

.cta-card .btn-gradient:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

/* ========== 响应式 ========== */
@media (max-width: 1200px) {
    .city-page .line-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 992px) {
    .city-page .guide-grid {
        grid-template-columns: 1fr;
    }
    
    .city-page .place-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .city-page .line-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .city-hero {
        margin-top: 60px;
        padding: 15px 0;
    }
    
    .city-hero .hero-wrapper {
        padding: 0 15px;
    }
    
    .city-hero .hero-bg {
        height: 220px;
        border-radius: 12px;
    }
    
    .city-hero .hero-overlay {
        border-radius: 12px;
    }
    
    .city-hero .hero-content {
        bottom: 24px;
        left: 24px;
    }
    
    .city-hero .city-name {
        font-size: 28px;
    }
    
    .city-hero .city-province {
        font-size: 15px;
    }
    
    .city-hero .city-stats {
        gap: 16px;
    }
    
    .city-hero .stat-item em {
        font-size: 16px;
    }
    
    .city-intro {
        padding: 0 0 16px 0;
    }
    
    .city-page .section {
        padding: 20px 0;
    }
    
    .city-page .guide-card-new .card-link {
        padding: 12px;
        gap: 12px;
    }
    
    .city-page .guide-card-new .card-avatar-wrap {
        width: 100px;
        height: 130px;
    }
    
    .city-page .place-grid,
    .city-page .line-grid {
        grid-template-columns: 1fr;
    }
    
    .cta-card {
        padding: 40px 20px;
        border-radius: 12px;
    }
    
    .cta-card h3 {
        font-size: 22px;
    }
    
    .cta-card p {
        font-size: 14px;
    }
}
