:root {
    --ink: #101623;
    --ink-soft: #1f2a3d;
    --muted: #687386;
    --muted-light: #8a94a6;
    --line: #dfe7ee;
    --line-soft: #edf2f6;
    --brand: #007a7a;
    --brand-strong: #005f64;
    --mint: #12a28f;
    --aqua: #e8f7f5;
    --paper: #ffffff;
    --paper-soft: #f8fbfb;
    --soft-bg: #f4f8f8;
    --gold: #b7791f;
    --radius-card: 18px;
    --radius-soft: 14px;
    --radius-pill: 999px;
    --shadow-soft: 0 24px 80px rgba(16, 22, 35, .08);
    --shadow-card: 0 18px 46px rgba(16, 22, 35, .055);
}

html {
    scroll-behavior: smooth;
}

body {
    min-height: 100vh;
    background:
        radial-gradient(circle at 14% 8%, rgba(0, 122, 122, .08), transparent 26vw),
        radial-gradient(circle at 88% 12%, rgba(18, 162, 143, .08), transparent 25vw),
        linear-gradient(180deg, #f7fbfb 0%, #f3f7f7 48%, #f8fbfb 100%);
    color: var(--ink);
    letter-spacing: 0;
}

body::before {
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    content: "";
    background-image:
        linear-gradient(rgba(16, 22, 35, .035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(16, 22, 35, .028) 1px, transparent 1px);
    background-size: 48px 48px;
    mask-image: linear-gradient(180deg, rgba(0, 0, 0, .45), transparent 65%);
}

.skip-link {
    position: absolute;
    left: -999px;
    top: 12px;
    z-index: 100;
    border-radius: var(--radius-pill);
    background: var(--ink);
    color: #fff;
    padding: 10px 14px;
}

.skip-link:focus {
    left: 12px;
}

.site-logo {
    display: block;
    width: 44px;
    height: 44px;
    flex: 0 0 auto;
    border: 1px solid rgba(0, 122, 122, .15);
    border-radius: 15px;
    object-fit: contain;
    background: #fff;
    box-shadow: 0 10px 24px rgba(0, 122, 122, .12);
}

.site-logo.small {
    width: 34px;
    height: 34px;
    border-radius: 11px;
}

header.sticky {
    border-color: rgba(223, 231, 238, .86);
    background: rgba(255, 255, 255, .88);
    box-shadow: 0 12px 36px rgba(16, 22, 35, .045);
}

header .h-16 {
    height: 76px;
}

header a[aria-label="88单词首页"] span {
    color: var(--brand-strong);
    font-size: 22px;
    font-weight: 850;
}

.nav-link {
    transition: color .18s ease;
}

.nav-link:hover {
    color: var(--brand);
}

.hero-band {
    position: relative;
    overflow: hidden;
    border-bottom: 1px solid rgba(223, 231, 238, .8);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, .78) 0%, rgba(248, 251, 251, .72) 100%);
}

.hero-band::before {
    position: absolute;
    inset: 30px 4vw auto;
    height: 300px;
    pointer-events: none;
    content: "";
    border: 1px solid rgba(0, 122, 122, .08);
    border-radius: 40px;
    background:
        linear-gradient(135deg, rgba(255, 255, 255, .8), rgba(232, 247, 245, .34)),
        repeating-linear-gradient(90deg, transparent 0 54px, rgba(0, 122, 122, .035) 54px 55px);
    filter: blur(.1px);
}

.home-hero {
    position: relative;
}

.hero-copy {
    max-width: 760px;
    margin: 0 auto 28px;
    text-align: center;
}

.hero-copy h1 {
    color: var(--ink);
    font-size: clamp(34px, 5vw, 54px);
    font-weight: 850;
    line-height: 1.08;
}

.hero-copy p {
    margin-top: 14px;
    color: var(--muted);
    font-size: 17px;
    line-height: 1.9;
}

.home-section {
    padding: 18px 0;
}

.home-section > div {
    border: 1px solid rgba(223, 231, 238, .86);
    border-radius: 28px;
    background: rgba(255, 255, 255, .86);
    box-shadow: var(--shadow-card);
}

