/* C4F Heroes Website Styles - 参考官网设计 */

/* 字体引入 */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Plus+Jakarta+Sans:wght@300;400;500;600;700&display=swap');

/* 基础重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* 主要颜色变量 - 参考官网配色 */
:root {
    --primary-blue: #060097;
    --accent-purple: #c10fff;
    --accent-yellow: #ffcd57;
    --dark-gray: #2c3e50;
    --light-gray: #ecf0f1;
    --white: #ffffff;
    --gradient-primary: linear-gradient(135deg, #060097 0%, #c10fff 100%);
    --gradient-accent: linear-gradient(45deg, #c10fff 0%, #ffcd57 100%);
}

body {
    font-family: 'Inter', 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    line-height: 1.6;
    color: #333;
    background: var(--primary-blue);
    min-height: 100vh;
    overflow-x: hidden;
}

/* 容器布局 */
.main-container {
    width: 100%;
    min-height: 100vh;
}

/* 导航栏 */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(6, 0, 151, 0.9);
    backdrop-filter: blur(10px);
    z-index: 1000;
    padding: 15px 0;
    transition: all 0.3s ease;
}

.navbar.scrolled {
    background: rgba(6, 0, 151, 0.95);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

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

.logo {
    font-size: 1.8em;
    font-weight: 700;
    color: var(--white);
    text-decoration: none;
}

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

.nav-menu a {
    color: var(--white);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-menu a:hover {
    color: var(--accent-yellow);
}

/* 英雄区域 */
.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, #060097 0%, #4338ca 50%, #9333ea 100%);
    position: relative;
    overflow: hidden;
    padding-top: 80px;
}

.hero-bg {
    display: none;
}

.hero-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 50px;
}

.hero-text {
    flex: 1;
    text-align: left;
}

.hero-image {
    flex: 1;
    text-align: center;
}

.hero-image img {
    max-width: 100%;
    height: auto;
    max-height: 500px;
}

.hero-title {
    font-size: 3.5em;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 20px;
    text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.5);
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 1.3em;
    color: var(--accent-yellow);
    margin-bottom: 40px;
    font-weight: 400;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    font-style: italic;
}

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

.btn-primary {
    background: linear-gradient(45deg, #ff6b9d, #ffa726);
    color: var(--white);
    padding: 15px 40px;
    border: none;
    border-radius: 50px;
    font-size: 1.1em;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255, 107, 157, 0.3);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(193, 15, 255, 0.4);
}

.btn-secondary {
    background: transparent;
    color: var(--white);
    padding: 15px 40px;
    border: 2px solid var(--white);
    border-radius: 50px;
    font-size: 1.1em;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background: var(--white);
    color: var(--primary-blue);
    transform: translateY(-3px);
}

/* 内容区域 */
.content-section {
    background: var(--white);
    padding: 80px 0;
}

.section-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section-title {
    font-size: 2.5em;
    font-weight: 700;
    text-align: center;
    margin-bottom: 20px;
    color: var(--primary-blue);
}

.section-subtitle {
    font-size: 1.2em;
    text-align: center;
    color: #666;
    margin-bottom: 50px;
}

/* 功能网格 */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin: 50px 0;
}

.feature-card {
    background: var(--white);
    padding: 30px;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border: 1px solid #f0f0f0;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.feature-icon {
    font-size: 3em;
    margin-bottom: 20px;
    display: block;
}

.feature-title {
    font-size: 1.3em;
    font-weight: 600;
    margin-bottom: 15px;
    color: var(--primary-blue);
}

.feature-desc {
    color: #666;
    line-height: 1.6;
}

/* 下载区域 */
.download-section {
    background: var(--light-gray);
    padding: 80px 0;
    text-align: center;
}

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

.download-btn {
    background: var(--primary-blue);
    color: var(--white);
    padding: 20px 40px;
    border: none;
    border-radius: 15px;
    font-size: 1.1em;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(6, 0, 151, 0.3);
}

.download-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(6, 0, 151, 0.4);
}

.download-btn.ios {
    background: #000;
}

.download-btn.ios:hover {
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
}

/* 测试区域样式 */
.test-section {
    background: var(--dark-gray);
    color: var(--white);
    padding: 60px 0;
}

.test-section .section-title {
    color: var(--white);
}

.api-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin: 30px 0;
}

.api-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 25px;
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.api-card:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-5px);
}

