:root {
    --family-paper: #f7f3ed;
    --family-ink: #293844;
    --family-blue: #096eaf;
    --family-line: #d9e5ec;
}

body {
    background: var(--family-paper) url('../images/family-paper-texture.webp') repeat;
}

main.main-content {
    background: transparent;
}

.page-intro.page-intro--with-breadcrumb {
    isolation: isolate;
    display: flex;
    flex-direction: column;
    min-height: min(820px, 88vh);
    padding: 108px 0 0 !important;
    overflow: hidden;
    background: transparent !important;
}

.page-intro::before,
.page-intro::after,
.page-intro .custom-shape-divider-bottom,
.page-intro .banner-image {
    display: none !important;
}

.family-art {
    position: absolute;
    inset: 0 0 24px;
    z-index: -1;
    background: url('../images/family-sky-collage.webp') center 43% / cover no-repeat;
    pointer-events: none;
}

.page-intro .easyops-breadcrumb--family {
    --crumb-accent: #126eaf;
    --crumb-tint: #e9f5fb;
    --crumb-ink: #244057;
    width: min(1200px, calc(100% - 64px));
    margin: 0 auto;
    color: #43586a;
}

.page-intro-content {
    display: block;
    width: min(1200px, calc(100% - 64px));
    flex: 1;
    margin: 0 auto;
    padding: clamp(76px, 10vh, 130px) 0 72px;
}

.page-intro .banner-text {
    width: min(570px, 47%);
    margin: 0;
    animation: none;
    text-align: left;
}

.page-intro h1 {
    margin: 0 0 26px;
    padding: 0;
    color: #293540 !important;
    font-family: 'Source Han Serif SC', 'Noto Serif CJK SC', 'Songti SC', SimSun, serif;
    font-size: 68px;
    font-weight: 600;
    line-height: 1.26;
    letter-spacing: 0;
    text-shadow: none;
}

.page-intro h1 .highlight-word {
    padding: 0;
    color: inherit;
    font-weight: inherit;
}

.page-intro h1 .highlight-word::after {
    display: none;
}

.page-intro .subtitle {
    max-width: 470px;
    margin: 0 0 36px;
    padding: 0;
    color: #495967 !important;
    font-size: 19px;
    line-height: 1.7;
}

.page-intro .banner-buttons {
    align-items: center;
    gap: 24px;
}

.page-intro .banner-btn {
    min-height: 56px;
    padding: 12px 26px;
    border: 1px solid transparent;
    border-radius: 100px;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.35;
    transition: background-color 180ms ease, color 180ms ease, box-shadow 180ms ease;
}

.page-intro .banner-btn.primary,
[data-theme='dark'] .page-intro .banner-btn.primary {
    background: var(--family-blue);
    box-shadow: 0 5px 14px rgba(16, 104, 171, .19);
    color: #fff;
}

.page-intro .banner-btn.primary:hover {
    background: #0e69b1;
    box-shadow: 0 7px 18px rgba(16, 104, 171, .25);
    transform: none;
}

.page-intro .banner-btn.secondary {
    padding-inline: 2px;
    border-radius: 0;
    border-color: transparent;
    border-bottom-color: transparent;
    background: transparent;
    color: #315266;
}

.page-intro .banner-btn.secondary:hover {
    background: transparent;
    border-bottom-color: transparent;
    color: var(--family-blue);
    transform: none;
}

.page-intro .banner-btn:hover i {
    transform: none;
}

#tool-list-section .category-nav,
[data-theme='dark'] #tool-list-section .category-nav {
    z-index: 2;
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    align-items: stretch;
    gap: 0;
    flex: none;
    width: 100%;
    max-height: none;
    min-height: 76px;
    margin: 22px 0 24px;
    padding: 0;
    overflow: visible;
    border: 0;
    border-top: 1px solid #e3e9e8;
    border-bottom: 1px solid #e3e9e8;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

#tool-list-section .category-nav::before {
    display: none;
}

#tool-list-section .category-nav a:first-child,
[data-theme='dark'] #tool-list-section .category-nav a:first-child {
    display: none;
}

#tool-list-section .category-nav a,
[data-theme='dark'] #tool-list-section .category-nav a {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 3px;
    min-width: 0;
    min-height: 76px;
    margin: 0;
    padding: 8px 6px;
    border: 0;
    border-right: 1px solid #edf1f1;
    border-radius: 0;
    background: transparent !important;
    color: #345263;
    font-size: 14px;
    font-weight: 600;
    text-align: center;
    white-space: normal;
}

#tool-list-section .category-nav a:last-child {
    border-right: 0;
}

