/* ============================================================
   优财宝首页专属样式（2026-11 UI 升级）
   仅作用于首页：所有规则都以 .home-page / body:has(.home-page) 限定
   不改动文章页、列表页、后台的任何样式
   ============================================================ */

:root {
    --ycb-gold: #C9A96E;
    --ycb-gold-deep: #A8874F;
    --ycb-gold-light: #E6D2AC;
    --ycb-brown: #4A3A2E;
    --ycb-brown-deep: #33281F;
    --ycb-ink: #3A312A;
    --ycb-muted: #8A7E72;
    --ycb-ivory: #FBF8F2;
    --ycb-bg: #F4F1EA;
}

/* ---------- 顶部细栏 ---------- */
body:has(.home-page) .top-bar {
    background: #FFFDF8;
    border-bottom: 1px solid rgba(201, 169, 110, 0.28);
    padding: 15px 0;
    position: relative;
    z-index: 5;
}
body:has(.home-page) .top-bar-content {
    justify-content: center;
    align-items: center;
    gap: 14px;
}
body:has(.home-page) .top-bar-content span {
    font-size: 13px;
    letter-spacing: 0.14em;
    color: #7A6A58;
}
body:has(.home-page) .top-bar-content::before,
body:has(.home-page) .top-bar-content::after {
    content: "";
    width: 5px;
    height: 5px;
    background: var(--ycb-gold);
    transform: rotate(45deg);
    opacity: 0.75;
    flex: none;
}

/* ---------- 首页主体 ---------- */
.home-page {
    background: var(--ycb-bg);
}

/* ---------- Hero ---------- */
.home-page .home-hero {
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(ellipse 55% 75% at 82% 12%, rgba(201, 169, 110, 0.22), transparent 62%),
        radial-gradient(ellipse 45% 65% at 10% 92%, rgba(201, 169, 110, 0.12), transparent 60%),
        linear-gradient(135deg, #3D3025 0%, #4E3F31 48%, #63503E 100%);
    padding: 92px 0 168px;
    text-align: center;
    color: #F7F0E4;
}
.home-page .home-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: repeating-linear-gradient(
        115deg,
        rgba(255, 255, 255, 0.035) 0,
        rgba(255, 255, 255, 0.035) 1px,
        transparent 1px,
        transparent 84px
    );
    pointer-events: none;
}
.home-page .home-hero::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(201, 169, 110, 0.55), transparent);
}
.home-page .hero-decor {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
}
.home-page .hero-decor .ring {
    position: absolute;
    border: 1px solid rgba(201, 169, 110, 0.22);
    border-radius: 50%;
}
.home-page .hero-decor .ring-1 {
    width: 520px;
    height: 520px;
    right: -170px;
    top: -190px;
}
.home-page .hero-decor .ring-2 {
    width: 340px;
    height: 340px;
    right: -60px;
    top: -70px;
    border-color: rgba(201, 169, 110, 0.14);
}
.home-page .hero-decor .ring-3 {
    width: 420px;
    height: 420px;
    left: -190px;
    bottom: -220px;
    border-color: rgba(201, 169, 110, 0.13);
}
.home-page .hero-inner {
    position: relative;
    z-index: 1;
    max-width: 980px;
}
.home-page .hero-eyebrow {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin: 0 0 30px;
    font-size: 13px;
    letter-spacing: 0.42em;
    text-transform: uppercase;
    color: #D8BD8D;
    font-weight: 500;
}
.home-page .hero-eyebrow .eyebrow-line {
    display: block;
    width: 64px;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(216, 189, 141, 0.85));
}
.home-page .hero-eyebrow .eyebrow-line:last-child {
    background: linear-gradient(90deg, rgba(216, 189, 141, 0.85), transparent);
}
.home-page .hero-title {
    margin: 0 auto;
    max-width: 900px;
    font-size: clamp(28px, 3.3vw, 44px);
    line-height: 1.55;
    letter-spacing: 0.055em;
    font-weight: 500;
    color: #FBF5E9;
    text-shadow: 0 2px 18px rgba(0, 0, 0, 0.18);
}
.home-page .hero-title .title-seg {
    display: inline;
}
.home-page .hero-title::after {
    display: none;
}
.home-page .hero-ornament {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-top: 40px;
}
.home-page .hero-ornament span {
    display: block;
    width: 76px;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(201, 169, 110, 0.8));
}
.home-page .hero-ornament span:last-child {
    background: linear-gradient(90deg, rgba(201, 169, 110, 0.8), transparent);
}
.home-page .hero-ornament i {
    display: block;
    width: 7px;
    height: 7px;
    border: 1px solid var(--ycb-gold);
    transform: rotate(45deg);
}

