/* 16同城 - 前端样式 */

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

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    color: var(--text-color, #333);
    line-height: 1.6;
}

a {
    text-decoration: none;
    color: inherit;
}

/* 顶部导航栏 */
.header {
    background: var(--nav-bg-color, #fff);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
}

.header-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 70px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 24px;
    font-weight: bold;
    color: var(--primary-color, #667eea);
}

.logo-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--primary-color, #667eea) 0%, var(--primary-gradient, #764ba2) 100%);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 20px;
}

.nav-menu {
    display: flex;
    gap: 30px;
    list-style: none;
}

.nav-menu a {
    color: var(--text-muted-color, #666);
    font-size: 16px;
    transition: color 0.3s;
    padding: 5px 0;
}

.nav-menu a:hover,
.nav-menu a.active {
    color: var(--primary-color, #667eea);
}

.header-actions {
    display: flex;
    gap: 15px;
    align-items: center;
}

.btn-login {
    color: var(--primary-color, #667eea);
    font-size: 16px;
    padding: 8px 20px;
    border: 1px solid var(--primary-color, #667eea);
    border-radius: 6px;
    transition: all 0.3s;
}

.btn-login:hover {
    background: var(--primary-color, #667eea);
    color: #fff;
}

.btn-join {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    font-size: 16px;
    padding: 10px 25px;
    border-radius: 6px;
    transition: transform 0.3s, box-shadow 0.3s;
}

.btn-join:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

/* Hero区域 */
.hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 150px 20px 100px;
    text-align: center;
    color: #fff;
    margin-top: 70px;
}

.hero h1 {
    font-size: 48px;
    margin-bottom: 20px;
    font-weight: 700;
}

.hero p {
    font-size: 20px;
    margin-bottom: 40px;
    opacity: 0.9;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
}

.btn-primary {
    background: var(--primary-color, #667eea);
    color: #fff;
    padding: 15px 40px;
    border-radius: 8px;
    font-size: 18px;
    font-weight: 600;
    transition: transform 0.3s, box-shadow 0.3s;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(255,255,255,0.3);
}

.btn-secondary {
    background: transparent;
    color: #fff;
    padding: 15px 40px;
    border-radius: 8px;
    font-size: 18px;
    font-weight: 600;
    border: 2px solid #fff;
    transition: all 0.3s;
}

.btn-secondary:hover {
    background: #fff;
    color: var(--primary-color, #667eea);
}

/* 服务分类 */
.services {
    padding: 80px 20px;
    background: var(--bg-color, #f8f9fa);
}

.section-title {
    text-align: center;
    font-size: 36px;
    color: var(--text-color, #333);
    margin-bottom: 20px;
}

.section-subtitle {
    text-align: center;
    font-size: 18px;
    color: var(--text-muted-color, #666);
    margin-bottom: 60px;
}

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

.service-card {
    background: #fff;
    border-radius: 12px;
    padding: 40px 30px;
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s;
    cursor: pointer;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.1);
}

.service-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-color, #667eea) 0%, var(--primary-gradient, #764ba2) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 36px;
    color: #fff;
}

.service-card h3 {
    font-size: 22px;
    color: #333;
    margin-bottom: 15px;
}

.service-card p {
    font-size: 15px;
    color: #666;
    line-height: 1.6;
}

/* 平台优势 */
.advantages {
    padding: 80px 20px;
    background: #fff;
}

.advantages-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
}

.advantage-item {
    text-align: center;
}

.advantage-number {
    font-size: 48px;
    font-weight: 700;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 15px;
}

.advantage-item h3 {
    font-size: 20px;
    color: #333;
    margin-bottom: 10px;
}

.advantage-item p {
    font-size: 15px;
    color: #666;
}

/* 加盟流程 */
.join-process {
    padding: 80px 20px;
    background: #f8f9fa;
}

.process-steps {
    max-width: 1000px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    position: relative;
}

.process-steps::before {
    content: '';
    position: absolute;
    top: 40px;
    left: 10%;
    right: 10%;
    height: 2px;
    background: #ddd;
    z-index: 1;
}

.process-step {
    text-align: center;
    position: relative;
    z-index: 2;
    flex: 1;
}

.step-number {
    width: 80px;
    height: 80px;
    background: #fff;
    border: 3px solid #667eea;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    font-weight: 700;
    color: #667eea;
    margin: 0 auto 20px;
    transition: all 0.3s;
}

.process-step:hover .step-number {
    background: #667eea;
    color: #fff;
}

.process-step h3 {
    font-size: 18px;
    color: #333;
    margin-bottom: 10px;
}

.process-step p {
    font-size: 14px;
    color: #666;
    padding: 0 10px;
}

/* CTA区域 */
.cta {
    padding: 80px 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    text-align: center;
    color: #fff;
}

.cta h2 {
    font-size: 36px;
    margin-bottom: 20px;
}

.cta p {
    font-size: 18px;
    margin-bottom: 40px;
    opacity: 0.9;
}

/* 底部 */
.footer {
    background: #1a1a1a;
    color: #999;
    padding: 60px 20px 30px;
}

.footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-column h3 {
    color: #fff;
    font-size: 18px;
    margin-bottom: 20px;
}

.footer-column ul {
    list-style: none;
}

.footer-column ul li {
    margin-bottom: 10px;
}

.footer-column ul li a {
    color: #999;
    font-size: 14px;
    transition: color 0.3s;
}

.footer-column ul li a:hover {
    color: #667eea;
}

.footer-bottom {
    max-width: 1200px;
    margin: 0 auto;
    padding-top: 30px;
    border-top: 1px solid #333;
    text-align: center;
    font-size: 14px;
}

/* 文字转音频模块 */
.tts-section {
    padding: 80px 20px;
    background: #fff;
}

.tts-container {
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 30px;
    align-items: start;
}

.tts-left {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.tts-input-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 15px;
    font-weight: 600;
    color: var(--text-color, #333);
}

.tts-char-count {
    font-size: 13px;
    color: var(--text-muted-color, #999);
    background: #f0f2f5;
    padding: 3px 10px;
    border-radius: 12px;
}

.tts-textarea {
    width: 100%;
    height: 320px;
    padding: 18px;
    border: 2px solid #e4e7ed;
    border-radius: 12px;
    font-size: 16px;
    line-height: 1.8;
    resize: vertical;
    transition: border-color 0.3s, box-shadow 0.3s;
    outline: none;
    font-family: inherit;
    color: var(--text-color, #333);
}

.tts-textarea:focus {
    border-color: var(--primary-color, #667eea);
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.1);
}

.tts-textarea::placeholder {
    color: #bbb;
}

.tts-sample-texts {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

.sample-label {
    font-size: 13px;
    color: var(--text-muted-color, #999);
}

.sample-btn {
    padding: 5px 14px;
    font-size: 13px;
    border: 1px solid #e4e7ed;
    border-radius: 20px;
    background: #f8f9fa;
    cursor: pointer;
    transition: all 0.2s;
    color: var(--text-muted-color, #666);
}

.sample-btn:hover {
    border-color: var(--primary-color, #667eea);
    color: var(--primary-color, #667eea);
    background: #f0f4ff;
}

/* 右侧参数面板 */
.tts-right {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.tts-panel {
    background: linear-gradient(135deg, #f8f9ff 0%, #f0f2ff 100%);
    border: 1px solid #e4e9ff;
    border-radius: 16px;
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 22px;
}

.tts-param-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.tts-param-group > label {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-color, #333);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.param-value {
    font-size: 13px;
    font-weight: 700;
    color: var(--primary-color, #667eea);
    background: #fff;
    padding: 2px 10px;
    border-radius: 10px;
}

.tts-select {
    width: 100%;
    padding: 11px 14px;
    border: 2px solid #e4e7ed;
    border-radius: 10px;
    font-size: 14px;
    background: #fff;
    cursor: pointer;
    transition: border-color 0.3s;
    outline: none;
    appearance: auto;
}

.tts-select:focus {
    border-color: var(--primary-color, #667eea);
}

.voice-preview-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 4px;
}

.preview-voice-btn {
    padding: 4px 12px;
    font-size: 12px;
    border: 1px solid var(--primary-color, #667eea);
    border-radius: 15px;
    background: transparent;
    cursor: pointer;
    color: var(--primary-color, #667eea);
    transition: all 0.2s;
    white-space: nowrap;
}

.preview-voice-btn:hover:not(:disabled) {
    background: var(--primary-color, #667eea);
    color: #fff;
}

.preview-voice-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.voice-info {
    font-size: 12px;
    color: var(--text-muted-color, #999);
}

/* 滑块 */
.tts-slider {
    width: 100%;
    height: 6px;
    -webkit-appearance: none;
    appearance: none;
    background: linear-gradient(to right, #ddd, var(--primary-color, #667eea));
    border-radius: 3px;
    outline: none;
    cursor: pointer;
}

.tts-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--primary-color, #667eea);
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(102,126,234,0.35);
    transition: transform 0.15s;
}

.tts-slider::-webkit-slider-thumb:hover {
    transform: scale(1.15);
}

.tts-slider::-moz-range-thumb {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--primary-color, #667eea);
    cursor: pointer;
    border: none;
    box-shadow: 0 2px 8px rgba(102,126,234,0.35);
}

.slider-labels {
    display: flex;
    justify-content: space-between;
    font-size: 11px;
    color: var(--text-muted-color, #999);
    margin-top: 2px;
}

/* 操作按钮 */
.tts-actions {
    display: flex;
    gap: 10px;
}

.tts-btn {
    flex: 1;
    padding: 14px 20px;
    border: none;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.tts-btn-primary {
    background: linear-gradient(135deg, var(--primary-color, #667eea) 0%, var(--primary-gradient, #764ba2) 100%);
    color: #fff;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.35);
}

.tts-btn-primary:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.45);
}

.tts-btn-danger {
    background: linear-gradient(135deg, #f56c6c 0%, #c45656 100%);
    color: #fff;
    box-shadow: 0 4px 15px rgba(245, 108, 108, 0.35);
}

.tts-btn-danger:hover:not(:disabled) {
    transform: translateY(-2px);
}

.tts-btn-secondary {
    background: #fff;
    color: var(--text-color, #333);
    border: 2px solid #e4e7ed;
}

.tts-btn-secondary:hover:not(:disabled) {
    border-color: var(--primary-color, #667eea);
    color: var(--primary-color, #667eea);
}

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

/* 音频播放器区域 */
.tts-player-area {
    max-width: 1100px;
    margin: 24px auto 0;
}

.tts-player-inner {
    background: #f8f9ff;
    border: 1px solid #e4e9ff;
    border-radius: 12px;
    padding: 16px 20px;
    display: flex;
    align-items: center;
    gap: 16px;
}

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

.tts-status {
    font-size: 13px;
    color: var(--primary-color, #667eea);
    white-space: nowrap;
    font-weight: 500;
}

/* 响应式：TTS模块 */
@media (max-width: 900px) {
    .tts-container {
        grid-template-columns: 1fr;
    }
    
    .tts-actions {
        flex-wrap: wrap;
    }
    
    .tts-btn {
        flex: 1 1 calc(50% - 5px);
        min-width: 120px;
    }

    .tts-textarea {
        height: 220px;
    }
}
@media (max-width: 768px) {
    .header-inner {
        flex-wrap: wrap;
        height: auto;
        padding: 15px 20px;
    }
    
    .nav-menu {
        display: none;
    }
    
    .hero h1 {
        font-size: 32px;
    }
    
    .hero p {
        font-size: 16px;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .process-steps {
        flex-direction: column;
        gap: 30px;
    }
    
    .process-steps::before {
        display: none;
    }
}
