/* 全局样式 - 缩小布局 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #ff6b9d;
    --secondary-color: #4ecdc4;
    --accent-color: #ffd166;
    --dark-color: #2b2d42;
    --light-color: #f8f9fa;
    --success-color: #06d6a0;
    --danger-color: #ef476f;
    --warning-color: #ffd166;
    --info-color: #118ab2;
    
    --border-radius: 16px;  /* 缩小边框半径 */
    --box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);  /* 缩小阴影 */
    --transition: all 0.25s ease;  /* 加快过渡 */
}

body {
    font-family: 'Segoe UI', 'Microsoft YaHei', sans-serif;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    min-height: 100vh;
    color: var(--dark-color);
    line-height: 1.5;  /* 缩小行高 */
    overflow-x: hidden;
    font-size: 0.95rem;  /* 缩小基础字体 */
}

.container {
    max-width: 1100px;  /* 缩小最大宽度 */
    margin: 0 auto;
    padding: 15px;  /* 缩小内边距 */
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;  /* 改为顶部对齐 */
}

/* 卡片样式 */
.card {
    background: white;
    border-radius: var(--border-radius);
    padding: 30px;  /* 缩小内边距 */
    box-shadow: var(--box-shadow);
    backdrop-filter: blur(8px);  /* 缩小模糊效果 */
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* 标题样式 */
h1 {
    color: var(--dark-color);
    font-size: 2.2rem;  /* 缩小标题 */
    margin-bottom: 15px;  /* 缩小边距 */
    text-align: center;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

h2 {
    color: var(--dark-color);
    font-size: 1.6rem;  /* 缩小 */
    margin-bottom: 12px;  /* 缩小 */
}

h3 {
    color: var(--dark-color);
    font-size: 1.2rem;  /* 缩小 */
    margin-bottom: 8px;  /* 缩小 */
}

h4 {
    color: var(--dark-color);
    font-size: 1.1rem;  /* 缩小 */
    margin-bottom: 6px;  /* 缩小 */
}

/* 表单样式 */
.form-group {
    margin-bottom: 15px;  /* 缩小 */
}

.form-control {
    width: 100%;
    padding: 12px 16px;  /* 缩小 */
    font-size: 0.95rem;  /* 缩小 */
    border: 2px solid #e0e0e0;
    border-radius: 12px;  /* 缩小 */
    transition: var(--transition);
    background: rgba(255, 255, 255, 0.9);
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(255, 107, 157, 0.08);  /* 缩小 */
}

label {
    display: block;
    margin-bottom: 6px;  /* 缩小 */
    font-weight: 600;
    color: var(--dark-color);
    font-size: 0.9rem;  /* 缩小 */
}

/* 按钮样式 */
.btn {
    display: inline-block;
    padding: 12px 24px;  /* 缩小 */
    font-size: 0.95rem;  /* 缩小 */
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    border: none;
    border-radius: 12px;  /* 缩小 */
    cursor: pointer;
    transition: var(--transition);
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    box-shadow: 0 4px 12px rgba(255, 107, 157, 0.25);  /* 缩小 */
}

.btn:hover {
    transform: translateY(-1px);  /* 减小悬浮效果 */
    box-shadow: 0 6px 16px rgba(255, 107, 157, 0.35);  /* 缩小 */
}

.btn:active {
    transform: translateY(0);
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
}

.btn-secondary {
    background: linear-gradient(135deg, var(--secondary-color), var(--accent-color));
}

.btn-danger {
    background: linear-gradient(135deg, var(--danger-color), #ff6b9d);
}

.btn-block {
    width: 100%;
}

.btn-sm {
    padding: 6px 12px;  /* 缩小 */
    font-size: 0.85rem;  /* 缩小 */
}

.btn-xs {
    padding: 4px 8px;  /* 缩小 */
    font-size: 0.8rem;  /* 缩小 */
}

/* 动画效果 */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(15px);  /* 减小移动距离 */
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.4s ease forwards;  /* 加快动画 */
}

.delayed-1 { animation-delay: 0.1s; opacity: 0; }
.delayed-2 { animation-delay: 0.2s; opacity: 0; }
.delayed-3 { animation-delay: 0.3s; opacity: 0; }
.delayed-4 { animation-delay: 0.4s; opacity: 0; }
.delayed-5 { animation-delay: 0.5s; opacity: 0; }

/* 结果容器 */
.result-container {
    margin-top: 20px;  /* 缩小 */
    animation: fadeIn 0.4s ease;
}

.result {
    padding: 15px;  /* 缩小 */
    border-radius: 12px;  /* 缩小 */
    margin-bottom: 12px;  /* 缩小 */
}

.result.success {
    background: linear-gradient(135deg, rgba(6, 214, 160, 0.08), rgba(255, 209, 102, 0.08));
    border: 2px solid var(--success-color);
}

.result.error {
    background: linear-gradient(135deg, rgba(239, 71, 111, 0.08), rgba(255, 107, 157, 0.08));
    border: 2px solid var(--danger-color);
}

.token {
    font-family: 'Courier New', monospace;
    font-size: 1.1rem;  /* 缩小 */
    font-weight: bold;
    color: var(--dark-color);
    background: rgba(0, 0, 0, 0.04);
    padding: 4px 8px;  /* 缩小 */
    border-radius: 6px;  /* 缩小 */
    letter-spacing: 1px;  /* 减小字母间距 */
}

.expiry {
    color: #666;
    font-size: 0.85rem;  /* 缩小 */
    margin-top: 8px;  /* 缩小 */
}

.note {
    color: #888;
    font-size: 0.75rem;  /* 缩小 */
    margin-top: 4px;  /* 缩小 */
}

/* 问题框样式 */
.question-box {
    background: linear-gradient(135deg, rgba(255, 209, 102, 0.08), rgba(255, 107, 157, 0.08));
    padding: 15px;  /* 缩小 */
    border-radius: 12px;  /* 缩小 */
    margin-bottom: 20px;  /* 缩小 */
    border: 2px solid rgba(255, 107, 157, 0.25);
}

#question-text {
    font-size: 1.1rem;  /* 缩小 */
    color: var(--dark-color);
    font-weight: 500;
    line-height: 1.5;  /* 缩小 */
}

/* 隐藏类 */
.hidden {
    display: none !important;
}

/* 页脚链接 */
.footer-links {
    margin-top: 20px;  /* 缩小 */
    text-align: center;
}

.footer-links a {
    color: var(--primary-color);
    text-decoration: none;
    margin: 0 12px;  /* 缩小 */
    font-weight: 500;
    transition: var(--transition);
    position: relative;
    display: inline-block;
    font-size: 0.9rem;  /* 缩小 */
}

.footer-links a:hover {
    color: var(--secondary-color);
}

.footer-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -4px;  /* 向上移动 */
    left: 0;
    background: var(--primary-color);
    transition: var(--transition);
}

