/* 72小时假装情侣挑战系统 - 恋爱风UI */

/* ============ CSS变量 ============ */
:root {
    --pink: #ff6b95;
    --pink-dark: #e91e63;
    --pink-light: #ffebee;
    --blue: #64b5f6;
    --blue-light: #e3f2fd;
    --gold: #f9a825;
    --gold-light: #fff8e1;
    --bg: #fafafa;
    --white: #fff;
    --text: #333;
    --text-light: #999;
    --text-lighter: #bbb;
    --border: #f0f0f0;
    --shadow: 0 4px 20px rgba(255, 107, 149, 0.1);
    --shadow-hover: 0 8px 30px rgba(255, 107, 149, 0.18);
    --radius: 16px;
    --radius-sm: 10px;
    --font: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
}

/* ============ 基础重置 ============ */
* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: var(--font);
    background: linear-gradient(180deg, #fff5f7 0%, #fce4ec 50%, #fff 100%);
    min-height: 100vh;
    color: var(--text);
    -webkit-font-smoothing: antialiased;
    -webkit-tap-highlight-color: transparent;
    padding-bottom: 70px;
}

/* ============ 页面容器 ============ */
.page { display: none; animation: fadeIn 0.3s ease; }
.page.active { display: block; }

.container {
    max-width: 480px;
    margin: 0 auto;
    padding: 20px 16px;
}

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

/* ============ 加载页 ============ */
.loading-screen {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 80vh;
    gap: 20px;
}

.heart-loader {
    width: 50px; height: 50px;
    background: var(--pink);
    position: relative;
    transform: rotate(45deg);
    animation: heartbeat 1.2s ease-in-out infinite;
}

.heart-loader:before, .heart-loader:after {
    content: '';
    width: 50px; height: 50px;
    background: var(--pink);
    border-radius: 50%;
    position: absolute;
}

.heart-loader:before { top: -25px; left: 0; }
.heart-loader:after { top: 0; left: -25px; }

@keyframes heartbeat {
    0% { transform: rotate(45deg) scale(0.8); }
    15% { transform: rotate(45deg) scale(1); }
    30% { transform: rotate(45deg) scale(0.9); }
    45% { transform: rotate(45deg) scale(1); }
    60% { transform: rotate(45deg) scale(0.9); }
    100% { transform: rotate(45deg) scale(1); }
}

.loading-screen p {
    color: var(--pink);
    font-size: 16px;
    font-weight: 500;
}

/* ============ 按钮 ============ */
.btn {
    display: inline-block;
    padding: 14px 28px;
    border: none;
    border-radius: 25px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s;
    text-align: center;
    font-family: var(--font);
    letter-spacing: 0.5px;
}

.btn:active { transform: scale(0.96); }

.btn-block { display: block; width: 100%; }

