/**
 * 向导个人主页样式
 * 参考APP端 persionInfo 页面设计
 */

/* ========== 页面基础 ========== */
body {
    background-color: #fff;
}

/* ========== 背景图区域 ========== */
.profile-hero {
    position: relative;
    margin-top: 70px;
    padding: 24px 0;
    background-color: #fff;
}

.profile-hero .hero-wrapper {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 30px;
}

.profile-hero .hero-bg {
    position: relative;
    width: 100%;
    height: 320px;
    border-radius: 16px;
    overflow: hidden;
    background: url('/images/app-screen1400.jpg') no-repeat center center;
    background-size: cover;
}

.profile-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.4) 100%);
    border-radius: 16px;
}

/* ========== 主内容区域 ========== */
.profile-main {
    position: relative;
    padding-bottom: 100px;
    background-color: #fff;
}

.profile-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 24px 30px 0;
}

/* ========== 用户信息卡片 ========== */
.user-info-card {
    position: relative;
    background: #fff;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
}

.user-info-card .card-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('/iconimages/n_persionInfo_bg.png') no-repeat center center;
    background-size: cover;
    opacity: 0.6;
}

.user-info-card .card-content {
    position: relative;
    z-index: 1;
    display: flex;
    padding: 30px;
    gap: 30px;
}

/* 头像区域 */
.avatar-section {
    flex-shrink: 0;
}

.avatar-wrapper {
    position: relative;
    width: 160px;
    height: 160px;
}

.avatar-wrapper .avatar-img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid #4dd0e1;
}

.avatar-wrapper .online-badge {
    position: absolute;
    bottom: 8px;
    left: 50%;
    transform: translateX(-50%);
    background: #4caf50;
    color: #fff;
    font-size: 12px;
    padding: 2px 12px;
    border-radius: 10px;
}

/* 信息区域 */
.info-section {
    flex: 1;
    min-width: 0;
}

.info-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}

.info-header .nickname {
    font-size: 28px;
    font-weight: 700;
    color: #333;
    margin: 0;
}

.btn-follow {
    display: inline-flex;
    align-items: center;
    padding: 8px 24px;
    background: linear-gradient(135deg, #00b4d8 0%, #00d4aa 100%);
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    border-radius: 20px;
    text-decoration: none;
    transition: all 0.3s;
}

.btn-follow:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 180, 216, 0.4);
}

/* 性别年龄 + 认证 */
.info-badges {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.gender-age {
    display: inline-flex;
    align-items: center;
    position: relative;
}

.gender-age img {
    width: 70px;
    height: auto;
}

.gender-age em {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    font-style: normal;
    font-size: 16px;
    font-weight: 600;
    color: #e88a9e;
}

.gender-age.male em {
    color: #5a9fd4;
}

.cert-icon {
    height: 24px;
    width: auto;
}

/* 签名 */
.signature {
    font-size: 15px;
    color: #666;
    margin: 0 0 16px 0;
    line-height: 1.6;
}

/* 认证标签 */
.auth-tags {
    display: flex;
    gap: 12px;
    margin-bottom: 16px;
}

.auth-tag-img {
    height: 24px;
    width: auto;
}

/* 个性标签 */
.label-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 16px;
}

.label-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);
}

/* 统计数据 */
.stats-row {
    display: flex;
    gap: 24px;
}

.stat-item {
    font-size: 14px;
    color: #666;
}

.stat-item em {
    font-style: normal;
    font-weight: 600;
    color: #333;
    margin-left: 4px;
}

/* ========== 向导服务卡片 ========== */
.service-card {
    position: relative;
    background: #fff;
    border-radius: 16px;
    padding: 24px;
    margin-bottom: 20px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('/iconimages/n_persionInfo_bg.png') no-repeat center center;
    background-size: cover;
    opacity: 0.6;
    z-index: 0;
}

.service-card .card-title,
.service-card .service-list {
    position: relative;
    z-index: 1;
}

.service-card .card-title {
    font-size: 18px;
    font-weight: 700;
    color: #333;
    margin: 0 0 20px 0;
    padding-bottom: 12px;
    border-bottom: 1px solid #eee;
}

