/* 情侣空间后台管理 - 新版样式 */

:root {
    --theme-color: #ff6b9d;
    --theme-light: #ffc4d6;
    --theme-dark: #e91e63;
    --bg-color: #f5f5f5;
    --sidebar-bg: #2d1f24;
    --sidebar-width: 260px;
    --sidebar-collapsed: 70px;
    --card-bg: #ffffff;
    --text-color: #333;
    --text-light: #666;
    --border-color: #e0e0e0;
    --success-color: #4caf50;
    --error-color: #f44336;
    --shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    --shadow-hover: 0 4px 20px rgba(0, 0, 0, 0.12);
    --transition: all 0.3s ease;
    --header-height: 60px;
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', sans-serif;
    background: var(--bg-color);
    min-height: 100vh;
    color: var(--text-color);
}

/* ===== 登录页面 ===== */
.login-page {
    background: linear-gradient(135deg, #fff5f7 0%, #ffe0ec 100%);
}

.login-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.login-box {
    background: white;
    border-radius: 24px;
    padding: 50px;
    width: 100%;
    max-width: 400px;
    box-shadow: var(--shadow);
    text-align: center;
}

.login-logo {
    margin-bottom: 30px;
}

.login-heart {
    width: 70px;
    height: 70px;
    margin-bottom: 15px;
    animation: heartbeat 1.2s ease-in-out infinite;
}

.login-logo h1 {
    color: var(--theme-dark);
    font-size: 1.6rem;
    margin-bottom: 5px;
}

.login-logo p {
    color: var(--text-light);
    font-size: 0.95rem;
}

@keyframes heartbeat {
    0%, 100% { transform: scale(1); }
    14% { transform: scale(1.1); }
    28% { transform: scale(1); }
    42% { transform: scale(1.1); }
    70% { transform: scale(1); }
}

.login-form {
    text-align: left;
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 25px;
    color: var(--theme-color);
    text-decoration: none;
    font-size: 0.9rem;
    transition: var(--transition);
}

.back-link:hover {
    color: var(--theme-dark);
}

.link-icon {
    width: 16px;
    height: 16px;
}

/* ===== 移动端顶部栏 ===== */
.mobile-header {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--header-height);
    background: var(--sidebar-bg);
    color: white;
    align-items: center;
    padding: 0 15px;
    z-index: 100;
}

.menu-toggle {
    width: 40px;
    height: 40px;
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    transition: var(--transition);
}

.menu-toggle:hover {
    background: rgba(255, 255, 255, 0.1);
}

.menu-toggle svg {
    width: 24px;
    height: 24px;
}

.mobile-title {
    flex: 1;
    text-align: center;
    font-weight: 500;
}

.mobile-spacer {
    width: 40px;
}

/* ===== 管理后台布局 ===== */
.admin-wrapper {
    display: flex;
    min-height: 100vh;
}

/* ===== 侧边栏 ===== */
.sidebar {
    width: var(--sidebar-width);
    background: var(--sidebar-bg);
    color: white;
    display: flex;
    flex-direction: column;
    position: fixed;
    height: 100vh;
    z-index: 90;
    transition: width 0.3s ease;
}

.sidebar.collapsed {
    width: var(--sidebar-collapsed);
}

.sidebar-header {
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
}

.collapse-btn {
    width: 32px;
    height: 32px;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    border-radius: 8px;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: var(--transition);
}

.collapse-btn:hover {
    background: rgba(255, 255, 255, 0.2);
}

.collapse-btn svg {
    width: 18px;
    height: 18px;
    transition: transform 0.3s ease;
}

.sidebar.collapsed .collapse-btn svg {
    transform: rotate(180deg);
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    overflow: hidden;
    white-space: nowrap;
}

.logo-heart {
    width: 32px;
    height: 32px;
    flex-shrink: 0;
}

.logo-text {
    font-size: 1.1rem;
    font-weight: 600;
    opacity: 1;
    transition: opacity 0.2s ease;
}

.sidebar.collapsed .logo-text {
    opacity: 0;
    width: 0;
}

/* 导航 */
.sidebar-nav {
    flex: 1;
    padding: 15px 0;
    overflow-y: auto;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 16px 20px;
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: var(--transition);
    border-left: 3px solid transparent;
    position: relative;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
    min-height: 56px;
}

