/* 颜色变量已迁移至 ../shared/kanau-tokens.css，
   --primary/--bg-color/--text-main/--border-color
   等旧变量名通过兼容别名继续可用。 */

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    background:
        radial-gradient(circle at 16% 12%, rgba(130, 168, 154, 0.22), transparent 30%),
        radial-gradient(circle at 82% 28%, rgba(212, 163, 115, 0.16), transparent 28%),
        linear-gradient(135deg, #f8f5ef, #e9e1d5);
    color: var(--text-main);
    font-family: var(--kanau-font-body);
    margin: 0;
    max-width: none;
    min-height: 100vh;
    padding: calc(var(--kanau-topbar-height, 74px) + 30px) clamp(18px, 6vw, 80px) 116px;
    overflow-x: hidden;
    width: 100%;
}

body.kanau-has-global-topbar {
    padding-bottom: 116px;
    padding-top: calc(var(--kanau-topbar-height, 74px) + 30px);
}

.datahub-header {
    align-items: center;
    display: flex;
    gap: 10px;
    margin-bottom: 16px;
}

.back-btn {
    align-items: center;
    background: rgba(255, 253, 247, 0.84);
    border: 2px solid var(--border-color);
    border-radius: 999px;
    color: #4d7555;
    display: inline-flex;
    font-size: 24px;
    font-weight: 800;
    height: 34px;
    justify-content: center;
    line-height: 1;
    text-decoration: none;
    width: 34px;
}

.back-btn:hover {
    border-color: var(--primary);
}

h1 {
    color: #484b47;
    font-size: 22px;
    margin: 0;
}

.datahub-tabs {
    background:
        linear-gradient(rgba(127, 154, 130, 0.08) 1px, transparent 1px),
        linear-gradient(90deg, rgba(127, 154, 130, 0.08) 1px, transparent 1px),
        rgba(255, 255, 255, 0.94);
    background-size: 24px 24px;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    display: grid;
    gap: 0;
    margin-bottom: 14px;
    margin-left: auto;
    margin-right: auto;
    max-width: 1100px;
    overflow: hidden;
}

.datahub-tabs a {
    align-items: center;
    border-bottom: 1px solid #e5dfd6;
    color: #33352f;
    display: flex;
    font-size: 16px;
    font-weight: 800;
    justify-content: space-between;
    min-height: 50px;
    padding: 0 16px;
    text-decoration: none;
}

.datahub-tabs a::after {
    color: #c8c2b8;
    content: "›";
    font-size: 22px;
    line-height: 1;
}

.datahub-tabs a:last-child {
    border-bottom: 0;
}

.datahub-tabs a:hover {
    color: var(--primary);
}

.datahub-tabs a.is-active {
    background: rgba(127, 154, 130, 0.12);
    color: #4d7555;
}

.datahub-content {
    display: grid;
    gap: 14px;
    margin: 0 auto;
    max-width: 1100px;
}

.datahub-section {
    align-items: flex-start;
    background:
        linear-gradient(rgba(127, 154, 130, 0.08) 1px, transparent 1px),
        linear-gradient(90deg, rgba(127, 154, 130, 0.08) 1px, transparent 1px),
        rgba(255, 255, 255, 0.94);
    background-size: 24px 24px;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    box-shadow: 0 10px 24px rgba(83, 78, 70, 0.08);
    color: #777d74;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 150px;
    padding: 22px;
    scroll-margin-top: 18px;
    text-align: left;
}

.placeholder-icon {
    background: rgba(255, 253, 247, 0.88);
    border: 2px solid var(--border-color);
    border-radius: 50%;
    display: grid;
    font-size: 25px;
    height: 50px;
    margin-bottom: 12px;
    place-items: center;
    width: 50px;
}

.datahub-section h2 {
    color: #33352f;
    font-size: 17px;
    margin: 0 0 8px;
}

.datahub-section p {
    color: #777d74;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.7;
    margin: 0;
}

.notice-event-list {
    display: grid;
    gap: 10px;
    width: 100%;
}

.notice-event-card {
    border: 1px solid #e5dfd6;
    border-radius: 8px;
    background: rgba(255, 253, 247, 0.88);
    padding: 12px;
}

.notice-event-card strong,
.notice-event-card span {
    display: block;
}

.notice-event-card span {
    color: #777d74;
    font-size: 12px;
    font-weight: 800;
    margin-top: 4px;
}

.notice-event-card a {
    background: var(--primary);
    border-radius: 999px;
    color: #fff;
    display: inline-flex;
    font-size: 12px;
    font-weight: 800;
    margin-top: 10px;
    padding: 8px 12px;
    text-decoration: none;
}

.learning-journal-section {
    gap: 12px;
}

.learning-journal-list {
    display: grid;
    gap: 10px;
    width: 100%;
}

.learning-journal-empty {
    background: rgba(255, 253, 247, 0.78);
    border: 1px dashed #d7d0c5;
    border-radius: 8px;
    padding: 12px;
}

.learning-journal-card {
    background: rgba(255, 253, 247, 0.88);
    border: 1px solid #d7d0c5;
    border-radius: 8px;
    display: grid;
    gap: 6px;
    padding: 14px;
}

.learning-journal-card span,
.learning-journal-card small {
    color: #6f7f70;
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
}

.learning-journal-card strong {
    color: #4d7555;
    font-size: 13px;
}

.learning-journal-card time {
    color: #8b8177;
    font-size: 12px;
    font-weight: 800;
}

.learning-journal-card p {
    color: #33352f;
    font-size: 14px;
}
