/* 全站共享外壳样式（home / plan / guide 三页共用）：
   设计 token、顶部导航、深色 hero、卡片、按钮、区块标题、表格、尾部 CTA、页脚。
   首页专属的固定框架在 rainyun-home.css，文章页专属的网格与正文排版在 rainyun-article.css。 */

/* ==========================================================================
   设计 token 取自雨云官网（rainyun.com）的 CSS 变量与组件：
   主色 #37b5c1 / 购买橙 #ff9f43 / 仅剩红 #ea5455 / 深字 #22292f / 正文 #6e6b7b
   卡片圆角 .428rem、按钮圆角 .358rem、卡片阴影 0 4px 24px rgba(34,41,47,.1)
   字体栈与官网一致（PingFang SC / HarmonyOS / 微软雅黑）
   ========================================================================== */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #37b5c1;
    --primary-dark: #2c9099;
    --primary-soft: rgba(55, 181, 193, 0.08);
    --success: #28c76f;
    --warning: #ff9f43;
    --danger: #ea5455;
    --ink: #22292f;
    --body: #6e6b7b;
    --muted: #b8c2cc;
    --line: rgba(34, 41, 47, 0.125);
    --line-solid: #ebe9f1;
    --bg: #f8f8f8;
    --surface: #ffffff;
    --r-card: 0.428rem;
    --r-btn: 0.358rem;
    --shadow-card: 0 4px 24px 0 rgba(34, 41, 47, 0.1);
    --shadow-soft: 0 2px 15px 0 rgba(34, 41, 47, 0.05);
    --font: "PingFang SC", HarmonyOS_Regular, "Helvetica Neue", "Microsoft YaHei", sans-serif;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font);
    font-size: 16px;
    line-height: 1.45;
    color: var(--body);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
}

a {
    color: var(--primary);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

::selection {
    background: var(--primary);
    color: #fff;
}

/* ---------- 顶部导航（官网式：白底 + 当前项圆角高亮） ---------- */
.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: saturate(180%) blur(12px);
    border-bottom: 1px solid var(--line);
}

.site-header .inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    height: 68px;
    display: flex;
    align-items: center;
    gap: 20px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 0 0 auto;
    color: var(--ink);
    font-weight: 600;
    font-size: 17px;
}

.brand:hover {
    text-decoration: none;
}

.brand img {
    width: 34px;
    height: 34px;
    border-radius: 8px;
}

.nav-pills {
    display: flex;
    align-items: center;
    gap: 2px;
    overflow-x: auto;
    scrollbar-width: none;
    flex: 1 1 auto;
}

.nav-pills::-webkit-scrollbar {
    display: none;
}

.nav-pills a {
    flex: 0 0 auto;
    padding: 8px 13px;
    border-radius: var(--r-btn);
    font-size: 14px;
    color: var(--body);
    white-space: nowrap;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.nav-pills a:hover {
    background: var(--primary-soft);
    color: var(--primary-dark);
    text-decoration: none;
}

.nav-pills a.is-current {
    background: var(--primary);
    color: #fff;
}

.header-cta {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 9px 18px;
    border-radius: var(--r-btn);
    background: var(--primary);
    color: #fff;
    font-size: 14px;
    font-weight: 500;
    border: 0;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.header-cta:hover {
    background: var(--primary-dark);
    text-decoration: none;
}

/* ---------- Hero（官网式深色 banner） ---------- */
.hero {
    position: relative;
    overflow: hidden;
    color: #fff;
    background:
        radial-gradient(1100px 420px at 78% -10%, rgba(55, 181, 193, 0.34), transparent 62%),
        linear-gradient(118deg, #16242a 0%, #101a1e 52%, #0b1215 100%);
}

.hero::after {
    content: "";
    position: absolute;
    inset: 0;
    opacity: 0.35;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)' opacity='0.5'/%3E%3C/svg%3E");
    pointer-events: none;
}

.hero .inner {
    position: relative;
    z-index: 1;
    max-width: 1200px;
    margin: 0 auto;
    padding: 72px 20px 76px;
}

.hero h1 {
    font-size: 2.5rem;
    font-weight: 700;
    letter-spacing: -0.01em;
    line-height: 1.2;
}

.hero .lede {
    margin-top: 16px;
    max-width: 62ch;
    font-size: 1.05rem;
    line-height: 1.75;
    color: rgba(255, 255, 255, 0.72);
}

/* 优惠码 pill：玻璃质感，码用等宽字体 */
.coupon-pill {
    margin-top: 28px;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px 10px 16px;
    border-radius: var(--r-btn);
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.16);
}

.coupon-pill .label {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.62);
}