.nav-item svg {
    width: 22px;
    height: 22px;
    flex-shrink: 0;
}

.nav-label {
    font-size: 0.95rem;
    white-space: nowrap;
    opacity: 1;
    transition: opacity 0.2s ease;
}

.sidebar.collapsed .nav-label {
    opacity: 0;
    width: 0;
}

.nav-item:hover,
.nav-item.active {
    color: white;
    background: rgba(255, 107, 157, 0.2);
    border-left-color: var(--theme-color);
}

/* 工具提示（折叠时显示） */
.sidebar.collapsed .nav-item::after {
    content: attr(data-title);
    position: absolute;
    left: 100%;
    top: 50%;
    transform: translateY(-50%);
    background: var(--sidebar-bg);
    color: white;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 0.85rem;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    margin-left: 10px;
    z-index: 100;
}

.sidebar.collapsed .nav-item:hover::after {
    opacity: 1;
    visibility: visible;
}

/* 底部 */
.sidebar-footer {
    padding: 15px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.nav-logout {
    color: #ff8a80;
}

.nav-logout:hover {
    background: rgba(244, 67, 54, 0.2) !important;
    border-left-color: #f44336 !important;
}

/* 遮罩 */
.sidebar-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 80;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.sidebar-overlay.active {
    opacity: 1;
}

/* ===== 主内容区 ===== */
.main-content {
    flex: 1;
    margin-left: var(--sidebar-width);
    padding: 30px;
    min-height: 100vh;
    transition: margin-left 0.3s ease;
}

.sidebar.collapsed ~ .main-content {
    margin-left: var(--sidebar-collapsed);
}

/* 内容头部 */
.content-header {
    margin-bottom: 25px;
}

.content-header h1 {
    font-size: 1.6rem;
    color: var(--text-color);
    margin-bottom: 5px;
}

.content-header p {
    color: var(--text-light);
    font-size: 0.95rem;
}

/* ===== 提示框 ===== */
.alert {
    padding: 15px 20px;
    border-radius: 12px;
    margin-bottom: 20px;
    font-size: 0.95rem;
    animation: slideDown 0.3s ease;
    transition: opacity 0.3s ease;
}

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

.alert-success {
    background: #e8f5e9;
    color: #2e7d32;
    border: 1px solid #a5d6a7;
}

.alert-error {
    background: #ffebee;
    color: #c62828;
    border: 1px solid #ef9a9a;
}

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

.card-title {
    font-size: 1.1rem;
    color: var(--text-color);
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--border-color);
}

/* ===== 表单 ===== */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 0.9rem;
    color: var(--text-color);
    margin-bottom: 8px;
    font-weight: 500;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid var(--border-color);
    border-radius: 10px;
    font-size: 1rem;
    transition: var(--transition);
    font-family: inherit;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--theme-color);
    box-shadow: 0 0 0 3px rgba(255, 107, 157, 0.1);
}

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

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-hint {
    font-size: 0.85rem;
    color: var(--text-light);
    margin-top: -10px;
    margin-bottom: 20px;
}

.form-actions {
    display: flex;
    gap: 10px;
    margin-top: 25px;
}

/* 颜色选择器 */
.color-picker {
    display: flex;
    align-items: center;
    gap: 12px;
}

.color-picker input[type="color"] {
    width: 50px;
    height: 45px;
    padding: 3px;
    cursor: pointer;
    border-radius: 8px;
}

.color-value {
    font-family: monospace;
    color: var(--text-light);
    font-size: 0.9rem;
}

.color-preview {
    margin-top: 20px;
}

.preview-box {
    border-radius: 12px;
    padding: 30px;
    text-align: center;
}

.preview-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

/* ===== 按钮 ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 24px;
    border: none;
    border-radius: 10px;
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
    min-height: 48px;
}

.btn-icon {
    width: 18px;
    height: 18px;
}

.btn-block {
    width: 100%;
}

.btn-primary {
    background: linear-gradient(135deg, var(--theme-color) 0%, var(--theme-dark) 100%);
    color: white;
}

.btn-primary:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(255, 107, 157, 0.4);
}

.btn-primary:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

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

.btn-outline:hover {
    border-color: var(--theme-color);
    color: var(--theme-color);
}

/* ===== 统计卡片 ===== */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 25px;
}

