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

body {
    font-family: 'Arial', sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    padding: 20px;
}

/* 顶部导航 */
.top-nav {
    position: sticky;
    top: 0;
    z-index: 100;
    background: transparent; /* match container width by moving background to inner */
}

.top-nav-inner {
    max-width: 900px; /* align with .container */
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 16px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: saturate(150%) blur(6px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.06);
    border: 1px solid rgba(0,0,0,0.06);
    border-radius: 12px;
}

.top-nav .brand {
    font-weight: 700;
    color: #2d3748;
}

.top-nav .nav-links {
    list-style: none;
    display: flex;
    gap: 16px;
    justify-content: center;
    align-items: center;
}

.top-nav .nav-links a {
    color: #4a5568;
    text-decoration: none;
    font-weight: 600;
    padding: 8px 10px;
    border-radius: 8px;
    transition: background 0.2s ease, color 0.2s ease;
}

.top-nav .nav-links a:hover {
    background: rgba(102, 126, 234, 0.12);
    color: #2d3748;
}

.container {
    max-width: 900px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.header-section {
    text-align: center;
    margin-bottom: 40px;
    padding-bottom: 30px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.logo-title {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin-bottom: 15px;
}

.logo-icon {
    font-size: 3em;
    filter: drop-shadow(2px 2px 4px rgba(0, 0, 0, 0.1));
}

h1 {
    color: #2d3748;
    font-size: 2.8em;
    font-weight: 700;
    margin: 0;
    letter-spacing: -0.5px;
}

.tagline {
    font-size: 1.3em;
    color: #4a5568;
    margin-bottom: 20px;
    font-weight: 400;
    line-height: 1.4;
}

.features {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
    margin-top: 20px;
}

.feature-item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.95em;
    color: #667eea;
    font-weight: 500;
    padding: 8px 16px;
    background: rgba(102, 126, 234, 0.08);
    border-radius: 20px;
    border: 1px solid rgba(102, 126, 234, 0.2);
    transition: all 0.2s ease;
}

.feature-item:hover {
    background: rgba(102, 126, 234, 0.15);
    transform: translateY(-1px);
}

.controls {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 20px;
    align-items: center;
}

.recording-controls {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
    align-items: center;
    padding: 15px;
    background: rgba(0, 0, 0, 0.03);
    border-radius: 12px;
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.playback-controls {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
    align-items: center;
    padding: 15px;
    background: rgba(0, 0, 0, 0.03);
    border-radius: 12px;
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.btn {
    padding: 12px 20px;
    border: none;
    border-radius: 25px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 80px;
    white-space: nowrap;
}

.start-btn {
    background: linear-gradient(45deg, #4CAF50, #45a049);
    color: white;
}

.start-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(76, 175, 80, 0.4);
}

.stop-btn {
    background: linear-gradient(45deg, #f44336, #da190b);
    color: white;
}

.stop-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(244, 67, 54, 0.4);
}

.play-btn {
    background: linear-gradient(45deg, #2196F3, #0b7dda);
    color: white;
}

.play-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(33, 150, 243, 0.4);
}

.download-btn {
    background: linear-gradient(45deg, #FF9800, #e68900);
    color: white;
}

.download-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 152, 0, 0.4);
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none !important;
}

.status {
    text-align: center;
    margin-bottom: 20px;
    font-size: 18px;
}

#recordingStatus {
    color: #333;
    font-weight: bold;
    margin-right: 20px;
}

#recordingTime {
    color: #666;
    font-family: 'Courier New', monospace;
}

.visualizer-container {
    margin: 20px 0;
    text-align: center;
    position: relative;
}

/* 波形说明信息 */
.visualizer-info {
    margin-bottom: 10px;
}

.info-text {
    font-size: 12px;
    color: #666;
    font-style: italic;
    background: rgba(255, 255, 255, 0.9);
    padding: 4px 8px;
    border-radius: 6px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    display: inline-block;
}

/* 频率标签样式 */
.frequency-labels {
    display: flex;
    justify-content: space-between;
    padding: 0 10px;
    margin-bottom: 5px;
}