.coupon-pill .code {
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 19px;
    font-weight: 600;
    letter-spacing: 0.14em;
    color: #fff;
}

.coupon-pill button {
    padding: 6px 14px;
    border: 0;
    border-radius: calc(var(--r-btn) - 1px);
    background: var(--primary);
    color: #fff;
    font-size: 13px;
    font-weight: 500;
    font-family: inherit;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.coupon-pill button:hover {
    background: var(--primary-dark);
}

.hero-actions {
    margin-top: 26px;
    display: flex;
    align-items: center;
    gap: 18px;
    flex-wrap: wrap;
}

/* 购买/转化类按钮统一用官网 .btn-success 绿：
   常态 #28c76f、悬停 #22a75d、按下 #1f9d57（均为官网 CSS 原值）。
   次要按钮仍是官网 .btn-primary 青 #37b5c1。 */
.btn-buy-lg {
    display: inline-flex;
    text-decoration: none;
    align-items: center;
    gap: 8px;
    height: 52px;
    padding: 0 30px;
    border: 0;
    border-radius: var(--r-btn);
    background: var(--success);
    color: #fff;
    font-family: inherit;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 8px 20px -8px rgba(40, 199, 111, 0.75);
    transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.btn-buy-lg:hover {
    background: #22a75d;
    transform: translateY(-1px);
    box-shadow: 0 12px 26px -10px rgba(40, 199, 111, 0.85);
}

.btn-buy-lg:active {
    background: #1f9d57;
}

.hero-note {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.5);
}

/* ---------- 主体容器 ---------- */
.page {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ---------- 分区标题（官网式：左侧 teal 竖线 + 深色标题） ---------- */
.section-head {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.section-head h2 {
    position: relative;
    padding-left: 15px;
    font-size: 1.6rem;
    font-weight: 600;
    color: var(--ink);
    line-height: 1.25;
}

.section-head h2::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.22em;
    bottom: 0.22em;
    width: 3px;
    border-radius: 2px;
    background: var(--primary);
}

.code-badge {
    padding: 2px 8px;
    border-radius: var(--r-btn);
    background: var(--primary-soft);
    color: var(--primary-dark);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.08em;
}

.section-sub {
    margin: 8px 0 0;
    padding-left: 15px;
    font-size: 0.92rem;
    color: var(--body);
}

.product {
    padding: 52px 0 8px;
    scroll-margin-top: 84px;
}

.product + .product {
    border-top: 1px solid var(--line);
}

/* ---------- 卡片（官网 .card：白底、无边框、轻阴影） ---------- */
.card {
    background: var(--surface);
    border-radius: var(--r-card);
    box-shadow: var(--shadow-soft);
    transition: box-shadow 0.3s ease;
}

.card:hover {
    box-shadow: var(--shadow-card);
}

.card-head {
    padding: 14px 20px;
    background: rgba(34, 41, 47, 0.03);
    border-bottom: 1px solid var(--line);
    border-radius: var(--r-card) var(--r-card) 0 0;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--ink);
    display: flex;
    align-items: center;
    gap: 8px;
}

.card-head i {
    color: var(--primary);
    font-size: 13px;
}

.card-body {
    padding: 18px 20px 20px;
    font-size: 0.94rem;
    line-height: 1.8;
}

.card-body p + p {
    margin-top: 10px;
}

.card-body strong {
    color: var(--ink);
    font-weight: 600;
}

.grid-2 {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
    margin-top: 24px;
}

/* 四张内容卡等高：内容少的那张也撑满整行，避免留一块空 */
.grid-2 > .card {
    display: flex;
    flex-direction: column;
}

.grid-2 > .card .card-body {
    flex: 1 1 auto;
}

/* ---------- 卖点列表 ---------- */
.feature-list {
    list-style: none;
}

.feature-list li {
    position: relative;
    padding: 6px 0 6px 22px;
    font-size: 0.92rem;
    line-height: 1.7;
}

.feature-list li::before {
    content: "\f00c";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    position: absolute;
    left: 0;
    top: 8px;
    font-size: 11px;
    color: var(--success);
}

/* ---------- 场景标签 ---------- */
.tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tags span {
    padding: 5px 11px;
    border-radius: var(--r-btn);
    background: #f6f7f9;
    color: var(--body);
    font-size: 0.82rem;
}

/* ---------- 套餐卡（官网式：价格 + 仅剩 + 配置行 + 双按钮） ---------- */
.plans {
    margin-top: 22px;
}

.plans-title {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 14px;
}

.plans-title h3 {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--ink);
}