.footer-links a:hover::after {
    width: 100%;
}

/* 首页样式 */
.header {
    text-align: center;
    margin-bottom: 25px;  /* 缩小 */
}

/* 相恋时间板块 - 进一步缩小 */
.love-timer.compact {
    transform: scale(0.5);  /* 缩小到50% */
    transform-origin: center;
    margin: -30px 0 5px 0;  /* 调整边距 */
    padding: 12px;  /* 缩小 */
    background: linear-gradient(135deg, rgba(255, 107, 157, 0.08), rgba(78, 205, 196, 0.08));
    border-radius: 14px;  /* 缩小 */
    border: 2px solid rgba(255, 107, 157, 0.25);
}

/* 时间显示样式 */
.time-display {
    display: flex;
    justify-content: center;
    gap: 12px;  /* 缩小 */
    margin: 12px 0;  /* 缩小 */
    flex-wrap: wrap;
}

.time-unit {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: linear-gradient(135deg, rgba(255, 107, 157, 0.08), rgba(78, 205, 196, 0.08));
    padding: 8px 12px;  /* 缩小 */
    border-radius: 8px;  /* 缩小 */
    min-width: 55px;  /* 缩小 */
    backdrop-filter: blur(4px);  /* 缩小 */
}

.time-number {
    font-size: 1.6rem;  /* 缩小 */
    font-weight: bold;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.08);  /* 缩小 */
}

.time-label {
    font-size: 0.8rem;  /* 缩小 */
    color: #666;
    margin-top: 4px;  /* 缩小 */
    font-weight: 500;
}

.start-date {
    font-size: 0.9rem;  /* 缩小 */
    color: #666;
    margin-bottom: 8px;  /* 缩小 */
    font-weight: 500;
}

.love-quote {
    font-size: 0.8rem;  /* 缩小 */
    color: var(--primary-color);
    margin-top: 8px;  /* 缩小 */
    font-style: italic;
}

.content {
    flex: 1;
}

.section {
    background: white;
    border-radius: var(--border-radius);
    padding: 20px;  /* 缩小 */
    margin-bottom: 20px;  /* 缩小 */
    box-shadow: var(--box-shadow);
    border: 1px solid rgba(255, 107, 157, 0.08);
}

/* 板块头部样式 */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;  /* 缩小 */
    flex-wrap: wrap;
    gap: 12px;  /* 缩小 */
}

.section-header h2 {
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;  /* 缩小 */
}

/* 音频板块样式 */
.audio-section {
    position: relative;
}

.audio-controls-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;  /* 缩小 */
}

/* 音频列表样式 */
.audio-list-container {
    max-height: 200px;  /* 显示4行的初始高度 */
    overflow: hidden;
    transition: max-height 0.3s ease;
    margin-bottom: 15px;  /* 缩小 */
}

.audio-list-container.expanded {
    max-height: 500px;  /* 展开后的高度 */
    overflow-y: auto;
}

.audio-list {
    display: flex;
    flex-direction: column;
    gap: 8px;  /* 缩小 */
}

.audio-item {
    display: flex;
    align-items: center;
    padding: 12px 15px;  /* 缩小 */
    background: rgba(255, 255, 255, 0.8);
    border-radius: 10px;  /* 缩小 */
    border: 1px solid rgba(255, 107, 157, 0.15);
    transition: var(--transition);
    cursor: pointer;
    position: relative;
}

.audio-item:hover {
    background: rgba(255, 107, 157, 0.08);
    transform: translateY(-1px);
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.1);
}

.audio-item.active {
    background: linear-gradient(135deg, rgba(255, 107, 157, 0.15), rgba(78, 205, 196, 0.15));
    border-color: var(--primary-color);
}

.audio-item-content {
    display: flex;
    align-items: center;
    flex: 1;
    gap: 12px;  /* 缩小 */
}

.audio-icon {
    width: 40px;  /* 缩小 */
    height: 40px;  /* 缩小 */
    border-radius: 8px;  /* 缩小 */
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;  /* 缩小 */
    flex-shrink: 0;
}

.audio-info {
    flex: 1;
    min-width: 0;  /* 防止内容溢出 */
}

