:root {
    --ink: #15211b;
    --muted: #647067;
    --paper: #f8f3e7;
    --paper-2: #fffaf0;
    --leaf: #0f5b45;
    --leaf-2: #163f34;
    --sun: #e7a72f;
    --coral: #d85f3f;
    --line: rgba(21, 33, 27, 0.13);
    --shadow: 0 24px 70px rgba(28, 42, 34, 0.12);
    --radius-xl: 30px;
    --radius-lg: 22px;
    --radius-md: 16px;
    --container: 1460px;
    --page-gutter: clamp(14px, 2.8vw, 52px);
}

* {
    box-sizing: border-box;
}

[hidden] {
    display: none !important;
}

body {
    margin: 0;
    color: var(--ink);
    background:
        radial-gradient(circle at 12% 8%, rgba(231, 167, 47, 0.2), transparent 28%),
        radial-gradient(circle at 90% 0%, rgba(15, 91, 69, 0.12), transparent 30%),
        linear-gradient(180deg, #fff8e8 0%, #f7f0df 46%, #f3ead6 100%);
    font-family: "HarmonyOS Sans SC", "Microsoft YaHei", "PingFang SC", sans-serif;
    line-height: 1.65;
}

html,
body {
    width: 100%;
    overflow-x: hidden;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    opacity: 0.3;
    background-image:
        linear-gradient(rgba(21, 33, 27, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(21, 33, 27, 0.05) 1px, transparent 1px);
    background-size: 48px 48px;
    mask-image: linear-gradient(to bottom, #000, transparent 80%);
}

img {
    max-width: 100%;
    display: block;
}

a {
    color: inherit;
    text-decoration: none;
}

button,
input,
select,
textarea {
    font: inherit;
}

.container {
    width: min(var(--container), calc(100vw - (var(--page-gutter) * 2)));
    max-width: 100%;
    margin: 0 auto;
}

.narrow {
    width: min(980px, calc(100vw - (var(--page-gutter) * 2)));
    max-width: 100%;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    border-bottom: 1px solid var(--line);
    background: rgba(255, 248, 232, 0.88);
    backdrop-filter: blur(18px);
}

.header-ribbon {
    display: flex;
    justify-content: center;
    gap: 18px;
    padding: 6px 16px;
    color: #fff;
    background: var(--leaf-2);
    font-size: 12px;
    letter-spacing: 0.2em;
}

.nav-shell {
    position: relative;
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 22px;
    min-height: 82px;
    padding-right: 120px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
}

.brand-mark {
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    border-radius: 18px;
    color: #fff;
    background: linear-gradient(135deg, var(--leaf), var(--leaf-2));
    box-shadow: 0 14px 34px rgba(15, 91, 69, 0.22);
    font-family: "Microsoft YaHei", "PingFang SC", "HarmonyOS Sans SC", sans-serif;
    font-weight: 900;
}

.brand strong {
    display: block;
    font-size: 20px;
    letter-spacing: 0.02em;
}

.brand small {
    display: block;
    max-width: 280px;
    color: var(--muted);
    font-size: 11px;
    line-height: 1.3;
}

.main-nav {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
}

.main-nav a,
.admin-sidebar nav a {
    padding: 9px 12px;
    border-radius: 999px;
    color: var(--muted);
    font-size: 13px;
    transition: 0.2s ease;
}

.main-nav a:hover,
.main-nav a.is-active,
.admin-sidebar nav a:hover,
.admin-sidebar nav a.is-active {
    color: #fff;
    background: var(--leaf);
}

.header-search {
    display: flex;
    width: min(310px, 100%);
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.62);
}

.header-actions {
    position: absolute;
    top: 50%;
    right: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 6px;
    transform: translateY(-50%);
}

.header-favorites-link {
    padding: 5px 10px;
    border: 1px solid var(--line);
    border-radius: 999px;
    color: var(--muted);
    font-size: 11px;
    font-weight: 700;
    background: rgba(255, 255, 255, 0.7);
    transition: background 0.2s ease, color 0.2s ease;
}

.header-favorites-link:hover,
.header-favorites-link.is-active {
    color: #fff;
    background: var(--leaf);
}

.header-lang-switcher {
    position: static;
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 4px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.7);
    box-shadow: 0 10px 24px rgba(28, 42, 34, 0.08);
}

.header-lang-switcher .lang-switch {
    padding: 5px 10px;
    border-radius: 999px;
    color: var(--muted);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.02em;
    transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.header-lang-switcher .lang-switch:hover {
    background: rgba(15, 91, 69, 0.08);
}

.header-lang-switcher .lang-switch.is-active {
    color: #fff;
    background: var(--leaf);
    box-shadow: 0 8px 18px rgba(15, 91, 69, 0.18);
}

.header-search input,
.side-search input,
.filter-bar input,
.filter-bar select,
.submit-form input,
.submit-form select,
.submit-form textarea,
.code-grid textarea {
    width: 100%;
    border: 1px solid var(--line);
    border-radius: 16px;
    outline: none;
    background: rgba(255, 255, 255, 0.72);
    color: var(--ink);
}

.header-search input {
    border: 0;
    padding: 10px 14px;
    background: transparent;
}

.header-search button,
.side-search button {
    border: 0;
    padding: 0 16px;
    color: #fff;
    background: var(--leaf);
    cursor: pointer;
}

.nav-toggle {
    display: none;
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 9px 13px;
    background: #fff;
}

.hero-section,
.page-hero {
    position: relative;
    overflow: hidden;
    padding: 78px 0 34px;
}

.hero-section::after,
.page-hero::after {
    content: "";
    position: absolute;
    right: -9vw;
    top: 42px;
    width: 280px;
    height: 280px;
    border: 32px solid rgba(216, 95, 63, 0.12);
    border-radius: 50%;
}

.hero-grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) 420px;
    gap: 40px;
    align-items: center;
}

