/* =====================================================================
   LKDAH · 808云 官网主题 — 浅色高级风
   Design system: Light / Aurora accent
   ===================================================================== */

/* ---------- Design Tokens ---------- */
:root {
    --bg:            #FFFFFF;
    --bg-alt:        #F5F7FB;
    --ink:           #0B1220;   /* 近黑墨色 */
    --ink-2:         #3A4257;   /* 次级 */
    --ink-3:         #5A6275;   /* 说明文字 */
    --ink-4:         #8A90A2;   /* 弱化 */
    --line:          rgba(11,18,32,.08);
    --line-2:        rgba(11,18,32,.06);

    --blue:          #2EA7FF;
    --purple:        #7C5CFF;
    --cyan:          #0FB5A2;

    --grad:          linear-gradient(135deg, #2EA7FF 0%, #7C5CFF 100%);
    --grad-cyan:     linear-gradient(135deg, #7C5CFF 0%, #0FB5A2 100%);
    --grad-cool:     linear-gradient(135deg, #0FB5A2 0%, #2EA7FF 100%);

    --shadow-sm:     0 4px 12px rgba(13,22,45,.04);
    --shadow-md:     0 8px 20px rgba(13,22,45,.05);
    --shadow-lg:     0 18px 40px rgba(13,22,45,.06);

    --radius:        20px;
    --radius-lg:     28px;
    --pill:          999px;

    --maxw:          1200px;
    --font: "Inter", "Noto Sans SC", -apple-system, BlinkMacSystemFont, "Segoe UI",
            "PingFang SC", "Microsoft YaHei", sans-serif;
}

/* ---------- Reset ---------- */
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
    font-family: var(--font);
    color: var(--ink);
    background: var(--bg);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}
a { color: inherit; text-decoration: none; transition: color .2s ease, opacity .2s ease; }
img { max-width: 100%; display: block; }
h1,h2,h3,h4,h5 { line-height: 1.2; font-weight: 800; letter-spacing: -.01em; }
p { color: var(--ink-3); }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center;
    gap: 8px; font-weight: 600; font-size: 15px; cursor: pointer;
    border-radius: var(--pill); border: 1px solid transparent;
    padding: 10px 22px; transition: transform .18s ease, box-shadow .2s ease, background .2s ease;
    white-space: nowrap;
}
.btn-lg { padding: 15px 32px; font-size: 17px; }
.btn-primary {
    color: #fff; background: var(--grad);
    box-shadow: 0 8px 22px rgba(46,167,255,.28);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(46,167,255,.38); }
.btn-ghost {
    color: var(--ink-2); background: #fff; border-color: var(--line);
    box-shadow: var(--shadow-sm);
}
.btn-ghost:hover { border-color: rgba(11,18,32,.16); transform: translateY(-2px); }

/* ---------- Header / Glass Nav ---------- */
.site-header {
    position: sticky; top: 0; z-index: 100;
    background: rgba(255,255,255,.72);
    backdrop-filter: saturate(180%) blur(20px);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    border-bottom: 1px solid transparent;
    transition: border-color .25s ease, box-shadow .25s ease, background .25s ease;
}
.site-header.scrolled {
    border-bottom-color: var(--line);
    box-shadow: 0 1px 0 var(--line-2), var(--shadow-sm);
}
.nav { display: flex; align-items: center; gap: 24px; height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 10px; }
.brand-glyph {
    width: 32px; height: 32px; border-radius: var(--pill);
    background: conic-gradient(from 210deg, #2EA7FF, #7C5CFF, #0FB5A2, #2EA7FF);
    box-shadow: 0 4px 12px rgba(124,92,255,.28);
}
.brand-glyph.small { width: 28px; height: 28px; }
.brand-name { font-family: "Inter", sans-serif; font-weight: 800; font-size: 21px; letter-spacing: -.02em; }
.brand-sub { font-size: 12px; color: var(--ink-4); font-weight: 500; align-self: flex-end; margin-bottom: 3px; }

.nav-menu { display: flex; align-items: center; gap: 28px; margin-left: 12px; }
.nav-menu a { font-size: 15px; font-weight: 500; color: var(--ink-2); position: relative; }
.nav-menu a:hover { color: var(--ink); }
.nav-menu a.current { color: var(--blue); }
.nav-menu a.current::after {
    content: ""; position: absolute; left: 0; right: 0; bottom: -22px; height: 2px;
    background: var(--grad); border-radius: 2px;
}

.nav-actions { display: flex; align-items: center; gap: 12px; margin-left: auto; }
.nav-search input {
    width: 150px; height: 38px; padding: 0 14px; font-size: 14px;
    border: 1px solid var(--line); border-radius: var(--pill);
    background: rgba(255,255,255,.7); color: var(--ink); outline: none;
    transition: border-color .2s ease, width .2s ease;
}
.nav-search input::placeholder { color: var(--ink-4); }
.nav-search input:focus { border-color: var(--blue); width: 200px; }
.nav-login { padding: 8px 16px; }

.nav-toggle { display: none; width: 40px; height: 40px; background: none; border: 0; cursor: pointer; }
.nav-toggle span { display: block; width: 20px; height: 2px; margin: 4px auto; background: var(--ink); border-radius: 2px; transition: .25s; }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; background: var(--bg); }
.hero-aurora {
    position: absolute; inset: 0; pointer-events: none;
    background:
        radial-gradient(600px 480px at 12% 30%, rgba(46,167,255,.14), transparent 70%),
        radial-gradient(560px 460px at 88% 20%, rgba(124,92,255,.12), transparent 70%),
        radial-gradient(520px 420px at 70% 90%, rgba(15,181,162,.08), transparent 70%);
}
.hero-inner {
    position: relative; display: flex; align-items: center; gap: 56px;
    padding: 92px 24px 96px;
}
.hero-copy { flex: 1 1 560px; min-width: 0; }
.badge {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 8px 16px; border-radius: var(--pill);
    background: #fff; border: 1px solid var(--line);
    box-shadow: var(--shadow-sm);
    font-size: 13px; color: var(--ink-3); font-weight: 500; letter-spacing: .02em;
}
.badge-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 0 4px rgba(15,181,162,.14); }
.hero-title {
    font-family: "Inter", "Noto Sans SC", sans-serif;
    font-size: clamp(38px, 5.2vw, 64px); font-weight: 800;
    letter-spacing: -.03em; margin: 24px 0 20px; color: var(--ink);
}
.hero-sub { font-size: 18px; color: var(--ink-3); max-width: 560px; line-height: 1.65; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 16px; margin: 32px 0 24px; }
.hero-trust { font-size: 14px; color: var(--ink-4); }