.freq-label {
    font-size: 12px;
    color: #666;
    font-weight: bold;
    background: rgba(255, 255, 255, 0.8);
    padding: 2px 6px;
    border-radius: 4px;
    box-shadow: 0 1px 2px rgba(0,0,0,0.1);
}

#visualizer {
    border: 2px solid #ddd;
    border-radius: 10px;
    background: #000;
    max-width: 100%;
    height: auto;
}

/* Canvas包装器 */
.canvas-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    position: relative;
}

/* 音量刻度样式 */
.volume-scale {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 200px;
    padding: 10px 0;
}

.vol-label {
    font-size: 10px;
    color: #666;
    font-weight: bold;
    writing-mode: vertical-rl;
    text-orientation: mixed;
    background: rgba(255, 255, 255, 0.8);
    padding: 4px 2px;
    border-radius: 3px;
    box-shadow: 0 1px 2px rgba(0,0,0,0.1);
}

/* 频率刻度样式 */
.frequency-scale {
    display: flex;
    justify-content: space-between;
    padding: 0 10px;
    margin-top: 5px;
    margin-left: 30px; /* 为了对齐canvas */
}

.freq-value {
    font-size: 11px;
    color: #888;
    font-family: monospace;
    background: rgba(0, 0, 0, 0.05);
    padding: 1px 4px;
    border-radius: 3px;
}

.eq-container {
    margin: 30px 0;
    padding: 20px;
    background: rgba(0, 0, 0, 0.05);
    border-radius: 15px;
}

.eq-container h3 {
    text-align: center;
    margin-bottom: 20px;
    color: #333;
}

.eq-visualizer {
    display: flex;
    align-items: stretch;
    background: #1a1a1a;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 20px;
}

.eq-scale {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    margin-right: 15px;
    height: 200px;
    padding: 10px 0;
}

.scale-item {
    color: #888;
    font-size: 12px;
    font-weight: bold;
    text-align: right;
    line-height: 1;
}

.eq-sliders {
    display: flex;
    flex: 1;
    gap: 8px;
    align-items: end;
}

.eq-band {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
    min-width: 40px;
}