.audio-name {
    font-weight: 600;
    color: var(--dark-color);
    font-size: 0.95rem;  /* 缩小 */
    margin-bottom: 3px;  /* 缩小 */
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.audio-meta {
    display: flex;
    align-items: center;
    gap: 10px;  /* 缩小 */
    font-size: 0.8rem;  /* 缩小 */
    color: #888;
}

.audio-author {
    display: flex;
    align-items: center;
    gap: 4px;  /* 缩小 */
}

.audio-time {
    display: flex;
    align-items: center;
    gap: 4px;  /* 缩小 */
}

.audio-play-btn {
    width: 36px;  /* 缩小 */
    height: 36px;  /* 缩小 */
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border: none;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    flex-shrink: 0;
    font-size: 0.9rem;  /* 缩小 */
}

.audio-play-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.audio-play-btn.playing::before {
    content: '⏸';  /* 暂停图标 */
}

.audio-play-btn:not(.playing)::before {
    content: '▶';  /* 播放图标 */
}

/* 音频播放控制条 */
.audio-player-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: white;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    padding: 12px 20px;  /* 缩小 */
    display: flex;
    align-items: center;
    gap: 15px;  /* 缩小 */
    z-index: 1000;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.audio-player-bar.visible {
    transform: translateY(0);
}

.audio-player-info {
    flex: 1;
    min-width: 0;
}

.audio-player-name {
    font-weight: 600;
    color: var(--dark-color);
    font-size: 0.95rem;  /* 缩小 */
    margin-bottom: 3px;  /* 缩小 */
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.audio-player-progress {
    display: flex;
    align-items: center;
    gap: 10px;  /* 缩小 */
    flex: 2;
}

.audio-player-time {
    font-size: 0.8rem;  /* 缩小 */
    color: #888;
    min-width: 40px;  /* 缩小 */
    text-align: center;
}

.audio-player-slider {
    flex: 1;
    height: 4px;  /* 缩小 */
    background: #e0e0e0;
    border-radius: 2px;
    overflow: hidden;
    cursor: pointer;
}

.audio-player-progress-bar {
    height: 100%;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    width: 0%;
    transition: width 0.1s linear;
}

.audio-player-controls {
    display: flex;
    align-items: center;
    gap: 10px;  /* 缩小 */
}

.audio-control-btn {
    width: 32px;  /* 缩小 */
    height: 32px;  /* 缩小 */
    border-radius: 50%;
    background: rgba(255, 107, 157, 0.1);
    border: none;
    color: var(--primary-color);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.audio-control-btn:hover {
    background: rgba(255, 107, 157, 0.2);
    transform: scale(1.05);
}

/* 音频列表控制 */
.audio-list-controls {
    display: flex;
    gap: 10px;  /* 缩小 */
    margin-top: 15px;  /* 缩小 */
}

.toggle-audio-list {
    color: var(--primary-color);
    background: none;
    border: none;
    cursor: pointer;
    font-size: 0.85rem;  /* 缩小 */
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 5px;  /* 缩小 */
    transition: var(--transition);
}

.toggle-audio-list:hover {
    color: var(--secondary-color);
}

.toggle-audio-list i {
    font-size: 0.8rem;  /* 缩小 */
    transition: transform 0.3s ease;
}

.toggle-audio-list.expanded i {
    transform: rotate(180deg);
}

/* 音频删除功能 */
.audio-delete-mode {
    margin-top: 15px;  /* 缩小 */
    padding: 12px;  /* 缩小 */
    background: rgba(255, 107, 157, 0.05);
    border-radius: 10px;  /* 缩小 */
    border: 1px solid rgba(255, 107, 157, 0.2);
}

.audio-delete-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;  /* 缩小 */
}

.delete-checkboxes {
    display: flex;
    flex-direction: column;
    gap: 8px;  /* 缩小 */
    margin-bottom: 10px;  /* 缩小 */
}

.delete-checkbox {
    display: flex;
    align-items: center;
    gap: 8px;  /* 缩小 */
    cursor: pointer;
    padding: 6px 10px;  /* 缩小 */
    border-radius: 6px;  /* 缩小 */
    transition: var(--transition);
}

.delete-checkbox:hover {
    background: rgba(255, 107, 157, 0.1);
}

.delete-checkbox input[type="checkbox"] {
    width: 16px;  /* 缩小 */
    height: 16px;  /* 缩小 */
}

.delete-checkbox span {
    font-size: 0.9rem;  /* 缩小 */
}

/* 确认删除模态框 */
.delete-confirm-modal .modal-content {
    max-width: 450px;  /* 缩小 */
}

.delete-confirm-content {
    text-align: center;
}

.delete-warning-icon {
    font-size: 3rem;  /* 缩小 */
    color: var(--danger-color);
    margin-bottom: 15px;  /* 缩小 */
}

.delete-confirm-title {
    color: var(--danger-color);
    margin-bottom: 12px;  /* 缩小 */
}

.delete-confirm-text {
    color: #666;
    margin-bottom: 20px;  /* 缩小 */
    line-height: 1.5;
}

.delete-countdown {
    margin-bottom: 20px;  /* 缩小 */
    font-size: 1.2rem;  /* 缩小 */
    color: var(--danger-color);
    font-weight: 600;
}

.delete-confirm-btn {
    background: var(--danger-color) !important;
    width: 100%;
    opacity: 0.5;
    cursor: not-allowed !important;
    transition: opacity 0.3s ease;
}

.delete-confirm-btn.active {
    opacity: 1;
    cursor: pointer !important;
}

/* 音频添加按钮 */
.add-audio-btn {
    display: flex;
    align-items: center;
    gap: 6px;  /* 缩小 */
}

/* 音频添加模态框 */
.add-audio-modal .modal-content {
    max-width: 500px;  /* 缩小 */
}

.audio-preview-item {
    display: flex;
    align-items: center;
    padding: 10px;  /* 缩小 */
    background: rgba(0, 0, 0, 0.02);
    border-radius: 8px;  /* 缩小 */
    margin-top: 10px;  /* 缩小 */
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.audio-preview-icon {
    width: 32px;  /* 缩小 */
    height: 32px;  /* 缩小 */
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 6px;  /* 缩小 */
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    margin-right: 10px;  /* 缩小 */
    flex-shrink: 0;
}

.audio-preview-info {
    flex: 1;
}

.audio-preview-name {
    font-weight: 600;
    font-size: 0.9rem;  /* 缩小 */
    margin-bottom: 3px;  /* 缩小 */
}

.audio-preview-size {
    font-size: 0.8rem;  /* 缩小 */
    color: #888;
}

/* 回忆卡片样式 */
.memories-container {
    display: flex;
    flex-direction: column;
    gap: 15px;  /* 缩小 */
}

.memory-card {
    background: white;
    border-radius: var(--border-radius);
    padding: 20px;  /* 缩小 */
    box-shadow: var(--box-shadow);
    transition: var(--transition);
    border: 1px solid rgba(255, 107, 157, 0.08);
    animation: slideInUp 0.4s ease;  /* 加快动画 */
    position: relative;
    overflow: hidden;
}

.memory-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;  /* 缩小 */
    height: 100%;
    background: linear-gradient(to bottom, var(--primary-color), var(--secondary-color));
    border-radius: 4px 0 0 4px;
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(15px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.memory-header {
    display: flex;
    align-items: center;
    margin-bottom: 15px;  /* 缩小 */
}

.author-info {
    display: flex;
    align-items: center;
    gap: 12px;  /* 缩小 */
}

.avatar {
    width: 42px;  /* 缩小 */
    height: 42px;  /* 缩小 */
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid var(--primary-color);
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    padding: 2px;
}

.avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.author-details {
    flex: 1;
}

.author-name {
    font-size: 1.1rem;  /* 缩小 */
    font-weight: 600;
    color: var(--dark-color);
    margin: 0 0 4px 0;
}

.memory-time {
    font-size: 0.8rem;  /* 缩小 */
    color: #888;
    margin: 0;
}

.memory-title {
    font-size: 1.2rem;  /* 缩小 */
    color: var(--dark-color);
    margin: 0 0 12px 0;
    font-weight: 600;
    padding-bottom: 8px;  /* 缩小 */
    border-bottom: 2px solid rgba(255, 107, 157, 0.08);
}

.memory-text {
    margin-bottom: 15px;  /* 缩小 */
    line-height: 1.5;
    color: #555;
    font-size: 0.95rem;  /* 缩小 */
}

.read-more {
    color: var(--primary-color);
    cursor: pointer;
    font-weight: 500;
    margin-left: 5px;
    transition: var(--transition);
    display: inline-block;
    padding: 2px 6px;  /* 缩小 */
    border-radius: 4px;  /* 缩小 */
    font-size: 0.9rem;  /* 缩小 */
}

.read-more:hover {
    background: rgba(255, 107, 157, 0.1);
    text-decoration: none;
}

/* 媒体预览样式 */
.memory-media {
    margin-bottom: 15px;  /* 缩小 */
}

.media-preview {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));  /* 缩小 */
    gap: 8px;  /* 缩小 */
    margin-top: 12px;  /* 缩小 */
}

.media-item {
    position: relative;
    border-radius: 8px;  /* 缩小 */
    overflow: hidden;
    cursor: pointer;
    aspect-ratio: 1;
    transition: var(--transition);
    background: #f8f9fa;
}

.media-item:hover {
    transform: scale(1.03);  /* 减小缩放效果 */
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);  /* 缩小 */
}

.media-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.video-thumbnail {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--dark-color), #1a1b2e);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: white;
}