.eyebrow {
    margin: 0 0 12px;
    color: var(--coral);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.2em;
    text-transform: uppercase;
}

h1,
h2,
h3 {
    font-family: "Microsoft YaHei", "PingFang SC", "HarmonyOS Sans SC", sans-serif;
    line-height: 1.16;
}

h1 {
    margin: 0;
    max-width: 840px;
    font-size: clamp(40px, 6vw, 76px);
    letter-spacing: -0.06em;
}

.hero-copy h1 {
    font-size: clamp(28px, 4.2vw, 50px);
}

h2 {
    margin: 0;
    font-size: clamp(24px, 3vw, 38px);
    letter-spacing: -0.035em;
}

h3 {
    margin: 0;
    font-size: 20px;
}

.hero-lede,
.page-hero p,
.section-heading p {
    max-width: 760px;
    color: var(--muted);
    font-size: 17px;
}

.hero-actions,
.tool-actions,
.external-actions,
.toolbar-row,
.admin-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 10px 17px;
    border: 1px solid var(--line);
    border-radius: 999px;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn:hover {
    transform: translateY(-2px);
}

.btn-dark {
    color: #fff;
    border-color: var(--leaf);
    background: var(--leaf);
    box-shadow: 0 14px 30px rgba(15, 91, 69, 0.18);
}

.btn-ghost {
    background: rgba(255, 255, 255, 0.65);
}

.btn-soft {
    background: rgba(231, 167, 47, 0.16);
}

.favorite-btn.is-favorited {
    color: #fff;
    border-color: var(--coral);
    background: var(--coral);
}

.article-body .favorite-btn {
    margin-top: 16px;
}

.hero-metrics {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 30px;
}

.hero-metrics span {
    padding: 10px 14px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.48);
}

.hero-panel {
    display: grid;
    gap: 18px;
}

.live-card,
.rank-card,
.side-card,
.article-card,
.tool-card,
.prose-card,
.admin-panel,
.stat-card,
.role-card,
.admin-module-card,
.category-card,
.ad-box,
.success-box,
.empty-state {
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    background: rgba(255, 250, 240, 0.76);
    box-shadow: var(--shadow);
}

.live-card {
    min-height: 220px;
    padding: 30px;
    color: #fff;
    background:
        linear-gradient(140deg, rgba(15, 91, 69, 0.95), rgba(22, 63, 52, 0.98)),
        radial-gradient(circle at 90% 15%, rgba(231, 167, 47, 0.3), transparent 34%);
}

.live-dot {
    display: inline-block;
    width: 10px;
    height: 10px;
    margin-right: 8px;
    border-radius: 50%;
    background: #75ffc4;
    box-shadow: 0 0 0 8px rgba(117, 255, 196, 0.12);
}

.rank-card {
    padding: 22px;
}

.rank-card > span {
    display: block;
    margin-bottom: 12px;
    color: var(--muted);
    font-weight: 700;
}

.rank-card a {
    display: grid;
    grid-template-columns: 34px 1fr auto;
    gap: 10px;
    align-items: center;
    padding: 12px 0;
    border-top: 1px dashed var(--line);
}

.rank-card b {
    display: grid;
    place-items: center;
    width: 28px;
    height: 28px;
    border-radius: 10px;
    color: var(--leaf);
    background: rgba(15, 91, 69, 0.1);
}

.rank-card small {
    color: var(--muted);
}

.ad-wrap {
    margin-top: 22px;
    margin-bottom: 12px;
}

.ad-box {
    position: relative;
    display: grid;
    place-items: center;
    min-height: 160px;
    padding: 24px;
    border-style: dashed;
    color: var(--muted);
    background: repeating-linear-gradient(135deg, rgba(15, 91, 69, 0.06), rgba(15, 91, 69, 0.06) 12px, rgba(255, 255, 255, 0.48) 12px, rgba(255, 255, 255, 0.48) 24px);
    box-shadow: none;
}

.ad-box.wide {
    min-height: 96px;
}

.ad-label {
    position: absolute;
    top: 10px;
    left: 12px;
    padding: 3px 9px;
    border-radius: 999px;
    color: #fff;
    background: var(--coral);
    font-size: 11px;
    font-weight: 800;
}

