/* HiCN homepage — inspired by WorkBuddy / codebuddy.cn/work */

@font-face {
    font-family: "Alimama ShuHeiTi";
    src: url("https://acc-1258344699.cos.accelerate.myqcloud.com/web/website/assets/AlimamaShuHeiTi-Bold.woff2") format("woff2");
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Alimama FangYuanTi VF";
    src: url("https://acc-1258344699.cos.accelerate.myqcloud.com/web/website/assets/AlimamaFangYuanTiVF-Thin.woff2") format("woff2");
    font-weight: 100 900;
    font-style: normal;
    font-display: swap;
}

body.page-home {
    --wb-bg: #000;
    --wb-surface: #191a23;
    --wb-surface-2: #0e0e0e;
    --wb-text: #efeeec;
    --wb-muted: #d2d3e0;
    --wb-faint: rgba(239, 238, 236, 0.65);
    --wb-line: rgba(239, 238, 236, 0.08);
    --wb-accent: #28b894;
    --wb-accent-soft: rgba(40, 184, 148, 0.12);
    --wb-accent-hot: #32e6b9;
    --wb-display: "Alimama ShuHeiTi", "PingFang SC", "Microsoft YaHei", sans-serif;
    --wb-body: "Alimama FangYuanTi VF", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;

    background: var(--wb-bg);
    color: var(--wb-text);
    font-family: var(--wb-body);
}

body.page-home .site-header {
    border-bottom: 1px solid var(--wb-line);
    background: rgba(0, 0, 0, 0.72);
    backdrop-filter: blur(18px) saturate(1.1);
}

body.page-home .brand,
body.page-home .brand-text,
body.page-home .main-nav a.is-active {
    color: #fff;
}

body.page-home .main-nav a {
    color: rgba(239, 238, 236, 0.72);
}

body.page-home .main-nav a:hover {
    color: #fff;
}

body.page-home .main-nav a.is-active {
    box-shadow: inset 0 -2px 0 var(--wb-accent);
}

body.page-home .lang-switcher a {
    color: rgba(210, 211, 224, 0.7);
}

body.page-home .lang-switcher a.is-active {
    color: #fff;
    border-color: var(--wb-line);
    background: rgba(255, 255, 255, 0.06);
}

body.page-home .site-footer {
    background: #000;
    border-top: 1px solid var(--wb-line);
}

body.page-home .footer-brand,
body.page-home .footer-title {
    color: #fff;
}

body.page-home .footer-desc,
body.page-home .footer-col a,
body.page-home .footer-copy {
    color: rgba(210, 211, 224, 0.62);
}

body.page-home .footer-col a:hover,
body.page-home .footer-licenses a:hover {
    color: #fff;
}

body.page-home .footer-copy {
    border-top-color: var(--wb-line);
}

.wb-accent { color: var(--wb-accent); }

.wb-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 48px;
    padding: 0 20px;
    border: 1px solid var(--wb-accent);
    border-radius: 4px;
    background: transparent;
    color: var(--wb-accent);
    font-family: var(--wb-display);
    font-size: clamp(14px, 1.4vw, 18px);
    font-weight: 700;
    letter-spacing: 0.06em;
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.wb-btn:hover {
    background: var(--wb-accent-soft);
    color: var(--wb-accent-hot);
}

.wb-btn--soft {
    border-color: rgba(255, 255, 255, 0.22);
    color: #fff;
}

.wb-btn--soft:hover {
    border-color: rgba(255, 255, 255, 0.5);
    background: rgba(255, 255, 255, 0.06);
    color: #fff;
}

.wb-btn--solid {
    background: var(--wb-accent);
    color: #04140f;
    border-color: var(--wb-accent);
}

.wb-btn--solid:hover {
    background: var(--wb-accent-hot);
    color: #04140f;
    border-color: var(--wb-accent-hot);
}

/* ---------- hero ---------- */
.wb-hero {
    position: relative;
    overflow: hidden;
    padding: 120px 0 72px;
}

.wb-hero__glow {
    position: absolute;
    inset: -10% 20% auto -10%;
    height: 55%;
    background: radial-gradient(ellipse at center, rgba(40, 184, 148, 0.18), transparent 68%);
    pointer-events: none;
}

