/* ============================================================
   QuickQ Online — 扩展页面样式 / Extended page styles
   依赖 main.css 中的设计变量（--primary / --bg-card 等）
   ============================================================ */

/* ---------- 语言切换 ---------- */
.lang-switch {
    display: inline-flex;
    align-items: center;
    gap: 0.15rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-full);
    padding: 0.18rem;
    margin-right: 0.6rem;
    background: rgba(255, 255, 255, 0.04);
}

.lang-switch a {
    font-size: 0.75rem;
    line-height: 1;
    padding: 0.35rem 0.6rem;
    border-radius: var(--radius-full);
    color: var(--text-muted);
    transition: all 0.25s ease;
    white-space: nowrap;
}

.lang-switch a:hover {
    color: var(--text);
}

.lang-switch a.active {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: #fff;
}

.nav-mobile .lang-switch {
    margin: 0.6rem 0 0;
}

/* ---------- 面包屑 ---------- */
.breadcrumb-bar {
    padding: 6.5rem 0 0;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    font-size: 0.78rem;
    color: var(--text-dim);
    list-style: none;
}

.breadcrumb li {
    display: flex;
    align-items: center;
    gap: 0.45rem;
}

.breadcrumb li + li::before {
    content: "/";
    color: var(--text-dim);
}

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

/* ---------- 内页头图 ---------- */
.page-hero {
    padding: 2.2rem 0 2.8rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.page-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(60% 120% at 50% 0%, rgba(79, 124, 255, 0.18), transparent 70%);
    pointer-events: none;
}

.page-hero h1 {
    position: relative;
    font-size: clamp(1.7rem, 4vw, 2.9rem);
    line-height: 1.25;
    letter-spacing: -0.02em;
}

.page-hero h1 .highlight {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.page-hero .lead {
    position: relative;
    max-width: 780px;
    margin: 1rem auto 0;
    color: var(--text-muted);
    font-size: clamp(0.9rem, 1.6vw, 1.03rem);
}

.page-hero .hero-actions {
    position: relative;
    margin-top: 1.7rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    justify-content: center;
}

.btn-ghost {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.8rem 1.5rem;
    border-radius: var(--radius-full);
    border: 1px solid var(--border-glow);
    color: var(--text);
    font-size: 0.9rem;
    font-weight: 600;
    transition: all 0.25s ease;
}

.btn-ghost:hover {
    border-color: var(--primary);
    background: rgba(79, 124, 255, 0.12);
}

/* ---------- 通用内容板块 ---------- */
.section {
    padding: 3.2rem 0;
}

.section.alt {
    background: linear-gradient(180deg, transparent, rgba(15, 26, 48, 0.45), transparent);
}

.card-grid {
    display: grid;
    gap: 1.1rem;
    grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
    margin-top: 2rem;
}

.info-card {
    background: var(--bg-glass);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.5rem;
    transition: transform 0.3s ease, border-color 0.3s ease;
}

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

.info-card .icon {
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    border-radius: var(--radius-sm);
    background: rgba(79, 124, 255, 0.14);
    color: var(--primary);
    font-size: 1.1rem;
    margin-bottom: 0.9rem;
}

.info-card h3 {
    font-size: 1.05rem;
    margin-bottom: 0.5rem;
}

.info-card p,
.info-card li {
    color: var(--text-muted);
    font-size: 0.87rem;
}

.info-card ul {
    margin: 0.6rem 0 0 1.1rem;
}

.info-card .meta {
    margin-top: 0.9rem;
    font-size: 0.76rem;
    color: var(--text-dim);
}

/* ---------- 步骤流程 ---------- */
.steps {
    counter-reset: step;
    display: grid;
    gap: 1rem;
    margin-top: 2rem;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.step {
    position: relative;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.6rem 1.4rem 1.4rem;
}

.step::before {
    counter-increment: step;
    content: counter(step, decimal-leading-zero);
    position: absolute;
    top: -0.9rem;
    left: 1.3rem;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    padding: 0.25rem 0.7rem;
    border-radius: var(--radius-full);
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: #fff;
}

.step h3 {
    font-size: 1rem;
    margin-bottom: 0.45rem;
}

.step p {
    color: var(--text-muted);
    font-size: 0.86rem;
}

/* ---------- 表格 ---------- */
.table-wrap {
    margin-top: 2rem;
    overflow-x: auto;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--bg-glass);
}

table.data-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 620px;
    font-size: 0.86rem;
}

table.data-table caption {
    caption-side: top;
    text-align: left;
    padding: 1rem 1.2rem 0;
    color: var(--text-dim);
    font-size: 0.78rem;
}

table.data-table th,
table.data-table td {
    padding: 0.85rem 1.1rem;
    text-align: left;
    border-bottom: 1px solid var(--border);
}

table.data-table thead th {
    color: var(--text);
    font-weight: 600;
    background: rgba(79, 124, 255, 0.1);
    white-space: nowrap;
}

table.data-table tbody td {
    color: var(--text-muted);
}

table.data-table tbody tr:last-child td {
    border-bottom: none;
}

/* ---------- 价格 ---------- */
.plan-grid {
    display: grid;
    gap: 1.2rem;
    grid-template-columns: repeat(auto-fit, minmax(265px, 1fr));
    margin-top: 2.2rem;
    align-items: stretch;
}

