/* 2025 形态云年度排名 */
:root {
    --bg0: #e8eef8;
    --bg1: #ffffff;
    --ink: #152238;
    --muted: #66758b;
    --line: #e2e8f2;
    --brand: #2c50a9;
    --brand-deep: #1e3a8a;
    --brand-soft: rgba(44, 80, 169, 0.08);
    --up: #e53935;
    --up-soft: #fff1f1;
    --down: #0f8a4b;
    --down-soft: #eefaf3;
    --shadow: 0 10px 36px rgba(21, 34, 56, 0.07);
    --shadow-lg: 0 18px 50px rgba(21, 34, 56, 0.1);
    --radius: 18px;
    --font: "Noto Sans SC", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

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

body {
    font-family: var(--font);
    font-size: 15px;
    color: var(--ink);
    background:
        radial-gradient(900px 420px at 12% -8%, rgba(44, 80, 169, 0.18), transparent 55%),
        radial-gradient(800px 380px at 92% 8%, rgba(229, 57, 53, 0.08), transparent 50%),
        linear-gradient(180deg, #f4f7fc 0%, var(--bg0) 45%, #edf1f8 100%);
    -webkit-font-smoothing: antialiased;
}

ul { list-style: none; }
a { text-decoration: none; color: inherit; }
.hide { display: none; }

.main-group {
    width: min(1320px, calc(100% - 48px));
    margin: 40px auto 72px;
    padding: 36px 40px 44px;
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid rgba(255, 255, 255, 0.9);
    border-radius: 24px;
    box-shadow: var(--shadow-lg);
    backdrop-filter: blur(14px);
}

/* —— Hero —— */
.ranking-title {
    text-align: center;
    padding: 8px 12px 32px;
    position: relative;
}
.ranking-title .eyebrow {
    display: inline-block;
    margin-bottom: 14px;
    padding: 6px 14px;
    border-radius: 999px;
    background: var(--brand-soft);
    border: 1px solid rgba(44, 80, 169, 0.12);
    color: var(--brand);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.12em;
}
.ranking-title .title {
    font-size: clamp(28px, 3.2vw, 40px);
    font-weight: 800;
    letter-spacing: 0.01em;
    color: var(--ink);
    line-height: 1.2;
}
.ranking-title .title em {
    font-style: normal;
    background: linear-gradient(120deg, var(--brand) 0%, #4a6fd4 55%, var(--brand-deep) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.ranking-title .brand {
    width: 48px;
    height: 4px;
    margin: 16px auto 0;
    border-radius: 99px;
    background: linear-gradient(90deg, transparent, var(--brand), transparent);
}
.ranking-title .desc {
    margin-top: 12px;
    font-size: 14px;
    color: var(--muted);
    letter-spacing: 0.04em;
}

/* —— Tabs —— */
.ranking-nav-group {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    padding: 8px;
    background: #f5f7fb;
    border: 1px solid var(--line);
    border-radius: 16px;
}
.ranking-nav-group div {
    min-height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 10px 12px;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 600;
    color: var(--muted);
    cursor: pointer;
    transition: background 0.18s ease, color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
    user-select: none;
}
.ranking-nav-group div:hover {
    color: var(--brand);
    background: rgba(255, 255, 255, 0.9);
}
.ranking-nav-group div.self {
    color: #fff;
    background: linear-gradient(135deg, var(--brand) 0%, var(--brand-deep) 100%);
    box-shadow: 0 8px 20px rgba(44, 80, 169, 0.3);
}

/* —— List —— */
.items-box-group {
    margin-top: 20px;
}
.items-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.item-group {
    display: grid;
    grid-template-columns: 72px minmax(0, 1fr) 120px;
    align-items: center;
    gap: 10px 18px;
    padding: 20px 24px;
    background: var(--bg1);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
    position: relative;
    overflow: hidden;
}
.item-group::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: transparent;
    transition: background 0.18s ease;
}
.item-group:hover {
    transform: translateY(-2px);
    border-color: rgba(44, 80, 169, 0.22);
    box-shadow: 0 14px 34px rgba(21, 34, 56, 0.1);
}
.item-group:hover::before {
    background: linear-gradient(180deg, var(--brand), #6b8ae0);
}

.item-group .img {
    width: 48px;
    height: 48px;
    margin: 0 auto;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #eef2f7;
    color: var(--muted);
    font-weight: 800;
    font-size: 17px;
    font-variant-numeric: tabular-nums;
}
.item-group .img.rank-1 {
    background: linear-gradient(145deg, #f8e59a, #d4af37);
    color: #5a4200;
    box-shadow: 0 6px 16px rgba(201, 162, 39, 0.35);
}
.item-group .img.rank-2 {
    background: linear-gradient(145deg, #eef2f6, #9aa6b8);
    color: #334155;
    box-shadow: 0 6px 14px rgba(148, 163, 184, 0.35);
}
.item-group .img.rank-3 {
    background: linear-gradient(145deg, #f3d0ab, #b87333);
    color: #4a2c0a;
    box-shadow: 0 6px 14px rgba(184, 115, 51, 0.3);
}

.item-data {
    min-width: 0;
}
.item-data .title {
    font-size: 19px;
    font-weight: 750;
    line-height: 1.3;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.item-data .title span {
    margin-left: 10px;
    color: var(--muted);
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.02em;
}

.item-price,
.item-price1 {
    display: grid;
    grid-template-columns: 200px minmax(0, 1fr) 140px;
    gap: 14px;
    margin-top: 12px;
    align-items: start;
}
.item-price > div,
.item-price1 > div {
    min-width: 0;
    padding: 10px 12px;
    border-radius: 12px;
    background: #f7f9fc;
    font-size: 26px;
    font-weight: 800;
    font-variant-numeric: tabular-nums;
    letter-spacing: -0.02em;
    line-height: 1.15;
}
.item-price > div:first-child {
    color: var(--up);
    background: var(--up-soft);
}
.item-price1 > div:first-child {
    color: var(--down);
    background: var(--down-soft);
}

.item-price > div span,
.item-price1 > div span {
    font-size: 14px;
    font-weight: 600;
    margin-left: 1px;
}
.item-price > div:nth-child(2),
.item-price > div:nth-child(3),
.item-price1 > div:nth-child(2),
.item-price1 > div:nth-child(3) {
    font-size: 16px;
    font-weight: 700;
    color: var(--ink);
}
.item-price > div p,
.item-price1 > div p {
    margin-top: 6px;
    font-size: 12px;
    color: var(--muted);
    font-weight: 400;
}

.buttin-group {
    display: flex;
    justify-content: flex-end;
    padding-left: 4px;
}
.buttin-group a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 104px;
    height: 42px;
    padding: 0 18px;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--brand) 0%, var(--brand-deep) 100%);
    color: #fff !important;
    font-size: 14px;
    font-weight: 650;
    box-shadow: 0 8px 18px rgba(44, 80, 169, 0.28);
    transition: transform 0.15s ease, box-shadow 0.15s ease, opacity 0.15s ease;
}
.buttin-group a:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 22px rgba(44, 80, 169, 0.36);
}

.empty-panel {
    margin-top: 4px;
    padding: 64px 24px;
    text-align: center;
    background: var(--bg1);
    border: 1px dashed var(--line);
    border-radius: var(--radius);
    color: var(--muted);
    font-size: 15px;
}

@media screen and (max-width: 1100px) {
    .item-price,
    .item-price1 {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media screen and (max-width: 768px) {
    .main-group {
        width: calc(100% - 16px);
        margin: 12px auto 28px;
        padding: 18px 14px 22px;
        border-radius: 16px;
    }
    .ranking-title {
        padding-bottom: 20px;
    }
    .ranking-title .title {
        font-size: 24px;
    }
    .ranking-nav-group {
        grid-template-columns: repeat(2, 1fr);
    }
    .ranking-nav-group div {
        font-size: 13px;
        min-height: 40px;
    }
    .item-group {
        grid-template-columns: 44px 1fr;
        padding: 14px;
        gap: 8px 10px;
    }
    .item-group .img {
        width: 40px;
        height: 40px;
        font-size: 14px;
    }
    .buttin-group {
        grid-column: 1 / -1;
        justify-content: stretch;
        padding-left: 0;
        margin-top: 2px;
    }
    .buttin-group a {
        width: 100%;
        height: 40px;
    }
    .item-price,
    .item-price1 {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 8px;
    }
    .item-price > div,
    .item-price1 > div {
        padding: 8px;
        font-size: 17px;
    }
    .item-price > div:nth-child(2),
    .item-price > div:nth-child(3),
    .item-price1 > div:nth-child(2),
    .item-price1 > div:nth-child(3) {
        font-size: 13px;
    }
    .item-data .title {
        font-size: 15px;
    }
}
