/* 仪表板专用样式 */

/* 玻璃拟态效果增强 */
.glass-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.37);
}

.glass-card:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
    box-shadow: 0 12px 40px 0 rgba(31, 38, 135, 0.5);
}

/* 悬停阴影效果 */
.shadow-glass-hover {
    box-shadow: 0 20px 60px 0 rgba(31, 38, 135, 0.6);
}

/* 渐变背景 */
.bg-gradient-main {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
}

/* 文本渐变效果 */
.text-gradient {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* 浮动形状动画 */
.floating-shapes {
    position: absolute;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.floating-shape {
    position: absolute;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    animation: float 20s infinite linear;
}

.floating-shape:nth-child(1) {
    width: 80px;
    height: 80px;
    left: 10%;
    animation-delay: 0s;
    animation-duration: 20s;
}

.floating-shape:nth-child(2) {
    width: 120px;
    height: 120px;
    left: 20%;
    animation-delay: 2s;
    animation-duration: 25s;
}

.floating-shape:nth-child(3) {
    width: 60px;
    height: 60px;
    left: 70%;
    animation-delay: 4s;
    animation-duration: 18s;
}

.floating-shape:nth-child(4) {
    width: 100px;
    height: 100px;
    left: 80%;
    animation-delay: 6s;
    animation-duration: 22s;
}

.floating-shape:nth-child(5) {
    width: 140px;
    height: 140px;
    left: 60%;
    animation-delay: 8s;
    animation-duration: 28s;
}

@keyframes float {
    0% {
        transform: translateY(100vh) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        transform: translateY(-100px) rotate(360deg);
        opacity: 0;
    }
}

/* 加载动画 */
.loading-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* 脉冲动画 */
@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

.animate-pulse {
    animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

/* 卡片悬停效果 */
.card-hover-effect {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.card-hover-effect:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

/* 按钮样式增强 */
.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    color: white;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px 0 rgba(31, 38, 135, 0.4);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px 0 rgba(31, 38, 135, 0.6);
}

.btn-primary:active {
    transform: translateY(0);
}

/* 状态指示器 */
.status-indicator {
    position: relative;
    display: inline-block;
}

.status-indicator::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 50%;
    background: inherit;
    animation: ping 2s cubic-bezier(0, 0, 0.2, 1) infinite;
}

@keyframes ping {
    75%, 100% {
        transform: scale(1.5);
        opacity: 0;
    }
}

/* 响应式设计 */
@media (max-width: 768px) {
    .glass-card {
        margin: 0.5rem;
        padding: 1rem;
    }
    
    .floating-shape {
        display: none; /* 移动端隐藏浮动形状以提升性能 */
    }
    
    .grid-cols-4 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .grid-cols-4,
    .grid-cols-2 {
        grid-template-columns: repeat(1, minmax(0, 1fr));
    }
    
    .text-3xl {
        font-size: 1.5rem;
        line-height: 2rem;
    }
    
    .space-x-6 > * + * {
        margin-left: 1rem;
    }
}

/* 平滑滚动 */
html {
    scroll-behavior: smooth;
}

/* 选择样式 */
::selection {
    background: rgba(255, 255, 255, 0.3);
    color: white;
}

/* 焦点样式 */
button:focus,
input:focus {
    outline: 2px solid rgba(255, 255, 255, 0.5);
    outline-offset: 2px;
}

/* 工具提示 */
.tooltip {
    position: relative;
}

.tooltip:hover::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 0.5rem;
    border-radius: 0.25rem;
    font-size: 0.875rem;
    white-space: nowrap;
    z-index: 1000;
}

/* 淡入动画 */
.fade-in {
    animation: fadeIn 0.6s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 滑入动画 */
.slide-in-left {
    animation: slideInLeft 0.6s ease-out;
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.slide-in-right {
    animation: slideInRight 0.6s ease-out;
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* 错误和成功状态 */
.status-success {
    color: #10b981;
    background-color: rgba(16, 185, 129, 0.1);
}

.status-error {
    color: #ef4444;
    background-color: rgba(239, 68, 68, 0.1);
}

.status-warning {
    color: #f59e0b;
    background-color: rgba(245, 158, 11, 0.1);
}

/* 数据卡片样式 */
.stat-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.05) 100%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.stat-card:hover {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.15) 0%, rgba(255, 255, 255, 0.1) 100%);
    border-color: rgba(255, 255, 255, 0.2);
}

/* 后台首页 V2 */
.dashboard-home {
    position: relative;
    isolation: isolate;
    color: #dbeafe;
    font-family: "Manrope", "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
}

.dashboard-home-bg {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
    background:
        radial-gradient(circle at 8% 16%, rgba(56, 189, 248, 0.22), transparent 38%),
        radial-gradient(circle at 92% 10%, rgba(45, 212, 191, 0.2), transparent 35%),
        radial-gradient(circle at 74% 90%, rgba(59, 130, 246, 0.18), transparent 42%),
        linear-gradient(140deg, #071527 0%, #0b1e35 52%, #123456 100%);
}

.dashboard-grid-mask {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(148, 163, 184, 0.08) 1px, transparent 1px),
        linear-gradient(90deg, rgba(148, 163, 184, 0.08) 1px, transparent 1px);
    background-size: 44px 44px;
    opacity: 0.4;
    -webkit-mask-image: radial-gradient(circle at center, rgba(0, 0, 0, 0.95) 24%, transparent 85%);
    mask-image: radial-gradient(circle at center, rgba(0, 0, 0, 0.95) 24%, transparent 85%);
}

.dashboard-orb {
    position: absolute;
    border-radius: 9999px;
    filter: blur(2px);
    opacity: 0.75;
    animation: homeFloat 16s ease-in-out infinite;
}

.orb-blue {
    width: 340px;
    height: 340px;
    left: -120px;
    top: 4%;
    background: radial-gradient(circle, rgba(56, 189, 248, 0.34) 0%, rgba(56, 189, 248, 0.02) 72%);
}

.orb-cyan {
    width: 360px;
    height: 360px;
    right: -130px;
    top: 12%;
    background: radial-gradient(circle, rgba(34, 211, 238, 0.26) 0%, rgba(34, 211, 238, 0.02) 74%);
    animation-delay: -4s;
}

.orb-emerald {
    width: 300px;
    height: 300px;
    right: 18%;
    bottom: -120px;
    background: radial-gradient(circle, rgba(16, 185, 129, 0.22) 0%, rgba(16, 185, 129, 0.01) 74%);
    animation-delay: -8s;
}

@keyframes homeFloat {
    0% {
        transform: translate3d(0, 0, 0);
    }
    50% {
        transform: translate3d(0, -20px, 0);
    }
    100% {
        transform: translate3d(0, 0, 0);
    }
}

.home-shell,
.home-panel,
.metric-card,
.home-loading-card {
    border: 1px solid rgba(148, 163, 184, 0.26);
    background: linear-gradient(145deg, rgba(14, 30, 52, 0.86), rgba(9, 20, 38, 0.72));
    box-shadow:
        0 14px 50px rgba(2, 8, 20, 0.38),
        inset 0 1px 0 rgba(255, 255, 255, 0.04);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border-radius: 22px;
}

.home-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.brand-mark {
    width: 2.85rem;
    height: 2.85rem;
    border-radius: 0.85rem;
    background: linear-gradient(140deg, #38bdf8 0%, #2563eb 100%);
    color: #eff6ff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    font-weight: 700;
    box-shadow: 0 8px 30px rgba(37, 99, 235, 0.4);
}

.home-nav-actions {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
}

.home-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    border-radius: 0.8rem;
    padding: 0.6rem 1rem;
    font-size: 0.9rem;
    font-weight: 600;
    line-height: 1;
    transition: all 0.2s ease;
    cursor: pointer;
}

.home-btn:focus {
    outline: 2px solid rgba(56, 189, 248, 0.7);
    outline-offset: 2px;
}

.home-btn-primary {
    color: #eff6ff;
    border: 1px solid rgba(56, 189, 248, 0.45);
    background: linear-gradient(130deg, #0ea5e9 0%, #2563eb 100%);
    box-shadow: 0 10px 25px rgba(37, 99, 235, 0.4);
}

.home-btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 14px 30px rgba(37, 99, 235, 0.45);
}

.home-btn-ghost {
    color: #dbeafe;
    border: 1px solid rgba(148, 163, 184, 0.35);
    background: rgba(148, 163, 184, 0.12);
}

.home-btn-ghost:hover {
    background: rgba(148, 163, 184, 0.2);
}

.home-hero {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
    gap: 1.5rem;
    align-items: center;
    overflow: hidden;
}

.home-hero::after {
    content: '';
    position: absolute;
    width: 280px;
    height: 280px;
    right: -80px;
    top: -110px;
    border-radius: 9999px;
    background: radial-gradient(circle, rgba(56, 189, 248, 0.24), transparent 74%);
    pointer-events: none;
}

.home-profile {
    display: flex;
    align-items: center;
    gap: 1rem;
    min-width: 0;
}

.home-avatar-wrap {
    position: relative;
    flex-shrink: 0;
}

.home-avatar {
    width: 84px;
    height: 84px;
    border-radius: 9999px;
    border: 3px solid rgba(224, 242, 254, 0.5);
    object-fit: cover;
    box-shadow: 0 12px 28px rgba(7, 89, 133, 0.38);
}

.online-dot {
    position: absolute;
    right: 1px;
    bottom: 2px;
    width: 16px;
    height: 16px;
    border-radius: 9999px;
    border: 2px solid rgba(15, 23, 42, 0.95);
    background: #22c55e;
    box-shadow: 0 0 0 6px rgba(34, 197, 94, 0.2);
}

.home-caption {
    color: rgba(191, 219, 254, 0.85);
    letter-spacing: 0.06em;
    text-transform: uppercase;
    font-size: 0.72rem;
    font-weight: 600;
}

.hero-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
}

