/*
Theme Name: VSPPT 2026
Theme URI: https://www.vsppt.com/
Author: vsppt
Author URI: https://www.vsppt.com/
Description: Modern, flat, minimalist WordPress theme for VSPPT with XiaoYu AI app showcase.
Version: 1.0.0
License: Copyright 2026 vsppt. All rights reserved.
Text Domain: vsppt
*/

:root {
    --primary: #0066ff;
    --primary-dark: #0044cc;
    --primary-light: #e6f0ff;
    --dark: #0a0a0a;
    --gray-900: #171717;
    --gray-700: #404040;
    --gray-500: #737373;
    --gray-300: #d4d4d4;
    --gray-100: #f5f5f5;
    --gray-50: #fafafa;
    --white: #ffffff;
    --radius: 16px;
    --radius-sm: 10px;
    --shadow: 0 2px 20px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 8px 40px rgba(0, 0, 0, 0.1);
    --max-width: 1200px;
    --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", "Helvetica Neue", "PingFang SC", "Noto Sans SC", sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
    font-family: var(--font);
    color: var(--dark);
    background: var(--white);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a { color: var(--primary); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--primary-dark); }

.container { max-width: var(--max-width); margin: 0 auto; padding: 0 24px; }

/* ─── Header ─── */
.site-header {
    position: fixed; top: 0; left: 0; right: 0; z-index: 100;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: saturate(180%) blur(20px);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}
.site-header .container {
    display: flex; align-items: center; justify-content: space-between;
    height: 64px;
}
.logo { font-size: 20px; font-weight: 700; color: var(--dark); letter-spacing: -0.5px; }
.logo span { color: var(--primary); }
.nav-menu { display: flex; gap: 32px; list-style: none; }
.nav-menu a { color: var(--gray-700); font-size: 15px; font-weight: 500; }
.nav-menu a:hover { color: var(--primary); }
.nav-cta {
    background: var(--primary); color: var(--white) !important;
    padding: 8px 20px; border-radius: 100px; font-size: 14px; font-weight: 600;
    transition: background 0.2s;
}
.nav-cta:hover { background: var(--primary-dark); }
.nav-right { display: flex; align-items: center; gap: 24px; }
.lang-switcher {
    font-size: 13px; font-weight: 600; color: var(--gray-600);
    padding: 8px 16px; border-radius: 100px; border: 1px solid var(--gray-200);
    background: var(--gray-50); transition: all 0.2s;
    letter-spacing: 0.5px;
}
.lang-switcher:hover { border-color: var(--primary); color: var(--primary); background: var(--white); }
.menu-toggle { display: none; font-size: 24px; cursor: pointer; background: none; border: none; }

/* ─── Hero ─── */
.hero {
    padding: 140px 0 80px; text-align: center;
    background: linear-gradient(180deg, var(--gray-50) 0%, var(--white) 100%);
}
.hero h1 {
    font-size: clamp(36px, 6vw, 64px); font-weight: 800; letter-spacing: -2px;
    line-height: 1.1; margin-bottom: 20px; color: var(--dark);
}
.hero h1 .gradient {
    background: linear-gradient(135deg, var(--primary) 0%, #6633ff 100%);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
    background-clip: text;
}
.hero p {
    font-size: clamp(16px, 2vw, 20px); color: var(--gray-500);
    max-width: 600px; margin: 0 auto 36px;
}
.hero-actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
.btn {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 14px 32px; border-radius: 100px; font-size: 16px; font-weight: 600;
    transition: all 0.2s; cursor: pointer; border: none;
}
.btn-primary { background: var(--primary); color: var(--white); }
.btn-primary:hover { background: var(--primary-dark); color: var(--white); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0, 102, 255, 0.3); }
.btn-outline { background: transparent; color: var(--dark); border: 1.5px solid var(--gray-300); }
.btn-outline:hover { border-color: var(--dark); color: var(--dark); }
.hero-badge {
    display: inline-flex; align-items: center; gap: 8px;
    background: var(--primary-light); color: var(--primary);
    padding: 6px 16px; border-radius: 100px; font-size: 13px; font-weight: 600;
    margin-bottom: 24px;
}

/* ─── Section ─── */
.section { padding: 80px 0; }
.section-gray { background: var(--gray-50); }
.section-center { text-align: center; }
.section-title {
    font-size: clamp(28px, 4vw, 40px); font-weight: 800; letter-spacing: -1px;
    margin-bottom: 16px; color: var(--dark);
}
.section-subtitle {
    font-size: 17px; color: var(--gray-500); max-width: 560px;
    margin: 0 auto 56px; text-align: center;
}

