/*
Theme Name: QuickQ Theme
Author: Antigravity
Author URI: https://www.google.com/
Description: A high-fidelity replica of the QuickQ design with GEO (Generative Engine Optimization) features.
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
*/

:root {
    /* Brand Colors */
    --color-primary: #7d33ff;
    /* Deep Purple from screenshot */
    --color-secondary: #ff3385;
    /* Hot Pink/Magenta from buttons */
    --color-text-main: #1a1a1a;
    --color-text-light: #666666;
    --color-bg-light: #f9f9f9;
    --color-white: #ffffff;
    --gradient-brand: linear-gradient(135deg, #a633ff 0%, #ff3385 100%);

    /* Typography */
    --font-main: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

    /* Spacing */
    --container-width: 1200px;
    --spacing-xs: 8px;
    --spacing-sm: 16px;
    --spacing-md: 32px;
    --spacing-lg: 64px;
    --spacing-xl: 128px;

    /* BorderRadius */
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 30px;
}

/* Reset & Base */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-main);
    color: var(--color-text-main);
    background: var(--color-white);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: opacity 0.3s;
}

a:hover {
    opacity: 0.8;
}

ul {
    list-style: none;
}

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

/* Utilities */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 var(--spacing-sm);
}

.btn {
    display: inline-block;
    padding: 12px 32px;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    text-align: center;
    border: none;
}

.btn-primary {
    background: var(--color-secondary);
    color: var(--color-white);
    box-shadow: 0 4px 15px rgba(255, 51, 133, 0.4);
}

.btn-outline {
    border: 2px solid var(--color-primary);
    color: var(--color-primary);
}

/* Header Base */
.site-header {
    padding: 0;
    position: sticky;
    top: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    height: 80px;
    display: flex;
    align-items: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.site-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.logo a {
    font-size: 24px;
    font-weight: 800;
    color: #2b5aff;
    /* QuickQ Blue */
    text-decoration: none;
}

.main-navigation ul {
    display: flex;
    gap: 40px;
    margin: 0;
    padding: 0;
}

.main-navigation a {
    .btn-white {
        width: 100%;
        justify-content: center;
    }
}

/* ==================
   INNER PAGES 
   ================== */
/* ... (existing styles) ... */

/* Ensure placeholder and image sizes are consistent */
.screenshots-wrapper img {
    object-fit: contain;
    background: #fff;
    padding: 10px;
}

/* ==================
   GUIDE SECTION 
   ================== */
.guide-steps-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.guide-card {
    background: #fff;
    padding: 30px 20px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.03);
    position: relative;
    border: 1px solid #f0f0f0;
}

.step-badge {
    width: 40px;
    height: 40px;
    background: #0056b3;
    /* Darker blue from reference */
    color: #fff;
    border-radius: 50%;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 18px;
}

.guide-card h3 {
    font-size: 1.1rem;
    color: #0056b3;
    margin-bottom: 15px;
}

.guide-card p {
    font-size: 0.9rem;
    color: #666;
    line-height: 1.5;
}

/* ==================
   FAQ SECTION 
   ================== */
.faq-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.faq-item {
    background: #eef5fa;
    /* Light blueish gray from reference */
    border-radius: 8px;
    overflow: hidden;
}

.faq-item[open] {
    background: #fff;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.faq-item summary {
    padding: 15px 20px;
    font-weight: 600;
    cursor: pointer;
    color: #333;
    list-style: none;
    /* Hide default triangle */
    position: relative;
    transition: background 0.2s;
}

.faq-item summary::-webkit-details-marker {
    display: none;
}

.faq-item summary:hover {
    color: #0056b3;
}

.faq-content {
    padding: 0 20px 20px;
    color: #555;
    font-size: 0.95rem;
    border-top: 1px solid #f0f0f0;
}

/* Responsive for new sections */
@media (max-width: 900px) {
    .guide-steps-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 600px) {
    .guide-steps-grid {
        grid-template-columns: 1fr;
    }
}

