/* Finance 产品主页样式（纯静态，无脚本） */

:root {
    --brand: #137a67;
    --brand-dark: #0e5f50;
    --brand-light: #e6f2ef;
    --text: #1f2d2a;
    --text-muted: #5b6b67;
    --page-bg: #f3f7f6;
    --card-bg: #ffffff;
    --border: #dbe7e3;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    background: var(--page-bg);
    color: var(--text);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
        "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

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

a {
    color: var(--brand);
    text-decoration: none;
}

/* 顶栏 */

.site-header {
    background: var(--card-bg);
    border-bottom: 1px solid var(--border);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 14px;
    padding-bottom: 14px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--text);
    font-size: 1.15rem;
    font-weight: 600;
}

.brand img {
    width: 30px;
    height: 30px;
    border-radius: 8px;
}

.github-link {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: var(--text-muted);
    font-size: 0.95rem;
    transition: color 0.15s ease;
}

.github-link:hover {
    color: var(--text);
}

.github-link svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

/* 首屏 */

.hero {
    text-align: center;
    padding: 72px 0 40px;
}

.hero-eyebrow {
    width: fit-content;
    margin: 0 auto 18px;
    padding: 5px 11px;
    border: 1px solid rgba(19, 122, 103, 0.22);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.64);
    color: var(--brand-dark);
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.12em;
}

.hero-icon {
    width: 92px;
    height: 92px;
    border-radius: 22px;
    box-shadow: 0 12px 30px rgba(19, 122, 103, 0.22);
}

.hero h1 {
    margin: 24px 0 8px;
    font-size: clamp(2.2rem, 5vw, 3rem);
    letter-spacing: 0.02em;
}

.tagline {
    margin: 0;
    font-size: 1.25rem;
    color: var(--text);
}

.subline {
    margin: 10px 0 0;
    font-size: 1rem;
    color: var(--text-muted);
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 14px;
    margin-top: 34px;
}

/* 按钮 */

.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 22px;
    border-radius: 10px;
    border: 1px solid transparent;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.15s ease, color 0.15s ease,
        border-color 0.15s ease, transform 0.15s ease,
        box-shadow 0.15s ease;
}

.btn svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
}

.btn-primary {
    background: var(--brand);
    color: #ffffff;
}

.btn-primary:hover {
    background: var(--brand-dark);
    transform: translateY(-1px);
    box-shadow: 0 8px 20px rgba(19, 122, 103, 0.25);
}

.btn-outline {
    background: var(--card-bg);
    color: var(--brand);
    border-color: var(--brand);
}

.btn-outline:hover {
    background: var(--brand-light);
    transform: translateY(-1px);
}

.btn-ghost {
    background: var(--card-bg);
    color: var(--text-muted);
    border-color: var(--border);
}

.btn-ghost:hover {
    color: var(--brand);
    border-color: var(--brand);
}

/* 截图预览 */

.screenshot {
    padding: 24px 0 56px;
}

.screenshot figure {
    margin: 0;
    max-width: 920px;
    margin-left: auto;
    margin-right: auto;
}

.screenshot img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 14px;
    border: 1px solid var(--border);
    box-shadow: 0 24px 60px rgba(19, 122, 103, 0.14);
}

.screenshot-link {
    display: block;
}

.screenshot figcaption {
    margin-top: 14px;
    text-align: center;
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* 平台入口卡片 */

.platforms {
    padding: 8px 0 72px;
}

.platforms h2 {
    margin: 0 0 28px;
    text-align: center;
    font-size: 1.5rem;
}

.platform-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.platform-card {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 28px 24px;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.platform-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 14px 34px rgba(19, 122, 103, 0.12);
}

.platform-icon {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background: var(--brand-light);
    color: var(--brand);
}

.platform-icon svg {
    width: 24px;
    height: 24px;
    fill: currentColor;
}

.platform-card h3 {
    margin: 16px 0 0;
    font-size: 1.1rem;
}

.platform-card p {
    flex: 1;
    margin: 10px 0 20px;
    font-size: 0.92rem;
    color: var(--text-muted);
}

.btn-card {
    padding: 10px 18px;
    font-size: 0.92rem;
    background: var(--card-bg);
    color: var(--brand);
    border-color: var(--brand);
}

.btn-card:hover {
    background: var(--brand-light);
}

/* 页脚 */

.site-footer {
    background: var(--card-bg);
    border-top: 1px solid var(--border);
}

.footer-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding-top: 20px;
    padding-bottom: 20px;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.footer-links {
    display: inline-flex;
    gap: 18px;
}

.footer-links a {
    color: var(--text-muted);
}

.footer-links a:hover {
    color: var(--brand);
}

/* 小屏适配 */

@media (max-width: 860px) {
    .platform-grid {
        grid-template-columns: 1fr;
    }

    .hero {
        padding: 56px 0 32px;
    }
}

@media (max-width: 640px) {
    .container {
        padding-left: 18px;
        padding-right: 18px;
    }

    .hero {
        padding: 42px 0 28px;
        text-align: left;
    }

    .hero-eyebrow {
        margin-right: 0;
        margin-left: 0;
    }

    .hero-icon {
        width: 76px;
        height: 76px;
        border-radius: 18px;
    }

    .hero h1 {
        margin-top: 18px;
    }

    .hero-actions {
        flex-direction: column;
        align-items: stretch;
        margin-top: 26px;
    }

    .hero-actions .btn {
        justify-content: center;
    }

    .hero-actions .action-web {
        order: 1;
        border-color: var(--brand);
        background: var(--brand);
        color: #fff;
    }

    .hero-actions .action-android {
        order: 2;
    }

    .hero-actions .action-windows {
        order: 3;
        border-color: var(--border);
        background: var(--card-bg);
        color: var(--text-muted);
        box-shadow: none;
    }

    .screenshot {
        padding-top: 12px;
        padding-bottom: 44px;
    }

    .platform-card {
        display: grid;
        grid-template-columns: 44px minmax(0, 1fr);
        column-gap: 14px;
        padding: 20px 18px;
    }

    .platform-icon {
        grid-row: 1 / 3;
    }

    .platform-card h3 {
        margin: 0;
    }

    .platform-card p {
        grid-column: 2;
        margin: 7px 0 16px;
    }

    .platform-card .btn-card {
        grid-column: 1 / -1;
        justify-content: center;
    }

    .footer-inner {
        justify-content: center;
        text-align: center;
    }
}
