/**
 * 首页样式
 * 网约向导静态页面生成系统
 */

/* ========== Hero Section ========== */
.hero-section {
    position: relative;
    width: 100%;
    color: #fff;
    text-align: center;
    overflow: hidden;
    background-size: 100% auto;
    background-position: top center;
    background-repeat: no-repeat;
    margin-top: 70px; /* 导航栏高度 */
}

/* 图片高度自适应：使用padding-top按图片比例撑开高度 */
/* 1920x800 图片比例：800/1920 = 41.667% */
.hero-section::before {
    content: '';
    display: block;
    padding-top: 41.667%;
}

.hero-content {
    position: absolute;
    bottom: 25%;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    max-width: 800px;
    width: 90%;
    padding: 20px;
}

.hero-title {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 16px;
    font-family: 'Chivo', 'PingFang SC', sans-serif;
}

.hero-subtitle {
    font-size: 28px;
    font-weight: 600;
    margin-bottom: 12px;
    opacity: 1;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.hero-desc {
    font-size: 18px;
    opacity: 0.95;
    margin-bottom: 40px;
    text-shadow: 0 1px 5px rgba(0, 0, 0, 0.2);
}

.hero-actions {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

/* Hero区域按钮 - 与头部按钮样式一致 */
.hero-actions .btn-gradient {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 36px;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    border-radius: 50px;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    white-space: nowrap;
}

.hero-actions .btn-icon {
    flex-shrink: 0;
}

/* 找向导按钮 - 浅蓝色背景 */
.hero-actions .btn-login {
    background: linear-gradient(135deg, #e0f7fa 0%, #b2ebf2 100%);
    color: #00acc1;
    border: 1px solid rgba(0, 172, 193, 0.2);
}

.hero-actions .btn-login:hover {
    background: linear-gradient(135deg, #b2ebf2 0%, #80deea 100%);
    color: #00838f;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 172, 193, 0.35);
}

/* 做向导按钮 - 蓝绿渐变 */
.hero-actions .btn-download {
    background: linear-gradient(135deg, #00b4d8 0%, #00d4aa 100%);
    color: #ffffff;
    box-shadow: 0 4px 15px rgba(0, 180, 216, 0.4);
}

.hero-actions .btn-download:hover {
    background: linear-gradient(135deg, #0096c7 0%, #00c49a 100%);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 180, 216, 0.5);
}

/* ========== Section Common ========== */
.section {
    padding: 24px 0;
}

.section-guides {
    padding-top: 6px;
}

.section:nth-child(even) {
    background-color: #f8f9fa;
}

/* 新版区块容器 - 与导航栏宽度一致 */
.section-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 30px;
}

/* 新版区块头部 - 左右布局 */
.section-header-new {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 24px;
}

.section-header-left {
    display: flex;
    align-items: baseline;
    gap: 16px;
}

.section-header-new .section-title {
    font-size: 24px;
    font-weight: 700;
    color: #333;
    margin: 0;
    font-family: 'PingFang SC', 'Microsoft YaHei', sans-serif;
}

.section-header-new .section-subtitle {
    font-size: 14px;
    color: #999;
    margin: 0;
}

.section-more-link {
    font-size: 14px;
    color: #999;
    text-decoration: none;
    transition: color 0.3s;
}

.section-more-link:hover {
    color: #00b4d8;
}

/* ========== 新版向导卡片 ========== */
.section-guides .guide-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.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);
}

.guide-card-new:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.guide-card-new .card-link {
    display: flex;
    padding: 16px;
    text-decoration: none;
    gap: 16px;
    align-items: stretch;
}

/* 左侧头像区域 */
.guide-card-new .card-left {
    position: relative;
    flex-shrink: 0;
    display: flex;
}

.guide-card-new .card-avatar-wrap {
    position: relative;
    width: 140px;
    border-radius: 12px;
    overflow: hidden;
    border: 3px solid #4dd0e1;
}

.guide-card-new .card-avatar-wrap > img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* 推荐标签 - 形象照内部左上角，图标+灰色半透明背景+文字 */
.guide-card-new .badge-recommend {
    position: absolute;
    top: 0;
    left: 0;
    display: flex;
    align-items: center;
    gap: 2px;
    background: rgba(0, 0, 0, 0.5);
    color: #fff;
    font-size: 12px;
    font-weight: 500;
    padding: 4px 8px 4px 4px;
    border-radius: 0 0 8px 0;
}

.guide-card-new .badge-recommend img {
    width: 18px;
    height: 18px;
}

/* 右侧信息区域 */
.guide-card-new .card-right {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 8px;
}

.guide-card-new .card-name {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin: 0;
}

/* 徽章行：性别年龄 + 认证图标 */
.guide-card-new .card-badges-row {
    display: flex;
    align-items: flex-end;
    gap: 10px;
}

/* 性别年龄标签 - 图标带方框，数字显示在方框内 */
.guide-card-new .card-age {
    position: relative;
    display: inline-flex;
    align-items: center;
    background: none;
    padding: 0;
}

.guide-card-new .card-age img {
    width: 70px;
    height: auto;
}

.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;
}

/* 男性年龄颜色 */
.guide-card-new .card-age.male em {
    color: #5a9fd4;
}

/* 认证图标 */
.guide-card-new .badge-icon {
    height: 22px;
    width: auto;
}

.guide-card-new .card-desc {
    font-size: 14px;
    color: #666;
    margin: 0;
    line-height: 1.6;
    min-height: 44px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.guide-card-new .card-tags {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.guide-card-new .card-tags .tag {
    padding: 4px 14px;
    background: rgba(0, 180, 216, 0.15);
    color: #00b4d8;
    border-radius: 4px;
    font-size: 13px;
    border: 1px solid rgba(0, 180, 216, 0.3);
}

.guide-card-new .card-location {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 14px;
    color: #999;
    margin: 0;
}

.guide-card-new .icon-location {
    width: 16px;
    height: 16px;
}


/* ========== City Grid ========== */
.section-cities .city-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 16px;
}

.section-cities .city-card {
    border-radius: 12px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    transition: transform 0.3s, box-shadow 0.3s;
}

.section-cities .city-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.section-cities .card-link {
    display: block;
    text-decoration: none;
}

.section-cities .card-cover {
    position: relative;
    padding-top: 70%;
    overflow: hidden;
}

.section-cities .card-cover img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.section-cities .city-card:hover .card-cover img {
    transform: scale(1.05);
}

.section-cities .card-name {
    font-size: 15px;
    font-weight: 600;
    color: #333;
    margin: 0;
    padding: 12px;
    text-align: center;
}

/* ========== Place Grid ========== */
.section-places .place-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.section-places .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;
}

.section-places .place-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.section-places .card-link {
    display: block;
    text-decoration: none;
}

.section-places .card-cover {
    position: relative;
    padding-top: 60%;
    overflow: hidden;
}

.section-places .card-cover img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.section-places .place-card:hover .card-cover img {
    transform: scale(1.05);
}

.section-places .card-info {
    padding: 14px;
}

.section-places .card-title-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 8px;
}

.section-places .card-name {
    font-size: 15px;
    font-weight: 600;
    color: #333;
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    flex: 1;
}

.section-places .card-address {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 13px;
    color: #999;
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.section-places .card-address .icon-location {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
}

.section-places .card-rating {
    display: flex;
    align-items: center;
    gap: 2px;
    flex-shrink: 0;
}

.section-places .rating-stars {
    font-size: 14px;
    color: #ffb800;
}

.section-places .rating-value {
    font-size: 14px;
    font-weight: 600;
    color: #ffb800;
}

/* ========== Line Grid ========== */
.section-lines .line-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.section-lines .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;
}

.section-lines .line-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.section-lines .card-link {
    display: block;
    text-decoration: none;
}

.section-lines .card-cover {
    position: relative;
    padding-top: 66%;
    overflow: hidden;
}

.section-lines .card-cover img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.section-lines .line-card:hover .card-cover img {
    transform: scale(1.05);
}

/* 统计数据覆盖在图片底部 */
.section-lines .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;
}