.plan {
    position: relative;
    display: flex;
    flex-direction: column;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.9rem 1.5rem 1.6rem;
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.plan:hover {
    transform: translateY(-6px);
    border-color: var(--border-glow);
}

.plan.featured {
    border-color: var(--primary);
    box-shadow: var(--shadow-glow);
}

.plan .plan-tag {
    position: absolute;
    top: -0.85rem;
    right: 1.2rem;
    font-size: 0.72rem;
    font-weight: 700;
    padding: 0.28rem 0.8rem;
    border-radius: var(--radius-full);
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: #04122b;
}

.plan h3 {
    font-size: 1.1rem;
}

.plan .plan-note {
    color: var(--text-dim);
    font-size: 0.78rem;
    margin-top: 0.2rem;
}

.plan .price {
    margin: 1.1rem 0 0.2rem;
    display: flex;
    align-items: baseline;
    gap: 0.3rem;
}

.plan .price .amount {
    font-size: 2.3rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.plan .price .unit {
    color: var(--text-dim);
    font-size: 0.82rem;
}

.plan .price-sub {
    color: var(--text-muted);
    font-size: 0.8rem;
}

.plan ul {
    list-style: none;
    margin: 1.2rem 0 1.5rem;
    display: grid;
    gap: 0.6rem;
}

.plan ul li {
    position: relative;
    padding-left: 1.5rem;
    color: var(--text-muted);
    font-size: 0.86rem;
}

.plan ul li::before {
    content: "\f00c";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    position: absolute;
    left: 0;
    top: 0.05rem;
    color: var(--primary);
    font-size: 0.76rem;
}

.plan .plan-cta {
    margin-top: auto;
}

.plan .plan-cta a {
    display: block;
    text-align: center;
    padding: 0.8rem 1rem;
    border-radius: var(--radius-full);
    font-weight: 600;
    font-size: 0.9rem;
    border: 1px solid var(--border-glow);
    transition: all 0.25s ease;
}

.plan .plan-cta a:hover {
    background: rgba(79, 124, 255, 0.14);
}

.plan.featured .plan-cta a {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    border-color: transparent;
    color: #fff;
}

/* ---------- 设备列表 ---------- */
.device-grid {
    display: grid;
    gap: 1.1rem;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    margin-top: 2rem;
}

.device-card {
    background: var(--bg-glass);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.4rem;
}

.device-card h3 {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 1rem;
    margin-bottom: 0.6rem;
}

.device-card h3 i {
    color: var(--primary);
}

.device-card p {
    color: var(--text-muted);
    font-size: 0.86rem;
}

.device-card .tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-top: 0.9rem;
}

.device-card .tags span {
    font-size: 0.72rem;
    padding: 0.22rem 0.6rem;
    border-radius: var(--radius-full);
    border: 1px solid var(--border);
    color: var(--text-dim);
}

/* ---------- FAQ 折叠 ---------- */
.faq-list {
    margin-top: 2rem;
    display: grid;
    gap: 0.8rem;
}

.faq-item {
    background: var(--bg-glass);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    overflow: hidden;
}

.faq-item summary {
    cursor: pointer;
    list-style: none;
    padding: 1.05rem 2.6rem 1.05rem 1.2rem;
    font-weight: 600;
    font-size: 0.95rem;
    position: relative;
}

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

.faq-item summary::after {
    content: "\f078";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    position: absolute;
    right: 1.2rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 0.75rem;
    color: var(--primary);
    transition: transform 0.25s ease;
}

.faq-item[open] summary::after {
    transform: translateY(-50%) rotate(180deg);
}

.faq-item .faq-body {
    padding: 0 1.2rem 1.15rem;
    color: var(--text-muted);
    font-size: 0.88rem;
}

.faq-item .faq-body p + p {
    margin-top: 0.6rem;
}

.faq-item .faq-body ul {
    margin: 0.5rem 0 0 1.1rem;
}

/* ---------- 法律条款正文 ---------- */
.legal {
    max-width: 860px;
    margin: 0 auto;
}

.legal .updated {
    color: var(--text-dim);
    font-size: 0.8rem;
    margin-bottom: 1.8rem;
}

.legal h2 {
    font-size: 1.18rem;
    margin: 2rem 0 0.7rem;
    padding-left: 0.8rem;
    border-left: 3px solid var(--primary);
}

.legal h3 {
    font-size: 1rem;
    margin: 1.2rem 0 0.5rem;
}

.legal p,
.legal li {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.legal p + p {
    margin-top: 0.7rem;
}

.legal ul,
.legal ol {
    margin: 0.7rem 0 0 1.3rem;
    display: grid;
    gap: 0.4rem;
}

.legal .toc {
    background: var(--bg-glass);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 1.1rem 1.3rem;
}

.legal .toc strong {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.legal .toc a:hover {
    color: var(--primary);
}

/* ---------- 相关内链 ---------- */
.related {
    display: grid;
    gap: 0.9rem;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    margin-top: 2rem;
}

.related a {
    display: block;
    padding: 1.1rem 1.2rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: var(--bg-glass);
    transition: all 0.25s ease;
}

.related a:hover {
    border-color: var(--primary);
    transform: translateY(-3px);
}

.related a strong {
    display: block;
    font-size: 0.93rem;
    margin-bottom: 0.25rem;
}

.related a span {
    color: var(--text-muted);
    font-size: 0.8rem;
}

/* ---------- 提示条 ---------- */
.notice {
    margin-top: 2rem;
    display: flex;
    gap: 0.8rem;
    align-items: flex-start;
    padding: 1.1rem 1.3rem;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-glow);
    background: rgba(79, 124, 255, 0.08);
    color: var(--text-muted);
    font-size: 0.85rem;
}

.notice i {
    color: var(--primary);
    margin-top: 0.2rem;
}

@media (max-width: 768px) {
    .breadcrumb-bar {
        padding-top: 5.2rem;
    }

    .section {
        padding: 2.4rem 0;
    }
}
