/* 扬声器测试页面特定样式 */

/* 整体页面布局 */
.test-tabs .container,
.test-area .container {
    max-width: 1000px;
    margin: 0 auto;
}

/* 选项卡导航 */
.tabs {
    display: flex;
    overflow-x: auto;
    border-bottom: 1px solid var(--apple-border);
    margin-bottom: 2rem;
    padding-bottom: 0;
    scrollbar-width: none; /* Firefox */
}

.tabs::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Edge */
}

.tab-btn {
    background: none;
    border: none;
    padding: 1rem 1.5rem;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 500;
    color: #555;
    border-bottom: 3px solid transparent;
    white-space: nowrap;
    transition: all 0.2s ease;
}

.tab-btn:hover {
    color: var(--apple-blue);
}

.tab-btn.active {
    color: var(--apple-blue);
    border-bottom-color: var(--apple-blue);
    font-weight: 600;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
    animation: fadeIn 0.3s ease-in-out;
}

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

/* 测试卡片样式 */
.test-card {
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    padding: 1.5rem;
    margin-bottom: 2rem;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.test-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
}

.test-card h3 {
    color: #333;
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
    font-weight: 600;
    display: flex;
    align-items: center;
}

.test-card h3 i {
    margin-right: 0.75rem;
    color: #4a6cf7;
}

.test-card p {
    color: #666;
    margin-bottom: 1.25rem;
    font-size: 1rem;
}

/* 测试内容区域 */
.test-content {
    padding: 1rem 0;
}

/* 声道测试样式 */
.channel-test {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: center;
}

.test-channel-btn {
    min-width: 140px;
}

.channel-status {
    text-align: center;
    margin-top: 1.5rem;
    font-weight: 500;
    color: #555;
    padding: 0.75rem;
    border-radius: 6px;
    background-color: #f7f9fc;
}