.main-navigation a:hover {
    color: var(--color-primary);
}

/* ==================
   HOMEPAGE SECTIONS 
   ================== */

.section-spacing {
    padding: 80px 0;
}

.section-header {
    margin-bottom: 60px;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: #1a1a1a;
}

.text-center {
    text-align: center;
}

.bg-light {
    background-color: #f9f9f9;
}

/* 1. Hero Section */
.hero-section {
    padding: 80px 0 60px;
    background: linear-gradient(180deg, #fff 0%, #f4f8ff 100%);
    overflow: hidden;
}

.hero-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
}

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

.hero-title {
    font-size: 3.2rem;
    line-height: 1.2;
    margin-bottom: 20px;
    color: #0b1c3c;
    font-weight: 800;
}

.hero-subtitle {
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 40px;
    max-width: 80%;
}

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

/* 2. Features Grid (Why Choose Us) */
.features-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 50px;
}

.feature-item {
    display: flex;
    align-items: flex-start;
    flex-direction: column;
}

.feature-icon {
    width: 60px;
    height: 60px;
    background: #f0e6ff;
    color: var(--color-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    margin-bottom: 20px;
}

.feature-item h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.feature-item p {
    color: #666;
    line-height: 1.6;
}

/* 3. Scenarios (Cards) */
.scenarios-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.scenario-card {
    background: #fff;
    padding: 50px 30px;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.03);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.circle-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    margin: 0 auto 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
}

.color-pink {
    background: rgba(255, 51, 133, 0.1);
    color: var(--color-secondary);
}

.color-blue {
    background: rgba(74, 144, 226, 0.1);
    color: #4A90E2;
}

.color-purple {
    background: rgba(125, 51, 255, 0.1);
    color: var(--color-primary);
}

.scenario-card h3 {
    margin-bottom: 15px;
    font-size: 1.2rem;
}

.scenario-card p {
    color: #888;
    font-size: 0.95rem;
}

/* 5. Testimonials */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.testimonial-card {
    background: #fff;
    padding: 40px;
    border-radius: 20px;
    border: 1px solid #f0f0f0;
    position: relative;
}

.testimonial-card::before {
    content: "“";
    font-size: 60px;
    color: #f0f0f0;
    position: absolute;
    top: 20px;
    left: 20px;
    font-family: serif;
}

.testimonial-card p {
    position: relative;
    z-index: 1;
    color: #555;
    margin-bottom: 20px;
    font-style: italic;
}

.user-info strong {
    color: var(--color-primary);
}

/* 6. Blog Grid */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.blog-create-card {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
}

.blog-create-card:hover {
    transform: translateY(-5px);
}

.post-thumbnail img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.post-content {
    padding: 25px;
}

.post-title {
    font-size: 1.15rem;
    margin-bottom: 10px;
    line-height: 1.4;
}

.post-title a {
    color: #1a1a1a;
    transition: color 0.2s;
}

.post-title a:hover {
    color: var(--color-primary);
}

.post-excerpt {
    font-size: 0.9rem;
    color: #777;
    margin-bottom: 15px;
}

.read-more {
    color: var(--color-primary);
    font-weight: 700;
    font-size: 0.9rem;
    margin-top: auto;
    display: inline-block;
}

/* 7. CTA Section */
.cta-section {
    background: var(--gradient-brand);
    padding: 100px 0;
    color: #fff;
    text-align: center;
}

.cta-text h2 {
    font-size: 2.5rem;
    margin-bottom: 10px;
}

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

