/* Hexin-style landing page for 檬牛科技 */

:root {
    --hx-bg: #f8faf9;
    --hx-surface: #ffffff;
    --hx-text: #0f172a;
    --hx-muted: #64748b;
    --hx-border: #e2e8f0;
    --hx-accent: #00923f;
    --hx-accent-dark: #0b1f17;
    --hx-accent-soft: #ecfdf3;
    --hx-radius: 12px;
    --hx-shadow: 0 1px 3px rgba(15, 23, 42, 0.06), 0 8px 24px rgba(15, 23, 42, 0.04);
    --hx-max: 1160px;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body.hx-page {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
    color: var(--hx-text);
    background: var(--hx-bg);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

.hx-page a {
    color: inherit;
    text-decoration: none;
}

.hx-container {
    max-width: var(--hx-max);
    margin: 0 auto;
    padding: 0 24px;
}

/* Header */
.hx-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: rgba(11, 31, 23, 0.96);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    transition: box-shadow 0.2s;
}

.hx-header.is-scrolled {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.hx-header__inner {
    max-width: var(--hx-max);
    margin: 0 auto;
    padding: 0 24px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
}

.hx-header__logo img {
    height: 36px;
    display: block;
}

.hx-nav {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: auto;
}

.hx-nav a {
    padding: 8px 14px;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.75);
    border-radius: 8px;
    transition: color 0.15s, background 0.15s;
}

.hx-nav a:hover,
.hx-nav a.is-active {
    color: #44b585;
    background: rgba(68, 181, 133, 0.12);
}

.hx-menu-btn {
    display: none;
    background: none;
    border: none;
    padding: 8px;
    cursor: pointer;
    color: #fff;
}

.hx-menu-btn span {
    display: block;
    width: 20px;
    height: 2px;
    background: currentColor;
    margin: 4px 0;
    border-radius: 1px;
}

/* Hero */
.hx-hero {
    padding: 120px 0 64px;
    background: linear-gradient(180deg, #fff 0%, var(--hx-bg) 100%);
}

.hx-hero__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: center;
}

.hx-badge {
    display: inline-block;
    padding: 6px 12px;
    font-size: 13px;
    color: var(--hx-accent);
    background: var(--hx-accent-soft);
    border-radius: 999px;
    margin-bottom: 20px;
    font-weight: 500;
}

.hx-hero h1 {
    margin: 0 0 20px;
    font-size: clamp(32px, 4vw, 48px);
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.hx-hero__lead {
    margin: 0 0 28px;
    font-size: 17px;
    color: var(--hx-muted);
    max-width: 520px;
    line-height: 1.75;
}

.hx-hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.hx-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 22px;
    font-size: 15px;
    font-weight: 600;
    border-radius: 10px;
    border: none;
    cursor: pointer;
    transition: transform 0.15s, box-shadow 0.15s, background 0.15s;
}

.hx-btn--primary {
    background: var(--hx-accent);
    color: #fff;
    box-shadow: 0 2px 8px rgba(0, 146, 63, 0.25);
}

.hx-btn--primary:hover {
    background: #007a34;
    transform: translateY(-1px);
}

.hx-btn--ghost {
    background: var(--hx-surface);
    color: var(--hx-text);
    border: 1px solid var(--hx-border);
}

.hx-btn--ghost:hover {
    border-color: var(--hx-accent);
    color: var(--hx-accent);
}

.hx-hero__visual {
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--hx-shadow);
    border: 1px solid var(--hx-border);
    background: var(--hx-surface);
}

.hx-hero__visual img {
    width: 100%;
    display: block;
    object-fit: cover;
}

/* Stats bar */
.hx-stats {
    padding: 32px 0 48px;
    border-bottom: 1px solid var(--hx-border);
}

.hx-stats__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.hx-stat {
    text-align: center;
    padding: 20px 16px;
    background: var(--hx-surface);
    border: 1px solid var(--hx-border);
    border-radius: var(--hx-radius);
}