.plans-title span {
    font-size: 0.82rem;
    color: var(--muted);
}

.plan-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
}

.plan {
    position: relative;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--r-card);
    padding: 18px 18px 16px;
    transition: box-shadow 0.3s ease, border-color 0.3s ease, transform 0.3s ease;
}

.plan:hover {
    border-color: rgba(55, 181, 193, 0.5);
    box-shadow: var(--shadow-card);
    transform: translateY(-2px);
}

.plan-top {
    display: flex;
    align-items: center;
    gap: 10px;
}

.plan-chip {
    flex: 0 0 auto;
    width: 34px;
    height: 34px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 700;
    color: #fff;
    background: var(--primary);
}

.plan-chip.amd {
    background: #b90007;
}

.plan-chip.intel {
    background: #0068b5;
}

.plan-name {
    font-size: 1rem;
    font-weight: 600;
    color: var(--ink);
    line-height: 1.3;
}

.plan-meta {
    font-size: 0.78rem;
    color: var(--muted);
}

.plan-stock {
    position: absolute;
    top: 16px;
    right: 16px;
    padding: 2px 7px;
    border-radius: 4px;
    background: rgba(234, 84, 85, 0.1);
    color: var(--danger);
    font-size: 0.72rem;
    font-weight: 600;
}

/* 价格行：原价灰小字 + 橙色大数字（官网口径） */
.plan-price {
    margin: 14px 0 10px;
    display: flex;
    align-items: baseline;
    gap: 6px;
    flex-wrap: wrap;
}

.plan-price .label {
    font-size: 0.78rem;
    color: var(--muted);
}

.plan-price .num {
    font-size: 1.7rem;
    font-weight: 700;
    color: var(--warning);
    line-height: 1;
}

.plan-price .unit {
    font-size: 0.78rem;
    color: var(--muted);
}

/* 折后价：teal 浅底条，和原价区分开 */
.plan-final {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 8px;
    padding: 7px 10px;
    border-radius: 6px;
    background: var(--primary-soft);
    font-size: 0.78rem;
    color: var(--primary-dark);
}

.plan-final b {
    font-size: 1.02rem;
    font-weight: 700;
}

/* 配置行（官网套餐卡同款：图标 + 灰 label + 深色值） */
.plan-specs {
    list-style: none;
    margin: 12px 0 14px;
}

.plan-specs li {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 0;
    font-size: 0.86rem;
    border-bottom: 1px dashed #f1f0f4;
}

.plan-specs li:last-child {
    border-bottom: 0;
}

.plan-specs i {
    width: 14px;
    font-size: 12px;
    color: var(--muted);
    text-align: center;
}

.plan-specs .k {
    color: var(--body);
}

.plan-specs .v {
    margin-left: auto;
    color: var(--ink);
    font-weight: 500;
    text-align: right;
}

.plan-actions {
    display: flex;
    gap: 8px;
}

