/* ============================================
 * Rainyun Cart Theme — 全局样式
 * 由两个 TPL 文件共用,部署到 /public/themes/cart/rainyun/assets/css/
 * ============================================ */

:root {
    --ry-primary: #6C63FF;
    --ry-primary-dark: #5A52D5;
    --ry-primary-light: #8B85FF;
    --ry-primary-soft: rgba(108, 99, 255, 0.08);
    --ry-primary-softer: rgba(108, 99, 255, 0.04);
    --ry-bg: #F8FAFC;
    --ry-card: #FFFFFF;
    --ry-text: #0F172A;
    --ry-text-2: #475569;
    --ry-text-3: #94A3B8;
    --ry-border: #E2E8F0;
    --ry-border-soft: #F1F5F9;
    --ry-success: #10B981;
    --ry-warning: #F59E0B;
    --ry-danger: #EF4444;
    --ry-radius: 16px;
    --ry-radius-sm: 10px;
    --ry-radius-lg: 24px;
    --ry-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    --ry-shadow-hover: 0 12px 32px rgba(108, 99, 255, 0.12);
    --ry-ease: cubic-bezier(0.4, 0, 0.2, 1);
}

/* FontAwesome 资源缺失时的 emoji fallback */
.fa-microchip::before { content: '⚡'; font-family: inherit; font-style: normal; }
.fa-memory::before { content: '💾'; font-family: inherit; font-style: normal; }
.fa-hard-drive::before { content: '💿'; font-family: inherit; font-style: normal; }
.fa-network-wired::before { content: '🌐'; font-family: inherit; font-style: normal; }
.fa-cloud::before { content: '☁️'; font-family: inherit; font-style: normal; }
.fa-server::before { content: '🖥️'; font-family: inherit; font-style: normal; }
.fa-shield-halved::before { content: '🛡️'; font-family: inherit; font-style: normal; }
.fa-bolt::before { content: '⚡'; font-family: inherit; font-style: normal; }
.fa-globe::before { content: '🌍'; font-family: inherit; font-style: normal; }
.fa-rocket::before { content: '🚀'; font-family: inherit; font-style: normal; }
.fa-circle-info::before { content: 'ℹ️'; font-family: inherit; font-style: normal; }
.fa-magnifying-glass::before { content: '🔍'; font-family: inherit; font-style: normal; }
.fa-bullhorn::before { content: '📣'; font-family: inherit; font-style: normal; }
.fa-gauge-high::before { content: '⏱️'; font-family: inherit; font-style: normal; }
.fa-headset::before { content: '🎧'; font-family: inherit; font-style: normal; }
.fa-fire::before { content: '🔥'; font-family: inherit; font-style: normal; }
.fa-tag::before { content: '🏷️'; font-family: inherit; font-style: normal; }
.fa-cart-shopping::before { content: '🛒'; font-family: inherit; font-style: normal; }
.fa-grip::before { content: '▦'; font-family: inherit; font-style: normal; }
.fa-grip-vertical::before { content: '▤'; font-family: inherit; font-style: normal; }

/* ============================================
 * 公告条
 * ============================================ */
.ry-notice {
    background: linear-gradient(90deg, var(--ry-primary-soft) 0%, rgba(108, 99, 255, 0.02) 100%);
    border: 1px solid var(--ry-border);
    border-radius: var(--ry-radius);
    padding: 0.875rem 1.5rem;
    margin: 1.5rem 0;
    display: flex;
    align-items: center;
    gap: 0.875rem;
    font-size: 0.875rem;
    color: var(--ry-text-2);
}
.ry-notice__icon {
    width: 28px; height: 28px;
    border-radius: 8px;
    background: var(--ry-primary);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 0.8125rem;
}
.ry-notice__text { flex: 1; line-height: 1.5; }
.ry-notice__text b { color: var(--ry-text); font-weight: 600; }
.ry-notice__time {
    color: var(--ry-text-3);
    font-size: 0.8125rem;
    flex-shrink: 0;
}

/* ============================================
 * Hero 主视觉
 * ============================================ */