.stat-card {
    background: var(--card-bg);
    border-radius: 16px;
    padding: 25px;
    display: flex;
    align-items: center;
    gap: 20px;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.stat-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-hover);
}

.stat-icon {
    width: 55px;
    height: 55px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.stat-icon svg {
    width: 28px;
    height: 28px;
    color: white;
}

.messages-icon {
    background: linear-gradient(135deg, #ff6b9d 0%, #e91e63 100%);
}

.images-icon {
    background: linear-gradient(135deg, #42a5f5 0%, #1976d2 100%);
}

.stat-info {
    display: flex;
    flex-direction: column;
}

.stat-number {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-color);
    line-height: 1;
}

.stat-label {
    font-size: 0.9rem;
    color: var(--text-light);
    margin-top: 5px;
}

/* ===== 快速操作 ===== */
.quick-actions {
    margin-bottom: 25px;
}

.subsection-title {
    font-size: 1.1rem;
    color: var(--text-color);
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.count-badge {
    font-size: 0.8rem;
    background: var(--theme-light);
    color: var(--theme-dark);
    padding: 3px 10px;
    border-radius: 20px;
    font-weight: 500;
}

.action-buttons {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
}

.action-btn {
    background: var(--card-bg);
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    text-decoration: none;
    color: var(--text-color);
    transition: var(--transition);
    box-shadow: var(--shadow);
}

.action-btn:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-hover);
    color: var(--theme-color);
}

.action-btn svg {
    width: 32px;
    height: 32px;
    margin-bottom: 10px;
    color: var(--theme-color);
}

/* ===== 空状态 ===== */
.empty-state {
    text-align: center;
    padding: 50px 20px;
    color: var(--text-light);
}

.empty-icon {
    width: 80px;
    height: 80px;
    margin-bottom: 20px;
    opacity: 0.5;
}

.empty-state p {
    margin-bottom: 20px;
}

/* ===== 消息列表 ===== */
.messages-preview,
.messages-list {
    display: grid;
    gap: 15px;
}

.message-card {
    background: var(--card-bg);
    border-radius: 16px;
    padding: 20px;
    box-shadow: var(--shadow);
    position: relative;
}

.message-bubble {
    background: linear-gradient(135deg, #fff5f7 0%, #ffe0ec 100%);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 15px;
    position: relative;
}

.message-bubble::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 30px;
    border-width: 10px 10px 0;
    border-style: solid;
    border-color: #ffe0ec transparent transparent;
}

.message-content {
    line-height: 1.7;
    color: var(--text-color);
}

.message-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 10px;
}

.message-author {
    color: var(--theme-color);
    font-style: italic;
    font-size: 0.9rem;
}

.message-meta {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 0.8rem;
    color: var(--text-light);
}

.meta-icon {
    width: 14px;
    height: 14px;
}

.no-delete-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: #fff3e0;
    color: #e65100;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 500;
}

.view-all {
    display: inline-block;
    margin-top: 15px;
    color: var(--theme-color);
    text-decoration: none;
    font-size: 0.9rem;
}

.view-all:hover {
    text-decoration: underline;
}

/* ===== 图片管理 ===== */
.upload-area {
    border: 2px dashed var(--theme-light);
    border-radius: 16px;
    padding: 40px;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    min-height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
    user-select: none;
}

.upload-area:hover,
.upload-area.dragover {
    border-color: var(--theme-color);
    background: rgba(255, 107, 157, 0.05);
}

.upload-area:active {
    background: rgba(255, 107, 157, 0.1);
}

.upload-placeholder {
    pointer-events: none;
}

.upload-icon {
    width: 50px;
    height: 50px;
    color: var(--theme-color);
    margin-bottom: 15px;
}

.upload-placeholder p {
    color: var(--text-color);
    font-weight: 500;
    margin-bottom: 5px;
}

.upload-hint {
    font-size: 0.85rem;
    color: var(--text-light);
}

.upload-preview {
    position: relative;
    width: 100%;
}

