/* QuickQ VPN 主样式文件 */

/* 基础样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

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

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

/* 按钮样式 */
.btn-primary {
    background: linear-gradient(135deg, #3B82F6 0%, #2563EB 100%);
    color: white;
    border: none;
    padding: 12px 28px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
    font-size: 16px;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.4);
}

.btn-primary.btn-large {
    padding: 16px 40px;
    font-size: 18px;
    border-radius: 10px;
}

.btn-secondary {
    background: white;
    color: #3B82F6;
    border: 2px solid #3B82F6;
    padding: 12px 28px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 16px;
}

.btn-secondary:hover {
    background: #3B82F6;
    color: white;
}

.btn-outline {
    background: transparent;
    color: #3B82F6;
    border: 2px solid #E5E7EB;
    padding: 12px 28px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 16px;
    width: 100%;
}

.btn-outline:hover {
    border-color: #3B82F6;
    background: rgba(59, 130, 246, 0.05);
}

/* 英雄区域 */
.hero {
    padding: 160px 0 100px;
    background: linear-gradient(135deg, #F0F9FF 0%, #E0F2FE 100%);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 50%;
    height: 100%;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.05) 0%, rgba(16, 185, 129, 0.05) 100%);
    clip-path: polygon(25% 0%, 100% 0%, 100% 100%, 0% 100%);
    z-index: 0;
}

.hero .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    z-index: 1;
}

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

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

.hero h1 {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 20px;
    color: #1F2937;
}

.hero .subtitle {
    font-size: 1.5rem;
    color: #3B82F6;
    margin-bottom: 25px;
    font-weight: 600;
}

.hero .description {
    font-size: 1.2rem;
    color: #6B7280;
    margin-bottom: 40px;
    line-height: 1.7;
}