.btn-white {
    background: #fff;
    color: var(--color-primary);
    padding: 15px 40px;
    border-radius: 50px;
    font-weight: 700;
    margin: 0 10px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

/* Responsive */
@media (max-width: 900px) {
    .site-header .container {
        flex-direction: column;
        gap: 15px;
        padding: 10px;
    }

    .hero-container {
        flex-direction: column;
        text-align: center;
    }

    .features-grid,
    .scenarios-grid,
    .blog-grid {
        grid-template-columns: 1fr;
    }

    .hero-buttons {
        display: flex;
        flex-direction: column;
        gap: 15px;
        max-width: 300px;
        margin: 0 auto;
    }

    .hero-buttons a {
        margin: 0 !important;
        width: 100%;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .cta-actions {
        display: flex;
        flex-direction: column;
        gap: 15px;
        align-items: center;
    }

    .btn-white {
        width: 100%;
        justify-content: center;
    }
}

/* ==================
   INNER PAGES 
   ================== */

.single-article,
.page-content {
    max-width: 800px;
    margin: 0 auto;
}

.entry-header {
    margin-bottom: 40px;
    text-align: center;
}

.entry-title {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 20px;
    color: #1a1a1a;
}

.entry-meta {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.entry-thumbnail img {
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
}

.entry-content {
    font-size: 1.1rem;
    color: #333;
    line-height: 1.8;
}

.entry-content h2 {
    font-size: 1.8rem;
    margin: 40px 0 20px;
    color: #000;
}

.entry-content h3 {
    font-size: 1.5rem;
    margin: 30px 0 15px;
}

.entry-content p {
    margin-bottom: 20px;
}

.entry-content ul,
.entry-content ol {
    margin-bottom: 20px;
    padding-left: 20px;
}

.entry-content li {
    margin-bottom: 10px;
}

.entry-content blockquote {
    border-left: 4px solid var(--color-primary);
    padding-left: 20px;
    margin: 30px 0;
    font-style: italic;
    color: #555;
}

/* Tags & Footer */
.entry-footer {
    margin-top: 60px;
    border-top: 1px solid #eee;
    padding-top: 20px;
}

.tag-links a {
    display: inline-block;
    padding: 6px 15px;
    background: #f0f0f0;
    border-radius: 20px;
    font-size: 0.85rem;
    margin-right: 10px;
    color: #555;
    transition: all 0.2s;
}

.tag-links a:hover {
    background: var(--color-primary);
    color: #fff;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    gap: 10px;
}

.pagination .page-numbers {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #fff;
    border: 1px solid #ddd;
    color: #555;
}

.pagination .page-numbers.current,
.pagination .page-numbers:hover {
    background: var(--color-primary);
    color: #fff;
    border-color: var(--color-primary);
}

.pagination .next,
.pagination .prev {
    width: auto;
    padding: 0 20px;
    border-radius: 20px;
}

/* ==================
   ARCHIVE SIDEBAR LAYOUT 
   ================== */
.archive-thumb-wrapper {
    position: relative;
    margin-bottom: 20px;
    border-radius: 12px;
    overflow: hidden;
}

.archive-thumb-wrapper img {
    width: 100%;
    height: auto;
    object-fit: cover;
    display: block;
}

.date-badge {
    position: absolute;
    bottom: 20px;
    left: 20px;
    background: #a633ff;
    /* Purple */
    color: #fff;
    padding: 5px 15px;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(166, 51, 255, 0.3);
}

.date-badge .day {
    display: block;
    font-size: 1.5rem;
    font-weight: 800;
    line-height: 1;
}

.date-badge .month {
    display: block;
    font-size: 0.8rem;
    text-transform: uppercase;
}

.archive-item-card {
    margin-bottom: 40px;
    background: #fff;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
}

.archive-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 15px;
}

.archive-meta {
    font-size: 0.85rem;
    color: #999;
    margin-top: 15px;
}

.archive-meta span {
    margin-right: 15px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

/* Sidebar Widgets */
.widget {
    background: #fff;
    padding: 0;
    margin-bottom: 40px;
}

.widget-title {
    font-size: 1rem;
    margin-bottom: 20px;
    color: #333;
    font-weight: 600;
}

.search-input-group {
    display: flex;
}

.search-field {
    flex: 1;
    padding: 12px;
    border: 1px solid #eee;
    background: #f9f9f9;
    border-radius: 4px;
}

.search-submit {
    background: #a633ff;
    color: #fff;
    border: none;
    padding: 0 15px;
    margin-left: -5px;
    /* Overlap slightly or just sit next */
    border-radius: 0 4px 4px 0;
    cursor: pointer;
    z-index: 1;
}

.search-input-group .search-field {
    border-radius: 4px;
}

/* Reset */

/* Refined Search */
.widget-search .search-form {
    display: flex;
}

.widget-search input {
    width: 100%;
    padding: 15px;
    border: 1px solid #eee;
    border-right: none;
}

.widget-search button {
    background: #a633ff;
    color: #fff;
    border: none;
    width: 50px;
}

.widget-categories ul {
    list-style: none;
    padding: 0;
}

.widget-categories ul li {
    padding: 10px 0;
    border-bottom: 1px solid #f5f5f5;
    color: #666;
    font-size: 0.9rem;
}

.widget-categories ul li a {
    color: #666;
}

.recent-post-item {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
}

.rp-thumb {
    width: 100px;
    height: 60px;
    flex-shrink: 0;
}

.rp-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 6px;
}

.rp-info a {
    font-size: 0.9rem;
    font-weight: 500;
    display: block;
    line-height: 1.4;
    margin-bottom: 5px;
    color: #333;
}

.rp-date {
    font-size: 0.75rem;
    color: #bbb;
}

@media (max-width: 900px) {
    .site-main {
        flex-direction: column;
    }

    .sidebar-area {
        width: 100% !important;
    }
}

/* 确保卡片是块级并有基本间距 */
.blog-create-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    display: flex;
    flex-direction: column;
    height: 100%;
}

/* 强制图片比例统一（复刻关键） */
.post-thumbnail {
    width: 100%;
    aspect-ratio: 16 / 10; /* 或者 1.6 */
    overflow: hidden;
}

.post-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* 保证图片不变形地充满容器 */
}