.ad-inner {
    text-align: center;
}

.ad-inner strong,
.ad-inner small {
    display: block;
}

.section-block {
    padding: 54px 0;
}

.section-heading {
    margin-bottom: 24px;
}

.inline-heading {
    display: flex;
    justify-content: space-between;
    gap: 22px;
    align-items: end;
}

.inline-heading > a {
    color: var(--leaf);
    font-weight: 800;
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 16px;
}

.category-card {
    min-height: 210px;
    padding: 22px;
    transition: transform 0.2s ease, background 0.2s ease;
}

.category-card:hover,
.admin-module-card:hover,
.tool-category-strip a:hover,
.article-card:hover,
.tool-card:hover {
    transform: translateY(-4px);
}

.category-card p {
    color: var(--muted);
}

.category-card-dark {
    color: #fff;
    background: var(--leaf-2);
}

.category-card-dark p {
    color: rgba(255, 255, 255, 0.72);
}

.category-icon {
    display: inline-grid;
    place-items: center;
    min-width: 52px;
    height: 38px;
    margin-bottom: 18px;
    padding: 0 10px;
    border-radius: 14px;
    color: var(--leaf);
    background: rgba(15, 91, 69, 0.1);
    font-weight: 900;
}

.content-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) clamp(260px, 24vw, 340px);
    gap: 28px;
    align-items: start;
}

.article-list {
    display: grid;
    gap: 16px;
}

.article-card {
    display: grid;
    grid-template-columns: 220px 1fr;
    overflow: hidden;
    transition: transform 0.2s ease;
}

.article-cover {
    min-height: 190px;
    background: rgba(15, 91, 69, 0.1);
}

.article-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.article-body {
    padding: 22px;
}

.card-meta,
.detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    color: var(--muted);
    font-size: 12px;
}

.article-body p,
.tool-body p,
.side-card p,
.role-card p,
.admin-module-card span {
    color: var(--muted);
}

.tag-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 14px;
}

.tag-row.centered {
    justify-content: center;
}

.tag-row span {
    padding: 5px 9px;
    border-radius: 999px;
    color: var(--leaf);
    background: rgba(15, 91, 69, 0.1);
    font-size: 11px;
    font-weight: 700;
}

.sidebar {
    display: grid;
    gap: 18px;
    position: sticky;
    top: 120px;
}

.side-card {
    padding: 22px;
}

.side-card a {
    display: block;
    padding: 11px 0;
    border-top: 1px dashed var(--line);
    color: var(--leaf);
    font-weight: 700;
}

.accent-card {
    background: rgba(231, 167, 47, 0.16);
}

.tool-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.compact-grid {
    grid-template-columns: 1fr;
}

.tool-card {
    display: grid;
    grid-template-columns: 108px 1fr;
    gap: 16px;
    padding: 18px;
    transition: transform 0.2s ease;
}

.tool-logo {
    display: grid;
    place-items: center;
    width: 96px;
    height: 96px;
    background: transparent;
    border-radius: 0;
}

.tool-logo img {
    width: 90px;
    height: 90px;
    object-fit: contain;
}

.tool-headline {
    display: flex;
    justify-content: space-between;
    gap: 12px;
}

.tool-name-link {
    color: inherit;
}

.tool-name-link:hover {
    color: var(--leaf);
}

.tool-clicks {
    color: var(--muted);
    font-size: 11px;
    white-space: nowrap;
}

.tool-en-hint {
    display: block;
    margin-top: 3px;
    color: var(--muted);
    font-size: 11px;
    font-weight: 600;
}

.bio-tools-hero {
    padding-bottom: 24px;
}

.bio-tools-metrics span {
    color: var(--leaf);
    border-color: rgba(15, 91, 69, 0.2);
    background: rgba(255, 255, 255, 0.78);
}

.bio-nav-layout {
    display: grid;
    grid-template-columns: clamp(220px, 22vw, 300px) minmax(0, 1fr);
    gap: 24px;
    align-items: start;
}

.bio-nav-sidebar {
    position: sticky;
    top: 110px;
    display: grid;
    gap: 16px;
}

.bio-tree-card {
    padding: 20px;
}

.bio-tree-card h3 {
    margin-bottom: 8px;
}

.bio-tree-card p {
    margin-top: 0;
    margin-bottom: 14px;
    color: var(--muted);
    font-size: 13px;
}

.bio-category-tree {
    display: grid;
    gap: 12px;
    max-height: calc(100vh - 280px);
    overflow: auto;
    padding-right: 4px;
}

.bio-tree-group {
    padding-bottom: 10px;
    border-bottom: 1px dashed var(--line);
}

.bio-tree-group:last-child {
    padding-bottom: 0;
    border-bottom: 0;
}

.bio-tree-root {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    align-items: center;
    padding: 7px 10px;
    border-radius: 12px;
    color: var(--leaf-2);
    font-weight: 800;
    transition: background 0.2s ease;
}

