/* Shine 官网 — site/css/site.css */

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --bg: #050508;
    --bg-soft: #0a0a10;
    --surface: #0e0e14;
    --surface-2: #16161f;
    --border: rgba(255, 255, 255, 0.07);
    --text: #f0f0f5;
    --text-secondary: #8e8ea0;
    --text-muted: #5a5a6e;
    --accent: #ff2d78;
    --accent-2: #ff6b9d;
    --accent-glow: rgba(255, 45, 120, 0.45);
    --accent-bg: rgba(255, 45, 120, 0.1);
    --max: 1180px;
    --nav-h: 68px;
}

html { scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after {
        animation: none !important;
        transition: none !important;
    }
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

/* 环境光 */
body::before,
body::after {
    content: "";
    position: fixed;
    pointer-events: none;
    z-index: 0;
}

body::before {
    top: -30vh;
    left: 50%;
    transform: translateX(-50%);
    width: min(900px, 120vw);
    height: 70vh;
    background: radial-gradient(ellipse, rgba(255, 45, 120, 0.14) 0%, transparent 68%);
}

body::after {
    bottom: 10%;
    right: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(120, 80, 255, 0.08) 0%, transparent 70%);
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; height: auto; }
ul { list-style: none; }

.wrap {
    width: min(calc(100% - 48px), var(--max));
    margin-inline: auto;
    position: relative;
    z-index: 1;
}

/* ── 导航 ── */
.topbar {
    position: fixed;
    inset: 0 0 auto;
    z-index: 200;
    height: var(--nav-h);
    border-bottom: 1px solid var(--border);
    background: rgba(5, 5, 8, 0.78);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
}

.topbar-inner {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    flex-shrink: 0;
}

.logo img {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    box-shadow: 0 6px 20px var(--accent-glow);
}

.menu {
    display: flex;
    align-items: center;
    gap: 32px;
}

.menu a {
    font-size: 0.875rem;
    color: var(--text-secondary);
    transition: color 0.2s;
}

.menu a:hover { color: var(--text); }

.menu-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.btn-ghost {
    padding: 9px 18px;
    border-radius: 999px;
    border: 1px solid var(--border);
    font-size: 0.875rem;
    color: var(--text-secondary);
    transition: border-color 0.2s, color 0.2s;
}

.btn-ghost:hover {
    border-color: rgba(255, 255, 255, 0.18);
    color: var(--text);
}

.btn-accent {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 22px;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--accent) 0%, #c9155a 100%);
    color: #fff;
    font-size: 0.875rem;
    font-weight: 600;
    box-shadow: 0 8px 28px var(--accent-glow);
    transition: transform 0.2s, box-shadow 0.2s;
}

.btn-accent:hover {
    transform: translateY(-1px);
    box-shadow: 0 12px 36px var(--accent-glow);
}

.menu-toggle {
    display: none;
    width: 42px;
    height: 42px;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: var(--surface);
    color: var(--text);
    cursor: pointer;
}

/* ── Hero（星野式居中） ── */
.hero {
    padding: calc(var(--nav-h) + 72px) 0 96px;
    text-align: center;
}

.hero-icon {
    width: 96px;
    height: 96px;
    margin: 0 auto 28px;
    border-radius: 24px;
    overflow: hidden;
    box-shadow:
        0 16px 48px var(--accent-glow),
        0 0 0 1px rgba(255, 255, 255, 0.06);
}

.hero h1 {
    font-size: clamp(2rem, 5vw, 3.25rem);
    font-weight: 700;
    line-height: 1.25;
    letter-spacing: -0.02em;
    max-width: 16em;
    margin: 0 auto 20px;
    background: linear-gradient(180deg, #fff 0%, #ffd0e3 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-lead {
    font-size: clamp(1rem, 2vw, 1.2rem);
    color: var(--text-secondary);
    max-width: 36em;
    margin: 0 auto 12px;
    line-height: 1.75;
}

.hero-sub {
    font-size: 0.9375rem;
    color: var(--text-muted);
    max-width: 32em;
    margin: 0 auto 40px;
}

.store-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 14px;
    margin-bottom: 64px;
}