.ry-hero {
    background: linear-gradient(180deg, var(--ry-bg) 0%, #fff 100%);
    padding: 0.5rem 0 0;
    position: relative;
    overflow: hidden;
}
.ry-hero::before {
    content: '';
    position: absolute;
    top: -100px; right: -100px;
    width: 480px; height: 480px;
    background: radial-gradient(circle, var(--ry-primary-soft) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
}
.ry-hero__inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1.5rem;
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 4rem;
    align-items: center;
    position: relative;
    z-index: 1;
}
.ry-hero__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.375rem 0.875rem;
    background: var(--ry-primary-soft);
    color: var(--ry-primary);
    border-radius: 999px;
    font-size: 0.8125rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
}
.ry-hero__eyebrow::before {
    content: '';
    width: 6px; height: 6px;
    border-radius: 50%;
    background: var(--ry-primary);
    box-shadow: 0 0 0 4px var(--ry-primary-soft);
}
.ry-hero__title {
    font-size: clamp(2.25rem, 5vw, 3.5rem);
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.02em;
    margin: 0 0 1.25rem;
    color: var(--ry-text);
}
.ry-hero__subtitle {
    font-size: 1.125rem;
    line-height: 1.6;
    color: var(--ry-text-2);
    margin: 0 0 1.75rem;
    max-width: 540px;
}
.ry-hero__points {
    display: flex;
    gap: 1.5rem;
    margin: 0 0 2rem;
    flex-wrap: wrap;
}
.ry-hero__point {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9375rem;
    color: var(--ry-text-2);
}
.ry-hero__point::before {
    content: '✓';
    width: 18px; height: 18px;
    background: rgba(16, 185, 129, 0.12);
    color: var(--ry-success);
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.6875rem;
    font-weight: 700;
    flex-shrink: 0;
}
.ry-hero__actions {
    display: flex;
    gap: 0.75rem;
    align-items: center;
    flex-wrap: wrap;
}
.ry-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.875rem 1.75rem;
    border-radius: 12px;
    font-size: 0.9375rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s var(--ry-ease);
    border: 1px solid transparent;
    cursor: pointer;
    line-height: 1;
}
.ry-btn--primary {
    background: var(--ry-primary);
    color: #fff;
    box-shadow: 0 4px 14px rgba(108, 99, 255, 0.3);
}
.ry-btn--primary:hover {
    background: var(--ry-primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(108, 99, 255, 0.4);
    color: #fff;
}
.ry-btn--ghost {
    background: #fff;
    color: var(--ry-text);
    border-color: var(--ry-border);
}
.ry-btn--ghost:hover {
    border-color: var(--ry-primary);
    color: var(--ry-primary);
    transform: translateY(-2px);
}

/* Hero 右侧插画 — 用 dingtu.png */
.ry-hero__visual {
    position: relative;
    height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.ry-hero__visual::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(var(--ry-border-soft) 1px, transparent 1px),
        linear-gradient(90deg, var(--ry-border-soft) 1px, transparent 1px);
    background-size: 32px 32px;
    -webkit-mask-image: radial-gradient(circle at center, #000 30%, transparent 70%);
    mask-image: radial-gradient(circle at center, #000 30%, transparent 70%);
    opacity: 0.6;
    z-index: 0;
}
.ry-hero__img {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 520px;
    height: auto;
    display: block;
    filter: drop-shadow(0 24px 48px rgba(108, 99, 255, 0.18));
    animation: ry-float 6s ease-in-out infinite;
}
@keyframes ry-float {
    0%, 100% { transform: translateY(0); }
    50%      { transform: translateY(-12px); }
}

/* ============================================
 * 通用区段容器
 * ============================================ */
.ry-section {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0.5rem 1.5rem 4rem;
}
.ry-section__head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 2rem;
    margin-bottom: 2.5rem;
    flex-wrap: wrap;
}
.ry-section__head--center {
    justify-content: center;
    text-align: center;
}
.ry-section__title {
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--ry-text);
    margin: 0 0 0.5rem;
}
.ry-section__subtitle {
    font-size: 0.9375rem;
    color: var(--ry-text-3);
    margin: 0;
    line-height: 1.5;
}
.ry-section__action {
    color: var(--ry-primary);
    font-size: 0.875rem;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    transition: gap 0.3s var(--ry-ease);
}
.ry-section__action:hover { gap: 0.5rem; color: var(--ry-primary-dark); }
.ry-section__title-icon {
    display: inline-block;
    vertical-align: -0.25em;
    color: var(--ry-primary);
    margin-right: 0.5rem;
}

/* ============================================
 * 分类卡片(4列图标卡片,默认全部展开)
 * ============================================ */
.ry-cat-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.75rem;
}
.ry-cat-card {
    background: var(--ry-card);
    border: 1px solid var(--ry-border);
    border-radius: var(--ry-radius);
    padding: 1rem;
    text-decoration: none;
    color: inherit;
    transition: all 0.3s var(--ry-ease);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    position: relative;
    overflow: hidden;
}
.ry-cat-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 4px; height: 100%;
    background: var(--ry-primary);
    transform: scaleY(0);
    transform-origin: top;
    transition: transform 0.3s var(--ry-ease);
}
.ry-cat-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--ry-shadow-hover);
    border-color: var(--ry-primary);
    color: inherit;
}
.ry-cat-card:hover::before,
.ry-cat-card.is-active::before { transform: scaleY(1); }
.ry-cat-card.is-active {
    border-color: var(--ry-primary);
    box-shadow: 0 8px 24px rgba(108, 99, 255, 0.15);
    background: linear-gradient(135deg, rgba(108, 99, 255, 0.04) 0%, #fff 100%);
}
.ry-cat-card__icon {
    width: 40px; height: 40px;
    border-radius: 14px;
    background: var(--ry-primary-soft);
    color: var(--ry-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.125rem;
    flex-shrink: 0;
    transition: all 0.3s var(--ry-ease);
}
.ry-cat-card:hover .ry-cat-card__icon {
    background: var(--ry-primary);
    color: #fff;
    transform: scale(1.05) rotate(-5deg);
}
.ry-cat-card__body { flex: 1; min-width: 0; }
.ry-cat-card__name {
    font-size: 1.0625rem;
    font-weight: 700;
    color: var(--ry-text);
    margin: 0 0 0.25rem;
    line-height: 1.4;
}
.ry-cat-card__desc {
    font-size: 0.8125rem;
    color: var(--ry-text-3);
    margin: 0;
    line-height: 1.5;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}
.ry-cat-card__placeholder {
    color: var(--ry-text-3);
    opacity: 0.6;
}

/* ============================================
 * 区域 Tab
 * ============================================ */
.ry-tabs-wrap {
    background: #fff;
    border: 1px solid var(--ry-border);
    border-radius: var(--ry-radius);
    padding: 0.75rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.375rem;
    margin-bottom: 1.5rem;
}
.ry-tab {
    padding: 0.5rem 1rem;
    border-radius: 10px;
    color: var(--ry-text-2);
    font-size: 0.875rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.25s var(--ry-ease);
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    background: #FAFBFF;
    border: 1px solid var(--ry-border);
}
.ry-tab:hover {
    background: var(--ry-primary-softer);
    color: var(--ry-primary);
    border-color: var(--ry-primary-light);
}
.ry-tab:hover {
    background: var(--ry-primary-softer);
    color: var(--ry-primary);
}
.ry-tab.is-active {
    background: var(--ry-primary);
    color: #fff;
    border-color: var(--ry-primary);
    box-shadow: 0 4px 12px rgba(108, 99, 255, 0.25);
}
.ry-tab i { font-size: 0.875rem; }

/* ============================================
 * 商品组介绍(模板驱动 — 4 tag + 4 参数)
 * 位置:区域 Tab 下方,产品列表上方
 * tagline 字段按 \n 拆行:
 *   第 1-4 行:4 个彩色 tag
 *   第 5-8 行:4 个参数
 * ============================================ */
.ry-group-banner {
    margin: 0 0 2rem;
}
.ry-group-banner__card {
    background: linear-gradient(135deg, #FAFBFF 0%, #F8FAFC 100%);
    border: 1px solid var(--ry-border);
    border-radius: var(--ry-radius);
    padding: 2rem;
    display: flex;
    align-items: center;
    gap: 2rem;
    box-shadow: var(--ry-shadow);
    position: relative;
    overflow: hidden;
}
.ry-group-banner__card::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 60%;
    height: 200%;
    background-image:
        radial-gradient(circle, rgba(108, 99, 255, 0.06) 1.5px, transparent 1.5px);
    background-size: 14px 14px;
    pointer-events: none;
    opacity: 0.7;
}
.ry-group-banner__icon {
    flex: 0 0 140px;
    width: 140px;
    height: 140px;
    background: linear-gradient(135deg, #EEF2FF 0%, #E0E7FF 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    color: #6366F1;
    font-size: 3rem;
    z-index: 1;
    box-shadow: 0 8px 24px rgba(99, 102, 241, 0.12);
    flex-shrink: 0;
}
.ry-group-banner__icon-check {
    position: absolute;
    bottom: 6px;
    right: 6px;
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, #6366F1 0%, #4F46E5 100%);
    border-radius: 50%;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 4px solid #fff;
    font-size: 0.7rem;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}
.ry-group-banner__content {
    flex: 1;
    min-width: 0;
    z-index: 1;
}
.ry-group-banner__title {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--ry-text);
    margin: 0 0 1rem;
    letter-spacing: -0.015em;
    line-height: 1.3;
}
.ry-group-banner__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.25rem;
}
.ry-group-banner__tag {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.4rem 0.875rem;
    border-radius: 8px;
    font-size: 0.8125rem;
    font-weight: 500;
    white-space: nowrap;
}
.ry-group-banner__tag i {
    font-size: 0.75rem;
}
.ry-group-banner__params {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
}
.ry-group-banner__param {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.4rem 0.875rem;
    border-radius: 8px;
    font-size: 0.8125rem;
    font-weight: 500;
    background: #FAFBFF;
    border: 1px solid var(--ry-border);
    white-space: nowrap;
}
.ry-group-banner__param i {
    color: var(--ry-primary);
    font-size: 0.875rem;
    min-width: 16px;
}
.ry-group-banner__param span {
    font-weight: 500;
    color: var(--ry-text);
}
@media (max-width: 768px) {
    .ry-group-banner__card {
        flex-direction: column;
        text-align: center;
        padding: 1.5rem;
        gap: 0.75rem;
    }
    .ry-group-banner__icon {
        flex: 0 0 110px;
        width: 110px;
        height: 110px;
        font-size: 2.5rem;
    }
    .ry-group-banner__title { font-size: 1.125rem; }
    .ry-group-banner__tags { justify-content: center; }
    .ry-group-banner__params { justify-content: center; gap: 0.75rem 1rem; }
}

/* ============================================
 * 产品卡片(现代 SaaS 风格)
 * ============================================ */
.ry-product-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.5rem;
    margin-bottom: 3rem;
}
.ry-product-card {
    background: var(--ry-card);
    border: 1px solid var(--ry-border);
    border-radius: var(--ry-radius);
    overflow: hidden;
    transition: all 0.3s var(--ry-ease);
    display: flex;
    flex-direction: column;
    position: relative;
}
.ry-product-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--ry-shadow-hover);
    border-color: var(--ry-primary);
}
.ry-product-card.is-sold-out { opacity: 0.85; }
.ry-product-card.is-sold-out:hover { transform: translateY(-2px); }

