/* templet3 — 独立样式，不引用其它模板 */

:root {
    --t3-bg0: #07060d;
    --t3-bg1: #12101c;
    --t3-surface: rgba(28, 26, 42, 0.72);
    --t3-surface2: rgba(38, 36, 58, 0.55);
    --t3-border: rgba(120, 220, 200, 0.18);
    --t3-text: #e8e6f2;
    --t3-muted: #9b97b0;
    --t3-accent: #5eead4;
    --t3-accent2: #a78bfa;
    --t3-danger: #fb7185;
    --t3-rail-w: 5.25rem;
    --t3-search-h: 3.25rem;
    --t3-tabbar-h: 3.75rem;
    --t3-radius: 14px;
    --t3-radius-sm: 10px;
    --t3-font: "Segoe UI", system-ui, -apple-system, sans-serif;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

body.theme-t3 {
    margin: 0;
    min-height: 100vh;
    font-family: var(--t3-font);
    color: var(--t3-text);
    background:
        radial-gradient(1200px 600px at 80% -10%, rgba(94, 234, 212, 0.12), transparent 55%),
        radial-gradient(900px 500px at 10% 20%, rgba(167, 139, 250, 0.14), transparent 50%),
        linear-gradient(165deg, var(--t3-bg0) 0%, var(--t3-bg1) 45%, #0a0a12 100%);
    background-attachment: fixed;
    padding-left: var(--t3-rail-w);
    padding-top: var(--t3-search-h);
}

/* 会员登录/注册：无侧轨，顶栏搜索通栏 */
body.theme-t3.t3-auth-page {
    padding-left: 0;
    padding-top: var(--t3-search-h);
}

body.theme-t3.t3-auth-page .t3-rail {
    display: none;
}

body.theme-t3.t3-auth-page .t3-search-dock {
    left: 0;
}

/* —— 顶栏搜索 —— */
.t3-nav {
    position: relative;
    z-index: 50;
}

.t3-search-dock {
    position: fixed;
    top: 0;
    left: var(--t3-rail-w);
    right: 0;
    height: var(--t3-search-h);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0 1rem 0 1.25rem;
    background: rgba(7, 6, 13, 0.85);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--t3-border);
}

.t3-search-dock-input {
    flex: 1;
    max-width: 28rem;
    height: 2.25rem;
    border-radius: 999px;
    border: 1px solid var(--t3-border);
    background: var(--t3-surface2);
    color: var(--t3-text);
    padding: 0 1rem;
    font: inherit;
    outline: none;
}

.t3-search-dock-input::placeholder {
    color: var(--t3-muted);
    color: white;
}

.t3-search-dock-input:focus {
    border-color: var(--t3-accent);
    box-shadow: 0 0 0 2px rgba(94, 234, 212, 0.2);
}

.t3-search-dock-btn {
    height: 2.25rem;
    padding: 0 1rem;
    border-radius: 999px;
    border: none;
    background: linear-gradient(120deg, var(--t3-accent), #34d399);
    color: #04120f;
    font-weight: 600;
    cursor: pointer;
    font: inherit;
}

/* —— 左侧轨 —— */
.t3-rail {
    position: fixed;
    left: 0;
    top: 0;
    bottom: 0;
    width: var(--t3-rail-w);
    display: flex;
    flex-direction: column;
    align-items: stretch;
    padding: 0.75rem 0.4rem;
    background: rgba(10, 9, 18, 0.94);
    border-right: 1px solid var(--t3-border);
    z-index: 60;
    
    width: 15rem;
    
}

.t3-rail-brand {
    display: flex;
    justify-content: center;
    margin-bottom: 0.75rem;
}

.t3-rail-brand .logo {
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: linear-gradient(145deg, var(--t3-accent2), var(--t3-accent));
    color: #0c0a14;
    font-weight: 800;
    font-size: 0.65rem;
    text-decoration: none;
    text-align: center;
    line-height: 1.1;
    word-break: break-all;
    padding: 10px;
    font-size: 18px;
}

.t3-rail-brand .logo--image {
    padding: 0;
    overflow: hidden;
}

.t3-rail-brand .site-logo-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 12px;
}

.t3-rail-nav {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    overflow-y: auto;
    scrollbar-width: thin;
}

.t3-rail-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.2rem;
    padding: 0.45rem 0.2rem;
    border-radius: var(--t3-radius-sm);
    text-decoration: none;
    color: var(--t3-muted);
    font-size: 0.62rem;
    text-align: center;
    line-height: 1.15;
    transition: color 0.15s, background 0.15s;
    color: white;
    font-size: 18px;
}