.hero-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    border: 1px solid rgba(148, 163, 184, 0.28);
    border-radius: 9999px;
    padding: 0.36rem 0.8rem;
    background: rgba(148, 163, 184, 0.1);
    color: rgba(226, 232, 240, 0.95);
    font-size: 0.8rem;
}

.hero-tag strong {
    font-weight: 600;
    color: #f8fafc;
}

.hero-status {
    border: 1px solid rgba(148, 163, 184, 0.24);
    border-radius: 18px;
    padding: 1rem;
    background: rgba(2, 6, 23, 0.2);
}

.status-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    border-radius: 9999px;
    padding: 0.35rem 0.85rem;
    font-size: 0.84rem;
    color: #dcfce7;
    background: rgba(22, 163, 74, 0.2);
    border: 1px solid rgba(74, 222, 128, 0.5);
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 9999px;
    background: #4ade80;
    box-shadow: 0 0 0 6px rgba(74, 222, 128, 0.2);
}

.status-metrics {
    display: grid;
    gap: 0.9rem;
}

.status-label {
    color: rgba(148, 163, 184, 0.95);
    font-size: 0.78rem;
}

.status-value {
    margin-top: 0.2rem;
    color: #f8fafc;
    font-size: 1rem;
    font-weight: 600;
}

.metric-card {
    position: relative;
    padding: 1rem 1.1rem;
    overflow: hidden;
    transition: all 0.25s ease;
}

