/* 独立的首页样式，不影响登录/注册旧页面 */
html, body {
    height: 100%;
}

body {
    margin: 0;
    font-family: "Microsoft YaHei", Arial, sans-serif;
    background: linear-gradient(135deg, #0d7bff 0%, #55e7cc 60%, #9ef7c8 100%);
    color: #0b1220;
}

* {
    box-sizing: border-box;
}

.lc-container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 18px;
}

.lc-header {
    position: sticky;
    top: 0;
    z-index: 10;
    backdrop-filter: blur(8px);
    background: rgba(255, 255, 255, 0.55);
    border-bottom: 1px solid rgba(255, 255, 255, 0.35);
}

.lc-nav {
    height: 72px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.lc-logo {
    font-weight: 800;
    letter-spacing: 0.5px;
    font-size: 22px;
}

.lc-menu {
    display: flex;
    gap: 16px;
    align-items: center;
}

.lc-link {
    color: rgba(11, 18, 32, 0.82);
    text-decoration: none;
    font-size: 14px;
    padding: 8px 10px;
    border-radius: 10px;
}

.lc-link:hover {
    background: rgba(255, 255, 255, 0.65);
}

.lc-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 18px;
    border-radius: 14px;
    font-size: 14px;
    text-decoration: none;
    border: 1px solid rgba(255, 255, 255, 0.6);
    transition: transform .05s ease-in-out, background .2s ease-in-out;
    white-space: nowrap;
}

.lc-btn:active {
    transform: translateY(1px);
}

.lc-btn-primary {
    background: #1e9fff;
    border-color: rgba(30, 159, 255, 0.7);
    color: #fff;
}

.lc-btn-secondary {
    background: rgba(255, 255, 255, 0.75);
    color: rgba(11, 18, 32, 0.9);
}

.lc-hero {
    padding: 72px 0 36px;
}

.lc-hero-inner {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 28px;
    align-items: start;
}

.lc-hero-title {
    font-size: 44px;
    margin: 0 0 14px;
    letter-spacing: 0.2px;
    color: #0b1220;
}

.lc-hero-sub {
    margin: 0 0 22px;
    font-size: 16px;
    color: rgba(11, 18, 32, 0.75);
    line-height: 1.8;
    max-width: 540px;
}

.lc-hero-actions {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
}

.lc-hero-card {
    background: rgba(255, 255, 255, 0.92);
    border-radius: 18px;
    border: 1px solid rgba(255, 255, 255, 0.6);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.12);
    padding: 18px 18px 16px;
}

.lc-hero-card-title {
    font-weight: 800;
    font-size: 18px;
    text-align: center;
    margin: 4px 0 14px;
}

.lc-hero-card-row {
    display: flex;
    gap: 12px;
    padding: 10px 6px;
    border-top: 1px solid rgba(11, 18, 32, 0.06);
}

.lc-hero-card-row:first-of-type {
    border-top: none;
}

.lc-hero-card-k {
    width: 120px;
    color: rgba(11, 18, 32, 0.65);
    font-size: 13px;
}

.lc-hero-card-v {
    color: rgba(11, 18, 32, 0.9);
    font-size: 14px;
    overflow: hidden;
    text-overflow: ellipsis;
}

.lc-hero-card-note {
    margin-top: 12px;
    font-size: 13px;
    color: rgba(11, 18, 32, 0.65);
    line-height: 1.6;
}

.lc-section {
    padding: 34px 0;
}

.lc-section-alt {
    padding-top: 10px;
}

.lc-section-title {
    font-size: 26px;
    margin: 0 0 18px;
    font-weight: 800;
    color: rgba(11, 18, 32, 0.9);
}

.lc-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
}

.lc-feature {
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(255, 255, 255, 0.6);
    border-radius: 16px;
    padding: 18px 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    min-height: 132px;
}

.lc-feature-top {
    font-size: 20px;
    margin-bottom: 10px;
}