.hero-visual { flex: 0 0 460px; max-width: 460px; }
.hero-visual-card {
    border-radius: var(--radius-lg); overflow: hidden;
    background: #fff; border: 1px solid var(--line);
    box-shadow: var(--shadow-lg);
    aspect-ratio: 480 / 540;
}
.hero-visual-card img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- Section head ---------- */
.section-alt { background: var(--bg-alt); }
.sec-head { margin-bottom: 56px; }
.kicker { display: inline-block; font-family: "Inter", sans-serif; font-size: 13px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--blue); margin-bottom: 12px; }
.kicker-cyan { color: var(--cyan); }
.kicker-purple { color: var(--purple); }
.sec-title { font-family: "Inter", "Noto Sans SC", sans-serif; font-size: clamp(26px, 3.4vw, 40px); color: var(--ink); }

/* ---------- Features (图文交替) ---------- */
.features { padding: 100px 0; }
.feature-row {
    display: flex; align-items: center; gap: 64px;
    padding: 40px 0;
}
.feature-row.reverse { flex-direction: row-reverse; }
.feature-text { flex: 1 1 520px; min-width: 0; }
.feature-index { display: inline-block; font-family: "Inter", sans-serif; font-weight: 600; font-size: 14px; letter-spacing: .04em; margin-bottom: 16px; }
.feat-blue { color: var(--blue); }
.feat-purple { color: var(--purple); }
.feat-cyan { color: var(--cyan); }
.feature-text h3 { font-family: "Inter", "Noto Sans SC", sans-serif; font-size: clamp(22px, 2.6vw, 32px); color: var(--ink); margin-bottom: 16px; }
.feature-text p { font-size: 17px; line-height: 1.75; max-width: 560px; }
.feature-visual { flex: 0 0 460px; max-width: 460px; }
.feature-visual img {
    width: 100%; aspect-ratio: 460 / 380; object-fit: cover;
    border-radius: var(--radius); border: 1px solid var(--line);
    background: #fff; box-shadow: var(--shadow-md);
}

