/*
Theme Name: QuickQ
Theme URI: https://www.quickq-app.org
Author: QuickQ官方
Author URI: https://www.quickq-app.org
Description: QuickQ官网专用SEO优化主题，针对关键词quickq、quick q、quickq 官网、quickq 下载进行优化。采用现代简约设计，支持响应式布局。适用于网络加速工具类网站。
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: quickq
Tags: one-column, two-columns, custom-colors, custom-menu, custom-logo, editor-style, featured-images, footer-widgets, full-width-template, rtl-language-support, theme-options, threaded-comments, translation-ready, block-styles, wide-blocks
*/

/* SEO优化核心关键词：quickq, quick q, quickq 官网, quickq 下载 */

/* ============================================
   CSS Variables
   ============================================ */
:root {
    --primary: #6366f1;
    --primary-dark: #4f46e5;
    --secondary: #8b5cf6;
    --text-dark: #1f2937;
    --text-light: #6b7280;
    --bg-light: #f9fafb;
    --white: #ffffff;
    --gradient: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
}

/* ============================================
   Base Styles
   ============================================ */
* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: 'Segoe UI', -apple-system, BlinkMacSystemFont, 'PingFang SC', sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
    background: var(--white);
}

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

a:hover { color: var(--primary-dark); }

img { max-width: 100%; height: auto; }

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

/* ============================================
   Header
   ============================================ */
.site-header {
    background: var(--white);
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
}

.logo a {
    font-size: 1.5rem;
    font-weight: 700;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-links {
    display: flex;
    gap: 30px;
    list-style: none;
}

.nav-links li a {
    color: var(--text-dark);
    font-weight: 500;
}

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

.download-btn {
    background: var(--gradient);
    color: white !important;
    padding: 12px 28px;
    border-radius: 50px;
    font-weight: 600;
    transition: transform 0.3s, box-shadow 0.3s;
}

.download-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(99, 102, 241, 0.3);
}

/* ============================================
   Hero Section
   ============================================ */
.hero {
    background: var(--gradient);
    color: white;
    padding: 100px 0;
    text-align: center;
}

.hero-title {
    font-size: 3.5rem;
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 1.5rem;
    margin-bottom: 15px;
    opacity: 0.95;
}

.hero-desc {
    font-size: 1.1rem;
    margin-bottom: 40px;
    opacity: 0.9;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-primary {
    background: white;
    color: var(--primary) !important;
    padding: 15px 40px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1.1rem;
    transition: transform 0.3s;
}

.btn-primary:hover { transform: translateY(-3px); }

.btn-secondary {
    background: rgba(255,255,255,0.2);
    color: white;
    padding: 15px 40px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1.1rem;
    border: 2px solid rgba(255,255,255,0.5);
}

/* ============================================
   Stats Section
   ============================================ */
.stats {
    background: var(--bg-light);
    padding: 60px 0;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.stat-item {
    text-align: center;
    padding: 30px;
    background: white;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-label {
    color: var(--text-light);
    margin-top: 10px;
    font-size: 0.95rem;
}

/* ============================================
   Features Section
   ============================================ */
.features, .platforms, .news, .faq {
    padding: 100px 0;
}

.use-cases, .news {
    background: var(--bg-light);
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 60px;
    color: var(--text-dark);
}

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

.feature-card {
    background: white;
    padding: 40px 30px;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 10px 40px rgba(0,0,0,0.08);
    transition: transform 0.3s, box-shadow 0.3s;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 50px rgba(0,0,0,0.12);
}

.feature-icon { font-size: 3.5rem; margin-bottom: 20px; }
.feature-title { font-size: 1.3rem; margin-bottom: 15px; color: var(--text-dark); }
.feature-desc { color: var(--text-light); line-height: 1.7; }

/* ============================================
   Use Cases Section
   ============================================ */
.use-cases-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
}

.use-case-card {
    background: white;
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
}

.use-case-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: var(--primary);
}

.use-case-card p { color: var(--text-light); line-height: 1.8; }

/* ============================================
   Platforms Section
   ============================================ */
.platforms-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.platform-card {
    background: linear-gradient(145deg, #f8fafc 0%, #f1f5f9 100%);
    padding: 50px 30px;
    border-radius: 20px;
    text-align: center;
    border: 2px solid transparent;
    transition: all 0.3s;
    display: block;
}

.platform-card:hover {
    border-color: var(--primary);
    transform: translateY(-5px);
}

.platform-icon {
    width: 80px;
    height: 80px;
    background: var(--gradient);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
    font-size: 2rem;
    color: white;
    font-weight: 700;
}

.platform-name { font-size: 1.3rem; font-weight: 600; margin-bottom: 10px; color: var(--text-dark); }
.platform-version { color: var(--text-light); margin-bottom: 15px; }
.platform-download {
    background: var(--gradient);
    color: white;
    padding: 10px 25px;
    border-radius: 25px;
    display: inline-block;
    font-weight: 600;
}

.download-intro {
    text-align: center;
    color: var(--text-light);
    margin-bottom: 50px;
    font-size: 1.1rem;
}

/* ============================================
   News Section
   ============================================ */
.news-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.news-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
    transition: transform 0.3s, box-shadow 0.3s;
}

.news-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.1);
}

