/* ============================================================
   style_9 美美收红 — 首页红色主题样式
   融合：style_6 红色体系 / default 滚动动画+图标墙 /
         style_1 关键词云 / style_7 数据统计 / style_8 步进条
   ============================================================ */
:root {
    --rh-primary: #fe424b;
    --rh-primary-dark: #e63a43;
    --rh-primary-light: #ff8f95;
    --rh-primary-bg: #fff1f2;
    --rh-accent: #ff9c11;
    --rh-text: #2b2b2b;
    --rh-text-sub: #8a8a8a;
    --rh-gray-bg: #faf7f7;
    --rh-radius: 16px;
    --rh-shadow: 0 8px 30px rgba(254, 66, 75, 0.10);
}

body.red-home-page {
    background: #fff;
    color: var(--rh-text);
    font-family: "Source Han Sans CN", "PingFang SC", "Microsoft YaHei", sans-serif;
}

body.red-home-page .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* ---------- Hero ---------- */
.rh-hero {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #fe424b 0%, #f8604a 55%, #ff9c11 130%);
    padding-bottom: 120px;
}

/* 顶部导航在红色 hero 上改为白字 */
.rh-hero .site-header {
    position: relative;
    z-index: 5;
}
.rh-hero .home-header--desktop {
    background: transparent;
    border-bottom: 1px solid rgba(255, 255, 255, 0.18);
}
.rh-hero .home-header--desktop .nav-item a,
.rh-hero .home-header--desktop .nav-item span,
.rh-hero .home-header--desktop .header__user-info a,
.rh-hero .home-header--desktop .header__user-info .line {
    color: #fff !important;
}
.rh-hero .home-header--desktop .nav-item a:hover span {
    color: #ffe0c2 !important;
}
.rh-hero .home-header--desktop .personal-center-btn {
    background: rgba(255, 255, 255, 0.16);
    border: 1px solid rgba(255, 255, 255, 0.45);
    color: #fff !important;
}
.rh-hero .home-header--desktop .dropdown-trigger {
    color: #fff;
}

/* 装饰圆环 */
.rh-hero__deco {
    position: absolute;
    border-radius: 50%;
    border: 60px solid rgba(255, 255, 255, 0.06);
    pointer-events: none;
}
.rh-hero__deco--1 {
    width: 420px; height: 420px;
    top: -160px; right: -120px;
}
.rh-hero__deco--2 {
    width: 260px; height: 260px;
    bottom: 40px; left: -100px;
    border-width: 40px;
}
.rh-hero__deco--3 {
    width: 140px; height: 140px;
    top: 45%; right: 12%;
    border-width: 24px;
    border-color: rgba(255, 255, 255, 0.09);
}

.rh-hero__content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding-top: 90px;
}

.rh-hero__badge {
    display: inline-block;
    padding: 8px 26px;
    border: 1px solid rgba(255, 255, 255, 0.55);
    border-radius: 100px;
    color: #fff;
    font-size: 15px;
    letter-spacing: 4px;
    margin-bottom: 30px;
    background: rgba(255, 255, 255, 0.10);
    backdrop-filter: blur(4px);
}

.rh-hero__title {
    font-family: 'YouSheBiaoTiHei-Regular', "Source Han Sans CN", sans-serif;
    font-size: 72px;
    font-weight: 500;
    color: #fff;
    letter-spacing: 6px;
    line-height: 1.25;
    margin: 0 0 18px;
    text-shadow: 0 4px 18px rgba(190, 20, 30, 0.35);
}

.rh-hero__subtitle {
    font-size: 20px;
    color: rgba(255, 255, 255, 0.88);
    letter-spacing: 2px;
    margin: 0 0 46px;
}