.service-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.service-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.service-icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    margin-top: 2px;
}

.service-label {
    width: 50px;
    flex-shrink: 0;
    font-size: 14px;
    color: #333;
    font-weight: 500;
}

.service-value {
    flex: 1;
    font-size: 14px;
    color: #666;
    line-height: 1.6;
}

.service-value.price {
    color: #ff6b35;
    font-weight: 600;
}

.more-link {
    font-size: 13px;
    color: #999;
    text-decoration: none;
    margin-left: auto;
}

.more-link:hover {
    color: #00b4d8;
}

/* ========== Tab切换区域 ========== */
.tabs-section {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}

.tabs-header {
    display: flex;
    border-bottom: 1px solid #eee;
}

.tab-item {
    flex: 1;
    padding: 16px;
    text-align: center;
    font-size: 16px;
    color: #666;
    cursor: pointer;
    position: relative;
    transition: color 0.3s;
}

.tab-item:hover {
    color: #00b4d8;
}

.tab-item.active {
    color: #00b4d8;
    font-weight: 600;
}

.tab-item.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 3px;
    background: linear-gradient(135deg, #00b4d8 0%, #00d4aa 100%);
    border-radius: 2px;
}

.tab-content {
    padding: 20px;
}

/* ========== 动态网格 ========== */
.moments-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.moments-grid .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;
}

.moments-grid .moment-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.moments-grid .card-link {
    display: block;
    text-decoration: none;
    padding: 14px;
}

/* 用户信息行 */
.moments-grid .card-user-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
}

.moments-grid .user-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.moments-grid .user-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
    flex: 1;
    min-width: 0;
}

.moments-grid .user-nickname {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.moments-grid .publish-time {
    font-size: 12px;
    color: #999;
}

/* 内容文本 */
.moments-grid .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;
}

/* 封面图片 */
.moments-grid .card-cover {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 12px;
}

.moments-grid .card-cover img {
    width: 100%;
    aspect-ratio: 4/3;
    object-fit: cover;
    display: block;
    transition: transform 0.3s;
}

.moments-grid .moment-card:hover .card-cover img {
    transform: scale(1.05);
}

/* 底部：位置 + 操作 */
.moments-grid .card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.moments-grid .card-location {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 13px;
    color: #999;
}

.moments-grid .icon-location {
    width: 14px;
    height: 14px;
}

/* 操作按钮区 */
.moments-grid .card-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

.moments-grid .action-item {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 13px;
    color: #999;
}

.moments-grid .icon-action {
    width: 16px;
    height: 16px;
}

/* ========== 路线网格 ========== */
.routes-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.route-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;
}

.route-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.route-card .card-link {
    display: block;
    text-decoration: none;
}

.route-card .card-cover {
    position: relative;
    padding-top: 66%;
    overflow: hidden;
}

.route-card .card-cover img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.route-card:hover .card-cover img {
    transform: scale(1.05);
}

/* 统计数据覆盖在图片底部 */
.route-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;
}

.route-card .stat-item {
    display: flex;
    align-items: center;
    gap: 4px;
}

.route-card .stat-icon {
    font-size: 12px;
}

.route-card .card-info {
    padding: 14px;
}

.route-card .card-name {
    font-size: 15px;
    font-weight: 600;
    color: #333;
    margin: 0 0 10px 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* 标签行 */
.route-card .card-tags {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 10px;
}

.route-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);
}

/* 价格样式 - 橙色 */
.route-card .card-price {
    color: #ff6b35;
    margin: 0;
}

.route-card .price-symbol {
    font-size: 14px;
    font-weight: 500;
}

.route-card .price-value {
    font-size: 22px;
    font-weight: 700;
}

.route-card .price-unit {
    font-size: 12px;
    color: #999;
    margin-left: 2px;
}


/* ========== 底部操作栏 ========== */
.fixed-bottom-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #fff;
    box-shadow: 0 -2px 12px rgba(0, 0, 0, 0.1);
    z-index: 100;
}

.fixed-bottom-bar .bar-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 12px 30px;
    display: flex;
    gap: 16px;
}