.section-lines .stat-item {
    display: flex;
    align-items: center;
    gap: 4px;
}

.section-lines .stat-icon {
    font-size: 12px;
}

.section-lines .card-info {
    padding: 14px;
}

.section-lines .card-name {
    font-size: 15px;
    font-weight: 600;
    color: #333;
    margin: 0 0 10px 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* 标签行 */
.section-lines .card-tags {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 10px;
}

.section-lines .card-tags .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);
}

/* 价格样式 - 橙色 */
.section-lines .card-price {
    color: #ff6b35;
    margin: 0;
}

.section-lines .price-symbol {
    font-size: 14px;
    font-weight: 500;
}

.section-lines .price-value {
    font-size: 22px;
    font-weight: 700;
}

.section-lines .price-unit {
    font-size: 12px;
    color: #999;
    margin-left: 2px;
}

/* ========== Moment Grid ========== */
.section-moments .moment-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.section-moments .moment-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;
}

.section-moments .moment-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.section-moments .card-link {
    display: block;
    text-decoration: none;
    padding: 14px;
}

/* 用户信息行 */
.section-moments .card-user-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
}

.section-moments .user-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.section-moments .user-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
    flex: 1;
    min-width: 0;
}

.section-moments .user-nickname {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.section-moments .publish-time {
    font-size: 12px;
    color: #999;
}

/* 内容文本 */
.section-moments .card-text {
    font-size: 14px;
    color: #333;
    line-height: 1.6;
    margin: 0 0 12px 0;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* 封面图片 */
.section-moments .card-cover {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 12px;
}

.section-moments .card-cover img {
    width: 100%;
    aspect-ratio: 4/3;
    object-fit: cover;
    display: block;
    transition: transform 0.3s;
}

.section-moments .moment-card:hover .card-cover img {
    transform: scale(1.05);
}

/* 底部：位置 + 操作 */
.section-moments .card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.section-moments .card-location {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 13px;
    color: #999;
}

.section-moments .card-location .icon-location {
    width: 14px;
    height: 14px;
}

/* 操作按钮区 */
.section-moments .card-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

.section-moments .action-item {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 13px;
    color: #999;
}

.section-moments .icon-action {
    width: 16px;
    height: 16px;
}

/* ========== Responsive ========== */
@media (max-width: 1200px) {
    .section-container {
        padding: 0 20px;
    }
    
    .section-cities .city-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .section-lines .line-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 992px) {
    .hero-subtitle {
        font-size: 22px;
    }
    
    .hero-desc {
        font-size: 15px;
    }
    
    .section-header-left {
        flex-direction: column;
        gap: 4px;
        align-items: flex-start;
    }
    
    .section-guides .guide-grid {
        grid-template-columns: 1fr;
    }
    
    .guide-card-new .card-avatar-wrap {
        width: 130px;
    }
    
    .section-cities .city-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .section-places .place-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .section-lines .line-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .section-moments .moment-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .hero-section {
        margin-top: 60px;
    }
    
    .hero-content {
        bottom: 20%;
    }
    
    .hero-subtitle {
        font-size: 18px;
    }
    
    .hero-desc {
        font-size: 14px;
        margin-bottom: 20px;
    }
    
    .hero-actions {
        gap: 12px;
    }
    
    .hero-actions .btn-gradient {
        padding: 10px 20px;
        font-size: 14px;
    }
    
    .section {
        padding: 30px 0;
    }
    
    .section-container {
        padding: 0 15px;
    }
    
    .section-header-new {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    
    .guide-card-new .card-link {
        padding: 14px;
        gap: 12px;
    }
    
    .guide-card-new .card-avatar-wrap {
        width: 110px;
    }
    
    .guide-card-new .card-name {
        font-size: 16px;
    }
    
    .guide-card-new .card-badges-row {
        gap: 8px;
    }
    
    .guide-card-new .card-age img {
        width: 60px;
    }
    
    .guide-card-new .card-age em {
        font-size: 14px;
        right: 8px;
    }
    
    .guide-card-new .badge-icon {
        height: 20px;
    }
    
    .guide-card-new .card-desc {
        min-height: 40px;
    }
    
    .guide-card-new .badge-recommend {
        font-size: 11px;
        padding: 3px 8px;
    }
    
    .section-places .place-grid,
    .section-lines .line-grid,
    .section-moments .moment-grid {
        grid-template-columns: 1fr;
    }
    
    .section-cities .city-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ========== Footer New ========== */
.s-footer-new {
    background: #1a1a1a;
}

.s-footer-new .footer-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 30px;
}

/* 下载APP区域 */
.s-footer-new .footer-download {
    padding: 24px 0;
}

.s-footer-new .download-wrapper {
    position: relative;
    background: url('/images/app-screen1400.jpg') no-repeat center center;
    background-size: cover;
    border-radius: 16px;
    overflow: hidden;
    padding: 80px 40px;
}

.s-footer-new .download-wrapper::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1;
}

.s-footer-new .download-content {
    position: relative;
    z-index: 2;
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
    color: #fff;
}

.s-footer-new .download-title {
    font-size: 32px;
    font-weight: 700;
    margin: 0 0 16px 0;
    color: #fff;
}

.s-footer-new .download-desc {
    font-size: 18px;
    opacity: 0.9;
    margin: 0 0 30px 0;
}

.s-footer-new .download-actions {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 30px;
}

.s-footer-new .download-btn {
    display: inline-block;
    transition: transform 0.3s, opacity 0.3s;
}

.s-footer-new .download-btn:hover {
    transform: translateY(-3px);
    opacity: 0.9;
}

.s-footer-new .download-btn img {
    height: 50px;
    width: auto;
}

.s-footer-new .download-features {
    display: flex;
    justify-content: center;
    gap: 24px;
    flex-wrap: wrap;
}

.s-footer-new .feature-item {
    font-size: 14px;
    opacity: 0.9;
}

/* 底部链接 */
.s-footer-new .footer-bottom {
    padding: 24px 0 100px 0;
    text-align: center;
}

.s-footer-new .footer-links {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.s-footer-new .footer-links a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s;
}

.s-footer-new .footer-links a:hover {
    color: #fff;
}

.s-footer-new .footer-links .sep {
    color: rgba(255, 255, 255, 0.3);
    font-size: 12px;
}

@media (max-width: 768px) {
    .s-footer-new .footer-container {
        padding: 0 15px;
    }
    
    .s-footer-new .download-wrapper {
        padding: 50px 20px;
        border-radius: 12px;
    }
    
    .s-footer-new .download-title {
        font-size: 24px;
    }
    
    .s-footer-new .download-desc {
        font-size: 15px;
    }
    
    .s-footer-new .download-actions {
        flex-direction: column;
        align-items: center;
        gap: 12px;
    }
    
    .s-footer-new .download-btn img {
        height: 44px;
    }
    
    .s-footer-new .download-features {
        flex-direction: column;
        gap: 12px;
    }
    
    .s-footer-new .footer-bottom {
        padding: 20px 0 100px 0;
    }
    
    .s-footer-new .footer-links {
        gap: 6px;
    }
    
    .s-footer-new .footer-links a {
        font-size: 12px;
    }
}