.metric-card:hover {
    transform: translateY(-3px);
    border-color: rgba(56, 189, 248, 0.36);
}

.metric-label {
    font-size: 0.82rem;
    color: rgba(191, 219, 254, 0.8);
    margin-bottom: 0.45rem;
}

.metric-value {
    font-size: 1.7rem;
    line-height: 1.15;
    font-weight: 700;
    color: #f8fafc;
}

.metric-bar {
    margin-top: 0.8rem;
    height: 3px;
    width: 100%;
    border-radius: 9999px;
    opacity: 0.95;
}

.bar-blue {
    background: linear-gradient(90deg, #38bdf8, #60a5fa);
}

.bar-cyan {
    background: linear-gradient(90deg, #22d3ee, #14b8a6);
}

.bar-emerald {
    background: linear-gradient(90deg, #34d399, #22c55e);
}

.bar-indigo {
    background: linear-gradient(90deg, #818cf8, #3b82f6);
}

.home-panel {
    transition: all 0.25s ease;
}

.home-entry {
    cursor: pointer;
}

.home-entry:hover {
    transform: translateY(-2px);
    border-color: rgba(56, 189, 248, 0.36);
}

.entry-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
}

.entry-kpis {
    margin-top: 1.4rem;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.75rem;
}

.entry-kpi {
    border: 1px solid rgba(148, 163, 184, 0.24);
    background: rgba(148, 163, 184, 0.1);
    border-radius: 0.9rem;
    padding: 0.85rem 0.95rem;
}

.entry-kpi-label {
    color: rgba(191, 219, 254, 0.82);
    font-size: 0.78rem;
}

.entry-kpi-value {
    color: #f8fafc;
    font-size: 1.2rem;
    font-weight: 700;
    margin-top: 0.3rem;
    word-break: break-all;
}

.home-system {
    color: rgba(226, 232, 240, 0.96);
}

.system-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.8rem;
    border-bottom: 1px dashed rgba(148, 163, 184, 0.25);
    padding: 0.7rem 0;
    font-size: 0.9rem;
}

.system-row strong {
    color: #f8fafc;
    font-weight: 600;
}

.home-loading-mask {
    background: rgba(2, 6, 23, 0.62);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

@media (max-width: 1279px) {
    .home-hero {
        grid-template-columns: minmax(0, 1fr);
    }
}

@media (max-width: 767px) {
    .home-shell,
    .home-panel,
    .metric-card,
    .home-loading-card {
        border-radius: 18px;
    }

    .home-avatar {
        width: 68px;
        height: 68px;
    }

    .metric-value {
        font-size: 1.45rem;
    }
}

@media (max-width: 640px) {
    .home-nav {
        flex-direction: column;
        align-items: flex-start;
    }

    .home-nav-actions {
        width: 100%;
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .home-profile {
        align-items: flex-start;
    }

    .entry-head {
        flex-direction: column;
    }

    .entry-kpis {
        grid-template-columns: minmax(0, 1fr);
    }
}

/* 后台业务页统一主题 V2 */
.admin-v2-page {
    position: relative;
    isolation: isolate;
    color: #e2e8f0;
    font-family: "Manrope", "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
}

.admin-v2-page::before,
.admin-v2-page::after {
    content: '';
    position: absolute;
    pointer-events: none;
    border-radius: 9999px;
    z-index: 0;
}

.admin-v2-page::before {
    width: 360px;
    height: 360px;
    left: -160px;
    top: 120px;
    background: radial-gradient(circle, rgba(14, 165, 233, 0.3), rgba(14, 165, 233, 0) 72%);
}

.admin-v2-page::after {
    width: 420px;
    height: 420px;
    right: -180px;
    bottom: -80px;
    background: radial-gradient(circle, rgba(45, 212, 191, 0.26), rgba(45, 212, 191, 0) 74%);
}

.admin-v2-page > .absolute.inset-0.overflow-hidden {
    background:
        radial-gradient(circle at 12% 8%, rgba(56, 189, 248, 0.15), transparent 32%),
        radial-gradient(circle at 90% 10%, rgba(34, 211, 238, 0.14), transparent 30%),
        linear-gradient(145deg, #07152a 0%, #0b1f38 55%, #10335a 100%);
}

.admin-v2-page .floating-shapes {
    display: none;
}

.admin-v2-page .relative.z-10,
.admin-v2-page .relative.z-20 {
    z-index: 2;
}

.admin-v2-page .glass-card {
    border: 1px solid rgba(148, 163, 184, 0.24);
    background: linear-gradient(145deg, rgba(15, 30, 51, 0.88), rgba(9, 20, 38, 0.74));
    box-shadow:
        0 14px 45px rgba(2, 8, 20, 0.36),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.admin-v2-page .glass-card:hover {
    transform: translateY(-2px);
    border-color: rgba(56, 189, 248, 0.34);
    background: linear-gradient(145deg, rgba(15, 34, 58, 0.92), rgba(9, 22, 42, 0.8));
    box-shadow:
        0 20px 52px rgba(2, 8, 20, 0.42),
        inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.admin-v2-page nav .glass-card {
    border: 1px solid rgba(125, 211, 252, 0.25);
    background: linear-gradient(145deg, rgba(12, 30, 56, 0.92), rgba(8, 22, 44, 0.84));
}

.admin-v2-page nav h1 {
    font-weight: 700;
    letter-spacing: 0.01em;
}

.admin-v2-page nav p {
    color: rgba(186, 230, 253, 0.78) !important;
}

.admin-v2-page h2,
.admin-v2-page h3,
.admin-v2-page h4 {
    color: #f8fafc;
    letter-spacing: 0.01em;
}

.admin-v2-page button,
.admin-v2-page .cursor-pointer {
    transition: all 0.2s ease;
}

.admin-v2-page input[type="text"],
.admin-v2-page input[type="number"],
.admin-v2-page input[type="date"],
.admin-v2-page input[type="datetime-local"],
.admin-v2-page input[type="search"],
.admin-v2-page select,
.admin-v2-page textarea {
    background: rgba(15, 23, 42, 0.5) !important;
    border: 1px solid rgba(148, 163, 184, 0.38) !important;
    color: #e2e8f0 !important;
    border-radius: 0.7rem;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.admin-v2-page input::placeholder,
.admin-v2-page textarea::placeholder {
    color: rgba(186, 230, 253, 0.62) !important;
}

.admin-v2-page input:focus,
.admin-v2-page select:focus,
.admin-v2-page textarea:focus {
    border-color: rgba(56, 189, 248, 0.7) !important;
    box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.2);
    background: rgba(15, 23, 42, 0.66) !important;
    outline: none;
}

.admin-v2-page table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    border-radius: 1rem;
    overflow: hidden;
}

.admin-v2-page thead {
    background: rgba(148, 163, 184, 0.16) !important;
}

.admin-v2-page tbody tr {
    border-color: rgba(148, 163, 184, 0.24) !important;
}

.admin-v2-page tbody tr:hover {
    background: rgba(148, 163, 184, 0.1) !important;
}

.admin-v2-page .fixed.inset-0.bg-black.bg-opacity-50 {
    background: rgba(2, 6, 23, 0.74) !important;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.admin-v2-page [x-show="loading"] .glass-card,
.admin-v2-page .loading-spinner {
    filter: saturate(1.08);
}

.admin-v2-page .relative.z-10.max-w-7xl > * {
    animation: adminV2FadeUp 0.42s ease both;
}

.admin-v2-page .relative.z-10.max-w-7xl > *:nth-child(2) {
    animation-delay: 0.06s;
}

.admin-v2-page .relative.z-10.max-w-7xl > *:nth-child(3) {
    animation-delay: 0.12s;
}

.admin-v2-page .relative.z-10.max-w-7xl > *:nth-child(4) {
    animation-delay: 0.18s;
}

@keyframes adminV2FadeUp {
    from {
        opacity: 0;
        transform: translateY(16px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 1024px) {
    .admin-v2-page::before,
    .admin-v2-page::after {
        opacity: 0.65;
        transform: scale(0.9);
    }

    .admin-v2-page nav .glass-card {
        border-radius: 1rem;
    }
}

@media (max-width: 768px) {
    .admin-v2-page .glass-card {
        border-radius: 1rem;
    }

    .admin-v2-page > .absolute.inset-0.overflow-hidden {
        background:
            radial-gradient(circle at 14% 10%, rgba(56, 189, 248, 0.14), transparent 34%),
            linear-gradient(160deg, #071528 0%, #0a1e37 54%, #12365e 100%);
    }

    .admin-v2-page .relative.z-10.max-w-7xl > * {
        animation-duration: 0.32s;
    }
}

/* 后台业务页逐页精修 V3 */
.admin-v2-page {
    --v3-border-soft: rgba(125, 211, 252, 0.28);
    --v3-border-strong: rgba(56, 189, 248, 0.42);
    --v3-panel-bg: linear-gradient(150deg, rgba(10, 26, 46, 0.9), rgba(8, 19, 36, 0.8));
    --v3-soft-bg: rgba(148, 163, 184, 0.14);
    --v3-soft-bg-hover: rgba(148, 163, 184, 0.24);
}

.admin-v2-page .admin-v2-nav-shell {
    border-color: var(--v3-border-soft);
    border-radius: 18px;
    background: linear-gradient(145deg, rgba(10, 28, 51, 0.92), rgba(8, 22, 44, 0.82));
    padding: 0.85rem 1rem;
}

.admin-v2-page .admin-v2-nav .w-10.h-10 {
    border-radius: 12px !important;
    border: 1px solid rgba(148, 163, 184, 0.34);
    background: rgba(148, 163, 184, 0.14) !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.admin-v2-page .admin-v2-nav .w-10.h-10:hover {
    background: rgba(148, 163, 184, 0.25) !important;
    border-color: var(--v3-border-strong);
}

.admin-v2-page .admin-v2-nav .space-x-3 > button {
    min-height: 2.45rem;
    border-radius: 12px;
    font-weight: 600;
    letter-spacing: 0.01em;
}

.admin-v2-page .admin-v2-nav .space-x-3 > button.bg-white.bg-opacity-20 {
    background: var(--v3-soft-bg) !important;
    border: 1px solid var(--v3-border-soft);
}

.admin-v2-page .admin-v2-nav .space-x-3 > button.bg-white.bg-opacity-20:hover {
    background: var(--v3-soft-bg-hover) !important;
    border-color: var(--v3-border-strong);
}

.admin-v2-page .admin-v2-nav .space-x-3 > button.bg-primary-500 {
    background: linear-gradient(130deg, #0ea5e9 0%, #2563eb 100%) !important;
    border: 1px solid rgba(125, 211, 252, 0.46);
}

.admin-v2-page .relative.z-10.max-w-7xl {
    max-width: 1200px;
}

.admin-v2-page .glass-card.p-8.rounded-3xl.mb-8,
.admin-v2-page .glass-card.p-6.rounded-2xl.mb-8,
.admin-v2-page .glass-card.p-6.rounded-2xl.mb-6,
.admin-v2-page .glass-card.p-6.rounded-2xl.mt-8 {
    border-color: rgba(148, 163, 184, 0.28);
    background: var(--v3-panel-bg);
}

.admin-v2-page .glass-card .text-3xl.font-bold,
.admin-v2-page .glass-card .text-2xl.font-bold {
    letter-spacing: 0.01em;
}

.admin-v2-page .glass-card > h3.text-xl.font-bold.text-white.mb-6,
.admin-v2-page .glass-card > h3.text-lg.font-bold.text-white.mb-4 {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    letter-spacing: 0.01em;
}

.admin-v2-page .glass-card > h3.text-xl.font-bold.text-white.mb-6::before,
.admin-v2-page .glass-card > h3.text-lg.font-bold.text-white.mb-4::before {
    content: '';
    width: 8px;
    height: 8px;
    border-radius: 9999px;
    background: linear-gradient(130deg, #38bdf8, #22d3ee);
    box-shadow: 0 0 0 5px rgba(56, 189, 248, 0.2);
}

.admin-v2-page .glass-card .grid button.p-4.bg-white.bg-opacity-10.rounded-xl {
    border: 1px solid rgba(148, 163, 184, 0.3);
    background: rgba(15, 23, 42, 0.38) !important;
}

.admin-v2-page .glass-card .grid button.p-4.bg-white.bg-opacity-10.rounded-xl:hover {
    border-color: var(--v3-border-strong);
    background: rgba(30, 41, 59, 0.48) !important;
}

.admin-v2-page .glass-card .grid button.p-4 .text-2xl {
    filter: saturate(0.92);
}

.permission-admins-page .space-y-4 > div.p-4.bg-white.bg-opacity-10.rounded-xl,
.permission-members-page .space-y-4 > div.p-4.bg-white.bg-opacity-10.rounded-xl {
    border: 1px solid rgba(148, 163, 184, 0.26);
    background: rgba(15, 23, 42, 0.34) !important;
}

.permission-admins-page .space-y-4 > div.p-4.bg-white.bg-opacity-10.rounded-xl:hover,
.permission-members-page .space-y-4 > div.p-4.bg-white.bg-opacity-10.rounded-xl:hover {
    border-color: var(--v3-border-strong);
    background: rgba(30, 41, 59, 0.4) !important;
}

.permission-admins-page input[type="text"],
.permission-members-page input[type="text"],
.permission-templates-page input[type="text"],
.permission-user-page input[type="text"],
.guild-member-manage-page input[type="text"] {
    min-height: 2.5rem;
}

.guild-show-page .cursor-pointer.glass-card.p-6.rounded-2xl,
.permission-index-page .cursor-pointer.glass-card.p-6.rounded-2xl {
    border-color: rgba(148, 163, 184, 0.28);
    background: linear-gradient(150deg, rgba(12, 28, 49, 0.86), rgba(8, 19, 34, 0.74));
}

.guild-show-page .cursor-pointer.glass-card.p-6.rounded-2xl:hover,
.permission-index-page .cursor-pointer.glass-card.p-6.rounded-2xl:hover {
    border-color: var(--v3-border-strong);
}

.guild-points-mall-page .grid .glass-card.p-6.rounded-2xl,
.guild-index-page .grid .glass-card.p-6.rounded-2xl,
.guild-info-page .grid .glass-card.p-6.rounded-2xl {
    border-color: rgba(148, 163, 184, 0.26);
}

.guild-lottery-page table thead th,
.guild-lottery-page table tbody td {
    border-color: rgba(148, 163, 184, 0.2) !important;
}

.guild-lottery-page table tbody tr:hover {
    background: rgba(148, 163, 184, 0.12) !important;
}

.admin-v2-page .fixed.inset-0 .glass-card.max-w-md,
.admin-v2-page .fixed.inset-0 .glass-card.max-w-lg,
.admin-v2-page .fixed.inset-0 .glass-card.max-w-2xl,
.admin-v2-page .fixed.inset-0 .glass-card.max-w-4xl,
.admin-v2-page .fixed.inset-0 .glass-card.max-w-5xl {
    border-color: rgba(125, 211, 252, 0.34);
    box-shadow:
        0 24px 60px rgba(2, 8, 20, 0.52),
        inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.admin-v2-page .text-center.py-12 .w-16.h-16,
.admin-v2-page .text-center.py-12 .w-20.h-20 {
    border: 1px solid rgba(148, 163, 184, 0.3);
}

.admin-v2-page .group .text-2xl,
.admin-v2-page .group .text-xl {
    filter: contrast(0.98) saturate(0.9);
}

.permission-admins-page .relative > input.w-64,
.permission-members-page .relative > input.w-64 {
    width: min(100%, 16rem);
}

.guild-points-mall-page > .relative.z-10 {
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.guild-points-mall-page .glass-card.p-6.rounded-2xl .grid button.p-4,
.guild-show-page .glass-card.p-6.rounded-2xl .grid button.p-4,
.permission-admins-page .glass-card.p-6.rounded-2xl .grid button.p-4,
.permission-members-page .glass-card.p-6.rounded-2xl .grid button.p-4 {
    min-height: 5.6rem;
}

@media (max-width: 1024px) {
    .admin-v2-page .admin-v2-nav-shell {
        padding: 0.75rem 0.85rem;
    }

    .admin-v2-page .admin-v2-nav .space-x-3 > button {
        min-height: 2.3rem;
    }
}

@media (max-width: 768px) {
    .admin-v2-page .admin-v2-nav-shell {
        border-radius: 14px;
    }

    .admin-v2-page .admin-v2-nav .space-x-3 > button {
        padding-left: 0.75rem;
        padding-right: 0.75rem;
        font-size: 0.82rem;
    }

    .guild-points-mall-page > .relative.z-10 {
        max-width: 100%;
    }
}

@media (max-width: 640px) {
    .permission-admins-page .relative > input.w-64,
    .permission-members-page .relative > input.w-64 {
        width: 100%;
    }
}

/* 抽奖页专属精修 */
.guild-lottery-page .relative.z-10.max-w-7xl.mx-auto {
    max-width: 1240px;
}

.guild-lottery-page .lottery-hero {
    border-color: rgba(236, 72, 153, 0.24);
    background:
        radial-gradient(circle at 100% -8%, rgba(244, 114, 182, 0.14), transparent 35%),
        radial-gradient(circle at 0% 100%, rgba(14, 165, 233, 0.12), transparent 38%),
        linear-gradient(155deg, rgba(15, 27, 49, 0.92), rgba(9, 18, 34, 0.82));
}

.guild-lottery-page .lottery-hero-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.guild-lottery-page .lottery-guild-info {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.guild-lottery-page .lottery-guild-avatar {
    width: 68px;
    height: 68px;
    border-radius: 18px;
    overflow: hidden;
    border: 2px solid rgba(148, 163, 184, 0.35);
    box-shadow: 0 12px 28px rgba(2, 8, 20, 0.36);
    flex-shrink: 0;
}

.guild-lottery-page .lottery-eyebrow {
    font-size: 0.75rem;
    color: rgba(244, 114, 182, 0.86);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-weight: 700;
}

.guild-lottery-page .lottery-tab-wrap {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.35rem;
    border-radius: 14px;
    border: 1px solid rgba(148, 163, 184, 0.3);
    background: rgba(15, 23, 42, 0.38);
    flex-shrink: 0;
}

.guild-lottery-page .lottery-tab-btn {
    border-radius: 10px;
    padding: 0.58rem 1rem;
    font-size: 0.9rem;
    line-height: 1;
    font-weight: 600;
    transition: all 0.22s ease;
}

.guild-lottery-page .lottery-tab-active {
    color: #fdf2f8;
    border: 1px solid rgba(244, 114, 182, 0.5);
    background: linear-gradient(125deg, #ec4899 0%, #db2777 100%);
    box-shadow: 0 10px 24px rgba(190, 24, 93, 0.34);
}

.guild-lottery-page .lottery-tab-idle {
    color: rgba(226, 232, 240, 0.86);
    border: 1px solid transparent;
    background: rgba(148, 163, 184, 0.12);
}

.guild-lottery-page .lottery-tab-idle:hover {
    color: #f8fafc;
    border-color: rgba(148, 163, 184, 0.4);
    background: rgba(148, 163, 184, 0.22);
}

.guild-lottery-page .lottery-kpis {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.8rem;
}

.guild-lottery-page .lottery-kpi {
    border-radius: 14px;
    border: 1px solid rgba(148, 163, 184, 0.28);
    background: rgba(15, 23, 42, 0.36);
    padding: 0.9rem 1rem;
}

.guild-lottery-page .lottery-kpi-label {
    font-size: 0.78rem;
    color: rgba(191, 219, 254, 0.82);
}

.guild-lottery-page .lottery-kpi-value {
    margin-top: 0.28rem;
    font-size: 1.42rem;
    line-height: 1.2;
    font-weight: 700;
    color: #f8fafc;
}

.guild-lottery-page .lottery-list-panel,
.guild-lottery-page .lottery-detail-panel {
    border-color: rgba(148, 163, 184, 0.28);
    background: linear-gradient(150deg, rgba(12, 27, 47, 0.9), rgba(9, 19, 36, 0.8));
}

.guild-lottery-page .lottery-panel-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1rem;
}

.guild-lottery-page .lottery-search-wrap {
    width: min(100%, 340px);
}

.guild-lottery-page .lottery-search-input,
.guild-lottery-page .lottery-record-search input,
.guild-lottery-page .lottery-record-filter select {
    background: rgba(15, 23, 42, 0.5);
    border: 1px solid rgba(148, 163, 184, 0.34);
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.guild-lottery-page .lottery-search-input:focus,
.guild-lottery-page .lottery-record-search input:focus,
.guild-lottery-page .lottery-record-filter select:focus {
    outline: none;
    border-color: rgba(236, 72, 153, 0.65);
    box-shadow: 0 0 0 3px rgba(236, 72, 153, 0.2);
    background: rgba(15, 23, 42, 0.66);
}

.guild-lottery-page .lottery-record-filter select option {
    color: #0f172a;
}

.guild-lottery-page .lottery-item {
    display: flex;
    align-items: stretch;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.15rem;
    border-radius: 16px;
    border: 1px solid rgba(148, 163, 184, 0.3);
    background: rgba(15, 23, 42, 0.35);
    cursor: pointer;
    transition: all 0.22s ease;
}

.guild-lottery-page .lottery-item:hover {
    border-color: rgba(236, 72, 153, 0.42);
    background: rgba(30, 41, 59, 0.48);
    transform: translateY(-1px);
}

.guild-lottery-page .lottery-item-main {
    min-width: 0;
    flex: 1;
}

.guild-lottery-page .lottery-item-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.guild-lottery-page .lottery-badge {
    border-radius: 9999px;
    padding: 0.24rem 0.62rem;
}

.guild-lottery-page .lottery-type-badge {
    background: linear-gradient(130deg, #ec4899 0%, #be185d 100%);
    border: 1px solid rgba(244, 114, 182, 0.45);
}

.guild-lottery-page .lottery-item-meta {
    margin-top: 0.85rem;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.65rem;
}

.guild-lottery-page .lottery-item-meta > div {
    border: 1px solid rgba(148, 163, 184, 0.24);
    background: rgba(15, 23, 42, 0.28);
    border-radius: 12px;
    padding: 0.55rem 0.62rem;
}

.guild-lottery-page .lottery-item-meta span {
    display: block;
    font-size: 0.72rem;
    color: rgba(191, 219, 254, 0.78);
}

.guild-lottery-page .lottery-item-meta strong {
    display: block;
    margin-top: 0.2rem;
    font-size: 0.86rem;
    color: #f8fafc;
    font-weight: 600;
}

.guild-lottery-page .lottery-item-actions {
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
    justify-content: center;
}

.guild-lottery-page .lottery-detail-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.guild-lottery-page .lottery-detail-kpis {
    margin-top: 1.25rem;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.8rem;
}

.guild-lottery-page .lottery-record-filter {
    margin-top: 1.2rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.9rem;
    flex-wrap: wrap;
}

.guild-lottery-page .lottery-record-search {
    width: min(100%, 320px);
}

.guild-lottery-page .lottery-table-wrap {
    border: 1px solid rgba(148, 163, 184, 0.24);
    border-radius: 16px;
    background: rgba(15, 23, 42, 0.3);
    overflow: hidden;
}

.guild-lottery-page .lottery-table-wrap thead {
    background: rgba(148, 163, 184, 0.18);
}

.guild-lottery-page .lottery-table-wrap tbody tr {
    border-top: 1px solid rgba(148, 163, 184, 0.2);
}

.guild-lottery-page .lottery-table-wrap tbody tr:hover {
    background: rgba(148, 163, 184, 0.1);
}

.guild-lottery-page .lottery-empty-state {
    border: 1px dashed rgba(148, 163, 184, 0.3);
    border-radius: 16px;
    background: rgba(15, 23, 42, 0.24);
}

@media (max-width: 1024px) {
    .guild-lottery-page .lottery-kpis {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .guild-lottery-page .lottery-item-meta {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 768px) {
    .guild-lottery-page .lottery-hero-top,
    .guild-lottery-page .lottery-panel-head,
    .guild-lottery-page .lottery-detail-head {
        flex-direction: column;
        align-items: flex-start;
    }

    .guild-lottery-page .lottery-tab-wrap,
    .guild-lottery-page .lottery-search-wrap,
    .guild-lottery-page .lottery-record-search {
        width: 100%;
    }

    .guild-lottery-page .lottery-item {
        flex-direction: column;
    }

    .guild-lottery-page .lottery-item-actions {
        width: 100%;
        flex-direction: row;
    }

    .guild-lottery-page .lottery-item-actions button {
        flex: 1;
    }
}

@media (max-width: 640px) {
    .guild-lottery-page .lottery-kpis,
    .guild-lottery-page .lottery-detail-kpis,
    .guild-lottery-page .lottery-item-meta {
        grid-template-columns: minmax(0, 1fr);
    }
}
