/* ============================================================
   辅成舆情首页 · 中原墨色视觉
   ============================================================ */

:root {
    --fp-ink: #0a1420;
    --fp-ink-mid: #132033;
    --fp-ink-soft: #1c2f45;
    --fp-mist: #f3f5f8;
    --fp-paper: #eef1f5;
    --fp-line: #d5dbe3;
    --fp-bronze: #c9a86e;
    --fp-bronze-deep: #a8884a;
    --fp-vermillion: #b8332a;
    --fp-vermillion-hover: #9a2a23;
    --fp-text: #1a2433;
    --fp-text-muted: #5a6678;
    --fp-white: #ffffff;
    --fp-radius: 4px;
    --fp-ease: cubic-bezier(0.22, 1, 0.36, 1);
    --fp-font-display: "Source Han Serif SC", "Noto Serif SC", "Songti SC", "STSong", "SimSun", serif;
    --fp-font-body: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei UI", "Microsoft YaHei", sans-serif;
}

/* === Base === */
body.front-page {
    font-family: var(--fp-font-body);
    color: var(--fp-text);
    background: var(--fp-mist);
}

body.front-page #content {
    padding-top: 0;
    margin: 0;
}

body.front-page #static_header_banner {
    display: none !important;
}

.fp-container {
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 24px;
}

/* === Header === */
body.front-page #masthead.style_6 {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 9999;
    transition: background 0.35s var(--fp-ease), box-shadow 0.35s var(--fp-ease);
}

body.front-page #masthead.style_6 .header_wrap {
    background: transparent;
    border: none;
    box-shadow: none;
    padding-top: 8px;
    padding-bottom: 8px;
}

body.front-page #masthead.style_6.scrolled .header_wrap {
    background: rgba(10, 20, 32, 0.94);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.06);
}

body.front-page #masthead .site-title a,
body.front-page #masthead .site-title,
body.front-page #masthead .logo-wrap a {
    font-family: var(--fp-font-display);
    font-weight: 700;
    letter-spacing: 0.08em;
    color: var(--fp-white) !important;
}

body.front-page .header-icon li:nth-child(2) {
    display: none;
}

body.front-page .joyas-shop-rd-navbar-toggle {
    background: transparent !important;
    border: 1px solid rgba(255, 255, 255, 0.35) !important;
    border-radius: var(--fp-radius) !important;
    color: var(--fp-white) !important;
}

body.front-page .searchbar-action {
    color: var(--fp-white) !important;
    border: 1px solid rgba(255, 255, 255, 0.35) !important;
    border-radius: var(--fp-radius) !important;
    background: transparent !important;
}

/* === Hero === */
.fp-hero {
    position: relative;
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: var(--fp-ink);
    color: var(--fp-white);
    text-align: center;
    padding: 120px 0 100px;
}

.fp-hero-bg {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
}

.fp-hero-mesh {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 80% 60% at 70% 35%, rgba(28, 47, 69, 0.9) 0%, transparent 55%),
        radial-gradient(ellipse 50% 40% at 20% 70%, rgba(184, 51, 42, 0.12) 0%, transparent 50%),
        linear-gradient(165deg, #071018 0%, #0f1c2e 45%, #152538 100%);
}

.fp-hero-radar {
    position: absolute;
    top: 50%;
    left: 58%;
    width: min(90vw, 720px);
    height: min(90vw, 720px);
    transform: translate(-40%, -48%);
    border-radius: 50%;
    background:
        repeating-radial-gradient(
            circle at center,
            transparent 0,
            transparent 48px,
            rgba(201, 168, 110, 0.06) 48px,
            rgba(201, 168, 110, 0.06) 49px
        );
    animation: fp-radar-breathe 8s ease-in-out infinite;
    opacity: 0.85;
}