/* ---------- 服务区 ---------- */
.home-page .services-section {
    padding: 0 0 96px;
    background: var(--ycb-bg);
    margin-top: -112px;
    position: relative;
    z-index: 2;
}
.home-page .services-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 28px;
    align-items: stretch;
}
.home-page .service-card {
    position: relative;
    display: flex;
    flex-direction: column;
    background: #FFFFFF;
    border: 1px solid rgba(201, 169, 110, 0.22);
    border-radius: 6px;
    padding: 38px 32px 30px;
    box-shadow: 0 22px 44px -28px rgba(74, 58, 46, 0.38);
    overflow: hidden;
    transition: transform 0.4s ease, box-shadow 0.4s ease, border-color 0.4s ease;
    animation: ycbCardIn 0.7s cubic-bezier(0.22, 0.61, 0.36, 1) both;
    animation-delay: calc(var(--i, 0) * 70ms);
}
.home-page .service-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--ycb-gold), transparent);
    opacity: 0;
    transition: opacity 0.4s ease;
}
.home-page .service-card:hover {
    transform: translateY(-8px);
    border-color: rgba(201, 169, 110, 0.55);
    box-shadow: 0 30px 56px -26px rgba(74, 58, 46, 0.42);
}
.home-page .service-card:hover::before {
    opacity: 1;
}
.home-page .service-icon {
    width: 58px;
    height: 58px;
    flex: none;
    display: grid;
    place-items: center;
    margin-bottom: 24px;
    border-radius: 50%;
    color: var(--ycb-gold-deep);
    background: linear-gradient(135deg, rgba(201, 169, 110, 0.18), rgba(201, 169, 110, 0.04));
    border: 1px solid rgba(201, 169, 110, 0.38);
    transition: color 0.4s ease, background 0.4s ease, transform 0.4s ease;
}
.home-page .service-icon svg {
    width: 27px;
    height: 27px;
}
.home-page .service-card:hover .service-icon {
    color: #FFFDF8;
    background: linear-gradient(135deg, #C9A96E, #A8874F);
    transform: translateY(-2px);
}
.home-page .service-header {
    text-align: left;
    margin: 0 0 4px;
    padding: 0;
    border: none;
}
.home-page .service-header h3 {
    margin: 0 0 8px;
    font-size: 21px;
    font-weight: 600;
    letter-spacing: 0.05em;
    color: var(--ycb-brown);
    line-height: 1.4;
}
.home-page .service-header p {
    margin: 0;
    font-size: 11.5px;
    line-height: 1.5;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: #A2958A;
}
.home-page .service-card .divider {
    height: 1px;
    margin: 20px 0 10px;
    background: linear-gradient(90deg, rgba(201, 169, 110, 0.45), rgba(201, 169, 110, 0.06));
}
.home-page .service-links {
    flex: 1 1 auto;
    margin-bottom: 22px;
}
.home-page .service-links a {
    position: relative;
    display: flex;
    align-items: center;
    padding: 9px 0 9px 18px;
    font-size: 14px;
    line-height: 1.5;
    color: #6C6156;
    border-bottom: 1px dashed rgba(201, 169, 110, 0.22);
    transition: color 0.25s ease, padding-left 0.25s ease;
}
.home-page .service-links a::before {
    content: "";
    position: absolute;
    left: 2px;
    top: 50%;
    width: 5px;
    height: 5px;
    margin-top: -2.5px;
    border-top: 1px solid var(--ycb-gold);
    border-right: 1px solid var(--ycb-gold);
    transform: rotate(45deg);
    opacity: 0.75;
    transition: left 0.25s ease, opacity 0.25s ease;
}
.home-page .service-links a:last-child {
    border-bottom: none;
}
.home-page .service-links a:hover {
    color: var(--ycb-gold-deep);
    padding-left: 22px;
}
.home-page .service-links a:hover::before {
    left: 6px;
    opacity: 1;
}
.home-page .no-article-hint {
    color: #B4A99E;
    font-size: 14px;
    padding: 8px 0;
}
.home-page .service-more {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 12px 16px;
    font-size: 13.5px;
    letter-spacing: 0.14em;
    color: var(--ycb-gold-deep);
    border: 1px solid rgba(201, 169, 110, 0.6);
    border-radius: 3px;
    background: transparent;
    transition: all 0.35s ease;
}
.home-page .service-more span {
    transition: transform 0.35s ease;
}
.home-page .service-more:hover {
    color: #FFFDF8;
    background: linear-gradient(135deg, #C9A96E, #A8874F);
    border-color: transparent;
    box-shadow: 0 12px 24px -14px rgba(168, 135, 79, 0.8);
}
.home-page .service-more:hover span {
    transform: translateX(4px);
}

/* ---------- 首页页脚（深色收尾，文案不变） ---------- */
body:has(.home-page) .main-footer {
    background: var(--ycb-brown-deep);
    color: #D9CFC0;
    padding: 64px 0 22px;
}
body:has(.home-page) .main-footer .footer-content {
    display: block;
    margin-bottom: 30px;
}
body:has(.home-page) .main-footer .contact-list {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 44px;
}
body:has(.home-page) .main-footer .footer-col h3 {
    color: var(--ycb-gold);
    font-size: 20px;
    font-weight: 600;
    letter-spacing: 0.16em;
    margin-bottom: 24px;
    position: relative;
    padding-bottom: 14px;
}
body:has(.home-page) .main-footer .footer-col h3::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 34px;
    height: 1px;
    background: var(--ycb-gold);
    opacity: 0.7;
}
body:has(.home-page) .main-footer .contact-list li {
    color: #CFC4B5;
    font-size: 14px;
    padding: 5px 0;
    letter-spacing: 0.03em;
    line-height: 1.7;
}
body:has(.home-page) .main-footer .contact-list a {
    color: #E4D6BE;
    transition: color 0.25s ease;
}
body:has(.home-page) .main-footer .contact-list a:hover {
    color: var(--ycb-gold);
}
body:has(.home-page) .main-footer .footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: 24px;
    color: #9C8F7F;
    font-size: 13px;
    letter-spacing: 0.04em;
}
body:has(.home-page) .main-footer .footer-bottom a {
    color: #B7A891;
}
body:has(.home-page) .main-footer .footer-bottom a:hover {
    color: var(--ycb-gold);
}