.eq-band input[type="range"] {
    writing-mode: vertical-lr;
    direction: rtl;
    width: 30px;
    height: 180px;
    background: linear-gradient(to top, #ff4444 0%, #ffff44 50%, #44ff44 100%);
    outline: none;
    border-radius: 15px;
    margin: 10px 0;
}

.eq-band input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 25px;
    height: 15px;
    border-radius: 3px;
    background: #fff;
    cursor: pointer;
    border: 2px solid #333;
    box-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.eq-band input[type="range"]::-moz-range-thumb {
    width: 25px;
    height: 15px;
    border-radius: 3px;
    background: #fff;
    cursor: pointer;
    border: 2px solid #333;
    box-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.eq-band .eq-value {
    color: #fff;
    font-size: 11px;
    font-weight: bold;
    margin-bottom: 5px;
    min-height: 16px;
}

.eq-band label {
    color: #ccc;
    font-size: 11px;
    font-weight: bold;
    margin-top: 5px;
    text-align: center;
}

/* 音量控制区域 */
.volume-section {
    margin: 20px 0;
    padding: 20px;
    background: rgba(0, 0, 0, 0.05);
    border-radius: 15px;
}

.volume-section h3 {
    text-align: center;
    margin-bottom: 15px;
    color: #333;
}

.volume-controls {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.volume-control {
    display: flex;
    align-items: center;
    gap: 15px;
    background: rgba(0, 0, 0, 0.1);
    padding: 15px;
    border-radius: 10px;
    flex: 1;
    min-width: 250px;
}

.volume-control label {
    font-weight: bold;
    color: #555;
    min-width: 50px;
}

.volume-control input[type="range"] {
    flex: 1;
    -webkit-appearance: none;
    height: 8px;
    border-radius: 5px;
    background: linear-gradient(to right, #667eea, #764ba2);
    outline: none;
}

.volume-control input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #fff;
    cursor: pointer;
    border: 2px solid #667eea;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.volume-control input[type="range"]::-moz-range-thumb {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #fff;
    cursor: pointer;
    border: 2px solid #667eea;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.volume-control span {
    font-size: 14px;
    color: #666;
    font-weight: bold;
    min-width: 50px;
    text-align: right;
}

/* 进度条样式 - 移动到频谱图下方 */
.progress-container {
    margin-top: 15px;
    text-align: center;
    background: rgba(0, 0, 0, 0.7);
    border-radius: 8px;
    padding: 8px 12px;
    display: none;
    width: fit-content;
    margin-left: auto;
    margin-right: auto;
}

.progress-bar {
    position: relative;
    height: 8px;
    display: none; /* 隐藏进度条 */
    background: #ddd;
    border-radius: 4px;
    margin-bottom: 10px;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(to right, #667eea, #764ba2);
    border-radius: 4px;
    width: 0%;
    transition: width 0.1s ease;
}

.progress-slider {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 8px;
    opacity: 0;
    cursor: pointer;
}

.progress-time {
    display: flex;
    justify-content: center;
    gap: 10px;
    font-size: 12px;
    color: #fff;
    font-weight: bold;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
}

/* 暂停按钮样式 */
.pause-btn {
    background: linear-gradient(45deg, #FF9800, #e68900);
    color: white;
}

.pause-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 152, 0, 0.4);
}

/* 录音列表增强样式 */
.recordings-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.recordings-info {
    display: flex;
    gap: 15px;
    font-size: 12px;
    color: #666;
}

.recordings-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding: 10px;
    background: rgba(0, 0, 0, 0.05);
    border-radius: 8px;
}

.control-btn {
    padding: 6px 12px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 12px;
    background: #667eea;
    color: white;
    transition: all 0.3s ease;
}

.control-btn:hover:not(:disabled) {
    background: #5a6fd8;
}

.control-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.delete-btn {
    background: #f44336;
}

.delete-btn:hover:not(:disabled) {
    background: #da190b;
}

.pagination {
    display: flex;
    align-items: center;
    gap: 10px;
}

.page-btn {
    padding: 4px 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background: white;
    cursor: pointer;
    font-size: 12px;
}

.page-btn:hover:not(:disabled) {
    background: #f5f5f5;
}

.page-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.recording-item {
    position: relative;
}

.recording-checkbox {
    position: absolute;
    top: 10px;
    left: 10px;
    width: 16px;
    height: 16px;
    cursor: pointer;
}

.recording-item.has-checkbox {
    padding-left: 35px;
}

/* 录音模式信息面板 */
.info-btn {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 16px;
    margin-left: 10px;
}

.mode-info-panel {
    background: rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 15px;
}

.mode-info-item {
    margin-bottom: 8px;
    font-size: 13px;
    line-height: 1.4;
}

/* 背景音消除样式已移除，降噪功能集成到录音模式中 */

/* 录音名称和备注编辑 */
.recording-name-container,
.recording-remark-container {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 4px;
}

.recording-remark {
    font-style: italic;
    color: #888;
    font-size: 12px;
}

.edit-name-btn,
.edit-remark-btn {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 12px;
    opacity: 0.6;
    transition: opacity 0.3s ease;
}

.edit-name-btn:hover,
.edit-remark-btn:hover {
    opacity: 1;
}

/* 优先级说明 */
.priority-note {
    font-size: 12px;
    color: #666;
    font-weight: normal;
}

/* 录音模式按钮响应式调整 */
@media (max-width: 768px) {
    .mode-buttons {
        gap: 8px;
        max-width: 100%;
    }
    
    .mode-btn {
        min-width: 65px;
        padding: 10px;
        flex: 1;
    }
    
    .mode-icon {
        font-size: 22px;
    }
    
    .mode-text {
        font-size: 12px;
    }
}

.recordings-list {
    margin-top: 30px;
    padding: 20px;
    background: rgba(0, 0, 0, 0.05);
    border-radius: 15px;
}

.recordings-list h3 {
    text-align: center;
    margin-bottom: 20px;
    color: #333;
}

.recording-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px;
    margin: 10px 0;
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.recording-info {
    flex: 1;
}

.recording-name {
    font-weight: bold;
    color: #333;
    margin-bottom: 4px;
}

.recording-date {
    font-size: 12px;
    color: #666;
    margin-bottom: 4px;
}

.recording-details {
    font-size: 11px;
    color: #888;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.recording-detail-item {
    background: rgba(102, 126, 234, 0.1);
    padding: 2px 6px;
    border-radius: 4px;
    font-weight: bold;
}

.recording-actions {
    display: flex;
    gap: 10px;
}

.recording-actions button {
    padding: 5px 10px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 12px;
}

.play-recording {
    background: #2196F3;
    color: white;
    transition: background-color 0.3s ease;
}

.play-recording:hover {
    background: #1976D2;
}

.download-recording {
    background: #FF9800;
    color: white;
}

.delete-recording {
    background: #f44336;
    color: white;
}

.download-group {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
}

.format-select {
    padding: 8px 12px;
    border: 2px solid #ddd;
    border-radius: 20px;
    background: white;
    font-size: 14px;
    cursor: pointer;
    outline: none;
    transition: all 0.3s ease;
}

.format-select:hover {
    border-color: #667eea;
}

.format-select:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

/* 录音模式选择样式 */
.recording-modes {
    margin: 20px 0;
    padding: 20px;
    background: rgba(0, 0, 0, 0.05);
    border-radius: 15px;
}

.recording-modes h3 {
    text-align: center;
    margin-bottom: 15px;
    color: #333;
}

.mode-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
    max-width: 700px;
    margin: 0 auto;
}

.mode-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 12px;
    border: 2px solid #ddd;
    border-radius: 12px;
    background: white;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 75px;
    flex: 1;
    max-width: 120px;
}