.t3-rail-link:hover {
    color: var(--t3-text);
    background: var(--t3-surface2);
}

.t3-rail-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--t3-accent);
    opacity: 0.5;
}

.t3-rail-link:hover .t3-rail-dot {
    opacity: 1;
}

.t3-rail-label {
    max-width: 100%;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.t3-rail-user {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    padding-top: 0.5rem;
    border-top: 1px solid var(--t3-border);
}

.t3-rail-user-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.2rem;
    font-size: 0.58rem;
    color: var(--t3-muted);
}

.t3-rail-avatar {
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(94, 234, 212, 0.35);
}

.t3-rail-name {
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.t3-rail-coins {
    color: var(--t3-accent);
    font-weight: 600;
}

.t3-rail-pill {
    display: block;
    text-align: center;
    padding: 0.35rem 0.25rem;
    border-radius: 8px;
    font-size: 0.58rem;
    text-decoration: none;
    color: var(--t3-text);
    background: var(--t3-surface2);
    border: 1px solid var(--t3-border);
    
        font-size: 18px;
}

.t3-rail-pill--ghost {
    background: transparent;
}

.t3-rail-pill--accent {
    background: linear-gradient(120deg, var(--t3-accent), #34d399);
    color: #04120f;
    font-weight: 700;
    border: none;
    
    font-size: 18px;
}

/* —— 底栏（移动） —— */
.t3-tabbar {
    display: none;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    height: var(--t3-tabbar-h);
    padding: 0.25rem 0.5rem calc(0.25rem + env(safe-area-inset-bottom));
    background: rgba(10, 9, 18, 0.95);
    backdrop-filter: blur(12px);
    border-top: 1px solid var(--t3-border);
    z-index: 55;
    justify-content: space-around;
    align-items: center;
}

.t3-tab {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.1rem;
    font-size: 0.65rem;
    color: var(--t3-muted);
    text-decoration: none;
    flex: 1;
    max-width: 5rem;
}

.t3-tab-ico {
    font-size: 1.1rem;
    opacity: 0.85;
}

.t3-tab:hover,
.t3-tab:focus-visible {
    color: var(--t3-accent);
}

@media (max-width: 768px) {
    body.theme-t3 {
        padding-left: 0;
        padding-top: var(--t3-search-h);
        padding-bottom: var(--t3-tabbar-h);
    }

    .t3-search-dock {
        left: 0;
    }

    .t3-rail {
        display: none;
    }

    .t3-tabbar {
        display: flex;
    }
}

/* —— 首页 —— */
.t3-home {
    padding: 0 1.25rem 3rem;
    max-width: 120rem;
    margin: 0 auto;
    
    padding-left: 11rem;
}

.t3-spotlight {
    position: relative;
    min-height: clamp(240px, 42vw, 420px);
    border-radius: calc(var(--t3-radius) + 6px);
    overflow: hidden;
    margin-bottom: 2rem;
    border: 1px solid var(--t3-border);
    background: var(--t3-surface);
    
    min-height: 70vh;
}

.t3-spotlight-media {
    position: absolute;
    inset: 0;
}

.t3-spotlight-video,
.t3-spotlight-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.t3-spotlight-scrim {
    position: absolute;
    inset: 0;
    background: linear-gradient(105deg, rgba(7, 6, 13, 0.92) 0%, rgba(7, 6, 13, 0.35) 55%, transparent 100%);
}

.t3-spotlight-copy {
    position: relative;
    z-index: 2;
    padding: clamp(1.5rem, 4vw, 3rem);
    max-width: 28rem;
}

.t3-eyebrow {
    font-size: 0.75rem;
    letter-spacing: 0.2em;
    color: var(--t3-accent);
    margin: 0 0 0.5rem;
}

.t3-spotlight-title {
    margin: 0 0 0.75rem;
    font-size: clamp(1.6rem, 4vw, 2.4rem);
    font-weight: 700;
    line-height: 1.15;
}

.t3-spotlight-meta {
    margin: 0 0 1.25rem;
    color: var(--t3-muted);
    font-size: 0.95rem;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.35rem;
}

.t3-dot-live {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #f43f5e;
    box-shadow: 0 0 10px #f43f5e;
    animation: t3-pulse 1.4s ease-in-out infinite;
}

@keyframes t3-pulse {
    50% { opacity: 0.45; transform: scale(0.92); }
}

.t3-meta-sep {
    opacity: 0.5;
}

.t3-spotlight-empty {
    padding: 3rem 1.5rem;
    text-align: center;
}

.t3-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.65rem 1.35rem;
    border-radius: 999px;
    font-weight: 600;
    font: inherit;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: transform 0.12s, box-shadow 0.12s;
}

.t3-btn--primary {
    background: linear-gradient(120deg, var(--t3-accent), #34d399);
    color: #04120f;
    box-shadow: 0 8px 28px rgba(94, 234, 212, 0.25);
}

.t3-btn--primary:hover {
    transform: translateY(-1px);
}

.t3-btn--block {
    width: 100%;
}

.t3-strip-wrap {
    margin-bottom: 2.5rem;
}

.t3-strip-head {
    margin-bottom: 1rem;
}

.t3-strip-title {
    margin: 0;
    font-size: 1.35rem;
}

.t3-strip-desc {
    margin: 0.35rem 0 0;
    color: var(--t3-muted);
    font-size: 0.9rem;
}

.t3-feed-scroll {
    display: flex;
    gap: 1rem;
    overflow-x: auto;
    padding-bottom: 0.5rem;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
}

.t3-feed-scroll::-webkit-scrollbar {
    height: 6px;
}

.t3-feed-scroll::-webkit-scrollbar-thumb {
    background: var(--t3-border);
    border-radius: 99px;
}

.t3-feed-card {
    flex: 0 0 min(260px, 78vw);
    scroll-snap-align: start;
}

.t3-feed-card-link {
    display: block;
    text-decoration: none;
    color: inherit;
    border-radius: var(--t3-radius);
    overflow: hidden;
    border: 1px solid var(--t3-border);
    background: var(--t3-surface);
    transition: border-color 0.15s, transform 0.15s;
}

.t3-feed-card-link:hover {
    border-color: rgba(94, 234, 212, 0.45);
    transform: translateY(-2px);
}

.t3-feed-card-visual {
    position: relative;
    aspect-ratio: 16 / 10;
}

.t3-feed-card-visual img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.t3-feed-card-live {
    position: absolute;
    top: 0.5rem;
    left: 0.5rem;
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    padding: 0.2rem 0.45rem;
    border-radius: 6px;
    background: rgba(244, 63, 94, 0.9);
    color: #fff;
}

.t3-feed-card-body {
    padding: 0.85rem 1rem 1rem;
}

.t3-feed-card-title {
    margin: 0 0 0.35rem;
    font-size: 1rem;
    line-height: 1.3;
}

.t3-feed-card-sub {
    margin: 0;
    font-size: 0.82rem;
    color: var(--t3-muted);
}

.t3-feed-card-room {
    margin: 0.35rem 0 0;
    font-size: 0.78rem;
    color: var(--t3-muted);
}

.t3-feed-card-stat {
    margin: 0.35rem 0 0;
    font-size: 0.78rem;
    color: var(--t3-accent);
}

.t3-bento-wrap {
    margin-top: 2rem;
}

.t3-bento-heading {
    font-size: 1.2rem;
    margin: 0 0 1rem;
}

.t3-bento {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 0.65rem;
}

.t3-bento-cell {
    position: relative;
    grid-column: span 2;
    aspect-ratio: 4 / 3;
    border-radius: var(--t3-radius-sm);
    overflow: hidden;
    border: 1px solid var(--t3-border);
    text-decoration: none;
    color: #fff;
}

.t3-bento-cell--wide {
    grid-column: span 3;
    aspect-ratio: 16 / 9;
}

.t3-bento-cell img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.25s;
}

.t3-bento-cell:hover img {
    transform: scale(1.05);
}

.t3-bento-cap {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 0.5rem 0.65rem;
    background: linear-gradient(transparent, rgba(7, 6, 13, 0.92));
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    font-size: 0.78rem;
}

.t3-bento-cap strong {
    font-size: 0.85rem;
}

.t3-bento-cap em {
    font-style: normal;
    opacity: 0.85;
    font-size: 0.75rem;
}

.t3-bento-room {
    font-size: 0.72rem;
    opacity: 0.92;
}

@media (max-width: 900px) {
    .t3-bento {
        grid-template-columns: repeat(4, 1fr);
    }
    .t3-bento-cell,
    .t3-bento-cell--wide {
        grid-column: span 2;
    }
}

@media (max-width: 520px) {
    .t3-bento {
        grid-template-columns: 1fr 1fr;
    }
    .t3-bento-cell,
    .t3-bento-cell--wide {
        grid-column: span 1;
        aspect-ratio: 1;
    }
}

/* —— 直播中心 —— */
.t3-live-hub {
    padding: 1rem 1.25rem 3.5rem;
    max-width: 52rem;
    margin: 0 auto;
}

.t3-live-hub-hero {
    margin-bottom: 2rem;
    padding: 1.5rem;
    border-radius: var(--t3-radius);
    border: 1px solid var(--t3-border);
    background: var(--t3-surface);
}

.t3-live-hub-title {
    margin: 0;
    font-size: clamp(1.75rem, 4vw, 2.25rem);
}

.t3-live-hub-lead {
    margin: 0.5rem 0 1.25rem;
    color: var(--t3-muted);
}

.t3-hub-search {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.t3-hub-search input {
    flex: 1;
    min-width: 12rem;
    height: 2.5rem;
    border-radius: var(--t3-radius-sm);
    border: 1px solid var(--t3-border);
    background: var(--t3-bg1);
    color: var(--t3-text);
    padding: 0 1rem;
    font: inherit;
}

.t3-hub-search button {
    height: 2.5rem;
    padding: 0 1.25rem;
    border-radius: var(--t3-radius-sm);
    border: none;
    background: linear-gradient(120deg, var(--t3-accent2), var(--t3-accent));
    color: #0c0a14;
    font-weight: 700;
    cursor: pointer;
    font: inherit;
}

.t3-live-stack {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

.t3-live-row {
    border-radius: var(--t3-radius);
    border: 1px solid var(--t3-border);
    background: var(--t3-surface);
    overflow: hidden;
    transition: border-color 0.15s;
}

.t3-live-row:hover {
    border-color: rgba(167, 139, 250, 0.45);
}

.t3-live-row--alt {
    background: rgba(38, 36, 58, 0.35);
}

.t3-live-row-link {
    display: flex;
    align-items: stretch;
    gap: 1rem;
    padding: 0.75rem;
    text-decoration: none;
    color: inherit;
}

.t3-live-row-cover {
    position: relative;
    flex: 0 0 140px;
    border-radius: var(--t3-radius-sm);
    overflow: hidden;
    aspect-ratio: 16 / 10;
}

.t3-live-row-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.t3-live-pulse {
    position: absolute;
    bottom: 0.35rem;
    left: 0.35rem;
    font-size: 0.62rem;
    padding: 0.15rem 0.4rem;
    border-radius: 6px;
    background: rgba(244, 63, 94, 0.92);
    color: #fff;
    font-weight: 600;
}

.t3-live-row-main {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 0.35rem;
}

.t3-live-row-title {
    margin: 0;
    font-size: 1.05rem;
}

.t3-live-row-host {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.88rem;
    color: var(--t3-muted);
}

.t3-live-row-host img {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    object-fit: cover;
}

.t3-live-row-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    font-size: 0.8rem;
    color: var(--t3-muted);
}

.t3-live-row-go {
    flex: 0 0 auto;
    align-self: center;
    font-size: 1.25rem;
    color: var(--t3-accent);
    opacity: 0.8;
}

@media (max-width: 520px) {
    .t3-live-row-link {
        flex-wrap: wrap;
    }
    .t3-live-row-cover {
        flex: 1 1 100%;
        max-height: 160px;
    }
    .t3-live-row-go {
        display: none;
    }
}

/* —— 提示条 —— */
.t3-alert {
    padding: 0.85rem 1rem;
    border-radius: var(--t3-radius-sm);
    font-size: 0.92rem;
}

.t3-alert--info {
    background: rgba(94, 234, 212, 0.1);
    border: 1px solid rgba(94, 234, 212, 0.25);
    color: var(--t3-text);
}

.t3-alert--error {
    background: rgba(251, 113, 133, 0.12);
    border: 1px solid rgba(251, 113, 133, 0.35);
    color: #fecdd3;
}

.t3-alert--ok {
    background: rgba(52, 211, 153, 0.12);
    border: 1px solid rgba(52, 211, 153, 0.35);
    color: #a7f3d0;
}

/* —— 页脚 —— */
body.theme-t3 .site-footer {
    margin-top: 2rem;
    padding: 1.5rem 1rem 2rem;
    border-top: 1px solid var(--t3-border);
    background: rgba(7, 6, 13, 0.6);
    color: var(--t3-muted);
}

body.theme-t3 .site-footer-inner {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    align-items: center;
    justify-content: space-between;
}

body.theme-t3 .site-footer-nav a {
    color: var(--t3-muted);
    margin-right: 1rem;
    text-decoration: none;
}

body.theme-t3 .site-footer-nav a:hover {
    color: var(--t3-accent);
}

body.theme-t3 .site-footer-meta {
    margin-top: 1rem;
    font-size: 0.85rem;
}

body.theme-t3 .site-footer-meta-company {
    font-weight: 600;
    color: var(--t3-text);
}

body.theme-t3 .site-footer-meta a {
    color: var(--t3-accent2);
}

/* —— 通用容器 / 按钮 / 表格（其它前台页） —— */
body.theme-t3 .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1.25rem 1rem 3rem;
}

body.theme-t3 .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem 1rem;
    border-radius: 999px;
    font: inherit;
    font-weight: 600;
    text-decoration: none;
    border: 1px solid transparent;
    cursor: pointer;
    transition: transform 0.12s, box-shadow 0.12s;
}

