/* ============================================
   QuickQ 官方站 - 统一样式
   优化 Bing SEO:语义化、移动友好、高性能
   ============================================ */

/* 基础重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #0066ff;
    --primary-dark: #0052cc;
    --secondary: #00d4aa;
    --text: #1a1a2e;
    --text-light: #555;
    --bg: #ffffff;
    --bg-soft: #f5f7fa;
    --border: #e1e5eb;
    --shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    --radius: 12px;
    --container: 1200px;
    --transition: 0.25s ease;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB",
                 "Microsoft YaHei", "Helvetica Neue", Helvetica, Arial, sans-serif;
    font-size: 16px;
    line-height: 1.7;
    color: var(--text);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: color var(--transition);
}

a:hover {
    color: var(--primary-dark);
}

h1, h2, h3, h4 {
    line-height: 1.3;
    font-weight: 700;
    color: var(--text);
}

h1 { font-size: clamp(2rem, 4vw, 2.75rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2rem); }
h3 { font-size: 1.25rem; }

p {
    color: var(--text-light);
}

ul, ol {
    padding-left: 1.5rem;
}

li {
    margin-bottom: 0.5rem;
    color: var(--text-light);
}

code {
    background: var(--bg-soft);
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.9em;
    color: var(--primary-dark);
}

.container {
    width: 100%;
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 1.25rem;
}

/* 通用按钮 */
.btn {
    display: inline-block;
    padding: 0.7rem 1.6rem;
    border-radius: var(--radius);
    font-weight: 600;
    font-size: 0.95rem;
    text-align: center;
    cursor: pointer;
    transition: all var(--transition);
    border: 2px solid transparent;
}

.btn-primary {
    background: var(--primary);
    color: #fff !important;
    box-shadow: 0 4px 14px rgba(0, 102, 255, 0.3);
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 22px rgba(0, 102, 255, 0.4);
    color: #fff;
}

.btn-secondary {
    background: transparent;
    color: var(--primary);
    border-color: var(--primary);
}

.btn-secondary:hover {
    background: var(--primary);
    color: #fff;
}

.btn-lg {
    padding: 1rem 2rem;
    font-size: 1.05rem;
}

.btn-block {
    display: block;
    width: 100%;
}

/* 顶部导航 */
.site-header {
    background: #fff;
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 1rem;
    padding-bottom: 1rem;
    gap: 1.5rem;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--text);
}

.logo img {
    border-radius: 8px;
}

.main-nav ul {
    display: flex;
    list-style: none;
    gap: 1.8rem;
    padding: 0;
    margin: 0;
}

.main-nav a {
    color: var(--text);
    font-weight: 500;
    padding: 0.5rem 0;
    position: relative;
}

.main-nav a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -4px;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: width var(--transition);
}

.main-nav a:hover::after,
.main-nav a.active::after {
    width: 100%;
}

.main-nav a.active {
    color: var(--primary);
}

.nav-cta {
    white-space: nowrap;
}

/* Hero */
.hero {
    background: linear-gradient(135deg, #eaf2ff 0%, #f7fbff 100%);
    padding: 4rem 0 5rem;
    overflow: hidden;
}

.hero-inner {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.hero-subtitle {
    font-size: 1.15rem;
    color: var(--text-light);
    margin: 1rem 0 1.5rem;
}

.hero-features {
    list-style: none;
    padding: 0;
    margin: 1.5rem 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem 1.5rem;
}

.hero-features li {
    color: var(--text);
    font-weight: 500;
}

.hero-cta {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-top: 1.5rem;
}

.hero-trust {
    margin-top: 1.5rem;
    color: var(--text-light);
    font-size: 0.95rem;
}

.hero-image img {
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    transition: transform 0.4s;
}

.hero-image img:hover {
    transform: translateY(-6px);
}

/* Section 通用 */
.section {
    padding: 4rem 0;
}

.section-title {
    text-align: center;
    margin-bottom: 0.75rem;
}

.section-subtitle {
    text-align: center;
    color: var(--text-light);
    margin-bottom: 2.5rem;
    font-size: 1.05rem;
}

/* 网格 */
.grid {
    display: grid;
    gap: 1.5rem;
}

.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }

/* 卡片 */
.card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 2rem 1.5rem;
    transition: all var(--transition);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.03);
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow);
    border-color: var(--primary);
}

.card h3 {
    margin-bottom: 0.75rem;
}

.card-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.card-meta {
    color: var(--text-light);
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.card-list {
    list-style: none;
    padding: 0;
    margin: 1rem 0 1.5rem;
}

.card-list li {
    font-size: 0.95rem;
    margin-bottom: 0.4rem;
}

/* 场景 */
.scenario-item {
    padding: 1.5rem;
    background: var(--bg-soft);
    border-radius: var(--radius);
    border-left: 4px solid var(--primary);
}

.scenario-item h3 {
    margin-bottom: 0.5rem;
}

/* 步骤 */
.step-list {
    list-style: none;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    counter-reset: step;
}

.step-list li {
    text-align: center;
    padding: 2rem 1.5rem;
    background: var(--bg-soft);
    border-radius: var(--radius);
    position: relative;
}

.step-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--primary);
    color: #fff;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.step-list h3 {
    margin-bottom: 0.5rem;
}

/* 用户评价 */
.testimonials {
    background: var(--bg-soft);
}

.testimonial {
    background: #fff;
    padding: 1.75rem;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    margin: 0;
}

.testimonial p {
    font-style: italic;
    margin-bottom: 1rem;
    color: var(--text);
}

.testimonial footer {
    color: var(--text-light);
    font-size: 0.9rem;
}