.video-thumbnail i {
    font-size: 1.8rem;  /* 缩小 */
    margin-bottom: 8px;  /* 缩小 */
}

.media-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: var(--transition);
}

.media-item:hover .media-overlay {
    opacity: 1;
}

.media-overlay i {
    color: white;
    font-size: 1.3rem;  /* 缩小 */
}

.memory-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 12px;  /* 缩小 */
    border-top: 1px solid #eee;
    margin-top: 12px;  /* 缩小 */
}

.memory-id {
    font-size: 0.75rem;  /* 缩小 */
    color: #999;
    background: rgba(0, 0, 0, 0.04);
    padding: 2px 6px;  /* 缩小 */
    border-radius: 8px;  /* 缩小 */
}

/* 相册样式 */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;  /* 缩小 */
    margin-bottom: 15px;  /* 缩小 */
}

@media (max-width: 768px) {
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;  /* 缩小 */
    }
}

@media (max-width: 480px) {
    .gallery-grid {
        grid-template-columns: 1fr;
        gap: 8px;  /* 缩小 */
    }
}

.gallery-item {
    aspect-ratio: 1;
    border-radius: 8px;  /* 缩小 */
    overflow: hidden;
    cursor: pointer;
    transition: var(--transition);
    position: relative;
}

.gallery-item:hover {
    transform: scale(1.03);  /* 减小缩放效果 */
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);  /* 缩小 */
}

.gallery-item-inner {
    position: relative;
    width: 100%;
    height: 100%;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.6), transparent 50%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 8px;  /* 缩小 */
    opacity: 0;
    transition: var(--transition);
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-info {
    color: white;
    transform: translateY(8px);  /* 缩小 */
    transition: var(--transition);
}

