/* 全局样式 */
:root {
    --primary-color: #2c98f0;
    --secondary-color: #ff9500;
    --dark-color: #1e293b;
    --light-color: #f8fafc;
    --gray-color: #64748b;
    --gray-light: #cbd5e1;
    --glass-bg: rgba(255, 255, 255, 0.1);
    --glass-border: rgba(255, 255, 255, 0.2);
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    --shadow-hover: 0 20px 40px rgba(0, 0, 0, 0.15);
    --transition: all 0.3s ease;
}

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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--dark-color);
    background-color: var(--light-color);
    background-image: 
        radial-gradient(circle at 10% 20%, rgba(44, 152, 240, 0.05) 0%, rgba(255, 149, 0, 0.05) 90%),
        radial-gradient(circle at 90% 80%, rgba(44, 152, 240, 0.05) 0%, rgba(255, 149, 0, 0.05) 90%);
    overflow-x: hidden;
}

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

/* 导航栏 */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 20px 0;
    background-color: var(--glass-bg);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--glass-border);
    z-index: 1000;
    transition: var(--transition);
}

.navbar.scrolled {
    padding: 15px 0;
    box-shadow: var(--shadow);
}

.navbar .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

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

.logo-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 24px;
    box-shadow: var(--shadow);
}

.logo-text h1 {
    font-size: 28px;
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.logo-text p {
    font-size: 14px;
    color: var(--gray-color);
}

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

.nav-links a {
    text-decoration: none;
    color: var(--dark-color);
    font-weight: 500;
    transition: var(--transition);
    position: relative;
}

.nav-links a:after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    transition: var(--transition);
}

.nav-links a:hover {
    color: var(--primary-color);
}

.nav-links a:hover:after {
    width: 100%;
}

.language-selector select {
    padding: 8px 15px;
    border: 1px solid var(--gray-light);
    border-radius: 20px;
    background-color: white;
    color: var(--dark-color);
    font-size: 14px;
    cursor: pointer;
    transition: var(--transition);
}

.language-selector select:hover {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(44, 152, 240, 0.1);
}

.mobile-menu-btn {
    display: none;
    font-size: 24px;
    cursor: pointer;
    color: var(--dark-color);
}

/* 英雄区域 */
.hero {
    padding: 150px 0 100px;
    position: relative;
    overflow: hidden;
}

.hero:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(44, 152, 240, 0.03) 0%, rgba(255, 149, 0, 0.03) 100%);
    z-index: -1;
}

.hero .container {
    display: flex;
    align-items: center;
    gap: 50px;
}

.hero-content {
    flex: 1;
    max-width: 500px;
}

.hero-title {
    font-size: 48px;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 20px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.hero-subtitle {
    font-size: 28px;
    font-weight: 600;
    margin-bottom: 20px;
    color: var(--dark-color);
}

.hero-description {
    font-size: 18px;
    color: var(--gray-color);
    margin-bottom: 30px;
}

.hero-buttons {
    display: flex;
    gap: 15px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 15px 30px;
    border-radius: 30px;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
    cursor: pointer;
}

/* 确保按钮中的文本始终居中 */
.btn span {
    display: inline-block;
    text-align: center;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    border: none;
    box-shadow: 0 10px 20px rgba(44, 152, 240, 0.2);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(44, 152, 240, 0.3);
}

.btn-secondary {
    background-color: white;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-secondary:hover {
    background-color: var(--primary-color);
    color: white;
}

.hero-image {
    flex: 1;
    display: flex;
    justify-content: center;
}

.app-showcase {
    position: relative;
}

.app-screen {
    width: 300px;
    height: 600px;
    border: 20px solid var(--dark-color);
    border-radius: 40px;
    overflow: hidden;
    position: relative;
    background-color: white;
    box-shadow: var(--shadow-hover);
}

.app-screen:before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60%;
    height: 30px;
    background-color: var(--dark-color);
    border-bottom-left-radius: 15px;
    border-bottom-right-radius: 15px;
}

.screen-content {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
}

.scan-preview {
    width: 100%;
    height: 100%;
    position: relative;
    background-color: var(--gray-light);
    border-radius: 5px;
}

.scan-box {
    width: 90%;
    height: 60%;
    border: 2px solid var(--primary-color);
    border-radius: 10px;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    box-shadow: 0 0 0 9999px rgba(0, 0, 0, 0.3);
}

.scan-lines {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, transparent 0%, rgba(44, 152, 240, 0.2) 10%, transparent 100%);
    background-size: 100% 200%;
    animation: scan 2s linear infinite;
}

@keyframes scan {
    0% {
        background-position: 0 0;
    }
    100% {
        background-position: 0 200%;
    }
}

/* 功能亮点 */
.features {
    padding: 100px 0;
}

.section-title {
    font-size: 36px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 50px;
    position: relative;
}

.section-title:after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    border-radius: 2px;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.feature-card {
    padding: 30px;
    background-color: white;
    border-radius: 15px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.feature-card:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
}