.upload-preview img {
    max-height: 200px;
    max-width: 100%;
    border-radius: 10px;
}

.remove-preview {
    position: absolute;
    top: -10px;
    right: -10px;
    width: 36px;
    height: 36px;
    background: #f44336;
    color: white;
    border: none;
    border-radius: 50%;
    font-size: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
    z-index: 10;
}

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

.image-card {
    background: var(--card-bg);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.image-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-hover);
}

.image-wrapper {
    aspect-ratio: 1;
    overflow: hidden;
}

.image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.image-card:hover .image-wrapper img {
    transform: scale(1.05);
}

.image-desc {
    padding: 12px 15px;
    font-size: 0.9rem;
    color: var(--text-color);
    border-bottom: 1px solid var(--border-color);
}

.image-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 15px;
    font-size: 0.8rem;
    color: var(--text-light);
}

.image-date {
    display: flex;
    align-items: center;
    gap: 5px;
}

/* ===== 时间设置 ===== */
.current-timer {
    text-align: center;
}

.timer-info {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin: 20px 0;
}

.timer-item {
    text-align: center;
}

.timer-value {
    display: block;
    font-size: 3rem;
    font-weight: 700;
    color: var(--theme-color);
    line-height: 1;
}

.timer-unit {
    font-size: 1rem;
    color: var(--text-light);
}

.timer-hint {
    color: var(--text-light);
    font-size: 0.9rem;
}

.quick-dates {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 12px;
}

.quick-date-btn {
    background: white;
    border: 2px solid var(--border-color);
    border-radius: 12px;
    padding: 15px;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
}

.quick-date-btn:hover {
    border-color: var(--theme-color);
    background: rgba(255, 107, 157, 0.05);
}

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

.quick-value {
    font-size: 0.8rem;
    color: var(--text-light);
}