body.theme-t3 .btn-primary {
    background: linear-gradient(120deg, var(--t3-accent), #34d399);
    color: #04120f;
    border: none;
}

body.theme-t3 .btn-secondary {
    background: transparent;
    color: var(--t3-text);
    border-color: var(--t3-border);
}

body.theme-t3 .btn:hover {
    transform: translateY(-1px);
}

body.theme-t3 .alert {
    border-radius: var(--t3-radius-sm);
    padding: 0.85rem 1rem;
    margin-bottom: 1rem;
    border: 1px solid var(--t3-border);
}

body.theme-t3 .alert-info {
    background: rgba(94, 234, 212, 0.08);
    color: var(--t3-text);
}

body.theme-t3 .alert-success {
    background: rgba(52, 211, 153, 0.1);
    border-color: rgba(52, 211, 153, 0.3);
    color: #a7f3d0;
}

body.theme-t3 .alert-error {
    background: rgba(251, 113, 133, 0.1);
    border-color: rgba(251, 113, 133, 0.35);
    color: #fecdd3;
}

body.theme-t3 .form-group {
    margin-bottom: 1rem;
}

body.theme-t3 .form-group label {
    display: block;
    margin-bottom: 0.35rem;
    color: var(--t3-muted);
    font-size: 0.88rem;
}

body.theme-t3 .form-group input,
body.theme-t3 .form-group textarea,
body.theme-t3 .form-group select {
    width: 100%;
    max-width: 420px;
    padding: 0.55rem 0.75rem;
    border-radius: var(--t3-radius-sm);
    border: 1px solid var(--t3-border);
    background: var(--t3-bg1);
    color: var(--t3-text);
    font: inherit;
}

body.theme-t3 .table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}