.gallery-item:hover .gallery-info {
    transform: translateY(0);
}

.gallery-title {
    font-size: 0.85rem;  /* 缩小 */
    margin: 0;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.gallery-author {
    font-size: 0.75rem;  /* 缩小 */
    margin: 4px 0 0 0;  /* 缩小 */
    opacity: 0.9;
}

.gallery-more {
    text-align: center;
    margin-top: 15px;  /* 缩小 */
}

/* 空状态样式 */
.empty-state {
    text-align: center;
    padding: 40px 15px;  /* 缩小 */
    color: #999;
    background: rgba(0, 0, 0, 0.02);
    border-radius: 12px;  /* 缩小 */
    border: 2px dashed rgba(0, 0, 0, 0.1);
}

.empty-state i {
    font-size: 2.5rem;  /* 缩小 */
    margin-bottom: 12px;  /* 缩小 */
    opacity: 0.5;
}

.empty-state p {
    font-size: 1rem;  /* 缩小 */
    margin: 0;
}

/* 作者选择样式 */
.author-select {
    display: flex;
    gap: 15px;  /* 缩小 */
    margin-top: 8px;  /* 缩小 */
    flex-wrap: wrap;
}

.author-option {
    cursor: pointer;
    flex: 1;
    min-width: 110px;  /* 缩小 */
}

.author-option input[type="radio"] {
    display: none;
}

.author-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 15px;  /* 缩小 */
    border-radius: 8px;  /* 缩小 */
    border: 2px solid transparent;
    transition: var(--transition);
    background: rgba(255, 107, 157, 0.04);
    height: 100%;
}

.author-option input[type="radio"]:checked + .author-card {
    border-color: var(--primary-color);
    background: rgba(255, 107, 157, 0.1);
    transform: translateY(-3px);  /* 减小移动距离 */
}

.author-card img {
    width: 70px;  /* 缩小 */
    height: 70px;  /* 缩小 */
    border-radius: 50%;
    margin-bottom: 12px;  /* 缩小 */
    object-fit: cover;
    border: 3px solid white;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);  /* 缩小 */
}

.author-card span {
    font-weight: 600;
    color: var(--dark-color);
    font-size: 1rem;  /* 缩小 */
}

/* 文件上传区域 */
.file-upload-area {
    border: 2px dashed var(--primary-color);
    border-radius: 12px;  /* 缩小 */
    padding: 30px 15px;  /* 缩小 */
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    background: rgba(255, 107, 157, 0.04);
}

.file-upload-area:hover {
    background: rgba(255, 107, 157, 0.08);
}

.file-upload-area.drag-over {
    background: rgba(255, 107, 157, 0.15);
    border-color: var(--secondary-color);
    transform: scale(1.01);  /* 减小缩放效果 */
}

.upload-icon {
    font-size: 2rem;  /* 缩小 */
    color: var(--primary-color);
    margin-bottom: 12px;  /* 缩小 */
}

.file-upload-area p {
    margin: 0 0 8px 0;
    color: var(--dark-color);
    font-weight: 500;
    font-size: 0.9rem;  /* 缩小 */
}

.file-upload-area input[type="file"] {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    opacity: 0;
    cursor: pointer;
}

/* 文件预览样式 */
.file-previews, .gallery-file-previews {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(90px, 1fr));  /* 缩小 */
    gap: 8px;  /* 缩小 */
    margin-top: 12px;  /* 缩小 */
}

.file-preview, .gallery-file-preview {
    position: relative;
    border-radius: 8px;  /* 缩小 */
    overflow: hidden;
    aspect-ratio: 1;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);  /* 缩小 */
}

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

.preview-content img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.video-preview {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--dark-color), #1a1b2e);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: white;
}

.video-preview i {
    font-size: 1.3rem;  /* 缩小 */
    margin-bottom: 4px;  /* 缩小 */
}

.video-preview span {
    font-size: 0.75rem;  /* 缩小 */
}

.remove-file {
    position: absolute;
    top: 4px;  /* 缩小 */
    right: 4px;  /* 缩小 */
    width: 20px;  /* 缩小 */
    height: 20px;  /* 缩小 */
    border-radius: 50%;
    background: var(--danger-color);
    color: white;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;  /* 缩小 */
    transition: var(--transition);
    opacity: 0;
}

.file-preview:hover .remove-file,
.gallery-file-preview:hover .remove-file {
    opacity: 1;
}

.remove-file:hover {
    transform: scale(1.1);
    background: #ff3a5e;
}

/* 媒体查看器样式 */
.media-viewer-content {
    position: relative;
    width: 90vw;
    max-width: 800px;  /* 缩小 */
    max-height: 80vh;  /* 缩小 */
    background: black;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);  /* 缩小 */
}

.media-viewer-header {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    padding: 15px;  /* 缩小 */
    display: flex;
    justify-content: space-between;
    z-index: 100;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.6), transparent);
}

.media-viewer-header .close-btn,
.media-viewer-header .download-btn {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: none;
    width: 36px;  /* 缩小 */
    height: 36px;  /* 缩小 */
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1.1rem;  /* 缩小 */
    transition: var(--transition);
    backdrop-filter: blur(4px);  /* 缩小 */
}

.media-viewer-header .close-btn:hover,
.media-viewer-header .download-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.05);  /* 减小缩放效果 */
}

.media-viewer-body {
    height: calc(80vh - 80px);  /* 调整高度 */
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 15px;  /* 缩小 */
}

.full-media {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: 8px;  /* 缩小 */
}

