:root {
    --ink: #16201a;
    --muted: #647066;
    --paper: #f6f1e6;
    --panel: rgba(255, 252, 243, 0.78);
    --line: rgba(22, 32, 26, 0.14);
    --shadow: 0 30px 80px rgba(45, 54, 44, 0.16);
}

* {
    box-sizing: border-box;
}

body {
    min-height: 100vh;
    margin: 0;
    color: var(--ink);
    font-family: "Microsoft YaHei", "微软雅黑", sans-serif;
    background:
        radial-gradient(circle at 12% 18%, rgba(255, 184, 77, 0.26), transparent 28%),
        radial-gradient(circle at 82% 12%, rgba(38, 122, 255, 0.17), transparent 30%),
        linear-gradient(135deg, #f8f0df 0%, #edf3e6 52%, #e7efe8 100%);
}

body::before {
    position: fixed;
    inset: 0;
    pointer-events: none;
    content: "";
    background-image:
        linear-gradient(rgba(22, 32, 26, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(22, 32, 26, 0.05) 1px, transparent 1px);
    background-size: 46px 46px;
    mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.7), transparent 82%);
}

.top-actions {
    position: fixed;
    top: 24px;
    right: 28px;
    z-index: 10;
    display: flex;
    align-items: center;
    gap: 12px;
}

.avatar-button {
    width: 54px;
    height: 54px;
    display: grid;
    place-items: center;
    color: var(--ink);
    border: 1px solid var(--line);
    border-radius: 999px;
    background: rgba(255, 252, 243, 0.86);
    box-shadow: 0 14px 35px rgba(45, 54, 44, 0.14);
    backdrop-filter: blur(14px);
}

.avatar-button {
    padding: 0;
    color: #245ea8;
    font-size: 20px;
    font-weight: 900;
    text-decoration: none;
}

.avatar-button span {
    width: 28px;
    height: 28px;
    display: grid;
    place-items: center;
    border: 3px solid currentColor;
    border-radius: 999px;
    line-height: 1;
}

.admin-links {
    display: flex;
    align-items: center;
    gap: 8px;
}