.btn-primary {
    background: linear-gradient(135deg, #ff6b95, #e91e63);
    color: #fff;
    box-shadow: 0 4px 15px rgba(233, 30, 99, 0.3);
}

.btn-primary:hover { box-shadow: 0 6px 20px rgba(233, 30, 99, 0.4); }

.btn-outline {
    background: transparent;
    color: var(--pink-dark);
    border: 2px solid var(--pink-dark);
}

.btn-outline:hover { background: rgba(233, 30, 99, 0.05); }

.btn-gold {
    background: linear-gradient(135deg, #ffd54f, #f9a825);
    color: #5d4037;
    box-shadow: 0 4px 15px rgba(249, 168, 37, 0.3);
}

.btn-wechat {
    background: linear-gradient(135deg, #2ecc71, #27ae60);
    color: #fff;
    font-size: 17px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.wx-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px; height: 28px;
    background: rgba(255,255,255,0.3);
    border-radius: 50%;
    font-size: 14px;
    font-weight: bold;
}

.btn-text {
    background: transparent;
    color: var(--text-light);
    font-weight: 400;
    font-size: 14px;
    padding: 8px;
}

.btn-text:hover { color: var(--text); }

.btn-cancel {
    background: #f5f5f5;
    color: #666;
    border: 1.5px solid #ddd;
    font-weight: 500;
    margin-top: 20px;
}

.btn-cancel:hover { background: #eee; border-color: #ccc; }

.btn-sm {
    padding: 8px 16px;
    font-size: 13px;
    border-radius: 20px;
}

/* ============ 首页 ============ */
.home-header {
    text-align: center;
    padding: 30px 0 20px;
}

.home-logo-area {
    margin-bottom: 10px;
}

.home-heart-big {
    width: 60px; height: 60px;
    margin: 0 auto;
    background: linear-gradient(135deg, #ff6b95, #e91e63);
    position: relative;
    transform: rotate(45deg);
    animation: homeHeartBeat 1.5s ease-in-out infinite;
}

.home-heart-big:before, .home-heart-big:after {
    content: '';
    width: 60px; height: 60px;
    background: linear-gradient(135deg, #ff6b95, #e91e63);
    border-radius: 50%;
    position: absolute;
}

.home-heart-big:before { top: -30px; left: 0; }
.home-heart-big:after { top: 0; left: -30px; }

@keyframes homeHeartBeat {
    0% { transform: rotate(45deg) scale(0.85); }
    15% { transform: rotate(45deg) scale(1.05); }
    30% { transform: rotate(45deg) scale(0.9); }
    45% { transform: rotate(45deg) scale(1); }
    60% { transform: rotate(45deg) scale(0.9); }
    100% { transform: rotate(45deg) scale(1); }
}

.btn-pulse {
    animation: btnPulse 2s ease-in-out infinite;
}

@keyframes btnPulse {
    0%, 100% { box-shadow: 0 4px 15px rgba(233, 30, 99, 0.3); }
    50% { box-shadow: 0 4px 30px rgba(233, 30, 99, 0.6), 0 0 0 8px rgba(233, 30, 99, 0.08); }
}

.app-title {
    font-size: 32px;
    font-weight: 800;
    background: linear-gradient(135deg, #ff6b95, #e91e63);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 8px;
}

.app-subtitle {
    color: var(--text-light);
    font-size: 15px;
    letter-spacing: 2px;
}

.rules-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 24px;
    margin: 20px 0;
    box-shadow: var(--shadow);
    border: 1px solid rgba(255, 107, 149, 0.08);
}

.rules-title {
    font-size: 18px;
    color: var(--pink-dark);
    margin-bottom: 16px;
    text-align: center;
    font-weight: 700;
}

.rules-content {
    font-size: 14px;
    line-height: 2;
    color: #555;
    white-space: pre-line;
}

.home-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 24px;
}

.home-footer {
    text-align: center;
    margin-top: 30px;
    color: var(--text-lighter);
    font-size: 12px;
}

/* ============ 登录页 ============ */
.login-card, .profile-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 32px 24px;
    margin-top: 40px;
    box-shadow: var(--shadow);
    text-align: center;
}

.login-card h2, .profile-card h2 {
    color: var(--pink-dark);
    font-size: 22px;
    margin-bottom: 8px;
}

.login-desc, .profile-desc {
    color: var(--text-light);
    font-size: 14px;
    margin-bottom: 24px;
}

.login-note {
    color: var(--text-lighter);
    font-size: 12px;
    margin-top: 12px;
}

.wx-login-area {
    margin: 20px 0;
}

/* ============ 资料页 ============ */
.profile-card { text-align: left; }
.profile-card h2 { text-align: center; }
.profile-card .profile-desc { text-align: center; }

.form-group { margin-bottom: 18px; }

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #555;
    font-size: 14px;
    font-weight: 600;
}

.form-group input[type="text"],
.form-group input[type="number"] {
    width: 100%;
    padding: 12px 16px;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 15px;
    outline: none;
    transition: border-color 0.2s;
    font-family: var(--font);
    background: #fafafa;
}

.form-group input:focus {
    border-color: var(--pink);
    background: #fff;
}

.gender-select {
    display: flex;
    gap: 12px;
}

.gender-btn {
    flex: 1;
    padding: 12px;
    border: 2px solid var(--border);
    border-radius: var(--radius-sm);
    background: #fafafa;
    font-size: 15px;
    cursor: pointer;
    transition: all 0.2s;
    text-align: center;
    font-family: var(--font);
}

.gender-btn.active {
    border-color: var(--pink);
    background: var(--pink-light);
    color: var(--pink-dark);
    font-weight: 600;
}

.hobby-select {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.hobby-tag {
    padding: 6px 14px;
    border: 1.5px solid var(--border);
    border-radius: 20px;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s;
    background: #fafafa;
    user-select: none;
}

.hobby-tag.active {
    background: var(--pink-light);
    border-color: var(--pink);
    color: var(--pink-dark);
    font-weight: 600;
}

.range-inputs {
    display: flex;
    align-items: center;
    gap: 8px;
}

.range-inputs input {
    flex: 1;
}

.range-inputs span { color: var(--text-light); }

/* ============ 匹配页 ============ */
.match-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 32px 24px;
    margin-top: 30px;
    box-shadow: var(--shadow);
    text-align: center;
}

.match-avatar-area {
    margin-bottom: 20px;
}

.match-avatar {
    width: 80px; height: 80px;
    margin: 0 auto;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--pink-light), #fce4ec);
    position: relative;
}

.match-avatar:after {
    content: '\2665';
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    font-size: 32px;
    color: var(--pink);
}

#matchStatusTitle {
    font-size: 20px;
    color: #333;
    margin-bottom: 8px;
}

#matchStatusDesc {
    color: var(--text-light);
    font-size: 14px;
    margin-bottom: 24px;
}