.bio-tree-root:hover {
    background: rgba(15, 91, 69, 0.08);
}

.bio-tree-root em {
    min-width: 28px;
    padding: 2px 8px;
    border-radius: 999px;
    color: #fff;
    background: var(--leaf);
    font-style: normal;
    font-size: 11px;
    text-align: center;
}

.bio-tree-children {
    margin-top: 6px;
    padding-left: 8px;
    display: grid;
    gap: 4px;
}

.bio-tree-children a {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    align-items: center;
    padding: 5px 8px;
    border-radius: 10px;
    color: var(--muted);
    font-size: 12px;
    transition: background 0.2s ease, color 0.2s ease;
}

.bio-tree-children a:hover {
    color: var(--leaf);
    background: rgba(15, 91, 69, 0.08);
}

.bio-tree-children small {
    color: var(--leaf);
    font-size: 11px;
    font-weight: 800;
}

.bio-nav-main {
    display: grid;
    gap: 18px;
}

.bio-recommend-card,
.bio-root-section,
.bio-tool-section {
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    background: rgba(255, 250, 240, 0.84);
}

.bio-recommend-card {
    padding: 18px;
}

.bio-chip-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 12px;
}

.bio-chip-link {
    display: inline-flex;
    align-items: center;
    min-height: 36px;
    padding: 0 14px;
    border: 1px solid rgba(15, 91, 69, 0.2);
    border-radius: 999px;
    color: var(--leaf-2);
    background: rgba(255, 255, 255, 0.88);
    font-size: 13px;
    font-weight: 700;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.bio-chip-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(15, 91, 69, 0.14);
}

.bio-root-section {
    padding: 18px;
}

.bio-root-section + .bio-root-section {
    margin-top: 8px;
}

.bio-root-header {
    margin-bottom: 12px;
    padding: 2px 2px 10px;
    border-bottom: 1px solid var(--line);
}

.bio-root-header h2 {
    font-size: clamp(22px, 2.7vw, 32px);
}

.bio-root-header p {
    margin: 8px 0 0;
    color: var(--muted);
}

.bio-tool-section {
    margin-top: 12px;
    padding: 14px;
}

.bio-tool-section-head {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: center;
}

.bio-tool-section-head h2,
.bio-tool-section-head h3 {
    font-size: clamp(18px, 2.2vw, 28px);
}

.bio-tool-section-head span {
    color: var(--muted);
    font-size: 12px;
}

.bio-name-hint {
    display: block;
    margin-top: 2px;
    color: var(--muted);
    font-size: 11px;
    font-weight: 600;
}

.bio-more-link {
    color: var(--leaf);
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: lowercase;
}

.bio-section-desc {
    margin: 8px 0 14px;
    color: var(--muted);
}

.bio-tool-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.bio-tool-grid .tool-card {
    grid-template-columns: 86px 1fr;
    gap: 12px;
    padding: 14px 16px;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: none;
}

.bio-tool-grid .tool-logo {
    width: 78px;
    height: 78px;
    border-radius: 0;
    background: transparent;
}

.bio-tool-grid .tool-logo img {
    width: 70px;
    height: 70px;
    object-fit: contain;
}

.bio-tool-grid .tool-actions {
    gap: 8px;
}

.bio-tool-grid .tool-actions .btn {
    min-height: 36px;
    padding: 7px 13px;
    font-size: 14px;
    line-height: 1.12;
}

.page-hero {
    padding: 70px 0 36px;
    text-align: center;
}