/* ---------- 首页右下角咨询按钮 ---------- */
body:has(.home-page) .online-service .service-btn {
    background: linear-gradient(135deg, #C9A96E, #A8874F);
    color: #2C2118;
    font-weight: 600;
    letter-spacing: 0.06em;
    border-radius: 999px;
    padding: 14px 24px;
    box-shadow: 0 16px 32px -14px rgba(168, 135, 79, 0.85);
}
body:has(.home-page) .online-service .service-btn:hover {
    background: linear-gradient(135deg, #D8BA82, #B8965C);
    color: #2C2118;
}

@keyframes ycbCardIn {
    from {
        opacity: 0;
        transform: translateY(26px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ---------- 响应式 ---------- */
@media (max-width: 1100px) {
    .home-page .services-grid {
        gap: 22px;
    }
    .home-page .service-card {
        padding: 32px 26px 26px;
    }
}

@media (max-width: 992px) {
    .home-page .home-hero {
        padding: 76px 0 150px;
    }
    .home-page .hero-title .title-seg {
        display: block;
    }
    .home-page .services-section {
        margin-top: -96px;
    }
    .home-page .services-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    body:has(.home-page) .main-footer .footer-content {
        grid-template-columns: repeat(2, 1fr);
        gap: 36px;
    }
}

@media (max-width: 767px) {
    body:has(.home-page) .top-bar {
        padding: 12px 0;
    }
    body:has(.home-page) .top-bar-content span {
        font-size: 12px;
        letter-spacing: 0.08em;
    }
    .home-page .home-hero {
        padding: 58px 0 128px;
    }
    .home-page .hero-eyebrow {
        font-size: 11.5px;
        letter-spacing: 0.3em;
        gap: 12px;
        margin-bottom: 22px;
    }
    .home-page .hero-eyebrow .eyebrow-line {
        width: 34px;
    }
    .home-page .hero-title {
        font-size: 22px;
        line-height: 1.6;
        letter-spacing: 0.02em;
    }
    .home-page .hero-title .title-seg {
        display: block;
    }
    .home-page .hero-ornament {
        margin-top: 28px;
    }
    .home-page .services-section {
        margin-top: -84px;
        padding-bottom: 64px;
    }
    .home-page .services-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .home-page .service-card {
        padding: 30px 24px 24px;
    }
    .home-page .service-card:hover {
        transform: translateY(-4px);
    }
    .home-page .service-icon {
        width: 52px;
        height: 52px;
        margin-bottom: 20px;
    }
    .home-page .service-icon svg {
        width: 24px;
        height: 24px;
    }
    .home-page .service-header h3 {
        font-size: 19px;
    }
    body:has(.home-page) .main-footer {
        padding: 48px 0 18px;
    }
    body:has(.home-page) .main-footer .footer-content {
        grid-template-columns: 1fr;
        gap: 26px;
    }
    body:has(.home-page) .main-footer .contact-list {
        flex-direction: column;
        gap: 0;
    }
    body:has(.home-page) .main-footer .footer-col h3 {
        font-size: 18px;
        margin-bottom: 16px;
    }
    body:has(.home-page) .online-service {
        right: 16px;
        bottom: 24px;
    }
    body:has(.home-page) .online-service .service-btn {
        padding: 11px 18px;
        font-size: 13px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .home-page .service-card {
        animation: none;
    }
    .home-page .service-card,
    .home-page .service-icon,
    .home-page .service-more,
    .home-page .service-links a {
        transition: none;
    }
}