.news-image {
    height: 180px;
    background: var(--gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
}

.news-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.news-content { padding: 30px; }
.news-date { color: var(--text-light); font-size: 0.9rem; margin-bottom: 10px; }
.news-title {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 15px;
    color: var(--text-dark);
    line-height: 1.5;
}

.news-title a { color: var(--text-dark); }
.news-title a:hover { color: var(--primary); }

.news-excerpt { color: var(--text-light); font-size: 0.95rem; line-height: 1.7; margin-bottom: 20px; }
.news-link { color: var(--primary); font-weight: 600; display: inline-flex; align-items: center; gap: 8px; }
.news-link:hover { gap: 12px; }

/* ============================================
   FAQ Section
   ============================================ */
.faq-list { max-width: 800px; margin: 0 auto; }

.faq-item {
    background: white;
    padding: 30px;
    border-radius: 16px;
    margin-bottom: 20px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

.faq-question { font-size: 1.2rem; font-weight: 600; color: var(--text-dark); margin-bottom: 15px; }
.faq-answer { color: var(--text-light); line-height: 1.8; }

/* ============================================
   CTA Section
   ============================================ */
.cta {
    padding: 100px 0;
    background: var(--gradient);
    color: white;
    text-align: center;
}

.cta h2 { font-size: 2.5rem; margin-bottom: 20px; }
.cta p { font-size: 1.2rem; margin-bottom: 40px; opacity: 0.9; }

/* ============================================
   Footer
   ============================================ */
.site-footer {
    background: #1f2937;
    color: white;
    padding: 60px 0 30px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    margin-bottom: 40px;
}

.footer-col h4 { font-size: 1.1rem; margin-bottom: 20px; color: white; }
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 12px; }
.footer-col a { color: #9ca3af; }
.footer-col a:hover { color: white; }

.footer-bottom {
    border-top: 1px solid #374151;
    padding-top: 30px;
    text-align: center;
    color: #9ca3af;
}

/* ============================================
   Single Post Page
   ============================================ */
.post-hero {
    background: var(--gradient);
    color: white;
    padding: 60px 0;
}

.post-breadcrumb {
    margin-bottom: 20px;
    font-size: 0.9rem;
}

.post-breadcrumb a { color: rgba(255,255,255,0.8); }
.post-breadcrumb a:hover { color: white; }
.post-breadcrumb span { margin: 0 10px; }
.post-breadcrumb .current { color: rgba(255,255,255,0.6); }

.post-title { font-size: 2.5rem; margin-bottom: 20px; }
.post-meta { display: flex; gap: 20px; flex-wrap: wrap; font-size: 0.95rem; opacity: 0.9; }

.post-content { padding: 80px 0; }
.post-layout { display: grid; grid-template-columns: 1fr 350px; gap: 50px; }

.post-main { }
.post-featured-image {
    margin-bottom: 40px;
    border-radius: 16px;
    overflow: hidden;
}

.post-featured-image img { width: 100%; }

.post-placeholder {
    height: 300px;
    background: var(--gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 5rem;
    border-radius: 16px;
}

.post-body {
    font-size: 1.1rem;
    line-height: 1.9;
    color: var(--text-dark);
}

.post-body p { margin-bottom: 20px; }
.post-body h2 { font-size: 1.8rem; margin: 40px 0 20px; color: var(--primary); }
.post-body h3 { font-size: 1.4rem; margin: 30px 0 15px; }
.post-body ul, .post-body ol { margin: 20px 0; padding-left: 30px; }
.post-body li { margin-bottom: 10px; }

.post-tags { margin-top: 40px; padding-top: 30px; border-top: 1px solid #eee; }
.post-tags a {
    display: inline-block;
    background: var(--bg-light);
    padding: 5px 15px;
    border-radius: 20px;
    margin: 5px;
    font-size: 0.9rem;
    color: var(--text-light);
}

.post-tags a:hover { background: var(--primary); color: white; }

.post-share {
    margin-top: 30px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.share-label { font-weight: 600; }
.share-btn {
    background: var(--bg-light);
    padding: 8px 20px;
    border-radius: 20px;
    font-size: 0.9rem;
}

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

/* Post Sidebar */
.post-sidebar { }
.sidebar-widget {
    background: white;
    border-radius: 16px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
}

.widget-title {
    font-size: 1.2rem;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.download-links { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 20px; }
.download-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px;
    background: var(--bg-light);
    border-radius: 10px;
    color: var(--text-dark);
}

.download-link:hover { background: var(--primary); color: white; }
.download-link .icon {
    width: 30px;
    height: 30px;
    background: var(--gradient);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    font-size: 0.8rem;
}

.recent-posts { list-style: none; }
.recent-item {
    padding: 12px 0;
    border-bottom: 1px solid #f0f0f0;
}

.recent-item:last-child { border-bottom: none; }
.recent-item a { color: var(--text-dark); font-size: 0.95rem; }
.recent-item a:hover { color: var(--primary); }
.recent-date { font-size: 0.8rem; color: var(--text-light); display: block; margin-top: 5px; }

.faq-widget .faq-item { padding: 15px; margin-bottom: 10px; box-shadow: none; background: var(--bg-light); }
.faq-widget .faq-q { font-weight: 600; font-size: 0.95rem; margin-bottom: 8px; color: var(--text-dark); }
.faq-widget .faq-a { font-size: 0.85rem; color: var(--text-light); line-height: 1.5; }

/* Related Posts */
.related-posts { background: var(--bg-light); padding: 80px 0; }
.related-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }

.related-card { background: white; border-radius: 16px; overflow: hidden; }
.related-image {
    height: 150px;
    background: var(--gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
}

.related-image img { width: 100%; height: 100%; object-fit: cover; }
.related-placeholder { color: white; }

.related-content { padding: 20px; }
.related-title { font-size: 1rem; margin-bottom: 10px; }
.related-title a { color: var(--text-dark); }
.related-date { font-size: 0.85rem; color: var(--text-light); }

/* Comments */
.post-comments { padding: 80px 0; }
.post-comments .container { max-width: 800px; }

/* ============================================
   Responsive
   ============================================ */
@media (max-width: 1024px) {
    .stats-grid, .features-grid, .platforms-grid, .news-grid, .related-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .footer-grid { grid-template-columns: repeat(2, 1fr); }
    .post-layout { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
    .header-inner { flex-direction: column; gap: 15px; }
    .nav-links { display: none; }
    .hero-title { font-size: 2.5rem; }
    .hero { padding: 60px 0; }
    .stats-grid, .features-grid, .platforms-grid, .news-grid, .related-grid {
        grid-template-columns: 1fr;
    }
    .use-cases-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; }
    .section-title { font-size: 2rem; }
    .post-title { font-size: 1.8rem; }
    .post-meta { flex-direction: column; gap: 10px; }
}

/* ============================================
   WordPress Specific
   ============================================ */
.alignleft { float: left; margin-right: 20px; }
.alignright { float: right; margin-left: 20px; }
.aligncenter { display: block; margin: 0 auto; }
.wp-caption { max-width: 100%; }
.wp-caption-text { font-size: 0.9rem; color: var(--text-light); text-align: center; margin-top: 10px; }

.screen-reader-text {
    border: 0;
    clip: rect(1px, 1px, 1px, 1px);
    clip-path: inset(50%);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    width: 1px;
    word-wrap: normal;
}

/* Navigation */
.comments-navigation { margin: 20px 0; }
.comments-navigation a { background: var(--bg-light); padding: 10px 20px; border-radius: 20px; }

/* Blockquote */
blockquote {
    border-left: 4px solid var(--primary);
    padding-left: 20px;
    margin: 20px 0;
    font-style: italic;
    color: var(--text-light);
}