/* 搜索框 */
.rh-search { display: flex; flex-direction: column; align-items: center; }
.rh-search__box {
    display: flex;
    align-items: center;
    background: #fff;
    border-radius: 100px;
    padding: 6px;
    box-shadow: 0 14px 40px rgba(190, 20, 30, 0.28);
    width: 680px;
    max-width: 100%;
}
.rh-search__input {
    flex: 1;
    height: 52px;
    border: none;
    outline: none;
    border-radius: 100px;
    padding: 0 26px;
    font-size: 16px;
    color: #333;
    background: transparent;
}
.rh-search__btn {
    display: flex;
    align-items: center;
    gap: 8px;
    height: 52px;
    padding: 0 34px;
    border: none;
    border-radius: 100px;
    background: linear-gradient(90deg, var(--rh-primary), var(--rh-primary-dark));
    color: #fff;
    font-size: 17px;
    cursor: pointer;
    transition: .3s;
    white-space: nowrap;
}
.rh-search__btn:hover {
    background: linear-gradient(90deg, var(--rh-primary-dark), #d42d36);
    box-shadow: 0 6px 18px rgba(254, 66, 75, 0.45);
}
.rh-search__btn img { width: 18px; filter: brightness(0) invert(1); }

/* 关键词云 */
.rh-keywords {
    margin-top: 22px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 10px;
    max-width: 760px;
}
.rh-keywords__label { color: rgba(255, 255, 255, 0.85); font-size: 14px; }
.rh-keyword-pill {
    padding: 6px 18px;
    border-radius: 100px;
    border: 1px solid rgba(255, 255, 255, 0.5);
    color: #fff;
    font-size: 14px;
    cursor: pointer;
    transition: .25s;
    background: rgba(255, 255, 255, 0.08);
}
.rh-keyword-pill:hover {
    background: #fff;
    color: var(--rh-primary);
    border-color: #fff;
    transform: translateY(-2px);
}

/* 公告条 */
.rh-notice {
    position: absolute;
    left: 0; right: 0; bottom: 0;
    background: rgba(160, 15, 25, 0.32);
    backdrop-filter: blur(6px);
    z-index: 3;
}
.rh-notice__inner {
    display: flex;
    align-items: center;
    height: 46px;
    gap: 12px;
}
.rh-notice__icon { width: 18px; height: 18px; filter: brightness(0) invert(1); flex: 0 0 18px; }
.rh-notice__scroll { flex: 1; height: 22px; overflow: hidden; }
.rh-notice__track { transition: transform .1s linear; }
.rh-notice__item {
    display: block;
    height: 22px;
    line-height: 22px;
    color: rgba(255, 255, 255, 0.92);
    font-size: 14px;
    text-decoration: none;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.rh-notice__item:hover { color: #ffe0c2; }
.rh-notice__more { color: rgba(255,255,255,.85); font-size: 13px; text-decoration: none; flex: 0 0 auto; }
.rh-notice__more:hover { color: #ffe0c2; }

/* ---------- 快捷入口卡片 ---------- */
.rh-quick-cards {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: -62px;
    position: relative;
    z-index: 4;
    padding: 0 15px;
}
.rh-quick-cards .quick-card {
    width: 248px;
    background: #fff;
    border-radius: var(--rh-radius);
    box-shadow: 0 10px 34px rgba(43, 43, 43, 0.08);
    padding: 30px 24px 24px;
    text-align: center;
    transition: .3s;
    border-top: 4px solid transparent;
}
.rh-quick-cards .quick-card:hover {
    transform: translateY(-6px);
    border-top-color: var(--rh-primary);
    box-shadow: var(--rh-shadow);
}
.rh-quick-cards .quick-card img { width: 60px; height: 60px; margin: 0 auto; }
.rh-quick-cards .quick-card .title { font-size: 22px; color: #333; line-height: 34px; margin-top: 16px; }
.rh-quick-cards .quick-card button {
    position: relative;
    border-radius: 100px;
    width: 120px;
    height: 40px;
    margin-top: 14px;
    background: #fff;
    border: 1px solid #f0d9db;
    color: #9a6a6e;
    cursor: pointer;
    transition: .3s;
    font-size: 14px;
}
.rh-quick-cards .quick-card button:hover {
    background: var(--rh-primary);
    border-color: var(--rh-primary);
    color: #fff;
}
.qrcode-popover {
    position: absolute;
    bottom: 48px;
    left: 50%;
    transform: translateX(-50%);
    background: #fff;
    padding: 8px;
    border-radius: 10px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.16);
    z-index: 30;
}
.qrcode-popover img, .qrcode-popover canvas { display: block; width: 120px; height: 120px; }

/* ---------- 数据统计 ---------- */
.rh-stats { padding: 80px 0 10px; }
.rh-stats__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    background: linear-gradient(90deg, #fff6f6, #fff);
    border: 1px solid #fde3e5;
    border-radius: var(--rh-radius);
    padding: 36px 20px;
}
.rh-stat { text-align: center; position: relative; }
.rh-stat + .rh-stat::before {
    content: '';
    position: absolute;
    left: -10px; top: 15%;
    height: 70%;
    border-left: 1px dashed #f3c3c7;
}
.rh-stat strong {
    font-size: 44px;
    color: var(--rh-primary);
    font-weight: 700;
    line-height: 1.1;
}
.rh-stat strong em { font-style: normal; font-size: 20px; margin-left: 2px; }
.rh-stat span { display: block; margin-top: 8px; color: var(--rh-text-sub); font-size: 15px; }

/* ---------- 通用板块头 ---------- */
.rh-section-head { text-align: center; margin-bottom: 54px; }
.rh-kicker {
    display: inline-block;
    padding: 5px 20px;
    border-radius: 100px;
    background: var(--rh-primary-bg);
    color: var(--rh-primary);
    font-size: 14px;
    letter-spacing: 3px;
    margin-bottom: 16px;
}
.rh-section-title { font-size: 34px; font-weight: 600; color: var(--rh-text); margin: 0 0 10px; }
.rh-section-sub { font-size: 17px; color: #b9a9aa; margin: 0; }

/* ---------- 步进流程 ---------- */
.rh-process { padding: 90px 0; background: #fff; }
.rh-steps {
    display: flex;
    align-items: flex-start;
    justify-content: center;
}
.rh-step {
    flex: 0 0 168px;
    text-align: center;
    position: relative;
}
.rh-step__num {
    width: 46px;
    height: 46px;
    margin: 0 auto 14px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--rh-primary), var(--rh-accent));
    color: #fff;
    font-size: 20px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 16px rgba(254, 66, 75, 0.35);
    position: relative;
    z-index: 2;
}
.rh-step__icon { width: 64px; height: 64px; object-fit: contain; margin-bottom: 12px; }
.rh-step__title { font-size: 18px; font-weight: 600; color: #333; margin-bottom: 8px; }
.rh-step__desc { font-size: 13px; color: var(--rh-text-sub); line-height: 1.7; padding: 0 8px; }
.rh-step__line {
    flex: 1;
    max-width: 90px;
    height: 2px;
    margin-top: 22px;
    background: repeating-linear-gradient(90deg, #f3b8bc 0 8px, transparent 8px 16px);
}

/* ---------- 平台优势 ---------- */
.rh-features { padding: 90px 0; background: var(--rh-gray-bg); }
.rh-features__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 22px;
}
.rh-feature {
    background: #fff;
    border-radius: var(--rh-radius);
    padding: 40px 26px;
    text-align: center;
    transition: .3s;
    border: 1px solid #f7ecec;
}
.rh-feature:hover {
    transform: translateY(-6px);
    box-shadow: var(--rh-shadow);
    border-color: #fbcacf;
}
.rh-feature__icon {
    width: 86px;
    height: 86px;
    margin: 0 auto 20px;
    border-radius: 50%;
    background: var(--rh-primary-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: .3s;
}
.rh-feature:hover .rh-feature__icon {
    background: linear-gradient(135deg, var(--rh-primary), var(--rh-accent));
}
.rh-feature:hover .rh-feature__icon img { filter: brightness(0) invert(1); }
.rh-feature__icon img { width: 44px; height: 44px; object-fit: contain; transition: .3s; }
.rh-feature__title { font-size: 20px; font-weight: 600; color: #333; margin-bottom: 12px; }
.rh-feature__desc { font-size: 14px; color: var(--rh-text-sub); line-height: 1.9; }

/* ---------- 卡券品牌墙 ---------- */
.rh-cards { padding: 90px 0; background: #fff; }
.rh-cards .cards-scroll { overflow: hidden; }
.rh-cards .cards-row,
.rh-cards .cards-row-left {
    display: flex;
    gap: 18px;
    width: max-content;
    padding: 10px 0;
}
.rh-cards .cards-row { animation: rh-scroll-left 40s linear infinite; }
.rh-cards .cards-row-left { animation: rh-scroll-right 44s linear infinite; }
.rh-cards .cards-row > div,
.rh-cards .cards-row-left > div {
    text-align: center;
    background: #fff;
    border: 1px solid #f6e8e9;
    border-radius: 14px;
    padding: 16px 10px 12px;
    transition: .3s;
}
.rh-cards .cards-row > div:hover,
.rh-cards .cards-row-left > div:hover {
    border-color: var(--rh-primary-light);
    box-shadow: var(--rh-shadow);
}
.rh-cards .card-icon {
    width: 110px;
    height: 110px;
    border-radius: 10px;
    background-image: url(../images/home-swiper.png);
    background-repeat: no-repeat;
    margin: 0 auto 8px;
}
.rh-cards .card-label { font-size: 14px; color: #555; }
@keyframes rh-scroll-left {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}
@keyframes rh-scroll-right {
    0% { transform: translateX(-50%); }
    100% { transform: translateX(0); }
}

/* ---------- 新闻资讯 ---------- */
.rh-news { padding: 90px 0; background: var(--rh-gray-bg); }
.rh-news .news-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
}
.rh-news .news-item {
    background: #fff;
    border-radius: var(--rh-radius);
    overflow: hidden;
    border: 1px solid #f7ecec;
    transition: .3s;
}
.rh-news .news-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--rh-shadow);
}
.rh-news .news-thumb {
    display: block;
    height: 180px;
    overflow: hidden;
}
.rh-news .news-thumb--empty {
    background: linear-gradient(135deg, var(--rh-primary-bg), #ffe4e0);
    position: relative;
}
.rh-news .news-thumb--empty::after {
    content: '资讯';
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--rh-primary-light);
    font-size: 22px;
    letter-spacing: 6px;
}
.rh-news .news-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: .5s;
}
.rh-news .news-item:hover .news-thumb img { transform: scale(1.06); }
.rh-news .news-content { padding: 22px; }
.rh-news .news-title { margin: 0 0 10px; font-size: 18px; line-height: 1.5; }
.rh-news .news-title a { color: #333; text-decoration: none; }
.rh-news .news-title a:hover { color: var(--rh-primary); }
.rh-news .news-summary {
    margin: 0 0 16px;
    font-size: 14px;
    color: var(--rh-text-sub);
    line-height: 1.8;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.rh-news .news-summary a { color: inherit; text-decoration: none; }
.rh-news .news-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
    color: #b9a9aa;
}
.rh-news .news-meta a { color: var(--rh-primary); text-decoration: none; }
.rh-news .news-date { display: flex; align-items: center; gap: 5px; }
.rh-news .news-date img { width: 14px; }
.rh-news .no-news, .rh-faq .no-news {
    grid-column: 1 / -1;
    text-align: center;
    color: var(--rh-text-sub);
    padding: 40px 0;
}

/* ---------- FAQ ---------- */
.rh-faq { padding: 90px 0; background: #fff; }
.rh-faq .faq-tabs {
    display: flex;
    justify-content: center;
    gap: 14px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}
.rh-faq .faq-tab {
    padding: 10px 30px;
    border-radius: 100px;
    border: 1px solid #f0d9db;
    color: #9a6a6e;
    text-decoration: none;
    font-size: 15px;
    transition: .3s;
}
.rh-faq .faq-tab:hover {
    background: var(--rh-primary);
    border-color: var(--rh-primary);
    color: #fff;
}
.rh-faq .faq-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}
.rh-faq .faq-item {
    background: var(--rh-gray-bg);
    border: 1px solid #f7ecec;
    border-radius: var(--rh-radius);
    padding: 26px 28px;
    transition: .3s;
}
.rh-faq .faq-item:hover {
    background: #fff;
    border-color: #fbcacf;
    box-shadow: var(--rh-shadow);
}
.rh-faq .faq-question {
    font-size: 17px;
    font-weight: 600;
    color: #333;
    margin-bottom: 12px;
    padding-left: 16px;
    border-left: 4px solid var(--rh-primary);
    line-height: 1.4;
}
.rh-faq .faq-answer {
    font-size: 14px;
    color: var(--rh-text-sub);
    line-height: 1.9;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.rh-faq .faq-answer img { max-width: 100%; height: auto; }

/* ---------- CTA ---------- */
.rh-cta {
    padding: 84px 0;
    background: linear-gradient(120deg, var(--rh-primary-dark), var(--rh-primary) 55%, #ff7a45);
    position: relative;
    overflow: hidden;
}
.rh-cta::before, .rh-cta::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    border: 46px solid rgba(255, 255, 255, 0.07);
}
.rh-cta::before { width: 300px; height: 300px; top: -140px; left: -80px; }
.rh-cta::after { width: 220px; height: 220px; bottom: -120px; right: -60px; }
.rh-cta .container {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    flex-wrap: wrap;
}
.rh-cta__text {
    font-size: 24px;
    color: #fff;
    line-height: 1.8;
    max-width: 720px;
}
.rh-cta__btn {
    display: inline-block;
    padding: 18px 62px;
    background: #fff;
    color: var(--rh-primary);
    font-size: 20px;
    font-weight: 600;
    border-radius: 100px;
    text-decoration: none;
    transition: .3s;
    box-shadow: 0 12px 30px rgba(120, 10, 18, 0.30);
    white-space: nowrap;
}
.rh-cta__btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 18px 40px rgba(120, 10, 18, 0.42);
    color: var(--rh-primary-dark);
}

/* ---------- 入场动画（配合 main.js animate-on-scroll） ---------- */
.animate-on-scroll { opacity: 0; }
.animate-on-scroll.animated-in { opacity: 1; }
.animate-on-scroll[data-animate="fadeIn"] { transform: translateY(30px); transition: opacity .8s, transform .8s; }
.animate-on-scroll[data-animate="fadeInLeft"] { transform: translateX(-40px); transition: opacity .8s, transform .8s; }
.animate-on-scroll[data-animate="fadeInRight"] { transform: translateX(40px); transition: opacity .8s, transform .8s; }
.animate-on-scroll[data-animate="fadeInDown"] { transform: translateY(-30px); transition: opacity .8s, transform .8s; }
.animate-on-scroll.animated-in[data-animate] { transform: none; }

/* ---------- 响应式 ---------- */
@media (max-width: 992px) {
    .rh-hero__title { font-size: 46px; letter-spacing: 3px; }
    .rh-hero__subtitle { font-size: 16px; }
    .rh-search__box { width: 100%; }
    .rh-stats__grid { grid-template-columns: repeat(2, 1fr); }
    .rh-stat + .rh-stat::before { display: none; }
    .rh-features__grid { grid-template-columns: repeat(2, 1fr); }
    .rh-news .news-grid { grid-template-columns: repeat(2, 1fr); }
    .rh-steps { flex-wrap: wrap; gap: 26px 0; }
    .rh-step__line { display: none; }
    .rh-step { flex: 0 0 33.33%; }
}

@media (max-width: 640px) {
    .rh-hero { padding-bottom: 100px; }
    .rh-hero__content { padding-top: 56px; }
    .rh-hero__title { font-size: 32px; }
    .rh-hero__badge { font-size: 12px; letter-spacing: 2px; padding: 6px 18px; }
    .rh-search__btn span { display: none; }
    .rh-search__btn { padding: 0 20px; }
    .rh-quick-cards .quick-card { width: calc(50% - 10px); padding: 20px 12px 16px; }
    .rh-quick-cards .quick-card .title { font-size: 17px; }
    .rh-section-title { font-size: 24px; }
    .rh-features__grid { grid-template-columns: 1fr; }
    .rh-news .news-grid { grid-template-columns: 1fr; }
    .rh-faq .faq-grid { grid-template-columns: 1fr; }
    .rh-step { flex: 0 0 50%; }
    .rh-cta .container { justify-content: center; text-align: center; }
    .rh-cta__text { font-size: 18px; }
    .rh-stat strong { font-size: 30px; }
    /* 雪碧图坐标不可缩放，移动端保持原尺寸避免图标错位 */
}