.wb-hero__container {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(280px, 0.95fr);
    gap: clamp(28px, 4vw, 56px);
    align-items: center;
}

.wb-hero__content {
    display: flex;
    flex-direction: column;
    gap: 22px;
    min-width: 0;
    animation: wbRise 0.9s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.wb-hero__en {
    margin: 0;
    font-family: var(--wb-body);
    font-weight: 300;
    font-size: clamp(14px, 1.6vw, 28px);
    line-height: 1.4;
    color: #fff;
    letter-spacing: 0.02em;
}

.wb-hero__title {
    margin: 0;
    font-family: var(--wb-display);
    font-weight: 700;
    font-size: clamp(32px, 5vw, 72px);
    line-height: 1.12;
    color: #fff;
    letter-spacing: 0.02em;
}

.wb-hero__desc {
    display: grid;
    gap: 10px;
    max-width: 42rem;
}

.wb-hero__desc p {
    margin: 0;
    font-family: var(--wb-body);
    font-weight: 500;
    font-size: clamp(13px, 1.05vw, 18px);
    line-height: 1.85;
    color: rgba(239, 238, 236, 0.88);
}

.wb-hero__features { color: #fff !important; }

.wb-hero__cta {
    margin-top: 12px;
    width: 100%;
    max-width: 520px;
}

.wb-hero__cta .download-panel {
    max-width: none;
    width: 100%;
}

.wb-hero__trial {
    margin: 0;
    color: rgba(210, 211, 224, 0.7);
    font-size: 13px;
}

.wb-hero__explore {
    align-self: flex-start;
}

.wb-hero__visual {
    position: relative;
    animation: wbRise 1s cubic-bezier(0.22, 1, 0.36, 1) 0.12s both;
}

.wb-hero__visual img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 12px;
    border: 1px solid var(--wb-line);
    background: #0a0a0a;
    box-shadow: 0 18px 48px rgba(0, 0, 0, 0.45);
}

/* ---------- highlights ---------- */
.wb-highlights {
    padding: 40px 0 80px;
}

.wb-highlights__grid {
    display: grid;
    grid-template-columns: minmax(220px, 0.7fr) minmax(0, 1.3fr);
    gap: 36px;
    align-items: end;
}

.wb-highlights__copy {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
}

.wb-highlights__label {
    margin: 0;
    font-family: var(--wb-display);
    font-size: clamp(14px, 1.5vw, 28px);
    color: var(--wb-muted);
}

.wb-highlights__title {
    margin: 0;
    font-family: var(--wb-display);
    font-size: clamp(28px, 4.5vw, 72px);
    line-height: 1;
    color: var(--wb-accent);
}

.wb-highlights__lines {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-top: 8px;
}

.wb-highlights__lines p {
    margin: 0;
    font-family: var(--wb-display);
    font-size: clamp(16px, 2.4vw, 42px);
    line-height: 1.3;
    color: var(--wb-muted);
}

.wb-highlights__frame {
    background: #0a0a0a;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.45);
    overflow: hidden;
    padding: 12px;
    border: 1px solid var(--wb-line);
}

.wb-highlights__frame img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 6px;
    background: #0a0a0a;
}

/* ---------- section heads ---------- */
.wb-section-head {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    margin-bottom: 48px;
}

.wb-section-title {
    margin: 0;
    font-family: var(--wb-display);
    font-size: clamp(24px, 3.6vw, 64px);
    line-height: 1.15;
    color: #fff;
}

.wb-section-sub {
    margin: 0;
    font-family: var(--wb-body);
    font-weight: 500;
    font-size: clamp(13px, 1.05vw, 18px);
    line-height: 1.8;
    color: rgba(239, 238, 236, 0.78);
}

/* ---------- scenarios ---------- */
.wb-scenarios {
    padding: 40px 0 88px;
}

.wb-feature-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 28px;
}

.wb-feature-card {
    display: flex;
    flex-direction: column;
    gap: 24px;
    padding: 28px;
    background: var(--wb-surface);
    border: 1px solid var(--wb-line);
    border-radius: 20px;
    transition: border-color 0.3s ease, transform 0.3s ease;
}

