/* 星河 Starpivot 对外官网 — 独立样式，适配部署于 /yunying/ */
:root {
    --bg: #070a14;
    --bg2: #0d1224;
    --surface: rgba(18, 24, 48, 0.72);
    --border: rgba(120, 140, 255, 0.18);
    --text: #e8ecff;
    --muted: #8b95b8;
    --accent: #6c8cff;
    --accent2: #a78bfa;
    --radius: 14px;
    --maxw: 1120px;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.65;
    font-size: 16px;
}

a {
    color: var(--accent);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 40;
    backdrop-filter: blur(12px);
    background: rgba(7, 10, 20, 0.88);
    border-bottom: 1px solid var(--border);
}

.site-header-inner {
    max-width: var(--maxw);
    margin: 0 auto;
    padding: 0.85rem 1.25rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.brand-link {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    color: var(--text);
    text-decoration: none;
}

.brand-link:hover {
    text-decoration: none;
    opacity: 0.92;
}

.brand-link img {
    height: 40px;
    width: auto;
    display: block;
}

.brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.brand-text strong {
    font-size: 0.95rem;
    font-weight: 600;
}

.brand-text small {
    font-size: 0.72rem;
    color: var(--muted);
    font-weight: 400;
}

.nav-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem 1rem;
    font-size: 0.88rem;
}

.nav-links a {
    color: var(--muted);
}

.nav-links a:hover {
    color: var(--text);
}

.hero {
    position: relative;
    padding: 4rem 1.25rem 4.5rem;
    overflow: hidden;
}

.hero::before {
    content: "";
    position: absolute;
    inset: -40% 20% auto;
    height: 70%;
    background: radial-gradient(ellipse at center, rgba(108, 140, 255, 0.22), transparent 65%);
    pointer-events: none;
}

.hero-inner {
    position: relative;
    max-width: var(--maxw);
    margin: 0 auto;
}

.hero h1 {
    margin: 0 0 1rem;
    font-size: clamp(1.75rem, 4vw, 2.45rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.25;
}

.hero-lead {
    margin: 0 0 1.25rem;
    font-size: 1.05rem;
    color: var(--muted);
    max-width: 38rem;
}

.hero-trust {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 0.5rem 1rem;
    font-size: 0.82rem;
    color: var(--accent2);
    margin-bottom: 1.75rem;
}

.btn-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    align-items: center;
}

.btn-primary {
    display: inline-block;
    padding: 0.65rem 1.35rem;
    background: linear-gradient(135deg, var(--accent), #5576e8);
    color: #fff;
    font-weight: 600;
    border-radius: 10px;
    border: none;
    cursor: pointer;
    font-size: 0.95rem;
    text-decoration: none;
}

.btn-primary:hover {
    filter: brightness(1.06);
    text-decoration: none;
}

.hero-note {
    margin: 0.75rem 0 0;
    font-size: 0.8rem;
    color: var(--muted);
    max-width: 36rem;
}

.section {
    padding: 3.5rem 1.25rem;
    border-top: 1px solid var(--border);
    background: var(--bg2);
}

.section:nth-of-type(even) {
    background: var(--bg);
}

.section-inner {
    max-width: var(--maxw);
    margin: 0 auto;
}

.section h2 {
    margin: 0 0 0.35rem;
    font-size: 1.35rem;
    font-weight: 600;
}

.section-desc {
    margin: 0 0 2rem;
    color: var(--muted);
    font-size: 0.92rem;
    max-width: 40rem;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 1rem;
}

.card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.25rem 1.35rem;
}

.card h3 {
    margin: 0 0 0.5rem;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text);
}

.card p {
    margin: 0;
    font-size: 0.9rem;
    color: var(--muted);
}

.list-adv {
    margin: 0;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 0.85rem;
}

.list-adv li {
    padding: 0.85rem 1rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-size: 0.92rem;
    color: var(--muted);
}

.list-adv li strong {
    color: var(--text);
    display: block;
    margin-bottom: 0.25rem;
}

.steps {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 1rem;
    counter-reset: step;
}

.step {
    position: relative;
    padding: 1.25rem 1rem 1.25rem 3rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-size: 0.9rem;
    color: var(--muted);
}

.step::before {
    counter-increment: step;
    content: counter(step);
    position: absolute;
    left: 1rem;
    top: 1.1rem;
    width: 1.65rem;
    height: 1.65rem;
    border-radius: 8px;
    background: rgba(108, 140, 255, 0.2);
    color: var(--accent);
    font-weight: 700;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1rem;
}

.contact-item {
    padding: 1rem;
    border-radius: var(--radius);
    border: 1px dashed var(--border);
    font-size: 0.88rem;
    color: var(--muted);
}

.contact-item strong {
    display: block;
    color: var(--text);
    margin-bottom: 0.35rem;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.site-footer {
    padding: 2rem 1.25rem;
    border-top: 1px solid var(--border);
    text-align: center;
    font-size: 0.8rem;
    color: var(--muted);
}

@media (max-width: 720px) {
    .nav-links {
        width: 100%;
        justify-content: flex-start;
    }

    .site-header-inner {
        flex-wrap: wrap;
    }
}

/* 悬浮官方公众号二维码（始终展示） */
.float-wechat {
    position: fixed;
    z-index: 60;
    right: max(1rem, env(safe-area-inset-right));
    bottom: max(1rem, env(safe-area-inset-bottom));
    width: min(220px, calc(100vw - 2rem));
    padding: 0.85rem 0.9rem 0.75rem;
    background: rgba(16, 22, 42, 0.96);
    border: 1px solid rgba(7, 193, 96, 0.35);
    border-radius: var(--radius);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.45);
    text-align: center;
    font-size: 0.875rem;
    backdrop-filter: blur(8px);
}

.float-wechat-title {
    margin: 0 0 0.55rem;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text);
}

.float-wechat-qr-wrap {
    margin: 0 auto 0.45rem;
    padding: 0.45rem;
    background: #fff;
    border-radius: 10px;
    display: inline-block;
    line-height: 0;
}

.float-wechat-qr-wrap img {
    display: block;
    width: 160px;
    height: auto;
    max-width: 100%;
}

.float-wechat-hint {
    margin: 0;
    font-size: 0.75rem;
    color: var(--muted);
}