.fp-hero-radar::after {
    content: '';
    position: absolute;
    inset: 12%;
    border-radius: 50%;
    border: 1px solid rgba(201, 168, 110, 0.15);
    animation: fp-radar-spin 18s linear infinite;
    background: conic-gradient(
        from 0deg,
        transparent 0deg,
        rgba(201, 168, 110, 0.12) 40deg,
        transparent 80deg
    );
    -webkit-mask: radial-gradient(farthest-side, transparent 62%, #000 63%);
    mask: radial-gradient(farthest-side, transparent 62%, #000 63%);
}

.fp-hero-nodes {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0.7;
}

.fp-node-line {
    stroke-dasharray: 8 12;
    animation: fp-line-flow 12s linear infinite;
}

.fp-node {
    animation: fp-node-pulse 3.2s ease-in-out infinite;
}

.fp-node:nth-child(2) { animation-delay: 0.4s; }
.fp-node:nth-child(3) { animation-delay: 0.8s; }
.fp-node:nth-child(5) { animation-delay: 1.2s; }

@keyframes fp-radar-breathe {
    0%, 100% { opacity: 0.55; transform: translate(-40%, -48%) scale(1); }
    50% { opacity: 0.9; transform: translate(-40%, -48%) scale(1.04); }
}

@keyframes fp-radar-spin {
    to { transform: rotate(360deg); }
}

@keyframes fp-line-flow {
    to { stroke-dashoffset: -120; }
}

@keyframes fp-node-pulse {
    0%, 100% { opacity: 0.35; r: 3; }
    50% { opacity: 1; }
}

.fp-hero-content {
    position: relative;
    z-index: 2;
    max-width: 820px;
    width: 100%;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
    float: none;
}

.fp-brand {
    font-family: var(--fp-font-display);
    font-size: clamp(2.8rem, 7vw, 4.8rem);
    font-weight: 700;
    letter-spacing: 0.14em;
    line-height: 1.15;
    margin: 0 0 28px;
    padding: 0;
    color: var(--fp-white);
    opacity: 0;
    transform: translateY(28px);
    animation: fp-rise 1s var(--fp-ease) 0.15s forwards;
}

.fp-hero-title {
    font-family: var(--fp-font-display);
    font-size: clamp(1.35rem, 3.2vw, 2rem);
    font-weight: 600;
    line-height: 1.45;
    margin: 0 0 20px;
    padding: 0;
    color: rgba(255, 255, 255, 0.92);
    letter-spacing: 0.04em;
    opacity: 0;
    transform: translateY(24px);
    animation: fp-rise 1s var(--fp-ease) 0.35s forwards;
}

.fp-hero-subtitle {
    font-size: clamp(0.95rem, 1.6vw, 1.1rem);
    line-height: 1.9;
    color: rgba(255, 255, 255, 0.68);
    margin: 0 auto 40px;
    padding: 0;
    max-width: 640px;
    opacity: 0;
    transform: translateY(20px);
    animation: fp-rise 1s var(--fp-ease) 0.55s forwards;
}

.fp-hero .fp-btn {
    opacity: 0;
    transform: translateY(16px);
    animation: fp-rise 1s var(--fp-ease) 0.75s forwards;
}

@keyframes fp-rise {
    to { opacity: 1; transform: translateY(0); }
}

.fp-scroll-hint {
    position: absolute;
    bottom: 28px;
    left: 50%;
    transform: translateX(-50%);
    width: 24px;
    height: 38px;
    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: 12px;
    z-index: 2;
    display: flex;
    justify-content: center;
    padding-top: 8px;
}

.fp-scroll-hint span {
    width: 3px;
    height: 8px;
    background: var(--fp-bronze);
    border-radius: 2px;
    animation: fp-scroll-dot 1.6s ease-in-out infinite;
}

@keyframes fp-scroll-dot {
    0% { opacity: 1; transform: translateY(0); }
    100% { opacity: 0; transform: translateY(12px); }
}

/* === Buttons === */
.fp-btn {
    display: inline-block;
    padding: 15px 36px;
    border-radius: var(--fp-radius);
    font-family: var(--fp-font-body);
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-decoration: none;
    transition: background 0.25s ease, transform 0.25s ease, color 0.25s ease;
    border: none;
    cursor: pointer;
}

.fp-btn-primary {
    background: var(--fp-bronze);
    color: var(--fp-ink);
}

.fp-btn-primary:hover {
    background: #d4b67a;
    color: var(--fp-ink);
    transform: translateY(-2px);
}

.fp-btn-accent {
    background: var(--fp-vermillion);
    color: var(--fp-white);
}

.fp-btn-accent:hover {
    background: var(--fp-vermillion-hover);
    color: var(--fp-white);
    transform: translateY(-2px);
}

/* === Trust bar === */
.fp-trust {
    background: var(--fp-ink-mid);
    border-top: 1px solid rgba(201, 168, 110, 0.18);
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    padding: 36px 0;
}

.fp-trust-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    text-align: center;
}

.fp-stat-item {
    position: relative;
    padding: 4px 12px;
}

.fp-stat-item:not(:last-child)::after {
    content: '';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 1px;
    height: 36px;
    background: rgba(255, 255, 255, 0.12);
}

.fp-stat-number,
.fp-stat-suffix {
    font-family: var(--fp-font-display);
    font-size: clamp(1.8rem, 3vw, 2.4rem);
    font-weight: 700;
    color: var(--fp-bronze);
    line-height: 1.1;
}

.fp-stat-suffix {
    font-size: 1.1rem;
    margin-left: 2px;
}

.fp-stat-label {
    display: block;
    margin-top: 8px;
    font-size: 0.88rem;
    color: rgba(255, 255, 255, 0.55);
    letter-spacing: 0.08em;
}

/* === Section headers === */
.fp-section-header {
    text-align: center;
    margin-bottom: 56px;
}

.fp-section-title {
    font-family: var(--fp-font-display);
    font-size: clamp(1.6rem, 3vw, 2.1rem);
    font-weight: 700;
    color: var(--fp-ink);
    margin: 0 0 14px;
    letter-spacing: 0.06em;
}

.fp-section-title::after {
    content: '';
    display: block;
    width: 40px;
    height: 2px;
    background: var(--fp-bronze);
    margin: 16px auto 0;
}

.fp-section-desc {
    font-size: 1.02rem;
    color: var(--fp-text-muted);
    margin: 0;
    line-height: 1.8;
    max-width: 640px;
    margin-left: auto;
    margin-right: auto;
}

.fp-section-header-light .fp-section-title {
    color: var(--fp-white);
}

.fp-section-header-light .fp-section-desc {
    color: rgba(255, 255, 255, 0.65);
}

/* === Services === */
.fp-services {
    padding: 100px 0;
    background: var(--fp-mist);
}

.fp-service-stack {
    display: flex;
    flex-direction: column;
    gap: 0;
    border-top: 1px solid var(--fp-line);
}

.fp-service-tier {
    display: grid;
    grid-template-columns: 120px 1fr;
    gap: 32px;
    padding: 36px 0;
    border-bottom: 1px solid var(--fp-line);
    align-items: start;
}

.fp-tier-label {
    font-family: var(--fp-font-display);
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--fp-bronze-deep);
    letter-spacing: 0.12em;
    padding-top: 4px;
}