/* ---------- Card grid ---------- */
.grid-sec { padding: 100px 0; }
.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.svc-card {
    background: var(--bg-alt); border: 1px solid var(--line-2);
    border-radius: var(--radius); padding: 28px;
    box-shadow: var(--shadow-sm);
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.svc-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--line); }
.svc-icon { display: flex; align-items: center; justify-content: center; width: 48px; height: 48px; border-radius: 12px; margin-bottom: 16px; color: #fff; }
.svc-icon svg { width: 26px; height: 26px; display: block; }
.svc-icon.g-blue   { background: var(--grad); }
.svc-icon.g-purple { background: var(--grad-cyan); }
.svc-icon.g-cyan   { background: var(--grad-cool); }
.svc-card h4 { font-family: "Noto Sans SC", sans-serif; font-size: 19px; font-weight: 700; color: var(--ink); margin-bottom: 8px; }
.svc-card p { font-size: 15px; line-height: 1.6; }

/* ---------- News ---------- */
.news-sec { padding: 100px 0; }
.news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.news-card {
    display: flex; flex-direction: column; gap: 10px;
    background: #fff; border: 1px solid var(--line-2);
    border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow-sm);
    transition: transform .2s ease, box-shadow .2s ease;
}
.news-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.news-cat { font-size: 13px; font-weight: 600; color: var(--purple); }
.news-card h4 { font-family: "Noto Sans SC", sans-serif; font-size: 18px; color: var(--ink); line-height: 1.4; }
.news-card p { font-size: 14px; color: var(--ink-3); flex: 1; }
.news-more { font-size: 14px; font-weight: 600; color: var(--blue); }

/* ---------- Final CTA ---------- */
.cta-sec { padding: 80px 0 100px; }
.cta-panel {
    position: relative; overflow: hidden; text-align: center;
    background: #fff; border: 1px solid var(--line);
    border-radius: var(--radius-lg); padding: 72px 48px;
    box-shadow: var(--shadow-lg);
}
.cta-aurora {
    position: absolute; inset: 0; pointer-events: none;
    background:
        radial-gradient(420px 300px at 30% 20%, rgba(46,167,255,.12), transparent 70%),
        radial-gradient(420px 300px at 72% 90%, rgba(124,92,255,.10), transparent 70%);
}
.cta-panel > * { position: relative; }
.cta-panel h2 { font-family: "Inter", "Noto Sans SC", sans-serif; font-size: clamp(28px, 3.6vw, 44px); color: var(--ink); margin-bottom: 16px; }
.cta-panel p { font-size: 18px; margin-bottom: 28px; }
.cta-note { display: block; margin-top: 16px; font-size: 13px; color: var(--ink-4); }