.hero-panel,
.content-panel,
.side-panel,
.search-panel,
.word-card {
    border: 1px solid rgba(223, 231, 238, .92);
    background: var(--paper);
    box-shadow: var(--shadow-card);
}

.hero-panel {
    border-radius: 22px;
    padding: 16px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, .92), rgba(248, 251, 251, .92));
    box-shadow: 0 18px 48px rgba(16, 22, 35, .06);
}

.search-panel {
    border-radius: 24px;
    padding: 9px;
    background:
        linear-gradient(#fff, #fff) padding-box,
        linear-gradient(135deg, rgba(0, 122, 122, .88), rgba(18, 162, 143, .48), rgba(223, 231, 238, .9)) border-box;
    border-color: transparent;
    box-shadow: 0 28px 82px rgba(0, 95, 100, .16);
}

.search-input,
.search-mini {
    width: 100%;
    border: 1px solid transparent;
    background: #fff;
    color: var(--ink);
    outline: none;
    transition: border-color .18s ease, box-shadow .18s ease, background .18s ease;
}

.search-input {
    min-height: 72px;
    border-radius: 18px;
    padding: 0 136px 0 24px;
    font-size: 19px;
}

.search-input::placeholder,
.search-mini::placeholder {
    color: #9aa4b5;
}

.search-mini {
    height: 44px;
    border-color: rgba(223, 231, 238, .92);
    border-radius: var(--radius-pill);
    padding: 0 44px 0 17px;
    font-size: 14px;
    background: #f8fbfb;
}

.search-input:focus,
.search-mini:focus {
    border-color: rgba(0, 122, 122, .42);
    box-shadow: 0 0 0 5px rgba(0, 122, 122, .09);
    background: #fff;
}

.search-btn {
    position: absolute;
    right: 10px;
    top: 10px;
    height: calc(100% - 20px);
    min-width: 108px;
    border-radius: var(--radius-pill);
    background: linear-gradient(135deg, var(--brand-strong), var(--brand));
    color: #fff;
    font-size: 15px;
    font-weight: 800;
    letter-spacing: 0;
    box-shadow: 0 14px 28px rgba(0, 122, 122, .22);
    transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}

.search-btn:hover {
    background: linear-gradient(135deg, #004d52, var(--brand));
    box-shadow: 0 18px 34px rgba(0, 122, 122, .28);
    transform: translateY(-1px);
}

.search-btn:active {
    transform: translateY(0);
}

.search-mini-btn {
    position: absolute;
    right: 8px;
    top: 8px;
    display: inline-flex;
    width: 28px;
    height: 28px;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-pill);
    color: var(--brand);
    transition: background .18s ease;
}

.search-mini-btn:hover {
    background: var(--aqua);
}

.search-mini-btn svg {
    width: 19px;
    height: 19px;
}

.suggest-box {
    position: absolute;
    left: 0;
    right: 0;
    top: calc(100% + 10px);
    z-index: 30;
    overflow: hidden;
    border: 1px solid rgba(223, 231, 238, .95);
    border-radius: 20px;
    background: rgba(255, 255, 255, .98);
    box-shadow: 0 22px 70px rgba(16, 22, 35, .14);
}

.suggest-box a {
    display: grid;
    gap: 2px;
    padding: 13px 17px;
    border-bottom: 1px solid #f0f4f7;
}

.suggest-box a:hover {
    background: #f8fbfb;
}

.suggest-box strong {
    color: var(--ink);
}

.suggest-box span {
    overflow: hidden;
    color: var(--muted);
    font-size: 13px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.quick-link,
.status-chip,
.rank-chip {
    display: inline-flex;
    align-items: center;
    border: 1px solid rgba(223, 231, 238, .92);
    border-radius: var(--radius-pill);
    background: rgba(255, 255, 255, .78);
}

.quick-link {
    padding: 8px 15px;
    color: var(--brand-strong);
    font-weight: 650;
    box-shadow: 0 10px 26px rgba(16, 22, 35, .045);
    transition: border-color .18s ease, transform .18s ease, background .18s ease;
}

.quick-link:hover {
    border-color: rgba(0, 122, 122, .32);
    background: #fff;
    transform: translateY(-1px);
}

.status-chip {
    padding: 7px 13px;
    color: var(--brand-strong);
    font-size: 13px;
    font-weight: 760;
    background: #f0fbfa;
}

.rank-chip {
    padding: 5px 9px;
    color: var(--gold);
    font-size: 12px;
    font-weight: 800;
    background: #fff8e7;
}

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

.field-grid div {
    position: relative;
    overflow: hidden;
    min-height: 96px;
    border: 1px solid rgba(223, 231, 238, .9);
    border-radius: 18px;
    background: #fff;
    padding: 18px 18px 18px 20px;
}

.field-grid div::before {
    display: block;
    width: 26px;
    height: 4px;
    margin-bottom: 18px;
    border-radius: var(--radius-pill);
    background: linear-gradient(90deg, var(--brand), var(--mint));
    content: "";
}

.field-grid dt {
    color: var(--ink);
    font-weight: 850;
}

.field-grid dd {
    margin-top: 5px;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.65;
}

.section-head {
    display: flex;
    flex-wrap: wrap;
    align-items: end;
    justify-content: space-between;
    gap: 12px 24px;
}

.section-head h1,
.section-head h2 {
    color: var(--ink);
    font-size: clamp(25px, 3vw, 34px);
    font-weight: 820;
    line-height: 1.18;
}

.section-head p {
    max-width: 680px;
    color: var(--muted);
    line-height: 1.75;
}

.alphabet-grid {
    display: grid;
    gap: 12px;
    grid-template-columns: repeat(auto-fit, minmax(92px, 1fr));
}

.alphabet-item,
.alphabet-strip a,
.pager-link {
    border: 1px solid rgba(223, 231, 238, .92);
    border-radius: var(--radius-soft);
    background: #fff;
    transition: border-color .18s ease, color .18s ease, transform .18s ease, background .18s ease;
}

.alphabet-item {
    display: grid;
    gap: 5px;
    min-height: 82px;
    align-content: center;
    padding: 14px;
}

.alphabet-item:hover,
.alphabet-strip a:hover,
.pager-link:hover {
    border-color: rgba(0, 122, 122, .35);
    color: var(--brand);
    transform: translateY(-1px);
}

.alphabet-item strong {
    font-size: 22px;
}

.alphabet-item span {
    color: var(--muted);
    font-size: 13px;
}

.alphabet-strip {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.alphabet-strip a {
    display: inline-flex;
    width: 38px;
    height: 38px;
    align-items: center;
    justify-content: center;
    color: var(--muted);
    font-weight: 760;
}

.alphabet-strip a.active {
    border-color: var(--brand);
    background: var(--brand);
    color: #fff;
}

.word-card {
    position: relative;
    display: block;
    min-height: 172px;
    overflow: hidden;
    border-radius: 20px;
    padding: 22px;
    background:
        linear-gradient(180deg, #fff 0%, #fbfdfd 100%);
    transition: border-color .18s ease, transform .18s ease, box-shadow .18s ease;
}

.word-card::after {
    position: absolute;
    right: 18px;
    bottom: 16px;
    color: rgba(0, 122, 122, .08);
    content: "Aa";
    font-size: 38px;
    font-weight: 850;
    letter-spacing: 0;
}

.word-card:hover {
    border-color: rgba(0, 122, 122, .34);
    box-shadow: 0 26px 62px rgba(16, 22, 35, .1);
    transform: translateY(-3px);
}

.word-card strong {
    overflow-wrap: anywhere;
    letter-spacing: 0;
}

.line-clamp-2 {
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.word-hero {
    position: relative;
    display: grid;
    gap: 30px;
    align-items: stretch;
    overflow: hidden;
    border: 1px solid rgba(223, 231, 238, .92);
    border-radius: 30px;
    background:
        radial-gradient(circle at 86% 16%, rgba(0, 122, 122, .08), transparent 260px),
        linear-gradient(180deg, rgba(255, 255, 255, .96), rgba(250, 253, 253, .96));
    padding: clamp(26px, 4vw, 44px);
    box-shadow: var(--shadow-soft);
}

.word-hero::before {
    position: absolute;
    right: -50px;
    top: -80px;
    width: 260px;
    height: 260px;
    border: 1px solid rgba(0, 122, 122, .08);
    border-radius: 50%;
    content: "";
}

@media (min-width: 900px) {
    .word-hero {
        grid-template-columns: minmax(0, 1fr) 312px;
    }
}

.word-hero h1 {
    overflow-wrap: anywhere;
    color: var(--ink);
    font-size: clamp(52px, 8vw, 96px);
    font-weight: 880;
    line-height: .92;
}

.pron-panel {
    position: relative;
    display: grid;
    gap: 12px;
    align-content: center;
    border: 1px solid rgba(223, 231, 238, .9);
    border-radius: 24px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, .92), rgba(240, 251, 250, .72));
    padding: 18px;
}

.sound-btn {
    display: flex;
    min-height: 58px;
    align-items: center;
    justify-content: space-between;
    border: 1px solid rgba(223, 231, 238, .95);
    border-radius: var(--radius-pill);
    background: #fff;
    padding: 0 16px;
    color: var(--ink);
    font-weight: 820;
    box-shadow: 0 10px 24px rgba(16, 22, 35, .045);
    transition: border-color .18s ease, color .18s ease, box-shadow .18s ease, background .18s ease, transform .18s ease;
}

.sound-btn:hover {
    border-color: rgba(0, 122, 122, .46);
    color: var(--brand);
    transform: translateY(-1px);
}

.sound-label {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.audio-icon {
    display: inline-flex;
    width: 28px;
    height: 28px;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-pill);
    background: rgba(0, 122, 122, .1);
    color: var(--brand);
    font-size: 14px;
    font-weight: 900;
}

.sound-btn.audio-playing {
    border-color: rgba(0, 122, 122, .6);
    background: #f0fbfa;
    color: var(--brand);
    box-shadow: 0 0 0 5px rgba(0, 122, 122, .1), 0 16px 36px rgba(0, 122, 122, .16);
}

.sound-btn.audio-playing .audio-icon {
    background: var(--brand);
    color: #fff;
}

.sound-btn.audio-error {
    border-color: #cbd5e1;
    color: #94a3b8;
}

.sound-btn small {
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
}

.content-panel,
.side-panel {
    border-radius: 24px;
    padding: clamp(22px, 3vw, 30px);
}

.content-panel {
    background:
        linear-gradient(180deg, #fff 0%, #fbfdfd 100%);
}

.side-panel {
    background: rgba(255, 255, 255, .9);
}

.content-panel h2,
.side-panel h2 {
    margin-bottom: 19px;
    color: var(--ink);
    font-size: 22px;
    font-weight: 820;
}

.definition-list {
    display: grid;
    gap: 0;
}

.definition-list li {
    display: grid;
    gap: 10px;
    border-bottom: 1px solid #eef3f6;
    padding: 16px 0;
}

.definition-list li:first-child {
    padding-top: 0;
}

@media (min-width: 640px) {
    .definition-list li {
        grid-template-columns: 84px 1fr;
    }
}

.definition-list li:last-child {
    border-bottom: 0;
    padding-bottom: 0;
}

.definition-list span {
    display: inline-flex;
    width: fit-content;
    height: 28px;
    align-items: center;
    border-radius: var(--radius-pill);
    background: #f0fbfa;
    color: var(--brand-strong);
    font-size: 13px;
    font-weight: 820;
    padding: 0 10px;
}

.definition-list p {
    color: #334155;
    line-height: 1.9;
}

.exchange-grid {
    display: grid;
    gap: 12px;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
}

.exchange-grid a {
    display: grid;
    gap: 7px;
    border: 1px solid rgba(223, 231, 238, .92);
    border-radius: 18px;
    background: #fff;
    padding: 16px;
    transition: border-color .18s ease, background .18s ease, transform .18s ease;
}

.exchange-grid a:hover {
    border-color: rgba(0, 122, 122, .35);
    background: #f8fbfb;
    transform: translateY(-1px);
}

.exchange-grid span,
.meta-list dt {
    color: var(--muted);
    font-size: 13px;
}

.exchange-grid strong {
    color: var(--ink);
    font-size: 18px;
}

.section-inline-head {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: space-between;
    gap: 10px 16px;
    margin-bottom: 18px;
}

.section-inline-head h2 {
    margin-bottom: 0;
}

.section-inline-head p {
    color: var(--muted);
    font-size: 13px;
}

.word-mini-grid,
.word-only-grid {
    display: grid;
    gap: 12px;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
}

.word-mini-grid a,
.word-only-grid a {
    display: grid;
    min-height: 72px;
    gap: 6px;
    align-content: center;
    border: 1px solid rgba(223, 231, 238, .92);
    border-radius: 18px;
    background: #fff;
    padding: 16px 18px;
    transition: border-color .18s ease, background .18s ease, transform .18s ease, box-shadow .18s ease;
}

.word-mini-grid a:hover,
.word-only-grid a:hover {
    border-color: rgba(0, 122, 122, .35);
    background: #f8fbfb;
    box-shadow: 0 12px 30px rgba(16, 22, 35, .055);
    transform: translateY(-1px);
}

.word-mini-grid strong,
.word-only-grid strong {
    overflow-wrap: anywhere;
    color: var(--ink);
    font-size: 18px;
    line-height: 1.25;
}

.word-mini-grid span {
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.65;
}

.meta-list {
    display: grid;
    gap: 0;
}

.meta-list div {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    border-bottom: 1px solid #eef3f6;
    padding: 13px 0;
}

.meta-list div:first-child {
    padding-top: 0;
}

.meta-list div:last-child {
    border-bottom: 0;
    padding-bottom: 0;
}

.meta-list dd {
    text-align: right;
    color: var(--ink);
    font-weight: 760;
}

.related-list {
    display: grid;
    gap: 10px;
}

.related-list a {
    display: grid;
    gap: 3px;
    border-radius: var(--radius-soft);
    padding: 10px;
}

.related-list a:hover {
    background: #f8fbfb;
}

.related-list strong {
    color: var(--ink);
}

.related-list span {
    overflow: hidden;
    color: var(--muted);
    font-size: 13px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.detail-pre,
.empty-box {
    overflow: auto;
    border: 1px solid rgba(223, 231, 238, .92);
    border-radius: 20px;
    background: #f8fbfb;
}

.detail-pre {
    padding: 16px;
    color: #334155;
    font-size: 13px;
    line-height: 1.7;
}

.empty-box {
    margin-top: 28px;
    padding: 28px;
    color: var(--muted);
    text-align: center;
}

.empty-text {
    color: var(--muted);
    line-height: 1.8;
}

.pager-link {
    padding: 9px 15px;
    color: var(--ink);
    font-size: 14px;
    font-weight: 760;
}

.pager-link.disabled {
    pointer-events: none;
    opacity: .45;
}

footer {
    border-color: rgba(223, 231, 238, .9);
    background: rgba(255, 255, 255, .78);
}

@media (max-width: 640px) {
    header .h-16 {
        height: 66px;
    }

    .hero-copy {
        margin-bottom: 22px;
    }

    .hero-copy h1 {
        font-size: 31px;
    }

    .hero-copy p {
        font-size: 15px;
        line-height: 1.75;
    }

    .search-input {
        min-height: 58px;
        padding-right: 90px;
        padding-left: 17px;
        font-size: 15px;
    }

    .search-btn {
        min-width: 74px;
    }

    .word-hero,
    .content-panel,
    .side-panel,
    .hero-panel {
        padding: 20px;
    }

    .home-section > div,
    .word-hero {
        border-radius: 22px;
    }

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

    .field-grid div {
        min-height: 0;
    }
}

@media (max-width: 900px) and (min-width: 641px) {
    .field-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}