.fp-service-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 28px 40px;
}

.fp-service-item h3 {
    font-family: var(--fp-font-display);
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--fp-text);
    margin: 0 0 10px;
    letter-spacing: 0.04em;
}

.fp-service-item p {
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.75;
    color: var(--fp-text-muted);
}

.fp-service-item-wide {
    grid-column: 1 / -1;
    max-width: 520px;
}

/* === Gov === */
.fp-gov {
    padding: 100px 0;
    background:
        linear-gradient(160deg, var(--fp-ink) 0%, var(--fp-ink-mid) 55%, #1a3048 100%);
    color: var(--fp-white);
    position: relative;
}

.fp-gov::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 10% 20%, rgba(201, 168, 110, 0.08) 0%, transparent 45%),
        repeating-linear-gradient(
            -12deg,
            transparent,
            transparent 40px,
            rgba(255, 255, 255, 0.015) 40px,
            rgba(255, 255, 255, 0.015) 41px
        );
    pointer-events: none;
}

.fp-gov .fp-container {
    position: relative;
    z-index: 1;
}

.fp-gov-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.fp-gov-item {
    display: flex;
    gap: 20px;
    padding: 32px 28px 32px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    border-right: 1px solid rgba(255, 255, 255, 0.1);
}

.fp-gov-item:nth-child(2n) {
    padding-left: 28px;
    padding-right: 0;
    border-right: none;
}