.media-viewer-footer {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 12px 15px;  /* 缩小 */
    background: linear-gradient(to top, rgba(0, 0, 0, 0.6), transparent);
    color: white;
    text-align: center;
}

.media-viewer-footer p {
    margin: 0;
    font-size: 0.85rem;  /* 缩小 */
    opacity: 0.9;
}

/* 模态框样式 */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    backdrop-filter: blur(4px);  /* 缩小 */
    padding: 15px;  /* 缩小 */
}

.modal-content {
    background: white;
    border-radius: var(--border-radius);
    width: 90%;
    max-width: 550px;  /* 缩小 */
    max-height: 85vh;  /* 缩小 */
    overflow-y: auto;
    animation: modalFadeIn 0.25s ease;  /* 加快动画 */
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: scale(0.95) translateY(-15px);  /* 缩小移动距离 */
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.modal-header {
    padding: 15px;  /* 缩小 */
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    background: white;
    border-radius: var(--border-radius) var(--border-radius) 0 0;
    z-index: 10;
}

.close-btn {
    background: none;
    border: none;
    font-size: 1.3rem;  /* 缩小 */
    cursor: pointer;
    color: #666;
    transition: var(--transition);
    width: 28px;  /* 缩小 */
    height: 28px;  /* 缩小 */
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.close-btn:hover {
    color: var(--danger-color);
    background: rgba(239, 71, 111, 0.1);
}

.modal-body {
    padding: 15px;  /* 缩小 */
}

/* 表单操作按钮 */
.form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 12px;  /* 缩小 */
    margin-top: 20px;  /* 缩小 */
    padding-top: 15px;  /* 缩小 */
    border-top: 1px solid #eee;
}

/* 全相册样式 */
.full-gallery {
    max-width: 1000px;  /* 缩小 */
    max-height: 85vh;  /* 缩小 */
}

.full-gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));  /* 缩小 */
    gap: 12px;  /* 缩小 */
    max-height: 65vh;  /* 缩小 */
    overflow-y: auto;
    padding: 8px;  /* 缩小 */
}

.full-gallery-item {
    aspect-ratio: 1;
    border-radius: 8px;  /* 缩小 */
    overflow: hidden;
    cursor: pointer;
    transition: var(--transition);
}

.full-gallery-item:hover {
    transform: scale(1.03);  /* 减小缩放效果 */
}

.full-gallery-item-inner {
    position: relative;
    width: 100%;
    height: 100%;
}

.full-gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.full-gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.7), transparent);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 8px;  /* 缩小 */
    color: white;
    opacity: 0;
    transition: var(--transition);
}

.full-gallery-item:hover .full-gallery-overlay {
    opacity: 1;
}

.full-gallery-overlay p {
    font-size: 0.75rem;  /* 缩小 */
    margin: 0;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.full-gallery-overlay small {
    font-size: 0.65rem;  /* 缩小 */
    opacity: 0.8;
    margin-top: 2px;  /* 缩小 */
}

/* 管理员后台样式 */
.admin-body {
    background: #f5f5f5;
}

.admin-layout {
    display: flex;
    min-height: 100vh;
}

.sidebar {
    width: 220px;  /* 缩小 */
    background: linear-gradient(135deg, var(--dark-color), #1a1b2e);
    color: white;
    padding: 15px;  /* 缩小 */
    position: fixed;
    height: 100vh;
    overflow-y: auto;
}

.sidebar-header {
    padding: 15px 0;  /* 缩小 */
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 15px;  /* 缩小 */
}

.sidebar-header h2 {
    color: white;
    font-size: 1.3rem;  /* 缩小 */
    margin-bottom: 4px;  /* 缩小 */
}

.sidebar-header p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.8rem;  /* 缩小 */
}

.sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 8px;  /* 缩小 */
}

.nav-item {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    padding: 12px 15px;  /* 缩小 */
    border-radius: 8px;  /* 缩小 */
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 8px;  /* 缩小 */
    font-size: 0.9rem;  /* 缩小 */
}

.nav-item:hover {
    background: rgba(255, 255, 255, 0.1);
    color: white;
}

.nav-item.active {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
}

.nav-item.logout {
    margin-top: auto;
    color: var(--danger-color);
}

.nav-item.logout:hover {
    background: rgba(239, 71, 111, 0.1);
}

.main-content {
    flex: 1;
    margin-left: 220px;  /* 调整边距 */
    padding: 20px;  /* 缩小 */
}

.content-header {
    margin-bottom: 20px;  /* 缩小 */
}

.content-header h1 {
    text-align: left;
    font-size: 1.8rem;  /* 缩小 */
    margin-bottom: 8px;  /* 缩小 */
}

.content-header p {
    color: #666;
    font-size: 1rem;  /* 缩小 */
}

/* 统计卡片 */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));  /* 缩小 */
    gap: 15px;  /* 缩小 */
    margin-bottom: 30px;  /* 缩小 */
}

.stat-card {
    background: white;
    border-radius: var(--border-radius);
    padding: 20px;  /* 缩小 */
    box-shadow: var(--box-shadow);
    text-align: center;
    border: 2px solid rgba(255, 107, 157, 0.08);
    transition: var(--transition);
}

.stat-card:hover {
    transform: translateY(-3px);  /* 减小移动距离 */
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.1);  /* 缩小 */
    border-color: rgba(255, 107, 157, 0.25);
}

.stat-number {
    font-size: 2.5rem;  /* 缩小 */
    font-weight: bold;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin: 8px 0;  /* 缩小 */
}