.hx-stat strong {
    display: block;
    font-size: 28px;
    font-weight: 700;
    color: var(--hx-accent);
    margin-bottom: 6px;
    letter-spacing: -0.02em;
}

.hx-stat span {
    font-size: 14px;
    color: var(--hx-muted);
}

/* Section common */
.hx-section {
    padding: 80px 0;
}

.hx-section--alt {
    background: var(--hx-surface);
    border-top: 1px solid var(--hx-border);
    border-bottom: 1px solid var(--hx-border);
}

.hx-section__label {
    display: inline-block;
    font-size: 13px;
    font-weight: 600;
    color: var(--hx-accent);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 12px;
}

.hx-section h2 {
    margin: 0 0 16px;
    font-size: clamp(26px, 3vw, 34px);
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.25;
}

.hx-section__desc {
    margin: 0 0 40px;
    font-size: 16px;
    color: var(--hx-muted);
    max-width: 640px;
    line-height: 1.75;
}

/* Pain points */
.hx-pain__grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.hx-card {
    padding: 24px;
    background: var(--hx-surface);
    border: 1px solid var(--hx-border);
    border-radius: var(--hx-radius);
    transition: box-shadow 0.2s, border-color 0.2s;
}

.hx-card:hover {
    box-shadow: var(--hx-shadow);
    border-color: #cbd5e1;
}

.hx-card h3 {
    margin: 0 0 10px;
    font-size: 17px;
    font-weight: 600;
}

.hx-card p {
    margin: 0;
    font-size: 15px;
    color: var(--hx-muted);
    line-height: 1.65;
}

/* Workflow */
.hx-workflow__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.hx-step {
    padding: 24px;
    background: var(--hx-bg);
    border: 1px solid var(--hx-border);
    border-radius: var(--hx-radius);
    position: relative;
}

.hx-step__num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    font-size: 14px;
    font-weight: 700;
    color: var(--hx-accent);
    background: var(--hx-accent-soft);
    border-radius: 10px;
    margin-bottom: 16px;
}

.hx-step h3 {
    margin: 0 0 8px;
    font-size: 16px;
    font-weight: 600;
}

.hx-step p {
    margin: 0;
    font-size: 14px;
    color: var(--hx-muted);
    line-height: 1.6;
}

/* Modules */
.hx-modules__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.hx-module {
    padding: 22px;
    background: var(--hx-bg);
    border: 1px solid var(--hx-border);
    border-radius: var(--hx-radius);
    transition: border-color 0.2s, background 0.2s;
}

.hx-module:hover {
    border-color: var(--hx-accent);
    background: var(--hx-accent-soft);
}

.hx-module h3 {
    margin: 0 0 8px;
    font-size: 16px;
    font-weight: 600;
}

.hx-module p {
    margin: 0;
    font-size: 14px;
    color: var(--hx-muted);
    line-height: 1.55;
}

.hx-modules__visual {
    margin-top: 40px;
    border-radius: var(--hx-radius);
    overflow: hidden;
    border: 1px solid var(--hx-border);
    box-shadow: var(--hx-shadow);
}

.hx-modules__visual img {
    width: 100%;
    display: block;
}

/* Feature matrix */
.hx-matrix__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.hx-matrix-item {
    padding: 20px;
    background: var(--hx-surface);
    border: 1px solid var(--hx-border);
    border-radius: var(--hx-radius);
}

.hx-matrix-item__tag {
    display: inline-block;
    font-size: 12px;
    font-weight: 600;
    color: var(--hx-accent);
    background: var(--hx-accent-soft);
    padding: 3px 8px;
    border-radius: 6px;
    margin-bottom: 10px;
}

.hx-matrix-item h3 {
    margin: 0 0 8px;
    font-size: 15px;
    font-weight: 600;
}

.hx-matrix-item p {
    margin: 0;
    font-size: 14px;
    color: var(--hx-muted);
    line-height: 1.55;
}