.fp-gov-num {
    font-family: var(--fp-font-display);
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--fp-bronze);
    line-height: 1;
    flex-shrink: 0;
    opacity: 0.85;
}

.fp-gov-item h3 {
    font-family: var(--fp-font-display);
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--fp-white);
    margin: 0 0 10px;
    letter-spacing: 0.03em;
}

.fp-gov-item p {
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.75;
    color: rgba(255, 255, 255, 0.65);
}

/* === Enterprise === */
.fp-enterprise {
    padding: 100px 0;
    background: var(--fp-white);
}

.fp-enterprise-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0 48px;
}

.fp-ent-item {
    padding: 8px 0 0;
    border-top: 2px solid var(--fp-ink);
}

.fp-ent-item h3 {
    font-family: var(--fp-font-display);
    font-size: 1.15rem;
    font-weight: 600;
    margin: 20px 0 12px;
    color: var(--fp-text);
    letter-spacing: 0.03em;
}

.fp-ent-item p {
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.75;
    color: var(--fp-text-muted);
}

/* === Experts === */
.fp-experts {
    padding: 100px 0;
    background: var(--fp-paper);
}

.fp-expert-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px 28px;
    margin-bottom: 72px;
}

.fp-expert-item {
    text-align: left;
    padding-top: 0;
}

.fp-expert-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    margin-bottom: 18px;
    font-family: var(--fp-font-display);
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--fp-ink);
    background: var(--fp-bronze);
    border-radius: var(--fp-radius);
}

.fp-expert-item h4 {
    font-family: var(--fp-font-display);
    font-size: 1.08rem;
    font-weight: 600;
    margin: 0 0 8px;
    color: var(--fp-text);
}

.fp-expert-title {
    font-size: 0.88rem;
    color: var(--fp-bronze-deep);
    margin: 0 0 8px;
    font-weight: 500;
}

.fp-expert-desc {
    font-size: 0.88rem;
    color: var(--fp-text-muted);
    line-height: 1.65;
    margin: 0;
}

/* Partners */
.fp-partners {
    text-align: center;
    margin-bottom: 64px;
    padding-top: 8px;
}

.fp-partners-title {
    font-family: var(--fp-font-display);
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--fp-text);
    margin: 0 0 24px;
    letter-spacing: 0.04em;
}

.fp-partners-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0;
}

.fp-partners-list li {
    padding: 10px 22px;
    font-size: 0.92rem;
    color: var(--fp-text-muted);
    border-right: 1px solid var(--fp-line);
}

.fp-partners-list li:last-child {
    border-right: none;
}

/* Cases */
.fp-cases {
    text-align: center;
}

.fp-cases-title {
    font-family: var(--fp-font-display);
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--fp-text);
    margin: 0 0 28px;
}

.fp-cases-track {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    padding: 4px 0 16px;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
}

.fp-cases-track::-webkit-scrollbar {
    height: 3px;
}

.fp-cases-track::-webkit-scrollbar-thumb {
    background: var(--fp-bronze);
}

.fp-case-item {
    flex: 0 0 280px;
    text-align: left;
    padding: 22px 0 0;
    border-top: 2px solid var(--fp-ink-soft);
    scroll-snap-align: start;
}

.fp-case-tag {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    color: var(--fp-bronze-deep);
    margin-bottom: 10px;
}

.fp-case-item p {
    margin: 0;
    font-size: 0.92rem;
    line-height: 1.7;
    color: var(--fp-text);
}

/* === Contact === */
.fp-contact {
    padding: 96px 0;
    background:
        linear-gradient(180deg, var(--fp-ink-mid) 0%, var(--fp-ink) 100%);
    position: relative;
}

.fp-contact::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 50% 0%, rgba(201, 168, 110, 0.1) 0%, transparent 55%);
    pointer-events: none;
}

.fp-contact-inner {
    position: relative;
    text-align: center;
    color: var(--fp-white);
}

.fp-contact-title {
    font-family: var(--fp-font-display);
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 700;
    margin: 0 0 14px;
    color: var(--fp-white);
    letter-spacing: 0.05em;
}

.fp-contact-desc {
    font-size: 1.05rem;
    color: rgba(255, 255, 255, 0.65);
    margin: 0 0 40px;
}