.ry-product-card__head {
    padding: 1.5rem 1.5rem 1rem;
    border-bottom: 1px solid var(--ry-border-soft);
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 0.75rem;
    min-height: 80px;
}
.ry-product-card__title {
    font-size: 1.0625rem;
    font-weight: 700;
    color: var(--ry-text);
    margin: 0;
    line-height: 1.4;
    flex: 1;
}
.ry-product-card__body {
    padding: 1.25rem 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}
.ry-product-card__price {
    display: flex;
    align-items: baseline;
    gap: 0.25rem;
    margin-bottom: 0.5rem;
    flex-wrap: wrap;
}
.ry-product-card__price-currency {
    font-size: 0.9375rem;
    color: var(--ry-primary);
    font-weight: 600;
}
.ry-product-card__price-num {
    font-size: 2rem;
    font-weight: 800;
    color: var(--ry-primary);
    line-height: 1;
    letter-spacing: -0.02em;
}
.ry-product-card__price-cycle {
    font-size: 0.8125rem;
    color: var(--ry-text-3);
    margin-left: 0.125rem;
}
.ry-product-card__price-original {
    font-size: 0.8125rem;
    color: var(--ry-text-3);
    text-decoration: line-through;
    margin-left: 0.5rem;
}
.ry-product-card__desc {
    color: var(--ry-text-2);
    font-size: 0.8125rem;
    line-height: 1.5;
    margin: 0 0 1rem;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}