.match-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.match-divider {
    display: flex;
    align-items: center;
    color: var(--text-lighter);
    font-size: 13px;
}

.match-divider:before,
.match-divider:after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--border);
}

.match-divider span { padding: 0 12px; }

.match-filter-card {
    background: #fafafa;
    border-radius: var(--radius-sm);
    padding: 20px;
    text-align: left;
}

.match-filter-card h3 {
    font-size: 16px;
    color: var(--pink-dark);
    margin-bottom: 16px;
    text-align: center;
}

/* ============ 匹配中 ============ */
.matching-card {
    text-align: center;
    padding: 60px 0;
}

.matching-animation {
    position: relative;
    width: 120px; height: 120px;
    margin: 0 auto 24px;
}

.matching-heart {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    font-size: 40px;
    color: var(--pink);
    animation: matchingPulse 1s ease-in-out infinite;
    z-index: 2;
}

.matching-circle {
    position: absolute;
    top: 50%; left: 50%;
    border-radius: 50%;
    border: 2px solid var(--pink-light);
    animation: matchingExpand 2s ease-out infinite;
}

.matching-circle.c1 { width: 40px; height: 40px; margin: -20px 0 0 -20px; animation-delay: 0s; }
.matching-circle.c2 { width: 80px; height: 80px; margin: -40px 0 0 -40px; animation-delay: 0.4s; }
.matching-circle.c3 { width: 120px; height: 120px; margin: -60px 0 0 -60px; animation-delay: 0.8s; }

@keyframes matchingPulse {
    0%, 100% { transform: translate(-50%, -50%) scale(1); }
    50% { transform: translate(-50%, -50%) scale(1.2); }
}

@keyframes matchingExpand {
    0% { transform: scale(0); opacity: 1; }
    100% { transform: scale(2); opacity: 0; }
}

.matching-card h2 { color: var(--pink-dark); margin-bottom: 8px; }
.matching-card p { color: var(--text-light); }

/* ============ 匹配成功 ============ */
.success-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 40px 24px 24px;
    margin-top: 20px;
    box-shadow: var(--shadow);
    text-align: center;
}

.success-heart {
    font-size: 60px;
    color: var(--pink);
    margin-bottom: 16px;
    animation: heartbeat 1.5s ease-in-out infinite;
}