/* 表格样式 */
.table-responsive {
    overflow-x: auto;
    border-radius: 8px;  /* 缩小 */
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);  /* 缩小 */
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 0;
    background: white;
}

.data-table th {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 12px;  /* 缩小 */
    text-align: left;
    font-weight: 600;
    white-space: nowrap;
    font-size: 0.9rem;  /* 缩小 */
}

.data-table th:first-child {
    border-top-left-radius: 8px;  /* 缩小 */
}

.data-table th:last-child {
    border-top-right-radius: 8px;  /* 缩小 */
}

.data-table td {
    padding: 12px;  /* 缩小 */
    border-bottom: 1px solid #eee;
    font-size: 0.9rem;  /* 缩小 */
}

.data-table tr:hover {
    background: rgba(255, 107, 157, 0.04);
}

.question-text {
    max-width: 250px;  /* 缩小 */
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.actions {
    display: flex;
    gap: 8px;  /* 缩小 */
    white-space: nowrap;
}

.btn-info {
    background: var(--info-color);
    color: white;
}

.btn-danger {
    background: var(--danger-color);
    color: white;
}

/* 状态徽章 */
.status-badge {
    padding: 4px 8px;  /* 缩小 */
    border-radius: 16px;  /* 缩小 */
    font-size: 0.75rem;  /* 缩小 */
    font-weight: 600;
    display: inline-block;
}

.status-badge.success {
    background: rgba(6, 214, 160, 0.15);
    color: var(--success-color);
}

.status-badge.warning {
    background: rgba(255, 209, 102, 0.15);
    color: #ff9e00;
}

.token-code {
    font-family: 'Courier New', monospace;
    background: rgba(0, 0, 0, 0.04);
    padding: 2px 5px;  /* 缩小 */
    border-radius: 4px;  /* 缩小 */
    font-size: 0.85rem;  /* 缩小 */
}

/* 响应式设计 */
@media (max-width: 768px) {
    .container {
        padding: 12px;  /* 缩小 */
    }
    
    .card {
        padding: 15px;  /* 缩小 */
    }
    
    h1 {
        font-size: 1.8rem;  /* 缩小 */
    }
    
    h2 {
        font-size: 1.4rem;  /* 缩小 */
    }
    
    .love-timer.compact {
        transform: scale(0.6);
        margin: -25px 0 5px 0;
    }
    
    .time-display {
        gap: 10px;  /* 缩小 */
    }
    
    .time-unit {
        min-width: 50px;  /* 缩小 */
        padding: 6px 10px;  /* 缩小 */
    }
    
    .time-number {
        font-size: 1.4rem;  /* 缩小 */
    }
    
    .admin-layout {
        flex-direction: column;
    }
    
    .sidebar {
        width: 100%;
        height: auto;
        position: relative;
    }
    
    .main-content {
        margin-left: 0;
        padding: 15px;  /* 缩小 */
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 12px;  /* 缩小 */
    }
    
    .audio-buttons {
        grid-template-columns: 1fr;
    }
    
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;  /* 缩小 */
    }
    
    .author-select {
        flex-direction: column;
    }
    
    .section-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .modal-content {
        width: 95%;
        max-height: 75vh;  /* 缩小 */
    }
}

@media (max-width: 480px) {
    h1 {
        font-size: 1.6rem;  /* 缩小 */
    }
    
    h2 {
        font-size: 1.2rem;  /* 缩小 */
    }
    
    .love-timer.compact {
        transform: scale(0.7);
        margin: -15px 0 5px 0;
        padding: 10px;  /* 缩小 */
    }
    
    .time-display {
        gap: 8px;  /* 缩小 */
    }
    
    .time-unit {
        min-width: 45px;  /* 缩小 */
        padding: 5px 8px;  /* 缩小 */
    }
    
    .time-number {
        font-size: 1.2rem;  /* 缩小 */
    }
    
    .time-label {
        font-size: 0.75rem;  /* 缩小 */
    }
    
    .btn {
        padding: 10px 16px;  /* 缩小 */
        font-size: 0.9rem;  /* 缩小 */
    }
    
    .stat-number {
        font-size: 2rem;  /* 缩小 */
    }
    
    .gallery-grid {
        grid-template-columns: 1fr;
        gap: 8px;  /* 缩小 */
    }
    
    .media-preview {
        grid-template-columns: repeat(2, 1fr);
        gap: 6px;  /* 缩小 */
    }
    
    .memory-card {
        padding: 15px;  /* 缩小 */
    }
    
    .avatar {
        width: 36px;  /* 缩小 */
        height: 36px;  /* 缩小 */
    }
    
    .author-name {
        font-size: 1rem;  /* 缩小 */
    }
    
    .memory-title {
        font-size: 1.1rem;  /* 缩小 */
    }
    
    .form-actions {
        flex-direction: column;
    }
    
    .form-actions .btn {
        width: 100%;
    }
    
    .audio-item {
        padding: 10px 12px;  /* 缩小 */
    }
    
    .audio-icon {
        width: 36px;  /* 缩小 */
        height: 36px;  /* 缩小 */
        font-size: 1.1rem;  /* 缩小 */
    }
    
    .audio-play-btn {
        width: 32px;  /* 缩小 */
        height: 32px;  /* 缩小 */
    }
}

/* 通知样式增强 */
.notification {
    animation: slideInRight 0.25s ease;  /* 加快动画 */
    position: fixed;
    top: 15px;  /* 缩小 */
    right: 15px;  /* 缩小 */
    padding: 12px 20px;  /* 缩小 */
    border-radius: 12px;  /* 缩小 */
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);  /* 缩小 */
    z-index: 1000;
    backdrop-filter: blur(8px);  /* 缩小 */
    border: 1px solid rgba(255, 255, 255, 0.15);
    max-width: 350px;  /* 缩小 */
}