.ry-product-card__config {
    margin-top: 0.5rem;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.5rem 1rem;
}
.ry-product-card__config-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8125rem;
    color: var(--ry-text-2);
    overflow: hidden;
}
.ry-product-card__config-item i {
    width: 14px;
    color: var(--ry-primary);
    flex-shrink: 0;
    font-size: 0.8125rem;
    text-align: center;
}
.ry-product-card__config-item span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.ry-product-card__config-item b {
    color: var(--ry-text);
    font-weight: 600;
}
.ry-product-card__stock {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.25rem 0.625rem;
    border-radius: 6px;
    background: rgba(245, 158, 11, 0.08);
    color: var(--ry-warning);
    font-size: 0.75rem;
    font-weight: 600;
    flex-shrink: 0;
    white-space: nowrap;
}
.ry-product-card__stock--ok { background: rgba(16, 185, 129, 0.08); color: var(--ry-success); }
.ry-product-card__stock--out { background: rgba(239, 68, 68, 0.08); color: var(--ry-danger); }
.ry-product-card__tags {
    display: flex;
    gap: 0.375rem;
    flex-wrap: wrap;
    margin-top: 1rem;
}
.ry-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.625rem;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 600;
    line-height: 1.4;
}
.ry-badge--hot { background: linear-gradient(135deg, #FF6B6B 0%, #FF8E53 100%); color: #fff; }
.ry-badge--new { background: linear-gradient(135deg, var(--ry-primary) 0%, var(--ry-primary-light) 100%); color: #fff; }
.ry-badge--recommend { background: rgba(108, 99, 255, 0.08); color: var(--ry-primary); }
.ry-badge--success { background: rgba(16, 185, 129, 0.08); color: var(--ry-success); }
.ry-product-card__foot { padding: 0.5rem 1.5rem 1.5rem; }
.ry-product-card__buy {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
    padding: 0.875rem;
    background: var(--ry-primary);
    color: #fff;
    border-radius: 12px;
    font-size: 0.9375rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s var(--ry-ease);
    border: none;
    cursor: pointer;
    line-height: 1;
}
.ry-product-card__buy:hover {
    background: var(--ry-primary-dark);
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(108, 99, 255, 0.3);
    color: #fff;
}
.ry-product-card.is-sold-out .ry-product-card__buy {
    background: var(--ry-border-soft);
    color: var(--ry-text-3);
    cursor: not-allowed;
    pointer-events: none;
    box-shadow: none;
}
.ry-product-card.is-sold-out .ry-product-card__buy:hover { transform: none; }

/* ============================================
 * 品牌优势
 * ============================================ */
.ry-advantages {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.75rem;
}
.ry-advantage {
    background: var(--ry-card);
    border: 1px solid var(--ry-border);
    border-radius: var(--ry-radius);
    padding: 2rem 1.5rem;
    text-align: center;
    transition: all 0.3s var(--ry-ease);
}
.ry-advantage:hover {
    transform: translateY(-4px);
    box-shadow: var(--ry-shadow-hover);
    border-color: var(--ry-primary);
}
.ry-advantage__icon {
    width: 40px; height: 40px;
    margin: 0 auto 1rem;
    border-radius: 16px;
    background: var(--ry-primary-soft);
    color: var(--ry-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.125rem;
}
.ry-advantage__title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--ry-text);
    margin: 0 0 0.5rem;
}
.ry-advantage__desc {
    font-size: 0.8125rem;
    color: var(--ry-text-2);
    line-height: 1.6;
    margin: 0;
}

/* ============================================
 * 数据统计(渐变背景)
 * ============================================ */
.ry-stats {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1.5rem;
    background: linear-gradient(135deg, var(--ry-primary) 0%, var(--ry-primary-light) 100%);
    border-radius: var(--ry-radius-lg);
    padding: 3rem 2rem;
    color: #fff;
    position: relative;
    overflow: hidden;
}
.ry-stats::before {
    content: '';
    position: absolute;
    top: -50%; right: -10%;
    width: 400px; height: 400px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    pointer-events: none;
}
.ry-stats::after {
    content: '';
    position: absolute;
    bottom: -30%; left: -10%;
    width: 300px; height: 300px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.08) 0%, transparent 70%);
    pointer-events: none;
}
.ry-stat {
    text-align: center;
    position: relative;
    z-index: 1;
}
.ry-stat__num {
    font-size: 2.5rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1;
    margin-bottom: 0.5rem;
}
.ry-stat__label {
    font-size: 0.875rem;
    opacity: 0.9;
}