/* ===== 移动端触摸优化 ===== */
@media (max-width: 768px) {
    :root {
        --sidebar-width: 280px;
    }
    
    /* 移动端顶部栏 */
    .mobile-header {
        display: flex;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        height: var(--header-height);
        background: var(--sidebar-bg);
        color: white;
        align-items: center;
        padding: 0 15px;
        z-index: 1000;
        box-shadow: 0 2px 10px rgba(0,0,0,0.2);
    }
    
    .menu-toggle {
        width: 48px;
        height: 48px;
        background: none;
        border: none;
        color: white;
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: center;
        border-radius: 8px;
        transition: var(--transition);
        -webkit-tap-highlight-color: transparent;
        touch-action: manipulation;
    }
    
    .menu-toggle:active {
        background: rgba(255, 255, 255, 0.2);
    }
    
    .menu-toggle svg {
        width: 24px;
        height: 24px;
    }
    
    /* 侧边栏 */
    .sidebar {
        transform: translateX(-100%);
        width: var(--sidebar-width) !important;
        z-index: 1100;
        box-shadow: 2px 0 20px rgba(0,0,0,0.3);
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    .sidebar-nav {
        padding: 10px 0;
    }
    
    .nav-item {
        padding: 18px 20px;
        min-height: 60px;
    }
    
    .sidebar.mobile-open {
        transform: translateX(0);
    }
    
    .sidebar.collapsed {
        width: var(--sidebar-width) !important;
    }
    
    .sidebar.collapsed .nav-label,
    .sidebar.collapsed .logo-text {
        opacity: 1;
        width: auto;
    }
    
    /* 遮罩 */
    .sidebar-overlay {
        display: block;
        z-index: 1050;
    }
    
    /* 主内容区 */
    .main-content {
        margin-left: 0;
        padding: 75px 12px 20px;
        position: relative;
        z-index: 1;
    }
    
    .sidebar.collapsed ~ .main-content {
        margin-left: 0;
    }
    
    /* 内容头部 */
    .content-header {
        margin-bottom: 20px;
    }
    
    .content-header h1 {
        font-size: 1.4rem;
    }
    
    /* 表单卡片 */
    .form-card {
        padding: 18px;
        margin-bottom: 15px;
        border-radius: 14px;
    }
    
    .card-title {
        font-size: 1rem;
        margin-bottom: 15px;
        padding-bottom: 12px;
    }
    
    /* 表单输入框优化 */
    .form-row {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .form-group {
        margin-bottom: 20px;
    }
    
    .form-group label {
        font-size: 0.95rem;
        margin-bottom: 8px;
        display: block;
        font-weight: 500;
    }
    
    .form-group input,
    .form-group textarea,
    .form-group select {
        padding: 16px;
        font-size: 16px; /* 防止iOS缩放 */
        border-radius: 12px;
        border: 2px solid var(--border-color);
        -webkit-appearance: none;
        appearance: none;
        min-height: 52px;
        touch-action: manipulation;
        width: 100%;
        background: white;
    }
    
    .form-group input:focus,
    .form-group textarea:focus,
    .form-group select:focus {
        border-color: var(--theme-color);
        box-shadow: 0 0 0 4px rgba(255, 107, 157, 0.15);
        outline: none;
    }
    
    .form-group textarea {
        min-height: 120px;
    }
    
    /* 确保输入框不会被遮挡 */
    .form-card {
        position: relative;
        z-index: 1;
    }
    
    /* 按钮优化 */
    .btn {
        padding: 16px 24px;
        font-size: 1rem;
        min-height: 52px;
        border-radius: 12px;
        -webkit-tap-highlight-color: transparent;
        touch-action: manipulation;
    }
    
    .btn:active {
        transform: scale(0.97);
    }
    
    .form-actions {
        margin-top: 20px;
    }
    
    .form-actions .btn {
        width: 100%;
    }
    
    /* 统计卡片 */
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .stat-card {
        padding: 18px;
    }
    
    .stat-icon {
        width: 48px;
        height: 48px;
    }
    
    .stat-number {
        font-size: 1.8rem;
    }
    
    /* 快速操作 */
    .action-buttons {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    
    .action-btn {
        padding: 18px 12px;
        border-radius: 12px;
        touch-action: manipulation;
        -webkit-tap-highlight-color: transparent;
        min-height: 80px;
    }
    
    .action-btn svg {
        width: 28px;
        height: 28px;
    }
    
    /* 消息卡片 */
    .message-card {
        padding: 15px;
    }
    
    .message-bubble {
        padding: 15px;
    }
    
    .message-footer {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
        padding: 0;
    }
    
    /* 上传区域 */
    .upload-area {
        padding: 30px 20px;
        min-height: 150px;
    }
    
    .upload-icon {
        width: 40px;
        height: 40px;
    }
    
    .remove-preview {
        width: 44px;
        height: 44px;
        font-size: 22px;
    }
    
    /* 图片网格 */
    .images-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    
    .image-card {
        border-radius: 12px;
    }
    
    /* 时间设置 */
    .timer-info {
        gap: 30px;
    }
    
    .timer-value {
        font-size: 2.5rem;
    }
    
    .quick-dates {
        grid-template-columns: repeat(3, 1fr);
        gap: 8px;
    }
    
    .quick-date-btn {
        padding: 16px 8px;
        touch-action: manipulation;
        -webkit-tap-highlight-color: transparent;
        min-height: 70px;
    }
    
    /* 登录页面 */
    .login-box {
        padding: 30px 20px;
        margin: 10px;
    }
    
    .login-logo h1 {
        font-size: 1.4rem;
    }
    
    /* 提示框 */
    .alert {
        padding: 12px 16px;
        font-size: 0.9rem;
    }
    
    /* 颜色选择器 */
    .color-picker input[type="color"] {
        width: 60px;
        height: 48px;
    }
    
    .preview-box {
        padding: 20px;
    }
}

@media (max-width: 480px) {
    .main-content {
        padding: 70px 10px 15px;
    }
    
    .action-buttons {
        grid-template-columns: 1fr;
    }
    
    .images-grid {
        grid-template-columns: 1fr;
    }
    
    .quick-dates {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .timer-info {
        gap: 20px;
    }
    
    .timer-value {
        font-size: 2rem;
    }
    
    .form-card {
        padding: 15px;
    }
}

@media (max-width: 480px) {
    .action-buttons {
        grid-template-columns: 1fr;
    }
    
    .images-grid {
        grid-template-columns: 1fr;
    }
}

/* ===== 滚动条 ===== */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: var(--theme-light);
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--theme-color);
}