/* ---------- Footer ---------- */
.site-footer { background: var(--bg); border-top: 1px solid var(--line); }
.footer-top { display: flex; gap: 64px; padding: 64px 24px 40px; flex-wrap: wrap; }
.footer-brand { flex: 1 1 300px; min-width: 260px; }
.footer-logo { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.footer-name { font-family: "Inter", sans-serif; font-weight: 800; font-size: 18px; color: var(--ink); }
.footer-tag { font-size: 14px; color: var(--ink-4); margin-bottom: 12px; }
.footer-friend { font-size: 13px; color: var(--ink-4); line-height: 1.8; }
.footer-friend a:hover { color: var(--blue); }
.footer-col { display: flex; flex-direction: column; gap: 12px; }
.footer-col h5 { font-family: "Noto Sans SC", sans-serif; font-size: 14px; font-weight: 600; color: var(--ink); margin-bottom: 2px; }
.footer-col a { font-size: 14px; color: var(--ink-3); }
.footer-col a:hover { color: var(--blue); }
.footer-bottom {
    display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
    padding: 20px 24px 40px; border-top: 1px solid var(--line-2);
    font-size: 13px; color: var(--ink-4);
}
.footer-bottom a:hover { color: var(--blue); }

/* =====================================================================
   Inner pages (post / page / archive)
   ===================================================================== */
.inner-wrap { max-width: 860px; margin: 0 auto; padding: 64px 24px 96px; }
.inner-hero { padding: 56px 0 8px; }
.crumb { font-size: 13px; color: var(--ink-4); margin-bottom: 16px; }
.crumb a:hover { color: var(--blue); }
.article-title { font-family: "Inter", "Noto Sans SC", sans-serif; font-size: clamp(28px, 4vw, 40px); color: var(--ink); margin-bottom: 16px; line-height: 1.25; }
.article-meta { display: flex; flex-wrap: wrap; gap: 16px; font-size: 14px; color: var(--ink-4); margin-bottom: 8px; }
.article-meta a { color: var(--ink-3); }
.article-meta a:hover { color: var(--blue); }

.article-body { font-size: 17px; line-height: 1.85; color: var(--ink-2); }
.article-body h1, .article-body h2, .article-body h3 { color: var(--ink); margin: 1.6em 0 .6em; }
.article-body h2 { font-size: 26px; }
.article-body h3 { font-size: 21px; }
.article-body p { color: var(--ink-2); margin: 1em 0; }
.article-body a { color: var(--blue); text-decoration: underline; text-underline-offset: 3px; }
.article-body ul, .article-body ol { margin: 1em 0; padding-left: 1.4em; }
.article-body li { margin: .4em 0; color: var(--ink-2); }
.article-body img { border-radius: 12px; margin: 1.2em 0; box-shadow: var(--shadow-md); }
.article-body blockquote {
    margin: 1.4em 0; padding: 14px 20px; border-left: 3px solid var(--blue);
    background: var(--bg-alt); border-radius: 8px; color: var(--ink-3);
}
.article-body hr { border: 0; border-top: 1px solid var(--line); margin: 2em 0; }
.article-body pre { background: #0B1220; color: #E8ECF4; padding: 18px; border-radius: 12px; overflow: auto; font-size: 14px; }
.article-body code { background: var(--bg-alt); padding: 2px 6px; border-radius: 6px; font-size: .92em; }
.article-body pre code { background: none; padding: 0; }
.article-body table { width: 100%; border-collapse: collapse; margin: 1.4em 0; font-size: 15px; }
.article-body th, .article-body td { border: 1px solid var(--line); padding: 10px 14px; text-align: left; }
.article-body th { background: var(--bg-alt); font-weight: 600; }

/* list / archive */
.post-list { display: flex; flex-direction: column; gap: 20px; }
.post-item {
    background: #fff; border: 1px solid var(--line-2); border-radius: var(--radius);
    padding: 28px 32px; box-shadow: var(--shadow-sm);
    transition: transform .2s ease, box-shadow .2s ease;
}
.post-item:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.post-item h2 { font-family: "Noto Sans SC", sans-serif; font-size: 22px; margin-bottom: 10px; }
.post-item h2 a:hover { color: var(--blue); }
.post-item .post-meta { display: flex; gap: 16px; flex-wrap: wrap; font-size: 13px; color: var(--ink-4); margin-bottom: 10px; list-style: none; }
.post-item p { font-size: 15px; color: var(--ink-3); }

.pagenav { display: flex; justify-content: center; gap: 12px; margin-top: 48px; }
.pagenav a, .pagenav .current { padding: 8px 16px; border-radius: var(--pill); border: 1px solid var(--line); font-size: 14px; color: var(--ink-2); background: #fff; }
.pagenav .current { background: var(--grad); color: #fff; border-color: transparent; }
.pagenav a:hover { border-color: var(--blue); color: var(--blue); }

/* comments */
.comments { max-width: 860px; margin: 0 auto; padding: 0 24px 96px; }
.comments h3 { font-size: 22px; color: var(--ink); margin-bottom: 20px; }
.comment-list { list-style: none; display: flex; flex-direction: column; gap: 16px; }
.comment-list li { background: var(--bg-alt); border: 1px solid var(--line-2); border-radius: 14px; padding: 18px 20px; }
.comment-list .comment-author { font-weight: 600; color: var(--ink); font-size: 15px; }
.comment-list .comment-meta { font-size: 12px; color: var(--ink-4); margin: 4px 0 8px; }
.comment-form { margin-top: 28px; }
.comment-form input, .comment-form textarea {
    width: 100%; padding: 12px 16px; margin-bottom: 14px; font-size: 15px;
    border: 1px solid var(--line); border-radius: 12px; background: #fff; color: var(--ink); outline: none;
    font-family: inherit;
}
.comment-form input:focus, .comment-form textarea:focus { border-color: var(--blue); }
.comment-form textarea { min-height: 120px; resize: vertical; }

/* =====================================================================
   Responsive
   ===================================================================== */
@media (max-width: 960px) {
    .hero-inner { flex-direction: column; text-align: center; padding-top: 72px; }
    .hero-copy { flex-basis: auto; }
    .hero-sub { margin: 0 auto; }
    .hero-cta { justify-content: center; }
    .hero-visual { flex-basis: auto; max-width: 420px; width: 100%; }
    .feature-row, .feature-row.reverse { flex-direction: column; gap: 32px; }
    .feature-text, .feature-visual { flex-basis: auto; max-width: 100%; width: 100%; }
    .card-grid, .news-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 720px) {
    .nav-menu, .nav-search, .nav-login { display: none; }
    .nav-toggle { display: block; }
    body.nav-open .nav-menu {
        display: flex; flex-direction: column; gap: 4px; align-items: stretch;
        position: absolute; top: 68px; left: 0; right: 0;
        background: rgba(255,255,255,.96); backdrop-filter: blur(20px);
        border-bottom: 1px solid var(--line); padding: 12px 24px 20px; margin: 0;
    }
    body.nav-open .nav-menu a { padding: 12px 4px; }
    body.nav-open .nav-menu a.current::after { display: none; }
    .features, .grid-sec, .news-sec { padding: 64px 0; }
    .sec-head { margin-bottom: 36px; }
    .card-grid, .news-grid { grid-template-columns: 1fr; }
    .cta-panel { padding: 48px 24px; }
    .footer-top { gap: 32px; padding-top: 48px; }
    .footer-bottom { flex-direction: column; gap: 8px; }
}
