* {
    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, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    padding: 20px;
}

.container {
    max-width: 700px;
    margin: 0 auto;
    background: white;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    overflow: hidden;
}

h1 {
    text-align: center;
    padding: 30px 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    font-size: 24px;
    font-weight: 500;
}

.tab-buttons {
    display: flex;
    border-bottom: 1px solid #e0e0e0;
}

.tab-btn {
    flex: 1;
    padding: 16px;
    border: none;
    background: #f8f9fa;
    cursor: pointer;
    font-size: 16px;
    font-weight: 500;
    color: #666;
    transition: all 0.3s;
}

.tab-btn:hover {
    background: #e9ecef;
}

.tab-btn.active {
    background: white;
    color: #667eea;
    border-bottom: 2px solid #667eea;
}

.panel {
    display: none;
    padding: 24px;
}

.panel.active {
    display: block;
}

.input-group {
    margin-bottom: 16px;
}

textarea {
    width: 100%;
    padding: 16px;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    font-size: 16px;
    resize: vertical;
    transition: border-color 0.3s;
    font-family: inherit;
}

textarea:focus {
    outline: none;
    border-color: #667eea;
}

.action-btn {
    width: 100%;
    padding: 14px 24px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}

.action-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

.action-btn:active {
    transform: translateY(0);
}

.message {
    margin-top: 12px;
    padding: 12px;
    border-radius: 8px;
    text-align: center;
    font-size: 14px;
    min-height: 40px;
}

.message.success {
    background: #d4edda;
    color: #155724;
}

.message.error {
    background: #f8d7da;
    color: #721c24;
}

/* 记录控制区域 */
.record-controls {
    display: flex;
    gap: 12px;
    align-items: center;
}

.record-controls .action-btn {
    flex: 1;
}

/* 模式切换按钮 */
.mode-toggle-btn {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 2px solid #667eea;
    background: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    flex-shrink: 0;
    padding: 0;
}

.mode-toggle-btn:hover {
    background: #f0f0ff;
    transform: scale(1.05);
}

.mode-toggle-btn.voice-mode {
    border-color: #28a745;
    background: #f0fff0;
}

.mode-toggle-btn.voice-mode:hover {
    background: #e0ffe0;
}

.mode-toggle-btn.recording {
    border-color: #dc3545;
    background: #dc3545;
    animation: pulse-record 1s infinite;
}

.mode-toggle-btn.recording .mode-icon-svg {
    color: white;
}

@keyframes pulse-record {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(220, 53, 69, 0.7);
    }
    50% {
        box-shadow: 0 0 0 10px rgba(220, 53, 69, 0);
    }
}

.mode-icon-svg {
    width: 36px;
    height: 36px;
    color: #667eea;
}

.mode-toggle-btn.voice-mode .mode-icon-svg {
    color: #28a745;
}

.mode-icon-svg.hidden {
    display: none;
}

/* 语音提示 */
.voice-hint {
    text-align: center;
    font-size: 12px;
    color: #888;
    margin-top: 8px;
    min-height: 18px;
}

/* 筛选区域 */
.filter-section {
    margin-bottom: 16px;
}

.filter-label {
    font-size: 14px;
    color: #666;
    font-weight: 500;
    margin-bottom: 8px;
}

/* 快捷时间筛选 */
.quick-filters {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.quick-btn {
    padding: 8px 16px;
    border: 1px solid #667eea;
    background: white;
    color: #667eea;
    border-radius: 20px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s;
}

.quick-btn:hover,
.quick-btn.active {
    background: #667eea;
    color: white;
}

/* 状态筛选 */
.status-filters {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.status-btn {
    padding: 8px 16px;
    border: 1px solid #ddd;
    background: white;
    color: #666;
    border-radius: 20px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s;
}

.status-btn:hover {
    border-color: #667eea;
    color: #667eea;
}

.status-btn.active {
    background: #667eea;
    color: white;
    border-color: #667eea;
}

/* 批量操作栏 */
.batch-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
    padding: 12px;
    background: #f0f7ff;
    border-radius: 8px;
    flex-wrap: wrap;
}

.batch-info {
    font-size: 14px;
    color: #333;
    font-weight: 500;
}

.batch-btn {
    padding: 6px 14px;
    border: none;
    background: #28a745;
    color: white;
    border-radius: 6px;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.3s;
}

.batch-btn:hover {
    background: #218838;
}

.batch-btn.cancel {
    background: #6c757d;
}

.batch-btn.cancel:hover {
    background: #5a6268;
}

.batch-btn.delete {
    background: #dc3545;
}

.batch-btn.delete:hover {
    background: #c82333;
}

/* 笔记列表 */
.notes-list {
    max-height: 450px;
    overflow-y: auto;
    margin-top: 16px;
}

.empty-tip {
    text-align: center;
    color: #999;
    padding: 40px 20px;
    font-size: 14px;
}

/* 笔记项 */
.note-item {
    display: flex;
    gap: 12px;
    padding: 16px;
    margin-bottom: 12px;
    background: #f8f9fa;
    border-radius: 12px;
    border-left: 4px solid #667eea;
    transition: all 0.3s;
}

.note-item.processed {
    border-left-color: #28a745;
    background: #f0f9f0;
    opacity: 0.85;
}

.note-checkbox {
    display: flex;
    align-items: flex-start;
    padding-top: 2px;
}

.note-checkbox input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.note-content-wrapper {
    flex: 1;
}

.note-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 6px;
}

.note-time {
    font-size: 12px;
    color: #888;
    flex-shrink: 0;
}

.note-header-right {
    display: flex;
    align-items: center;
    gap: 8px;
}

.note-status {
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 500;
    flex-shrink: 0;
}

.note-status.status-pending {
    background: #fff3cd;
    color: #856404;
}

.note-status.status-processed {
    background: #d4edda;
    color: #155724;
}

.note-content {
    font-size: 15px;
    color: #333;
    line-height: 1.5;
    word-wrap: break-word;
}

.action-link {
    padding: 3px 10px;
    border: 1px solid #667eea;
    background: transparent;
    color: #667eea;
    border-radius: 4px;
    font-size: 11px;
    cursor: pointer;
    transition: all 0.3s;
    flex-shrink: 0;
}

.action-link:hover {
    background: #667eea;
    color: white;
}

/* 滚动条样式 */
.notes-list::-webkit-scrollbar {
    width: 6px;
}

.notes-list::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

.notes-list::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 3px;
}

.notes-list::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}

@media (max-width: 480px) {
    .container {
        margin: 0;
        border-radius: 0;
    }
    
    body {
        padding: 0;
    }
    
    .quick-filters,
    .status-filters {
        justify-content: center;
    }
    
    .batch-actions {
        flex-direction: column;
        align-items: stretch;
    }
    
    .note-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }
}
