/* Base Styles */
:root {
    --primary-color: #4a6bff;
    --secondary-color: #6c757d;
    --dark-color: #343a40;
    --light-color: #f8f9fa;
    --success-color: #28a745;
    --danger-color: #dc3545;
    --border-radius: 8px;
    --box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    --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: #333;
    background-color: #fff;
}

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

a {
    text-decoration: none;
    color: var(--primary-color);
    transition: var(--transition);
}

a:hover {
    color: #3a56d4;
}

.btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: var(--border-radius);
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    font-size: 1rem;
}

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

.btn.primary:hover {
    background-color: #3a56d4;
    transform: translateY(-2px);
    box-shadow: 0 7px 14px rgba(0, 0, 0, 0.1);
}

.btn.secondary {
    background-color: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    margin-left: 15px;
}

.btn.secondary:hover {
    background-color: rgba(74, 107, 255, 0.1);
    transform: translateY(-2px);
}

/* Navigation */
/* 导航栏样式 */
body .navbar {
    background-color: #f5f5f5 !important; /* 使用!important确保覆盖其他样式 */
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid #e0e0e0;
}

/* 确保导航栏链接在浅色背景下可见 */
body .navbar .nav-links a {
    color: #333 !important;
}

body .navbar .nav-links a:hover {
    color: var(--primary-color) !important;
}

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

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

.logo-img {
    height: 32px;
    width: auto;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    line-height: 1;
}

.nav-links a {
    margin-left: 30px;
    color: var(--dark-color);
    font-weight: 500;
    transition: color 0.3s ease;
}

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

.mobile-menu {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
}

/* Hero Section */
.hero {
    padding: 200px 0 150px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    position: relative;
    overflow: hidden;
}

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

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

.hero h1 {
    font-size: 3rem;
    margin-bottom: 20px;
    color: var(--dark-color);
    line-height: 1.2;
}

.hero p {
    font-size: 1.2rem;
    color: var(--secondary-color);
    margin-bottom: 30px;
}

.cta-buttons {
    margin-top: 30px;
}

.hero-image {
    flex: 1;
    min-width: 300px;
    text-align: center;
}

.hero-image img {
    max-width: 100%;
    height: auto;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    transform: perspective(1000px) rotateY(-10deg);
    transition: var(--transition);
}

.hero-image img:hover {
    transform: perspective(1000px) rotateY(0);
}

/* Hero 二维码样式 */
.hero-qr {
    margin-left: 60px;
    background: white;
    padding: 30px;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    text-align: center;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.qr-container {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.qr-code {
    width: 180px;
    height: 180px;
    margin-bottom: 20px;
    border: 1px solid #eee;
    border-radius: 12px;
    padding: 15px;
    background: white;
}

.qr-tips p {
    margin: 8px 0;
    color: #333;
    font-size: 16px;
    line-height: 1.4;
}

.qr-tips p:first-child {
    font-weight: 600;
    font-size: 18px;
    color: #111;
}

/* 响应式调整 */
@media (max-width: 992px) {
    .hero {
        padding: 150px 0 100px;
    }
    
    .hero .container {
        flex-direction: column;
        text-align: center;
    }
    
    .hero-content {
        margin-bottom: 60px;
        max-width: 100%;
    }
    
    .hero-qr {
        margin: 40px auto 0;
        max-width: 300px;
        width: 100%;
    }
}

/* Features Section */
.features {
    padding: 100px 0;
    background-color: white;
}

.features h2, .download h2, .contact h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: var(--dark-color);
}

.features p, .download p, .contact p {
    text-align: center;
    color: var(--secondary-color);
    max-width: 700px;
    margin: 0 auto 50px;
}

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

.feature {
    background: white;
    padding: 40px 30px;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    text-align: center;
    transition: var(--transition);
}

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

.feature-icon {
    width: 80px;
    height: 80px;
    background: rgba(74, 107, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
    font-size: 2rem;
    color: var(--primary-color);
}

.feature h3 {
    margin-bottom: 15px;
    color: var(--dark-color);
}

/* Download Section */
.download {
    padding: 100px 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

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

.download-btn {
    display: flex;
    align-items: center;
    background: white;
    padding: 15px 25px;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    transition: var(--transition);
    color: var(--dark-color);
    text-align: left;
    min-width: 200px;
}

.download-btn:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    color: var(--primary-color);
}

.download-btn i {
    font-size: 2rem;
    margin-right: 15px;
    color: var(--primary-color);
}

.download-btn span {
    line-height: 1.3;
}

.download-btn strong {
    display: block;
    font-size: 1.2rem;
}

/* Contact Section */
.contact {
    padding: 100px 0;
    background-color: white;
}

#contact-form {
    max-width: 600px;
    margin: 0 auto;
    background: white;
    padding: 40px;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

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

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: var(--border-radius);
    font-size: 1rem;
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(74, 107, 255, 0.2);
}

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

/* Footer */
.footer {
    background-color: #f5f5f5; /* 更改为浅灰色背景 */
    color: #333; /* 文字颜色改为深色以提高可读性 */
    padding: 60px 0 0;
    font-size: 14px;
    line-height: 1.6;
}

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

.footer-section h4 {
    color: #333; /* 标题文字颜色改为深色 */
    font-size: 16px;
    margin-bottom: 20px;
    font-weight: 600;
    position: relative;
    padding-bottom: 10px;
}

.footer-section h4::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 40px;
    height: 2px;
    background-color: var(--primary-color);
}

