/*
Theme Name: Q&A Modern
Theme URI: https://server.xymww.com
Author: AI Developer
Author URI: https://server.xymww.com
Description: 绠€绾︾幇浠ｅ寲闂瓟椋庢牸WordPress涓婚锛孲EO浼樺寲锛屽畨鍏ㄥ彲闈犮€?Version: 1.0.0
Requires at least: 5.0
Tested up to: 6.4
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: qa-modern
Tags:闂瓟, 鐜颁唬鍖? 鍝嶅簲寮? SEO浼樺寲
*/

:root {
    --primary-color: #2563eb;
    --primary-hover: #1d4ed8;
    --secondary-color: #64748b;
    --background-color: #f8fafc;
    --card-background: #ffffff;
    --text-color: #1e293b;
    --text-light: #64748b;
    --border-color: #e2e8f0;
    --shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --radius: 12px;
    --font-sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-sans);
    background-color: var(--background-color);
    color: var(--text-color);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.2s;
}

a:hover {
    color: var(--primary-hover);
}

.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Breadcrumb */
.breadcrumb {
    padding: 1rem 0;
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
    color: var(--text-light);
}

.breadcrumb a {
    color: var(--text-light);
}

.breadcrumb a:hover {
    color: var(--primary-color);
}

.breadcrumb span[aria-current="page"] {
    color: var(--text-color);
    font-weight: 500;
}

/* Header */
.site-header {
    background: var(--card-background);
    border-bottom: 1px solid var(--border-color);
    padding: 1.5rem 0;
    margin-bottom: 2rem;
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.site-title a {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-color);
}

/* Question Card */
.question-card {
    background: var(--card-background);
    border-radius: var(--radius);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: var(--shadow);
    transition: transform 0.2s, box-shadow 0.2s;
}

.question-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
}

.question-title {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
    font-weight: 600;
}

.question-excerpt {
    color: var(--text-light);
    margin-bottom: 1rem;
    font-size: 0.95rem;
}

.question-meta {
    display: flex;
    gap: 1rem;
    font-size: 0.85rem;
    color: var(--text-light);
    align-items: center;
}

.meta-tag {
    background: #e0f2fe;
    color: #0369a1;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 500;
}

/* Single Question */
.single-question {
    background: var(--card-background);
    border-radius: var(--radius);
    padding: 2.5rem;
    box-shadow: var(--shadow);
    margin-bottom: 2rem;
}

.single-title {
    font-size: 1.75rem;
    line-height: 1.3;
    margin-bottom: 1.5rem;
}

.question-content {
    font-size: 1.05rem;
    line-height: 1.8;
    margin-bottom: 2rem;
}

.question-content h2, .question-content h3 {
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.question-content ul, .question-content ol {
    margin-left: 1.5rem;
    margin-bottom: 1.5rem;
}

.question-content p {
    margin-bottom: 1.25rem;
}

/* Footer */
.site-footer {
    text-align: center;
    padding: 2rem 0;
    color: var(--text-light);
    font-size: 0.9rem;
    border-top: 1px solid var(--border-color);
    margin-top: 3rem;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin: 2rem 0;
}

.page-numbers {
    padding: 0.5rem 1rem;
    background: var(--card-background);
    border: 1px solid var(--border-color);
    border-radius: 8px;
}

.page-numbers.current {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

/* Related Questions */
.related-questions {
    margin-top: 3rem;
}

.related-questions-seo {
    margin-top: 3rem;
    padding: 2rem;
    background: var(--background-color);
    border-radius: var(--radius);
    border: 1px solid var(--border-color);
}

.related-questions-seo h3 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    color: var(--text-color);
}

.related-questions-seo ul {
    list-style: none;
    padding: 0;
}

.related-questions-seo li {
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border-color);
}

.related-questions-seo li:last-child {
    border-bottom: none;
}

.related-questions-seo a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
}

.related-questions-seo a:hover {
    text-decoration: underline;
}

.section-title {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--border-color);
}