.admin-links a {
    min-height: 42px;
    padding: 0 14px;
    display: flex;
    align-items: center;
    color: var(--ink);
    border: 1px solid var(--line);
    border-radius: 999px;
    background: rgba(255, 252, 243, 0.86);
    box-shadow: 0 14px 35px rgba(45, 54, 44, 0.12);
    text-decoration: none;
    font-size: 14px;
    font-weight: 900;
    backdrop-filter: blur(14px);
    transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.admin-links a:hover,
.admin-links a:focus-visible {
    transform: translateY(-2px);
    border-color: rgba(22, 32, 26, 0.28);
    box-shadow: 0 20px 45px rgba(45, 54, 44, 0.18);
    outline: none;
}

.home-shell {
    width: min(1400px, calc(100% - 48px));
    min-height: 100vh;
    margin: 0 auto;
    padding: 100px 0 56px;
    display: grid;
    align-content: start;
    gap: 60px;
}

.hero-panel {
    max-width: 760px;
    padding: 38px 42px;
    border: 1px solid var(--line);
    border-radius: 34px;
    background: var(--panel);
    box-shadow: var(--shadow);
    backdrop-filter: blur(18px);
}

.eyebrow {
    margin: 0 0 18px;
    color: #9a5c17;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

h1 {
    max-width: 680px;
    margin: 0;
    font-family: SimSun, "宋体", serif;
    font-size: clamp(38px, 6vw, 76px);
    line-height: 0.98;
    letter-spacing: -0.06em;
}

.hero-copy {
    max-width: 620px;
    margin: 24px 0 0;
    color: var(--muted);
    font-size: 18px;
    line-height: 1.8;
}

.module-nav {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 22px;
}

.module-card {
    position: relative;
    min-height: 150px;
    padding: 14px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    gap: 12px;
    overflow: hidden;
    color: var(--ink);
    text-decoration: none;
    border: 1px solid var(--line);
    border-radius: 30px;
    background: rgba(255, 252, 243, 0.72);
    box-shadow: 0 22px 55px rgba(45, 54, 44, 0.12);
    backdrop-filter: blur(14px);
    transition: transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease;
}

.module-card::before {
    position: absolute;
    inset: -40% -20% auto auto;
    width: 180px;
    height: 180px;
    content: "";
    border-radius: 999px;
    background: var(--accent);
    opacity: 0.28;
    filter: blur(10px);
    transition: transform 260ms ease, opacity 260ms ease;
}

.module-card:hover,
.module-card:focus-visible {
    transform: translateY(-8px);
    border-color: rgba(22, 32, 26, 0.28);
    box-shadow: 0 34px 80px rgba(45, 54, 44, 0.2);
    outline: none;
}

.module-card:hover::before,
.module-card:focus-visible::before {
    transform: scale(1.28) translate(-10px, 18px);
    opacity: 0.42;
}

.task {
    --accent: #ffb84d;
}

.todo {
    --accent: #e75f45;
}

.trend {
    --accent: #4f8cff;
}

.learning {
    --accent: #66c28a;
}

.game {
    --accent: #9b6cff;
}

.personality {
    --accent: #ff7aa2;
}

.llm {
    --accent: #8b5cf6;
}

.toolbox {
    --accent: #14b8a6;
}

.familytree {
    --accent: #c08b3e;
}

.card-head {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 12px;
}

.card-icon {
    flex: none;
    width: 40px;
    height: 40px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(22, 32, 26, 0.16);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.48);
    font-size: 20px;
}

.card-title {
    position: relative;
    flex: 1;
    min-width: 0;
    margin-bottom: 0;
    font-size: clamp(20px, 2.25vw, 29px);
    font-weight: 800;
    letter-spacing: -0.04em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.card-desc {
    position: relative;
    max-width: 240px;
    color: var(--muted);
    font-size: 15px;
    line-height: 1.7;
}

.home-title {
    justify-self: center;
    margin: 0;
    text-align: center;
    font-family: SimSun, "宋体", serif;
    font-size: clamp(42px, 7vw, 86px);
    line-height: 1;
    font-weight: 900;
}

@media (max-width: 820px) {
    .home-shell {
        width: min(100% - 28px, 640px);
        padding: 36px 0 72px;
    }

    .hero-panel {
        padding: 30px 26px;
        border-radius: 26px;
    }

    .module-nav {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .module-card {
        min-height: 130px;
    }
}

@media (max-width: 480px) {
    .module-nav {
        grid-template-columns: 1fr;
    }
}

.stats-bar {
    position: fixed;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    width: min(1180px, calc(100% - 48px));
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    z-index: 2;
}

.stat-card {
    position: relative;
    padding: 11px 24px;
    border: 1px solid var(--line);
    border-radius: 20px;
    background: rgba(255, 252, 243, 0.72);
    box-shadow: 0 12px 32px rgba(45, 54, 44, 0.10);
    backdrop-filter: blur(14px);
    min-height: 36px;
    display: flex;
    align-items: center;
}

.stat-eye {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    right: 12px;
    width: 28px;
    height: 28px;
    padding: 0;
    border: none;
    background: none;
    cursor: pointer;
    font-size: 16px;
    opacity: 0.5;
    transition: opacity 160ms ease;
    line-height: 1;
}

.stat-eye:hover {
    opacity: 1;
}

.stat-text {
    margin: 0;
    font-size: 15px;
    color: var(--muted);
    line-height: 1.6;
    text-align: center;
    width: 100%;
    padding-left: -5px;
    padding-right: 25px;
}

.stat-text.blurred {
    filter: blur(6px);
    user-select: none;
}

.stat-num.blurred {
    filter: blur(6px);
    user-select: none;
    display: inline-block;
}

.stat-retest {
    font-size: 13px;
    font-weight: 600;
    color: #245ea8;
    text-decoration: none;
    margin-right: 8px;
    flex-shrink: 0;
}
.stat-retest:hover { text-decoration: underline; }

.stat-link {
    color: inherit;
    text-decoration: none;
}

.stat-link:hover {
    text-decoration: underline;
}

@media (max-width: 820px) {
    .stats-bar {
        width: min(100% - 28px, 640px);
        grid-template-columns: 1fr;
        bottom: auto;
        position: static;
        transform: none;
        margin: 0 auto;
    }
}

.home-footer {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1;
    padding: 10px 0 14px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 6px 18px;
    color: var(--muted);
    font-size: 13px;
    letter-spacing: 0.02em;
}

.home-footer p {
    margin: 0;
}

.home-footer .icp-link {
    color: var(--muted);
    text-decoration: none;
}

.home-footer .icp-link:hover {
    text-decoration: underline;
}