.feature-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, rgba(44, 152, 240, 0.1), rgba(255, 149, 0, 0.1));
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 36px;
    color: var(--primary-color);
    transition: var(--transition);
}

.feature-card:hover .feature-icon {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
}

.feature-title {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 15px;
    color: var(--dark-color);
}

.feature-description {
    font-size: 16px;
    color: var(--gray-color);
}

/* 技术展示 */
.tech-showcase {
    padding: 100px 0;
    background-color: var(--dark-color);
    color: white;
}

.tech-showcase .container {
    display: flex;
    align-items: center;
    gap: 50px;
}

.tech-content {
    flex: 1;
}

.tech-showcase .section-title {
    color: white;
}

.tech-description {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 30px;
    line-height: 1.7;
}

.tech-stats {
    display: flex;
    gap: 30px;
}

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

.stat-number {
    display: block;
    font-size: 36px;
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    margin-bottom: 10px;
}

.stat-label {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.8);
}

.tech-chart {
    flex: 1;
    height: 300px;
}

/* 适用场景 */
.scenarios {
    padding: 100px 0;
}

.scenarios-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.scenario-card {
    padding: 30px;
    background-color: white;
    border-radius: 15px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    text-align: center;
}

.scenario-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
}

.scenario-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, rgba(44, 152, 240, 0.1), rgba(255, 149, 0, 0.1));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 36px;
    color: var(--primary-color);
    transition: var(--transition);
}

.scenario-card:hover .scenario-icon {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    transform: scale(1.1);
}

.scenario-title {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 15px;
    color: var(--dark-color);
}

.scenario-description {
    font-size: 16px;
    color: var(--gray-color);
}

/* 用户评价 */
.testimonials {
    padding: 100px 0;
    background: linear-gradient(135deg, rgba(44, 152, 240, 0.05), rgba(255, 149, 0, 0.05));
}

.testimonials-slider {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    overflow: hidden;
}

.testimonial-slide {
    display: none;
    padding: 50px;
    background-color: white;
    border-radius: 20px;
    box-shadow: var(--shadow);
    text-align: center;
}

.testimonial-slide.active {
    display: block;
    animation: fadeIn 0.5s ease;
}

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

.testimonial-rating {
    margin-bottom: 20px;
    color: var(--secondary-color);
    font-size: 24px;
}

.testimonial-text {
    font-size: 18px;
    line-height: 1.8;
    color: var(--gray-color);
    margin-bottom: 30px;
}

.testimonial-author {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.author-name {
    font-size: 18px;
    font-weight: 600;
    color: var(--dark-color);
    margin-bottom: 5px;
}

.author-position {
    font-size: 14px;
    color: var(--gray-color);
}

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

.control-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: none;
    background-color: white;
    color: var(--primary-color);
    font-size: 20px;
    box-shadow: var(--shadow);
    cursor: pointer;
    transition: var(--transition);
}

.control-btn:hover {
    background-color: var(--primary-color);
    color: white;
    transform: scale(1.1);
}

/* 下载区域 */
.download {
    padding: 100px 0;
    position: relative;
    overflow: hidden;
}

.download:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 30% 30%, rgba(44, 152, 240, 0.1) 0%, transparent 50%),
                radial-gradient(circle at 70% 70%, rgba(255, 149, 0, 0.1) 0%, transparent 50%);
    z-index: -1;
}

.download .container {
    text-align: center;
}

.download-description {
    font-size: 18px;
    color: var(--gray-color);
    margin-bottom: 40px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.app-store-btn {
    display: inline-flex;
    align-items: center;
    gap: 15px;
    padding: 20px 40px;
    background-color: var(--dark-color);
    color: white;
    text-decoration: none;
    border-radius: 30px;
    font-size: 18px;
    font-weight: 600;
    transition: var(--transition);
    box-shadow: var(--shadow);
}

.app-store-btn:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
    background-color: #0f172a;
}

.app-store-btn i {
    font-size: 32px;
}

.app-store-text {
    text-align: left;
}

.app-store-label {
    font-size: 14px;
    opacity: 0.8;
}

.app-store-download {
    font-size: 20px;
    text-align: left;
    display: block;
}

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

.qrcode-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.appstore-qrcode {
    width: 150px;
    height: 150px;
    border-radius: 10px;
    box-shadow: var(--shadow);
}

.qrcode-text {
    font-size: 16px;
    color: var(--dark-color);
    font-weight: 500;
}

.download-stats {
    display: flex;
    justify-content: center;
    gap: 50px;
    margin-top: 50px;
}

.download-stat {
    text-align: center;
}

.download-stat i {
    font-size: 36px;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.download-stat span {
    display: block;
    font-size: 16px;
    color: var(--gray-color);
    margin-bottom: 5px;
}

.download-stat .stat-number {
    font-size: 24px;
    font-weight: 700;
    color: var(--dark-color);
}

/* 常见问题 */
.faq {
    padding: 100px 0;
}

.faq-items {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    margin-bottom: 20px;
    border-bottom: 1px solid var(--gray-light);
}

.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
    cursor: pointer;
    font-size: 18px;
    font-weight: 600;
    color: var(--dark-color);
    transition: var(--transition);
}