.store-btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    min-width: 200px;
    padding: 14px 24px;
    border-radius: 14px;
    border: 1px solid var(--border);
    background: var(--surface);
    transition: transform 0.2s, border-color 0.2s, background 0.2s;
}

.store-btn:hover {
    transform: translateY(-2px);
    border-color: rgba(255, 255, 255, 0.14);
    background: var(--surface-2);
}

.store-btn.primary {
    border-color: rgba(255, 45, 120, 0.35);
    background: linear-gradient(135deg, rgba(255, 45, 120, 0.18), rgba(255, 45, 120, 0.06));
}

.store-btn svg {
    width: 28px;
    height: 28px;
    flex-shrink: 0;
}

.store-btn .label {
    text-align: left;
}

.store-btn .label small {
    display: block;
    font-size: 0.6875rem;
    color: var(--text-muted);
    line-height: 1.2;
}

.store-btn .label strong {
    display: block;
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--text);
}

/* 截图展示 */
.showcase {
    position: relative;
    max-width: 980px;
    margin: 0 auto;
}

.showcase-track {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.showcase-item {
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid var(--border);
    aspect-ratio: 9 / 16;
    background: var(--surface);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.35);
    transition: transform 0.3s, box-shadow 0.3s;
}

.showcase-item:hover {
    transform: translateY(-6px);
    box-shadow: 0 28px 56px rgba(0, 0, 0, 0.45);
}

.showcase-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.showcase-item.featured {
    grid-column: span 1;
    transform: scale(1.04);
    border-color: rgba(255, 45, 120, 0.25);
    box-shadow: 0 24px 48px var(--accent-glow);
}

/* ── 区块通用 ── */
.block {
    padding: 96px 0;
}

.block-muted {
    background: linear-gradient(180deg, var(--bg-soft) 0%, var(--bg) 100%);
    border-block: 1px solid var(--border);
}

.block-head {
    text-align: center;
    max-width: 640px;
    margin: 0 auto 56px;
}

.eyebrow {
    display: inline-block;
    margin-bottom: 12px;
    padding: 4px 12px;
    border-radius: 999px;
    background: var(--accent-bg);
    border: 1px solid rgba(255, 45, 120, 0.2);
    color: var(--accent-2);
    font-size: 0.75rem;
    letter-spacing: 0.12em;
}

.block-head h2 {
    font-size: clamp(1.75rem, 3vw, 2.375rem);
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 14px;
}

.block-head p {
    color: var(--text-secondary);
    font-size: 1rem;
    line-height: 1.75;
}

/* 左右图文 */
.story {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 56px;
    align-items: center;
}

.story.reverse .story-media { order: 2; }
.story.reverse .story-copy { order: 1; }

.story-media {
    border-radius: 24px;
    overflow: hidden;
    border: 1px solid var(--border);
    box-shadow: 0 32px 64px rgba(0, 0, 0, 0.4);
}

.story-media img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
}

.story-copy h2 {
    font-size: clamp(1.5rem, 2.5vw, 2rem);
    line-height: 1.35;
    margin-bottom: 18px;
}

.story-copy p {
    color: var(--text-secondary);
    font-size: 0.9375rem;
    line-height: 1.85;
    margin-bottom: 14px;
}

.story-copy p:last-child { margin-bottom: 0; }

/* 功能网格 */
.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.card {
    padding: 28px 24px;
    border-radius: 18px;
    background: var(--surface);
    border: 1px solid var(--border);
    transition: border-color 0.25s, transform 0.25s;
}

.card:hover {
    border-color: rgba(255, 45, 120, 0.22);
    transform: translateY(-4px);
}

.card-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 18px;
    background: var(--accent-bg);
    color: var(--accent-2);
}

.card-icon svg { width: 22px; height: 22px; }

.card h3 {
    font-size: 1.0625rem;
    margin-bottom: 10px;
}

.card p {
    font-size: 0.875rem;
    color: var(--text-secondary);
    line-height: 1.75;
}

/* 应用信息面板 */
.info-panel {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 48px;
    padding: 40px;
    border-radius: 24px;
    background:
        linear-gradient(135deg, rgba(255, 45, 120, 0.09) 0%, transparent 55%),
        var(--surface);
    border: 1px solid var(--border);
}