#tool-list-section .category-nav a i {
    display: inline !important;
    color: #197db9;
    font-size: 21px;
    line-height: 1;
}

#tool-list-section .category-nav a span,
[data-theme='dark'] #tool-list-section .category-nav a span {
    display: inline;
    margin: 0 !important;
    padding: 0;
    background: transparent !important;
    box-shadow: none !important;
    color: inherit;
    font-size: 14px !important;
}

#tool-list-section .category-nav a:hover,
#tool-list-section .category-nav a.active,
[data-theme='dark'] #tool-list-section .category-nav a:hover,
[data-theme='dark'] #tool-list-section .category-nav a.active {
    background: #eaf5fb !important;
    box-shadow: none;
    color: #0d5c92;
}

#tool-list-section {
    padding: 28px 0 34px;
    background: transparent;
}

#footer-container .footer {
    background: transparent;
    border-top-color: var(--family-line);
    color: #526b79;
}

#footer-container .footer a {
    color: #526b79;
}

#footer-container .footer a:hover {
    color: var(--family-blue);
}

#tool-list-section .container {
    max-width: 1200px;
}

#tools-container {
    counter-reset: family-section;
}

#tools-container > .tool-category-section:first-child {
    border-top: 0;
}

.tool-list-heading {
    margin: 0 0 28px;
    padding: 0;
}

.tool-list-heading span {
    color: #1675aa;
    font-size: 13px;
    font-weight: 700;
}

.tool-list-heading h2 {
    margin: 8px 0 0;
    color: var(--family-ink);
    font-family: 'Source Han Serif SC', 'Noto Serif CJK SC', 'Songti SC', SimSun, serif;
    font-size: 34px;
    font-weight: 600;
    line-height: 1.35;
    text-align: left;
}

.tool-category-section,
[data-theme='dark'] .tool-category-section {
    display: grid;
    grid-template-columns: 218px minmax(0, 1fr);
    gap: 36px;
    counter-increment: family-section;
    margin: 0;
    padding: 48px 0 58px;
    border: 0;
    border-top: 1px solid var(--family-line);
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

.category-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 0;
    padding: 0;
    border: 0;
}

.category-header::before {
    content: '0' counter(family-section) ' /';
    color: #1382c1;
    font: 600 13px/1.4 Consolas, 'Courier New', monospace;
}

.category-header .icon {
    display: none;
}

.category-header h2,
[data-theme='dark'] .category-header h2 {
    color: #274052;
    font-family: 'Source Han Serif SC', 'Noto Serif CJK SC', 'Songti SC', SimSun, serif;
    font-size: 30px;
    font-weight: 600;
    text-align: left;
}

.category-header .tool-count {
    color: #5d7685;
    font-size: 13px;
}

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

.tool-card,
[data-theme='dark'] .tool-card {
    position: relative;
    min-height: 110px;
    padding: 19px 32px 19px 2px;
    align-items: flex-start;
    gap: 13px;
    border: 0;
    border-bottom: 1px solid #d6e5e8;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    color: var(--family-ink);
    transition: color 180ms ease, border-color 180ms ease, background-color 180ms ease;
}

.tool-card::after {
    content: '\2192';
    position: absolute;
    top: 19px;
    right: 3px;
    color: #1376b3;
    font-size: 20px;
    line-height: 1;
    opacity: .65;
    transition: opacity 180ms ease, transform 180ms ease;
}

.tool-card:hover,
[data-theme='dark'] .tool-card:hover {
    transform: none;
    border-color: #62b2d9;
    background: rgba(223, 242, 249, .56);
    box-shadow: none;
    color: #105e91;
}

.tool-card:hover::after,
.tool-card:focus-visible::after {
    opacity: 1;
    transform: translateX(3px);
}

.tool-card h3,
[data-theme='dark'] .tool-card h3 {
    overflow: visible;
    color: #263e4b;
    font-size: 17px;
    line-height: 1.4;
    white-space: normal;
    text-overflow: clip;
}

.tool-card p,
[data-theme='dark'] .tool-card p {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    color: #526b79;
    font-size: 14px;
    line-height: 1.55;
}

.tool-icon {
    width: 28px;
    min-width: 28px;
    height: 28px;
    padding: 2px;
    border-radius: 0;
}

.tool-category-section .tool-icon {
    background: transparent;
    color: #167db6;
}

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

.family-overview {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    margin: 0 0 18px;
    padding: 0;
    border-top: 1px solid var(--family-line);
    border-bottom: 1px solid var(--family-line);
}

