/* coding-plan 频道页(/coding-plan/) —— 配色/间距对齐 home 的 Tailwind 调色板
 * 灰阶: 50=#f9fafb 100=#f3f4f6 200=#e5e7eb 500=#6b7280 700=#374151 800=#1f2937 900=#111827
 * 强调: blue-600=#2563eb blue-50=#eff6ff blue-100=#dbeafe
 * 绿(可用/直付): green-600=#16a34a green-50=#f0fdf4 green-100=#dcfce7
 * 琥珀(暂停/国际支付): amber-600=#d97706 amber-50=#fffbeb amber-100=#fef3c7 */

.cp-page {
    background: #f9fafb;
    min-height: 100vh;
}

.cp-container {
    max-width: 80rem;
    margin-inline: auto;
    padding-inline: 1rem;
}

/* ① Hero */
.cp-hero {
    background: #fff;
    border-bottom: 1px solid #e5e7eb;
    padding-block: 3rem 2.5rem;
    text-align: center;
}
.cp-eyebrow {
    display: inline-block;
    font-size: 0.875rem;
    font-weight: 600;
    color: #2563eb;
    background: #eff6ff;
    border: 1px solid #dbeafe;
    border-radius: 9999px;
    padding: 0.25rem 0.875rem;
    margin-bottom: 1rem;
}
.cp-h1 {
    font-size: 2.25rem;
    line-height: 1.2;
    font-weight: 800;
    color: #111827;
    margin: 0 auto 0.75rem;
    max-width: 56rem;
}
.cp-sub {
    font-size: 1.125rem;
    color: #6b7280;
    max-width: 44rem;
    margin: 0 auto 1.25rem;
}
.cp-chips {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}
.cp-chip {
    font-size: 0.8125rem;
    color: #374151;
    background: #f3f4f6;
    border-radius: 9999px;
    padding: 0.25rem 0.75rem;
}
.cp-jump {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.75rem;
}
.cp-jump a {
    font-size: 0.875rem;
    font-weight: 600;
    color: #2563eb;
    text-decoration: none;
}
.cp-jump a:hover { text-decoration: underline; }