.hero-stats {
    display: flex;
    gap: 30px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.stat {
    text-align: center;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    color: #3B82F6;
    margin-bottom: 5px;
}

.stat-label {
    font-size: 1rem;
    color: #6B7280;
    font-weight: 500;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.hero-buttons .btn-large {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.hero-buttons .btn-large small {
    font-size: 0.9rem;
    opacity: 0.9;
    margin-top: 5px;
    font-weight: 400;
}

.platform-badges {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.badge {
    background: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    color: #3B82F6;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    border: 1px solid #E5E7EB;
}

/* VPN界面模拟 */
.vpn-interface {
    background: white;
    border-radius: 16px;
    padding: 25px;
    width: 320px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    border: 1px solid #E5E7EB;
}

.interface-header {
    margin-bottom: 25px;
}

.connection-status {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 20px;
    background: #F0F9FF;
    border-radius: 12px;
    font-weight: 600;
}

.connection-status.connected {
    color: #10B981;
}

.status-dot {
    width: 12px;
    height: 12px;
    background: #10B981;
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { opacity: 1; }
    50% { opacity: 0.5; }
    100% { opacity: 1; }
}

.server-list {
    margin-bottom: 25px;
}

.server-item {
    display: flex;
    align-items: center;
    padding: 15px;
    border-radius: 10px;
    margin-bottom: 10px;
    cursor: pointer;
    transition: all 0.3s;
    border: 1px solid transparent;
}

.server-item:hover {
    background: #F9FAFB;
    border-color: #E5E7EB;
}

.server-item.selected {
    background: #F0F9FF;
    border-color: #3B82F6;
}

.server-flag {
    font-size: 24px;
    margin-right: 15px;
}

.server-info {
    flex: 1;
}

.server-name {
    font-weight: 600;
    margin-bottom: 5px;
}

.server-ping {
    font-size: 14px;
    color: #6B7280;
}

.server-status {
    background: #10B981;
    color: white;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
}

.connect-btn {
    width: 100%;
    background: linear-gradient(135deg, #3B82F6 0%, #2563EB 100%);
    color: white;
    border: none;
    padding: 16px;
    border-radius: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
    font-size: 16px;
}

.connect-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.4);
}

/* 功能特色 */
.features {
    padding: 100px 0;
    background: white;
}

.features h2, .servers h2, .pricing h2, .download h2, .faq h2, .cta h2 {
    font-size: 2.8rem;
    text-align: center;
    margin-bottom: 20px;
    color: #1F2937;
}

.section-subtitle {
    text-align: center;
    font-size: 1.2rem;
    color: #6B7280;
    max-width: 600px;
    margin: 0 auto 60px;
}

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

.feature-card {
    background: #F9FAFB;
    border-radius: 16px;
    padding: 40px 30px;
    text-align: center;
    transition: all 0.3s;
    border: 1px solid #E5E7EB;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
    border-color: #3B82F6;
}

.feature-icon {
    font-size: 3.5rem;
    margin-bottom: 25px;
}

.feature-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: #1F2937;
}

.feature-card p {
    color: #6B7280;
    line-height: 1.7;
}

/* 服务器网络 */
.servers {
    padding: 100px 0;
    background: #F9FAFB;
}

.server-map {
    margin-bottom: 60px;
}

.map-container {
    background: white;
    border-radius: 16px;
    padding: 30px;
    margin-bottom: 40px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.server-node {
    cursor: pointer;
    transition: all 0.3s;
}

.server-node:hover {
    r: 12;
    fill: #10B981;
}

.server-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.stat-card {
    background: white;
    border-radius: 12px;
    padding: 25px;
    text-align: center;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.05);
    border: 1px solid #E5E7EB;
}

.stat-card .stat-number {
    font-size: 2.2rem;
    font-weight: 800;
    color: #3B82F6;
    margin-bottom: 10px;
}

.stat-card .stat-label {
    font-size: 1rem;
    color: #6B7280;
}

.server-regions {
    background: white;
    border-radius: 16px;
    padding: 40px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.server-regions h3 {
    font-size: 1.8rem;
    margin-bottom: 30px;
    color: #1F2937;
}

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

.region-item {
    display: flex;
    align-items: center;
    padding: 20px;
    border-radius: 12px;
    border: 1px solid #E5E7EB;
    transition: all 0.3s;
    cursor: pointer;
}

.region-item:hover {
    border-color: #3B82F6;
    background: #F0F9FF;
    transform: translateY(-2px);
}

.region-flag {
    font-size: 2rem;
    margin-right: 20px;
}

.region-info {
    flex: 1;
}

.region-name {
    font-weight: 600;
    margin-bottom: 5px;
    font-size: 1.1rem;
}

.region-details {
    font-size: 0.9rem;
    color: #6B7280;
}

.region-ping {
    background: #10B981;
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
}

/* 价格计划 */
.pricing {
    padding: 100px 0;
    background: white;
}

.pricing-switch {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-bottom: 60px;
}

.switch-label {
    font-weight: 600;
    color: #6B7280;
    transition: color 0.3s;
}

.switch-label.active {
    color: #3B82F6;
}

.switch {
    width: 60px;
    height: 30px;
    background: #E5E7EB;
    border-radius: 30px;
    cursor: pointer;
    position: relative;
    transition: all 0.3s;
}

.switch.active {
    background: #3B82F6;
}

.switch-slider {
    position: absolute;
    top: 3px;
    left: 3px;
    width: 24px;
    height: 24px;
    background: white;
    border-radius: 50%;
    transition: all 0.3s;
}

.switch.active .switch-slider {
    left: 33px;
}

.pricing-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 60px;
}

.pricing-card {
    background: #F9FAFB;
    border-radius: 16px;
    padding: 40px 30px;
    border: 2px solid #E5E7EB;
    transition: all 0.3s;
    position: relative;
}

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

.pricing-card.popular {
    border-color: #3B82F6;
    background: white;
    box-shadow: 0 20px 40px rgba(59, 130, 246, 0.15);
}

.popular-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: #3B82F6;
    color: white;
    padding: 6px 20px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
}

.plan-header {
    text-align: center;
    margin-bottom: 30px;
    padding-bottom: 30px;
    border-bottom: 1px solid #E5E7EB;
}

.plan-header h3 {
    font-size: 1.8rem;
    margin-bottom: 20px;
    color: #1F2937;
}

.plan-price {
    margin-bottom: 10px;
}

.price {
    font-size: 3rem;
    font-weight: 800;
    color: #3B82F6;
}

.period {
    font-size: 1.2rem;
    color: #6B7280;
}

.plan-save {
    background: #10B981;
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    display: inline-block;
}

.plan-features {
    list-style: none;
    margin-bottom: 30px;
}

.plan-features li {
    padding: 10px 0;
    color: #6B7280;
    border-bottom: 1px solid #E5E7EB;
}

.plan-features li:last-child {
    border-bottom: none;
}

.pricing-features {
    background: #F0F9FF;
    border-radius: 16px;
    padding: 40px;
}

.pricing-features h3 {
    font-size: 1.5rem;
    margin-bottom: 25px;
    text-align: center;
    color: #1F2937;
}

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

.feature-item {
    display: flex;
    align-items: center;
    gap: 10px;
}

.feature-icon {
    color: #10B981;
    font-weight: bold;
}

/* 下载区域 */
.download {
    padding: 100px 0;
    background: #F9FAFB;
}

.download-platforms {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 60px;
}

.platform-card {
    background: white;
    border-radius: 16px;
    padding: 40px 30px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    border: 1px solid #E5E7EB;
    transition: all 0.3s;
}

.platform-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    border-color: #3B82F6;
}

.platform-icon {
    font-size: 3.5rem;
    margin-bottom: 20px;
}

.platform-card h4 {
    font-size: 1.5rem;
    margin-bottom: 10px;
    color: #1F2937;
}

.platform-card p {
    color: #6B7280;
    margin-bottom: 20px;
}