/* Platform logos */
.hx-platform__grid {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
    align-items: center;
    padding: 32px;
    background: var(--hx-bg);
    border: 1px solid var(--hx-border);
    border-radius: var(--hx-radius);
}

.hx-platform__grid img {
    height: 36px;
    width: auto;
    object-fit: contain;
    opacity: 0.85;
    transition: opacity 0.15s;
    filter: grayscale(20%);
}

.hx-platform__grid img:hover {
    opacity: 1;
    filter: none;
}

/* Data / metrics */
.hx-metrics__grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 16px;
}

.hx-metric {
    text-align: center;
    padding: 28px 16px;
    background: var(--hx-bg);
    border: 1px solid var(--hx-border);
    border-radius: var(--hx-radius);
}

.hx-metric strong {
    display: block;
    font-size: 32px;
    font-weight: 700;
    color: var(--hx-text);
    margin-bottom: 8px;
}

.hx-metric strong em {
    font-style: normal;
    color: var(--hx-accent);
}

.hx-metric span {
    font-size: 14px;
    color: var(--hx-muted);
}

/* Security */
.hx-security__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: center;
}

.hx-security__list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin-top: 32px;
}

.hx-security__item {
    padding: 16px;
    background: var(--hx-bg);
    border: 1px solid var(--hx-border);
    border-radius: var(--hx-radius);
}

.hx-security__item strong {
    display: block;
    font-size: 15px;
    margin-bottom: 4px;
}

.hx-security__item span {
    font-size: 13px;
    color: var(--hx-muted);
}

.hx-security__visual img {
    width: 100%;
    border-radius: var(--hx-radius);
    border: 1px solid var(--hx-border);
}

/* Pricing */
.hx-pricing__note {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 32px;
    padding: 8px 14px;
    font-size: 14px;
    color: var(--hx-muted);
    background: var(--hx-bg);
    border: 1px solid var(--hx-border);
    border-radius: 999px;
}

.hx-pricing__note strong {
    color: var(--hx-accent);
}

.hx-pricing__toggle {
    display: inline-flex;
    padding: 4px;
    background: var(--hx-bg);
    border: 1px solid var(--hx-border);
    border-radius: 10px;
    margin-bottom: 36px;
}

.hx-pricing__toggle button {
    padding: 8px 20px;
    font-size: 14px;
    font-weight: 600;
    border: none;
    background: transparent;
    color: var(--hx-muted);
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.15s, color 0.15s;
}

.hx-pricing__toggle button.is-active {
    background: var(--hx-surface);
    color: var(--hx-text);
    box-shadow: 0 1px 4px rgba(15, 23, 42, 0.08);
}

.hx-pricing__toggle .hx-pricing__badge {
    margin-left: 4px;
    font-size: 11px;
    font-weight: 600;
    color: var(--hx-accent);
    background: var(--hx-accent-soft);
    padding: 2px 6px;
    border-radius: 4px;
}

.hx-pricing__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    align-items: stretch;
}

.hx-plan {
    display: flex;
    flex-direction: column;
    padding: 28px;
    background: var(--hx-surface);
    border: 1px solid var(--hx-border);
    border-radius: 16px;
    transition: box-shadow 0.2s, border-color 0.2s;
}

.hx-plan:hover {
    box-shadow: var(--hx-shadow);
}

.hx-plan--featured {
    border-color: var(--hx-accent);
    box-shadow: 0 4px 24px rgba(0, 146, 63, 0.12);
    position: relative;
}

.hx-plan__tag {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    padding: 4px 14px;
    font-size: 12px;
    font-weight: 600;
    color: #fff;
    background: var(--hx-accent);
    border-radius: 999px;
    white-space: nowrap;
}

.hx-plan h3 {
    margin: 0 0 8px;
    font-size: 20px;
    font-weight: 700;
}