body.theme-t3 .table th,
body.theme-t3 .table td {
    padding: 0.65rem 0.75rem;
    border-bottom: 1px solid var(--t3-border);
    text-align: left;
}

body.theme-t3 .table th {
    color: var(--t3-muted);
    font-weight: 600;
}

body.theme-t3 .status-badge {
    display: inline-block;
    padding: 0.2rem 0.5rem;
    border-radius: 6px;
    font-size: 0.75rem;
}

body.theme-t3 .status-approved {
    background: rgba(52, 211, 153, 0.2);
    color: #6ee7b7;
}

body.theme-t3 .status-pending {
    background: rgba(251, 191, 36, 0.15);
    color: #fcd34d;
}

/* 后台式侧栏（个人中心 / 主播） */
body.theme-t3 .admin-container {
    display: grid;
    grid-template-columns: minmax(0, 200px) 1fr;
    gap: 1.25rem;
    align-items: start;
}

@media (max-width: 768px) {
    body.theme-t3 .admin-container {
        grid-template-columns: 1fr;
    }
}

body.theme-t3 .admin-sidebar {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    padding: 0.75rem;
    border-radius: var(--t3-radius);
    border: 1px solid var(--t3-border);
    background: var(--t3-surface);
}

body.theme-t3 .menu-item {
    padding: 0.55rem 0.75rem;
    border-radius: var(--t3-radius-sm);
    text-decoration: none;
    color: var(--t3-muted);
    font-size: 0.9rem;
}