.notification.success {
    background: linear-gradient(135deg, rgba(6, 214, 160, 0.9), rgba(255, 209, 102, 0.9));
    color: white;
}

.notification.error {
    background: linear-gradient(135deg, rgba(239, 71, 111, 0.9), rgba(255, 107, 157, 0.9));
    color: white;
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOutRight {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(100%);
        opacity: 0;
    }
}

/* 加载动画 */
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.fa-spin {
    animation: spin 0.8s linear infinite;  /* 加快动画 */
}

/* 自定义滚动条 */
::-webkit-scrollbar {
    width: 6px;  /* 缩小 */
    height: 6px;  /* 缩小 */
}

::-webkit-scrollbar-track {
    background: rgba(255, 107, 157, 0.08);
    border-radius: 3px;  /* 缩小 */
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 3px;  /* 缩小 */
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, var(--secondary-color), var(--primary-color));
}

/* 表单提示 */
.form-hint {
    display: block;
    margin-top: 4px;  /* 缩小 */
    font-size: 0.8rem;  /* 缩小 */
    color: #888;
}

/* 搜索框样式 */
.search-box {
    margin-bottom: 15px;  /* 缩小 */
}

.search-box .form-control {
    background: rgba(255, 255, 255, 0.9);
    border: 2px solid rgba(255, 107, 157, 0.15);
}

.search-box .form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(255, 107, 157, 0.08);
}

/* 快速操作按钮 */
.quick-actions {
    margin-top: 30px;  /* 缩小 */
}

.action-buttons {
    display: flex;
    gap: 12px;  /* 缩小 */
    flex-wrap: wrap;
    margin-top: 12px;  /* 缩小 */
}

/* 表格控制 */
.table-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;  /* 缩小 */
    flex-wrap: wrap;
    gap: 12px;  /* 缩小 */
}

/* 警告框 */
.alert {
    padding: 12px 15px;  /* 缩小 */
    border-radius: 8px;  /* 缩小 */
    margin-bottom: 15px;  /* 缩小 */
    animation: fadeIn 0.25s ease;  /* 加快动画 */
}

.alert-error {
    background: linear-gradient(135deg, rgba(239, 71, 111, 0.08), rgba(255, 107, 157, 0.08));
    border: 2px solid var(--danger-color);
    color: var(--danger-color);
}

.alert-success {
    background: linear-gradient(135deg, rgba(6, 214, 160, 0.08), rgba(255, 209, 102, 0.08));
    border: 2px solid var(--success-color);
    color: var(--success-color);
}

/* 代码样式 */
code {
    font-family: 'Courier New', monospace;
    background: rgba(0, 0, 0, 0.04);
    padding: 2px 5px;  /* 缩小 */
    border-radius: 4px;  /* 缩小 */
    font-size: 0.85rem;  /* 缩小 */
}

/* 图标样式 */
.fas, .fab {
    margin-right: 6px;  /* 缩小 */
}

/* 分割线 */
hr {
    border: none;
    height: 1px;
    background: linear-gradient(to right, transparent, rgba(0, 0, 0, 0.08), transparent);
    margin: 20px 0;  /* 缩小 */
}

/* 工具提示 */
.tooltip {
    position: relative;
    display: inline-block;
}

.tooltip .tooltip-text {
    visibility: hidden;
    width: 100px;  /* 缩小 */
    background-color: var(--dark-color);
    color: #fff;
    text-align: center;
    border-radius: 5px;  /* 缩小 */
    padding: 4px;  /* 缩小 */
    position: absolute;
    z-index: 1;
    bottom: 110%;
    left: 50%;
    margin-left: -50px;
    opacity: 0;
    transition: opacity 0.25s;  /* 加快动画 */
    font-size: 0.75rem;  /* 缩小 */
}

.tooltip:hover .tooltip-text {
    visibility: visible;
    opacity: 1;
}

/* 骨架屏加载效果 */
.skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.2s infinite;  /* 加快动画 */
}

@keyframes loading {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

/* 打印样式 */
@media print {
    .no-print {
        display: none !important;
    }
    
    body {
        background: white !important;
    }
    
    .container {
        max-width: 100% !important;
        padding: 0 !important;
    }
    
    .card, .section {
        box-shadow: none !important;
        border: 1px solid #ddd !important;
    }
}

/* 暗色模式支持 */
@media (prefers-color-scheme: dark) {
    body {
        background: linear-gradient(135deg, #1a1b2e 0%, #2b2d42 100%);
        color: #e0e0e0;
    }
    
    .card, .section, .modal-content {
        background: #2b2d42;
        color: #e0e0e0;
        border-color: #3a3c52;
    }
    
    .form-control {
        background: #3a3c52;
        border-color: #4a4c62;
        color: #e0e0e0;
    }
    
    .form-control:focus {
        border-color: var(--primary-color);
    }
    
    h1, h2, h3, h4 {
        color: #ffffff;
    }
    
    .token {
        background: rgba(255, 255, 255, 0.1);
        color: #ffffff;
    }
    
    .empty-state {
        background: rgba(255, 255, 255, 0.05);
        border-color: rgba(255, 255, 255, 0.1);
        color: #999;
    }
    
    .audio-item {
        background: #3a3c52;
        border-color: #4a4c62;
    }
    
    .audio-item.active {
        background: linear-gradient(135deg, rgba(255, 107, 157, 0.2), rgba(78, 205, 196, 0.2));
    }
}