/* 区块骨架 */
.cp-section { padding-block: 2.75rem 0; }
.cp-section:last-child { padding-bottom: 3rem; }
.cp-section-alt .cp-container > .cp-h2 { color: #111827; }
.cp-section-alt { background: #fff; }
.cp-h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1f2937;
    margin: 0 0 1.25rem;
}

/* ② 速览表: 横向滚动(移动端), 首列粘滞 */
.cp-table-wrap {
    overflow-x: auto;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 0.75rem;
    box-shadow: 0 1px 2px rgba(17, 24, 39, 0.04);
}
.cp-table {
    width: 100%;
    min-width: 62rem;
    border-collapse: collapse;
    font-size: 0.875rem;
}
.cp-table th {
    text-align: left;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #6b7280;
    background: #f9fafb;
    padding: 0.625rem 0.875rem;
    border-bottom: 1px solid #e5e7eb;
    white-space: nowrap;
}
.cp-table td {
    padding: 0.75rem 0.875rem;
    border-bottom: 1px solid #f3f4f6;
    color: #374151;
    vertical-align: top;
}
.cp-table tbody tr:last-child td { border-bottom: none; }
.cp-table tbody tr:hover { background: #f9fafb; }
.cp-td-name { position: sticky; left: 0; background: #fff; min-width: 11rem; }
.cp-table tbody tr:hover .cp-td-name { background: #f9fafb; }
.cp-plan-link {
    font-weight: 700;
    color: #1f2937;
    text-decoration: none;
    display: block;
}
.cp-plan-link:hover { color: #2563eb; }
.cp-td-price { font-weight: 700; color: #111827; white-space: nowrap; }
.cp-td-muted { color: #6b7280; font-size: 0.8125rem; }
.cp-td-models { color: #374151; font-size: 0.8125rem; max-width: 13rem; }
.cp-vendor {
    display: block;
    font-size: 0.75rem;
    color: #9ca3af;
    margin-top: 0.125rem;
}
.cp-badge {
    display: inline-block;
    font-size: 0.6875rem;
    font-weight: 700;
    color: #2563eb;
    background: #eff6ff;
    border-radius: 9999px;
    padding: 0.0625rem 0.5rem;
    margin-top: 0.25rem;
    white-space: nowrap;
}
.cp-china, .cp-status {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: 9999px;
    padding: 0.125rem 0.625rem;
    white-space: nowrap;
}
.cp-china-direct { color: #16a34a; background: #f0fdf4; }
.cp-china-partial { color: #d97706; background: #fffbeb; }
.cp-status-available { color: #16a34a; background: #f0fdf4; }
.cp-status-paused { color: #d97706; background: #fffbeb; }
.cp-note {
    font-size: 0.8125rem;
    color: #9ca3af;
    margin-top: 0.625rem;
}

/* ③ 决策区 */
.cp-decide-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(17rem, 1fr));
    gap: 1rem;
}
.cp-decide-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 0.75rem;
    padding: 1.125rem 1.25rem;
}
.cp-decide-icon { font-size: 1.375rem; }
.cp-decide-title {
    font-size: 1rem;
    font-weight: 700;
    color: #1f2937;
    margin: 0.375rem 0 0.375rem;
}
.cp-decide-rec {
    font-size: 0.875rem;
    color: #6b7280;
    line-height: 1.55;
    margin: 0;
}
.cp-decide-link {
    color: #2563eb;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
}
.cp-decide-link:hover { text-decoration: underline; }

/* ④ 平台详情卡 */
.cp-plan {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 0.75rem;
    padding: 1.25rem 1.5rem 1.5rem;
    margin-bottom: 1.25rem;
    box-shadow: 0 1px 2px rgba(17, 24, 39, 0.04);
}
.cp-plan-head {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: space-between;
    gap: 0.5rem 1rem;
    border-bottom: 1px solid #f3f4f6;
    padding-bottom: 0.875rem;
    margin-bottom: 0.875rem;
}
.cp-plan-title { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.5rem; }
.cp-plan-name {
    font-size: 1.25rem;
    font-weight: 800;
    color: #111827;
    margin: 0;
}
.cp-plan-title .cp-vendor { display: inline; margin-top: 0; }
.cp-official {
    font-size: 0.875rem;
    font-weight: 600;
    color: #2563eb;
    text-decoration: none;
    white-space: nowrap;
}
.cp-official:hover { text-decoration: underline; }
.cp-plan-meta {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
    gap: 0.5rem 1.5rem;
    margin: 0 0 1rem;
}
.cp-plan-meta dt {
    font-size: 0.6875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #9ca3af;
}
.cp-plan-meta dd { margin: 0.125rem 0 0; font-size: 0.8125rem; color: #374151; line-height: 1.5; }
.cp-tiers {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr));
    gap: 0.75rem;
}
.cp-tier {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 0.625rem;
    padding: 0.875rem 1rem;
}
.cp-tier-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 0.5rem;
    margin-bottom: 0.25rem;
}
.cp-tier-name { font-size: 0.875rem; font-weight: 700; color: #1f2937; }
.cp-tier-price { font-size: 0.9375rem; font-weight: 800; color: #111827; white-space: nowrap; }
.cp-tier-yearly {
    font-size: 0.75rem;
    color: #16a34a;
    font-weight: 600;
    margin-bottom: 0.25rem;
}
.cp-tier-quota { font-size: 0.8125rem; color: #2563eb; margin-bottom: 0.375rem; }
.cp-tier-fit { font-size: 0.75rem; color: #6b7280; line-height: 1.5; }
.cp-detail-link {
    display: inline-block;
    margin-top: 1rem;
    font-size: 0.875rem;
    font-weight: 700;
    color: #2563eb;
    text-decoration: none;
}
.cp-detail-link:hover { text-decoration: underline; }

/* ⑤ 变动时间线 */
.cp-changes { list-style: none; margin: 0; padding: 0; }
.cp-change {
    display: flex;
    gap: 1rem;
    align-items: baseline;
    padding: 0.625rem 0;
    border-bottom: 1px dashed #e5e7eb;
}
.cp-change:last-child { border-bottom: none; }
.cp-change-date {
    flex: 0 0 5.5rem;
    font-size: 0.8125rem;
    font-weight: 700;
    color: #2563eb;
    font-variant-numeric: tabular-nums;
}
.cp-change-event { font-size: 0.875rem; color: #374151; line-height: 1.55; }

/* ⑥ 专集文章区(空态不渲染) */
.cp-article-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
    gap: 1rem;
}
.cp-article-card {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 0.75rem;
    padding: 1rem 1.125rem;
    text-decoration: none;
}
.cp-article-card:hover { border-color: #dbeafe; }
.cp-article-title { font-size: 0.9375rem; font-weight: 700; color: #1f2937; }
.cp-article-card:hover .cp-article-title { color: #2563eb; }

/* ⑦ FAQ */
.cp-faq-list { max-width: 48rem; }
.cp-faq-item {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 0.625rem;
    padding: 0.875rem 1.125rem;
    margin-bottom: 0.625rem;
}
.cp-faq-item summary {
    font-size: 0.9375rem;
    font-weight: 700;
    color: #1f2937;
    cursor: pointer;
    list-style: none;
    position: relative;
    padding-right: 1.5rem;
}
.cp-faq-item summary::-webkit-details-marker { display: none; }
.cp-faq-item summary::after {
    content: "+";
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    color: #2563eb;
    font-weight: 700;
}
.cp-faq-item[open] summary::after { content: "−"; }
.cp-faq-a { font-size: 0.875rem; color: #6b7280; line-height: 1.6; margin-top: 0.5rem; }

/* md 底部(SEO 补充): 基础排版 */
.cp-md { max-width: 48rem; }
.cp-md h2 {
    font-size: 1.375rem;
    font-weight: 700;
    color: #1f2937;
    margin: 2rem 0 0.75rem;
}
.cp-md h2:first-child { margin-top: 0; }
.cp-md p { font-size: 0.9375rem; color: #374151; line-height: 1.7; margin: 0 0 1rem; }
.cp-md ul { padding-left: 1.25rem; margin: 0 0 1rem; }
.cp-md li { font-size: 0.9375rem; color: #374151; line-height: 1.7; margin-bottom: 0.375rem; }
.cp-md a { color: #2563eb; }
.cp-md code {
    font-size: 0.875em;
    background: #f3f4f6;
    border-radius: 0.25rem;
    padding: 0.125rem 0.375rem;
}
