* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
    background: linear-gradient(135deg, #ffeef8 0%, #fff0f5 50%, #fce4ec 100%);
    min-height: 100vh;
    color: #333;
}

/* ========== 登录页 ========== */
.login-body {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    overflow: hidden;
    position: relative;
}

.login-container {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 24px;
    padding: 48px 40px;
    width: 100%;
    max-width: 420px;
    box-shadow: 0 20px 60px rgba(255, 105, 180, 0.2);
    position: relative;
    z-index: 10;
}

.login-header {
    text-align: center;
    margin-bottom: 36px;
}

.heart-icon {
    font-size: 64px;
    margin-bottom: 16px;
    animation: heartbeat 1.5s ease-in-out infinite;
}

@keyframes heartbeat {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.login-header h1 {
    font-size: 28px;
    color: #ff6b9d;
    margin-bottom: 8px;
    font-weight: 600;
}

.subtitle {
    color: #999;
    font-size: 14px;
}

.login-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-size: 14px;
    color: #666;
    font-weight: 500;
}

.form-group input,
.form-group textarea {
    padding: 14px 16px;
    border: 2px solid #ffe0eb;
    border-radius: 12px;
    font-size: 15px;
    transition: all 0.3s ease;
    background: #fff;
    outline: none;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: #ff6b9d;
    box-shadow: 0 0 0 3px rgba(255, 107, 157, 0.1);
}

.login-btn {
    padding: 16px;
    background: linear-gradient(135deg, #ff6b9d 0%, #ff8fab 100%);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
}

.login-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(255, 107, 157, 0.4);
}

.btn-heart {
    animation: heartbeat 1.5s ease-in-out infinite;
}

.error-msg {
    color: #ff4757;
    font-size: 14px;
    text-align: center;
    min-height: 20px;
}

.login-footer {
    text-align: center;
    margin-top: 32px;
    color: #999;
    font-size: 13px;
}

/* 漂浮爱心 */
.floating-hearts {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    overflow: hidden;
    z-index: 1;
}

.heart {
    position: absolute;
    font-size: 24px;
    opacity: 0.6;
    animation: float 6s ease-in-out infinite;
}

.h1 { left: 10%; animation-delay: 0s; }
.h2 { left: 25%; animation-delay: 1s; }
.h3 { left: 50%; animation-delay: 2s; }
.h4 { left: 75%; animation-delay: 3s; }
.h5 { left: 90%; animation-delay: 4s; }

@keyframes float {
    0%, 100% {
        transform: translateY(100vh) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 0.6;
    }
    90% {
        opacity: 0.6;
    }
    100% {
        transform: translateY(-100px) rotate(360deg);
        opacity: 0;
    }
}

/* ========== 主应用布局 ========== */
.app-container {
    display: flex;
    height: 100vh;
    overflow: hidden;
}

/* 侧边栏 */
.sidebar {
    width: 240px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border-right: 1px solid #ffe0eb;
    display: flex;
    flex-direction: column;
    flex-shrink: 0;
}

.sidebar-header {
    padding: 24px 20px;
    border-bottom: 1px solid #ffe0eb;
}

.logo {
    font-size: 18px;
    font-weight: 600;
    color: #ff6b9d;
}

.nav-menu {
    flex: 1;
    padding: 16px 12px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border-radius: 10px;
    color: #666;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 15px;
}

.nav-item:hover {
    background: #fff0f5;
    color: #ff6b9d;
}

