/* ==========================================================================
   AS SSD Benchmark 中文站 · 新增组件样式 v1
   用途：面包屑 / 文章排版 / 目录 / FAQ / 相关阅读 / 页脚 v2 / 规格表 / 信任页
   依赖：style.css（基础变量与布局），本文件只做增量，不重复定义基础组件
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. 面包屑
   -------------------------------------------------------------------------- */
.breadcrumb {
    background: #fff;
    border-bottom: 1px solid var(--gray-light);
    padding: 12px 0;
    font-size: 0.85rem;
    color: var(--gray);
}
/* 站点头部为 fixed 定位，面包屑作为首屏第一个元素时需要让出高度 */
body > .breadcrumb { margin-top: 76px; }
.breadcrumb ol {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin: 0;
    padding: 0;
}
.breadcrumb li { display: flex; align-items: center; gap: 8px; }
.breadcrumb li::after { content: "/"; color: #C7CDD8; }
.breadcrumb li:last-child::after { content: ""; }
.breadcrumb a { color: var(--gray); text-decoration: none; }
.breadcrumb a:hover { color: var(--primary); }
.breadcrumb [aria-current="page"] { color: var(--dark); font-weight: 600; }

/* --------------------------------------------------------------------------
   2. 文章页排版
   -------------------------------------------------------------------------- */
.article-page { padding: 48px 0 72px; }
.article-page .container { max-width: 820px; }

.article-page h1 {
    font-size: 2rem;
    line-height: 1.4;
    font-weight: 800;
    letter-spacing: -0.01em;
    margin-bottom: 18px;
    color: var(--dark);
}

.article-page h2 {
    font-size: 1.4rem;
    font-weight: 750;
    margin: 44px 0 14px;
    padding-left: 14px;
    border-left: 4px solid var(--primary);
    line-height: 1.45;
    color: var(--dark);
    scroll-margin-top: 100px;
}

.article-page h3 {
    font-size: 1.12rem;
    font-weight: 700;
    margin: 30px 0 10px;
    color: var(--dark);
    scroll-margin-top: 100px;
}

.article-page p {
    font-size: 1rem;
    line-height: 1.9;
    color: #333A47;
    margin: 14px 0;
}

.article-page ul,
.article-page ol {
    margin: 14px 0 14px 22px;
    color: #333A47;
}
.article-page li { margin: 8px 0; line-height: 1.85; }

.article-page a { color: var(--primary); text-decoration: none; border-bottom: 1px solid rgba(0, 102, 255, 0.3); }
.article-page a:hover { border-bottom-color: var(--primary); }

.article-page table {
    width: 100%;
    border-collapse: collapse;
    margin: 22px 0;
    font-size: 0.92rem;
    border: 1px solid var(--gray-light);
    border-radius: 10px;
    overflow: hidden;
}
.article-page th {
    background: #F4F7FE;
    padding: 12px 14px;
    text-align: left;
    font-weight: 700;
    color: var(--dark);
    border-bottom: 1px solid var(--gray-light);
    white-space: nowrap;
}
.article-page td {
    padding: 12px 14px;
    border-bottom: 1px solid #F0F2F7;
    color: #3A4150;
    vertical-align: top;
}
.article-page tr:last-child td { border-bottom: none; }

.article-page blockquote {
    margin: 20px 0;
    padding: 14px 20px;
    background: #F4F7FE;
    border-left: 3px solid var(--primary);
    border-radius: 0 8px 8px 0;
    color: #3A4150;
}

/* 文章元信息：日期 / 作者 / 阅读提示 */
.article-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 18px;
    font-size: 0.85rem;
    color: var(--gray);
    padding-bottom: 22px;
    margin-bottom: 8px;
    border-bottom: 1px solid var(--gray-light);
}
.article-meta span,
.article-meta time { display: inline-flex; align-items: center; gap: 6px; }
.article-meta time { color: #4A5160; }
.article-meta .dot { color: #C7CDD8; }

/* --------------------------------------------------------------------------
   3. 目录
   -------------------------------------------------------------------------- */
.toc {
    background: #F8FAFF;
    border: 1px solid #E3EAFB;
    border-radius: var(--border-radius);
    padding: 20px 24px;
    margin: 28px 0 32px;
}
.toc-title {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 10px;
    letter-spacing: 0.02em;
}
.toc ol { margin: 0 0 0 18px; }
.toc li { margin: 6px 0; font-size: 0.92rem; }
.toc a { border-bottom: none; }

/* --------------------------------------------------------------------------
   4. 提示块
   -------------------------------------------------------------------------- */
.callout {
    background: #F4F7FE;
    border-left: 3px solid var(--primary);
    border-radius: 0 8px 8px 0;
    padding: 16px 20px;
    margin: 22px 0;
    font-size: 0.95rem;
    color: #333A47;
    line-height: 1.8;
}
.callout strong { color: var(--dark); }
.callout.warn { background: #FFF7ED; border-left-color: var(--secondary); }

/* --------------------------------------------------------------------------
   5. FAQ
   -------------------------------------------------------------------------- */
.faq-block { margin: 28px 0; }
.faq-item {
    background: #fff;
    border: 1px solid var(--gray-light);
    border-radius: 10px;
    margin-bottom: 10px;
    overflow: hidden;
}
.faq-item summary {
    cursor: pointer;
    padding: 16px 20px;
    font-weight: 650;
    font-size: 0.98rem;
    color: var(--dark);
    list-style: none;
    position: relative;
    padding-right: 46px;
    transition: background 0.2s ease;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
    content: "+";
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.3rem;
    font-weight: 400;
    color: var(--primary);
    line-height: 1;
}
.faq-item[open] summary::after { content: "\2013"; }
.faq-item[open] summary { background: #F8FAFF; }
.faq-item summary:hover { background: #F8FAFF; }
.faq-item .faq-answer {
    padding: 4px 20px 18px;
    font-size: 0.95rem;
    line-height: 1.85;
    color: #3A4150;
    border-top: 1px solid #F0F2F7;
    padding-top: 14px;
}
.faq-item .faq-answer p { margin: 8px 0; font-size: 0.95rem; }

/* --------------------------------------------------------------------------
   6. 相关阅读
   -------------------------------------------------------------------------- */
.related {
    margin: 48px 0 0;
    padding-top: 28px;
    border-top: 2px solid var(--dark);
}
.related-title {
    font-size: 1.05rem;
    font-weight: 750;
    color: var(--dark);
    margin-bottom: 16px;
}
.related ul { list-style: none; margin: 0; padding: 0; }
.related li {
    padding: 13px 0;
    border-bottom: 1px solid #F0F2F7;
    margin: 0;
}
.related li:last-child { border-bottom: none; }
.related a {
    font-size: 0.96rem;
    font-weight: 600;
    color: var(--dark);
    border-bottom: none;
    display: block;
}
.related a:hover { color: var(--primary); }
.related .desc {
    display: block;
    font-size: 0.84rem;
    color: var(--gray);
    font-weight: 400;
    margin-top: 3px;
}

/* --------------------------------------------------------------------------
   7. 文章内 CTA
   -------------------------------------------------------------------------- */
.cta-inline {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    border-radius: var(--border-radius);
    padding: 32px 34px;
    margin: 44px 0 0;
    color: #fff;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}
.cta-inline .txt h3 {
    font-size: 1.15rem;
    font-weight: 750;
    color: #fff;
    margin: 0 0 6px;
}
.cta-inline .txt p {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.85);
    margin: 0;
}
.cta-inline .btn-white {
    background: #fff;
    color: var(--primary);
    padding: 12px 26px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 0.95rem;
    text-decoration: none;
    white-space: nowrap;
    border-bottom: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.cta-inline .btn-white:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(0, 0, 0, 0.18); }

/* --------------------------------------------------------------------------
   8. 页脚 v2
   -------------------------------------------------------------------------- */
.footer-legal {
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    margin-top: 40px;
    padding-top: 22px;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    font-size: 0.82rem;
    color: rgba(255, 255, 255, 0.6);
}
.footer-legal a { color: rgba(255, 255, 255, 0.6); text-decoration: none; }
.footer-legal a:hover { color: #fff; }
.footer-legal .links { display: flex; flex-wrap: wrap; gap: 18px; }
.footer-note {
    margin-top: 14px;
    font-size: 0.78rem;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.45);
}

/* --------------------------------------------------------------------------
   9. 规格表 / 下载页
   -------------------------------------------------------------------------- */
.spec-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
    gap: 16px;
    margin: 24px 0 8px;
}
.spec-item {
    background: #fff;
    border: 1px solid var(--gray-light);
    border-radius: 10px;
    padding: 18px 20px;
}
.spec-item .k {
    font-size: 0.8rem;
    color: var(--gray);
    margin-bottom: 6px;
    letter-spacing: 0.02em;
}
.spec-item .v {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--dark);
    /* 用 break-word 而非 break-all：只在空格/斜杠处折行，
       避免「Windows 7 / 8 / 10 / 11」被拆成「1」+「0」 */
    word-break: normal;
    overflow-wrap: break-word;
}
.spec-item .v.small { font-size: 0.85rem; font-weight: 600; }

.hash-box {
    background: #12161F;
    color: #B9C6DA;
    border-radius: 10px;
    padding: 14px 18px;
    font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
    font-size: 0.8rem;
    line-height: 1.7;
    word-break: break-all;
    margin: 12px 0;
}
.hash-box .lbl { color: #6B7787; display: block; margin-bottom: 4px; font-size: 0.75rem; letter-spacing: 0.06em; }

/* --------------------------------------------------------------------------
   10. 信任页（关于 / 联系 / 免责）
   -------------------------------------------------------------------------- */
.trust-page { padding: 56px 0 80px; background: #fff; }
.trust-page .container { max-width: 820px; }
.trust-page h1 { font-size: 2rem; font-weight: 800; margin-bottom: 12px; color: var(--dark); }
.trust-page .lead { font-size: 1.02rem; color: var(--gray); margin-bottom: 36px; line-height: 1.8; }
.trust-page h2 { font-size: 1.25rem; font-weight: 750; margin: 38px 0 12px; color: var(--dark); }
.trust-page p { color: #333A47; line-height: 1.9; margin: 12px 0; }
.trust-page ul { margin: 12px 0 12px 22px; color: #333A47; line-height: 1.9; }
.trust-page li { margin: 7px 0; }
.trust-page a { color: var(--primary); text-decoration: none; }
.trust-page table { width: 100%; border-collapse: collapse; margin: 18px 0; font-size: 0.94rem; }
.trust-page th { text-align: left; padding: 11px 14px; background: #F4F7FE; border-bottom: 1px solid var(--gray-light); font-weight: 700; }
.trust-page td { padding: 11px 14px; border-bottom: 1px solid #F0F2F7; color: #3A4150; }
.trust-page th:first-child, .trust-page td:first-child { width: 130px; color: var(--gray); }

/* --------------------------------------------------------------------------
   11. 首页内容导航（内链区块）
   -------------------------------------------------------------------------- */
.content-nav { padding: 80px 0; background: #fff; }
.content-nav .grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
    margin-top: 44px;
}
.content-col {
    background: #F8FAFF;
    border: 1px solid #E9EEF9;
    border-radius: var(--border-radius);
    padding: 26px 28px;
}
.content-col .head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 14px;
}
.content-col h3 {
    font-size: 1rem;
    font-weight: 750;
    color: var(--dark);
    margin: 0;
}
.content-col .more { font-size: 0.8rem; color: var(--primary); text-decoration: none; }
.content-col ul { list-style: none; margin: 0; padding: 0; }
.content-col li { margin: 0; border-bottom: 1px dashed #E3EAFB; }
.content-col li:last-child { border-bottom: none; }
.content-col a {
    display: block;
    padding: 10px 0;
    font-size: 0.9rem;
    color: #3A4150;
    text-decoration: none;
    line-height: 1.6;
    transition: color 0.2s ease;
}
.content-col a:hover { color: var(--primary); }

/* --------------------------------------------------------------------------
   12. 首页事实卡（替换原虚构数据位）
   -------------------------------------------------------------------------- */
.fact-strip {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1px;
    background: var(--gray-light);
    border: 1px solid var(--gray-light);
    border-radius: var(--border-radius);
    overflow: hidden;
    margin: 32px 0 0;
}
.fact-strip .item { background: #fff; padding: 18px 20px; }
.fact-strip .k { font-size: 0.78rem; color: var(--gray); margin-bottom: 4px; }
.fact-strip .v { font-size: 1rem; font-weight: 700; color: var(--dark); }

/* --------------------------------------------------------------------------
   13. 响应式补充
   -------------------------------------------------------------------------- */
@media (max-width: 992px) {
    .article-page h1 { font-size: 1.6rem; }
    .article-page h2 { font-size: 1.25rem; margin-top: 36px; }
    .cta-inline { padding: 26px 24px; }
    .cta-inline .btn-white { width: 100%; text-align: center; }
}

@media (max-width: 768px) {
    .breadcrumb { font-size: 0.78rem; padding: 10px 0; }
    .article-page { padding: 32px 0 56px; }
    .article-page h1 { font-size: 1.45rem; }
    .article-page p { font-size: 0.96rem; line-height: 1.85; }
    .article-page .container { padding: 0 18px; }
    .toc { padding: 16px 18px; }
    .footer-legal { flex-direction: column; align-items: flex-start; }
    .content-nav, .trust-page { padding: 48px 0; }
    .related { margin-top: 36px; }
}

/* --------------------------------------------------------------------------
   14. 补充：宽表格横向滚动 / 规格网格密度
   -------------------------------------------------------------------------- */
.table-scroll {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin: 22px 0;
    border-radius: 10px;
}
.table-scroll table { margin: 0; width: 100%; table-layout: auto; }
.table-scroll th { white-space: nowrap; font-size: 0.84rem; padding: 11px 12px; }
.table-scroll td { white-space: normal; font-size: 0.86rem; padding: 11px 12px; }
.table-scroll td:last-child, .table-scroll th:last-child { white-space: normal; min-width: 150px; }
@media (max-width: 820px) { .table-scroll table { min-width: 640px; } }

.article-page .spec-grid { grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }

/* 页脚列宽微调：避免品牌名在窄列中被拆成两行 */
.footer-logo { font-size: 1.15rem; letter-spacing: -0.01em; }

/* 面包屑末项过长时省略，避免标题被硬截断 */
.breadcrumb li { min-width: 0; }
.breadcrumb li:last-child { flex: 1; }
.breadcrumb [aria-current="page"] {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 100%;
}

/* 内容导航卡片内的描述行（标题与摘要分开） */
.content-col a .desc {
    display: block;
    font-size: 0.82rem;
    font-weight: 400;
    color: var(--gray);
    margin-top: 5px;
    line-height: 1.65;
}

/* --------------------------------------------------------------------------
   15. 移动端导航修正
   问题：390px 下 logo 文字与「免费下载」按钮各折成两行，汉堡按钮被挤出视口
   处理：缩小 logo 与按钮、禁止换行，并让面包屑的头部占位随高度调整
   -------------------------------------------------------------------------- */
@media (max-width: 768px) {
    .navbar {
        gap: 10px;
        padding: 12px 0;
    }
    .logo {
        font-size: 1.05rem;
        gap: 9px;
        white-space: nowrap;
        flex: 1;
        min-width: 0;
    }
    .logo-icon {
        width: 32px;
        height: 32px;
        border-radius: 8px;
        flex: none;
    }
    .logo-icon img { width: 100%; height: 100%; object-fit: contain; }
    .nav-cta {
        padding: 8px 16px;
        font-size: 0.82rem;
        white-space: nowrap;
        flex: none;
    }
    .mobile-menu-btn {
        flex: none;
        font-size: 1.1rem;
    }
    body > .breadcrumb { margin-top: 64px; }
}

@media (max-width: 400px) {
    .logo { font-size: 0.95rem; }
    .nav-cta { padding: 7px 12px; font-size: 0.78rem; }
}

/* 首页数据项在窄屏不折行，避免「Win / 7–11」这种断法 */
@media (max-width: 600px) {
    .hero-stats { gap: 18px; }
    .stat-item h3 {
        font-size: 1.45rem;
        white-space: nowrap;
    }
    .stat-item p { font-size: 0.8rem; white-space: nowrap; }
}