.mode-btn:hover {
    border-color: #667eea;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.2);
}

.mode-btn.active {
    border-color: #667eea;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
}

.mode-icon {
    font-size: 24px;
    margin-bottom: 5px;
}

.mode-text {
    font-size: 12px;
    font-weight: bold;
}

/* EQ预设选择样式 */
.eq-presets {
    margin: 20px 0;
    padding: 20px;
    background: rgba(0, 0, 0, 0.05);
    border-radius: 15px;
}

.eq-presets h3 {
    text-align: center;
    margin-bottom: 15px;
    color: #333;
}

.preset-buttons {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
}

.preset-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 12px;
    border: 2px solid #ddd;
    border-radius: 50%;
    background: white;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 70px;
    height: 70px;
    justify-content: center;
}

.preset-btn:hover {
    border-color: #667eea;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.2);
}

.preset-btn.active {
    border-color: #667eea;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
}

.preset-icon {
    font-size: 20px;
    margin-bottom: 2px;
}

.preset-text {
    font-size: 10px;
    font-weight: bold;
    text-align: center;
}

/* Footer Styles */
.footer {
    background: linear-gradient(135deg, #2d3748 0%, #4a5568 100%);
    color: white;
    margin-top: 50px;
    padding: 40px 20px 20px;
}

/* 通用卡片栅格（功能/博客入口） */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 16px;
    margin: 20px 0 10px;
}

.card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 16px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.04);
}

.card h4 {
    margin-bottom: 8px;
    color: #2d3748;
}

.card p {
    color: #4a5568;
    line-height: 1.5;
}

.card a {
    display: inline-block;
    margin-top: 8px;
    color: #2b6cb0;
    text-decoration: none;
}

.card a:hover { text-decoration: underline; }

/* FAQ 简单样式 */
.faq-section {
    margin-top: 30px;
    padding: 20px;
    background: rgba(0,0,0,0.05);
    border-radius: 12px;
}

.faq-section h3 {
    text-align: center;
    margin-bottom: 15px;
    color: #333;
}

.faq-item + .faq-item {
    margin-top: 12px;
}

.faq-item h4 {
    color: #2d3748;
    margin-bottom: 4px;
}

.faq-item p {
    color: #4a5568;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.footer-section h4 {
    color: #e2e8f0;
    font-size: 1.2em;
    margin-bottom: 15px;
    border-bottom: 2px solid #667eea;
    padding-bottom: 8px;
}