/* Navigation Menu */
.nav-menu {
    display: flex;
    list-style: none;
    gap: 1.5rem;
}

.nav-menu a {
    color: var(--text-color);
    font-weight: 500;
    padding: 0.5rem 0;
    position: relative;
}

.nav-menu a:hover {
    color: var(--primary-color);
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: width 0.3s;
}

.nav-menu a:hover::after {
    width: 100%;
}

/* Tags */
.question-tags {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-color);
    font-size: 0.9rem;
    color: var(--text-light);
}

.question-tags a {
    display: inline-block;
    background: #f1f5f9;
    color: var(--secondary-color);
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    margin-right: 0.5rem;
    margin-top: 0.5rem;
    font-size: 0.85rem;
}

.question-tags a:hover {
    background: #e2e8f0;
}

/* Button */
.button {
    display: inline-block;
    padding: 0.75rem 2rem;
    background: var(--primary-color);
    color: white;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 500;
    transition: background 0.2s;
}

.button:hover {
    background: var(--primary-hover);
    color: white;
}

/* Responsive */
@media (max-width: 640px) {
    .single-question {
        padding: 1.5rem;
    }
    
    .header-inner {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
}

/* ===== 鑵捐浜戝箍鍛婃ā鍧楋紙鏂囩珷鍐呭祵锛?==== */
.ad{position:relative;margin:2rem 0;border-radius:12px;overflow:hidden;border:1px solid var(--border)}
.ad .tag{position:absolute;top:10px;right:12px;font-size:.68rem;font-weight:600;letter-spacing:.04em;color:#fff;background:#94a3b8;padding:.15rem .5rem;border-radius:4px;z-index:2}
.ad-head{display:flex;align-items:center;gap:.6rem;padding:1rem 1.1rem .2rem}
.ad-badge{font-size:.7rem;font-weight:700;color:#fff;padding:.2rem .55rem;border-radius:5px}
.ad-title{font-size:1.02rem;font-weight:700;color:var(--text)}
.ad-sub{font-size:.82rem;color:var(--text-light);padding:0 1.1rem .4rem}
.ad-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(190px,1fr));gap:.8rem;padding:.4rem 1.1rem 1.1rem}
.ad-item{background:#fff;border:1px solid var(--border);border-radius:9px;padding:.9rem;transition:.18s;cursor:pointer;text-decoration:none;color:inherit;display:block}
.ad-item:hover{transform:translateY(-3px);box-shadow:0 8px 20px rgba(15,23,42,.10)}
.ad-item .t{font-weight:700;font-size:.95rem;margin-bottom:.35rem}
.ad-item .d{font-size:.8rem;color:var(--text-light);line-height:1.5}
.ad-item .p{font-size:1.05rem;font-weight:800;color:#e11d48;margin-top:.4rem}
.ad-cta{display:block;text-align:center;margin:.2rem 1.1rem 1.1rem;padding:.75rem 1rem;border-radius:8px;color:#fff;font-weight:600;text-decoration:none;font-size:.92rem;transition:.18s}
.ad-cta:hover{filter:brightness(.94)}

/* 閰嶈壊鍙樹綋 */
.v-cloud{background:#f3f8ff}.v-cloud .ad-badge{background:#0052d9}
.v-cloud .ad-cta{background:#0052d9}.v-cloud .ad-cta:hover{background:#003db0}
.v-agent{background:#f4f1ff}.v-agent .ad-badge{background:#7c3aed}
.v-agent .ad-cta{background:#7c3aed}.v-agent .ad-cta:hover{background:#6d28d9}
.v-wb{background:#eef7f1}.v-wb .ad-badge{background:#0a9d6f}
.v-wb .ad-cta{background:#0a9d6f}.v-wb .ad-cta:hover{background:#088257}

/* 椤堕儴閫氭爮 / 鏂囨湯姹囨€?寰皟 */
.ad-top{margin:0 0 2rem}
.ad-summary{margin-top:2.5rem}
.ad-summary .ad-grid{grid-template-columns:repeat(auto-fit,minmax(220px,1fr))}