/* 链接颜色 */
.post-title a {
    color: #333;
    text-decoration: none;
    transition: 0.3s;
}

.post-title a:hover {
    color: #007bff;
}

.read-more {
    display: inline-block;
    margin-top: auto; /* 将“阅读更多”推向底部 */
    color: #007bff;
    text-decoration: none;
    font-weight: 500;
}

/*relate posts*/
/* 相关文章容器 */
.related-posts {
    margin-top: 50px;
    padding-top: 30px;
    border-top: 1px solid #eee;
}

.related-title {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 25px;
    color: #333;
}

/* 3列网格布局 */
.related-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

/* 响应式调整 */
@media (max-width: 992px) { .related-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .related-grid { grid-template-columns: 1fr; } }

/* 单个卡片样式 */
.related-card {
    background: #fff;
    border-radius: 10px;
    border: 1px solid #f0f0f0;
    overflow: hidden;
    transition: 0.3s;
    display: flex;
    flex-direction: column;
}

.related-card:hover {
    box-shadow: 0 8px 20px rgba(0,0,0,0.06);
    transform: translateY(-3px);
}

/* 缩略图 */
.related-thumb {
    width: 100%;
    aspect-ratio: 16 / 9;
    display: block;
    overflow: hidden;
}

.related-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* 内容区域 */
.related-info {
    padding: 15px;
    flex-grow: 1;
}

/* 黄色标签样式 */
.related-tag {
    background: #FFD21E;
    font-size: 11px;
    font-weight: bold;
    padding: 2px 6px;
    border-radius: 4px;
    display: inline-block;
    margin-bottom: 8px;
}

.related-post-title {
    font-size: 16px;
    line-height: 1.4;
    margin-bottom: 10px;
}

.related-post-title a {
    color: #333;
    text-decoration: none;
}

.related-excerpt {
    font-size: 13px;
    color: #777;
    margin-bottom: 15px;
}

.related-more {
    font-size: 13px;
    color: #007bff;
    text-decoration: none;
    font-weight: 600;
}