/* ============================================
 * FAQ 折叠面板
 * ============================================ */
.ry-faq {
    max-width: 800px;
    margin: 0 auto;
}
.ry-faq-item {
    background: var(--ry-card);
    border: 1px solid var(--ry-border);
    border-radius: var(--ry-radius);
    margin-bottom: 0.75rem;
    overflow: hidden;
    transition: all 0.3s var(--ry-ease);
}
.ry-faq-item:hover { border-color: var(--ry-primary); }
.ry-faq-item[open] {
    border-color: var(--ry-primary);
    box-shadow: 0 4px 16px rgba(108, 99, 255, 0.08);
}
.ry-faq-item summary {
    padding: 1.25rem 1.5rem;
    cursor: pointer;
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--ry-text);
    display: flex;
    justify-content: space-between;
    align-items: center;
    list-style: none;
    user-select: none;
    gap: 1rem;
}
.ry-faq-item summary::-webkit-details-marker { display: none; }
.ry-faq-item summary::after {
    content: '+';
    width: 28px; height: 28px;
    border-radius: 50%;
    background: var(--ry-primary-soft);
    color: var(--ry-primary);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.125rem;
    font-weight: 400;
    flex-shrink: 0;
    transition: all 0.3s var(--ry-ease);
}
.ry-faq-item[open] summary::after {
    transform: rotate(45deg);
    background: var(--ry-primary);
    color: #fff;
}
.ry-faq-item__body {
    padding: 0 1.5rem 1.5rem;
    color: var(--ry-text-2);
    font-size: 0.875rem;
    line-height: 1.7;
}

/* ============================================
 * 分页
 * ============================================ */
.ry-pagination {
    display: flex;
    justify-content: center;
    gap: 0.375rem;
    margin: 2rem 0;
    flex-wrap: wrap;
}
.ry-pagination a,
.ry-pagination span {
    padding: 0.5rem 0.875rem;
    border-radius: 8px;
    border: 1px solid var(--ry-border);
    background: #fff;
    color: var(--ry-text-2);
    font-size: 0.8125rem;
    text-decoration: none;
    transition: all 0.25s var(--ry-ease);
    min-width: 36px;
    text-align: center;
}
.ry-pagination a:hover {
    border-color: var(--ry-primary);
    color: var(--ry-primary);
}
.ry-pagination .active span,
.ry-pagination span.active {
    background: var(--ry-primary);
    color: #fff;
    border-color: var(--ry-primary);
}

/* ============================================
 * 空状态
 * ============================================ */
.ry-empty {
    padding: 4rem 1rem;
    text-align: center;
    color: var(--ry-text-3);
}
.ry-empty__icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}
.ry-empty__text {
    font-size: 0.9375rem;
    margin: 0;
}

/* ============================================
 * 响应式
 * ============================================ */
@media (max-width: 1024px) {
    .ry-hero { padding: 3.5rem 0 1rem; }
    .ry-hero__inner { grid-template-columns: 1fr; gap: 2.5rem; }
    .ry-hero__visual { height: 280px; }
    .ry-cat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .ry-product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .ry-advantages,
    .ry-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
    .ry-hero { padding: 2.5rem 0 0.5rem; }
    .ry-section { padding: 1rem 1rem 2.5rem; }
    .ry-cat-grid { grid-template-columns: 1fr; }
    .ry-notice { flex-wrap: wrap; padding: 0.75rem 1rem; font-size: 0.8125rem; }
    .ry-notice__time { flex-basis: 100%; padding-left: 2.375rem; }
    .ry-hero__title { font-size: 2rem; }
    .ry-hero__subtitle { font-size: 1rem; }
    .ry-hero__actions .ry-btn { flex: 1; justify-content: center; }
    .ry-product-grid { grid-template-columns: 1fr; }
    .ry-advantages,
    .ry-stats { grid-template-columns: 1fr; gap: 1rem; }
    .ry-stats { padding: 2rem 1.25rem; }
    .ry-stat__num { font-size: 2rem; }
    .ry-product-card__config { grid-template-columns: 1fr; }
}

.ry-section#categories {
    padding-top: 0;
    margin-top: -6rem;
}
.ry-product-card__desc {
    margin: 0.5rem 0;
}
.ry-spec-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.4rem 0.75rem;
    font-size: 0.75rem;
    line-height: 1.4;
}
.ry-spec-item {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    color: var(--ry-text-2);
    min-width: 0;
}
.ry-spec-item i {
    color: var(--ry-primary);
    font-size: 0.75rem;
    min-width: 12px;
    text-align: center;
    flex-shrink: 0;
}
.ry-spec-key {
    color: var(--ry-text-3);
    font-weight: 400;
    white-space: nowrap;
    flex-shrink: 0;
}
.ry-spec-value {
    color: var(--ry-text);
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    min-width: 0;
}