/* ─── Feature Cards ─── */
.feature-grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
}
.feature-card {
    background: var(--white); border-radius: var(--radius); padding: 32px;
    border: 1px solid var(--gray-100); transition: all 0.3s;
}
.feature-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-4px); }
.feature-icon {
    width: 52px; height: 52px; border-radius: 14px;
    background: var(--primary-light); color: var(--primary);
    display: flex; align-items: center; justify-content: center;
    font-size: 24px; margin-bottom: 20px;
}
.feature-card h3 { font-size: 20px; font-weight: 700; margin-bottom: 8px; }
.feature-card p { color: var(--gray-500); font-size: 15px; }

/* ─── App Showcase ─── */
.app-showcase {
    display: grid; grid-template-columns: 1fr 1fr; gap: 64px;
    align-items: center;
}
.app-showcase-content h2 {
    font-size: clamp(28px, 4vw, 40px); font-weight: 800; letter-spacing: -1px;
    margin-bottom: 20px;
}
.app-showcase-content p { color: var(--gray-500); font-size: 17px; margin-bottom: 24px; }
.app-features { list-style: none; margin-bottom: 32px; }
.app-features li {
    display: flex; align-items: center; gap: 12px; padding: 8px 0;
    color: var(--gray-700); font-size: 15px;
}
.app-features li::before {
    content: ""; width: 20px; height: 20px; border-radius: 50%;
    background: var(--primary); flex-shrink: 0;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat; background-position: center; background-size: 12px;
}
.app-store-badge {
    display: inline-flex; align-items: center; gap: 10px;
    background: var(--dark); color: var(--white); padding: 12px 24px;
    border-radius: 12px; font-weight: 600; font-size: 15px;
    transition: transform 0.2s;
}
.app-store-badge:hover { transform: translateY(-2px); color: var(--white); }
.app-download-btn { margin-left: 12px; display: inline-flex; align-items: center; gap: 6px; }
.app-download-btn::before { content: '\f179'; font-family: 'Apple Symbols', sans-serif; font-size: 18px; }
.app-showcase-image {
    display: flex; justify-content: center; align-items: center;
    position: relative;
}
.app-showcase-image .phone-mockup {
    width: 300px; height: 600px; border-radius: 40px;
    background: linear-gradient(135deg, var(--primary) 0%, #6633ff 100%);
    box-shadow: var(--shadow-lg);
    display: flex; align-items: center; justify-content: center;
    font-size: 48px; color: rgba(255, 255, 255, 0.3);
}
.app-showcase-image .phone-mockup::after {
    content: "小瑜AI"; color: var(--white); font-size: 28px; font-weight: 700;
}

/* ─── Stats ─── */
.stats-grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 32px; text-align: center;
}
.stat-item .stat-number {
    font-size: 48px; font-weight: 800; color: var(--primary); letter-spacing: -2px;
}
.stat-item .stat-label { color: var(--gray-500); font-size: 15px; margin-top: 4px; }

/* ─── Services ─── */
.service-grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 24px;
}
.service-card {
    background: var(--white); border-radius: var(--radius); padding: 32px;
    border: 1px solid var(--gray-100); text-align: center; transition: all 0.3s;
}
.service-card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.service-card .service-icon {
    width: 56px; height: 56px; margin: 0 auto 16px;
    border-radius: 50%; background: var(--primary-light);
    display: flex; align-items: center; justify-content: center; font-size: 24px;
}
.service-card h3 { font-size: 18px; font-weight: 700; margin-bottom: 8px; }
.service-card p { color: var(--gray-500); font-size: 14px; }

/* ─── CTA ─── */
.cta-section {
    background: var(--dark); color: var(--white);
    padding: 80px 0; text-align: center; border-radius: 0;
}
.cta-section h2 { font-size: clamp(28px, 4vw, 40px); font-weight: 800; margin-bottom: 16px; }
.cta-section p { color: var(--gray-300); font-size: 17px; margin-bottom: 32px; }

/* ─── Footer ─── */
.site-footer { background: var(--dark); color: var(--gray-500); padding: 60px 0 30px; }
.footer-grid {
    display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 48px;
    margin-bottom: 40px;
}
.footer-brand .logo { color: var(--white); margin-bottom: 16px; display: block; }
.footer-brand p { font-size: 14px; line-height: 1.8; max-width: 300px; }
.footer-col h4 { color: var(--white); font-size: 14px; font-weight: 600; margin-bottom: 16px; text-transform: uppercase; letter-spacing: 1px; }
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 10px; }
.footer-col ul li a { color: var(--gray-500); font-size: 14px; }
.footer-col ul li a:hover { color: var(--white); }
.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1); padding-top: 24px;
    display: flex; justify-content: space-between; align-items: center; font-size: 13px;
}
.footer-bottom-right { text-align: right; }
.footer-bottom-right p { margin: 0; }
.footer-bottom-right a { transition: color 0.2s; }
.footer-bottom-right a:hover { color: var(--gray-300) !important; }