.wb-feature-card:hover {
    border-color: rgba(50, 230, 185, 0.3);
    transform: translateY(-4px);
}

.wb-feature-card__media {
    border-radius: 12px;
    overflow: hidden;
    background: var(--wb-surface-2);
    border: 1px solid var(--wb-line);
}

.wb-feature-card__media img {
    display: block;
    width: 100%;
    height: auto;
}

.wb-feature-card__body {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.wb-feature-card h3 {
    margin: 0;
    font-family: var(--wb-display);
    font-size: clamp(18px, 1.6vw, 28px);
    line-height: 1.3;
    color: var(--wb-text);
}

.wb-feature-card__for {
    margin: 0;
    color: var(--wb-accent);
    font-size: 13px;
    font-weight: 650;
}

.wb-feature-card p {
    margin: 0;
    color: var(--wb-faint);
    font-size: 14px;
    line-height: 1.7;
}

.wb-feature-card ul {
    margin: 4px 0 0;
    padding-left: 18px;
    color: var(--wb-faint);
    font-size: 13px;
    line-height: 1.7;
}

.wb-feature-card li { margin-bottom: 4px; }

/* ---------- pillars ---------- */
.wb-capabilities {
    padding: 24px 0 88px;
}

.wb-pillars {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0;
    border-top: 1px solid var(--wb-line);
}

.wb-pillars li {
    padding: 28px 22px 8px 0;
    border-right: 1px solid var(--wb-line);
}

.wb-pillars li:last-child {
    border-right: 0;
    padding-right: 0;
}

.wb-pillars span {
    display: block;
    margin-bottom: 16px;
    font-family: var(--wb-display);
    font-size: 13px;
    letter-spacing: 0.12em;
    color: var(--wb-accent);
}

.wb-pillars h3 {
    margin: 0 0 12px;
    font-family: var(--wb-display);
    font-size: 18px;
    line-height: 1.35;
    color: #fff;
}

.wb-pillars p {
    margin: 0;
    color: var(--wb-faint);
    font-size: 14px;
}

/* ---------- download ---------- */
.wb-download {
    padding: 40px 0 96px;
}

.wb-download .wb-section-head {
    margin-bottom: 36px;
}

.wb-download .download-panel {
    max-width: 920px;
    margin: 0 auto;
}

body.page-home .download-card {
    background: var(--wb-surface);
    border-color: var(--wb-line);
    color: #fff;
}

body.page-home .download-card:hover {
    border-color: rgba(50, 230, 185, 0.35);
    color: #fff;
}

body.page-home .download-card--featured {
    background: linear-gradient(135deg, rgba(40, 184, 148, 0.16), rgba(40, 184, 148, 0.04));
    border-color: rgba(40, 184, 148, 0.35);
}

body.page-home .download-card__label { color: #fff; }
body.page-home .download-card__note { color: rgba(210, 211, 224, 0.65); }

body.page-home .download-card__icon {
    background: rgba(255, 255, 255, 0.06);
    border-color: var(--wb-line);
    color: var(--wb-accent);
}

body.page-home .download-card--featured .download-card__icon {
    background: var(--wb-accent);
    border-color: var(--wb-accent);
    color: #04140f;
}

body.page-home .download-card__qr {
    background: #13131b;
    border-color: rgba(40, 184, 148, 0.35);
}

body.page-home .download-card__qr::after {
    background: #13131b;
    border-color: rgba(40, 184, 148, 0.35);
}

body.page-home .download-card__qr span {
    color: rgba(239, 238, 236, 0.7);
}

/* ---------- more / articles / faq ---------- */
.wb-more {
    padding: 24px 0 72px;
}

.wb-more__head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 22px;
}

.wb-more__head h2 {
    margin: 0;
    font-family: var(--wb-display);
    font-size: clamp(22px, 2.4vw, 34px);
    color: #fff;
}

.wb-more__head a {
    color: var(--wb-accent);
    font-size: 14px;
    font-weight: 650;
}

.wb-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.wb-tags a {
    display: inline-block;
    padding: 8px 14px;
    border: 1px solid var(--wb-line);
    border-radius: 4px;
    background: var(--wb-surface);
    color: var(--wb-muted);
    font-size: 13px;
}

.wb-tags a:hover {
    border-color: rgba(40, 184, 148, 0.4);
    color: var(--wb-accent-hot);
}

.wb-article-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.wb-article {
    padding: 0 0 16px;
    background: var(--wb-surface);
    border: 1px solid var(--wb-line);
    border-radius: 16px;
    overflow: hidden;
    transition: border-color 0.25s ease, transform 0.25s ease;
}

.wb-article:hover {
    border-color: rgba(50, 230, 185, 0.28);
    transform: translateY(-3px);
}

.wb-article__thumb {
    display: block;
    aspect-ratio: 16 / 10;
    background: #0e0e0e;
}

.wb-article__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.wb-article h3 {
    margin: 14px 16px 8px;
    font-family: var(--wb-display);
    font-size: 16px;
    line-height: 1.4;
}

.wb-article h3 a { color: #fff; }
.wb-article h3 a:hover { color: var(--wb-accent-hot); }

.wb-article p {
    margin: 0 16px;
    color: var(--wb-faint);
    font-size: 13px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.wb-faq {
    max-width: 760px;
}

.wb-faq h2 {
    margin: 0 0 22px;
    font-family: var(--wb-display);
    font-size: clamp(22px, 2.4vw, 34px);
    color: #fff;
    text-align: center;
}

.wb-faq dl {
    margin: 0;
    display: grid;
    gap: 12px;
}

.wb-faq dl > div {
    padding: 18px 20px;
    background: var(--wb-surface);
    border: 1px solid var(--wb-line);
    border-radius: 12px;
}

.wb-faq dt {
    margin: 0 0 6px;
    font-family: var(--wb-display);
    font-weight: 700;
}

.wb-faq dt a { color: #fff; }
.wb-faq dt a:hover { color: var(--wb-accent-hot); }

.wb-faq dd {
    margin: 0;
    color: var(--wb-faint);
    font-size: 14px;
}

@keyframes wbRise {
    from {
        opacity: 0;
        transform: translateY(18px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 1100px) {
    .wb-hero__container,
    .wb-highlights__grid {
        grid-template-columns: 1fr;
    }

    .wb-hero {
        padding-top: 96px;
        text-align: center;
    }

    .wb-hero__content { align-items: center; }
    .wb-hero__desc { margin: 0 auto; }
    .wb-hero__cta { margin-left: auto; margin-right: auto; }
    .wb-hero__explore { align-self: center; }
    .wb-highlights__copy { align-items: center; text-align: center; }
    .wb-feature-grid { grid-template-columns: 1fr 1fr; }
    .wb-pillars { grid-template-columns: 1fr 1fr; }
    .wb-pillars li:nth-child(2) { border-right: 0; }
    .wb-pillars li:nth-child(3),
    .wb-pillars li:nth-child(4) {
        border-top: 1px solid var(--wb-line);
    }
    .wb-article-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 720px) {
    .wb-hero { padding: 88px 0 48px; }
    .wb-hero__title { font-size: clamp(28px, 9vw, 40px); }
    .wb-hero__cta { max-width: none; }
    .wb-hero__explore { width: 100%; }
    .wb-feature-grid,
    .wb-article-grid,
    .wb-pillars {
        grid-template-columns: 1fr;
    }
    .wb-feature-card { padding: 16px; gap: 16px; }
    .wb-pillars li {
        border-right: 0;
        border-bottom: 1px solid var(--wb-line);
        padding: 22px 0;
    }
    .wb-pillars li:last-child { border-bottom: 0; }
    .wb-pillars li:nth-child(3),
    .wb-pillars li:nth-child(4) { border-top: 0; }
    .wb-section-head { margin-bottom: 32px; gap: 12px; }
    body.page-home .lang-switcher {
        background: rgba(255, 255, 255, 0.05);
        border-color: var(--wb-line);
    }
}

@media (prefers-reduced-motion: reduce) {
    .wb-hero__content,
    .wb-hero__visual,
    .wb-feature-card {
        animation: none !important;
        transition: none !important;
    }
}
