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

body {
    font-family: 'Arial', sans-serif;
    background-color: #f5f5f5;
    color: #333;
    line-height: 1.6;
}

.container {
    max-width: 600px;
    margin: 50px auto;
    padding: 20px;
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
}

.logo {
    text-align: center;
    margin-bottom: 30px;
}

.logo h1 {
    color: #ff4757;
    font-size: 36px;
}

.tabs {
    display: flex;
    justify-content: center;
    margin-bottom: 30px;
}

.tab-btn {
    padding: 10px 20px;
    background-color: #f1f1f1;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 16px;
}

.tab-btn.active {
    background-color: #ff4757;
    color: white;
}

.tab-btn:first-child {
    border-top-left-radius: 5px;
    border-bottom-left-radius: 5px;
}

.tab-btn:last-child {
    border-top-right-radius: 5px;
    border-bottom-right-radius: 5px;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

h2 {
    text-align: center;
    margin-bottom: 20px;
    color: #333;
}

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

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}

.form-group input, .form-group select {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 16px;
}

.btn {
    width: 100%;
    padding: 12px;
    background-color: #ff4757;
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.btn:hover {
    background-color: #e03e4c;
}

/* 审核状态样式 */
.status {
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 500;
}

.status-verified {
    background-color: #52c41a;
    color: white;
}

.status-pending {
    background-color: #faad14;
    color: white;
}

/* 匹配页面样式 */
.profile-container {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.profile-card {
    width: 100%;
    border: 1px solid #ddd;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 20px;
}

.profile-image {
    width: 100%;
    height: 300px;
    object-fit: cover;
}

.profile-info {
    padding: 20px;
}

.profile-info h3 {
    margin-bottom: 10px;
    color: #ff4757;
}

.profile-actions {
    display: flex;
    justify-content: space-between;
    padding: 20px;
}

.action-btn {
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    transition: all 0.3s ease;
}

.like-btn {
    background-color: #2ed573;
    color: white;
}

.dislike-btn {
    background-color: #ff6348;
    color: white;
}

.chat-btn {
    background-color: #70a1ff;
    color: white;
}

/* 导航按钮样式 */
.navigation {
    display: flex;
    gap: 10px;
    margin-top: 30px;
    flex-wrap: wrap;
    justify-content: center;
}

.nav-btn {
    flex: 1;
    min-width: 120px;
    padding: 12px;
    border: none;
    border-radius: 25px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    background-color: #f1f1f1;
    color: #333;
}

.nav-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.nav-btn.primary {
    background-color: #ff4757;
    color: white;
}

.nav-btn.primary:hover {
    background-color: #e03e4c;
}

.nav-btn.secondary {
    background-color: #2ed573;
    color: white;
}

.nav-btn.secondary:hover {
    background-color: #26c063;
}

/* 聊天页面样式 */
.chat-container {
    display: flex;
    flex-direction: column;
    height: 60vh;
    background-color: #f8f9fa;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.chat-list {
    flex: 1;
    overflow-y: auto;
    background-color: white;
}

.chat-item {
    display: flex;
    align-items: center;
    padding: 15px;
    border-bottom: 1px solid #f0f0f0;
    cursor: pointer;
    transition: all 0.2s ease;
}

.chat-item:hover {
    background-color: #f8f9fa;
    transform: translateX(5px);
}

.chat-item h4 {
    margin: 0 0 5px 0;
    color: #333;
}

.chat-item p {
    margin: 0 0 5px 0;
    color: #666;
    font-size: 14px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 100%;
}

.chat-item small {
    color: #999;
    font-size: 12px;
}

.chat-window {
    flex: 1;
    display: flex;
    flex-direction: column;
    background-color: white;
}

.messages {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}

.message {
    margin-bottom: 15px;
    padding: 12px 16px;
    border-radius: 18px;
    max-width: 75%;
    position: relative;
    word-wrap: break-word;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.message.sent {
    background-color: #70a1ff;
    color: white;
    align-self: flex-end;
    margin-left: auto;
    border-bottom-right-radius: 4px;
}

.message.received {
    background-color: #f1f1f1;
    align-self: flex-start;
    border-bottom-left-radius: 4px;
}

.message-input {
    display: flex;
    padding: 15px;
    background-color: #f8f9fa;
    border-top: 1px solid #e9ecef;
}

.message-input input {
    flex: 1;
    padding: 12px 20px;
    border: 1px solid #ddd;
    border-radius: 25px;
    font-size: 16px;
    outline: none;
    transition: border-color 0.3s ease;
}

.message-input input:focus {
    border-color: #70a1ff;
}

.message-input button {
    margin-left: 10px;
    padding: 12px 25px;
    background-color: #70a1ff;
    color: white;
    border: none;
    border-radius: 25px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.message-input button:hover {
    background-color: #5f98ff;
    transform: scale(1.05);
}

/* 个人资料页面样式 */
.user-profile {
    text-align: center;
}

.user-image {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 20px;
}

.edit-profile-btn {
    background-color: #70a1ff;
    color: white;
    margin-bottom: 20px;
}

.profile-details {
    text-align: left;
    margin-bottom: 20px;
}

.detail-item {
    margin-bottom: 10px;
}

.detail-item strong {
    margin-right: 10px;
}

/* 编辑个人资料页面样式 */
.edit-form {
    max-width: 500px;
    margin: 0 auto;
}

.file-input {
    margin-top: 10px;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .container {
        margin: 20px;
        padding: 15px;
    }
    
    .logo h1 {
        font-size: 28px;
    }
    
    .profile-image {
        height: 200px;
    }
}