.tools-hero h1 {
    font-size: clamp(24px, 3vw, 36px);
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.page-hero.compact-hero {
    padding: 34px 0 14px;
}

.page-hero .container,
.article-hero .container {
    position: relative;
    z-index: 1;
}

.compact-hero .eyebrow,
.compact-hero h1 {
    margin: 0 auto;
    font-size: clamp(22px, 3.4vw, 30px);
    line-height: 1.2;
}

.compact-hero .eyebrow {
    margin-bottom: 8px;
    letter-spacing: 0;
    text-transform: none;
    color: var(--muted);
}

.compact-hero p,
.compact-hero small,
.tools-hero p {
    display: block;
    margin: 14px auto 0;
}

.compact-hero p {
    max-width: min(100%, 1120px);
    font-size: 15px;
    line-height: 1.72;
}

.compact-hero small {
    max-width: min(100%, 1120px);
    font-size: 13px;
    line-height: 1.68;
}

.breadcrumbs {
    margin: 18px 0 0;
    color: var(--muted);
    font-size: 13px;
}

.breadcrumbs a {
    color: var(--leaf);
    font-weight: 700;
}

.crumb-sep {
    margin: 0 8px;
}

.filter-bar {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 12px;
    margin-bottom: 18px;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    background: rgba(255, 250, 240, 0.74);
}

.multi-filter {
    grid-template-columns: 1.4fr repeat(3, minmax(120px, 0.6fr)) auto;
}

.filter-bar input,
.filter-bar select {
    min-height: 44px;
    padding: 0 13px;
}

.tool-category-strip,
.subcat-row,
.sitemap-columns,
.role-grid,
.admin-module-grid,
.admin-grid {
    display: grid;
    gap: 16px;
}

.tool-category-strip {
    grid-template-columns: repeat(4, 1fr);
}

.tool-category-strip a {
    min-height: 150px;
    padding: 20px;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    background: rgba(255, 250, 240, 0.76);
    transition: transform 0.2s ease;
}

.tool-category-strip strong,
.tool-category-strip span {
    display: block;
}

.tool-category-strip span {
    margin-top: 10px;
    color: var(--muted);
    font-size: 13px;
}

.subcat-row {
    grid-template-columns: auto repeat(auto-fit, minmax(120px, auto));
    align-items: center;
    margin-bottom: 18px;
    padding: 14px;
    border-radius: var(--radius-lg);
    background: rgba(15, 91, 69, 0.08);
}

.subcat-row a {
    color: var(--leaf);
    font-weight: 800;
}

.article-hero {
    padding: 64px 0 32px;
    text-align: center;
}

.article-hero-topbar {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 8px;
}

.article-hero-topbar .favorite-btn {
    min-height: 32px;
    padding: 5px 12px;
    color: rgba(21, 33, 27, 0.7);
    border-color: rgba(21, 33, 27, 0.12);
    background: rgba(255, 250, 240, 0.82);
    box-shadow: none;
    font-size: 11px;
    line-height: 1;
}

.article-hero-topbar .favorite-btn:hover {
    transform: translateY(-1px);
    background: rgba(231, 167, 47, 0.12);
}

.article-hero h1 {
    margin: 0 auto 18px;
    font-size: clamp(16px, 2.2vw, 30px);
    line-height: 1.24;
    letter-spacing: -0.03em;
}

.disclosure-strip {
    margin-top: 20px;
    padding: 12px 14px;
    border: 1px solid rgba(216, 95, 63, 0.24);
    border-radius: 16px;
    color: #8a3c29;
    background: rgba(216, 95, 63, 0.08);
    font-size: 12px;
    text-align: left;
}

.detail-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) clamp(260px, 24vw, 340px);
    gap: 28px;
    align-items: start;
    padding: 24px 0 70px;
}

.hero-grid > *,
.content-layout > *,
.detail-layout > *,
.bio-nav-layout > *,
.tool-grid > *,
.bio-tool-grid > *,
.article-card > *,
.tool-card > * {
    min-width: 0;
}

.prose-card {
    padding: min(5vw, 44px);
}

.prose {
    font-size: 14px;
    line-height: 1.7;
}

.prose h2 {
    margin-top: 38px;
    margin-bottom: 12px;
    font-size: clamp(18px, 1.8vw, 21px);
}

.prose h3 {
    margin-top: 24px;
    margin-bottom: 10px;
    font-size: clamp(15px, 1.4vw, 17px);
}

.prose p {
    color: #334039;
}

.tool-guide-actions {
    justify-content: center;
}

.tool-guide-body ul,
.tool-guide-body ol {
    padding-left: 20px;
}

.tool-guide-body li {
    margin: 9px 0;
}

