:root{
    --bg:#0f172a; --card:#0b1220; --muted:#9aa7b8; --text:#e6eef8;
    --primary:#6366f1; --accent:#bac2d4; --border:#233043; --success:#10b981;
}
b{color: #d2d5e4}
*{box-sizing:border-box;margin:0;padding:0}
body{
    font-family: Inter, "Segoe UI", system-ui, -apple-system, sans-serif;
    background:var(--bg); color:var(--text); line-height:1.5; padding-bottom:60px;
}
.container{ max-width:1000px; margin:0 auto; padding:28px 20px; }

header{ padding:14px 0; border-bottom:1px solid var(--border); margin-bottom:45px; }
.header-row{ display:flex; justify-content:space-between; align-items:center; gap:12px; }
.logo{ font-weight:700; font-size:1.2rem;
    background:linear-gradient(90deg,var(--primary),var(--accent));
    -webkit-background-clip:text; -webkit-text-fill-color:transparent;
}
.lang{ display:flex; gap:8px; }
.lang button{ background:transparent; border:1px solid var(--border); color:var(--muted);
    padding:6px 10px; border-radius:8px; cursor:pointer; font-weight:600;
}
.lang button.active{ background:var(--primary); color:#fff; border-color:transparent }

h1{ font-size:1.8rem; margin-bottom:25px; }
.lead{ color:var(--muted); margin-bottom:18px}
.mb-50 {margin-bottom: 50px}

.wallet-list{ display:flex; flex-direction:column; gap:18px; }

.card{
    background:linear-gradient(180deg, rgba(255,255,255,0.02), rgba(255,255,255,0.01));
    border:1px solid var(--border); padding:18px; border-radius:12px;
    display:flex; gap:14px; align-items:flex-start;
    transition: transform .15s ease-in-out, box-shadow .15s ease-in-out;
    cursor: pointer;
}

.card:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 8px 0 rgba(18, 33, 40, 0.2), 0 6px 20px 0 rgba(31, 42, 66, 0.19);
}

.card:hover .title {
    text-decoration: underline;
}

.card .title {
    text-decoration: none;
}

.rank{
    min-width:62px; text-align:center; font-weight:800; color:rgba(255,255,255,0.08);
    font-size:2.2rem; display:flex; align-items:center; justify-content:center;
}

.content{ flex:1; }
.title-row{ display:flex; justify-content:space-between; gap:12px; align-items:flex-start; }
.title{ font-size:1.15rem; font-weight:800; color:var(--text) }
.badges{ display:flex; gap:8px; margin-top:6px; flex-wrap:wrap; }
.badge{ padding:6px 10px; border-radius:9px; font-weight:700; font-size:0.82rem; color:var(--muted);
    background:rgba(255,255,255,0.02); border:1px solid rgba(255,255,255,0.03);
}
.badge.best{ color:var(--primary); border-color:rgba(99,102,241,0.08); background:rgba(99,102,241,0.02) }

.score{ font-weight:800; color:var(--success); font-size:1rem; text-align:right; min-width:58px }

.desc{ color:var(--muted); margin:10px 0 12px; }

.recommend {
    margin-top: 12px;
    font-style: italic;
    color: var(--accent);
    font-size: 0.95rem;
    border: none;
    background: transparent;
    padding: 0;
}

.lang-select {
    background-color: var(--card);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 8px 12px;
    padding-right: 32px;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text);
    cursor: pointer;
    outline: none;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%239aa7b8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><polyline points='6 9 12 15 18 9'/></svg>");
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 14px;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.lang-select:hover {
    border-color: var(--primary);
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%236366f1' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><polyline points='6 9 12 15 18 9'/></svg>");
}

.lang-select:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 2px rgba(6, 182, 212, 0.2);
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2306b6d4' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><polyline points='6 9 12 15 18 9'/></svg>");
}

.lang-select::-ms-expand {
    display: none;
}

@media (max-width: 720px) {
    .lang-select {
        padding: 6px 8px;
        padding-right: 28px;
        font-size: 0.85rem;
        background-size: 12px;
    }
}

html, body {
    overflow-x: hidden;
}

@media (max-width: 720px) {
    .container {
        padding: 14px 12px;
        max-width: 100%;
        width: 100%;
    }

    header { padding: 10px 0; margin-bottom: 28px; }
    .header-row { gap: 8px; align-items: center; flex-wrap: wrap; }

    .logo { font-size: 1.05rem; }

    .lang-select {
        padding: 6px 10px;
        font-size: 0.88rem;
    }

    h1 { font-size: 1.4rem; margin-bottom: 18px; }
    .lead { font-size: 0.92rem; line-height: 1.35; margin-bottom: 12px; }

    .wallet-list { gap: 12px; }

    .card {
        padding: 12px;
        gap: 10px;
        border-radius: 10px;
    }

    .content { min-width: 0; }

    .rank {
        min-width: 48px;
        font-size: 1.6rem;
        padding: 6px 6px;
    }

    .title { font-size: 1rem; }
    .title-row { gap: 8px; align-items: flex-start; }

    .badges { gap: 6px; }
    .badge { padding: 5px 8px; font-size: 0.75rem; }

    .score { font-size: 0.95rem; min-width: 46px; }

    .desc { font-size: 0.86rem; margin: 8px 0 10px; }
    .recommend { font-size: 0.88rem; }

    @supports (display: flex) {
        .card { align-items: flex-start; }
    }
}

@media (max-width: 420px) {
    .container { padding: 10px; }
    header { margin-bottom: 20px; }
    .logo { font-size: 1rem; }

    h1 { font-size: 1.2rem; }
    .lead { font-size: 0.84rem; line-height: 1.3; }

    .card { padding: 10px; gap: 8px; }
    .rank { min-width: 44px; font-size: 1.45rem; }
    .title { font-size: 0.98rem; }
    .badge { font-size: 0.72rem; padding: 4px 7px; }
    .desc { font-size: 0.82rem; }
    .score { font-size: 0.92rem; min-width: 42px; }

    .title, .badges, .score { word-break: break-word; white-space: normal; overflow-wrap: break-word; }

    .wallet-list { gap: 10px; }
}

@media (max-width: 720px) {
    .title-row, .header-row { min-width: 0; }
    .card, .content, .title-row { overflow: visible; }
}