.family-overview > div {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    min-width: 0;
    min-height: 86px;
    padding: 10px 8px;
    text-align: center;
}

.family-overview > div + div {
    border-left: 1px solid var(--family-line);
}

.family-overview dt {
    order: 2;
    color: #526b79;
    font-size: 13px;
    font-weight: 600;
}

.family-overview dd {
    order: 1;
    margin: 0;
    color: #145f92;
    font-family: 'Source Han Serif SC', 'Noto Serif CJK SC', 'Songti SC', SimSun, serif;
    font-size: 36px;
    font-weight: 600;
    line-height: 1.1;
}

.family-feature {
    overflow: hidden;
    border: 1px solid #dce8ec;
    border-radius: 6px;
}

.family-feature--resources {
    background: #edf7fb;
    color: #243c4b;
}

.family-feature--chicken {
    background: #eef5ed;
    color: #29443b;
}

.family-feature-inner {
    display: grid;
    grid-template-columns: 32% minmax(0, 1fr);
    align-items: stretch;
    min-height: 174px;
}

.family-feature-art {
    min-width: 0;
    overflow: hidden;
}

.family-feature-art img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.family-feature-copy {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    min-width: 0;
    padding: 14px 18px;
}

.family-feature-kicker {
    font-size: 11px;
    font-weight: 700;
}

.family-feature-copy h3 {
    margin: 5px 0 4px;
    color: inherit;
    font-family: 'Source Han Serif SC', 'Noto Serif CJK SC', 'Songti SC', SimSun, serif;
    font-size: 19px;
    font-weight: 600;
    line-height: 1.3;
}

.family-feature-copy p {
    margin: 0 0 8px;
    color: inherit;
    font-size: 12px;
    line-height: 1.5;
}

.family-feature-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    min-height: 34px;
    padding: 6px 12px;
    border: 1px solid transparent;
    border-radius: 100px;
    background: #096eaf;
    color: #fff;
    cursor: pointer;
    font: 700 12px/1.4 -apple-system, BlinkMacSystemFont, 'Microsoft YaHei', sans-serif;
    text-decoration: none;
    transition: background-color 180ms ease, color 180ms ease, border-color 180ms ease;
}

.family-feature-action:hover {
    background: #064e80;
    color: #fff;
}

.family-feature--chicken .family-feature-action {
    background: #d4e8dd;
    color: #254d3b;
}

.family-feature--chicken .family-feature-action:hover {
    background: #bedbcc;
    color: #214632;
}

.family-feature-action:focus-visible {
    outline: 3px solid #ffcb57;
    outline-offset: 3px;
}

.page-intro a:focus-visible,
.tool-card:focus-visible {
    outline: 3px solid #126eaf;
    outline-offset: 3px;
}

@media (max-width: 1024px) {
    .page-intro h1 { font-size: 56px; }
    .page-intro .banner-text { width: min(520px, 52%); }
    .tool-category-section { grid-template-columns: 180px minmax(0, 1fr); gap: 24px; }
    .tool-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .family-feature-copy { padding-inline: 18px; }
}

@media (min-width: 769px) and (max-width: 950px) {
    .page-intro h1 { font-size: 50px; }
    .page-intro .banner-text { width: 54%; }
    .page-intro .subtitle { max-width: 360px; font-size: 17px; }
}

@media (min-width: 480px) and (max-width: 768px) {
    .page-intro .family-art { background-size: auto 100vw; }
}