.fp-contact-info {
    display: flex;
    justify-content: center;
    gap: 36px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.fp-contact-item {
    display: flex;
    align-items: center;
    gap: 10px;
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.95rem;
}

.fp-contact-item a {
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
}

.fp-contact-item a:hover {
    color: var(--fp-bronze);
}

.fp-contact-item svg {
    width: 20px;
    height: 20px;
    color: var(--fp-bronze);
    flex-shrink: 0;
}

.fp-contact-company {
    font-size: 0.88rem;
    color: rgba(255, 255, 255, 0.45);
    margin: 0 0 32px;
}

/* === Footer === */
.fp-footer {
    background: #060d15;
    padding: 28px 0;
    text-align: center;
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.82rem;
    line-height: 1.7;
}

.fp-footer a {
    color: rgba(255, 255, 255, 0.5);
    text-decoration: none;
}

.fp-footer a:hover {
    color: var(--fp-bronze);
}

.fp-footer-links {
    display: flex;
    justify-content: center;
    gap: 24px;
    margin-bottom: 10px;
}

.fp-footer p {
    margin: 0;
}

/* === Reveal on scroll === */
.fp-reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.7s var(--fp-ease), transform 0.7s var(--fp-ease);
}

.fp-reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* === Responsive === */
@media (max-width: 991px) {
    .fp-service-tier {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .fp-gov-list {
        grid-template-columns: 1fr;
    }

    .fp-gov-item,
    .fp-gov-item:nth-child(2n) {
        padding: 28px 0;
        border-right: none;
    }

    .fp-enterprise-grid {
        grid-template-columns: 1fr;
        gap: 36px;
    }

    .fp-expert-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .fp-hero-radar {
        left: 50%;
        opacity: 0.55;
    }
}

@media (max-width: 767px) {
    .fp-hero {
        padding: 110px 0 88px;
        min-height: 92vh;
        align-items: flex-end;
        text-align: left;
    }

    .fp-hero-content {
        text-align: left;
    }

    .fp-brand {
        letter-spacing: 0.12em;
        margin-bottom: 20px;
    }

    .fp-hero-subtitle {
        margin-left: 0;
        margin-right: 0;
    }

    .fp-scroll-hint {
        display: none;
    }

    .fp-trust-row {
        grid-template-columns: 1fr;
        gap: 22px;
    }

    .fp-stat-item:not(:last-child)::after {
        display: none;
    }

    .fp-service-list {
        grid-template-columns: 1fr;
    }

    .fp-services,
    .fp-gov,
    .fp-enterprise,
    .fp-experts,
    .fp-contact {
        padding: 72px 0;
    }

    .fp-section-header {
        margin-bottom: 40px;
        text-align: left;
    }

    .fp-section-title::after {
        margin-left: 0;
    }

    .fp-section-desc {
        margin-left: 0;
        margin-right: 0;
    }

    .fp-expert-grid {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .fp-partners-list {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }

    .fp-partners-list li {
        border-right: none;
        padding: 6px 0;
    }

    .fp-partners,
    .fp-cases {
        text-align: left;
    }

    .fp-contact-info {
        flex-direction: column;
        align-items: flex-start;
        gap: 14px;
    }

    .fp-contact-inner {
        text-align: left;
    }
}

@media (max-width: 480px) {
    .fp-container {
        padding: 0 20px;
    }

    .fp-btn {
        width: 100%;
        text-align: center;
        padding: 14px 24px;
    }
}

/* === Inner page banner (non-home) === */
#static_header_banner {
    background: linear-gradient(145deg, #071018 0%, #132033 50%, #1a3048 100%) !important;
    position: relative;
    overflow: hidden;
}

#static_header_banner::before {
    background: transparent !important;
}

#static_header_banner::after {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 70% 40%, rgba(201, 168, 110, 0.1) 0%, transparent 50%),
        repeating-linear-gradient(0deg, transparent, transparent 59px, rgba(255,255,255,0.02) 59px, rgba(255,255,255,0.02) 60px);
    z-index: 0;
    pointer-events: none;
}

#static_header_banner .content-text {
    position: relative;
    z-index: 1;
}
