/* 个人中心页面样式 */

.profile-main {
    padding-top: 100px;
    min-height: calc(100vh - 200px);
    background: var(--bg-light);
}

.profile-header {
    margin-bottom: 30px;
}

.profile-header h1 {
    font-size: 2rem;
    color: var(--text-primary);
    font-weight: 700;
}

.profile-content {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 30px;
    margin-bottom: 40px;
}

/* 用户卡片 */
.profile-card {
    background: white;
    border-radius: 16px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    height: fit-content;
}

.profile-avatar {
    position: relative;
    width: 120px;
    height: 120px;
    margin: 0 auto 20px;
}

.profile-avatar img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid var(--primary-color);
}

.vip-badge {
    position: absolute;
    bottom: 5px;
    right: 5px;
    background: linear-gradient(135deg, #FFD700, #FFA500);
    color: white;
    font-size: 12px;
    font-weight: 600;
    padding: 4px 8px;
    border-radius: 10px;
}

.profile-name {
    font-size: 1.5rem;
    color: var(--text-primary);
    margin-bottom: 5px;
}

.profile-phone {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 20px;
}

.profile-stats {
    display: flex;
    justify-content: center;
    padding: 15px 0;
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
    margin-bottom: 20px;
}

.profile-stats .stat {
    text-align: center;
}

.profile-stats .stat-value {
    display: block;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

.profile-stats .stat-label {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.btn-edit {
    width: 100%;
}

/* 资料详情 */
.profile-details {
    background: white;
    border-radius: 16px;
    padding: 30px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.profile-details h3 {
    font-size: 1.25rem;
    color: var(--text-primary);
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--primary-color);
}

.details-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-bottom: 25px;
}

.detail-item {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.detail-label {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.detail-value {
    font-size: 1rem;
    color: var(--text-primary);
    font-weight: 500;
}

.detail-intro {
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.detail-intro .detail-value {
    margin-top: 10px;
    line-height: 1.6;
}

/* 编辑表单 */
.form-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-bottom: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group.full-width {
    grid-column: 1 / -1;
}

.form-group label {
    font-size: 0.9rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(232, 180, 184, 0.2);
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

.form-actions {
    display: flex;
    gap: 15px;
    justify-content: flex-end;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.btn-secondary {
    background: #f5f5f5;
    color: var(--text-primary);
    border: none;
    padding: 12px 30px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 500;
    transition: background 0.3s;
}

.btn-secondary:hover {
    background: #e0e0e0;
}

/* 心动列表 */
.likes-section {
    background: white;
    border-radius: 16px;
    padding: 30px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.likes-section h3 {
    font-size: 1.25rem;
    color: var(--text-primary);
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--primary-color);
}

.likes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
}

.empty-text {
    color: var(--text-secondary);
    text-align: center;
    padding: 40px;
    grid-column: 1 / -1;
}

.like-card {
    background: var(--bg-light);
    border-radius: 12px;
    padding: 15px;
    display: flex;
    align-items: center;
    gap: 15px;
    cursor: pointer;
    transition: transform 0.3s, box-shadow 0.3s;
}

.like-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
}

.like-card img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
}

.like-card-info {
    flex: 1;
}

.like-card-name {
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 5px;
}

.like-card-details {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.like-card-remove {
    color: #ff6b6b;
    cursor: pointer;
    padding: 5px;
    font-size: 1.2rem;
}

.like-card-remove:hover {
    color: #ff4444;
}

/* 响应式 */
@media (max-width: 768px) {
    .profile-content {
        grid-template-columns: 1fr;
    }

    .profile-card {
        max-width: 400px;
        margin: 0 auto;
    }

    .details-grid {
        grid-template-columns: 1fr;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .form-actions {
        flex-direction: column;
    }

    .form-actions button {
        width: 100%;
    }

    .likes-grid {
        grid-template-columns: 1fr;
    }
}
