.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;
    }
}

/* ===== v11 文章式商品详情（后台编辑器同款排版，前台只读渲染） ===== */
.article-body { color:#374151; font-size:15px; line-height:1.85; word-break:break-word; overflow-wrap:anywhere; }
.article-body > :last-child { margin-bottom:0 !important; }
.article-body p { margin:0 0 12px; }
.article-body h1 { font-size:24px; font-weight:800; margin:18px 0 12px; color:#111827; }
.article-body h2 { font-size:20px; font-weight:800; margin:16px 0 10px; padding-left:10px; border-left:4px solid #1677ff; color:#111827; }
.article-body h3 { font-size:17px; font-weight:700; margin:14px 0 8px; color:#1f2937; }
.article-body h4,.article-body h5,.article-body h6 { font-size:15px; font-weight:700; margin:12px 0 8px; }
.article-body strong,.article-body b { font-weight:700; color:#111827; }
.article-body img { display:block; max-width:100%; height:auto; margin:10px 0; border-radius:8px; box-shadow:0 1px 6px rgba(0,0,0,.08); }
.article-body ul,.article-body ol { margin:0 0 12px; padding-left:26px; }
.article-body ul { list-style:disc; }
.article-body ol { list-style:decimal; }
.article-body li { margin:3px 0; }
.article-body blockquote { margin:0 0 12px; padding:8px 14px; background:#f8fafc; border-left:3px solid #93c5fd; color:#475569; border-radius:0 6px 6px 0; }
.article-body a { color:#1677ff; text-decoration:underline; word-break:break-all; }
.article-body hr { border:0; border-top:1px solid #e5e7eb; margin:18px 0; }
.article-body pre { margin:0 0 12px; padding:12px 14px; border-radius:8px; background:#1f2937; color:#f9fafb; overflow-x:auto; font-size:13px; line-height:1.6; white-space:pre-wrap; }
.article-body code { background:#f3f4f6; padding:1px 5px; border-radius:4px; font-size:13px; }
.article-body figure { margin:12px 0; }
.article-body figcaption { font-size:12px; color:#9ca3af; text-align:center; margin-top:4px; }
.article-body table { width:100%; border-collapse:collapse; margin:12px 0; font-size:14px; display:block; overflow-x:auto; }
.article-body th,.article-body td { border:1px solid #e5e7eb; padding:7px 10px; text-align:left; min-width:80px; }
.article-body th { background:#f3f4f6; font-weight:700; }
@media (max-width:640px) {
  .article-body { font-size:14px; }
  .article-body h1 { font-size:21px; }
  .article-body h2 { font-size:18px; }
  .article-body h3 { font-size:16px; }
}