/* CTA 区块 */
.cta-block {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: #fff;
    text-align: center;
}

.cta-block .section-title,
.cta-block p {
    color: #fff;
}

.cta-block p {
    margin-bottom: 2rem;
    opacity: 0.95;
}

.cta-block .btn-primary {
    background: #fff;
    color: var(--primary) !important;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.15);
}

.cta-block .btn-primary:hover {
    background: #f5f7fa;
    transform: translateY(-2px);
}

/* 页脚 */
.site-footer {
    background: #1a1a2e;
    color: #c8c8d8;
    padding-top: 3rem;
    margin-top: 0;
}

.footer-inner {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 2rem;
    padding-bottom: 2rem;
}

.footer-logo {
    color: #fff;
    margin-bottom: 1rem;
}

.footer-col h4 {
    color: #fff;
    margin-bottom: 1rem;
    font-size: 1rem;
}

.footer-col ul {
    list-style: none;
    padding: 0;
}

.footer-col li {
    color: #c8c8d8;
    margin-bottom: 0.6rem;
}

.footer-col a {
    color: #c8c8d8;
}

.footer-col a:hover {
    color: #fff;
}

.footer-bottom {
    border-top: 1px solid #2c2c44;
    padding: 1.25rem 0;
    text-align: center;
    font-size: 0.9rem;
    color: #8888a0;
}

/* 面包屑 */
.breadcrumb {
    background: var(--bg-soft);
    padding: 0.85rem 0;
    font-size: 0.9rem;
}

.breadcrumb .separator {
    margin: 0 0.5rem;
    color: var(--text-light);
}

/* Page Hero */
.page-hero {
    background: linear-gradient(135deg, #eaf2ff 0%, #f7fbff 100%);
    padding: 3rem 0 2.5rem;
    text-align: center;
}

.page-hero h1 {
    margin-bottom: 0.75rem;
}

.page-hero p {
    font-size: 1.1rem;
    color: var(--text-light);
}

.page-hero-meta {
    margin-top: 1rem;
    font-size: 0.95rem !important;
}

/* 文章内容(指南页) */
.article-content section {
    margin-bottom: 3rem;
    scroll-margin-top: 80px;
}

.article-content h2 {
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--primary);
}

.article-content h3 {
    margin: 1.25rem 0 0.75rem;
    color: var(--primary-dark);
}

.article-content p {
    margin-bottom: 1rem;
}

.toc {
    background: var(--bg-soft);
    padding: 1.75rem;
    border-radius: var(--radius);
    border-left: 4px solid var(--primary);
}

.toc h2 {
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.toc ul {
    list-style: none;
    padding: 0;
}

.toc li {
    margin-bottom: 0.5rem;
}

/* 安装指引 */
.guide-block {
    background: #fff;
    padding: 1.75rem;
    border-radius: var(--radius);
    border: 1px solid var(--border);
}

.guide-block h3 {
    margin-bottom: 1rem;
    color: var(--primary-dark);
}

.guide-block ol,
.guide-block ul {
    margin-left: 1rem;
}

.more-link {
    text-align: center;
    margin-top: 2rem;
    font-size: 1.05rem;
}

/* 表格 */
.table-wrap {
    overflow-x: auto;
    border-radius: var(--radius);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}

table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
}

th, td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid var(--border);
}

th {
    background: var(--bg-soft);
    font-weight: 700;
    color: var(--text);
}

tbody tr:hover {
    background: var(--bg-soft);
}

/* FAQ */
.faq-container {
    max-width: 900px;
    margin: 0 auto;
}

.faq-item {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    margin-bottom: 0.75rem;
    overflow: hidden;
    transition: all var(--transition);
}

.faq-item:hover {
    border-color: var(--primary);
}

.faq-item summary {
    padding: 1.25rem 1.5rem;
    font-weight: 600;
    cursor: pointer;
    list-style: none;
    position: relative;
    color: var(--text);
}

.faq-item summary::-webkit-details-marker {
    display: none;
}

.faq-item summary::after {
    content: "+";
    position: absolute;
    right: 1.5rem;
    font-size: 1.5rem;
    color: var(--primary);
    transition: transform var(--transition);
}

.faq-item[open] summary::after {
    transform: rotate(45deg);
}

.faq-item p {
    padding: 0 1.5rem 1.25rem;
}

/* 特性块 */
.feature-block {
    padding: 1.75rem;
    background: var(--bg-soft);
    border-radius: var(--radius);
    border-left: 4px solid var(--secondary);
}

.feature-block h3 {
    margin-bottom: 0.75rem;
}

/* 响应式 */
@media (max-width: 992px) {
    .grid-3 { grid-template-columns: repeat(2, 1fr); }
    .grid-2 { grid-template-columns: 1fr; }
    .footer-inner { grid-template-columns: 1fr 1fr; }
    .hero-inner { grid-template-columns: 1fr; }
    .hero-image { order: -1; }
    .step-list { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
    .main-nav { display: none; }
    .grid-3 { grid-template-columns: 1fr; }
    .footer-inner { grid-template-columns: 1fr; }
    .nav-cta { padding: 0.5rem 1rem; font-size: 0.85rem; }
    .section { padding: 3rem 0; }
    .hero { padding: 2.5rem 0 3rem; }
    .hero-features { grid-template-columns: 1fr; }
    .hero-cta .btn { width: 100%; }
}

/* 可访问性 - 焦点样式 */
a:focus-visible,
button:focus-visible,
summary:focus-visible {
    outline: 3px solid var(--primary);
    outline-offset: 2px;
}

/* 减少动效(无障碍) */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
    html { scroll-behavior: auto; }
}