.nav-item.active {
    background: linear-gradient(135deg, #ff6b9d 0%, #ff8fab 100%);
    color: white;
}

.nav-icon {
    font-size: 18px;
}

.sidebar-footer {
    padding: 16px;
    border-top: 1px solid #ffe0eb;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
    padding: 8px;
}

.user-avatar {
    font-size: 28px;
}

.user-name {
    font-size: 14px;
    font-weight: 500;
    color: #333;
}

.logout-btn {
    width: 100%;
    padding: 10px;
    background: #fff0f5;
    color: #ff6b9d;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s ease;
}

.logout-btn:hover {
    background: #ffe0eb;
}

/* 主内容区 */
.main-content {
    flex: 1;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

/* ========== 聊天页面 ========== */
.chat-container {
    display: flex;
    flex-direction: column;
    height: 100%;
    background: rgba(255, 255, 255, 0.6);
}

.chat-header {
    padding: 16px 24px;
    background: rgba(255, 255, 255, 0.9);
    border-bottom: 1px solid #ffe0eb;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.chat-partner {
    display: flex;
    align-items: center;
    gap: 12px;
}

.partner-avatar {
    font-size: 36px;
}

.partner-info {
    display: flex;
    flex-direction: column;
}

.partner-name {
    font-size: 16px;
    font-weight: 600;
    color: #333;
}

.partner-status {
    font-size: 12px;
    color: #4caf50;
}

.love-days {
    background: linear-gradient(135deg, #ff6b9d 0%, #ff8fab 100%);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
}

.messages-container {
    flex: 1;
    overflow-y: auto;
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.loading-messages,
.loading {
    text-align: center;
    color: #999;
    padding: 40px;
}

.message {
    display: flex;
    gap: 10px;
    max-width: 70%;
}

.message.sent {
    align-self: flex-end;
    flex-direction: row-reverse;
}

.message-avatar {
    font-size: 32px;
    flex-shrink: 0;
}

.message-content {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.message-bubble {
    padding: 12px 16px;
    border-radius: 16px;
    font-size: 15px;
    line-height: 1.5;
    word-break: break-word;
}

.message.received .message-bubble {
    background: white;
    color: #333;
    border-bottom-left-radius: 4px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.message.sent .message-bubble {
    background: linear-gradient(135deg, #ff6b9d 0%, #ff8fab 100%);
    color: white;
    border-bottom-right-radius: 4px;
}

.message-time {
    font-size: 11px;
    color: #999;
}

.message.sent .message-time {
    text-align: right;
}

/* 图片消息 */
.message-photo {
    max-width: 250px;
    border-radius: 12px;
    cursor: pointer;
}

/* 语音消息 */
.message-voice {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    background: white;
    border-radius: 16px;
    cursor: pointer;
    min-width: 120px;
}

.message.sent .message-voice {
    background: linear-gradient(135deg, #ff6b9d 0%, #ff8fab 100%);
    color: white;
}

.voice-icon {
    font-size: 20px;
}

.voice-duration {
    font-size: 14px;
    font-weight: 500;
}

.voice-wave {
    display: flex;
    gap: 2px;
    align-items: center;
}

.voice-wave span {
    width: 3px;
    background: currentColor;
    border-radius: 2px;
    animation: wave 1s ease-in-out infinite;
}

.voice-wave span:nth-child(1) { height: 8px; animation-delay: 0s; }
.voice-wave span:nth-child(2) { height: 16px; animation-delay: 0.2s; }
.voice-wave span:nth-child(3) { height: 12px; animation-delay: 0.4s; }
.voice-wave span:nth-child(4) { height: 20px; animation-delay: 0.6s; }
.voice-wave span:nth-child(5) { height: 10px; animation-delay: 0.8s; }

@keyframes wave {
    0%, 100% { transform: scaleY(1); }
    50% { transform: scaleY(0.5); }
}

/* 输入区域 */
.input-area {
    padding: 16px 24px;
    background: rgba(255, 255, 255, 0.9);
    border-top: 1px solid #ffe0eb;
}

.input-tools {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
}

.tool-btn {
    width: 36px;
    height: 36px;
    border: none;
    background: #fff0f5;
    border-radius: 50%;
    font-size: 18px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.tool-btn:hover {
    background: #ffe0eb;
    transform: scale(1.1);
}

.tool-btn.recording {
    background: #ff4757;
    color: white;
    animation: pulse 1s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.voice-recording {
    display: flex;
    align-items: center;
    gap: 12px;
    background: #fff0f5;
    padding: 8px 16px;
    border-radius: 20px;
}

.recording-indicator {
    color: #ff4757;
    font-size: 13px;
    font-weight: 500;
}

.recording-time {
    font-size: 14px;
    font-weight: 600;
    color: #333;
}

.send-voice-btn,
.cancel-voice-btn {
    padding: 6px 12px;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    font-size: 12px;
    font-weight: 500;
}

.send-voice-btn {
    background: #4caf50;
    color: white;
}

.cancel-voice-btn {
    background: #ff4757;
    color: white;
}

.input-wrapper {
    display: flex;
    gap: 12px;
    align-items: flex-end;
}

#messageInput {
    flex: 1;
    padding: 12px 16px;
    border: 2px solid #ffe0eb;
    border-radius: 16px;
    font-size: 15px;
    resize: none;
    max-height: 120px;
    outline: none;
    font-family: inherit;
    transition: all 0.3s ease;
}

#messageInput:focus {
    border-color: #ff6b9d;
}

.send-btn {
    padding: 12px 24px;
    background: linear-gradient(135deg, #ff6b9d 0%, #ff8fab 100%);
    color: white;
    border: none;
    border-radius: 16px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.send-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 107, 157, 0.4);
}

/* ========== 日记页面 ========== */
.diary-container {
    padding: 32px;
    height: 100%;
    overflow-y: auto;
}

.diary-header {
    text-align: center;
    margin-bottom: 32px;
}

.diary-header h1 {
    font-size: 28px;
    color: #ff6b9d;
    margin-bottom: 8px;
}

.diary-subtitle {
    color: #999;
    margin-bottom: 20px;
}

.add-diary-btn,
.add-milestone-btn,
.upload-photo-btn {
    padding: 12px 24px;
    background: linear-gradient(135deg, #ff6b9d 0%, #ff8fab 100%);
    color: white;
    border: none;
    border-radius: 24px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.add-diary-btn:hover,
.add-milestone-btn:hover,
.upload-photo-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(255, 107, 157, 0.4);
}

.diary-list {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.diary-card {
    background: white;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 4px 12px rgba(255, 107, 157, 0.1);
    transition: all 0.3s ease;
}

.diary-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(255, 107, 157, 0.15);
}

.diary-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 12px;
}

.diary-title {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    display: flex;
    align-items: center;
    gap: 8px;
}

.diary-mood {
    font-size: 20px;
}

.diary-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: #999;
}

.diary-author-avatar {
    font-size: 20px;
}

.diary-content {
    color: #666;
    line-height: 1.7;
    font-size: 15px;
    white-space: pre-wrap;
}

.diary-date {
    margin-top: 12px;
    font-size: 12px;
    color: #bbb;
}

.diary-actions {
    margin-top: 12px;
    display: flex;
    justify-content: flex-end;
}

.delete-diary-btn {
    padding: 6px 12px;
    background: #fff0f5;
    color: #ff4757;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 13px;
    transition: all 0.3s ease;
}

.delete-diary-btn:hover {
    background: #ffe0eb;
}

/* ========== 情侣历程页面 ========== */
.timeline-container {
    padding: 32px;
    height: 100%;
    overflow-y: auto;
}

.timeline-header {
    text-align: center;
    margin-bottom: 40px;
}

.timeline-header h1 {
    font-size: 28px;
    color: #ff6b9d;
    margin-bottom: 8px;
}

.timeline-subtitle {
    color: #999;
    margin-bottom: 20px;
}

.timeline {
    max-width: 700px;
    margin: 0 auto;
    position: relative;
    padding: 20px 0;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(to bottom, #ff6b9d, #ff8fab, #ffb6c1);
    transform: translateX(-50%);
    border-radius: 2px;
}

.timeline-item {
    position: relative;
    margin-bottom: 40px;
    width: 50%;
}

.timeline-item:nth-child(odd) {
    padding-right: 40px;
    text-align: right;
}

.timeline-item:nth-child(even) {
    margin-left: 50%;
    padding-left: 40px;
}

.timeline-dot {
    position: absolute;
    top: 20px;
    width: 40px;
    height: 40px;
    background: white;
    border: 3px solid #ff6b9d;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    z-index: 1;
}

.timeline-item:nth-child(odd) .timeline-dot {
    right: -20px;
}

.timeline-item:nth-child(even) .timeline-dot {
    left: -20px;
}

.timeline-content {
    background: white;
    border-radius: 16px;
    padding: 20px;
    box-shadow: 0 4px 12px rgba(255, 107, 157, 0.1);
    transition: all 0.3s ease;
}

.timeline-content:hover {
    transform: scale(1.02);
    box-shadow: 0 8px 24px rgba(255, 107, 157, 0.15);
}

.timeline-title {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
}

.timeline-date {
    font-size: 14px;
    color: #ff6b9d;
    font-weight: 500;
    margin-bottom: 8px;
}

.timeline-desc {
    font-size: 14px;
    color: #666;
    line-height: 1.6;
}

.timeline-delete {
    margin-top: 12px;
    padding: 6px 12px;
    background: #fff0f5;
    color: #ff4757;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 12px;
    transition: all 0.3s ease;
}

.timeline-delete:hover {
    background: #ffe0eb;
}

/* ========== 相册页面 ========== */
.album-container {
    padding: 32px;
    height: 100%;
    overflow-y: auto;
}

.album-header {
    text-align: center;
    margin-bottom: 32px;
}

.album-header h1 {
    font-size: 28px;
    color: #ff6b9d;
    margin-bottom: 8px;
}

.album-subtitle {
    color: #999;
    margin-bottom: 20px;
}

.photo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 16px;
    max-width: 1000px;
    margin: 0 auto;
}

.photo-item {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    aspect-ratio: 1;
    box-shadow: 0 4px 12px rgba(255, 107, 157, 0.1);
    transition: all 0.3s ease;
}

.photo-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(255, 107, 157, 0.2);
}

.photo-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.photo-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 12px;
    background: linear-gradient(to top, rgba(0,0,0,0.6), transparent);
    color: white;
    font-size: 12px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.photo-item:hover .photo-overlay {
    opacity: 1;
}

/* ========== 弹窗 ========== */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    padding: 20px;
}

.modal.show {
    display: flex;
}

.modal-content {
    background: white;
    border-radius: 20px;
    width: 100%;
    max-width: 500px;
    max-height: 90vh;
    overflow-y: auto;
    animation: modalIn 0.3s ease;
}

@keyframes modalIn {
    from {
        opacity: 0;
        transform: scale(0.9) translateY(20px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.modal-header {
    padding: 24px;
    border-bottom: 1px solid #ffe0eb;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h2 {
    font-size: 20px;
    color: #ff6b9d;
}

.close-btn {
    width: 32px;
    height: 32px;
    border: none;
    background: #fff0f5;
    border-radius: 50%;
    font-size: 20px;
    cursor: pointer;
    color: #999;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.close-btn:hover {
    background: #ffe0eb;
    color: #ff6b9d;
}

.modal-body {
    padding: 24px;
}

.modal-body .form-group {
    margin-bottom: 20px;
}

.modal-footer {
    padding: 20px 24px;
    border-top: 1px solid #ffe0eb;
    display: flex;
    justify-content: flex-end;
    gap: 12px;
}

.cancel-btn {
    padding: 10px 20px;
    background: #f5f5f5;
    color: #666;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s ease;
}

.cancel-btn:hover {
    background: #e0e0e0;
}

.submit-btn {
    padding: 10px 20px;
    background: linear-gradient(135deg, #ff6b9d 0%, #ff8fab 100%);
    color: white;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 107, 157, 0.4);
}

.delete-btn {
    padding: 10px 20px;
    background: #ff4757;
    color: white;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s ease;
}

.delete-btn:hover {
    background: #ff3344;
}

/* 心情选择器 */
.mood-selector,
.icon-selector {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.mood-option,
.icon-option {
    padding: 8px 12px;
    background: #fff0f5;
    border-radius: 20px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.mood-option:hover,
.icon-option:hover {
    background: #ffe0eb;
}

.mood-option.selected,
.icon-option.selected {
    background: #ff6b9d;
    color: white;
    border-color: #ff6b9d;
}

/* 照片弹窗 */
.photo-modal .modal-content {
    max-width: 600px;
}

.photo-modal img {
    width: 100%;
    border-radius: 12px;
    margin-bottom: 16px;
}

.photo-desc {
    color: #666;
    margin-bottom: 8px;
}

.photo-info {
    font-size: 13px;
    color: #999;
}

/* 响应式 */
@media (max-width: 768px) {
    .sidebar {
        width: 60px;
    }
    
    .logo,
    .nav-item span:not(.nav-icon),
    .user-name {
        display: none;
    }
    
    .sidebar-header {
        padding: 16px 12px;
    }
    
    .nav-item {
        justify-content: center;
        padding: 12px;
    }
    
    .user-info {
        justify-content: center;
    }
    
    .message {
        max-width: 85%;
    }
    
    .timeline::before {
        left: 20px;
    }
    
    .timeline-item {
        width: 100%;
        padding-left: 60px !important;
        padding-right: 0 !important;
        text-align: left !important;
        margin-left: 0 !important;
    }
    
    .timeline-dot {
        left: 0 !important;
        right: auto !important;
    }
    
    .photo-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    }
}

/* ========== 个人中心页面 ========== */
.profile-container {
    padding: 32px;
    height: 100%;
    overflow-y: auto;
}

.profile-header {
    text-align: center;
    margin-bottom: 32px;
}

.profile-header h1 {
    font-size: 28px;
    color: #ff6b9d;
    margin-bottom: 8px;
}

.profile-header p {
    color: #999;
    font-size: 14px;
}

.profile-content {
    max-width: 600px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.profile-card {
    background: white;
    border-radius: 16px;
    box-shadow: 0 4px 12px rgba(255, 107, 157, 0.1);
    overflow: hidden;
    transition: all 0.3s ease;
}

.profile-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(255, 107, 157, 0.15);
}

.card-header {
    padding: 20px 24px;
    border-bottom: 1px solid #ffe0eb;
    background: linear-gradient(135deg, #fff0f5 0%, #fff5f8 100%);
}

.card-header h2 {
    font-size: 18px;
    color: #ff6b9d;
    font-weight: 600;
}

.card-body {
    padding: 24px;
}

.card-body .form-group {
    margin-bottom: 20px;
}

.card-body .form-group label {
    display: block;
    font-size: 14px;
    color: #666;
    font-weight: 500;
    margin-bottom: 8px;
}

.card-body .form-group input,
.card-body .form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #ffe0eb;
    border-radius: 10px;
    font-size: 15px;
    transition: all 0.3s ease;
    background: #fff;
    outline: none;
    font-family: inherit;
}

.card-body .form-group input:focus,
.card-body .form-group textarea:focus {
    border-color: #ff6b9d;
    box-shadow: 0 0 0 3px rgba(255, 107, 157, 0.1);
}

.card-body .form-group small {
    display: block;
    margin-top: 6px;
}

.avatar-selector {
    margin-top: 8px;
}

.icon-selector {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.icon-option {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    background: #fff0f5;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.icon-option:hover {
    background: #ffe0eb;
    transform: scale(1.1);
}

.icon-option.selected {
    background: #ff6b9d;
    border-color: #ff6b9d;
    transform: scale(1.1);
}

.form-actions {
    margin-top: 24px;
}

.form-actions .submit-btn {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, #ff6b9d 0%, #ff8fab 100%);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.form-actions .submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(255, 107, 157, 0.4);
}

.form-msg {
    margin-top: 12px;
    text-align: center;
    font-size: 14px;
    min-height: 20px;
}

.form-msg.success {
    color: #4caf50;
}

.form-msg.error {
    color: #ff4757;
}

/* 对方信息展示 */
.partner-info-display {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 16px;
    background: #fff9fb;
    border-radius: 12px;
}

.partner-avatar-large {
    font-size: 64px;
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
    border-radius: 50%;
    box-shadow: 0 4px 12px rgba(255, 107, 157, 0.15);
}

.partner-details {
    flex: 1;
}

.partner-nickname {
    font-size: 20px;
    font-weight: 600;
    color: #333;
    margin-bottom: 4px;
}

.partner-username {
    font-size: 14px;
    color: #999;
}

/* 响应式 - 个人中心 */
@media (max-width: 768px) {
    .profile-container {
        padding: 20px 16px;
    }
    
    .profile-header h1 {
        font-size: 24px;
    }
    
    .card-body {
        padding: 20px 16px;
    }
    
    .icon-option {
        width: 40px;
        height: 40px;
        font-size: 20px;
    }
    
    .partner-avatar-large {
        font-size: 48px;
        width: 64px;
        height: 64px;
    }
    
    .partner-nickname {
        font-size: 18px;
    }
}