.footer-logo-container {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
}

.footer-logo-img {
    height: 32px;
    width: auto;
}

.footer-logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: #151414;
    line-height: 1;
}

.footer-section p {
    color: #aaa;
    margin-bottom: 20px;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-links a {
    color: #aaa;
    transition: color 0.3s ease;
    display: block;
}

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

.contact-info p {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
    color: #aaa;
}

.contact-info i {
    color: var(--primary-color);
    width: 20px;
    text-align: center;
}

.footer-downloads {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin: 40px 0;
}

.download-badge {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.1);
    padding: 10px 20px;
    border-radius: 6px;
    color: #020202;
    transition: all 0.3s ease;
    transition: var(--transition);
}

.social-links a:hover {
    background: var(--primary-color);
    transform: translateY(-3px);
}

/* 底部版权信息 */
.footer-bottom {
    background: #e0e0e0; /* 底部背景色改为稍深的灰色 */
    padding: 20px 0;
    font-size: 12px;
    color: #666; /* 文字颜色调深以提高对比度 */
    border-top: 1px solid #d0d0d0; /* 调整边框颜色以匹配新背景 */
}

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

.footer-legal-links,
.footer-icp {
    text-align: center;
    margin-bottom: 10px;
    line-height: 1.6;
}

.footer-legal-links a,
.footer-icp a {
    color: #666; /* 链接颜色调深 */
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-legal-links a:hover,
.footer-icp a:hover {
    color: var(--primary-color);
    text-decoration: underline;
}

.divider {
    margin: 0 8px;
    color: #666;
    user-select: none;
}

.copyright {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.9rem;
}

/* Responsive Styles */
@media (max-width: 992px) {
    .hero .container {
        flex-direction: column;
        text-align: center;
    }
    
    .hero-content {
        padding-right: 0;
        margin-bottom: 50px;
    }
    
    .cta-buttons {
        justify-content: center;
    }
    
    .download-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .download-btn {
        width: 100%;
        max-width: 300px;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
    
    .mobile-menu {
        display: block;
    }
    
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        flex-direction: column;
    }
    
    /* 移动端底部样式调整 */
    .footer-legal-links,
    .footer-icp {
        display: flex;
        flex-direction: column;
        gap: 8px;
    }
    
    .divider {
        display: none;
    }
    
    .footer-section {
        margin-bottom: 30px;
        text-align: center;
    }
    
    .footer-links {
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .social-links {
        justify-content: center;
        margin-top: 20px;
    }
}

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

.hero-content, .hero-image, .feature, .download-btn, #contact-form {
    animation: fadeIn 0.8s ease-out forwards;
}

.feature:nth-child(1) { animation-delay: 0.1s; }
.feature:nth-child(2) { animation-delay: 0.3s; }
.feature:nth-child(3) { animation-delay: 0.5s; }
.download-btn:nth-child(1) { animation-delay: 0.1s; }
.download-btn:nth-child(2) { animation-delay: 0.2s; }
.download-btn:nth-child(3) { animation-delay: 0.3s; }
.download-btn:nth-child(4) { animation-delay: 0.4s; }