/* 频率测试样式 */
.frequency-test {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.frequency-value {
    text-align: center;
    font-size: 1.1rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.frequency-controls {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.slider-container {
    width: 100%;
    padding: 0 0.5rem;
}

.slider {
    width: 100%;
    height: 8px;
    background: #e6e9f4;
    border-radius: 4px;
    appearance: none;
    outline: none;
}

.slider::-webkit-slider-thumb {
    appearance: none;
    width: 20px;
    height: 20px;
    background: #4a6cf7;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.frequency-presets {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
    justify-content: center;
    margin: 1rem 0;
}

.frequency-presets span {
    margin-right: 0.5rem;
    font-weight: 500;
    color: #555;
}

.btn.mini {
    padding: 0.5rem 0.75rem;
    font-size: 0.85rem;
    border-radius: 20px;
    background: #f5f5f5;
    color: #555;
    border: 1px solid #e0e0e0;
}

.btn.mini:hover {
    background: #e6e9f4;
    color: #4a6cf7;
}

.frequency-play-controls {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 1.5rem;
}

/* 声音测试样式 */
.sound-test {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.sound-samples {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: center;
}

.sound-sample {
    min-width: 140px;
}

.volume-control {
    max-width: 500px;
    margin: 1.5rem auto;
    text-align: center;
}

.volume-control p {
    margin-bottom: 0.5rem;
    font-weight: 500;
}

/* 频率扫描测试 */
.sweep-test {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.sweep-controls {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    justify-content: center;
    align-items: center;
}

.sweep-range, .sweep-duration {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.sweep-range label, .sweep-duration label {
    font-weight: 500;
    color: #555;
    min-width: 100px;
}

.form-select {
    padding: 0.6rem 1rem;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
    background: white;
    font-size: 0.95rem;
    color: #333;
    min-width: 200px;
    outline: none;
}

.sweep-buttons {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin: 1rem 0;
}

.sweep-visualization {
    background-color: #f7f9fc;
    border-radius: 10px;
    padding: 1.5rem;
    margin-top: 1rem;
}

#sweepInfo {
    text-align: center;
    margin: 1rem 0;
    font-size: 0.95rem;
    color: #666;
}

.progress-bar {
    height: 8px;
    background: #e6e9f4;
    border-radius: 4px;
    margin: 1rem 0;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: #4a6cf7;
    width: 0;
    transition: width 0.3s linear;
}

/* 耳机测试样式 */
.headphone-test {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.test-categories {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: center;
}

.test-category-btn {
    min-width: 140px;
}

.test-category-btn.active {
    background-color: var(--apple-blue);
    color: white;
}

.test-description {
    text-align: center;
    padding: 1rem;
    background-color: #f7f9fc;
    border-radius: 8px;
    color: #555;
}

.test-visualization {
    width: 100%;
    display: flex;
    justify-content: center;
    margin: 1rem 0;
}

.test-controls {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

/* 延迟测试样式 */
.latency-test {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.latency-description {
    text-align: center;
    padding: 1rem;
    background-color: #f7f9fc;
    border-radius: 8px;
}

.latency-visualization {
    display: flex;
    justify-content: center;
    margin: 1.5rem 0;
}

.latency-meter {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.meter-label {
    font-weight: 500;
    color: #555;
}

#latencyValue {
    font-size: 2.5rem;
    font-weight: 600;
    color: var(--apple-blue);
}

.latency-controls {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

/* 系统信息样式 */
.system-info {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.info-item {
    display: flex;
    align-items: center;
    padding: 0.75rem;
    background-color: #f7f9fc;
    border-radius: 8px;
}

.info-label {
    font-weight: 500;
    color: #555;
    min-width: 180px;
}

.info-value {
    font-weight: 500;
    color: #333;
}

.system-actions {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 1.5rem;
}

/* 问题检测样式 */
.issue-detection {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.detection-status {
    text-align: center;
    padding: 0.75rem;
    background-color: #f7f9fc;
    border-radius: 8px;
    font-weight: 500;
}

.detection-progress {
    text-align: center;
}

.detection-results {
    padding: 1rem;
    background-color: #f7f9fc;
    border-radius: 8px;
    min-height: 150px;
}

.detection-controls {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

/* 结果样式 */
.results-summary {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.summary-chart {
    width: 100%;
    display: flex;
    justify-content: center;
}

.summary-scores {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 1rem;
}

.score-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1rem;
    background-color: #f7f9fc;
    border-radius: 8px;
    text-align: center;
}

.score-label {
    font-weight: 500;
    color: #555;
    margin-bottom: 0.5rem;
}

.score-value {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--apple-blue);
}

.results-details {
    padding: 1rem;
    background-color: #f7f9fc;
    border-radius: 8px;
    margin-bottom: 1.5rem;
}

.results-actions {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

/* 按钮通用样式 */
.btn {
    padding: 0.75rem 1.25rem;
    border: 1px solid #e0e0e0;
    background: #f8f8f8;
    color: #333;
    border-radius: 6px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.btn i {
    margin-right: 0.5rem;
}

.btn:hover {
    background: #f0f0f0;
    transform: translateY(-2px);
}

.btn.primary {
    background: #4a6cf7;
    color: white;
    border-color: #4a6cf7;
    box-shadow: 0 2px 6px rgba(74, 108, 247, 0.3);
}

.btn.primary:hover {
    background: #3a5de5;
    box-shadow: 0 4px 10px rgba(74, 108, 247, 0.4);
}

.btn.secondary {
    background: white;
    color: #333;
    border-color: #e0e0e0;
}

.btn.secondary:hover {
    background: #f5f5f5;
}

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

/* 响应式调整 */
@media (max-width: 768px) {
    .test-card {
        padding: 1.25rem;
    }
    
    .sweep-controls {
        flex-direction: column;
        align-items: stretch;
    }
    
    .sweep-range, .sweep-duration {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .sound-samples {
        flex-direction: column;
    }
    
    .sound-sample {
        width: 100%;
    }
    
    .frequency-presets {
        flex-wrap: wrap;
    }
    
    .info-item {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .info-label {
        margin-bottom: 0.5rem;
    }
    
    .summary-scores {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .tab-btn {
        padding: 0.75rem 1rem;
        font-size: 0.9rem;
    }
    
    .test-controls, .sweep-buttons, .latency-controls, .detection-controls, .results-actions {
        flex-direction: column;
        width: 100%;
    }
    
    .test-controls button, .sweep-buttons button, .latency-controls button, 
    .detection-controls button, .results-actions button {
        width: 100%;
    }
}

/* Help Center Styles */
.search-box {
    margin: 20px auto;
    max-width: 600px;
    display: flex;
    align-items: center;
}

.search-input {
    flex: 1;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
    margin-right: 10px;
}

.help-nav-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    margin: 30px 0;
}

.help-nav-item {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    transition: all 0.3s ease;
    color: #333;
    text-decoration: none;
    border: 1px solid #e9ecef;
}

.help-nav-item:hover {
    background: #fff;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transform: translateY(-3px);
}

.help-nav-item i {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 15px;
    display: block;
}

.help-nav-item h3 {
    margin-bottom: 10px;
    font-size: 1.2rem;
}

.help-nav-item p {
    color: #666;
    font-size: 0.9rem;
}

.help-section {
    padding: 40px 0;
    border-bottom: 1px solid #eee;
}

.help-section h2 {
    margin-bottom: 30px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--primary-color);
    display: inline-block;
}

.help-section h2 i {
    margin-right: 10px;
    color: var(--primary-color);
}

/* Accordion Styles */
.accordion {
    margin: 20px 0;
    max-width: 100%;
}

.accordion-item {
    margin-bottom: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    overflow: hidden;
}

.accordion-header {
    width: 100%;
    background: #f8f9fa;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border: none;
    text-align: left;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.3s ease;
}

.accordion-header:hover {
    background: #e9ecef;
}

.accordion-header.active {
    background: #e9ecef;
}

.accordion-header i {
    transition: transform 0.3s ease;
}

.accordion-header.active i {
    transform: rotate(180deg);
}

.accordion-content {
    padding: 0 20px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.accordion-content p {
    padding: 15px 0;
}

/* Troubleshooting Grid */
.troubleshooting-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin: 20px 0;
}

.troubleshooting-item {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    border: 1px solid #e9ecef;
}

.troubleshooting-item h3 {
    margin-bottom: 15px;
    color: var(--primary-color);
    font-size: 1.2rem;
}

.troubleshooting-item ol {
    padding-left: 20px;
}

.troubleshooting-item li {
    margin-bottom: 10px;
    line-height: 1.5;
}

/* Contact Section */
.contact-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin: 20px 0;
}

.contact-methods {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 20px;
}

.contact-method {
    flex: 1;
    min-width: 200px;
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    text-align: center;
    border: 1px solid #e9ecef;
}

.contact-method i {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.contact-form {
    background: #f8f9fa;
    padding: 25px;
    border-radius: 8px;
    border: 1px solid #e9ecef;
}

.contact-form h3 {
    margin-bottom: 20px;
    color: var(--primary-color);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 10px 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
}

.form-group textarea {
    resize: vertical;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .contact-container {
        grid-template-columns: 1fr;
    }
    
    .help-nav-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    }
    
    .troubleshooting-grid {
        grid-template-columns: 1fr;
    }
} 