body.theme-t3 .menu-item:hover,
body.theme-t3 .menu-item.active {
    color: var(--t3-text);
    background: var(--t3-surface2);
}

body.theme-t3 .admin-content {
    padding: 1rem 1.25rem;
    border-radius: var(--t3-radius);
    border: 1px solid var(--t3-border);
    background: var(--t3-surface);
    min-height: 200px;
}

body.theme-t3 .admin-content h2,
body.theme-t3 .admin-content h3 {
    margin-top: 0;
}

/* 会员 / 主播 认证卡片 */
body.theme-t3 .auth-main {
    min-height: calc(100vh - 4rem);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 1rem 4rem;
}

body.theme-t3 .auth-card {
    width: 100%;
    max-width: 420px;
    padding: 1.75rem;
    border-radius: var(--t3-radius);
    border: 1px solid var(--t3-border);
    background: var(--t3-surface);
    backdrop-filter: blur(8px);
}

body.theme-t3 .auth-badge {
    display: inline-block;
    padding: 0.2rem 0.55rem;
    border-radius: 6px;
    font-size: 0.72rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
}

body.theme-t3 .auth-badge--member {
    background: rgba(94, 234, 212, 0.2);
    color: var(--t3-accent);
}

body.theme-t3 .auth-badge--streamer {
    background: rgba(167, 139, 250, 0.25);
    color: var(--t3-accent2);
}

