/* ============================================
   同城约页面样式
   ============================================ */

:root {
    --bg-page: #0d0d0d;
    --bg-card: #1a1a1a;
    --bg-card-hover: #222222;
    --text-primary: #e6e0d5;
    --text-secondary: rgba(201,169,110,0.7);
    --text-muted: rgba(255,255,255,0.35);
    --accent: #C9A96E;
    --accent2: #E8D5A8;
    --gradient-accent: linear-gradient(135deg, #C9A96E, #A08040);
    --border: rgba(201,169,110,0.12);
    --radius: 14px;
    --radius-sm: 10px;
    --nav-height: 100px;
    --header-height: 50px;
    --safe-bottom: env(safe-area-inset-bottom, 20px);
}

*, *::before, *::after { margin:0; padding:0; box-sizing:border-box; }

html, body {
    width: 100%;
    height: 100%;
    overflow: hidden;
    background: var(--bg-page);
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
    color: var(--text-primary);
    -webkit-font-smoothing: antialiased;
    -webkit-tap-highlight-color: transparent;
    display: flex;
    flex-direction: column;
}

a { text-decoration: none; color: inherit; }

/* ====== 顶部 Header ====== */
.page-header {
    flex-shrink: 0;
    height: var(--header-height);
    background: rgba(13,13,13,0.95);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 12px;
    z-index: 100;
    border-bottom: 1px solid var(--border);
}

.main-content {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
    min-height: 0;
}

.main-content::-webkit-scrollbar { width: 0; display: none; }

.back-btn {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    color: var(--text-primary);
    cursor: pointer;
    border-radius: 50%;
    transition: background 0.2s;
}

.back-btn:active { background: rgba(255,255,255,0.08); }

.page-title {
    font-size: 17px;
    font-weight: 600;
    text-align: center;
}

.header-right-space { width: 36px; }

/* ====== 主体内容 ====== */
.main-content {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: calc(var(--nav-height) + var(--safe-bottom));
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
    padding-top: env(safe-area-inset-top, 0px);
}

.main-content::-webkit-scrollbar { width: 0; display: none; }

/* ====== 顶部横幅 ====== */
.top-banner {
    padding: 12px 16px 0;
}

.banner-img-wrap {
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    aspect-ratio: 750 / 300;
    background: var(--bg-card);
}

.banner-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.live-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 4px 10px;
    background: rgba(244,67,54,0.9);
    border-radius: 12px;
    font-size: 11px;
    font-weight: 500;
    color: #fff;
}

.live-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #fff;
    animation: livePulse 1.2s ease-in-out infinite;
}

@keyframes livePulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}

/* ====== 资源标题 ====== */
.resource-header {
    padding: 16px 16px 8px;
}

.resource-title {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 16px;
    font-weight: 600;
    color: var(--accent);
}

/* ====== 人员卡片 ====== */
.profile-list {
    padding: 0 16px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.profile-card {
    display: flex;
    gap: 14px;
    padding: 14px;
    background: var(--bg-card);
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    transition: transform 0.2s;
}

.profile-card:active {
    transform: scale(0.98);
}

/* 头像 */
.profile-avatar {
    width: 90px;
    height: 110px;
    border-radius: 10px;
    overflow: hidden;
    flex-shrink: 0;
    background: linear-gradient(135deg, #667eea, #764ba2);
}

.profile-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.avatar-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    color: rgba(255,255,255,0.4);
}

/* 右侧信息 */
.profile-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-width: 0;
}

.profile-name-row {
    display: flex;
    align-items: center;
    gap: 6px;
}

.verified-badge {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    padding: 2px 8px 2px 5px;
    border-radius: 3px;
    background: linear-gradient(135deg, #4CAF50, #2E7D32);
    color: #fff;
    font-size: 11px;
    font-weight: 600;
    flex-shrink: 0;
    letter-spacing: 0.5px;
}

.verified-badge .v-icon {
    width: 14px;
    height: 14px;
    vertical-align: middle;
    filter: brightness(10);
}

.profile-name {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
}

/* 标签 */
.profile-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 8px;
}

.tag {
    padding: 3px 10px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
    border: 1px solid rgba(201,169,110,0.25);
    color: var(--accent2);
    background: rgba(201,169,110,0.08);
    white-space: nowrap;
}

/* 个人数据行 */
.profile-stats {
    font-size: 13px;
    color: var(--text-secondary);
    margin-top: 6px;
    line-height: 1.5;
}

/* 约她按钮 */
.profile-action {
    margin-top: 8px;
    display: flex;
    justify-content: flex-end;
}

.btn-book {
    padding: 6px 20px;
    border-radius: 18px;
    border: none;
    background: linear-gradient(135deg, #C9A96E, #A08040);
    color: #0d0d0d;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s;
    font-family: inherit;
    box-shadow: 0 2px 10px rgba(201,169,110,0.25);
}

.btn-book:active {
    background: linear-gradient(135deg, #E8D5A8, #C9A96E);
    transform: scale(0.96);
}

/* ====== 加载更多 ====== */
.load-more {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 20px;
    color: var(--text-muted);
    font-size: 13px;
}

.loading-spinner {
    width: 18px;
    height: 18px;
    border: 2px solid var(--border);
    border-top-color: var(--accent);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.bottom-spacer { height: 80px; }

/* 底部导航样式见 nav.css */

/* ====== 响应式 ====== */
@media (min-width: 480px) {
    .main-content,
    .page-header {
        max-width: 480px;
        left: calc(50% - 240px);
        transform: none;
    }
}