.tool-pros-cons {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.tool-pros-cons .side-card {
    padding: 16px;
    box-shadow: none;
}

.tool-pros-cons .side-card h3 {
    margin-bottom: 6px;
    font-size: 17px;
}

.tool-guide-sidebar .side-card p {
    margin: 8px 0;
}

.embedded-tools {
    margin-top: 34px;
}

.article-ending,
.prev-next {
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid var(--line);
}

.prev-next {
    display: flex;
    justify-content: space-between;
    gap: 14px;
}

.prev-next a {
    color: var(--leaf);
    font-weight: 800;
}

.static-page .ad-box {
    margin-top: 30px;
}

.sitemap-columns {
    grid-template-columns: repeat(3, 1fr);
    margin-top: 24px;
}

.sitemap-columns a {
    display: block;
    padding: 7px 0;
    color: var(--leaf);
    font-weight: 700;
}

.form-shell {
    max-width: 760px;
}

.submit-form {
    display: grid;
    gap: 16px;
    padding: 24px;
    border: 1px solid var(--line);
    border-radius: var(--radius-xl);
    background: rgba(255, 250, 240, 0.82);
    box-shadow: var(--shadow);
}

.submit-form label,
.code-grid label {
    display: grid;
    gap: 8px;
    color: var(--muted);
    font-weight: 700;
}

.submit-form input,
.submit-form select,
.submit-form textarea,
.code-grid textarea {
    padding: 12px 14px;
}

.success-box,
.empty-state {
    padding: 18px;
    color: var(--leaf);
    background: rgba(15, 91, 69, 0.08);
    box-shadow: none;
}

.external-modal {
    position: fixed;
    inset: 0;
    z-index: 50;
    display: grid;
    place-items: center;
    padding: 20px;
    background: rgba(21, 33, 27, 0.46);
}

.external-card {
    width: min(460px, 100%);
    padding: 26px;
    border-radius: var(--radius-xl);
    background: var(--paper-2);
    box-shadow: var(--shadow);
}

.site-footer {
    padding: 54px 0 24px;
    color: rgba(255, 255, 255, 0.78);
    background: #12251e;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.6fr 0.7fr 0.7fr;
    gap: 34px;
}

.site-footer h2,
.site-footer h3 {
    color: #fff;
}

.site-footer a {
    display: block;
    margin: 8px 0;
    color: rgba(255, 255, 255, 0.76);
}

.footer-notice {
    font-size: 12px;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    margin-top: 28px;
    padding-top: 18px;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    font-size: 12px;
}

.admin-body {
    background: #eef1e7;
}

.admin-shell {
    display: grid;
    grid-template-columns: 280px minmax(0, 1fr);
    min-height: 100vh;
}

.admin-sidebar {
    position: sticky;
    top: 0;
    height: 100vh;
    overflow: auto;
    padding: 22px;
    color: #fff;
    background: #11251e;
}

.admin-brand {
    margin-bottom: 22px;
}

.admin-sidebar nav {
    display: grid;
    gap: 6px;
}

.admin-sidebar nav a {
    color: rgba(255, 255, 255, 0.72);
    border-radius: 14px;
}

.admin-main {
    padding: 28px;
}

.admin-topbar {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    align-items: center;
    margin-bottom: 22px;
}

.admin-topbar h1 {
    font-size: 37px;
}

.admin-grid.cards-4 {
    grid-template-columns: repeat(4, 1fr);
}

.stat-card,
.role-card,
.admin-panel,
.admin-module-card {
    padding: 20px;
}

.stat-card span,
.stat-card small {
    color: var(--muted);
}

.stat-card strong {
    display: block;
    margin: 8px 0;
    font-size: 33px;
}

.admin-panel {
    margin-top: 22px;
    background: rgba(255, 250, 240, 0.86);
}

.panel-heading {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 18px;
}

.role-grid {
    grid-template-columns: repeat(4, 1fr);
}

.admin-module-grid {
    grid-template-columns: repeat(3, 1fr);
}

.admin-module-card {
    display: grid;
    gap: 8px;
    transition: transform 0.2s ease;
}

.admin-table-wrap {
    overflow-x: auto;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 880px;
}

.admin-table th,
.admin-table td {
    padding: 13px 12px;
    border-bottom: 1px solid var(--line);
    text-align: left;
}

.admin-table th {
    color: var(--muted);
    font-size: 12px;
}

.admin-table a {
    margin-right: 8px;
    color: var(--leaf);
    font-weight: 800;
}

.warning-panel {
    border-color: rgba(216, 95, 63, 0.25);
    background: rgba(216, 95, 63, 0.06);
}

.member-panel {
    margin-top: 18px;
}

.member-filter {
    grid-template-columns: 1.5fr repeat(2, minmax(140px, 0.7fr)) auto;
    margin-bottom: 16px;
}

.member-table td strong {
    font-size: 13px;
}

.member-plan,
.member-status {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 0 10px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 800;
    white-space: nowrap;
}

.member-plan-free {
    color: #2a5a4b;
    background: rgba(15, 91, 69, 0.12);
}

.member-plan-trial {
    color: #68491c;
    background: rgba(231, 167, 47, 0.24);
}

.member-plan-pro {
    color: #163f34;
    background: rgba(117, 255, 196, 0.25);
}

.member-plan-studio {
    color: #13315c;
    background: rgba(85, 159, 255, 0.24);
}

.member-plan-enterprise {
    color: #53296c;
    background: rgba(196, 123, 255, 0.24);
}

.member-status-active {
    color: #0f5b45;
    background: rgba(15, 91, 69, 0.12);
}

.member-status-inactive {
    color: #7a6341;
    background: rgba(122, 99, 65, 0.14);
}

.member-status-suspended {
    color: #8e2f1b;
    background: rgba(216, 95, 63, 0.18);
}

.code-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.check-list li {
    margin: 10px 0;
}

.with-gap {
    margin-top: 38px;
}

@media (max-width: 1060px) {
    .nav-shell {
        grid-template-columns: 1fr auto;
        padding-right: 96px;
    }

    .nav-toggle {
        display: inline-flex;
    }

    .main-nav,
    .header-search,
    .header-actions {
        display: none;
        grid-column: 1 / -1;
        width: 100%;
    }

    .main-nav.is-open,
    .header-search.is-open,
    .header-actions.is-open {
        display: flex;
    }

    .hero-grid,
    .content-layout,
    .detail-layout,
    .admin-shell {
        grid-template-columns: 1fr;
    }

    .sidebar,
    .admin-sidebar {
        position: static;
        height: auto;
    }

    .category-grid,
    .tool-category-strip,
    .role-grid,
    .admin-module-grid,
    .admin-grid.cards-4 {
        grid-template-columns: repeat(2, 1fr);
    }

    .multi-filter {
        grid-template-columns: 1fr 1fr;
    }

    .member-filter {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 1200px) {
    .bio-nav-layout {
        grid-template-columns: 240px minmax(0, 1fr);
        gap: 18px;
    }

    .bio-nav-sidebar {
        top: 96px;
    }

    .bio-tool-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 980px) {
    .bio-nav-layout {
        grid-template-columns: 220px minmax(0, 1fr);
        gap: 14px;
    }

    .bio-tree-card {
        padding: 14px;
    }

    .bio-tree-root {
        padding: 6px 8px;
        font-size: 13px;
    }

    .bio-tree-children a {
        font-size: 11px;
    }
}

@media (max-width: 759px) {
    .bio-nav-layout {
        grid-template-columns: 1fr;
    }

    .bio-nav-sidebar {
        position: static;
        order: 2;
    }

    .bio-nav-main {
        order: 1;
    }

    .bio-category-tree {
        max-height: none;
    }
}

@media (min-width: 760px) {
    .bio-nav-layout {
        display: grid !important;
        grid-template-columns: clamp(200px, 22vw, 280px) minmax(0, 1fr) !important;
        gap: 16px !important;
    }

    .bio-nav-sidebar {
        position: sticky !important;
        top: 96px !important;
        order: initial !important;
    }

    .bio-nav-main {
        order: initial !important;
    }
}

@media (max-width: 720px) {
    .container,
    .narrow {
        width: min(var(--container), calc(100vw - clamp(18px, 8vw, 28px)));
    }

    .header-ribbon {
        gap: 10px;
        letter-spacing: 0.08em;
    }

    .header-actions {
        top: 18px;
        right: 0;
        transform: scale(0.92);
        transform-origin: top right;
    }

    .hero-section,
    .page-hero {
        padding-top: 44px;
    }

    .tools-hero h1 {
        font-size: clamp(18px, 6.2vw, 26px);
        line-height: 1.22;
    }

    .page-hero.compact-hero {
        padding-top: 20px;
        padding-bottom: 10px;
    }

    h1 {
        font-size: 41px;
    }

    .article-hero h1 {
        font-size: clamp(15px, 4.8vw, 20px);
        line-height: 1.22;
    }

    .article-hero-topbar {
        margin-bottom: 6px;
    }

    .article-hero-topbar .favorite-btn {
        min-height: 30px;
        padding: 4px 10px;
        font-size: 10px;
    }

    .prose {
        font-size: 13px;
        line-height: 1.68;
    }

    .prose h2 {
        font-size: clamp(16px, 4.2vw, 18px);
    }

    .prose h3 {
        font-size: clamp(14px, 3.8vw, 16px);
    }

    .hero-lede,
    .page-hero p,
    .section-heading p {
        font-size: 15px;
    }

    .compact-hero .eyebrow,
    .compact-hero h1 {
        font-size: clamp(18px, 5.8vw, 22px);
        line-height: 1.22;
    }

    .compact-hero p {
        max-width: 100%;
        font-size: 13px;
        line-height: 1.66;
    }

    .compact-hero small {
        max-width: 100%;
        font-size: 12px;
        line-height: 1.6;
    }

    .tool-pros-cons {
        grid-template-columns: 1fr;
    }

    .category-grid,
    .tool-grid,
    .tool-category-strip,
    .sitemap-columns,
    .role-grid,
    .admin-module-grid,
    .admin-grid.cards-4,
    .code-grid,
    .footer-grid,
    .multi-filter,
    .filter-bar {
        grid-template-columns: 1fr;
    }

    .article-card,
    .tool-card {
        grid-template-columns: 1fr;
    }

    .article-cover {
        min-height: 160px;
    }

    .inline-heading,
    .panel-heading,
    .admin-topbar,
    .footer-bottom,
    .prev-next {
        align-items: flex-start;
        flex-direction: column;
    }

    .bio-tool-section-head {
        align-items: flex-start;
        flex-direction: column;
    }

    .bio-tree-root {
        padding: 6px 8px;
    }

    .bio-chip-link {
        width: 100%;
        justify-content: center;
    }

    .bio-tool-grid .tool-card {
        grid-template-columns: 1fr;
        padding: 14px;
    }

    .bio-tool-grid .tool-logo {
        width: 64px;
        height: 64px;
        border-radius: 0;
        background: transparent;
    }

    .bio-tool-grid .tool-logo img {
        width: 56px;
        height: 56px;
    }

    .bio-tool-grid .tool-headline {
        align-items: flex-start;
        flex-direction: column;
        gap: 6px;
    }

    .bio-tool-grid .tool-clicks {
        font-size: 10px;
    }

    .bio-tool-grid .tool-actions .btn {
        min-height: 34px;
        padding: 6px 11px;
        font-size: 13px;
    }

    .admin-main {
        padding: 16px;
    }
}


/* DataLearner-like home information architecture (custom content) */
.dl-hero-shell {
    padding-top: 56px;
    padding-bottom: 24px;
}

.dl-hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(300px, 420px);
    gap: 24px;
    align-items: start;
}

.dl-hero-points {
    margin: 14px 0 0;
    padding-left: 18px;
    color: var(--leaf-2);
}

.dl-hero-points li {
    margin: 6px 0;
}

.dl-metrics-wide {
    gap: 8px;
}

.dl-metrics-wide span {
    border: 1px solid rgba(15, 91, 69, 0.2);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.7);
}