body.theme-t3 .auth-card-title {
    margin: 0 0 0.5rem;
}

body.theme-t3 .auth-card-desc {
    margin: 0 0 1.25rem;
    color: var(--t3-muted);
    font-size: 0.9rem;
}

body.theme-t3 .btn-auth-member,
body.theme-t3 .btn-auth-streamer {
    width: 100%;
    margin-top: 0.5rem;
    padding: 0.65rem;
    border: none;
    border-radius: 999px;
    font-weight: 700;
    cursor: pointer;
    font: inherit;
}

body.theme-t3 .btn-auth-member {
    background: linear-gradient(120deg, var(--t3-accent), #34d399);
    color: #04120f;
}

body.theme-t3 .btn-auth-streamer {
    background: linear-gradient(120deg, var(--t3-accent2), #818cf8);
    color: #0c0a14;
}

body.theme-t3 .auth-card-foot,
body.theme-t3 .auth-card-foot--light {
    margin-top: 1.25rem;
    font-size: 0.88rem;
    color: var(--t3-muted);
}

body.theme-t3 .auth-card-foot a {
    color: var(--t3-accent);
}

/* 会员入口 hub */
body.theme-t3 .hub-main {
    padding: 2rem 1rem 4rem;
}

body.theme-t3 .hub-intro {
    text-align: center;
    margin-bottom: 2rem;
}

body.theme-t3 .hub-intro h1 {
    margin: 0 0 0.5rem;
}

body.theme-t3 .hub-intro p {
    margin: 0;
    color: var(--t3-muted);
}

body.theme-t3 .hub-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1rem;
}

body.theme-t3 .hub-card {
    padding: 1.5rem;
    border-radius: var(--t3-radius);
    border: 1px solid var(--t3-border);
    background: var(--t3-surface);
}

body.theme-t3 .hub-card h2 {
    margin-top: 0;
}

body.theme-t3 .hub-card p {
    color: var(--t3-muted);
    font-size: 0.9rem;
}

body.theme-t3 .hub-card-actions {
    margin-top: 1.25rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

body.theme-t3 .hub-btn-streamer {
    background: linear-gradient(120deg, var(--t3-accent2), #818cf8);
    color: #0c0a14;
    border: none;
}

body.theme-t3 .hub-btn-admin {
    background: rgba(251, 113, 133, 0.25);
    color: #fecdd3;
    border: 1px solid rgba(251, 113, 133, 0.4);
}

/* —— templet3 会员登录/注册专用 —— */
.t3-auth {
    min-height: calc(100vh - 2rem);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 1rem 4rem;
}

.t3-auth-shell {
    width: 100%;
    max-width: 920px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    border-radius: calc(var(--t3-radius) + 4px);
    overflow: hidden;
    border: 1px solid var(--t3-border);
    background: var(--t3-surface);
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.45);
}

.t3-auth-aside {
    padding: 2rem 1.75rem;
    background:
        radial-gradient(400px 280px at 20% 30%, rgba(94, 234, 212, 0.2), transparent),
        linear-gradient(160deg, #1a1830 0%, #0f0e18 100%);
    border-right: 1px solid var(--t3-border);
}

.t3-auth-brand {
    font-size: 0.75rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--t3-accent);
    margin: 0 0 1rem;
}

.t3-auth-tagline {
    margin: 0 0 1rem;
    font-size: 1.5rem;
    line-height: 1.2;
}

.t3-auth-bullets {
    margin: 0;
    padding-left: 1.1rem;
    color: var(--t3-muted);
    font-size: 0.9rem;
    line-height: 1.7;
}

.t3-auth-form-block {
    padding: 2rem 1.75rem;
}

.t3-auth-h1 {
    margin: 0 0 0.35rem;
    font-size: 1.65rem;
}

.t3-auth-lead {
    margin: 0 0 1.25rem;
    color: var(--t3-muted);
    font-size: 0.9rem;
}

.t3-auth-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.t3-field {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.t3-field-lbl {
    font-size: 0.82rem;
    color: var(--t3-muted);
}

.t3-field input {
    padding: 0.6rem 0.85rem;
    border-radius: var(--t3-radius-sm);
    border: 1px solid var(--t3-border);
    background: var(--t3-bg1);
    color: var(--t3-text);
    font: inherit;
}

.t3-field input:focus {
    outline: none;
    border-color: var(--t3-accent);
    box-shadow: 0 0 0 2px rgba(94, 234, 212, 0.15);
}

.t3-auth-foot {
    margin: 1.25rem 0 0;
    font-size: 0.88rem;
    color: var(--t3-muted);
}

.t3-auth-foot a {
    color: var(--t3-accent);
}

@media (max-width: 720px) {
    .t3-auth-shell,
    .t3-auth-shell--register {
        grid-template-columns: 1fr;
    }
    .t3-auth-aside {
        border-right: none;
        border-bottom: 1px solid var(--t3-border);
        padding: 1.5rem 1.25rem;
    }
    .t3-auth-form-block {
        padding: 1.5rem 1.25rem;
    }
}

/* —— 直播间页 —— */
body.theme-t3.page-live-room .t3-live-page .container {
    padding-top: 0.5rem;
}

body.theme-t3 .live-container {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

@media (min-width: 960px) {
    body.theme-t3 .live-container {
        display: grid;
        grid-template-columns: 1fr 340px;
        grid-template-rows: auto auto minmax(0, 1fr);
        align-items: start;
        gap: 1rem 1.25rem;
    }
    /* 首块包裹 video + gift，展开为网格子项 */
    body.theme-t3 .live-container > div:first-child {
        display: contents;
    }
    body.theme-t3 .live-container .video-section {
        grid-column: 1;
        grid-row: 1;
    }
    body.theme-t3 .live-container .gift-panel-yy {
        grid-column: 1;
        grid-row: 2;
    }
    body.theme-t3 .live-container .chat-section {
        grid-column: 2;
        grid-row: 1 / -1;
        align-self: stretch;
        min-height: 0;
        display: flex;
        flex-direction: column;
    }
}

body.theme-t3 .video-section {
    position: relative;
    border-radius: var(--t3-radius);
    overflow: hidden;
    border: 1px solid var(--t3-border);
    background: #000;
}

body.theme-t3 .video-section video {
    border-radius: 0;
}

/* 弹幕层 + 左飞（templet3 不引用 templet1，需自带与 templet1 一致的规则） */
@keyframes danmaku-fly {
    from {
        left: 100%;
        transform: translateX(0);
    }
    to {
        left: 0;
        transform: translateX(-100%);
    }
}

body.theme-t3 .danmaku-layer {
    position: absolute;
    left: 0;
    top: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    overflow: hidden;
    z-index: 5;
    border-radius: var(--t3-radius);
}

body.theme-t3 .danmaku-item-fly {
    position: absolute;
    left: 100%;
    white-space: nowrap;
    font-weight: bold;
    line-height: 1.5;
    padding: 2px 8px;
    text-shadow:
        1px 1px 2px rgba(0, 0, 0, 0.9),
        -1px -1px 2px rgba(0, 0, 0, 0.9),
        1px -1px 2px rgba(0, 0, 0, 0.9),
        -1px 1px 2px rgba(0, 0, 0, 0.9);
    animation: danmaku-fly 10s linear forwards;
    z-index: 5;
}

body.theme-t3 .gift-panel-yy {
    border-radius: var(--t3-radius);
    border: 1px solid var(--t3-border);
    background: var(--t3-surface);
    padding: 0.5rem;
}

body.theme-t3 .gift-bar-yy {
    background: transparent;
}

body.theme-t3 .gift-item-new {
    background: var(--t3-surface2);
    border: 1px solid var(--t3-border);
    border-radius: var(--t3-radius-sm);
}

body.theme-t3 .gift-name-new {
    color: var(--t3-text);
}

body.theme-t3 .gift-points-new {
    color: var(--t3-accent);
}

body.theme-t3 .chat-section {
    border-radius: var(--t3-radius);
    border: 1px solid var(--t3-border);
    background: var(--t3-surface);
    padding: 1rem;
    display: flex;
    flex-direction: column;
    min-height: 0;
}

body.theme-t3.page-live-room .chat-section {
    min-height: 420px;
    max-height: calc(100vh - 8rem);
}

@media (min-width: 960px) {
    body.theme-t3.page-live-room .chat-section {
        max-height: calc(100vh - 5rem);
        height: 100%;
    }
}

body.theme-t3 .video-info {
    color: var(--t3-text);
}

body.theme-t3 .live-room-notice {
    color: var(--t3-danger) !important;
    font-size: 0.82rem !important;
    line-height: 1.5;
}

body.theme-t3 .danmaku-container {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    margin-bottom: 0.75rem;
    padding: 0.5rem 0.65rem;
    background: rgba(7, 6, 13, 0.5);
    border-radius: var(--t3-radius-sm);
    border: 1px solid var(--t3-border);
}

body.theme-t3 .danmaku-item {
    border-bottom-color: var(--t3-border);
}

body.theme-t3 .danmaku-item .username {
    color: var(--t3-accent2);
}

body.theme-t3 .danmaku-input {
    display: flex;
    gap: 0.5rem;
    flex-shrink: 0;
    margin-top: auto;
    align-items: center;
}

body.theme-t3 .danmaku-input input {
    flex: 1;
    border-radius: var(--t3-radius-sm);
    border: 1px solid var(--t3-border);
    background: var(--t3-bg1);
    color: var(--t3-text);
    padding: 0.5rem 0.75rem;
    font: inherit;
}

body.theme-t3 .room-action-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.75rem;
}

/* 文章列表等 */
body.theme-t3 .live-center-header h1 {
    margin-top: 0;
}

body.theme-t3 .room-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 1rem;
}

body.theme-t3 .room-card {
    border-radius: var(--t3-radius);
    border: 1px solid var(--t3-border);
    background: var(--t3-surface);
    overflow: hidden;
    cursor: pointer;
    transition: border-color 0.15s, transform 0.15s;
}

body.theme-t3 .room-card:hover {
    border-color: rgba(94, 234, 212, 0.4);
    transform: translateY(-2px);
}

body.theme-t3 .room-card .cover {
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    display: block;
}

body.theme-t3 .room-card .info {
    padding: 0.85rem;
}

body.theme-t3 .room-card .title {
    font-weight: 600;
}

body.theme-t3 .room-card .streamer {
    color: var(--t3-muted);
    font-size: 0.88rem;
}

body.theme-t3 .live-badge {
    display: inline-block;
    padding: 0.15rem 0.45rem;
    border-radius: 6px;
    font-size: 0.72rem;
    background: rgba(244, 63, 94, 0.2);
    color: #fda4af;
}











.t3-live-page span{
    color: white!important;
}

div#giftTrack {
    display: flex;
    justify-content: space-between;

}

.gift-item-new{
     text-align: center;
    padding: 10px;   
}

.gift-icon-new img{
    width:100px;
}




div#rechargeQrAlipay img,div#rechargeQrWechat img{
    width: 160px;
}

div#rechargeQrArea {
    margin-top: 30px;
}


div#rechargeAmountRow {
    margin: 20px 0px;
}

