/*
Theme Name: KlTheme
Theme URI: https://kuailianng.com.cn/
Author: Antigravity
Description: A modern, tech-focused WordPress theme inspired by Kuailian.
Version: 1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: kltheme
*/

:root {
    --primary-gradient: linear-gradient(135deg, #01246d 0%, #001d4a 100%);
    --secondary-color: #00a7ff;
    --accent-blue: #33b5ff;
    --bg-light: #f4f7fa;
    --text-main: #1d2b4a;
    --text-muted: #6b7a99;
    --white: #ffffff;
    --shadow-sm: 0 4px 6px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 10px 40px rgba(0, 0, 0, 0.08);
    --header-height: 90px;
    --radius: 12px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, system-ui, sans-serif;
    color: var(--text-main);
    background-color: var(--white);
    line-height: 1.6;
}

.container {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Typography */
h1,
h2,
h3 {
    font-weight: 700;
    color: var(--text-main);
}

h2 {
    font-size: 32px;
    text-align: center;
    margin-bottom: 50px;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 32px;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    font-size: 16px;
}

.btn-primary {
    background: var(--secondary-color);
    color: white;
}

.btn-primary:hover {
    background: var(--accent-blue);
    transform: translateY(-2px);
}

.btn-white {
    background: white;
    color: var(--primary-color);
}

.btn-outline {
    border: 2px solid white;
    color: white;
    background: transparent;
}

/* Header */
.site-header {
    height: var(--header-height);
    background: #01246d;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    display: flex;
    align-items: center;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.nav-menu {
    display: flex;
    gap: 30px;
}

.nav-item {
    text-align: center;
    color: rgba(255, 255, 255, 0.8);
    transition: 0.3s;
}

.nav-item i {
    display: block;
    font-size: 18px;
    margin-bottom: 4px;
}

.nav-item:hover {
    color: white;
}

/* Hero Section */
.hero {
    background: var(--primary-gradient);
    color: white;
    padding: 140px 0 80px;
    position: relative;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 60px;
    align-items: center;
}

.hero-text h1 {
    color: white;
    font-size: 48px;
    line-height: 1.2;
    margin-bottom: 24px;
}

.hero-text p {
    font-size: 18px;
    opacity: 0.8;
    margin-bottom: 32px;
}

.hero-btns {
    display: flex;
    gap: 16px;
    margin-bottom: 40px;
}

.hero-image img {
    width: 100%;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.hero-stats {
    display: flex;
    gap: 50px;
    margin-top: 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 30px;
}

.stat-item b {
    font-size: 28px;
    display: block;
}

.stat-item span {
    opacity: 0.6;
    font-size: 14px;
}

/* Section Generic */
section {
    padding: 100px 0;
}

.bg-light {
    background-color: var(--bg-light);
}

/* Card Grids */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.feature-card {
    background: white;
    padding: 40px;
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    transition: 0.3s;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-md);
}

.feature-icon {
    font-size: 32px;
    margin-bottom: 24px;
    color: var(--secondary-color);
}

.feature-list {
    margin-top: 20px;
}

.feature-list li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 8px;
}

.feature-list li::before {
    content: '✓';
    color: #28a745;
    font-weight: bold;
}

/* Pricing */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    align-items: flex-end;
}

.price-card {
    background: white;
    padding: 50px 40px;
    border-radius: var(--radius);
    text-align: center;
    border: 1px solid #eee;
    position: relative;
}

.price-card.popular {
    border: 2px solid var(--secondary-color);
    transform: scale(1.05);
    z-index: 2;
}

.badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: var(--secondary-color);
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
}

.price-value {
    font-size: 42px;
    font-weight: 800;
    margin: 20px 0;
}

.price-value span {
    font-size: 16px;
    font-weight: normal;
    color: var(--text-muted);
}

/* FAQ */
.faq-item {
    background: white;
    border-radius: 8px;
    margin-bottom: 12px;
    overflow: hidden;
    border: 1px solid #eee;
}

.faq-question {
    padding: 20px;
    cursor: pointer;
    font-weight: 600;
    display: flex;
    justify-content: space-between;
}

.faq-answer {
    padding: 0 20px 20px;
    color: var(--text-muted);
    display: none;
}

/* Footer */
.site-footer {
    background: #011640;
    color: white;
    padding: 80px 0 20px;
    font-size: 14px;
}

.footer-col h4 {
    margin-bottom: 25px;
    color: white;
}

.footer-col ul li {
    margin-bottom: 12px;
    opacity: 0.7;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 50px;
    padding-top: 30px;
    display: flex;
    justify-content: space-between;
}

/* Additional Fixes */

/* Reset links */
a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

ul {
    list-style: none;
}

/* Nav Item with Icon */
.nav-item a {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    font-size: 13px;
}

.nav-item i {
    display: flex;
    align-items: center;
    justify-content: center;
}

.nav-item svg {
    width: 18px;
    height: 18px;
}

/* Logo styling */
.logo a {
    color: white;
    display: flex;
    align-items: center;
}

/* Header CTA buttons fix */
.header-cta {
    display: flex;
    gap: 12px;
}

.header-cta .btn {
    padding: 10px 24px;
    font-size: 14px;
}

/* Footer Grid */
.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-col h3 {
    margin-bottom: 20px;
    font-size: 16px;
}

.footer-col p {
    opacity: 0.7;
    line-height: 1.8;
}

.footer-col ul li {
    margin-bottom: 10px;
}

.footer-col ul li a {
    opacity: 0.7;
    transition: 0.3s;
}

.footer-col ul li a:hover {
    opacity: 1;
    color: var(--secondary-color);
}

.footer-custom-links {
    display: flex;
    gap: 20px;
}

.footer-custom-links a {
    opacity: 0.7;
}

.footer-custom-links a:hover {
    opacity: 1;
}

/* News Cards */
.news-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.news-card a:hover h3 {
    color: var(--secondary-color);
}

/* Responsive */
@media (max-width: 992px) {
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-btns {
        justify-content: center;
    }

    .hero-stats {
        justify-content: center;
    }

    .feature-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .pricing-grid {
        grid-template-columns: 1fr;
    }

    .price-card.popular {
        transform: scale(1);
    }
}

@media (max-width: 768px) {
    .nav-menu {
        display: none;
    }

    .feature-grid {
        grid-template-columns: 1fr;
    }

    .hero-text h1 {
        font-size: 32px;
    }
}