.info-brand {
    text-align: center;
    padding-top: 8px;
}

.info-brand img {
    width: 108px;
    height: 108px;
    margin: 0 auto 16px;
    border-radius: 26px;
    box-shadow: 0 16px 40px var(--accent-glow);
}

.info-brand h3 {
    font-size: 1.75rem;
    letter-spacing: 0.1em;
    margin-bottom: 4px;
}

.info-brand span {
    font-size: 0.75rem;
    color: var(--text-muted);
    letter-spacing: 0.28em;
}

.info-table {
    display: grid;
    grid-template-columns: 108px 1fr;
    gap: 14px 20px;
    font-size: 0.875rem;
}

.info-table dt { color: var(--text-muted); }
.info-table dd { color: var(--text-secondary); line-height: 1.65; }
.info-table a { color: var(--accent-2); text-decoration: underline; text-underline-offset: 3px; }
.info-table a:hover { color: #fff; }

/* 联系 */
.contact-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.contact-box {
    padding: 28px;
    border-radius: 16px;
    background: var(--surface);
    border: 1px solid var(--border);
}

.contact-box h3 {
    font-size: 0.8125rem;
    color: var(--text-muted);
    font-weight: 500;
    margin-bottom: 10px;
}

.contact-box p,
.contact-box a {
    font-size: 0.9375rem;
    color: var(--text);
    line-height: 1.65;
}

.contact-box a { color: var(--accent-2); }
.contact-box a:hover { color: #fff; }

/* ── 页脚 ── */
.footer {
    padding: 56px 0 36px;
    border-top: 1px solid var(--border);
    background: #030306;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.1fr 2fr;
    gap: 48px;
    margin-bottom: 40px;
}

.footer-about p {
    margin-top: 14px;
    max-width: 300px;
    font-size: 0.875rem;
    color: var(--text-muted);
    line-height: 1.7;
}

.footer-cols {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.footer-cols h4 {
    font-size: 0.8125rem;
    color: var(--text-secondary);
    margin-bottom: 14px;
}

.footer-cols li {
    margin-bottom: 10px;
    font-size: 0.875rem;
    color: var(--text-muted);
}

.footer-cols a {
    color: var(--text-muted);
    transition: color 0.2s;
}

.footer-cols a:hover { color: var(--accent-2); }

.footer-legal {
    padding-top: 24px;
    border-top: 1px solid var(--border);
    font-size: 0.75rem;
    color: var(--text-muted);
    line-height: 1.9;
}

.footer-legal a {
    color: var(--text-secondary);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.footer-legal a:hover { color: var(--accent-2); }

/* ── 响应式 ── */
@media (max-width: 1024px) {
    .showcase-track {
        grid-template-columns: repeat(2, 1fr);
    }

    .showcase-item.featured {
        transform: none;
    }

    .story,
    .info-panel,
    .grid-3,
    .contact-row,
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .story.reverse .story-media,
    .story.reverse .story-copy {
        order: unset;
    }
}

@media (max-width: 768px) {
    .wrap { width: min(calc(100% - 32px), var(--max)); }

    .topbar-inner { position: relative; }

    .menu {
        display: none;
    }

    .menu.open {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        position: fixed;
        top: var(--nav-h);
        left: 0;
        right: 0;
        padding: 16px 24px 20px;
        background: rgba(5, 5, 8, 0.98);
        border-bottom: 1px solid var(--border);
        gap: 14px;
        z-index: 199;
    }

    .menu.open a { padding: 8px 0; font-size: 1rem; }

    .menu-actions .btn-ghost { display: none; }

    .menu-toggle { display: inline-flex; align-items: center; justify-content: center; }

    .hero { padding-top: calc(var(--nav-h) + 48px); }

    .store-btn { min-width: 100%; justify-content: center; }

    .showcase-track { grid-template-columns: 1fr 1fr; gap: 12px; }

    .block { padding: 72px 0; }

    .info-panel { padding: 28px 20px; }

    .info-table { grid-template-columns: 1fr; gap: 6px; }
    .info-table dt { margin-top: 10px; }

    .footer-cols { grid-template-columns: 1fr; }
}
