/* 引入组件样式 */
@import url('./components/header.css');
@import url('./components/sub-account.css');
@import url('./components/voice-change.css');
@import url('./components/security.css');
@import url('./components/video.css');
@import url('./components/language.css');

/* 通用样式 */
.section {
    padding: 80px 0;
    position: relative;
    overflow: hidden;
}

/* 重置默认样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-margin-top: 80px;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    overflow-x: hidden;
}

/* 通用样式 */
.container {
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
}

/* 响应式设计 */
@media screen and (max-width: 1800px) {
    .container {
        max-width: 1600px;
    }
}

@media screen and (max-width: 1440px) {
    .container {
        max-width: 1440px;
    }
}

@media screen and (max-width: 768px) {
    .container {
        padding: 0 16px;
    }
}

html {
    scroll-behavior: smooth;
}

.feature-section {
    position: relative;
    padding: 80px 0;
    overflow: hidden;
}

.security-section {
    background: linear-gradient(135deg, #1a237e 0%, #0d47a1 100%);
}

.speed-section {
    background: linear-gradient(135deg, #004d40 0%, #00695c 100%);
}

.cloud-section {
    background: linear-gradient(135deg, #311b92 0%, #4527a0 100%);
}

/* 链接样式 */
a {
    text-decoration: none;
    color: inherit;
}

.feature-tag {
    display: inline-flex;
    align-items: center;
    padding: 8px 16px;
    margin: 5px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    cursor: pointer;
}

.feature-tag:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

/* 语言展示样式 */
.language-phones {
    position: relative;
    z-index: 2;
}

.language-phones .phone {
    position: relative;
    transition: transform 0.3s ease;
}

.language-phones .phone-1 {
    transform: rotate(-5deg) translateX(-20px);
}

.language-phones .phone-2 {
    transform: rotate(5deg) translateX(20px);
}

.language-label {
    position: absolute;
    bottom: -30px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(255, 255, 255, 0.9);
    padding: 4px 12px;
    border-radius: 15px;
    font-size: 14px;
    font-weight: 500;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    color: #333;
}

.language-circle {
    background: radial-gradient(circle at center, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.05) 50%, transparent 70%);
}

.language-phones .phone:hover {
    transform: scale(1.05) translateY(-10px);
    z-index: 3;
}

/* 变声功能样式 */
.voice-section {
    background: linear-gradient(180deg, #f8fbff 0%, #f0f6ff 100%);
    color: #333;
}

.voice-settings-modal {
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 500px;
    margin: 0 auto;
    overflow: hidden;
}

.modal-header {
    padding: 20px;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h4 {
    color: #333;
    font-size: 18px;
    margin: 0;
}

.close-btn {
    background: none;
    border: none;
    font-size: 24px;
    color: #999;
    cursor: pointer;
    padding: 0 8px;
}

.voice-effects-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    padding: 20px;
}

.voice-effect-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    transition: transform 0.2s;
    padding: 15px;
    border-radius: 12px;
    text-align: center;
}

.voice-effect-item:hover {
    transform: translateY(-2px);
    background: rgba(0, 0, 0, 0.02);
}

.effect-icon {
    width: 60px;
    height: 60px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px;
}

.effect-icon svg {
    width: 100%;
    height: 100%;
}

.effect-icon svg path,
.effect-icon svg rect {
    fill: currentColor;
}

.effect-icon.template {
    background: rgba(33, 150, 243, 0.1);
    color: #2196F3;
}

.effect-icon.custom {
    background: rgba(156, 39, 176, 0.1);
    color: #9C27B0;
}

.voice-effect-item.active .effect-icon {
    background: #e3f2fd;
}

.voice-effect-item span {
    color: #333;
    font-size: 14px;
    font-weight: 500;
    margin-top: 4px;
}

.voice-effect-item small {
    color: #666;
    font-size: 12px;
    line-height: 1.4;
    max-width: 120px;
    display: block;
}

.effect-icon img {
    width: 30px;
    height: 30px;
}

.effect-icon.original { background: #e8f5e9; }
.effect-icon.child { background: #f3e5f5; }
.effect-icon.elder { background: #fff3e0; }
.effect-icon.male { background: #e1f5fe; }
.effect-icon.female { background: #fce4ec; }
.effect-icon.custom { background: #f5f5f5; }

.modal-footer {
    padding: 20px;
    border-top: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.upload-btn {
    background: #f5f5f5;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background-color 0.2s;
}

.upload-btn:hover {
    background: #e0e0e0;
}

.save-btn {
    background: #4caf50;
    color: white;
    border: none;
    padding: 10px 24px;
    border-radius: 20px;
    font-size: 14px;
    cursor: pointer;
    transition: background-color 0.2s;
}

.save-btn:hover {
    background: #43a047;
}

.voice-effect-display {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 30px;
    backdrop-filter: blur(10px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.voice-wave-animation {
    position: relative;
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 30px;
}

.wave-container {
    display: flex;
    align-items: center;
    gap: 8px;
    height: 100px;
}

.wave {
    width: 4px;
    height: 40px;
    background: #fff;
    border-radius: 2px;
    animation: wave 1s ease-in-out infinite;
}

.wave-1 { animation-delay: 0s; }
.wave-2 { animation-delay: 0.2s; }
.wave-3 { animation-delay: 0.4s; }

@keyframes wave {
    0%, 100% { height: 40px; }
    50% { height: 80px; }
}

.effect-label {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(255, 255, 255, 0.2);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 14px;
}

.voice-controls {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.control-item {
    display: flex;
    align-items: center;
    gap: 15px;
}

.control-label {
    min-width: 60px;
    font-size: 14px;
}

.control-slider {
    flex: 1;
    height: 4px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 2px;
    position: relative;
    cursor: pointer;
}

.control-slider::before {
    content: '';
    position: absolute;
    width: 16px;
    height: 16px;
    background: #fff;
    border-radius: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    transition: transform 0.2s;
}

.control-slider:hover::before {
    transform: translate(-50%, -50%) scale(1.1);
}

.feature-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 20px;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    min-height: 180px;
    width: 100%;
}

.feature-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
}

.feature-icon {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 10px;
    border-radius: 12px;
    flex-shrink: 0;
    padding: 8px;
}

.feature-icon svg {
    width: 36px;
    height: 36px;
    fill: currentColor;
}

.feature-icon.template {
    background: rgba(33, 150, 243, 0.1);
    color: #2196F3;
}

.feature-icon.custom {
    background: rgba(156, 39, 176, 0.1);
    color: #9C27B0;
}

.feature-icon.security {
    background: rgba(76, 175, 80, 0.1);
    color: #4CAF50;
}

.feature-item span {
    font-size: 15px;
    font-weight: 600;
    color: #333;
    margin: 8px 0;
    display: block;
    width: 100%;
}

.feature-item small {
    font-size: 13px;
    color: #666;
    line-height: 1.4;
    display: block;
    width: 100%;
}

.feature-details {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 40px;
    width: 100%;
}

@media screen and (max-width: 1200px) {
    .container {
        max-width: 960px;
    }
    
    .feature-content {
        max-width: 400px;
        margin-right: 40px;
    }
    
    .feature-showcase {
        max-width: 500px;
    }
}

@media screen and (max-width: 992px) {
    .container {
        max-width: 720px;
    }
    
    .feature-content {
        max-width: 100%;
        margin-right: 0;
        margin-bottom: 40px;
    }
    
    .feature-showcase {
        max-width: 100%;
    }
    
    .feature-details {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media screen and (max-width: 768px) {
    .container {
        padding: 0 16px;
    }
    
    .feature-section {
        padding: 60px 0;
    }
    
    .voice-preview {
        flex-direction: column;
        gap: 30px;
    }
    
    .preview-item {
        max-width: 100%;
    }
    
    .preview-item:first-child,
    .preview-item:last-child {
        transform: none;
    }
}

@media screen and (max-width: 576px) {
    .feature-details {
        grid-template-columns: 1fr;
        gap: 16px;
    }
}

.voice-preview {
    display: flex;
    flex-direction: row;
    gap: 40px;
    justify-content: center;
    align-items: center;
    margin-top: 40px;
}

.preview-item {
    flex: 1;
    max-width: 280px;
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    transition: all 0.3s ease;
}

.preview-item:first-child {
    transform: rotate(-5deg) translateY(20px);
}

.preview-item:last-child {
    transform: rotate(5deg) translateY(20px);
}

.preview-item:hover {
    transform: rotate(0) scale(1.05) translateY(0);
    z-index: 3;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

.preview-header {
    padding: 16px 20px;
    border-bottom: 1px solid #eee;
    background: #fff;
}

.preview-header h4 {
    margin: 0;
    font-size: 16px;
    color: #333;
    font-weight: 600;
}

.preview-content {
    padding: 20px;
    background: #fff;
}

.preview-image {
    width: 100%;
    height: auto;
    border-radius: 12px;
    transition: transform 0.3s ease;
}

@media screen and (max-width: 1200px) {
    .preview-item {
        max-width: 280px;
    }
}

@media screen and (max-width: 900px) {
    .feature-showcase {
        padding-bottom: 20px;
    }
    
    .voice-preview {
        flex-direction: column;
        gap: 40px;
        margin-top: 40px;
    }
    
    .preview-item {
        max-width: 100%;
    }
    
    .preview-item:first-child {
        transform: rotate(-3deg) translateY(10px);
    }
    
    .preview-item:last-child {
        transform: rotate(3deg) translateY(10px);
    }
    
    .preview-item:hover {
        transform: rotate(0) scale(1.05) translateY(0);
    }
}

@media screen and (max-width: 600px) {
    .feature-showcase {
        padding-bottom: 10px;
    }
    
    .voice-preview {
        gap: 30px;
        margin-top: 30px;
    }
    
    .preview-item:first-child,
    .preview-item:last-child {
        transform: none;
    }
}

.voice-effects-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 15px;
}

.effect-tag {
    padding: 6px 12px;
    background: rgba(33, 150, 243, 0.1);
    color: #2196F3;
    border-radius: 20px;
    font-size: 14px;
}

.voice-controls-preview {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 15px;
}

.control-slider {
    height: 4px;
    background: #eee;
    border-radius: 2px;
    position: relative;
}

.slider-track {
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 60%;
    background: #2196F3;
    border-radius: 2px;
}

.slider-handle {
    position: absolute;
    width: 16px;
    height: 16px;
    background: #fff;
    border: 2px solid #2196F3;
    border-radius: 50%;
    top: 50%;
    left: 60%;
    transform: translate(-50%, -50%);
    cursor: pointer;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

@media screen and (max-width: 768px) {
    .voice-preview {
        padding: 10px;
    }
    
    .preview-item {
        border-radius: 16px;
    }
    
    .preview-header {
        padding: 15px;
    }
    
    .preview-content {
        padding: 15px;
    }
}

.feature-content {
    flex: 1;
    max-width: 500px;
    margin-right: 60px;
}

.feature-showcase {
    flex: 1;
    max-width: 600px;
    margin-top: 40px;
}

@media screen and (max-width: 1200px) {
    .feature-content {
        margin-right: 30px;
    }
    
    .feature-showcase {
        max-width: 450px;
    }
}

@media screen and (max-width: 900px) {
    .feature-content {
        max-width: 100%;
        margin-right: 0;
        margin-bottom: 40px;
    }
    
    .feature-showcase {
        max-width: 100%;
    }
    
    .voice-preview {
        gap: 20px;
    }
}

.sub-account-preview.horizontal {
    display: flex;
    flex-direction: row;
    gap: 20px;
    justify-content: space-between;
    align-items: flex-start;
}

.sub-account-preview.horizontal .preview-item {
    flex: 1;
    min-width: 0;
}

.sub-account-preview.horizontal .preview-content img {
    width: 100%;
    height: auto;
    object-fit: cover;
    border-radius: 8px;
} 