.hx-plan__desc {
    margin: 0 0 20px;
    font-size: 14px;
    color: var(--hx-muted);
    line-height: 1.5;
    min-height: 42px;
}

.hx-plan__price {
    margin-bottom: 24px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--hx-border);
}

.hx-plan__price strong {
    display: block;
    font-size: 56px;
    font-weight: 800;
    letter-spacing: -0.03em;
    color: var(--hx-accent);
    line-height: 1.1;
}

.hx-plan__price strong small {
    font-size: 32px;
    font-weight: 800;
    color: var(--hx-accent);
}

.hx-plan__price .hx-price-num {
    font-size: 56px;
    font-weight: 800;
    color: var(--hx-accent);
}

.hx-plan__price > span {
    display: block;
    margin-top: 8px;
    font-size: 13px;
    font-weight: 400;
    color: var(--hx-muted);
}

.hx-plan__features {
    list-style: none;
    margin: 0 0 28px;
    padding: 0;
    flex: 1;
}

.hx-plan__features li {
    position: relative;
    padding-left: 22px;
    margin-bottom: 12px;
    font-size: 14px;
    color: var(--hx-text);
    line-height: 1.5;
}

.hx-plan__features li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--hx-accent);
    font-weight: 700;
}

.hx-plan__features li.is-muted {
    color: var(--hx-muted);
}

.hx-plan__features li.is-muted::before {
    content: "—";
    color: #cbd5e1;
}

.hx-plan .hx-btn {
    width: 100%;
}

.hx-plan--featured .hx-btn--primary {
    box-shadow: 0 4px 14px rgba(0, 146, 63, 0.3);
}

/* Fee standards table */
.hx-fees {
    margin-top: 48px;
    padding: 32px;
    background: var(--hx-bg);
    border: 1px solid var(--hx-border);
    border-radius: var(--hx-radius);
}

.hx-fees h3 {
    margin: 0 0 8px;
    font-size: 18px;
    font-weight: 700;
}

.hx-fees > p {
    margin: 0 0 24px;
    font-size: 14px;
    color: var(--hx-muted);
}

.hx-fees__table-wrap {
    overflow-x: auto;
}

.hx-fees__table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.hx-fees__table th,
.hx-fees__table td {
    padding: 14px 16px;
    text-align: left;
    border-bottom: 1px solid var(--hx-border);
}

.hx-fees__table th {
    font-weight: 600;
    color: var(--hx-text);
    background: var(--hx-surface);
}

.hx-fees__table td {
    color: var(--hx-muted);
}

.hx-fees__table tr:last-child td {
    border-bottom: none;
}

.hx-fees__table td:first-child {
    color: var(--hx-text);
    font-weight: 500;
    white-space: nowrap;
}

.hx-fees__table td:nth-child(3) {
    color: var(--hx-accent);
    font-weight: 600;
    white-space: nowrap;
}

.hx-fees__notes {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid var(--hx-border);
}

.hx-fees__note-item {
    font-size: 13px;
    color: var(--hx-muted);
    line-height: 1.65;
}

.hx-fees__note-item strong {
    display: block;
    color: var(--hx-text);
    font-size: 14px;
    margin-bottom: 4px;
}

/* Footer */
.hx-footer {
    background: var(--hx-accent-dark);
    color: rgba(255, 255, 255, 0.85);
    padding: 64px 0 0;
}

.hx-footer__grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 40px;
    padding-bottom: 48px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.hx-footer__brand h3 {
    margin: 0 0 12px;
    font-size: 18px;
    color: #fff;
}

.hx-footer__brand p {
    margin: 0;
    font-size: 14px;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.65);
}

.hx-footer__col h4 {
    margin: 0 0 16px;
    font-size: 14px;
    font-weight: 600;
    color: #fff;
}

.hx-footer__col ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.hx-footer__col li {
    margin-bottom: 10px;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.65);
}

.hx-footer__col a:hover {
    color: #44b585;
}

.hx-footer__contact li {
    line-height: 1.6;
}