.lc-feature-title {
    font-weight: 800;
    margin-bottom: 6px;
}

.lc-feature-desc {
    color: rgba(11, 18, 32, 0.66);
    font-size: 13px;
    line-height: 1.6;
}

.lc-rules {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.lc-rule {
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(255, 255, 255, 0.6);
    border-radius: 16px;
    padding: 18px 16px;
}

.lc-rule-title {
    font-weight: 900;
    margin-bottom: 6px;
}

.lc-rule-desc {
    color: rgba(11, 18, 32, 0.66);
    font-size: 13px;
    line-height: 1.7;
}

.lc-footer {
    padding: 24px 0 40px;
}

.lc-footer-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    color: rgba(11, 18, 32, 0.7);
    font-size: 13px;
}

.lc-footer-copy {
    white-space: nowrap;
}

@media (max-width: 980px) {
    .lc-hero-inner {
        grid-template-columns: 1fr;
    }
    .lc-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .lc-rules {
        grid-template-columns: 1fr;
    }
    .lc-hero-title {
        font-size: 34px;
    }
}

/* =============================
   Dark theme (Angelica Core Editor) - only applies to home_dark.html
   ============================= */
body.lc-home {
    /* 与 auth_login 使用的背景保持一致 */
    background: url("../images/wm-loginbg.jpg") no-repeat top center;
    background-size: cover;
    /* 背景较浅时保证主文字可读性 */
    color: rgba(11, 18, 32, 0.88);
}

body.lc-home .lc-header {
    background: rgba(255, 255, 255, 0.55);
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    backdrop-filter: blur(10px);
}

body.lc-home .lc-nav {
    height: 74px;
}

body.lc-home .lc-brand {
    display: flex;
    align-items: center;
    gap: 10px;
}

body.lc-home .lc-brand-icon {
    width: 34px;
    height: 34px;
    object-fit: contain;
    filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.35));
}

body.lc-home .lc-brand-title {
    font-weight: 800;
    font-size: 20px;
    line-height: 1.1;
    color: rgba(11, 18, 32, 0.92);
}

body.lc-home .lc-brand-sub {
    font-size: 12px;
    color: rgba(11, 18, 32, 0.55);
    margin-top: 2px;
    letter-spacing: 0.2px;
}

body.lc-home .lc-menu {
    gap: 6px;
}

body.lc-home .lc-link {
    color: rgba(11, 18, 32, 0.78);
    padding: 10px 12px;
    border-radius: 12px;
}

body.lc-home .lc-link:hover {
    background: rgba(0, 0, 0, 0.04);
}

body.lc-home .lc-link-active {
    background: rgba(30, 159, 255, 0.14);
    color: rgba(0, 80, 180, 0.95);
    border: 1px solid rgba(30, 159, 255, 0.25);
}

body.lc-home .lc-right {
    display: flex;
    gap: 12px;
    align-items: center;
}

body.lc-home .lc-lang {
    color: rgba(11, 18, 32, 0.70);
    font-size: 14px;
    user-select: none;
}

body.lc-home .lc-btn {
    border-radius: 14px;
    padding: 10px 16px;
}

body.lc-home .lc-btn-login {
    background: rgba(255, 255, 255, 0.75);
    border-color: rgba(0, 0, 0, 0.06);
    color: rgba(11, 18, 32, 0.92);
}

body.lc-home .lc-btn-secondary {
    background: rgba(30, 159, 255, 0.10);
    border-color: rgba(30, 159, 255, 0.22);
    color: rgba(0, 80, 180, 0.95);
}

body.lc-home .lc-hero {
    padding: 72px 0 44px;
}

body.lc-home .lc-hero-inner {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 26px;
    align-items: center;
}

body.lc-home .lc-hero-left {
    padding-left: 8px;
}