.success-card h2 {
    font-size: 24px;
    background: linear-gradient(135deg, #ff6b95, #e91e63);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 8px;
}

.success-card > p {
    color: var(--text-light);
    margin-bottom: 20px;
}

.couple-info-card {
    background: linear-gradient(135deg, var(--pink-light), #fff5f7);
    border-radius: var(--radius-sm);
    padding: 16px;
    margin: 16px 0;
}

.couple-pair {
    display: flex;
    align-items: center;
    gap: 12px;
}

.cp-avatar {
    width: 50px; height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, #ffcdd2, #f48fb1);
    overflow: hidden;
    flex-shrink: 0;
}

.cp-avatar img { width: 100%; height: 100%; object-fit: cover; }

.cp-info { text-align: left; }

.cp-info h3 { font-size: 16px; color: #333; }
.cp-info p { font-size: 13px; color: var(--text-light); }

.countdown-card {
    background: linear-gradient(135deg, #fff3e0, #fff8e1);
    border-radius: var(--radius-sm);
    padding: 16px;
    margin: 16px 0;
}

.countdown-card h3 { font-size: 14px; color: #e65100; margin-bottom: 8px; }

.countdown-timer {
    font-size: 28px;
    font-weight: 700;
    color: #e65100;
    font-variant-numeric: tabular-nums;
    letter-spacing: 2px;
}

.qrcode-card {
    background: #fafafa;
    border-radius: var(--radius-sm);
    padding: 16px;
    margin: 16px 0;
}

.qrcode-card h3 { font-size: 14px; color: #333; margin-bottom: 4px; }
.qrcode-card p { font-size: 12px; color: var(--text-light); margin-bottom: 12px; }

.qrcode-placeholder {
    width: 160px; height: 160px;
    margin: 0 auto;
    border: 2px dashed var(--border);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-lighter);
    font-size: 12px;
}

.qrcode-placeholder img { max-width: 100%; border-radius: 4px; }

/* ============ 情侣空间（新设计） ============ */
.couple-hero {
    background: linear-gradient(180deg, #fff5f7 0%, #fff 100%);
    border-radius: var(--radius);
    padding: 30px 20px 20px;
    text-align: center;
    margin-bottom: 16px;
    position: relative;
    overflow: hidden;
}

.couple-hero::before {
    content: '';
    position: absolute;
    top: -30px; left: 50%;
    transform: translateX(-50%);
    width: 200px; height: 200px;
    background: radial-gradient(circle, rgba(255,107,149,0.08) 0%, transparent 70%);
    border-radius: 50%;
}

.couple-avatars {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    margin-bottom: 16px;
    position: relative;
    z-index: 1;
}

.cp-avatar-ring {
    width: 72px; height: 72px;
    border-radius: 50%;
    border: 3px solid var(--pink);
    padding: 3px;
    background: #fff;
    box-shadow: 0 4px 15px rgba(233,30,99,0.15);
}

.cp-avatar-img {
    width: 100%; height: 100%;
    border-radius: 50%;
    background: linear-gradient(135deg, #ffcdd2, #f48fb1);
}

.cp-heart-connector {
    font-size: 24px;
    color: var(--pink);
    margin: 0 8px;
    animation: heartbeat 1.5s ease-in-out infinite;
    position: relative;
    z-index: 1;
}

.cp-names {
    font-size: 18px;
    color: #333;
    margin-bottom: 16px;
    position: relative;
    z-index: 1;
    font-weight: 600;
}

.cp-countdown-ring {
    position: relative;
    z-index: 1;
}

.countdown-circle {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    background: linear-gradient(135deg, #fff3e0, #ffe0b2);
    border-radius: 50%;
    width: 110px; height: 110px;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(255,152,0,0.15);
}

.countdown-big {
    font-size: 22px;
    font-weight: 700;
    color: #e65100;
    font-variant-numeric: tabular-nums;
    letter-spacing: 1px;
}

.countdown-label {
    font-size: 11px;
    color: #bf360c;
    margin-top: 2px;
}

/* 情侣信息卡 */
.cp-info-card-new {
    background: var(--white);
    border-radius: var(--radius);
    padding: 4px 0;
    box-shadow: var(--shadow);
    margin-bottom: 16px;
    overflow: hidden;
}

.cp-info-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 20px;
    border-bottom: 1px solid var(--border);
}

.cp-info-item:last-child { border-bottom: none; }

.cp-info-label {
    color: #999;
    font-size: 14px;
}

.cp-info-val {
    color: #333;
    font-size: 14px;
    font-weight: 500;
}

/* 任务卡片新版 */
.tasks-card-new {
    background: var(--white);
    border-radius: var(--radius);
    padding: 20px;
    box-shadow: var(--shadow);
    margin-bottom: 16px;
}

.tasks-card-new h3 {
    font-size: 16px;
    color: var(--pink-dark);
    margin-bottom: 16px;
    text-align: center;
    font-weight: 700;
}

.task-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.task-card-new {
    background: #fafafa;
    border-radius: var(--radius-sm);
    padding: 16px 8px;
    text-align: center;
    cursor: pointer;
    transition: all 0.25s;
    border: 2px solid transparent;
}

.task-card-new:hover {
    background: #fff;
    border-color: var(--pink-light);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(233,30,99,0.1);
}

.task-card-new.done {
    background: #f1f8e9;
    border-color: #a5d6a7;
}

.task-icon-new {
    font-size: 28px;
    margin-bottom: 6px;
}

.morning-icon { color: #ff9800; }
.noon-icon { color: #f9a825; }
.night-icon { color: #5c6bc0; }

.task-label-new {
    font-size: 14px;
    font-weight: 600;
    color: #333;
    margin-bottom: 4px;
}

.task-status-new {
    font-size: 11px;
    color: #999;
}

.task-card-new.done .task-status-new {
    color: #4CAF50;
}

/* 续约区域 */
.couple-extend-area {
    text-align: center;
    padding: 8px 0 16px;
}

.extend-note {
    color: var(--text-lighter);
    font-size: 12px;
    margin-top: 6px;
}

/* 空状态动画 */
.empty-heart-anim {
    font-size: 64px;
    color: #ffcdd2;
    margin-bottom: 16px;
    animation: heartbeat 2s ease-in-out infinite;
}

/* 全屏居中空状态 */
#page-couple.page.active {
    min-height: calc(100vh - 70px);
}

#page-couple .container {
    min-height: calc(100vh - 110px);
    display: flex;
    flex-direction: column;
}

.empty-couple-full {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 20px;
}

.empty-couple-graphic {
    position: relative;
    width: 160px;
    height: 160px;
    margin: 0 auto 32px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.empty-ring {
    position: absolute;
    border-radius: 50%;
    border: 2px solid #ffcdd2;
    animation: ringPulse 2.5s ease-in-out infinite;
}

.empty-ring.outer {
    width: 160px;
    height: 160px;
    top: 0;
    left: 0;
}

.empty-ring.inner {
    width: 110px;
    height: 110px;
    top: 25px;
    left: 25px;
    animation-delay: 0.5s;
}

.empty-heart-big {
    font-size: 50px;
    color: #e91e63;
    position: relative;
    z-index: 1;
    animation: heartbeat 1.8s ease-in-out infinite;
}

@keyframes ringPulse {
    0%, 100% { transform: scale(1); opacity: 0.6; }
    50% { transform: scale(1.08); opacity: 1; }
}

.empty-couple-full h2 {
    font-size: 22px;
    color: #333;
    margin-bottom: 10px;
    font-weight: 700;
}

.empty-couple-full p {
    color: #999;
    font-size: 15px;
    margin-bottom: 28px;
}

/* ============ 聊天窗口 ============ */
.chat-box {
    background: #fff;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    margin-bottom: 16px;
    display: block;
}

.chat-title {
    background: #fff;
    padding: 12px 20px;
    font-size: 15px;
    font-weight: 700;
    color: var(--pink-dark);
    text-align: center;
    border-bottom: 1px solid var(--border);
}

.chat-messages {
    padding: 10px 12px;
    max-height: 280px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 8px;
    background: #ededed;
}

.chat-empty {
    text-align: center;
    color: #bbb;
    font-size: 13px;
    padding: 24px 0;
}

.chat-msg {
    display: flex;
    gap: 6px;
    max-width: 85%;
    animation: chatIn 0.25s ease;
}

.chat-msg.me {
    align-self: flex-end;
    flex-direction: row-reverse;
}

.chat-msg.other {
    align-self: flex-start;
}

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

.chat-avatar {
    width: 26px; height: 26px;
    min-width: 26px; min-height: 26px;
    max-width: 26px; max-height: 26px;
    border-radius: 50%;
    flex-shrink: 0;
    background: linear-gradient(135deg, #ffcdd2, #f48fb1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    color: #fff;
    font-weight: 600;
    overflow: hidden;
}

.chat-avatar img {
    width: 26px; height: 26px;
    min-width: 26px; min-height: 26px;
    max-width: 26px; max-height: 26px;
    object-fit: cover;
    border-radius: 50%;
}

.chat-bubble {
    padding: 8px 12px;
    border-radius: 14px;
    font-size: 13px;
    line-height: 1.4;
    word-break: break-word;
}

.chat-msg.me .chat-bubble {
    background: #95ec69;
    color: #000;
    border-top-right-radius: 3px;
}

.chat-msg.other .chat-bubble {
    background: #fff;
    color: #333;
    border-top-left-radius: 3px;
}

.chat-time {
    font-size: 10px;
    color: #999;
    margin-top: 2px;
    text-align: right;
}

.chat-msg.me .chat-time { text-align: left; }

.chat-task-badge {
    display: inline-block;
    font-size: 10px;
    padding: 1px 6px;
    border-radius: 8px;
    margin-bottom: 3px;
    background: rgba(233,30,99,0.12);
    color: #e91e63;
    font-weight: 600;
}

/* ============ 删除旧情侣样式（保留兼容） ============ */
.couple-header { display: none; }
.countdown-badge { display: none; }
.couple-profile-card { display: none; }
.tasks-card { display: none; }
.task-list { display: none; }
.task-item { display: none; }
.couple-actions { display: none; }
.couple-note { display: none; }
.cp-card { display: none; }
.cp-avatar.large { display: none; }
.cp-time { display: none; }

/* ============ 个人中心 ============ */
.me-header {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 24px 0;
}

.me-avatar {
    width: 64px; height: 64px;
    border-radius: 50%;
    background: linear-gradient(135deg, #ffcdd2, #f48fb1);
    overflow: hidden;
}

.me-avatar img { width: 100%; height: 100%; object-fit: cover; }

.me-info h3 { font-size: 18px; color: #333; margin-bottom: 4px; }
.me-info p { font-size: 13px; color: var(--text-light); }

.me-status-card {
    background: linear-gradient(135deg, var(--pink-light), #fff5f7);
    border-radius: var(--radius-sm);
    padding: 16px;
    margin-bottom: 16px;
}

.status-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6px 0;
    font-size: 14px;
}

.status-badge {
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
}

.status-love {
    background: #ffcdd2;
    color: var(--pink-dark);
}

.status-time {
    color: #e65100;
    font-weight: 600;
}

.me-menu {
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    margin-bottom: 20px;
}

.menu-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    border-bottom: 1px solid var(--border);
    font-size: 15px;
    cursor: pointer;
    transition: background 0.2s;
}

.menu-item:last-child { border-bottom: none; }

.menu-item:hover { background: #fafafa; }

.menu-item span:last-child {
    color: var(--text-lighter);
    font-size: 18px;
}

/* ============ 底部导航 ============ */
.bottom-nav {
    position: fixed;
    bottom: 0; left: 0; right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    display: flex;
    justify-content: space-around;
    padding: 8px 0;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    z-index: 100;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.05);
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    padding: 4px 16px;
    cursor: pointer;
    color: var(--text-lighter);
    font-size: 11px;
    transition: color 0.2s;
}

.nav-item .nav-icon { font-size: 20px; }

.nav-item.active { color: var(--pink-dark); }

/* ============ 通用卡片 ============ */
.card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 20px;
    box-shadow: var(--shadow);
    margin-bottom: 16px;
}

/* ============ 响应式 ============ */
@media (max-width: 360px) {
    .container { padding: 12px 10px; }
    .app-title { font-size: 26px; }
    .rules-card { padding: 16px; }
    .btn { padding: 12px 20px; font-size: 14px; }
}

/* ============ 免费匹配率 ============ */
.match-rate-badge {
    display: inline-block;
    background: linear-gradient(135deg, #ff6b95, #e91e63);
    color: #fff;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 16px;
    font-weight: 700;
    margin: 10px 0;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.free-match-info {
    text-align: center;
    padding: 12px 0 16px;
}

.free-match-info p {
    color: #666;
    font-size: 14px;
    margin-top: 8px;
}

.match-note {
    color: #999 !important;
    font-size: 12px !important;
}

.match-hint {
    color: var(--pink);
    font-size: 12px;
    margin-bottom: 12px;
    text-align: center;
    background: var(--pink-light);
    padding: 6px 10px;
    border-radius: 6px;
}

/* ============ 空情侣状态 ============ */
.empty-couple-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 48px 24px;
    text-align: center;
    box-shadow: var(--shadow);
}

.empty-heart {
    font-size: 64px;
    color: var(--pink-light);
    margin-bottom: 16px;
}

.empty-couple-card h3 {
    font-size: 18px;
    color: #666;
    margin-bottom: 8px;
}

.empty-couple-card p {
    color: var(--text-light);
    font-size: 14px;
    margin-bottom: 24px;
}

/* ============ 后台select样式 ============ */
select {
    width: 100%;
    padding: 10px 14px;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 15px;
    outline: none;
    background: #fafafa;
    font-family: var(--font);
    appearance: auto;
}

select:focus {
    border-color: var(--pink);
    background: #fff;
}

/* ============ 地区级联选择器 ============ */
.region-select-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.region-select-group select {
    width: 100%;
    padding: 10px 14px;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 14px;
    outline: none;
    background: #fafafa;
    font-family: var(--font);
}

.region-select-group select:focus {
    border-color: var(--pink);
    background: #fff;
}

.region-select-group select:disabled {
    background: #f5f5f5;
    color: #bbb;
}

/* ============ 通用弹窗（匹配记录/付费订单） ============ */
.modal-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.45);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.2s ease;
}

.modal-card {
    background: #fff;
    border-radius: 16px;
    width: 90%;
    max-width: 400px;
    max-height: 75vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 20px 60px rgba(0,0,0,0.15);
    overflow: hidden;
}

.modal-header {
    padding: 18px 20px 14px;
    border-bottom: 1px solid #f0f0f0;
    flex-shrink: 0;
}

.modal-header h3 {
    font-size: 17px;
    color: #e91e63;
    text-align: center;
    margin: 0;
    font-weight: 700;
}

.modal-body {
    flex: 1;
    overflow-y: auto;
    padding: 16px;
    -webkit-overflow-scrolling: touch;
}

.modal-footer {
    padding: 14px 20px 18px;
    border-top: 1px solid #f0f0f0;
    flex-shrink: 0;
    background: #fff;
}

.modal-item {
    background: #fafafa;
    border-radius: 12px;
    padding: 14px 16px;
    margin-bottom: 10px;
}

.modal-item:last-child {
    margin-bottom: 0;
}

.modal-item-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 5px 0;
    font-size: 14px;
}

.modal-item-label {
    color: #999;
    font-size: 13px;
    flex-shrink: 0;
}

.modal-item-val {
    color: #333;
    text-align: right;
    margin-left: 12px;
}

.modal-empty {
    text-align: center;
    color: #bbb;
    padding: 40px 0;
    font-size: 14px;
}
