/* 前端样式 - Lookus风格手机APP设计 */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    min-height: 100vh;
    color: #333;
    line-height: 1.6;
    font-size: 14px;
    overflow-x: hidden;
    /* 适配刘海屏和底部安全区域 */
    padding-top: env(safe-area-inset-top);
    padding-bottom: env(safe-area-inset-bottom);
}

/* 顶部导航 */
.top-nav {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    padding: 12px 16px;
    border-bottom: 1px solid #e5e7eb;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 100;
    transition: all 0.3s ease;
}

.top-nav .logo h1 {
    font-size: 20px;
    background: linear-gradient(135deg, #ff6b9d 0%, #ff8fab 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin: 0;
    padding: 0;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.user-menu {
    display: flex;
    align-items: center;
    gap: 12px;
}

.user-menu span {
    color: #374151;
    font-weight: 600;
    font-size: 14px;
    display: none;
}

.user-menu a {
    color: #6b7280;
    text-decoration: none;
    font-weight: 500;
    padding: 8px 12px;
    border-radius: 8px;
    transition: all 0.3s ease;
    font-size: 12px;
    background: rgba(255, 255, 255, 0.8);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.user-menu a:hover {
    background: rgba(255, 107, 157, 0.1);
    color: #ff6b9d;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(255, 107, 157, 0.2);
}

.user-menu a:active {
    transform: translateY(0);
}

/* 移动端顶部导航优化 */
@media (max-width: 768px) {
    .top-nav {
        padding: 10px 12px;
    }
    
    .top-nav .logo h1 {
        font-size: 18px;
    }
    
    .user-menu {
        gap: 8px;
    }
    
    .user-menu a {
        padding: 6px 10px;
        font-size: 11px;
    }
}

/* 主内容区域 */
.main-container {
    display: flex;
    min-height: calc(100vh - 50px);
    background: #f9fafb;
}

/* 侧边栏 */
.sidebar {
    width: 220px;
    background: white;
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.05);
    padding: 16px 0;
    overflow-y: auto;
    display: none;
}

.sidebar ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar ul li {
    margin: 2px 0;
}

.sidebar ul li a {
    display: block;
    padding: 12px 16px;
    color: #6b7280;
    text-decoration: none;
    transition: all 0.3s ease;
    font-weight: 500;
    font-size: 14px;
}

.sidebar ul li a:hover {
    background: rgba(255, 107, 157, 0.05);
    color: #ff6b9d;
}

.sidebar ul li a.active {
    background: rgba(255, 107, 157, 0.1);
    color: #ff6b9d;
    font-weight: 600;
    border-left: 3px solid #ff6b9d;
}

/* 主内容 */
.content {
    flex: 1;
    padding: 16px;
    overflow-y: auto;
    background: #f9fafb;
}

/* 欢迎区域 */
.welcome-section {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 30px;
    padding: 25px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(31, 38, 135, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.welcome-section .avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
    font-weight: 700;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.welcome-section .welcome-text h2 {
    margin: 0 0 5px 0;
    font-size: 24px;
    color: #333;
}

.welcome-section .welcome-text p {
    margin: 0;
    color: #666;
    font-size: 14px;
}

/* 情侣状态 */
.couple-status {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 20px;
}

.couple-status .status-icon {
    font-size: 48px;
    margin-top: -10px;
}

.couple-status .status-info h4 {
    margin: 0 0 10px 0;
    font-size: 20px;
    color: #444;
}

.couple-status .status-info p {
    margin: 0;
    color: #666;
    line-height: 1.5;
}

/* 快速操作 */
.quick-actions {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.action-card {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(5px);
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    box-shadow: 0 4px 16px rgba(31, 38, 135, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.action-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 24px rgba(31, 38, 135, 0.15);
    background: rgba(255, 255, 255, 0.95);
}

.action-card .icon {
    font-size: 48px;
    margin-bottom: 15px;
    display: block;
}

.action-card h4 {
    margin: 0 0 10px 0;
    font-size: 18px;
    color: #444;
}

.action-card p {
    margin: 0 0 15px 0;
    color: #666;
    font-size: 14px;
    line-height: 1.5;
}

.action-card a {
    display: inline-block;
    padding: 8px 16px;
    background: rgba(102, 126, 234, 0.95);
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.action-card a:hover {
    background: rgba(76, 99, 234, 0.95);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(102, 126, 234, 0.4);
    text-decoration: none;
}

/* 底部 */
.footer {
    text-align: center;
    padding: 20px 0;
    color: rgba(255, 255, 255, 0.8);
    font-size: 14px;
    margin-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.footer p {
    margin: 0;
}

/* 容器样式 */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* 卡片样式 */
.card {
    background: white;
    border-radius: 16px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    padding: 20px;
    margin-bottom: 16px;
    border: 1px solid #e5e7eb;
    transition: all 0.3s ease;
}

.card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
}

/* 卡片内容内边距适配移动端 */
@media (max-width: 768px) {
    .card {
        padding: 16px;
        margin-bottom: 12px;
        border-radius: 12px;
    }
}

/* 标题样式 */
h1, h2, h3, h4, h5, h6 {
    color: #333;
    margin-bottom: 20px;
    font-weight: 600;
}

h1 {
    font-size: 28px;
    text-align: center;
    color: #667eea;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(102, 126, 234, 0.2);
}

h2 {
    font-size: 24px;
    color: #444;
}

h3 {
    font-size: 20px;
    color: #555;
}

/* 表单样式 */
.form-group {
    margin-bottom: 24px;
}

.form-group label {
    display: block;
    margin-bottom: 10px;
    font-weight: 600;
    color: #374151;
    font-size: 14px;
    letter-spacing: 0.5px;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 14px 18px;
    border: 2px solid rgba(226, 232, 240, 0.8);
    border-radius: 16px;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.95), rgba(249, 250, 251, 0.95));
    color: #1f2937;
    font-size: 16px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(10px);
    font-family: inherit;
    box-shadow: 
        0 1px 2px rgba(0, 0, 0, 0.05),
        inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: #667eea;
    background: linear-gradient(145deg, rgba(255, 255, 255, 1), rgba(249, 250, 251, 1));
    box-shadow: 
        0 0 0 4px rgba(102, 126, 234, 0.15),
        0 4px 12px rgba(102, 126, 234, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
    transform: translateY(-2px);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: #9ca3af;
    font-weight: 400;
    font-size: 15px;
}

.form-group input:hover:not(:focus),
.form-group textarea:hover:not(:focus),
.form-group select:hover:not(:focus) {
    border-color: rgba(102, 126, 234, 0.4);
    background: linear-gradient(145deg, rgba(255, 255, 255, 1), rgba(249, 250, 251, 1));
}

.form-group textarea {
    resize: vertical;
    min-height: 140px;
    padding: 16px 18px;
    line-height: 1.6;
}

.form-group select {
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 18px center;
    background-size: 16px;
    padding-right: 50px;
}

/* 表单分组样式 */
.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}

/* 表单操作区域 */
.form-actions {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    flex-wrap: wrap;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid rgba(226, 232, 240, 0.5);
}

/* 移动端表单优化 */
@media (max-width: 768px) {
    .form-group {
        margin-bottom: 20px;
    }
    
    .form-group input,
    .form-group textarea,
    .form-group select {
        padding: 16px 20px;
        border-radius: 20px;
        font-size: 16px;
    }
    
    .form-row {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .form-actions {
        justify-content: stretch;
        gap: 12px;
        margin-top: 24px;
    }
    
    .form-actions .btn {
        flex: 1;
        width: 100%;
    }
}

/* 按钮样式 */
.btn {
    display: inline-block;
    padding: 14px 28px;
    border: none;
    border-radius: 16px;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(10px);
    font-family: inherit;
    text-align: center;
    position: relative;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transform: translateZ(0);
}

/* 按钮渐变背景 */
.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3), 0 1px 0 rgba(255, 255, 255, 0.3) inset;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.4), 0 1px 0 rgba(255, 255, 255, 0.4) inset;
}

.btn-secondary {
    background: linear-gradient(135deg, #94a3b8 0%, #cbd5e1 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(156, 163, 175, 0.3), 0 1px 0 rgba(255, 255, 255, 0.3) inset;
}

.btn-secondary:hover {
    background: linear-gradient(135deg, #cbd5e1 0%, #94a3b8 100%);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(156, 163, 175, 0.4), 0 1px 0 rgba(255, 255, 255, 0.4) inset;
}

.btn-success {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3), 0 1px 0 rgba(255, 255, 255, 0.3) inset;
}

.btn-success:hover {
    background: linear-gradient(135deg, #059669 0%, #10b981 100%);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(16, 185, 129, 0.4), 0 1px 0 rgba(255, 255, 255, 0.4) inset;
}

.btn-danger {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3), 0 1px 0 rgba(255, 255, 255, 0.3) inset;
}

.btn-danger:hover {
    background: linear-gradient(135deg, #dc2626 0%, #ef4444 100%);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(239, 68, 68, 0.4), 0 1px 0 rgba(255, 255, 255, 0.4) inset;
}

/* 按钮点击效果 */
.btn:active {
    transform: translateY(0) scale(0.97);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

/* 按钮波纹效果 */
.btn::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
    pointer-events: none;
}

.btn:active::after {
    width: 300px;
    height: 300px;
}

/* 全宽按钮 */
.btn-block {
    display: block;
    width: 100%;
}

/* 小按钮 */
.btn-sm {
    padding: 10px 20px;
    font-size: 14px;
    border-radius: 12px;
}

/* 大按钮 */
.btn-lg {
    padding: 16px 32px;
    font-size: 18px;
    border-radius: 20px;
}

/* 链接样式 */
a {
    color: #667eea;
    text-decoration: none;
    transition: all 0.3s ease;
}

a:hover {
    color: #764ba2;
    text-decoration: underline;
}

/* 导航样式 */
.nav {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(31, 38, 135, 0.1);
    padding: 15px 20px;
    margin-bottom: 30px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.nav ul {
    list-style: none;
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.nav ul li a {
    display: block;
    padding: 10px 15px;
    color: #666;
    font-weight: 500;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.nav ul li a:hover {
    background: rgba(102, 126, 234, 0.1);
    color: #667eea;
    text-decoration: none;
}

.nav ul li a.active {
    background: rgba(102, 126, 234, 0.2);
    color: #667eea;
    font-weight: 600;
}

/* 卡片网格 */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

/* 消息样式 */
.message {
    padding: 16px 20px;
    border-radius: 12px;
    margin-bottom: 20px;
    font-weight: 500;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.message.success {
    background: rgba(16, 185, 129, 0.1);
    color: #10b981;
    border-left: 4px solid #10b981;
}

.message.error {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
    border-left: 4px solid #ef4444;
}

.message.info {
    background: rgba(59, 130, 246, 0.1);
    color: #3b82f6;
    border-left: 4px solid #3b82f6;
}

.message.warning {
    background: rgba(234, 179, 8, 0.1);
    color: #f59e0b;
    border-left: 4px solid #f59e0b;
}

/* 列表样式 */
.list {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(31, 38, 135, 0.1);
    padding: 0;
    margin-bottom: 30px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    list-style: none;
}

.list-item {
    padding: 15px 20px;
    border-bottom: 1px solid rgba(102, 126, 234, 0.1);
    transition: all 0.3s ease;
}

.list-item:hover {
    background: rgba(102, 126, 234, 0.05);
}

.list-item:last-child {
    border-bottom: none;
}

/* 头像样式 */
.avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid rgba(255, 255, 255, 0.9);
    box-shadow: 0 4px 12px rgba(31, 38, 135, 0.1);
    transition: all 0.3s ease;
}

.avatar:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 16px rgba(31, 38, 135, 0.2);
}

.avatar-small {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.avatar-small img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.avatar-large {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(31, 38, 135, 0.1);
    border: 3px solid rgba(255, 255, 255, 0.9);
    margin: 0 auto 15px;
}

.avatar-large img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.avatar-large img:hover {
    transform: scale(1.1);
}

/* 位置卡片 */
.location-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(31, 38, 135, 0.1);
    padding: 20px;
    margin-bottom: 20px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.location-info {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.location-time {
    color: #666;
    font-size: 14px;
    font-weight: 500;
}

.location-address {
    color: #333;
    font-size: 16px;
    font-weight: 600;
}

.location-coords {
    color: #999;
    font-size: 14px;
    font-family: monospace;
}

/* 地图容器 */
#map {
    width: 100%;
    height: 500px;
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(31, 38, 135, 0.1);
    margin-bottom: 20px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* 聊天样式 */


.chat-input {
    display: flex;
    gap: 10px;
}

.chat-input textarea {
    flex: 1;
    padding: 12px 16px;
    border: 1px solid rgba(102, 126, 234, 0.3);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.8);
    resize: none;
    font-size: 16px;
    backdrop-filter: blur(5px);
    font-family: inherit;
}

.chat-input textarea:focus {
    outline: none;
    border-color: #667eea;
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.1);
}

/* 图片上传样式 */
.upload-area {
    border: 2px dashed rgba(102, 126, 234, 0.3);
    border-radius: 12px;
    padding: 40px 20px;
    text-align: center;
    background: rgba(255, 255, 255, 0.8);
    transition: all 0.3s ease;
    cursor: pointer;
    margin-bottom: 20px;
    backdrop-filter: blur(5px);
}

.upload-area:hover {
    border-color: #667eea;
    background: rgba(255, 255, 255, 0.95);
    transform: translateY(-2px);
}

.upload-area.dragover {
    border-color: #667eea;
    background: rgba(102, 126, 234, 0.1);
}

.upload-area input[type="file"] {
    display: none;
}

.upload-text {
    color: #666;
    font-size: 16px;
    font-weight: 500;
}

/* 表情选择器 */
.emoji-picker {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(31, 38, 135, 0.1);
    padding: 15px;
    margin-bottom: 20px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.emoji-grid {
    display: grid;
    grid-template-columns: repeat(10, 1fr);
    gap: 10px;
    max-height: 200px;
    overflow-y: auto;
}

.emoji-item {
    font-size: 24px;
    cursor: pointer;
    text-align: center;
    padding: 10px;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.emoji-item:hover {
    background: rgba(102, 126, 234, 0.1);
    transform: scale(1.2);
}

/* 桌面端隐藏底部导航 - 默认隐藏 */
.mobile-nav {
    display: flex;
    justify-content: space-around;
    align-items: center;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 80px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(249, 250, 251, 0.95) 100%);
    backdrop-filter: blur(20px);
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.1), 0 0 0 1px rgba(255, 255, 255, 0.5);
    z-index: 1000;
    /* 适配底部安全区域 */
    padding-bottom: calc(10px + env(safe-area-inset-bottom));
    padding-top: 8px;
    border-top-left-radius: 24px;
    border-top-right-radius: 24px;
}

/* 大屏幕隐藏底部导航 */
@media (min-width: 768px) {
    .mobile-nav {
        display: none;
    }
}

.mobile-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: #9ca3af;
    font-size: 12px;
    padding: 12px 8px;
    position: relative;
    width: 20%;
    height: 100%;
    border-radius: 16px;
}

.mobile-nav-item i {
    font-size: 26px;
    margin-bottom: 4px;
    display: block;
    line-height: 1;
}

.mobile-nav-item span {
    font-weight: 500;
    letter-spacing: 0.2px;
}

.mobile-nav-item.active {
    color: #ff6b9d;
    font-weight: 600;
    background: linear-gradient(135deg, rgba(255, 107, 157, 0.1) 0%, rgba(255, 138, 171, 0.05) 100%);
    box-shadow: 0 4px 12px rgba(255, 107, 157, 0.15);
}

.mobile-nav-item.active i {
    color: #ff6b9d;
}

.mobile-nav-item.active span {
    font-weight: 700;
    color: #ff6b9d;
}

/* 导航项点击效果 - 伪元素 */
.mobile-nav-item::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: radial-gradient(circle, rgba(255, 107, 157, 0.3) 0%, transparent 70%);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s, opacity 0.4s;
    opacity: 0;
    z-index: -1;
}

.mobile-nav-item:active::after {
    width: 200px;
    height: 200px;
    opacity: 1;
    transition: width 0.6s, height 0.6s, opacity 0.1s;
}

/* 底部导航图标动画 */
@keyframes bounce {
    0%, 20%, 53%, 80%, 100% {
        transform: translate3d(0, 0, 0);
    }
    40%, 43% {
        transform: translate3d(0, -4px, 0);
    }
    70% {
        transform: translate3d(0, -2px, 0);
    }
    90% {
        transform: translate3d(0, -1px, 0);
    }
}

.mobile-nav-item.active i {
    animation: bounce 0.6s ease;
}

/* 响应式设计 */
@media (max-width: 768px) {
    /* 基础样式优化 */
    body {
        font-size: 14px;
        margin: 0;
        padding: 0;
        overflow-x: hidden;
        /* 适配刘海屏和底部安全区域 */
        padding-top: env(safe-area-inset-top);
        padding-bottom: env(safe-area-inset-bottom);
    }
    
    /* 容器样式 */
    .container {
        padding: 10px;
    }
    
    /* 主容器布局 */
    .main-container {
        flex-direction: column;
        min-height: 100vh;
    }
    
    /* 侧边栏 - 移动端隐藏 */
    .sidebar {
        display: none;
    }
    
    /* 内容区域 */
    .content {
        padding: 10px;
        padding-bottom: 100px; /* 为底部导航留出更大空间 */
        flex: 1;
    }
    
    /* 顶部导航优化 */
    .top-nav {
        padding: 12px 15px;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    }
    
    .top-nav .logo h1 {
        font-size: 20px;
    }
    
    .user-menu {
        gap: 10px;
    }
    
    .user-menu a {
        font-size: 12px;
        padding: 6px 10px;
    }
    
    /* 卡片样式 */
    .card {
        padding: 15px;
        border-radius: 12px;
        margin-bottom: 15px;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    }
    
    /* 标题样式 */
    h1 {
        font-size: 24px;
    }
    
    h2 {
        font-size: 20px;
    }
    
    h3 {
        font-size: 18px;
        margin-bottom: 15px;
    }
    
    /* 地图优化 - 占据更多屏幕空间 */
    #map {
        height: 450px;
        border-radius: 12px;
        margin-bottom: 15px;
    }
    
    /* 按钮样式优化 - 增大点击区域 */
    .btn {
        padding: 14px 24px;
        font-size: 16px;
        border-radius: 12px;
        min-width: 120px;
    }
    
    .refresh-btn {
        padding: 12px 20px;
        font-size: 14px;
        border-radius: 8px;
        margin-bottom: 15px;
        background-color: #667eea;
        color: white;
        border: none;
        cursor: pointer;
        box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
        width: 100%;
    }
    
    /* 位置信息容器 */
    .location-info-container {
        display: flex;
        flex-direction: column;
        gap: 15px;
    }
    
    .location-card {
        padding: 15px;
        border-radius: 12px;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    }
    
    /* 表单样式优化 */
    .form-group input,
    .form-group textarea,
    .form-group select {
        padding: 14px;
        font-size: 16px;
        border-radius: 12px;
    }
    
    /* 导航样式 */
    .nav ul {
        gap: 10px;
        flex-wrap: wrap;
    }
    
    .nav ul li a {
        padding: 10px 16px;
        font-size: 14px;
        border-radius: 20px;
    }
    
    /* 卡片网格 */
    .card-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    /* 表情网格 */
    .emoji-grid {
        grid-template-columns: repeat(8, 1fr);
        gap: 8px;
    }
    
    /* 头像样式 */
    .avatar {
        width: 50px;
        height: 50px;
    }
    
    .avatar-large {
        width: 80px;
        height: 80px;
    }
    
    /* 列表样式 */
    .list-item {
        padding: 15px;
    }
    
    /* 优化滚动体验 */
    * {
        -webkit-overflow-scrolling: touch;
        scroll-behavior: smooth;
    }
    
    /* 隐藏滚动条 */
    ::-webkit-scrollbar {
        width: 0;
        height: 0;
    }
    
    /* 优化触摸反馈 */
    button, a, .btn {
        -webkit-tap-highlight-color: transparent;
        transition: all 0.2s ease;
    }
    
    button:active, a:active, .btn:active {
        transform: scale(0.98);
    }
    
    /* 欢迎区域 */
    .welcome-section {
        flex-direction: column;
        text-align: center;
        gap: 15px;
        padding: 20px;
    }
    
    /* 情侣状态 */
    .couple-status {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 15px;
    }
    
    /* 移动端显示底部导航 */
    .mobile-nav {
        display: flex;
    }
}

/* 加载动画 */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(102, 126, 234, 0.1);
    border-radius: 50%;
    border-top-color: #667eea;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* 应用容器样式 */
.app-container {
    min-height: 100vh;
    background: #f9fafb;
    padding-bottom: 100px; /* 为底部导航留出更大空间 */
}

/* 页面标题 */
.page-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 30px 20px 20px;
    text-align: center;
    border-radius: 0 0 24px 24px;
    box-shadow: 0 4px 16px rgba(102, 126, 234, 0.3);
    margin-bottom: 20px;
}

.page-header h1 {
    margin: 0;
    font-size: 24px;
    font-weight: 700;
    background: transparent;
    -webkit-background-clip: none;
    -webkit-text-fill-color: white;
    border: none;
    padding: 0;
}

/* 个人资料头部 */
.profile-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    margin-bottom: 20px;
    border: 1px solid #e5e7eb;
}

.profile-basic {
    text-align: center;
    margin-top: 15px;
}

.profile-basic h2 {
    margin: 0 0 5px 0;
    font-size: 22px;
    color: #333;
}

.profile-username {
    margin: 0;
    color: #666;
    font-size: 14px;
    font-weight: 500;
}

/* 卡片网格（移动端） */
.cards-grid {
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 0 10px;
}

/* 信息列表样式 */
.info-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 16px;
}

.info-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.info-item:last-child {
    border-bottom: none;
}

.info-label {
    color: #666;
    font-size: 14px;
    font-weight: 500;
}

.info-value {
    color: #333;
    font-size: 14px;
    font-weight: 600;
    text-align: right;
}

/* 设置列表样式 */
.setting-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-top: 16px;
}