/* ─── Privacy Policy Page ─── */
.page-content { padding: 120px 0 60px; }
.page-content .container { max-width: 800px; }
.page-content h1 { font-size: 36px; font-weight: 800; margin-bottom: 12px; }
.page-content .last-updated { color: var(--gray-500); font-size: 14px; margin-bottom: 40px; }
.page-content h2 { font-size: 22px; font-weight: 700; margin: 32px 0 12px; }
.page-content p { color: var(--gray-700); margin-bottom: 16px; font-size: 15px; }
.page-content ul { margin: 0 0 16px 20px; }
.page-content ul li { color: var(--gray-700); margin-bottom: 8px; font-size: 15px; }
.page-content a { color: var(--primary); }

/* ─── Custom Contact Form ─── */
.custom-contact-form-wrap {
    max-width: 640px; margin: 0 auto;
    background: var(--white); border: 1px solid var(--gray-100);
    border-radius: var(--radius); padding: 40px; box-shadow: var(--shadow);
}
.custom-contact-form-wrap h2 { font-size: 24px; font-weight: 800; margin-bottom: 8px; }
.custom-contact-form-wrap .form-desc { color: var(--gray-500); margin-bottom: 32px; }
.form-alert {
    padding: 14px 18px; border-radius: 10px; margin-bottom: 20px; font-size: 14px; font-weight: 500;
}
.form-success { background: #e8f5e9; color: #2e7d32; border: 1px solid #c8e6c9; }
.form-error { background: #ffeef0; color: #c62828; border: 1px solid #ffcdd2; }
.form-alert p { margin: 0; }
.custom-contact-form .form-field { margin-bottom: 20px; }
.custom-contact-form label {
    display: block; font-size: 14px; font-weight: 600; margin-bottom: 6px; color: var(--dark);
}
.custom-contact-form .required { color: #d63638; }
.custom-contact-form input[type="text"],
.custom-contact-form input[type="email"],
.custom-contact-form textarea {
    width: 100%; padding: 12px 16px; border: 1px solid var(--gray-300);
    border-radius: 10px; font-size: 15px; outline: none;
    font-family: var(--font); transition: border-color 0.2s;
    background: var(--white);
}
.custom-contact-form input:focus,
.custom-contact-form textarea:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(0,102,255,0.1); }
.custom-contact-form textarea { resize: vertical; min-height: 120px; }
.form-submit-btn { width: 100%; justify-content: center; margin-top: 8px; }
.btn-loading { display: inline-flex; align-items: center; gap: 8px; }
.spinner {
    width: 16px; height: 16px; border: 2px solid rgba(255,255,255,0.3);
    border-top-color: #fff; border-radius: 50%;
    animation: spin 0.6s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.h-captcha, .cf-turnstile { margin-top: 8px; display: flex; justify-content: flex-start; }

/* ─── CF7 Contact Form (legacy) ─── */
.cf7-contact-form .cf7-row {
    display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 16px;
}
.cf7-contact-form .cf7-field { margin-bottom: 16px; }
.cf7-contact-form label { display: block; font-size: 14px; font-weight: 600; margin-bottom: 6px; }
.cf7-contact-form input[type="text"],
.cf7-contact-form input[type="email"],
.cf7-contact-form textarea {
    width: 100%; padding: 12px 16px; border: 1px solid var(--gray-300);
    border-radius: 10px; font-size: 15px; outline: none;
    font-family: var(--font); transition: border-color 0.2s;
}
.cf7-contact-form input:focus,
.cf7-contact-form textarea:focus { border-color: var(--primary); }
.cf7-contact-form textarea { resize: vertical; }
.cf7-contact-form .cf7-submit { text-align: center; }
.cf7-contact-form input[type="submit"] {
    background: var(--primary); color: var(--white); padding: 14px 32px;
    border: none; border-radius: 100px; font-size: 16px; font-weight: 600;
    cursor: pointer; width: 100%; transition: all 0.2s;
}
.cf7-contact-form input[type="submit"]:hover { background: var(--primary-dark); }
.wpcf7-response-output { margin-top: 16px; padding: 12px; border-radius: 8px; text-align: center; }

/* ─── Responsive ─── */
@media (max-width: 768px) {
    .nav-menu { display: none; }
    .menu-toggle { display: block; }
    .app-showcase { grid-template-columns: 1fr; gap: 32px; }
    .app-showcase-image { order: -1; }
    .app-showcase-image .phone-mockup { width: 220px; height: 440px; }
    .footer-grid { grid-template-columns: 1fr; gap: 32px; }
    .footer-bottom { flex-direction: column; gap: 12px; text-align: center; }
    .hero { padding: 100px 0 60px; }
    .section { padding: 56px 0; }
    .cf7-contact-form .cf7-row { grid-template-columns: 1fr; }
}