.api-card h3 {
    color: var(--accent-yellow);
    margin-bottom: 10px;
    font-size: 1.2em;
}

.api-card a {
    color: var(--white);
    text-decoration: none;
    font-weight: 500;
    background: var(--accent-purple);
    padding: 8px 16px;
    border-radius: 20px;
    display: inline-block;
    margin-top: 10px;
    transition: all 0.3s ease;
}

.api-card a:hover {
    background: var(--accent-yellow);
    color: var(--primary-blue);
}

/* 客服支持区域 */
.support-section {
    background: var(--white);
    padding: 80px 0;
}

.support-form {
    max-width: 600px;
    margin: 30px auto;
    background: #f8f9fa;
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

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

.form-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--primary-blue);
}

.form-input, .form-select, .form-textarea {
    width: 100%;
    padding: 15px;
    border: 2px solid #e1e8ed;
    border-radius: 10px;
    font-size: 14px;
    transition: all 0.3s ease;
    font-family: inherit;
}

.form-input:focus, .form-select:focus, .form-textarea:focus {
    outline: none;
    border-color: var(--accent-purple);
    box-shadow: 0 0 0 3px rgba(193, 15, 255, 0.1);
}

.form-textarea {
    resize: vertical;
    min-height: 120px;
}

.submit-btn {
    background: var(--gradient-primary);
    color: var(--white);
    padding: 15px 40px;
    border: none;
    border-radius: 50px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    width: 100%;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(6, 0, 151, 0.3);
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(6, 0, 151, 0.4);
}

/* 状态指示器 */
.status-indicator {
    background: linear-gradient(45deg, #27ae60, #2ecc71);
    color: var(--white);
    padding: 15px 25px;
    border-radius: 50px;
    margin: 20px auto;
    display: inline-block;
    font-weight: 500;
    box-shadow: 0 4px 15px rgba(39, 174, 96, 0.3);
}

/* 模态框样式 */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(6, 0, 151, 0.9);
    backdrop-filter: blur(5px);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal-content {
    background: var(--white);
    border-radius: 20px;
    padding: 40px;
    max-width: 800px;
    width: 100%;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

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

.modal-title {
    font-size: 1.8em;
    font-weight: 700;
    color: var(--primary-blue);
}

.modal-close {
    background: var(--accent-purple);
    color: var(--white);
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    cursor: pointer;
    font-size: 20px;
    transition: all 0.3s ease;
}

.modal-close:hover {
    background: var(--primary-blue);
    transform: rotate(90deg);
}

/* 新闻和FAQ样式 */
.news-item, .faq-item {
    margin-bottom: 20px;
    padding: 25px;
    background: #f8f9fa;
    border-radius: 15px;
    border-left: 4px solid var(--accent-purple);
    transition: all 0.3s ease;
}

.news-item:hover, .faq-item:hover {
    background: #f0f2f5;
    transform: translateX(5px);
}

.news-title, .faq-question {
    color: var(--primary-blue);
    font-weight: 600;
    margin-bottom: 10px;
    font-size: 1.1em;
}

.news-meta, .faq-meta {
    color: #666;
    font-size: 0.9em;
    margin-bottom: 15px;
}

.news-content, .faq-answer {
    color: #333;
    line-height: 1.6;
}

/* 底部信息 */
.footer {
    background: #1a1a1a;
    color: #ccc;
    padding: 40px 0;
    text-align: center;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.footer-contact {
    margin-bottom: 20px;
    font-size: 16px;
}

.footer-contact a {
    color: #00aaff;
    text-decoration: none;
}

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

.footer-copyright {
    font-size: 14px;
    color: #999;
    line-height: 1.6;
}

.footer-copyright a {
    color: #999;
    text-decoration: none;
}

.footer-copyright a:hover {
    color: #ccc;
    text-decoration: underline;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .hero-content {
        flex-direction: column;
        text-align: center;
        gap: 30px;
    }
    
    .hero-text {
        text-align: center;
    }
    
    .hero-title {
        font-size: 2.5em;
    }
    
    .hero-subtitle {
        font-size: 1.2em;
    }
    
    .nav-menu {
        display: none;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .btn-primary, .btn-secondary {
        width: 80%;
        text-align: center;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .download-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .support-form {
        margin: 20px;
        padding: 30px 20px;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2em;
    }
    
    .section-title {
        font-size: 2em;
    }
    
    .feature-card {
        padding: 20px;
    }
}