.setting-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px;
    background: rgba(249, 250, 251, 0.8);
    border-radius: 12px;
    transition: all 0.3s ease;
}

.setting-item:hover {
    background: rgba(243, 244, 246, 0.8);
    transform: translateX(4px);
}

.setting-info h4 {
    margin: 0 0 4px 0;
    font-size: 15px;
    color: #333;
    font-weight: 600;
}

.setting-info p {
    margin: 0;
    font-size: 12px;
    color: #9ca3af;
    line-height: 1.4;
}

/* 开关样式 */
.setting-toggle {
    position: relative;
    display: inline-block;
    width: 56px;
    height: 30px;
}

.toggle-checkbox {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-label {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #e5e7eb;
    transition: all 0.3s ease;
    border-radius: 30px;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.1);
}

.toggle-label:before {
    position: absolute;
    content: "";
    height: 24px;
    width: 24px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: all 0.3s ease;
    border-radius: 50%;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

.toggle-checkbox:checked + .toggle-label {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    box-shadow: inset 0 1px 3px rgba(102, 126, 234, 0.3);
}

.toggle-checkbox:checked + .toggle-label:before {
    transform: translateX(26px);
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.4);
}

/* 文件上传样式 */
.file-label {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 20px;
    background: linear-gradient(135deg, #f0f4f8 0%, #e2e8f0 100%);
    color: #4a5568;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
    font-size: 14px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.file-label:hover {
    background: linear-gradient(135deg, #e2e8f0 0%, #cbd5e0 100%);
    transform: translateY(-1px);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

.file-input {
    display: none;
}

/* 表单输入样式（适配移动端） */
.form-input {
    width: 100%;
    padding: 14px 18px;
    border: 2px solid rgba(226, 232, 240, 0.8);
    border-radius: 16px;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.95), rgba(249, 250, 251, 0.95));
    color: #1f2937;
    font-size: 16px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(10px);
    font-family: inherit;
    box-shadow: 
        0 1px 2px rgba(0, 0, 0, 0.05),
        inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

.form-input:focus {
    outline: none;
    border-color: #667eea;
    background: linear-gradient(145deg, rgba(255, 255, 255, 1), rgba(249, 250, 251, 1));
    box-shadow: 
        0 0 0 4px rgba(102, 126, 234, 0.15),
        0 4px 12px rgba(102, 126, 234, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
    transform: translateY(-2px);
}

/* 小文本样式 */
.small {
    font-size: 12px;
    color: #9ca3af;
    margin: 8px 0 0 0;
    line-height: 1.4;
}

/* 隐藏元素 */
.hidden {
    display: none;
}

/* 文本选择 */
::selection {
    background: rgba(102, 126, 234, 0.2);
    color: #333;
}

::-moz-selection {
    background: rgba(102, 126, 234, 0.2);
    color: #333;
}

/* 修复右上角头像显示问题 */
.user-menu a[href="profile.php"].avatar-small {
    width: 32px !important;
    height: 32px !important;
    border-radius: 50% !important;
    overflow: hidden !important;
    padding: 0 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.user-menu a[href="profile.php"].avatar-small img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    border-radius: 50% !important;
    margin: 0 !important;
}

/* 微信风格聊天界面样式 */
.chat-container {
    display: grid;
    grid-template-rows: 1fr auto;
    height: calc(100vh - 140px);
    background: #f5f5f5;
    position: relative;
    overflow: hidden;
}

.chat-messages {
    overflow-y: auto;
    padding: 16px 10px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    background: #f0f4f8;
    /* 自定义滚动条 */
    scrollbar-width: thin;
    scrollbar-color: rgba(0,0,0,0.2) transparent;
    min-height: 0; /* 防止flex子元素溢出 */
}

.chat-messages::-webkit-scrollbar {
    width: 6px;
}

.chat-messages::-webkit-scrollbar-track {
    background: transparent;
}

.chat-messages::-webkit-scrollbar-thumb {
    background: rgba(0,0,0,0.2);
    border-radius: 3px;
}

.chat-messages::-webkit-scrollbar-thumb:hover {
    background: rgba(0,0,0,0.3);
}

/* 适配移动端 */
@media (max-width: 768px) {
    .chat-container {
        height: calc(100vh - 130px);
        grid-template-rows: 1fr auto;
    }
    
    .chat-messages {
        padding: 12px 8px;
        gap: 10px;
        min-height: 0; /* 防止flex子元素溢出 */
    }
    
    /* 确保输入区域在移动端可见 */
    .message-form-container {
        position: relative;
        bottom: 0;
        left: 0;
        right: 0;
        z-index: 10;
    }
}

/* 消息行 */
.message-row {
    display: flex;
    align-items: flex-end;
    gap: 8px;
    margin-bottom: 8px;
    width: 100%;
}

/* 左侧消息（对方） */
.message-left {
    justify-content: flex-start;
}

/* 右侧消息（自己） */
.message-right {
    justify-content: flex-end;
    flex-direction: row-reverse;
}

/* 消息气泡容器 */
.message-bubble-container {
    display: flex;
    align-items: flex-end;
    max-width: 70%;
}

/* 左侧消息气泡容器 */
.message-left .message-bubble-container {
    justify-content: flex-start;
}

/* 右侧消息气泡容器 */
.message-right .message-bubble-container {
    justify-content: flex-end;
}

/* 头像 */
.message-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    overflow: hidden;
    background: #e5e5ea;
}

.message-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* 消息气泡 */
.message-bubble {
    max-width: 100%;
    padding: 10px 15px;
    border-radius: 18px;
    position: relative;
    word-wrap: break-word;
    box-shadow: 0 1px 2px rgba(0,0,0,0.1);
}

/* 自己的消息气泡 */
.my-message {
    background: #00b42a;
    color: white;
    border-bottom-right-radius: 4px;
}

/* 对方的消息气泡 */
.partner-message {
    background: white;
    color: #333;
    border-bottom-left-radius: 4px;
}

/* 消息内容 */
.message-content {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

/* 消息文本 */
.message-text {
    line-height: 1.4;
    font-size: 16px;
}

/* 消息图片 */
.message-image {
    margin: 8px 0;
}

.message-image img {
    max-width: 200px;
    border-radius: 12px;
}

/* 消息位置 */
.message-location {
    margin-top: 4px;
    font-size: 12px;
}

.message-location a {
    color: inherit;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 4px;
}

/* 消息时间 */
.message-time {
    font-size: 11px;
    opacity: 0.6;
    margin-top: 4px;
    text-align: right;
}

.message-left .message-time {
    text-align: left;
}

/* 发送消息表单容器 */
.message-form-container {
    background: white;
    position: relative;
    border-top: 1px solid #e5e5ea;
}

/* 位置状态提示 */
.location-status {
    padding: 8px 10px 0;
    font-size: 12px;
    color: #666;
    text-align: center;
    background: white;
}

/* 消息输入区域 */
.message-input-area {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px;
    background: white;
    border-top: 1px solid #e5e5ea;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.05);
}

/* 输入容器 */
.input-container {
    display: flex;
    flex-direction: column;
    width: 100%;
    background: white;
    border-radius: 20px;
    padding: 12px;
    gap: 10px;
    box-sizing: border-box;
}

/* 输入框容器 */
.input-wrapper {
    display: none;
}

/* 消息输入框 */
#content {
    flex: 1;
    border: 1px solid #e5e5ea;
    background: #f5f5f5;
    resize: none;
    min-height: 80px;
    max-height: 150px;
    font-size: 16px;
    padding: 12px 16px;
    outline: none;
    line-height: 1.4;
    font-family: inherit;
    border-radius: 18px;
    box-sizing: border-box;
    transition: all 0.3s ease;
}

#content:focus {
    border-color: #00b42a;
    background: white;
    box-shadow: 0 0 0 2px rgba(0, 180, 42, 0.1);
}

/* 输入框占位符 */
#content::placeholder {
    color: #999;
}

/* 底部按钮栏 */
.bottom-buttons {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    gap: 10px;
}

/* 左侧按钮组 */
.left-buttons {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* 适配移动端底部按钮间距 */
@media (max-width: 768px) {
    .bottom-buttons {
        gap: 12px;
    }
    
    .left-buttons {
        gap: 12px;
    }
}

/* 表情按钮 */
.emoji-btn {
    width: 44px;
    height: 44px;
    min-width: 44px;
    min-height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f5f5f5;
    border: 1px solid #e5e5ea;
    color: #666;
    font-size: 22px;
    cursor: pointer;
    padding: 0;
    flex-shrink: 0;
    text-align: center;
    line-height: 44px;
    box-sizing: border-box;
    transition: all 0.3s ease;
    overflow: hidden;
}

.emoji-btn:hover {
    background: #e5e5ea;
    transform: scale(1.05);
}

/* 图片上传按钮 */
.image-btn {
    width: 44px;
    height: 44px;
    min-width: 44px;
    min-height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f5f5f5;
    border: 1px solid #e5e5ea;
    color: #666;
    font-size: 22px;
    cursor: pointer;
    padding: 0;
    flex-shrink: 0;
    text-align: center;
    line-height: 44px;
    box-sizing: border-box;
    transition: all 0.3s ease;
    overflow: hidden;
}

.image-btn:hover {
    background: #e5e5ea;
    transform: scale(1.05);
}

/* 发送按钮 */
.send-btn {
    min-width: 80px;
    height: 40px;
    border-radius: 20px;
    background: #00b42a;
    color: white;
    border: none;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    padding: 0 20px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    box-sizing: border-box;
    transition: all 0.3s ease;
}

.send-btn:hover {
    background: #00a325;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 180, 42, 0.3);
}

.send-btn:active {
    transform: translateY(0);
    box-shadow: 0 1px 4px rgba(0, 180, 42, 0.3);
}

/* 适配移动端 */
@media (max-width: 768px) {
    .message-input-area {
        padding: 8px;
    }
    
    .input-container {
        padding: 10px;
        gap: 8px;
    }
    
    #content {
        min-height: 70px;
        font-size: 15px;
        padding: 10px 14px;
    }
    
    .bottom-buttons {
        gap: 8px;
    }
    
    .left-buttons {
        gap: 10px;
    }
    
    .emoji-btn,
    .image-btn {
        width: 44px;
        height: 44px;
        font-size: 20px;
        border-radius: 50%;
        min-width: 44px;
        min-height: 44px;
        flex-shrink: 0;
    }
    
    .send-btn {
        min-width: 70px;
        height: 36px;
        font-size: 15px;
        padding: 0 16px;
    }
}

/* 表情选择器 */
.emoji-picker {
    position: absolute;
    bottom: 120px;
    left: 10px;
    right: 10px;
    background: white;
    border-radius: 16px;
    box-shadow: 0 -2px 15px rgba(0,0,0,0.1);
    padding: 15px;
    z-index: 100;
}

/* 表情网格 */
.emoji-grid {
    display: grid;
    grid-template-columns: repeat(8, 1fr);
    gap: 12px;
}

/* 表情项 */
.emoji-item {
    font-size: 24px;
    cursor: pointer;
    text-align: center;
    padding: 8px;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.emoji-item:hover {
    background: #f0f0f0;
}

/* 图片预览 */
.image-preview {
    position: absolute;
    bottom: 120px;
    left: 10px;
    right: 10px;
    background: white;
    border-radius: 16px;
    box-shadow: 0 -2px 15px rgba(0,0,0,0.1);
    padding: 15px;
    z-index: 100;
}

/* 无消息状态 */
.no-chat-messages {
    text-align: center;
    padding: 60px 20px;
    color: #999;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    background: #f5f5f5;
    height: 100%;
    justify-content: center;
}

.no-chat-messages svg {
    width: 80px;
    height: 80px;
    opacity: 0.5;
}

.no-chat-messages h4 {
    margin: 0;
    font-size: 16px;
    color: #333;
}

.no-chat-messages p {
    margin: 0;
    font-size: 14px;
    color: #999;
}