.dl-hero-panel {
    display: grid;
    gap: 14px;
}

.dl-mini-card {
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    background: rgba(255, 250, 240, 0.86);
}

.dl-mini-card h3 {
    margin-bottom: 10px;
}

.dl-mini-card ol {
    margin: 0;
    padding-left: 18px;
}

.dl-mini-card li {
    margin: 8px 0;
}

.dl-mini-links {
    display: grid;
    gap: 8px;
}

.dl-mini-links a {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    padding: 8px 10px;
    border-radius: 10px;
    background: rgba(15, 91, 69, 0.06);
}

.dl-mini-links small {
    color: var(--muted);
}

.dl-task-grid,
.dl-feature-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
}

.dl-task-card,
.dl-feature-card {
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.74);
}

.dl-task-card p,
.dl-feature-card p {
    color: var(--muted);
}

.dl-task-card a,
.dl-feature-card a {
    color: var(--leaf);
    font-weight: 700;
}

.dl-browse-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.dl-browse-col {
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.74);
}

.dl-browse-col h3 {
    margin-bottom: 10px;
}

.dl-browse-col a {
    display: block;
    margin-top: 8px;
    padding: 10px;
    border-radius: 10px;
    background: rgba(15, 91, 69, 0.06);
}

.dl-browse-col small {
    display: block;
    margin-top: 2px;
    color: var(--muted);
}