.footer-section p {
    line-height: 1.6;
    margin-bottom: 10px;
    color: #cbd5e0;
}

.footer-section ul {
    list-style: none;
    padding: 0;
}

.footer-section li {
    margin-bottom: 8px;
    color: #cbd5e0;
    line-height: 1.5;
}

.footer-section a {
    color: #90cdf4;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: #63b3ed;
    text-decoration: underline;
}

.footer-bottom {
    text-align: center;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #4a5568;
    color: #a0aec0;
    font-size: 0.9em;
}

.footer-bottom a {
    color: #90cdf4;
    text-decoration: none;
}

.footer-bottom a:hover {
    color: #63b3ed;
    text-decoration: underline;
}

@media (max-width: 768px) {
    .footer {
        padding: 30px 15px 15px;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 25px;
    }
    
    .footer-section h4 {
        font-size: 1.1em;
    }
    
    .container {
        padding: 20px;
        margin: 10px;
    }
    
    .logo-title {
        flex-direction: column;
        gap: 10px;
    }
    
    .logo-icon {
        font-size: 2.5em;
    }
    
    h1 {
        font-size: 2.2em;
    }
    
    .tagline {
        font-size: 1.1em;
    }
    
    .features {
        gap: 15px;
        flex-direction: column;
        align-items: center;
    }
    
    .feature-item {
        font-size: 0.9em;
    }
    
    .recording-controls,
    .playback-controls {
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }
    
    .btn {
        width: 140px;
        padding: 10px 16px;
        font-size: 13px;
    }
    
    .download-group {
        flex-direction: column;
        width: 140px;
    }
    
    .format-select {
        width: 100%;
    }
    
    #visualizer {
        width: 100%;
    }
    
    /* 移动端频率标注调整 */
    .info-text {
        font-size: 10px;
        padding: 3px 6px;
    }
    
    .frequency-labels {
        padding: 0 5px;
    }
    
    .freq-label {
        font-size: 10px;
        padding: 1px 3px;
    }
    
    .frequency-scale {
        padding: 0 5px;
        margin-left: 25px;
    }
    
    .freq-value {
        font-size: 9px;
        padding: 1px 2px;
    }
    
    .volume-scale {
        height: 150px;
    }
    
    .vol-label {
        font-size: 9px;
        padding: 2px 1px;
    }
    
    .eq-controls {
        grid-template-columns: 1fr;
    }
    
    .mode-buttons {
        justify-content: center;
        gap: 10px;
    }
    
    .mode-btn {
        min-width: 70px;
        padding: 12px;
    }
    
    .preset-buttons {
        justify-content: center;
        gap: 8px;
    }
    
    .preset-btn {
        width: 60px;
        height: 60px;
    }
    
    .preset-icon {
        font-size: 18px;
    }
    
    .preset-text {
        font-size: 9px;
    }
    
    .recording-details {
        flex-direction: column;
        gap: 4px;
    }
    
    .recording-detail-item {
        font-size: 10px;
        padding: 1px 4px;
    }
    
    .eq-sliders {
        gap: 4px;
    }
    
    .eq-band {
        min-width: 30px;
    }
    
    .eq-band input[type="range"] {
        width: 25px;
        height: 150px;
    }
    
    .eq-scale {
        margin-right: 10px;
    }
}/* 
历史记录下载按钮组样式 */
.recording-actions .download-group {
    display: flex;
    gap: 5px;
    flex-direction: column;
}

.recording-actions .download-group .download-recording {
    padding: 6px 12px;
    font-size: 12px;
    border-radius: 4px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
    min-width: 100px;
}

