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

.star-input {
    display: inline-flex;
    flex-direction: row-reverse;
    justify-content: flex-end;
    gap: 2px;
}

.star-input input {
    display: none;
}

.star-input label {
    color: #d1d5db;
    cursor: pointer;
    font-size: 22px;
    line-height: 1;
    transition: color .15s;
}

.star-input label:hover,
.star-input label:hover ~ label,
.star-input input:checked ~ label {
    color: #facc15;
}

.rank-tab.active {
    background: #1677ff;
    color: #fff;
    border-color: #1677ff;
}

table.data-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}

table.data-table th {
    background: #f9fafb;
    color: #6b7280;
    font-weight: 600;
    text-align: left;
    padding: 10px 12px;
    border-bottom: 1px solid #e5e7eb;
    white-space: nowrap;
}

table.data-table td {
    padding: 10px 12px;
    border-bottom: 1px solid #f3f4f6;
    vertical-align: middle;
}

table.data-table tr:hover td {
    background: #f9fafb;
}

/* ============ 手机端底部菜单栏 ============ */
.tabbar {
    position: fixed;
    left: 14px;
    right: 14px;
    bottom: calc(10px + env(safe-area-inset-bottom, 0px));
    z-index: 60;
    animation: tabbar-rise .7s cubic-bezier(.34, 1.56, .64, 1) both;
}

.tabbar-inner {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2px;
    padding: 8px 10px;
    background: rgba(255, 255, 255, .88);
    backdrop-filter: blur(16px) saturate(1.5);
    -webkit-backdrop-filter: blur(16px) saturate(1.5);
    border: 1px solid rgba(255, 255, 255, .95);
    border-radius: 999px;
    box-shadow: 0 12px 32px rgba(15, 23, 42, .16), 0 2px 8px rgba(15, 23, 42, .06), inset 0 1px 0 #fff;
}

.tab-indicator {
    position: absolute;
    top: 7px;
    bottom: 7px;
    left: 0;
    width: 0;
    border-radius: 999px;
    background: linear-gradient(135deg, rgba(22, 119, 255, .14), rgba(56, 189, 248, .2));
    box-shadow: inset 0 0 0 1px rgba(22, 119, 255, .18);
    pointer-events: none;
    transition: transform .55s cubic-bezier(.34, 1.56, .64, 1), width .55s cubic-bezier(.34, 1.56, .64, 1), opacity .3s;
}

.tab-indicator.is-hidden {
    opacity: 0;
}

.tab-item {
    position: relative;
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    padding: 5px 0;
    color: #94a3b8;
    border-radius: 999px;
    overflow: hidden;
    -webkit-tap-highlight-color: transparent;
    transition: color .3s;
    animation: tab-item-in .55s cubic-bezier(.34, 1.56, .64, 1) both;
}

.tab-ico {
    display: block;
    line-height: 1;
}

.tab-ico i {
    font-size: 20px;
    display: inline-block;
    transition: transform .4s cubic-bezier(.34, 1.56, .64, 1);
}

.tab-label {
    font-size: 10px;
    line-height: 1;
    letter-spacing: .02em;
    white-space: nowrap;
    transition: transform .3s;
}

.tab-item:hover {
    color: #334155;
}

.tab-item:active .tab-ico i {
    transform: scale(.8);
}

.tab-item.is-active {
    color: #1677ff;
}

.tab-item.is-active .tab-ico i {
    animation: tab-pop .6s cubic-bezier(.34, 1.56, .64, 1);
}

.tab-item.is-active .tab-label {
    font-weight: 700;
    transform: translateY(-1px);
}

.tab-ripple {
    position: absolute;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(22, 119, 255, .35), rgba(22, 119, 255, .1));
    transform: scale(0);
    animation: ripple-out .7s ease-out forwards;
    pointer-events: none;
}

.tab-center {
    position: relative;
    flex: 0 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    margin-top: -34px;
    color: #94a3b8;
    -webkit-tap-highlight-color: transparent;
    transition: color .3s;
    animation: tab-item-in .55s cubic-bezier(.34, 1.56, .64, 1) both;
}

.tab-center-float {
    display: block;
    animation: center-float 3s ease-in-out infinite;
}

.tab-center-btn {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    font-size: 22px;
    color: #fff;
    background: linear-gradient(145deg, #1677ff, #38bdf8 55%, #22d3ee);
    border: 3px solid #fff;
    box-shadow: 0 10px 24px rgba(22, 119, 255, .45), 0 2px 6px rgba(22, 119, 255, .25);
    transition: transform .35s cubic-bezier(.34, 1.56, .64, 1), box-shadow .35s;
}

.tab-center-btn::after {
    content: '';
    position: absolute;
    inset: -7px;
    border-radius: 50%;
    border: 2px solid rgba(22, 119, 255, .45);
    animation: ring-pulse 2.2s ease-out infinite;
    pointer-events: none;
}

.tab-center-btn i {
    display: inline-block;
    transition: transform .4s cubic-bezier(.34, 1.56, .64, 1);
}

.tab-center:hover .tab-center-btn {
    transform: translateY(-3px) scale(1.06);
    box-shadow: 0 16px 30px rgba(22, 119, 255, .5), 0 3px 8px rgba(22, 119, 255, .3);
}

.tab-center:active .tab-center-btn {
    transform: scale(.92);
}

.tab-center.is-active {
    color: #1677ff;
}

.tab-center.is-active .tab-label {
    font-weight: 700;
}

.tab-center.is-active .tab-center-btn i {
    animation: tab-pop .6s cubic-bezier(.34, 1.56, .64, 1);
}

@keyframes tabbar-rise {
    from { transform: translateY(130%); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

@keyframes tab-item-in {
    from { transform: translateY(16px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

@keyframes tab-pop {
    0% { transform: scale(1); }
    30% { transform: scale(1.4) rotate(-10deg); }
    60% { transform: scale(.9); }
    100% { transform: scale(1); }
}

@keyframes ring-pulse {
    0% { transform: scale(.92); opacity: .9; }
    70% { transform: scale(1.35); opacity: 0; }
    100% { transform: scale(1.35); opacity: 0; }
}

@keyframes center-float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
}

@keyframes ripple-out {
    to { transform: scale(1); opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
    .tabbar, .tab-item, .tab-center, .tab-center-float, .tab-center-btn::after,
    .tab-item.is-active .tab-ico i, .tab-center.is-active .tab-center-btn i {
        animation: none !important;
    }
}