@media (max-width: 768px) {
    .page-intro.page-intro--with-breadcrumb {
        min-height: 0;
        padding: 28px 0 0 !important;
        overflow: hidden;
    }

    .page-intro .easyops-breadcrumb--family {
        order: 1;
        width: calc(100% - 40px);
        margin-bottom: 0;
    }

    .page-intro-content {
        order: 2;
        width: calc(100% - 40px);
        padding: 28px 0 0;
        text-align: left;
    }

    .page-intro .banner-text {
        width: 100%;
        text-align: left;
    }

    .page-intro h1 {
        margin-bottom: 14px !important;
        padding: 0;
        font-size: 40px;
        line-height: 1.28;
    }

    .page-intro .subtitle {
        display: none;
    }

    .page-intro .banner-buttons {
        flex-direction: row;
        justify-content: flex-start;
        align-items: center;
        gap: 16px;
    }

    .page-intro .banner-btn {
        width: auto;
        min-height: 46px;
        padding: 10px 16px;
        font-size: 14px;
    }

    .page-intro .banner-btn.secondary { padding-inline: 0; }

    .family-art {
        position: relative;
        inset: auto;
        order: 3;
        width: 100%;
        height: 260px;
        margin-top: 10px;
        background-size: auto max(340px, 85vw);
        background-position: right 45%;
    }

    #tool-list-section .category-nav,
    [data-theme='dark'] #tool-list-section .category-nav {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        padding: 0;
        overflow: visible;
        background: transparent;
    }

    #tool-list-section .category-nav a,
    [data-theme='dark'] #tool-list-section .category-nav a {
        min-height: 66px;
        padding: 7px 3px;
        border-bottom: 1px solid #edf1f1;
        font-size: 12px;
    }

    #tool-list-section .category-nav a:nth-child(3n + 1),
    [data-theme='dark'] #tool-list-section .category-nav a:nth-child(3n + 1) {
        border-right: 0;
    }

    #tool-list-section .category-nav a i { font-size: 19px; }
    #tool-list-section .category-nav a span { font-size: 12px !important; }
    #tool-list-section { padding-top: 28px; }
    .tool-list-heading h2 { font-size: 27px; }
    .tool-category-section { display: block; padding-block: 34px 42px; }
    .category-header { flex-direction: row; align-items: center; margin-bottom: 18px; }
    .category-header::before { margin-right: 2px; }
    .category-header h2 { font-size: 25px; }
    .tool-grid { grid-template-columns: 1fr; }
    .tool-card { min-height: 94px; padding-block: 17px; }
    .family-more { grid-template-columns: 1fr; gap: 10px; margin-bottom: 16px; }
    .family-overview { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-bottom: 12px; }
    .family-overview > div { min-height: 72px; }
    .family-overview > div:nth-child(3) { border-left: 0; }
    .family-overview > div:nth-child(n + 3) { border-top: 1px solid var(--family-line); }
    .family-overview dd { font-size: 30px; }
    .family-feature-inner { min-height: 146px; grid-template-columns: 32% minmax(0, 1fr); }
    .family-feature-copy { padding: 10px 14px; }
    .family-feature-copy h3 { font-size: 17px; }
    .family-feature-copy p { margin-bottom: 7px; font-size: 12px; }
    .family-feature-action { min-height: 34px; padding: 6px 11px; }
}

@media (min-width: 600px) and (max-width: 768px) {
    .page-intro.page-intro--with-breadcrumb {
        min-height: 420px;
    }

    .page-intro-content {
        display: flex;
        align-items: center;
        padding: 44px 0 48px;
    }

    .page-intro .banner-text {
        width: 48%;
    }

    .page-intro h1 {
        font-size: 31px;
    }

    .page-intro .family-art {
        position: absolute;
        inset: 0;
        width: auto;
        height: auto;
        margin: 0;
        background-size: cover;
        background-position: center 55%;
    }
}

@media (min-width: 700px) and (max-width: 768px) {
    .page-intro h1 { font-size: 36px; }
}

@media (max-width: 599px) {
    .page-intro.page-intro--with-breadcrumb {
        min-height: 380px;
    }

    .page-intro-content {
        display: flex;
        align-items: center;
        width: calc(100% - 32px);
        padding: 16px 0 36px;
    }

    .page-intro .easyops-breadcrumb--family {
        width: calc(100% - 32px);
    }

    .page-intro .banner-text {
        width: 48%;
    }

    .page-intro h1 {
        font-size: 20px;
    }

    .page-intro .banner-buttons {
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
    }

    .page-intro .banner-btn {
        min-height: 40px;
        padding: 8px 12px;
        font-size: 13px;
    }

    .page-intro .banner-btn.secondary {
        min-height: 36px;
    }

    .page-intro .family-art {
        position: absolute;
        inset: 0;
        width: auto;
        height: auto;
        margin: 0;
        background-size: cover;
        background-position: center center;
    }
}

@media (min-width: 480px) and (max-width: 599px) {
    .page-intro.page-intro--with-breadcrumb { min-height: 440px; }
    .page-intro h1 { font-size: 25px; }
}

@media (max-width: 360px) {
    .page-intro.page-intro--with-breadcrumb { min-height: 370px; }
    .page-intro h1 { font-size: 17px; }
    .page-intro .banner-buttons { gap: 10px; }
    .page-intro .banner-btn { font-size: 13px; }
    .family-feature-inner { grid-template-columns: 30% minmax(0, 1fr); }
    .family-feature-copy { padding: 10px 12px; }
    .family-feature-copy h3 { font-size: 16px; }
}

@media (prefers-reduced-motion: reduce) {
    .page-intro .banner-btn,
    .page-intro .category-nav a,
    .tool-card,
    .family-feature-action { transition: none; }
}