.btn-action {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 24px;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s;
}

.btn-action .btn-icon {
    width: 24px;
    height: 24px;
}

.btn-book {
    background: #fff;
    color: #00b4d8;
    border: 2px solid #00b4d8;
}

.btn-book:hover {
    background: rgba(0, 180, 216, 0.1);
}

.btn-chat {
    background: linear-gradient(135deg, #00b4d8 0%, #00d4aa 100%);
    color: #fff;
    border: none;
}

.btn-chat:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 180, 216, 0.4);
}

/* ========== Footer ========== */
.s-footer-new {
    background: #1a1a1a;
}

.s-footer-new .footer-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 30px;
}

.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;
}

/* ========== 弹窗样式 ========== */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.modal-content {
    background: #fff;
    border-radius: 16px;
    padding: 30px;
    max-width: 360px;
    width: 90%;
    text-align: center;
    position: relative;
}

.modal-close {
    position: absolute;
    top: 12px;
    right: 16px;
    font-size: 24px;
    color: #999;
    cursor: pointer;
}

.modal-logo {
    width: 60px;
    height: 60px;
    margin-bottom: 16px;
}

.modal-header h3 {
    font-size: 18px;
    color: #333;
    margin: 0 0 8px 0;
}

.modal-header p {
    font-size: 14px;
    color: #666;
    margin: 0 0 20px 0;
}

.modal-body .btn {
    display: block;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 15px;
    text-decoration: none;
    margin-bottom: 12px;
}

.modal-body .btn--primary {
    background: linear-gradient(135deg, #00b4d8 0%, #00d4aa 100%);
    color: #fff;
}

.modal-body .btn--secondary {
    background: #f5f5f5;
    color: #666;
}

/* ========== 弹窗渐变按钮样式 ========== */
.modal-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.modal-body .btn-gradient {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 28px;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    border-radius: 50px;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    white-space: nowrap;
}

.modal-body .btn-icon {
    flex-shrink: 0;
}

.modal-body .btn-login {
    background: linear-gradient(135deg, #e0f7fa 0%, #b2ebf2 100%);
    color: #00acc1;
    border: 1px solid rgba(0, 172, 193, 0.2);
}

.modal-body .btn-login:hover {
    background: linear-gradient(135deg, #b2ebf2 0%, #80deea 100%);
    color: #00838f;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 172, 193, 0.25);
}

.modal-body .btn-download {
    background: linear-gradient(135deg, #00b4d8 0%, #00d4aa 100%);
    color: #ffffff;
    box-shadow: 0 4px 15px rgba(0, 180, 216, 0.3);
}

.modal-body .btn-download:hover {
    background: linear-gradient(135deg, #0096c7 0%, #00c49a 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 180, 216, 0.4);
}

/* ========== 响应式 ========== */
@media (max-width: 768px) {
    .profile-hero {
        margin-top: 60px;
        padding: 15px 0;
    }
    
    .profile-hero .hero-wrapper {
        padding: 0 15px;
    }
    
    .profile-hero .hero-bg {
        height: 200px;
        border-radius: 12px;
    }
    
    .profile-hero .hero-overlay {
        border-radius: 12px;
    }
    
    .profile-container {
        padding: 15px 15px 0;
    }
    
    .user-info-card .card-content {
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 20px;
        gap: 20px;
    }
    
    .avatar-wrapper {
        width: 120px;
        height: 120px;
    }
    
    .info-header {
        flex-direction: column;
        gap: 12px;
    }
    
    .info-header .nickname {
        font-size: 22px;
    }
    
    .info-badges {
        justify-content: center;
    }
    
    .auth-tags {
        justify-content: center;
    }
    
    .label-tags {
        justify-content: center;
    }
    
    .stats-row {
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .service-card {
        padding: 16px;
    }
    
    .moments-grid,
    .routes-grid {
        grid-template-columns: 1fr;
    }
    
    .fixed-bottom-bar .bar-container {
        padding: 10px 15px;
    }
    
    .btn-action {
        padding: 12px 16px;
        font-size: 14px;
    }
    
    .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;
    }
}