.recording-actions .download-group .download-recording:first-child {
    background: linear-gradient(135deg, #4CAF50, #45a049);
    color: white;
}

.recording-actions .download-group .download-recording:first-child:hover {
    background: linear-gradient(135deg, #45a049, #3d8b40);
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(76, 175, 80, 0.3);
}

.recording-actions .download-group .download-recording:last-child {
    background: linear-gradient(135deg, #2196F3, #1976D2);
    color: white;
}

.recording-actions .download-group .download-recording:last-child:hover {
    background: linear-gradient(135deg, #1976D2, #1565C0);
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(33, 150, 243, 0.3);
}

.recording-actions .download-group .download-recording:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* 调整录音操作按钮布局 */
.recording-actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-items: stretch;
}

@media (min-width: 768px) {
    .recording-actions .download-group {
        flex-direction: row;
    }
    
    .recording-actions .download-group .download-recording {
        min-width: 80px;
        font-size: 11px;
        padding: 5px 8px;
    }
}/* 语音转文字功
能样式 */
.transcribe-btn, .view-text-btn, .retranscribe-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.9em;
    font-weight: 500;
    transition: all 0.3s ease;
    margin: 2px;
    min-width: 100px;
}

.transcribe-btn:hover, .view-text-btn:hover, .retranscribe-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.transcribe-btn.processing {
    background: linear-gradient(135deg, #ffa726 0%, #ff7043 100%);
    cursor: not-allowed;
    animation: pulse 1.5s infinite;
}

.retranscribe-btn {
    background: linear-gradient(135deg, #26a69a 0%, #00acc1 100%);
    min-width: 40px;
    padding: 8px 10px;
}

.view-text-btn {
    background: linear-gradient(135deg, #66bb6a 0%, #43a047 100%);
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

/* 转录模态框样式 */
.transcription-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    padding: 20px;
}

.modal-content {
    background: white;
    border-radius: 12px;
    max-width: 600px;
    width: 100%;
    max-height: 80vh;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    animation: modalSlideIn 0.3s ease-out;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    border-bottom: 1px solid #eee;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.modal-header h3 {
    margin: 0;
    font-size: 1.3em;
    font-weight: 600;
}

.modal-close {
    background: none;
    border: none;
    color: white;
    font-size: 1.5em;
    cursor: pointer;
    padding: 5px;
    border-radius: 50%;
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease;
}

.modal-close:hover {
    background: rgba(255, 255, 255, 0.2);
}

.modal-body {
    padding: 25px;
    max-height: 50vh;
    overflow-y: auto;
}

.transcription-info {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
    font-size: 0.9em;
    color: #666;
    flex-wrap: wrap;
}

.transcription-text {
    line-height: 1.6;
    font-size: 1.1em;
    color: #333;
    background: white;
    padding: 20px;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
    white-space: pre-wrap;
    word-wrap: break-word;
}

.modal-footer {
    display: flex;
    gap: 10px;
    padding: 20px 25px;
    border-top: 1px solid #eee;
    background: #f8f9fa;
    justify-content: flex-end;
    flex-wrap: wrap;
}

.modal-footer .btn {
    padding: 10px 16px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.2s ease;
    font-size: 0.9em;
}

.copy-btn {
    background: linear-gradient(135deg, #42a5f5 0%, #1e88e5 100%);
    color: white;
}

.download-text-btn {
    background: linear-gradient(135deg, #66bb6a 0%, #43a047 100%);
    color: white;
}

.close-btn {
    background: #6c757d;
    color: white;
}

.modal-footer .btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

/* 转录预览样式（在录音记录中显示前几十个字） */
.transcription-preview {
    margin-top: 10px;
    padding: 10px;
    background: #e8f5e8;
    border-radius: 6px;
    border-left: 4px solid #4caf50;
    font-size: 0.9em;
    color: #2e7d32;
    font-style: italic;
    display: none; /* 默认隐藏，有转录结果时显示 */
}

.transcription-preview.has-text {
    display: block;
}

.preview-text {
    line-height: 1.4;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .transcription-modal {
        padding: 10px;
    }
    
    .modal-content {
        max-height: 90vh;
    }
    
    .modal-header, .modal-body, .modal-footer {
        padding: 15px 20px;
    }
    
    .transcription-info {
        flex-direction: column;
        gap: 10px;
    }
    
    .modal-footer {
        flex-direction: column;
    }
    
    .modal-footer .btn {
        width: 100%;
        margin-bottom: 5px;
    }
    
    .transcribe-btn, .view-text-btn, .retranscribe-btn {
        font-size: 0.8em;
        padding: 6px 10px;
        min-width: 80px;
    }
}

/* 录音操作按钮区域调整 */
.recording-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    justify-content: flex-start;
}

@media (max-width: 768px) {
    .recording-actions {
        flex-direction: column;
        align-items: stretch;
    }
    
    .recording-actions button {
        width: 100%;
        margin-bottom: 5px;
    }
    
    .download-group {
        display: flex;
        gap: 5px;
        width: 100%;
    }
    
    .download-group button {
        flex: 1;
    }
}

/* How to Use Section Styles */
.howtouse-section {
    margin-top: 30px;
    padding: 20px;
    background: rgba(0, 0, 0, 0.05);
    border-radius: 15px;
}

.howtouse-section h3 {
    text-align: center;
    margin-bottom: 25px;
    color: #333;
    font-size: 1.8em;
}

.steps-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.step-item {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    padding: 20px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.step-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.step-number {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.2em;
}

.step-content h4 {
    color: #2d3748;
    margin-bottom: 8px;
    font-size: 1.2em;
}

.step-content p {
    color: #4a5568;
    line-height: 1.6;
    margin: 0;
}

/* Enhanced FAQ Section Styles */
.faq-section {
    margin-top: 30px;
    padding: 20px;
    background: rgba(0, 0, 0, 0.05);
    border-radius: 15px;
}

.faq-section h3 {
    text-align: center;
    margin-bottom: 25px;
    color: #333;
    font-size: 1.8em;
}

.faq-item {
    background: white;
    border-radius: 12px;
    margin-bottom: 15px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: box-shadow 0.2s ease;
}

.faq-item:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.faq-question {
    padding: 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    cursor: pointer;
    transition: background 0.2s ease;
}

.faq-question h4 {
    margin: 0;
    font-size: 1.1em;
    font-weight: 600;
}

.faq-answer {
    padding: 20px;
    background: white;
}

.faq-answer p {
    color: #4a5568;
    line-height: 1.6;
    margin: 0;
}

/* About Section Styles */
.about-section {
    margin-top: 30px;
    padding: 20px;
    background: rgba(0, 0, 0, 0.05);
    border-radius: 15px;
}

.about-section h3 {
    text-align: center;
    margin-bottom: 25px;
    color: #333;
    font-size: 1.8em;
}

.about-content {
    background: white;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.about-content p {
    color: #4a5568;
    line-height: 1.6;
    margin-bottom: 15px;
}

.contact-info {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 8px;
    margin: 20px 0;
}

.contact-info p {
    margin-bottom: 8px;
}

.contact-info a {
    color: #667eea;
    text-decoration: none;
    font-weight: 500;
}

.contact-info a:hover {
    text-decoration: underline;
}

/* Social Sharing Styles */
.social-sharing {
    text-align: center;
    padding: 30px 5px;
    border-top: 0px solid #4a5568;
    margin-top: 0px;
    margin-bottom: 20px;
}

.social-sharing h4 {
    color: #e2e8f0;
    margin-bottom: 20px;
    font-size: 1.3em;
}

.share-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.share-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    text-decoration: none;
    border-radius: 25px;
    transition: all 0.3s ease;
    font-weight: 500;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.share-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.share-btn.twitter:hover {
    background: #1da1f2;
    border-color: #1da1f2;
}

.share-btn.facebook:hover {
    background: #4267b2;
    border-color: #4267b2;
}

.share-btn.linkedin:hover {
    background: #0077b5;
    border-color: #0077b5;
}

.share-btn.reddit:hover {
    background: #ff4500;
    border-color: #ff4500;
}

.share-icon {
    font-size: 1.2em;
}

/* Mobile Responsive Styles */
@media (max-width: 768px) {
    .step-item {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
    
    .step-number {
        align-self: center;
    }
    
    .share-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .share-btn {
        width: 200px;
        justify-content: center;
    }
    
    .howtouse-section h3,
    .faq-section h3,
    .about-section h3 {
        font-size: 1.5em;
    }
}