/* === ry-spec 多彩图标 === */
.ry-spec-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem 0.875rem;
    font-size: 0.75rem;
    line-height: 1.4;
}
.ry-spec-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    min-width: 0;
}
.ry-spec-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    border-radius: 6px;
    flex-shrink: 0;
}
.ry-spec-icon i {
    font-size: 0.75rem;
    line-height: 1;
}
.ry-spec-color--orange .ry-spec-icon { background: rgba(245, 158, 11, .12); color: #F59E0B; }
.ry-spec-color--blue   .ry-spec-icon { background: rgba(59, 130, 246, .12); color: #3B82F6; }
.ry-spec-color--green  .ry-spec-icon { background: rgba(16, 185, 129, .12); color: #10B981; }
.ry-spec-color--purple .ry-spec-icon { background: rgba(139, 92, 246, .12); color: #8B5CF6; }
.ry-spec-color--pink   .ry-spec-icon { background: rgba(236, 72, 153, .12); color: #EC4899; }
.ry-spec-color--gray   .ry-spec-icon { background: rgba(100, 116, 139, .10); color: #64748B; }

.ry-spec-text {
    display: inline-flex;
    align-items: baseline;
    gap: 0.25rem;
    min-width: 0;
    overflow: hidden;
}
.ry-spec-key {
    color: var(--ry-text-3, #64748B);
    font-weight: 400;
    font-size: 0.75rem;
    white-space: nowrap;
    flex-shrink: 0;
}
.ry-spec-value {
    color: var(--ry-text, #0F172A);
    font-weight: 600;
    font-size: 0.8125rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.ry-spec-item--badge {
    grid-column: span 2;
}
.ry-spec-item--badge .ry-spec-text {
    white-space: normal;
    overflow: visible;
    flex-wrap: wrap;
}
.ry-spec-item--badge .ry-spec-key {
    color: var(--ry-text-2, #475569);
    font-size: 0.75rem;
    font-weight: 500;
    white-space: normal;
    overflow: visible;
}

/* ============================================
 * v14 — Generated Cloud UI visual implant
 * 参考生成设计图:蓝紫云服务、透明 PNG 图标、轻网格背景
 * ============================================ */
:root {
    --ry-primary: #625BFF;
    --ry-primary-dark: #4F46E5;
    --ry-primary-light: #7C8CFF;
    --ry-accent: #21CED1;
    --ry-accent-soft: rgba(33, 206, 209, 0.12);
    --ry-primary-soft: rgba(98, 91, 255, 0.09);
    --ry-primary-softer: rgba(98, 91, 255, 0.045);
    --ry-bg: #F7FAFF;
    --ry-card: rgba(255, 255, 255, 0.94);
    --ry-text: #08142F;
    --ry-text-2: #4A5D7D;
    --ry-text-3: #8EA0BF;
    --ry-border: #DCE6F5;
    --ry-border-soft: #EEF4FC;
    --ry-success: #25C999;
    --ry-warning: #FF9D43;
    --ry-danger: #F45F74;
    --ry-radius: 8px;
    --ry-radius-sm: 6px;
    --ry-radius-lg: 12px;
    --ry-shadow: 0 10px 28px rgba(35, 55, 105, 0.06);
    --ry-shadow-hover: 0 18px 42px rgba(70, 86, 180, 0.14);
}

body {
    background:
        linear-gradient(180deg, rgba(247, 250, 255, 0.96), #fff 62%),
        url('/themes/cart/rainyun/assets/img/ui/backgrounds/page-soft-grid-background.png') center top / cover no-repeat;
}

.ry-notice {
    max-width: 1280px;
    margin: 1rem auto 0;
    border-color: rgba(98, 91, 255, 0.16);
    background: rgba(255, 255, 255, 0.72);
    box-shadow: 0 8px 24px rgba(54, 75, 130, 0.06);
    backdrop-filter: blur(14px);
}

.ry-hero {
    min-height: 500px;
    padding: 3.25rem 0 5.75rem;
    background:
        linear-gradient(180deg, rgba(247, 251, 255, 0.78), rgba(255, 255, 255, 0.96)),
        url('/themes/cart/rainyun/assets/img/ui/backgrounds/hero-clean-background.png') center top / cover no-repeat;
}

.ry-hero::before {
    top: 1.5rem;
    right: 6%;
    width: min(42vw, 620px);
    height: min(42vw, 620px);
    background: radial-gradient(circle, rgba(98, 91, 255, 0.14) 0%, rgba(33, 206, 209, 0.08) 38%, transparent 70%);
    filter: blur(10px);
}

.ry-hero::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: -1px;
    height: 170px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0), #fff 82%);
    pointer-events: none;
}

.ry-hero__inner {
    min-height: 390px;
    gap: 2.75rem;
    align-items: center;
}

.ry-hero__content {
    position: relative;
    z-index: 2;
}

.ry-hero__eyebrow {
    margin-bottom: 1.35rem;
    padding: 0.35rem 0.8rem;
    border: 1px solid rgba(98, 91, 255, 0.11);
    background: rgba(98, 91, 255, 0.075);
    color: #635BFF;
    box-shadow: 0 8px 22px rgba(98, 91, 255, 0.08);
}

.ry-hero__eyebrow::before {
    width: 8px;
    height: 8px;
    background: linear-gradient(135deg, var(--ry-accent), var(--ry-primary));
    box-shadow: 0 0 0 5px rgba(33, 206, 209, 0.12);
}

.ry-hero__title,
.ry-section__title,
.ry-product-card__price-num,
.ry-stat__num {
    letter-spacing: 0;
}

.ry-hero__title {
    max-width: 620px;
    margin-bottom: 1rem;
    font-size: clamp(2.45rem, 5.2vw, 4.35rem);
    line-height: 1.08;
    text-wrap: balance;
}

.ry-hero__subtitle {
    margin-bottom: 1.35rem;
    color: #344563;
    font-weight: 500;
}

.ry-hero__points {
    gap: 1rem 1.35rem;
    margin-bottom: 0;
}

.ry-hero__point {
    color: #536583;
    font-weight: 500;
}

.ry-hero__point::before {
    background: rgba(37, 201, 153, 0.14);
    color: var(--ry-success);
    box-shadow: 0 0 0 4px rgba(37, 201, 153, 0.06);
}

.ry-hero__visual {
    height: 390px;
}

.ry-hero__visual::before {
    inset: 2% -4%;
    background:
        url('/themes/cart/rainyun/assets/img/ui/backgrounds/card-accent-glow.png') center / contain no-repeat,
        radial-gradient(circle at center, rgba(33, 206, 209, 0.12), transparent 58%);
    opacity: 0.95;
    -webkit-mask-image: none;
    mask-image: none;
}

.ry-hero__img {
    max-width: 570px;
    filter: drop-shadow(0 30px 52px rgba(67, 85, 185, 0.2));
}

.ry-section {
    padding-top: 1.25rem;
}

.ry-section#categories {
    position: relative;
    z-index: 3;
    margin-top: -5.5rem;
    padding-bottom: 3rem;
}

.ry-section#categories .ry-section__head {
    margin-bottom: 1.25rem;
}

.ry-section__head {
    margin-bottom: 1.65rem;
}

.ry-section__title {
    font-size: clamp(1.5rem, 2.4vw, 2rem);
    line-height: 1.2;
}

.ry-section__title-icon {
    color: var(--ry-primary);
    filter: drop-shadow(0 8px 14px rgba(98, 91, 255, 0.18));
}

.ry-cat-grid {
    gap: 0.75rem;
}

.ry-cat-card {
    min-height: 86px;
    padding: 1rem 1.15rem;
    border-color: rgba(163, 178, 210, 0.42);
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.96), rgba(250, 252, 255, 0.9));
    box-shadow: 0 10px 26px rgba(38, 61, 110, 0.055);
    backdrop-filter: blur(14px);
}

.ry-cat-card::before {
    width: 100%;
    height: 100%;
    background:
        linear-gradient(135deg, rgba(98, 91, 255, 0.12), rgba(33, 206, 209, 0.06) 45%, transparent 70%);
    opacity: 0;
    transform: none;
    transition: opacity 0.25s var(--ry-ease);
}

.ry-cat-card:hover::before,
.ry-cat-card.is-active::before {
    opacity: 1;
}

.ry-cat-card:hover {
    transform: translateY(-3px);
    border-color: rgba(98, 91, 255, 0.5);
}

.ry-cat-card.is-active {
    border-color: rgba(98, 91, 255, 0.88);
    box-shadow: 0 14px 34px rgba(98, 91, 255, 0.13);
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.98), rgba(248, 250, 255, 0.94));
}

.ry-cat-card__icon {
    width: 48px;
    height: 48px;
    border-radius: 0;
    background: transparent;
    color: inherit;
    position: relative;
    z-index: 1;
}

.ry-cat-card__icon img {
    width: 48px;
    height: 48px;
    display: block;
    object-fit: contain;
}

.ry-cat-card:hover .ry-cat-card__icon {
    background: transparent;
    color: inherit;
    transform: translateY(-1px) scale(1.04);
}

.ry-cat-card__body {
    position: relative;
    z-index: 1;
}

.ry-cat-card__name {
    font-size: 1rem;
    line-height: 1.3;
}

.ry-cat-card__desc {
    color: #8A9AB9;
}

.ry-region-card {
    margin-bottom: 2.25rem !important;
}

.ry-region-card .ry-tabs-wrap,
.ry-tabs-wrap {
    border-color: rgba(163, 178, 210, 0.44) !important;
    background: rgba(255, 255, 255, 0.86) !important;
    box-shadow: 0 10px 26px rgba(38, 61, 110, 0.045) !important;
    backdrop-filter: blur(14px);
}

.ry-tab {
    border-radius: 6px;
    border-color: rgba(157, 174, 205, 0.45);
    background: #F8FAFF;
    color: #435371;
    font-weight: 600;
}

.ry-tab:hover {
    border-color: rgba(98, 91, 255, 0.38);
    background: rgba(98, 91, 255, 0.06);
}

.ry-tab.is-active {
    background: linear-gradient(135deg, #665CFF, #4D73FF);
    border-color: transparent;
    box-shadow: 0 10px 22px rgba(98, 91, 255, 0.24);
}

.ry-group-banner__card {
    border-color: rgba(163, 178, 210, 0.42) !important;
    border-radius: var(--ry-radius) !important;
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.94), rgba(247, 250, 255, 0.92)),
        url('/themes/cart/rainyun/assets/img/ui/backgrounds/card-accent-glow.png') right center / auto 130% no-repeat !important;
    box-shadow: 0 14px 34px rgba(38, 61, 110, 0.07) !important;
}

.ry-group-banner__card::before {
    background-image:
        linear-gradient(rgba(92, 125, 205, 0.08) 1px, transparent 1px),
        linear-gradient(90deg, rgba(92, 125, 205, 0.08) 1px, transparent 1px) !important;
    background-size: 36px 36px !important;
    opacity: 0.42 !important;
}

.ry-group-banner__icon {
    width: 110px !important;
    height: 110px !important;
    flex-basis: 110px !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
}

.ry-group-banner__icon > img {
    width: 108px;
    height: 108px;
    object-fit: contain;
    filter: drop-shadow(0 14px 24px rgba(98, 91, 255, 0.15));
}

.ry-group-banner__icon-check {
    right: 8px !important;
    bottom: 12px !important;
    background: linear-gradient(135deg, var(--ry-success), var(--ry-accent)) !important;
    border-width: 3px !important;
}

.ry-product-grid {
    gap: 1rem;
}

.ry-product-card {
    border-color: rgba(163, 178, 210, 0.42);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(252, 254, 255, 0.96));
    box-shadow: 0 10px 26px rgba(38, 61, 110, 0.055);
}

.ry-product-card::before {
    content: '';
    position: absolute;
    inset: 0 0 auto;
    height: 3px;
    background: linear-gradient(90deg, var(--ry-primary), var(--ry-accent));
    opacity: 0;
    transition: opacity 0.25s var(--ry-ease);
}

.ry-product-card:hover::before {
    opacity: 1;
}

.ry-product-card:hover {
    transform: translateY(-3px);
    border-color: rgba(98, 91, 255, 0.46);
}

.ry-product-card__head {
    min-height: 72px;
    padding: 1.25rem 1.25rem 0.95rem;
    border-bottom-color: rgba(222, 232, 247, 0.75);
}

.ry-product-card__body {
    padding: 1.15rem 1.25rem;
}

.ry-product-card__foot {
    padding: 0.3rem 1.25rem 1.25rem;
}

.ry-product-card__price-num {
    color: #6A63FF;
    font-size: 2.05rem;
}

.ry-product-card__buy {
    border-radius: 8px;
    background: linear-gradient(135deg, #665CFF, #4D73FF);
    box-shadow: 0 12px 24px rgba(98, 91, 255, 0.22);
}

.ry-product-card__buy:hover {
    background: linear-gradient(135deg, #574EF2, #4167F0);
}

.ry-product-card__desc {
    display: block;
    overflow: visible;
    -webkit-line-clamp: unset;
    -webkit-box-orient: unset;
}

.ry-spec-grid {
    gap: 0.45rem 0.7rem;
}

.ry-spec-item {
    min-height: 26px;
}

.ry-spec-icon {
    width: 24px;
    height: 24px;
    border-radius: 0;
    background: transparent !important;
}

.ry-spec-icon::before {
    content: '';
    width: 24px;
    height: 24px;
    display: none;
    background-image: var(--ry-spec-img);
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

.ry-spec-icon[style*="--ry-spec-img"]::before {
    display: block;
}

.ry-spec-icon[style*="--ry-spec-img"] i {
    display: none;
}

.ry-spec-key {
    color: #8293B1;
}

.ry-spec-value {
    color: #22304D;
}

.ry-advantage,
.ry-faq-item {
    border-color: rgba(163, 178, 210, 0.42);
    box-shadow: 0 10px 26px rgba(38, 61, 110, 0.045);
}

.ry-advantage__icon {
    width: 48px;
    height: 48px;
    border-radius: 8px;
    background: linear-gradient(135deg, rgba(98, 91, 255, 0.11), rgba(33, 206, 209, 0.09));
}

.ry-stats {
    border-radius: 12px;
    background:
        radial-gradient(circle at 78% 18%, rgba(33, 206, 209, 0.26), transparent 30%),
        linear-gradient(135deg, #625BFF, #3F7BFF);
}

@media (max-width: 1024px) {
    .ry-hero {
        padding: 3rem 0 4rem;
    }

    .ry-hero__inner {
        min-height: auto;
    }

    .ry-section#categories {
        margin-top: -3rem;
    }
}

@media (max-width: 640px) {
    .ry-hero {
        min-height: auto;
        padding: 2.5rem 0 2.25rem;
    }

    .ry-hero__title {
        font-size: 2.4rem;
    }

    .ry-hero__visual {
        height: 245px;
    }

    .ry-section#categories {
        margin-top: 0;
    }

    .ry-cat-card {
        min-height: 76px;
    }

    .ry-product-card__head,
    .ry-product-card__body,
    .ry-product-card__foot {
        padding-left: 1rem;
        padding-right: 1rem;
    }
}