.platform-info {
    font-size: 0.9rem;
    color: #6B7280;
    margin-top: 15px;
}

.download-steps {
    background: white;
    border-radius: 16px;
    padding: 50px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.download-steps h3 {
    font-size: 2rem;
    text-align: center;
    margin-bottom: 50px;
    color: #1F2937;
}

.steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
}

.step {
    display: flex;
    align-items: flex-start;
    gap: 20px;
}

.step-number {
    background: #3B82F6;
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 800;
    flex-shrink: 0;
}

.step-content h4 {
    font-size: 1.3rem;
    margin-bottom: 10px;
    color: #1F2937;
}

.step-content p {
    color: #6B7280;
    line-height: 1.7;
}

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

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

.faq-item {
    border: 1px solid #E5E7EB;
    border-radius: 12px;
    margin-bottom: 20px;
    overflow: hidden;
}

.faq-question {
    padding: 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    background: #F9FAFB;
    transition: background 0.3s;
}

.faq-question:hover {
    background: #F3F4F6;
}

.faq-question h3 {
    font-size: 1.2rem;
    color: #1F2937;
}

.faq-toggle {
    font-size: 1.5rem;
    color: #3B82F6;
    font-weight: bold;
    transition: transform 0.3s;
}

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

.faq-answer p {
    padding: 0 0 25px;
    color: #6B7280;
    line-height: 1.7;
}

/* 底部CTA */
.cta {
    padding: 100px 0;
    background: linear-gradient(135deg, #3B82F6 0%, #2563EB 100%);
    text-align: center;
    color: white;
}

.cta h2 {
    color: white;
    font-size: 3rem;
    margin-bottom: 20px;
}

.cta p {
    font-size: 1.3rem;
    margin-bottom: 40px;
    opacity: 0.9;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.cta .small-text {
    font-size: 1rem;
    margin-top: 25px;
    opacity: 0.8;
}

/* 页脚 */
.footer {
    background: #1F2937;
    color: #9CA3AF;
    padding: 80px 0 30px;
}

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

.footer-section h4 {
    color: white;
    font-size: 1.2rem;
    margin-bottom: 25px;
}

.footer-section p {
    line-height: 1.7;
    margin-bottom: 25px;
}

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

.footer-section li {
    margin-bottom: 12px;
}

.footer-section a {
    color: #9CA3AF;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-section a:hover {
    color: white;
}

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

.social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: white;
    text-decoration: none;
    font-size: 1.2rem;
    transition: all 0.3s;
}

.social-links a:hover {
    background: #3B82F6;
    transform: translateY(-3px);
}

.footer-bottom {
    border-top: 1px solid #374151;
    padding-top: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.copyright p {
    margin-bottom: 10px;
}

.copyright p:last-child {
    margin-bottom: 0;
    font-size: 0.9rem;
    opacity: 0.8;
}

.payment-methods {
    display: flex;
    gap: 15px;
}

.payment-icon {
    font-size: 1.5rem;
    opacity: 0.8;
}

/* 响应式设计 */
@media (max-width: 992px) {
    .hero .container {
        flex-direction: column;
        text-align: center;
    }
    
    .hero-content {
        margin-bottom: 60px;
    }
    
    .hero h1 {
        font-size: 2.8rem;
    }
    
    .hero .subtitle {
        font-size: 1.3rem;
    }
    
    .hero-stats {
        justify-content: center;
    }
    
    .hero-buttons {
        justify-content: center;
    }
    
    .platform-badges {
        justify-content: center;
    }
    
    .features h2, .servers h2, .pricing h2, .download h2, .faq h2, .cta h2 {
        font-size: 2.3rem;
    }
}

@media (max-width: 768px) {
    .hero {
        padding: 140px 0 80px;
    }
    
    .hero h1 {
        font-size: 2.3rem;
    }
    
    .hero .description {
        font-size: 1.1rem;
    }
    
    .features, .servers, .pricing, .download, .faq, .cta {
        padding: 80px 0;
    }
    
    .pricing-cards, .download-platforms {
        grid-template-columns: 1fr;
    }
    
    .download-steps {
        padding: 30px;
    }
    
    .steps {
        grid-template-columns: 1fr;
    }
    
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 576px) {
    .hero h1 {
        font-size: 2rem;
    }
    
    .hero .subtitle {
        font-size: 1.1rem;
    }
    
    .hero-buttons {
        flex-direction: column;
    }
    
    .hero-buttons button {
        width: 100%;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .region-list {
        grid-template-columns: 1fr;
    }
    
    .download-steps {
        padding: 20px;
    }
    
    .faq-question {
        padding: 20px;
    }
    
    .faq-question h3 {
        font-size: 1.1rem;
    }
    
    .cta h2 {
        font-size: 2.3rem;
    }
    
    .cta p {
        font-size: 1.1rem;
    }
}