.faq-question:hover {
    color: var(--primary-color);
}

.faq-question i {
    font-size: 16px;
    transition: var(--transition);
}

.faq-item.active .faq-question i {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.faq-item.active .faq-answer {
    max-height: 500px;
    padding-bottom: 20px;
}

.faq-answer p {
    font-size: 16px;
    color: var(--gray-color);
    line-height: 1.6;
}

/* 页脚 */
.footer {
    background-color: var(--dark-color);
    color: white;
    padding: 100px 0 50px;
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 50px;
    margin-bottom: 50px;
}

.footer-logo {
    flex: 1;
    min-width: 300px;
}

.footer .logo-text h3 {
    font-size: 24px;
    color: white;
    margin-bottom: 10px;
}

.footer .logo-text p {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.6);
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 50px;
    flex: 2;
}

.footer-column h4 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 20px;
    color: white;
    position: relative;
    padding-bottom: 10px;
}

.footer-column h4:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
}

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

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

.footer-column a {
    text-decoration: none;
    color: rgba(255, 255, 255, 0.6);
    font-size: 14px;
    transition: var(--transition);
}

.footer-column a:hover {
    color: var(--primary-color);
    padding-left: 5px;
}

.footer-social {
    flex: 1;
    min-width: 200px;
}

.footer-social h4 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 20px;
    color: white;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    color: white;
    font-size: 16px;
    transition: var(--transition);
}

.social-link:hover {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    transform: translateY(-3px);
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.copyright {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.6);
}

/* 响应式设计 */
@media (max-width: 1024px) {
    .hero .container {
        flex-direction: column;
        text-align: center;
    }
    
    .hero-content {
        order: 2;
    }
    
    .hero-image {
        order: 1;
        margin-bottom: 50px;
    }
    
    .tech-showcase .container {
        flex-direction: column;
    }
    
    .tech-content {
        text-align: center;
        margin-bottom: 50px;
    }
    
    .tech-stats {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        top: 0;
        right: -300px;
        width: 300px;
        height: 100vh;
        background-color: white;
        box-shadow: var(--shadow);
        transition: var(--transition);
        z-index: 999;
        padding: 100px 20px 20px;
    }
    
    .nav-links.active {
        right: 0;
    }
    
    .nav-links ul {
        flex-direction: column;
        gap: 20px;
    }
    
    .mobile-menu-btn {
        display: block;
        z-index: 1000;
    }
    
    .language-selector {
        display: none;
    }
    
    .language-selector-container {
        margin-top: 20px;
        padding-top: 20px;
        border-top: 1px solid var(--gray-light);
    }
    
    .language-selector-container select {
        width: 100%;
        padding: 12px 15px;
        border: 1px solid var(--gray-light);
        border-radius: 8px;
        background-color: white;
        color: var(--dark-color);
        font-size: 16px;
        cursor: pointer;
        transition: var(--transition);
        -webkit-appearance: none;
        -moz-appearance: none;
        appearance: none;
        background-image: url('data:image/svg+xml;charset=US-ASCII,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 256 448%22 width=%2220%22 height=%2220%22%3E%3Cpath fill=%22%2364748b%22 d=%22M255.964 182.72l-127.982 127.982-127.982-127.982c-3.124-3.124-8.192-3.124-11.316 0l-22.604 22.604c-3.124 3.124-3.124 8.192 0 11.316l139.29 139.29c3.124 3.124 8.192 3.124 11.316 0l139.29-139.29c3.124-3.124 3.124-8.192 0-11.316l-22.604-22.604c-3.136-3.124-8.204-3.124-11.316 0z%22/%3E%3C/svg%3E');
        background-repeat: no-repeat;
        background-position: right 15px center;
    }
    
    .language-selector-container select:hover {
        border-color: var(--primary-color);
        box-shadow: 0 0 0 3px rgba(44, 152, 240, 0.1);
    }
    
    .language-selector-container select:focus {
        outline: none;
        border-color: var(--primary-color);
        box-shadow: 0 0 0 3px rgba(44, 152, 240, 0.1);
    }
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 36px;
    }
    
    .hero-subtitle {
        font-size: 24px;
    }
    
    .hero-buttons {
        flex-direction: column;
        gap: 15px;
    }
    
    .app-screen {
        width: 250px;
        height: 500px;
    }
    
    .download-stats {
        flex-direction: column;
        gap: 30px;
    }
    
    .footer-content {
        flex-direction: column;
        align-items: center;
        gap: 30px;
    }
    
    .footer-logo,
    .footer-social {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .footer-links {
        flex-direction: column;
        gap: 30px;
    }
}

@media (max-width: 480px) {
    .section-title {
        font-size: 28px;
    }
    
    .feature-card, .scenario-card {
        padding: 20px;
    }
    
    .testimonial-slide {
        padding: 30px 20px;
    }
    
    .app-store-btn {
        padding: 15px 30px;
        font-size: 16px;
    }
}