/*
Theme Name: Kuailian VPN Theme
Theme URI: https://example.com/
Author: Kilo Code
Author URI: https://example.com/
Description: A high-performance, SEO-optimized WordPress theme for Kuailian VPN.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: kuailian-vpn
*/

/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #fff;
}

img {
    max-width: 100%;
    height: auto;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Typography */
h1, h2, h3, h4 {
    font-weight: 700;
    color: #1a1a1a;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 24px;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-primary {
    background-color: #1a73e8;
    color: #fff;
}

.btn-primary:hover {
    background-color: #1557b0;
}

.btn-outline {
    border: 1px solid #1a73e8;
    color: #1a73e8;
}

.btn-outline:hover {
    background-color: #f1f8ff;
}

.btn-green {
    background-color: #00c853;
    color: #fff;
}

.btn-green:hover {
    background-color: #00a844;
}

/* Section Titles */
.section-title {
    text-align: center;
    font-size: 36px;
    margin-bottom: 50px;
}

/* Hero Section */
.hero {
    padding: 80px 0;
    background: linear-gradient(180deg, #f8faff 0%, #ffffff 100%);
    overflow: hidden;
    scroll-margin-top: 70px;
}

.features, .services, .testimonials, .pricing, .faq {
    scroll-margin-top: 70px;
}

.hero .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
}

.hero-content {
    flex: 1;
    max-width: 600px;
}

.hero-content h1 {
    font-size: 48px;
    line-height: 1.2;
    margin-bottom: 20px;
    color: #1a1a1a;
}

.hero-content p {
    font-size: 18px;
    color: #666;
    margin-bottom: 30px;
}

.hero-btns {
    display: flex;
    gap: 20px;
    margin-bottom: 40px;
}

.hero-stats {
    display: flex;
    gap: 40px;
}

.stat-item {
    display: flex;
    flex-direction: column;
}

.stat-number {
    font-size: 32px;
    font-weight: 700;
    color: #1a73e8;
}

.stat-label {
    font-size: 14px;
    color: #888;
}

.hero-image {
    flex: 1;
    position: relative;
}

.hero-image img {
    width: 100%;
    filter: drop-shadow(0 20px 40px rgba(0,0,0,0.1));
}

/* Features Section */
.features {
    padding: 100px 0;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.feature-card {
    padding: 40px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
    text-align: center;
    transition: transform 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
}

.feature-icon {
    font-size: 40px;
    color: #1a73e8;
    margin-bottom: 20px;
}

.feature-card h3 {
    margin-bottom: 15px;
}

.feature-card p {
    color: #666;
    font-size: 14px;
}

/* Services Section */
.services {
    padding: 100px 0;
    background-color: #fcfcfc;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    margin-bottom: 60px;
}

.service-item {
    text-align: center;
}

.service-icon {
    font-size: 48px;
    color: #1a73e8;
    margin-bottom: 20px;
}

.service-item h3 {
    margin-bottom: 15px;
}

.service-item p {
    color: #666;
}

.privacy-commitment {
    max-width: 800px;
    margin: 0 auto;
}

.commitment-box {
    background: #fff;
    padding: 40px;
    border-radius: 12px;
    border: 1px solid #eee;
    text-align: center;
}

.commitment-box h3 {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 20px;
    color: #1a1a1a;
}

.commitment-box p {
    color: #666;
    margin-bottom: 20px;
}

.view-policy {
    color: #1a73e8;
    font-weight: 600;
}

/* Testimonials Section */
.testimonials {
    padding: 100px 0;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.testimonial-card {
    padding: 30px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
}

.stars {
    color: #ffb400;
    margin-bottom: 15px;
}

.testimonial-card p {
    font-style: italic;
    color: #444;
    margin-bottom: 20px;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 15px;
}

.user-avatar {
    width: 40px;
    height: 40px;
    background: #e1e8f5;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: #1a73e8;
}

.user-avatar::before {
    content: '👤';
}

.user-name {
    display: block;
    font-weight: 700;
}

.user-role {
    display: block;
    font-size: 12px;
    color: #888;
}

/* Pricing Section */
.pricing {
    padding: 100px 0;
    background-color: #f8faff;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    align-items: center;
}

.pricing-card {
    background: #fff;
    padding: 40px;
    border-radius: 16px;
    text-align: center;
    border: 1px solid #eee;
    position: relative;
}

.pricing-card.featured {
    border: 2px solid #00c853;
    transform: scale(1.05);
    z-index: 1;
}

.pricing-card .badge {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background: #00c853;
    color: #fff;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
}

.pricing-card h3 {
    margin-bottom: 20px;
}

.price {
    font-size: 48px;
    font-weight: 700;
    color: #1a73e8;
    margin-bottom: 10px;
}

.price span {
    font-size: 16px;
    color: #888;
}

.savings {
    color: #00c853;
    font-weight: 600;
    margin-bottom: 20px;
}

.pricing-features {
    margin: 30px 0;
    text-align: left;
}

.pricing-features li {
    margin-bottom: 12px;
    padding-left: 25px;
    position: relative;
}

.pricing-features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #00c853;
    font-weight: 700;
}

.pricing-card .btn {
    width: 100%;
}

.pricing-note {
    text-align: center;
    margin-top: 40px;
    color: #888;
    font-size: 14px;
}

/* FAQ Section */
.faq {
    padding: 100px 0;
}

.faq-list {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    border-bottom: 1px solid #eee;
}

.faq-question {
    padding: 20px 0;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out, padding 0.3s ease;
    color: #666;
    padding: 0;
}

.faq-item.active .faq-answer {
    max-height: 500px; /* 足够大的高度以容纳内容 */
    padding-bottom: 20px;
}

.faq-answer ul, .faq-answer ol {
    padding-left: 20px;
    margin: 10px 0;
}

.faq-answer li {
    margin-bottom: 8px;
}

/* CTA Section */
.cta {
    padding: 80px 0;
    background: #1a73e8;
    color: #fff;
    text-align: center;
}

.cta h2 {
    color: #fff;
    font-size: 32px;
    margin-bottom: 30px;
}

/* Responsive */
@media (max-width: 992px) {
    .hero .container {
        flex-direction: column;
        text-align: center;
    }
    .hero-btns {
        justify-content: center;
    }
    .hero-stats {
        justify-content: center;
    }
    .services-grid, .testimonials-grid, .pricing-grid {
        grid-template-columns: 1fr;
    }
    .pricing-card.featured {
        transform: none;
    }
    .footer-top {
        grid-template-columns: 1fr;
    }
}