.hx-footer__bottom {
    padding: 20px 0;
    text-align: center;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.45);
}

.hx-footer__bottom a {
    color: rgba(255, 255, 255, 0.55);
}

.hx-footer__bottom a:hover {
    color: #44b585;
}

/* About page overrides */
.hx-about-banner {
    padding-top: 64px;
    background: linear-gradient(180deg, #fff 0%, var(--hx-bg) 100%);
}

.hx-about-banner img {
    width: 100%;
    max-height: 280px;
    object-fit: cover;
    display: block;
}

.hx-about-body {
    padding: 48px 0 80px;
}

.hx-about-body.l-aboutuscon {
    margin-top: -60px;
}

/* Legal pages (privacy, terms) */
.hx-legal {
    padding: 104px 0 80px;
}

.hx-legal__header {
    margin-bottom: 40px;
    padding-bottom: 32px;
    border-bottom: 1px solid var(--hx-border);
}

.hx-legal__header h1 {
    margin: 0 0 12px;
    font-size: clamp(28px, 3vw, 36px);
    font-weight: 700;
    letter-spacing: -0.02em;
}

.hx-legal__meta {
    font-size: 14px;
    color: var(--hx-muted);
    line-height: 1.7;
}

.hx-legal__body {
    max-width: 800px;
}

.hx-legal__body h2 {
    margin: 36px 0 14px;
    font-size: 18px;
    font-weight: 700;
    color: var(--hx-text);
}

.hx-legal__body h2:first-child {
    margin-top: 0;
}

.hx-legal__body p,
.hx-legal__body li {
    font-size: 15px;
    color: var(--hx-muted);
    line-height: 1.85;
}

.hx-legal__body p {
    margin: 0 0 14px;
}

.hx-legal__body ul,
.hx-legal__body ol {
    margin: 0 0 14px;
    padding-left: 24px;
}

.hx-legal__body li {
    margin-bottom: 8px;
}

.hx-legal__body strong,
.hx-legal__body b {
    color: var(--hx-text);
    font-weight: 600;
}

.hx-legal__body a {
    color: var(--hx-accent);
    text-decoration: underline;
}

.hx-legal__body a:hover {
    color: #007a34;
}

/* Footer */
@media (max-width: 992px) {
    .hx-hero__grid,
    .hx-security__grid {
        grid-template-columns: 1fr;
    }

    .hx-hero__visual {
        order: -1;
    }

    .hx-stats__grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .hx-workflow__grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .hx-modules__grid,
    .hx-matrix__grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .hx-metrics__grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .hx-footer__grid {
        grid-template-columns: 1fr 1fr;
    }

    .hx-pain__grid {
        grid-template-columns: 1fr;
    }

    .hx-pricing__grid {
        grid-template-columns: 1fr;
        max-width: 420px;
        margin: 0 auto;
    }

    .hx-fees__notes {
        grid-template-columns: 1fr;
    }

    .hx-plan__price strong,
    .hx-plan__price .hx-price-num {
        font-size: 48px;
    }
}

@media (max-width: 768px) {
    .hx-menu-btn {
        display: block;
    }

    .hx-nav {
        display: none;
        position: absolute;
        top: 64px;
        left: 0;
        right: 0;
        flex-direction: column;
        background: var(--hx-accent-dark);
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
        padding: 12px 24px 20px;
        box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
    }

    .hx-nav.is-open {
        display: flex;
    }

    .hx-nav a {
        width: 100%;
    }

    .hx-header__inner {
        position: relative;
    }

    .hx-section {
        padding: 56px 0;
    }

    .hx-workflow__grid,
    .hx-modules__grid,
    .hx-matrix__grid,
    .hx-metrics__grid {
        grid-template-columns: 1fr;
    }

    .hx-security__list {
        grid-template-columns: 1fr;
    }

    .hx-footer__grid {
        grid-template-columns: 1fr;
        gap: 28px;
    }
}