@media (max-width: 1100px) {
    .dl-hero-grid {
        grid-template-columns: 1fr;
    }

    .dl-task-grid,
    .dl-feature-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 720px) {
    .dl-task-grid,
    .dl-feature-grid,
    .dl-browse-grid {
        grid-template-columns: 1fr;
    }
}


.main-nav a.is-active {
    color: #0f5b45;
    background: transparent;
    border-radius: 0;
    transform: translateY(-2px);
    font-weight: 800;
}


.main-nav a.is-active:hover {
    color: #0f5b45;
    background: transparent;
}


/* top nav unified: gray default, deep-green hover, no pill frame */
.main-nav a,
.nav-dropdown-trigger {
    color: var(--muted);
    background: transparent;
    border: 0;
    border-radius: 0;
    box-shadow: none;
}

.main-nav a:hover,
.main-nav a:focus-visible,
.main-nav a.is-active,
.main-nav a.is-active:hover,
.nav-dropdown:hover .nav-dropdown-trigger,
.nav-dropdown.is-open .nav-dropdown-trigger,
.nav-dropdown-trigger:hover,
.nav-dropdown-trigger:focus-visible {
    color: #0f5b45;
    background: transparent;
    border-radius: 0;
    box-shadow: none;
    transform: none;
}

@media (max-width: 1060px) {
    .main-nav .nav-dropdown-trigger {
        border: 0;
        border-radius: 0;
        background: transparent;
    }
}


/* datalearner-like nav dropdown style */
.nav-dropdown {
    position: relative;
}

.nav-dropdown-trigger {
    display: inline-flex;
    align-items: center;
    gap: 18px;
    border: 0;
    background: transparent;
    padding: 9px 8px;
    color: #6b7280;
    font-size: 13px;
    cursor: pointer;
}


.nav-dropdown-menu {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    min-width: 360px;
    padding: 14px 0;
    border-top: 1px solid #e5e7eb;
    background: #f3f4f6;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
    display: none;
    z-index: 35;
}

.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown.is-open .nav-dropdown-menu {
    display: block;
}

.nav-dropdown-menu a {
    display: block;
    padding: 11px 18px;
    color: #6b7280;
    white-space: nowrap;
    border-radius: 0;
}

.nav-dropdown-menu a:hover {
    color: #0f5b45;
    background: transparent;
}

@media (max-width: 1060px) {
    .main-nav .nav-dropdown-trigger {
        width: 100%;
        justify-content: space-between;
        border: 0;
        border-radius: 0;
        background: transparent;
        margin-top: 4px;
        padding: 9px 0;
    }

    .main-nav .nav-dropdown-menu {
        position: static;
        min-width: 100%;
        margin-top: 4px;
        box-shadow: none;
    }
}


.header-auth-link {
    padding: 5px 10px;
    border: 1px solid var(--line);
    border-radius: 999px;
    color: var(--leaf-2);
    font-size: 11px;
    font-weight: 700;
    background: rgba(255,255,255,0.8);
}
.header-auth-link-secondary {
    background: rgba(15, 91, 69, 0.08);
}
.member-auth-form {
    display: grid;
    gap: 16px;
    max-width: 420px;
}
.member-auth-form label {
    display: grid;
    gap: 6px;
    font-weight: 700;
}
.member-auth-form input {
    min-height: 44px;
    padding: 0 14px;
    border: 1px solid var(--line);
    border-radius: 14px;
}