body.lc-home .lc-hero-kicker {
    color: rgba(0, 140, 255, 0.95);
    font-size: 16px;
    letter-spacing: 0.2px;
    margin-bottom: 16px;
}

body.lc-home .lc-hero-title {
    color: rgba(11, 18, 32, 0.95);
    font-size: 54px;
    line-height: 1.06;
    margin: 0 0 16px;
    letter-spacing: 0.4px;
}

body.lc-home .lc-hero-sub {
    color: rgba(11, 18, 32, 0.62);
    font-size: 16px;
    line-height: 1.9;
    max-width: 560px;
    margin-bottom: 22px;
}

body.lc-home .lc-hero-actions .lc-btn-primary {
    width: auto;
    background: rgba(0, 255, 215, 0.95);
    border-color: rgba(0, 255, 215, 0.55);
    color: #001014;
    font-weight: 800;
    padding: 14px 26px;
    border-radius: 16px;
}

body.lc-home .lc-editor-frame {
    width: min(520px, 44vw);
    margin-left: auto;
}

body.lc-home .lc-editor-image {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 18px;
    box-shadow: 0 28px 80px rgba(0, 0, 0, 0.55);
    transform: translateY(4px);
}

/* Feature grid in 3 columns */
body.lc-home .lc-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

body.lc-home .lc-section-title,
body.lc-home .lc-rule-title,
body.lc-home .lc-feature-title {
    color: rgba(255, 255, 255, 0.92);
}

body.lc-home .lc-section-title {
    font-size: 26px;
    margin-bottom: 18px;
}

body.lc-home .lc-feature {
    /* 加深卡片，保证浅背景也能看清 */
    background: rgba(0, 0, 0, 0.42);
    border: 1px solid rgba(255, 255, 255, 0.14);
    box-shadow: 0 22px 70px rgba(0, 0, 0, 0.28);
    border-radius: 18px;
    padding: 22px 18px 20px;
    min-height: 190px;
    position: relative;
    overflow: hidden;
}

body.lc-home .lc-feature:before {
    content: "";
    position: absolute;
    inset: -2px;
    background: radial-gradient(420px 200px at 20% 20%, rgba(0, 255, 215, 0.18), transparent 60%),
                radial-gradient(360px 180px at 70% 30%, rgba(30, 159, 255, 0.18), transparent 60%);
    opacity: 0.9;
    pointer-events: none;
}

body.lc-home .lc-feature > * {
    position: relative;
}

body.lc-home .lc-feature-icon {
    font-size: 20px;
    color: rgba(0, 255, 215, 0.95);
    margin-bottom: 14px;
}

body.lc-home .lc-feature-desc,
body.lc-home .lc-rule-desc {
    color: rgba(255, 255, 255, 0.62);
}

body.lc-home .lc-rules {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

body.lc-home .lc-rule {
    background: rgba(0, 0, 0, 0.42);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 18px;
    padding: 20px 18px;
}

body.lc-home .lc-footer {
    margin-top: 28px;
    padding: 26px 0 70px;
    border-top: 1px solid rgba(255, 255, 255, 0.10);
    background: rgba(0, 0, 0, 0.08);
}

body.lc-home .lc-footer,
body.lc-home .lc-footer-inner {
    color: rgba(11, 18, 32, 0.62);
}

body.lc-home .lc-section-title {
    color: rgba(11, 18, 32, 0.92);
}

/* 避免底部区域“贴”在规则区下面，增加视觉分隔 */
body.lc-home #features {
    padding-bottom: 56px;
}

body.lc-home #rules {
    padding-bottom: 56px;
}

@media (max-width: 980px) {
    body.lc-home .lc-hero-inner {
        grid-template-columns: 1fr;
    }
    body.lc-home .lc-editor-frame {
        width: min(520px, 86vw);
        margin: 8px auto 0;
    }
    body.lc-home .lc-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    body.lc-home .lc-hero-title {
        font-size: 40px;
    }
}
