        :root {
            --ink: #172219;
            --green: #2f7a52;
            --orange: #d67b18;
            --blue: #2f82bd;
            --purple: #7760aa;
            --muted: #6a625a;
            --line: rgba(44, 35, 27, 0.14);
            --white: rgba(255, 255, 255, 0.84);
            --shadow: 0 18px 44px rgba(52, 38, 24, 0.18);
            --body-font: "Microsoft YaHei", "PingFang SC", "Segoe UI", sans-serif;
            --title-font: "STKaiti", "KaiTi", "Songti SC", serif;
        }

        * {
            box-sizing: border-box;
        }

        html,
        body {
            margin: 0;
            min-height: 100%;
        }

        body {
            color: var(--ink);
            font-family: var(--body-font);
            background: #ede1d2;
        }

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

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

        .page {
            height: 100vh;
            min-height: 760px;
            overflow: hidden;
            display: grid;
            grid-template-rows: minmax(0, 1fr) 70px;
            background: #eee3d4;
            position: relative;
        }

        .topbar {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            z-index: 20;
            background: rgba(255, 255, 255, 0.3);
            backdrop-filter: blur(18px);
            border-bottom: 1px solid rgba(54, 41, 30, 0.08);
        }

        .topbar-inner {
            width: min(1500px, calc(100% - 72px));
            height: 100%;
            margin: 0 auto;
            display: grid;
            grid-template-columns: 280px 1fr 230px;
            align-items: center;
            gap: 24px;
        }

        .brand {
            display: flex;
            align-items: center;
            gap: 14px;
            min-width: 0;
            text-decoration: none;
            transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
        }

        .brand:hover {
            transform: scale(1.03);
        }

        .brand-mark {
            width: 58px;
            height: 58px;
            flex: 0 0 auto;
            filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.08));
        }



        .brand-text strong {
            display: block;
            font-family: var(--title-font);
            font-size: 2rem;
            line-height: 1;
            letter-spacing: 0;
        }

        .brand-text span {
            display: block;
            margin-top: 4px;
            font-size: 0.65rem;
            color: #2b241f;
        }

        .nav {
            display: flex;
            justify-content: center;
            align-items: center;
            gap: clamp(18px, 3vw, 48px);
            font-size: 1.02rem;
            font-weight: 700;
            color: #1d211d;
        }

        .nav a {
            position: relative;
            white-space: nowrap;
            padding: 8px 0;
        }

        .nav a.active::after,
        .nav a:hover::after {
            content: "";
            position: absolute;
            left: 0;
            right: 0;
            bottom: -10px;
            height: 3px;
            border-radius: 99px;
            background: var(--green);
        }

        .top-actions {
            display: flex;
            justify-content: flex-end;
            align-items: center;
            gap: 18px;
        }

        .icon-link {
            width: 42px;
            height: 42px;
            display: grid;
            place-items: center;
            color: #111;
        }

        .resource-link {
            height: 42px;
            padding: 0 16px;
            display: inline-flex;
            align-items: center;
            gap: 8px;
            border-radius: 12px;
            border: 1px solid rgba(37, 30, 24, 0.2);
            background: rgba(255, 255, 255, 0.28);
            color: #322a24;
            font-weight: 700;
            white-space: nowrap;
            padding-right: 20px;
        }

        .stage {
            position: relative;
            overflow: hidden;
            background: linear-gradient(180deg, rgba(255,255,255,0.08), rgba(238,226,211,0)),                url("../images/home-lab/hero-lab-bg.jpg") top / contain no-repeat;
        }

        .stage::before {
            content: "";
            position: absolute;
            inset: 0;
            background:
                linear-gradient(90deg, rgba(255,255,255,0.88) 0%, rgba(255,255,255,0.63) 30%, rgba(255,255,255,0.12) 62%, rgba(255,255,255,0.02) 100%),
                linear-gradient(180deg, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0.02) 55%, rgba(225,201,171,0.72) 100%);
            pointer-events: none;
        }

        .hero-layer {
            position: relative;
            z-index: 2;
            width: min(1500px, calc(100% - 72px));
            height: 100%;
            margin: 0 auto;
        }

        .portrait {
            position: absolute;
            left: 48px;
            top: clamp(126px, calc(8vh + 84px), 166px);
            width: clamp(170px, 13vw, 232px);
            height: clamp(170px, 13vw, 232px);
            border-radius: 50%;
            border: 7px solid rgba(255,255,255,0.88);
            overflow: hidden;
            box-shadow: 0 18px 42px rgba(44, 35, 25, 0.22);
            background: #eadcc9;
        }

        .portrait img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            object-position: center 24%;
        }

        .hero-copy {
            position: absolute;
            left: clamp(270px, 19vw, 350px);
            top: clamp(138px, calc(9vh + 84px), 180px);
            max-width: 680px;
        }

        .title-image {
            width: min(610px, 20vw);
            filter: drop-shadow(0 5px 16px rgba(255,255,255,0.78));
        }

        .seo-title {
            position: absolute;
            width: 1px;
            height: 1px;
            margin: -1px;
            clip: rect(0 0 0 0);
            overflow: hidden;
        }

        .slogan {
            margin: 12px 0 0;
            font-size: clamp(1.28rem, 2vw, 1.9rem);
            letter-spacing: 0;
            color: #22281f;
            font-weight: 500;
            white-space: nowrap;
        }

        .slogan strong {
            color: var(--orange);
            font-weight: 900;
        }

        .features {
            margin-top: clamp(14px, 2.2vh, 26px);
            display: flex;
            align-items: center;
            flex-wrap: wrap;
            gap: 14px 13px;
            color: #383e34;
            font-size: 0.7rem;
            font-weight: 700;
        }

        .feature {
            display: inline-flex;
            align-items: center;
            gap: 8px;
        }

        .feature svg {
            width: 22px;
            height: 22px;
            stroke-width: 2.1;
        }

        .identity {
            display: inline-flex;
            margin-top: clamp(16px, 2.2vh, 26px);
            border: 1px solid rgba(91, 65, 39, 0.2);
            border-radius: 13px;
            background: rgba(255, 247, 234, 0.68);
            box-shadow: 0 12px 24px rgba(61, 43, 27, 0.1);
            overflow: hidden;

        }

        .identity span {
            padding: 8px 15px;
            color: #68472b;
            border-right: 1px solid rgba(91, 65, 39, 0.16);
            white-space: nowrap;
            font-size: 0.72rem;
            font-weight: 600;
        }

        .identity span:last-child {
            border-right: 0;
        }

        .cards {
            position: absolute;
            z-index: 5;
            left: 50%;
            bottom: 16px;
            width: min(1500px, calc(100% - 72px));
            transform: translateX(-50%);
            display: grid;
            grid-template-columns: repeat(4, minmax(0, 1fr));
            gap: 14px;
        }

        .portal-card {
            position: relative;
            min-width: 0;
            overflow: hidden;
            border-radius: 15px;
            border: 1px solid rgba(255, 255, 255, 0.7);
            background: rgba(255, 255, 255, 0.78);
            box-shadow: var(--shadow);
            backdrop-filter: blur(12px);
            transition: transform 160ms ease, box-shadow 160ms ease;
        }

        .portal-card:hover {
            transform: translateY(-4px);
            box-shadow: 0 24px 52px rgba(55, 42, 28, 0.24);
        }

        .card-head {
            min-height: 60px;
            display: grid;
            grid-template-columns: 46px minmax(0, 1fr);
            gap: 12px;
            align-items: center;
            padding: 10px 14px 8px;
        }

        .card-icon {
            width: 42px;
            height: 42px;
            border-radius: 11px;
            color: #fff;
            display: grid;
            place-items: center;
            box-shadow: 0 10px 20px rgba(40, 30, 20, 0.16);
        }

        .card-icon svg {
            width: 24px;
            height: 24px;
            stroke-width: 2;
        }

        .portal-card h2 {
            margin: 0;
            font-family: var(--title-font);
            font-size: clamp(1.05rem, 1.1vw, 1.25rem);
            line-height: 1;
            letter-spacing: 0;
        }

        .portal-card p {
            margin: 7px 0 0;
            color: var(--muted);
            font-size: clamp(0.72rem, 0.75vw, 0.82rem);
            line-height: 1.25;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
        }

        .card-image {
            height: clamp(176px, 23.5vh, 260px);
            overflow: hidden;
            background: #dccfbf;
        }

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

        .card-foot {
            position: absolute;
            bottom: 0;
            left: 0;
            right: 0;
            min-height: 32px;
            padding: 0 14px;
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 10px;
            color: rgba(255,255,255,1);
            font-size: clamp(0.7rem, 0.75vw, 0.85rem);
            font-weight: 700;
            backdrop-filter: blur(12px) saturate(120%);
            -webkit-backdrop-filter: blur(12px) saturate(120%);
            border-top: 1px solid rgba(255, 255, 255, 0.15);
        }

        .tag-row {
            display: flex;
            align-items: center;
            min-width: 0;
            gap: 12px;
            overflow: hidden;
            white-space: nowrap;
        }

        .arrow {
            font-size: 1.4rem;
            line-height: 1;
        }

        .theme-green .card-icon { background: linear-gradient(90deg, #2d7b54, #3a9466); }
        .theme-green .card-foot { background: linear-gradient(90deg, rgba(45,123,84,0.5), rgba(58,148,102,0.5)); }

        .theme-orange .card-icon { background: linear-gradient(90deg, #d87919, #df923a); }
        .theme-orange .card-foot { background: linear-gradient(90deg, rgba(216,121,25,0.5), rgba(223,146,58,0.5)); }

        .theme-blue .card-icon { background: linear-gradient(90deg, #2f82bd, #6198bf); }
        .theme-blue .card-foot { background: linear-gradient(90deg, rgba(47,130,189,0.5), rgba(97,152,191,0.5)); }

        .theme-purple .card-icon { background: linear-gradient(90deg, #7760aa, #9879aa); }
        .theme-purple .card-foot { background: linear-gradient(90deg, rgba(119,96,170,0.5), rgba(152,121,170,0.5)); }

        .summary {
            position: relative;
            z-index: 8;
            display: grid;
            grid-template-columns: minmax(210px, 1.05fr) repeat(3, minmax(140px, 0.72fr)) minmax(280px, 1.35fr) minmax(auto, 0.75fr);
            align-items: center;
            gap: 18px;
            padding: 12px max(36px, calc((100vw - 1500px) / 2 + 36px));
            background: rgba(255,255,255,0.58);
            border-top: 1px solid rgba(67, 50, 35, 0.08);
            padding-top: 6px;
        }

        .summary-item {
            display: grid;
            grid-template-columns: 36px minmax(0, 1fr);
            align-items: center;
            gap: 10px;
            min-width: 0;
        }

        .summary-icon {
            width: 36px;
            height: 36px;
        }

        .summary-text strong {
            display: block;
            color: #2c6e4d;
            font-size: 1rem;
            line-height: 1.1;
        }

        .summary-text span {
            display: block;
            margin-top: 3px;
            color: #6a6258;
            font-size: 0.77rem;
            line-height: 1.25;
        }

        .quote {
            text-align: center;
            color: #50453c;
            font-family: var(--title-font);
            font-size: 1.08rem;
            line-height: 1.45;
            white-space: nowrap;
            padding-bottom: 28px;
            padding-left: 43px;
        }

        .copyright {
            text-align: right;
            color: #5e5650;
            font-size: 0.86rem;
            padding-right: 15px;
            white-space: nowrap;
            padding-top: 32px;
        }

        @media (max-width: 1180px) {
            .page {
                height: auto;
                min-height: 100vh;
                overflow: visible;
                grid-template-rows: auto auto;
            }

            .topbar-inner {
                width: min(980px, calc(100% - 32px));
                grid-template-columns: 1fr;
                gap: 12px;
                padding: 14px 0 16px;
            }

            .nav {
                justify-content: flex-start;
                flex-wrap: wrap;
            }

            .top-actions {
                justify-content: flex-start;
            }

            .stage {
                min-height: 720px;
            }

            .hero-layer {
                width: min(980px, calc(100% - 32px));
                min-height: 720px;
            }

            .portrait {
                left: 0;
                top: 220px;
            }

            .hero-copy {
                left: clamp(230px, 28vw, 300px);
                max-width: calc(100% - 250px);
                top: 230px;
            }

            .title-image {
                width: min(520px, 50vw);
            }

            .identity {
                display: none;
            }

            .cards {
                position: relative;
                left: auto;
                bottom: auto;
                transform: none;
                width: min(980px, calc(100% - 32px));
                margin: -250px auto 24px;
                grid-template-columns: repeat(2, minmax(0, 1fr));
            }

            .summary {
                grid-template-columns: repeat(2, minmax(0, 1fr));
                padding: 18px 24px 28px;
            }

            .quote,
            .copyright {
                text-align: left;
            }
        }

        @media (max-width: 720px) {
            .brand-text strong {
                font-size: 1.58rem;
            }

            .resource-link {
                display: none;
            }

            .stage,
            .hero-layer {
                min-height: auto;
            }

            .stage {
                padding: 200px 0 36px;
            }

            .stage::before {
                background: linear-gradient(180deg, rgba(255,255,255,0.9), rgba(255,255,255,0.55));
            }

            .portrait,
            .hero-copy {
                position: relative;
                left: auto;
                top: auto;
            }

            .portrait {
                width: 164px;
                height: 164px;
                margin: 0 auto 18px;
            }

            .hero-copy {
                max-width: none;
                text-align: center;
            }

            .title-image {
                width: min(92vw, 480px);
                margin: 0 auto;
            }

            .slogan {
                white-space: normal;
                font-size: 1.2rem;
            }

            .features {
                justify-content: center;
                gap: 10px 16px;
            }

            .cards {
                grid-template-columns: 1fr;
                margin-top: 0;
            }

            .card-image {
                height: 168px;
            }

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

            .quote,
            .copyright {
                white-space: normal;
            }
        }