.btn {
    display: inline-flex;
    text-decoration: none;
    align-items: center;
    justify-content: center;
    gap: 6px;
    height: 38px;
    padding: 0 16px;
    border-radius: var(--r-btn);
    border: 1px solid transparent;
    font-family: inherit;
    font-size: 0.88rem;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

/* 「前往购买」用官网 .btn-success 绿色：常态 #28c76f、悬停 #22a75d、按下 #1f9d57，
   三档都是官网 chunk-common.css 里的原值。
   注意：/rcs 页上那个「前往购买」官网自己用的是 .btn-warning 橙色 #ff9f43，
   这里按站内要求改成绿色，颜色值仍取自官网调色板。 */
.btn-buy {
    flex: 1 1 auto;
    background: var(--success);
    color: #fff;
}

.btn-buy:hover {
    background: #22a75d;
}

.btn-buy:active {
    background: #1f9d57;
}

.btn-ghost {
    flex: 0 0 auto;
    background: #fff;
    border-color: var(--line);
    color: var(--body);
}

.btn-ghost:hover {
    border-color: var(--primary);
    color: var(--primary-dark);
}

/* ---------- 选购建议（teal 左边框浅底条） ---------- */
.advice {
    margin-top: 22px;
    padding: 16px 20px;
    border-left: 3px solid var(--primary);
    border-radius: 0 var(--r-card) var(--r-card) 0;
    background: rgba(55, 181, 193, 0.055);
    font-size: 0.92rem;
    line-height: 1.8;
    color: var(--body);
}

.advice b {
    display: block;
    margin-bottom: 4px;
    font-size: 0.86rem;
    color: var(--primary-dark);
    letter-spacing: 0.02em;
}

.advice strong {
    color: var(--ink);
}

/* ---------- 表格（官网 .table：uppercase 表头 + 细线） ---------- */
.table-wrap {
    overflow-x: auto;
    margin-top: 12px;
}

.table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}

.table thead th {
    padding: 10px 12px;
    text-align: left;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 0.76rem;
    font-weight: 600;
    color: var(--body);
    border-bottom: 2px solid var(--line-solid);
    white-space: nowrap;
}

.table td {
    padding: 10px 12px;
    border-top: 1px solid var(--line-solid);
    color: var(--ink);
}

.table tbody tr:first-child td {
    border-top: 0;
}

.table tbody tr:hover td {
    background: #fbfcfd;
}

.table .num {
    text-align: right;
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
}

.table .spec {
    color: var(--body);
    font-size: 0.86rem;
}

.table .disc {
    color: var(--primary-dark);
    font-weight: 600;
}

/* ---------- 尾部 CTA（深色块，和 hero 呼应） ---------- */
.final-cta {
    margin: 64px 0 0;
    padding: 48px 40px;
    border-radius: var(--r-card);
    color: #fff;
    text-align: center;
    background:
        radial-gradient(720px 300px at 50% -20%, rgba(55, 181, 193, 0.4), transparent 65%),
        linear-gradient(118deg, #16242a 0%, #101a1e 100%);
}

.final-cta h2 {
    font-size: 1.6rem;
    font-weight: 600;
}

.final-cta p {
    margin: 12px auto 0;
    max-width: 60ch;
    font-size: 0.94rem;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.66);
}

.final-cta .btn-buy-lg {
    margin-top: 24px;
}

/* ---------- 页脚 ---------- */
footer {
    margin-top: 56px;
    border-top: 1px solid var(--line);
    background: var(--surface);
}

footer .inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 28px 20px 36px;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 18px;
    font-size: 0.88rem;
}

.footer-links a {
    color: var(--body);
}

.footer-links a:hover {
    color: var(--primary-dark);
}

.footer-note {
    margin-top: 16px;
    display: grid;
    gap: 6px;
    font-size: 0.78rem;
    line-height: 1.7;
    color: var(--muted);
}

/* ---------- 响应式 ---------- */
@media (max-width: 991px) {
    .grid-2 {
        grid-template-columns: 1fr;
    }

    .plan-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .hero h1 {
        font-size: 2rem;
    }

    .site-header .inner {
        height: 60px;
        gap: 12px;
    }

    .brand span {
        display: none;
    }
}

@media (max-width: 640px) {
    .plan-grid {
        grid-template-columns: 1fr;
    }

    .hero .inner {
        padding: 44px 16px 48px;
    }

    .hero h1 {
        font-size: 1.65rem;
    }

    .hero .lede {
        font-size: 0.94rem;
    }

    .coupon-pill {
        display: flex;
        width: 100%;
        justify-content: space-between;
        gap: 8px;
    }

    .coupon-pill .code {
        font-size: 17px;
        letter-spacing: 0.1em;
    }

    .page {
        padding: 0 16px;
    }

    .product {
        padding-top: 40px;
    }

    .section-head h2 {
        font-size: 1.32rem;
    }

    .final-cta {
        padding: 36px 20px;
    }

    .final-cta h2 {
        font-size: 1.3rem;
    }

    .btn-buy-lg {
        width: 100%;
        justify-content: center;
    }
}
