@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;700;900&family=Rajdhani:wght@500;700&family=Noto+Sans+SC:wght@300;400;500;700&family=JetBrains+Mono:wght@400;500;700&display=swap');

        :root {
            --primary: #00f3ff;
            --secondary: #bc13fe;
            --gold: #ffd700;
            --bg: #050505;
            --glass: rgba(16, 16, 20, 0.85);
            --glass-border: rgba(255, 255, 255, 0.1);
            --sidebar-width: 260px;
        }

        * { margin: 0; padding: 0; box-sizing: border-box; }
        
        body {
            background-color: var(--bg);
            color: #e0e0e0;
            font-family: 'Noto Sans SC', sans-serif;
            overflow-x: hidden;
            min-height: 100vh;
            display: flex;
            flex-direction: column;
        }

        body.modal-open { overflow: hidden; padding-right: 17px; }

        /* === 背景特效 === */
        .scanline-moving {
            position: fixed; top: 0; left: 0; width: 100%; height: 100%;
            background: linear-gradient(to bottom, transparent 50%, rgba(0, 243, 255, 0.02) 51%, transparent 51%);
            background-size: 100% 4px;
            animation: scan-move 10s linear infinite;
            pointer-events: none; z-index: 0;
        }
        .scan-beam {
            position: fixed; top: -10%; left: 0; width: 100%; height: 20px;
            background: rgba(0, 243, 255, 0.15);
            box-shadow: 0 0 10px rgba(0, 243, 255, 0.2);
            filter: blur(5px);
            animation: beam-drop 8s linear infinite;
            pointer-events: none; z-index: 0;
        }

        .cyber-grid {
            position: fixed; bottom: -20%; left: -50%; width: 200%; height: 60%;
            background: 
                linear-gradient(transparent 0%, rgba(0, 243, 255, 0.1) 1px, transparent 2px),
                linear-gradient(90deg, transparent 0%, rgba(0, 243, 255, 0.1) 1px, transparent 2px);
            background-size: 60px 60px;
            transform: perspective(500px) rotateX(60deg);
            animation: grid-move 20s linear infinite;
            z-index: -2;
            mask-image: linear-gradient(to bottom, transparent, black 40%);
            -webkit-mask-image: linear-gradient(to bottom, transparent, black 40%);
        }

        @keyframes scan-move { 0% { background-position: 0 0; } 100% { background-position: 0 100%; } }
        @keyframes beam-drop { 0% { top: -10%; opacity: 0; } 20% { opacity: 1; } 100% { top: 110%; opacity: 0; } }
        @keyframes grid-move { 0% { background-position: 0 0; } 100% { background-position: 0 60px; } }

        #canvas { position: fixed; top: 0; left: 0; width: 100%; height: 100%; z-index: -1; }
        .scanlines {
            position: fixed; top: 0; left: 0; width: 100%; height: 100%;
            background: linear-gradient(to bottom, rgba(255,255,255,0), rgba(255,255,255,0) 50%, rgba(0,0,0,0.1) 50%, rgba(0,0,0,0.1));
            background-size: 100% 4px; pointer-events: none; z-index: 0; opacity: 0.6;
        }

        /* === 左右侧边栏 === */
        .sidebar {
            position: fixed; top: 0; bottom: 0; width: var(--sidebar-width);
            background: rgba(5, 5, 5, 0.6); backdrop-filter: blur(15px);
            border-left: 1px solid var(--glass-border); border-right: 1px solid var(--glass-border);
            z-index: 100; padding: 30px 20px; display: flex; flex-direction: column; gap: 15px;
            transition: transform 0.3s ease;
        }
        .sidebar-left { left: 0; border-right: 1px solid var(--glass-border); border-left: none; }
        .sidebar-right { right: 0; border-left: 1px solid var(--glass-border); border-right: none; }
        
        .sidebar-title {
            font-family: 'Orbitron'; color: var(--primary); font-size: 1.1em;
            margin-bottom: 10px; text-transform: uppercase; letter-spacing: 2px;
            border-bottom: 2px solid var(--primary); padding-bottom: 10px;
        }

        .tool-item {
            display: flex; align-items: center; gap: 12px; padding: 12px 15px;
            background: rgba(255,255,255,0.03); border: 1px solid transparent; border-radius: 8px;
            color: #aaa; text-decoration: none; transition: 0.3s;
            font-family: 'Rajdhani', sans-serif; font-weight: 600; font-size: 1.05em; cursor: pointer;
        }
        .tool-item:hover {
            background: rgba(0, 243, 255, 0.1); border-color: var(--primary);
            color: #fff; transform: translateX(5px);
        }
        .tool-item i { width: 20px; text-align: center; color: var(--primary); }

        .tool-item.warning-item {
            color: var(--gold);
            border: 1px solid rgba(255, 215, 0, 0.3);
            background: rgba(255, 215, 0, 0.05);
        }
        .tool-item.warning-item:hover {
            background: rgba(255, 215, 0, 0.15);
            border-color: var(--gold);
            color: var(--gold);
        }
        .tool-item.warning-item i {
            color: var(--gold);
        }

        /* === 主内容区域 === */
        .main-content {
            margin: 0 var(--sidebar-width); padding: 40px;
            display: flex; flex-direction: column; align-items: center;
            min-height: 100vh; z-index: 10;
        }

        header { text-align: center; margin-bottom: 40px; position: relative; width: 100%; max-width: 800px; }
        
        .logo-text {
            font-family: 'Orbitron', sans-serif; font-size: 3.5rem; font-weight: 900;
            background: linear-gradient(to right, #fff, #aaa); -webkit-background-clip: text; color: transparent;
            text-shadow: 0 0 30px rgba(255,255,255,0.3); margin-bottom: 5px;
        }
        .sub-logo {
            color: var(--primary); font-family: 'Rajdhani'; letter-spacing: 5px;
            font-size: 1.2rem; text-shadow: 0 0 10px var(--primary);
        }

        /* 音乐播放器 */
        .music-player-bar {
            background: rgba(0, 0, 0, 0.6); border: 1px solid var(--secondary);
            border-radius: 50px; padding: 8px 30px; display: flex; align-items: center; gap: 20px;
            margin: 25px auto 0; box-shadow: 0 0 20px rgba(188, 19, 254, 0.2);
            backdrop-filter: blur(10px); width: fit-content;
        }
        .music-visualizer { display: flex; gap: 3px; align-items: flex-end; height: 15px; }
        .bar { width: 3px; background: var(--secondary); animation: bounce 1s infinite ease-in-out; }
        .bar:nth-child(1) { animation-duration: 0.8s; height: 8px; }
        .bar:nth-child(2) { animation-duration: 1.2s; height: 12px; }
        .bar:nth-child(3) { animation-duration: 0.5s; height: 6px; }
        .bar:nth-child(4) { animation-duration: 1.0s; height: 14px; }
        .music-paused .bar { animation: none; height: 2px; }
        @keyframes bounce { 0%, 100% { height: 4px; } 50% { height: 15px; } }

        .player-controls button {
            background: none; border: none; color: white; font-size: 1rem;
            cursor: pointer; margin: 0 5px; transition: 0.3s;
        }
        .player-controls button:hover { color: var(--secondary); transform: scale(1.2); }
        .track-info { font-family: 'Rajdhani'; color: var(--secondary); font-weight: bold; min-width: 120px; text-align: center; font-size: 0.9em;}

        /* === 布局矩阵 === */
        .hero-grid {
            display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px;
            width: 100%; max-width: 1200px; margin-bottom: 25px;
        }
        .resource-grid {
            display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px;
            width: 100%; max-width: 1200px;
        }

        .holo-card {
            background: var(--glass); border: 1px solid var(--glass-border);
            border-radius: 12px; padding: 25px; position: relative; overflow: hidden;
            transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
            cursor: pointer; display: flex; flex-direction: column; justify-content: center;
        }

        .hero-card { min-height: 160px; align-items: flex-start; text-align: left; }
        .hero-card h2 { font-size: 1.1rem; color: #fff; margin: 10px 0 8px; font-family: 'Orbitron'; }
        .hero-card p { color: #aaa; font-size: 0.8rem; line-height: 1.5; }
        .hero-card i.main-icon { font-size: 1.8rem; color: var(--primary); }
        .hero-card .bg-icon {
            position: absolute; right: -15px; bottom: -15px; font-size: 5rem;
            opacity: 0.05; transform: rotate(-15deg); transition: 0.4s;
        }
        .hero-card:hover { transform: translateY(-5px); border-color: var(--primary); box-shadow: 0 10px 40px rgba(0, 243, 255, 0.15); }
        .hero-card:hover .bg-icon { opacity: 0.1; transform: rotate(0) scale(1.1); }

        .mini-card { text-align: center; align-items: center; padding: 25px 15px; }
        .mini-card i { font-size: 2rem; margin-bottom: 15px; color: #ccc; transition: 0.3s; }
        .mini-card h3 { font-size: 1.1rem; color: #eee; font-family: 'Rajdhani'; }
        .mini-card:hover { border-color: var(--secondary); background: rgba(188, 19, 254, 0.05); }
        .mini-card:hover i { color: var(--secondary); transform: scale(1.2); }

        .tag {
            position: absolute; top: 15px; right: 15px; padding: 4px 10px;
            border-radius: 4px; font-size: 0.7rem; font-weight: bold; font-family: 'Orbitron';
        }
        .tag-hot { background: rgba(255, 0, 100, 0.2); color: #ff0064; border: 1px solid #ff0064; }
        .tag-new { background: rgba(0, 243, 255, 0.2); color: var(--primary); border: 1px solid var(--primary); }
        .tag-vip { 
            background: linear-gradient(135deg, rgba(255, 215, 0, 0.3), rgba(255, 140, 0, 0.3)); 
            color: #ffd700; 
            border: 1px solid #ffd700;
            animation: vip-glow 2s ease-in-out infinite;
        }
        @keyframes vip-glow {
            0%, 100% { box-shadow: 0 0 5px rgba(255, 215, 0, 0.3); }
            50% { box-shadow: 0 0 15px rgba(255, 215, 0, 0.6); }
        }
        .vip-card {
            border-color: rgba(255, 215, 0, 0.5) !important;
            background: linear-gradient(145deg, rgba(255, 215, 0, 0.08), rgba(0, 0, 0, 0.4)) !important;
            position: relative;
            overflow: hidden;
            animation: vip-glow 2s ease-in-out infinite;
        }
        .vip-card::before {
            content: '';
            position: absolute;
            top: -50%;
            left: -50%;
            width: 200%;
            height: 200%;
            background: linear-gradient(45deg, transparent, rgba(255, 215, 0, 0.1), transparent);
            transform: rotate(45deg);
            animation: vip-shine 3s ease-in-out infinite;
        }
        .vip-card:hover {
            border-color: var(--gold) !important;
            box-shadow: 0 0 40px rgba(255, 215, 0, 0.4) !important;
            transform: translateY(-8px) !important;
        }
        .vip-card .tag-vip {
            background: linear-gradient(135deg, #ffd700, #ff8c00);
            color: #000;
            animation: tag-pulse 1.5s ease-in-out infinite;
        }
        @keyframes vip-glow {
            0%, 100% { box-shadow: 0 0 15px rgba(255, 215, 0, 0.2); }
            50% { box-shadow: 0 0 25px rgba(255, 215, 0, 0.35); }
        }
        @keyframes vip-shine {
            0% { transform: rotate(45deg) translateX(-100%); }
            50%, 100% { transform: rotate(45deg) translateX(100%); }
        }
        @keyframes tag-pulse {
            0%, 100% { transform: scale(1); }
            50% { transform: scale(1.05); }
        }

        /* 美化弹窗 */
        .custom-modal-overlay {
            display: none;
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: rgba(0, 0, 0, 0.85);
            backdrop-filter: blur(10px);
            z-index: 9999;
            justify-content: center;
            align-items: center;
            animation: customFadeIn 0.3s ease;
        }
        .custom-modal-overlay.show { display: flex; }
        @keyframes customFadeIn { from { opacity: 0; } to { opacity: 1; } }
        .custom-modal-box {
            background: linear-gradient(180deg, rgba(16, 16, 20, 0.98), rgba(10, 10, 15, 0.98));
            border: 1px solid rgba(0, 243, 255, 0.3);
            border-radius: 20px;
            padding: 40px;
            max-width: 420px;
            width: 90%;
            text-align: center;
            position: relative;
            box-shadow: 0 25px 80px rgba(0, 243, 255, 0.15);
            animation: customSlideUp 0.3s ease;
        }
        @keyframes customSlideUp { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: translateY(0); } }
        .custom-modal-box::before {
            content: '';
            position: absolute;
            top: -1px;
            left: 50%;
            transform: translateX(-50%);
            width: 100px;
            height: 3px;
            background: linear-gradient(90deg, var(--primary), var(--secondary));
            border-radius: 3px;
        }
        .custom-modal-icon {
            width: 70px;
            height: 70px;
            background: linear-gradient(135deg, var(--primary), var(--secondary));
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            margin: 0 auto 25px;
            font-size: 28px;
            color: #fff;
            box-shadow: 0 10px 30px rgba(0, 243, 255, 0.3);
        }
        .custom-modal-title {
            font-size: 22px;
            font-weight: 700;
            color: #fff;
            margin-bottom: 15px;
            font-family: 'Orbitron', sans-serif;
        }
        .custom-modal-text {
            color: #aaa;
            font-size: 15px;
            line-height: 1.8;
            margin-bottom: 25px;
        }
        .custom-modal-text strong { color: var(--primary); }
        .custom-modal-btn {
            background: linear-gradient(135deg, var(--primary), var(--secondary));
            color: #fff;
            border: none;
            padding: 14px 40px;
            border-radius: 30px;
            font-size: 15px;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.3s;
            box-shadow: 0 5px 20px rgba(0, 243, 255, 0.3);
        }
        .custom-modal-btn:hover {
            transform: translateY(-2px);
            box-shadow: 0 8px 30px rgba(0, 243, 255, 0.4);
        }
        .custom-modal-close {
            position: absolute;
            top: 15px;
            right: 20px;
            font-size: 24px;
            color: #666;
            cursor: pointer;
            transition: color 0.3s;
        }
        .custom-modal-close:hover { color: #fff; }
        
        /* 系统警告条 */
        .system-warning-bar {
            width: 100%; max-width: 1200px;
            background: linear-gradient(90deg, rgba(188, 19, 254, 0.1), rgba(0, 0, 0, 0.6), rgba(188, 19, 254, 0.1));
            border: 1px solid rgba(255, 215, 0, 0.3);
            color: #ddd;
            padding: 12px 20px;
            margin-bottom: 25px;
            border-radius: 8px;
            display: flex; align-items: center; justify-content: center; gap: 12px;
            cursor: pointer;
            transition: 0.3s;
            font-size: 0.95rem;
            backdrop-filter: blur(5px);
            animation: pulse-border 3s infinite;
        }
        .system-warning-bar:hover {
            background: rgba(255, 215, 0, 0.1);
            border-color: var(--gold);
            transform: scale(1.01);
            box-shadow: 0 0 20px rgba(255, 215, 0, 0.15);
        }
        .system-warning-bar i { color: var(--gold); font-size: 1.1em; }
        .highlight-text { color: var(--gold); font-weight: bold; text-decoration: underline; margin-left: 5px; }

        @keyframes pulse-border {
            0% { border-color: rgba(255, 215, 0, 0.3); }
            50% { border-color: rgba(255, 215, 0, 0.7); box-shadow: 0 0 10px rgba(255, 215, 0, 0.2); }
            100% { border-color: rgba(255, 215, 0, 0.3); }
        }

        /* === 弹窗样式 === */
        .modal-overlay {
            position: fixed; inset: 0; background: rgba(0,0,0,0.9); z-index: 2000;
            display: flex; justify-content: center; align-items: center;
            opacity: 0; 
            visibility: hidden; 
            pointer-events: none;
            transition: opacity 0.3s ease, visibility 0.3s ease;
            overflow-y: auto;
            padding: 20px 0;
        }

        .modal-overlay.visible { 
            opacity: 1; 
            visibility: visible; 
            pointer-events: auto;
        }

        .modal-content {
            background: #0f0f13; border: 1px solid var(--primary);
            box-shadow: 0 0 50px rgba(0, 243, 255, 0.15); border-radius: 16px;
            padding: 40px; width: 95%; max-width: 1280px; max-height: 85vh;
            overflow-y: auto; position: relative;
            transform: scale(0.95); transition: transform 0.3s ease;
        }
        .modal-overlay.visible .modal-content { transform: scale(1); }

        .modal-close { position: absolute; top: 20px; right: 25px; font-size: 28px; cursor: pointer; color: #666; transition:0.3s;}
        .modal-close:hover { color: #fff; transform: rotate(90deg); }
        
        .modal-section-title {
            color: var(--primary); font-size: 1.2em; border-left: 4px solid var(--secondary);
            padding-left: 15px; margin: 30px 0 15px; font-weight: bold; text-transform: uppercase;
        }

        .modal-network-tip {
            background: rgba(255, 215, 0, 0.1);
            border: 1px solid rgba(255, 215, 0, 0.3);
            border-radius: 8px;
            padding: 12px 15px;
            margin-bottom: 20px;
            display: flex;
            align-items: center;
            gap: 10px;
            font-size: 0.9em;
            color: #ccc;
        }
        .modal-network-tip i {
            color: var(--gold);
            font-size: 1.1em;
        }
        .modal-network-tip a {
            color: var(--primary);
            text-decoration: none;
            font-weight: 600;
        }
        .modal-network-tip a:hover {
            text-decoration: underline;
        }
        
        /* 核心业务金边标题 */
        .modal-section-title.gold-title {
            color: var(--gold); border-color: var(--gold);
            text-shadow: 0 0 10px rgba(255, 215, 0, 0.2);
        }

        .modal-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
            gap: 20px;
            margin-bottom: 25px;
        }

        .link-card {
            background: rgba(255,255,255,0.04); padding: 20px; border-radius: 10px;
            text-align: left; text-decoration: none; color: #ccc; border: 1px solid transparent;
            transition: 0.3s; display: flex; align-items: center; gap: 18px;
            min-height: 100px;
        }
        .link-card:hover { background: rgba(0, 243, 255, 0.1); color: #fff; border-color: var(--primary); transform: translateX(5px); }
        .link-card i, .link-card img { flex-shrink: 0; width: 40px; font-size: 28px; object-fit: contain; text-align: center; color: var(--primary); }
        .link-card div { flex: 1; min-width: 0; }
        .link-card h3 { font-size: 1.05rem; margin: 0 0 6px 0; font-weight: 500; font-family: 'Rajdhani'; }
        .link-card p { font-size: 0.85rem; color: #ccc; line-height: 1.6; margin: 4px 0 0 0; font-weight: 400; }
        
        .card-highlight { border: 1px solid var(--secondary); background: rgba(188, 19, 254, 0.05); }

        /* 核心业务金卡样式 */
        .link-card.gold-card {
            background: linear-gradient(145deg, rgba(255, 215, 0, 0.1), rgba(0, 0, 0, 0.6));
            border: 1px solid rgba(255, 215, 0, 0.5);
            box-shadow: 0 0 15px rgba(255, 215, 0, 0.1);
        }
        .link-card.gold-card:hover {
            transform: translateY(-3px);
            box-shadow: 0 0 25px rgba(255, 215, 0, 0.25);
            border-color: #ffd700;
        }
        .link-card.gold-card h3 { color: #ffd700; font-weight: bold; }
        .link-card.gold-card i { color: #ffd700; text-shadow: 0 0 10px rgba(255, 215, 0, 0.5); }
        .link-card.gold-card p { color: #e0e0e0; }

        /* VPS 分隔区 */
        .vps-divider {
            border-top: 1px dashed #333; margin: 30px 0 20px;
            position: relative; text-align: center;
        }
        .vps-divider span {
            background: #0f0f13; padding: 0 15px; position: relative; top: -12px;
            color: #666; font-family: 'Orbitron'; font-size: 0.9em;
        }

        /* 响应式 */
        @media (max-width: 1200px) {
            .sidebar { width: 70px; padding: 20px 5px; }
            .sidebar .tool-item { justify-content: center; } 
            .sidebar .tool-item span { display: none; }
            .sidebar-title { display: none; }
            .main-content { margin: 0 70px; }
        }
        @media (max-width: 768px) {
            .sidebar { display: none; }
            .main-content { margin: 0; padding: 20px; }
            .hero-grid { grid-template-columns: 1fr; }
            .resource-grid { grid-template-columns: 1fr 1fr; }
            .logo-text { font-size: 2.2rem; }
            .modal-content { padding: 20px; }
            .system-warning-bar { font-size: 0.85rem; padding: 10px; text-align: left; }
            
            /* 移动端强制单列，防止挤压 */
            .modal-grid { grid-template-columns: 1fr; }
            
            /* 移动端导航按钮 */
            .mobile-nav-btns { display: flex !important; }
            
            /* 移动端抽屉菜单始终保持 display:flex（由 visibility 控制显示） */
        }
        
        /* 移动端导航按钮 */
        .mobile-nav-btns {
            display: none;
            position: fixed;
            bottom: 20px;
            left: 50%;
            transform: translateX(-50%);
            z-index: 10000;
            gap: 15px;
        }
        .mobile-nav-btn {
            width: 50px;
            height: 50px;
            border-radius: 50%;
            background: rgba(0, 243, 255, 0.15);
            border: 1px solid var(--primary);
            color: var(--primary);
            font-size: 1.2em;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            backdrop-filter: blur(10px);
            transition: all 0.3s;
            box-shadow: 0 0 15px rgba(0, 243, 255, 0.3);
            pointer-events: auto;
        }
        .mobile-nav-btn:active {
            background: rgba(0, 243, 255, 0.3);
            transform: scale(0.95);
        }
        
        /* 移动端抽屉菜单 */
        .mobile-drawer {
            display: flex;
            flex-direction: column;
            position: fixed;
            top: 0;
            bottom: 0;
            width: 280px;
            background: rgba(10, 10, 15, 0.98);
            backdrop-filter: blur(20px);
            z-index: 10002;
            padding: 60px 20px 20px;
            overflow-y: auto;
            transition: transform 0.3s ease;
            border: 1px solid var(--glass-border);
            visibility: hidden;
        }
        .mobile-drawer.left {
            left: 0;
            transform: translateX(-100%);
            border-right: 1px solid var(--primary);
        }
        .mobile-drawer.right {
            right: 0;
            transform: translateX(100%);
            border-left: 1px solid var(--primary);
        }
        .mobile-drawer.open {
            transform: translateX(0);
            visibility: visible;
        }
        .mobile-drawer-close {
            position: absolute;
            top: 15px;
            right: 15px;
            width: 30px;
            height: 30px;
            background: transparent;
            border: 1px solid rgba(255,255,255,0.2);
            border-radius: 50%;
            color: #fff;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
        }
        .mobile-drawer-title {
            font-family: 'Orbitron';
            color: var(--primary);
            font-size: 1.1em;
            margin-bottom: 20px;
            padding-bottom: 10px;
            border-bottom: 2px solid var(--primary);
            text-transform: uppercase;
            letter-spacing: 2px;
        }
        .mobile-drawer .tool-item {
            display: flex;
            align-items: center;
            gap: 12px;
            padding: 12px 15px;
            background: rgba(255,255,255,0.03);
            border: 1px solid transparent;
            border-radius: 8px;
            color: #aaa;
            text-decoration: none;
            margin-bottom: 8px;
            transition: 0.3s;
        }
        .mobile-drawer .tool-item:hover {
            background: rgba(0, 243, 255, 0.1);
            border-color: var(--primary);
            color: var(--primary);
        }
        .mobile-overlay {
            display: none;
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: rgba(0,0,0,0.7);
            z-index: 10001;
        }
        .mobile-overlay.open {
            display: block;
        }

        /* AI 视频模态框 */
        .ai-header { text-align: center; margin-bottom: 35px; }
        .ai-header h2 { font-family: 'Orbitron'; color: #fff; font-size: 2.2em; text-shadow: 0 0 20px rgba(188, 19, 254, 0.6); margin-bottom: 10px; }
        .ai-header p { color: #888; font-size: 0.95em; letter-spacing: 1px; }

        .pricing-container { display: flex; justify-content: center; gap: 25px; flex-wrap: wrap; margin-bottom: 30px; }
        .pricing-card {
            flex: 1; min-width: 260px; max-width: 320px; background: rgba(255, 255, 255, 0.03);
            border-radius: 16px; padding: 30px 20px; position: relative; overflow: hidden;
            transition: all 0.3s ease; display: flex; flex-direction: column; align-items: center;
            border: 1px solid rgba(255,255,255,0.1);
        }
        .pricing-card.premium {
            background: linear-gradient(160deg, rgba(188, 19, 254, 0.1), rgba(0,0,0,0.4));
            border: 1px solid rgba(188, 19, 254, 0.5); box-shadow: 0 0 30px rgba(188, 19, 254, 0.15);
        }
        .pricing-card.premium::before {
            content: 'RECOMMENDED'; position: absolute; top: 12px; right: -30px;
            background: var(--secondary); color: #fff; font-size: 0.7em; font-weight: bold;
            padding: 5px 30px; transform: rotate(45deg); box-shadow: 0 2px 10px rgba(0,0,0,0.5);
        }
        .pricing-card.premium:hover { transform: translateY(-5px); box-shadow: 0 10px 40px rgba(188, 19, 254, 0.3); border-color: #e066ff; }
        .pricing-card.basic { border: 1px solid rgba(255,255,255,0.1); }
        .pricing-card.basic:hover { background: rgba(255,255,255,0.06); border-color: #666; }
        .price-tag { margin: 20px 0; text-align: center; }
        .price-currency { font-size: 1.2em; vertical-align: top; color: #888; }
        .price-num { font-family: 'Orbitron'; font-size: 3em; font-weight: bold; color: #fff; }
        .premium .price-num { background: linear-gradient(to bottom, #fff, var(--secondary)); -webkit-background-clip: text; color: transparent; text-shadow: 0 0 20px rgba(188, 19, 254, 0.5); }
        .feature-list { list-style: none; width: 100%; padding: 0 10px; margin-top: 10px; }
        .feature-list li {
            display: flex; align-items: center; gap: 10px; color: #ccc; font-size: 0.9em; margin-bottom: 12px;
            border-bottom: 1px solid rgba(255,255,255,0.05); padding-bottom: 8px;
        }
        .feature-list li:last-child { border-bottom: none; }
        .feature-list i { font-size: 1em; width: 20px; text-align: center; }
        .check-icon { color: #00ff88; text-shadow: 0 0 5px #00ff88; }
        .cross-icon { color: #ff3366; opacity: 0.7; }
        .demo-banner {
            display: flex; align-items: center; gap: 20px;
            background: linear-gradient(90deg, rgba(188, 19, 254, 0.1), rgba(0, 243, 255, 0.05));
            border: 1px solid var(--secondary); border-radius: 12px; padding: 20px 30px; text-decoration: none;
            transition: 0.3s; position: relative; overflow: hidden; margin-top: 10px;
        }
        .demo-banner:hover {
            background: linear-gradient(90deg, rgba(188, 19, 254, 0.2), rgba(0, 243, 255, 0.1));
            border-color: #fff; transform: scale(1.02); box-shadow: 0 0 25px rgba(188, 19, 254, 0.4);
        }
        .play-btn-circle {
            width: 50px; height: 50px; background: var(--secondary); border-radius: 50%;
            display: flex; align-items: center; justify-content: center;
            box-shadow: 0 0 15px var(--secondary); color: #fff; font-size: 1.2em;
            animation: pulse 2s infinite; flex-shrink: 0;
        }
        .demo-info h3 { color: #fff; font-size: 1.1em; margin-bottom: 5px; font-family: 'Orbitron'; }
        .demo-info p { color: #bbb; font-size: 0.85em; }
        .demo-arrow { margin-left: auto; color: var(--secondary); font-size: 1.2em; transition:0.3s;}
        .demo-banner:hover .demo-arrow { transform: translateX(5px); color: #fff; }


        /* 优惠码专属样式 */
.code-badge {
    background: rgba(255, 215, 0, 0.15);
    color: #ffd700;
    border: 1px solid rgba(255, 215, 0, 0.3);
    padding: 2px 6px;
    border-radius: 4px;
    font-weight: bold;
    font-family: 'Rajdhani';
    margin-left: 5px;
    display: inline-block; /* 防止断行太难看 */
    white-space: nowrap; /* 防止内部文字换行 */
}

/* 3. 重点提示高亮 (如：SSR中转) */
.text-highlight {
    color: var(--primary);
    font-weight: bold;
}

/* === 登录/注册系统样式 === */
.auth-header-btn {
    position: fixed;
    top: 20px;
    right: calc(var(--sidebar-width) + 20px);
    z-index: 150;
    display: flex;
    gap: 10px;
    align-items: center;
}

.auth-btn {
    padding: 10px 20px;
    border-radius: 8px;
    font-family: 'Rajdhani', sans-serif;
    font-weight: 600;
    font-size: 0.95em;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.auth-btn-outline {
    background: transparent;
    border: 1px solid var(--primary);
    color: var(--primary);
}

.auth-btn-outline:hover {
    background: rgba(0, 243, 255, 0.1);
    box-shadow: 0 0 15px rgba(0, 243, 255, 0.3);
}

.auth-btn-filled {
    background: linear-gradient(135deg, var(--primary), #00a8b5);
    border: none;
    color: #000;
}

.auth-btn-filled:hover {
    box-shadow: 0 0 20px rgba(0, 243, 255, 0.5);
    transform: translateY(-2px);
}

/* 用户信息显示 */
.user-info {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 15px;
    background: rgba(0, 243, 255, 0.1);
    border: 1px solid var(--primary);
    border-radius: 8px;
}

.user-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Orbitron';
    font-weight: bold;
    color: #000;
    font-size: 1rem;
    overflow: hidden;
}

.user-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.user-name {
    color: #fff;
    font-family: 'Rajdhani';
    font-weight: 600;
}

.logout-btn {
    background: transparent;
    border: 1px solid #ff4757;
    color: #ff4757;
    padding: 6px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.85em;
    transition: all 0.3s;
}

.logout-btn:hover {
    background: rgba(255, 71, 87, 0.2);
}

/* 登录/注册弹窗 */
.auth-modal-content {
    background: linear-gradient(145deg, #0f0f13, #1a1a22);
    border: 1px solid var(--primary);
    box-shadow: 0 0 60px rgba(0, 243, 255, 0.2);
    border-radius: 20px;
    padding: 50px 40px;
    width: 90%;
    max-width: 450px;
    max-height: 85vh;
    overflow-y: auto;
    position: relative;
}

.auth-modal-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--secondary), var(--primary));
    background-size: 200% 100%;
    animation: gradientMove 3s linear infinite;
}

@keyframes gradientMove {
    0% { background-position: 0% 50%; }
    100% { background-position: 200% 50%; }
}

.auth-title {
    text-align: center;
    margin-bottom: 30px;
}

.auth-title h2 {
    font-family: 'Orbitron';
    font-size: 1.8em;
    color: #fff;
    margin-bottom: 8px;
    text-shadow: 0 0 20px rgba(0, 243, 255, 0.3);
}

.auth-title p {
    color: #888;
    font-size: 0.9em;
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    position: relative;
}

.form-group label {
    display: block;
    color: var(--primary);
    font-family: 'Rajdhani';
    font-weight: 600;
    margin-bottom: 8px;
    font-size: 0.95em;
}

.form-group input {
    width: 100%;
    padding: 14px 18px;
    padding-right: 45px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    color: #fff;
    font-size: 1em;
    transition: all 0.3s ease;
    outline: none;
}

.form-group input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 15px rgba(0, 243, 255, 0.2);
    background: rgba(0, 243, 255, 0.05);
}

.form-group input::placeholder {
    color: #666;
}

/* 密码可见性切换 */
.password-toggle {
    position: absolute;
    right: 15px;
    top: 42px;
    color: #666;
    cursor: pointer;
    transition: 0.3s;
    z-index: 10;
}

.password-toggle:hover {
    color: var(--primary);
}

.submit-btn {
    width: 100%;
    padding: 15px;
    background: linear-gradient(135deg, var(--primary), #00a8b5);
    border: none;
    border-radius: 10px;
    color: #000;
    font-family: 'Orbitron';
    font-size: 1em;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 10px;
    position: relative;
    overflow: hidden;
}

.submit-btn:hover {
    box-shadow: 0 0 30px rgba(0, 243, 255, 0.5);
    transform: translateY(-2px);
}

.submit-btn:disabled {
    background: #333;
    color: #666;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.submit-btn .btn-loader {
    display: none;
    width: 20px;
    height: 20px;
    border: 2px solid #000;
    border-top-color: transparent;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin: 0 auto;
}

.submit-btn.loading .btn-text {
    display: none;
}

.submit-btn.loading .btn-loader {
    display: inline-block;
}

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

.auth-switch {
    text-align: center;
    margin-top: 25px;
    color: #888;
    font-size: 0.95em;
}

.auth-switch a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    transition: 0.3s;
}

.auth-switch a:hover {
    text-shadow: 0 0 10px var(--primary);
}

/* 消息提示 */
.message-toast {
    position: fixed;
    top: 30px;
    left: 50%;
    transform: translateX(-50%) translateY(-100px);
    padding: 15px 30px;
    border-radius: 10px;
    font-family: 'Rajdhani';
    font-weight: 600;
    z-index: 9999;
    transition: transform 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 300px;
    justify-content: center;
}

.message-toast.show {
    transform: translateX(-50%) translateY(0);
}

.message-toast.success {
    background: linear-gradient(135deg, rgba(0, 255, 136, 0.9), rgba(0, 200, 100, 0.9));
    color: #000;
    box-shadow: 0 5px 30px rgba(0, 255, 136, 0.4);
}

.message-toast.error {
    background: linear-gradient(135deg, rgba(255, 71, 87, 0.9), rgba(200, 50, 60, 0.9));
    color: #fff;
    box-shadow: 0 5px 30px rgba(255, 71, 87, 0.4);
}

.message-toast.warning {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.9), rgba(200, 160, 0, 0.9));
    color: #000;
    box-shadow: 0 5px 30px rgba(255, 215, 0, 0.4);
}

.message-toast.info {
    background: linear-gradient(135deg, rgba(0, 243, 255, 0.9), rgba(0, 150, 200, 0.9));
    color: #000;
    box-shadow: 0 5px 30px rgba(0, 243, 255, 0.4);
}

/* 表单验证样式 */
.form-group.error input {
    border-color: #ff4757;
    background: rgba(255, 71, 87, 0.1);
}

.form-group .error-text {
    color: #ff4757;
    font-size: 0.8em;
    margin-top: 5px;
    display: none;
}

.form-group.error .error-text {
    display: block;
}

/* 密码强度指示器 */
.password-strength {
    display: flex;
    gap: 5px;
    margin-top: 8px;
}

.strength-bar {
    flex: 1;
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
    transition: all 0.3s;
}

.strength-bar.weak { background: #ff4757; }
.strength-bar.medium { background: #ffd700; }
.strength-bar.strong { background: #00ff88; }

.strength-text {
    font-size: 0.75em;
    margin-top: 5px;
    color: #888;
}

/* 响应式 */
@media (max-width: 1200px) {
    .auth-header-btn {
        right: 90px;
    }
}

/* 头像选择器样式 */
.avatar-selector {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    padding: 10px 0;
}

.avatar-option {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3em;
    cursor: pointer;
    transition: all 0.3s ease;
}

.avatar-option:hover {
    border-color: var(--primary);
    transform: scale(1.1);
}

.avatar-option.selected {
    border-color: var(--primary);
    background: rgba(0, 243, 255, 0.2);
    box-shadow: 0 0 15px rgba(0, 243, 255, 0.3);
}

/* 头像上传区域 */
.avatar-upload-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px 0;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    margin-bottom: 15px;
}

.avatar-preview-container {
    position: relative;
    width: 100px;
    height: 100px;
}

.avatar-preview {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    border: 3px solid var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3em;
    overflow: hidden;
    box-shadow: 0 0 20px rgba(0, 243, 255, 0.3);
}

.avatar-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.avatar-upload-btn {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--secondary);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s;
    border: 2px solid #1a1a2e;
}

.avatar-upload-btn:hover {
    background: #d946ef;
    transform: scale(1.1);
}

.avatar-upload-hint {
    margin-top: 10px;
    font-size: 0.8em;
    color: #888;
}

.avatar-emoji-section {
    padding-top: 10px;
}

.avatar-emoji-label {
    font-size: 0.85em;
    color: #888;
    margin-bottom: 8px;
}

@media (max-width: 768px) {
    .auth-header-btn {
        right: 20px;
        top: 15px;
    }
    
    .auth-btn {
        padding: 8px 12px;
        font-size: 0.85em;
    }
    
    .auth-modal-content {
        padding: 30px 20px;
        margin: 10px;
        max-height: 90vh;
        overflow-y: auto;
    }
    
    .user-info {
        padding: 6px 10px;
    }
    
    .user-name {
        display: none;
    }
}

/* ================= 通讯终端样式 ================= */
.comm-terminal {
    margin: 30px 0 40px 0;
    padding: 0;
    width: 100%;
    max-width: 1200px;
}

.comm-container {
    display: flex;
    background: rgba(10, 10, 15, 0.9);
    border: 1px solid rgba(0, 243, 255, 0.3);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 0 30px rgba(0, 243, 255, 0.1);
    min-height: 450px;
}

/* 左侧频道栏 */
.comm-sidebar {
    width: 180px;
    background: rgba(0, 0, 0, 0.5);
    border-right: 1px solid rgba(0, 243, 255, 0.2);
    padding: 20px 10px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.comm-channel {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 15px;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s;
    color: #888;
    position: relative;
}

.comm-channel i {
    font-size: 1.1em;
    width: 20px;
    text-align: center;
}

.comm-channel span {
    font-size: 0.95em;
    white-space: nowrap;
}

.comm-channel:hover {
    background: rgba(0, 243, 255, 0.1);
    color: var(--primary);
}

.comm-channel.active {
    background: linear-gradient(135deg, rgba(0, 243, 255, 0.2), rgba(188, 19, 254, 0.1));
    color: var(--primary);
    border: 1px solid rgba(0, 243, 255, 0.3);
}

.channel-badge {
    position: absolute;
    right: 10px;
    background: #ff4757;
    color: #fff;
    font-size: 0.75em;
    padding: 2px 6px;
    border-radius: 10px;
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.6; }
}

/* 右侧内容区 */
.comm-main {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 20px;
}

/* 顶部状态栏 */
.comm-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(0, 243, 255, 0.2);
    margin-bottom: 15px;
}

.comm-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: 'Orbitron', sans-serif;
    color: var(--primary);
    font-size: 1.1em;
}

.comm-status {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85em;
    color: #888;
}

/* 管理员专属频道 tab */
.comm-channel-admin {
    margin-top: auto;
    border-top: 1px solid rgba(0, 243, 255, 0.1);
    padding-top: 10px;
    color: rgba(0, 243, 255, 0.7) !important;
}
.comm-channel-admin:hover { color: var(--primary) !important; }
.comm-channel-admin.active { color: var(--primary) !important; }

/* 全员通知发送面板 */
.broadcast-compose {
    padding: 8px 0;
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.bc-label {
    display: block;
    font-size: 0.8rem;
    color: #64748b;
    margin-bottom: 7px;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}
.bc-input {
    width: 100%;
    background: rgba(0, 243, 255, 0.03);
    border: 1px solid rgba(0, 243, 255, 0.18);
    border-radius: 8px;
    padding: 10px 14px;
    color: #e0e0e0;
    font-size: 0.9rem;
    outline: none;
    transition: border-color 0.2s;
}
.bc-input:focus { border-color: rgba(0, 243, 255, 0.45); }
.bc-textarea {
    width: 100%;
    background: rgba(0, 243, 255, 0.03);
    border: 1px solid rgba(0, 243, 255, 0.18);
    border-radius: 8px;
    padding: 10px 14px;
    color: #e0e0e0;
    font-size: 0.9rem;
    outline: none;
    resize: vertical;
    font-family: inherit;
    line-height: 1.6;
    transition: border-color 0.2s;
}
.bc-textarea:focus { border-color: rgba(0, 243, 255, 0.45); }
.bc-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}
.bc-status {
    font-size: 0.82rem;
    color: #64748b;
    flex: 1;
}
.bc-send-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 22px;
    border-radius: 8px;
    border: none;
    background: var(--primary);
    color: #000;
    font-weight: 700;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
}
.bc-send-btn:hover { opacity: 0.85; box-shadow: 0 0 14px rgba(0, 243, 255, 0.35); }
.bc-send-btn:disabled { opacity: 0.45; cursor: not-allowed; }

.status-dot {
    width: 8px;
    height: 8px;
    background: #00ff88;
    border-radius: 50%;
    box-shadow: 0 0 10px #00ff88;
    animation: pulse 2s infinite;
}

.status-divider {
    color: #444;
}

/* 频道说明 */
.comm-description {
    background: rgba(0, 243, 255, 0.05);
    border: 1px solid rgba(0, 243, 255, 0.15);
    border-radius: 8px;
    padding: 12px 15px;
    font-size: 0.9em;
    color: #aaa;
    margin-bottom: 20px;
}

.comm-description i {
    color: var(--primary);
    margin-right: 8px;
}

/* 发布区域 */
.comm-input-area {
    margin-bottom: 20px;
}

.input-wrapper {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    overflow: hidden;
    transition: border-color 0.3s;
}

.input-wrapper:focus-within {
    border-color: var(--primary);
}

.input-wrapper textarea {
    width: 100%;
    background: transparent;
    border: none;
    padding: 15px;
    color: #e0e0e0;
    font-size: 1em;
    resize: none;
    font-family: inherit;
}

.input-wrapper textarea:focus {
    outline: none;
}

.input-wrapper textarea::placeholder {
    color: #555;
}

.input-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 15px;
    background: rgba(0, 0, 0, 0.2);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    flex-wrap: wrap;
    gap: 10px;
}

/* 标签选择器 */
.tag-selector {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.tag-label {
    color: #666;
    font-size: 0.85em;
}

.tag-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #888;
    padding: 5px 12px;
    border-radius: 15px;
    font-size: 0.8em;
    cursor: pointer;
    transition: all 0.3s;
}

.tag-btn:hover {
    background: rgba(0, 243, 255, 0.1);
    border-color: var(--primary);
    color: var(--primary);
}

.tag-btn.active {
    background: rgba(0, 243, 255, 0.2);
    border-color: var(--primary);
    color: var(--primary);
}

.input-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

.char-count {
    font-size: 0.85em;
    color: #555;
}

.execute-btn {
    background: linear-gradient(135deg, var(--primary), #00a8b5);
    border: none;
    color: #000;
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s;
    font-family: 'Rajdhani', sans-serif;
}

.execute-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(0, 243, 255, 0.4);
}

.execute-btn:disabled {
    background: #333;
    color: #666;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.login-hint {
    background: rgba(255, 193, 7, 0.1);
    border: 1px solid rgba(255, 193, 7, 0.3);
    border-radius: 8px;
    padding: 15px;
    text-align: center;
    color: #ffc107;
}

.login-hint a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
}

/* 回复提示条 */
.reply-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(188, 19, 254, 0.1);
    border: 1px solid rgba(188, 19, 254, 0.3);
    border-radius: 8px;
    padding: 10px 15px;
    margin-bottom: 15px;
    color: #bc13fe;
    font-size: 0.9em;
}

.reply-bar button {
    background: transparent;
    border: none;
    color: #888;
    cursor: pointer;
    font-size: 0.9em;
}

.reply-bar button:hover {
    color: #ff4757;
}

/* 图片上传按钮 */
.image-upload-btn {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: rgba(0, 243, 255, 0.1);
    border: 1px solid rgba(0, 243, 255, 0.3);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s;
    margin-right: 10px;
}

.image-upload-btn:hover {
    background: rgba(0, 243, 255, 0.2);
    transform: scale(1.05);
}

/* 图片预览区 */
.image-preview-area {
    padding: 10px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.image-preview-item {
    position: relative;
    display: inline-block;
    max-width: 200px;
    border-radius: 8px;
    overflow: hidden;
    border: 2px solid rgba(0, 243, 255, 0.3);
}

.image-preview-item img {
    max-width: 100%;
    max-height: 150px;
    display: block;
}

.remove-image-btn {
    position: absolute;
    top: 5px;
    right: 5px;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: rgba(255, 71, 87, 0.9);
    border: none;
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    transition: all 0.3s;
}

.remove-image-btn:hover {
    background: #ff4757;
    transform: scale(1.1);
}

/* 拖拽遮罩 */
.comm-input-area {
    position: relative;
}

.drag-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 243, 255, 0.1);
    border: 3px dashed var(--primary);
    border-radius: 12px;
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    color: var(--primary);
    font-size: 1.2em;
    z-index: 10;
    backdrop-filter: blur(5px);
}

.drag-overlay i {
    font-size: 3em;
    animation: bounce-up 1s infinite;
}

@keyframes bounce-up {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.comm-input-area.dragging .drag-overlay {
    display: flex;
}

/* 消息中的图片 */
.message-image {
    max-width: 100%;
    max-height: 300px;
    border-radius: 8px;
    margin-top: 10px;
    cursor: pointer;
    transition: transform 0.3s;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.message-image:hover {
    transform: scale(1.02);
}

/* 图片灯箱 */
.image-lightbox {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.95);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    cursor: zoom-out;
}

.image-lightbox.show {
    display: flex;
}

.image-lightbox img {
    max-width: 90%;
    max-height: 90%;
    border-radius: 8px;
}

/* 消息列表 */
.comm-messages {
    flex: 1;
    overflow-y: auto;
    padding-right: 10px;
}

.comm-messages::-webkit-scrollbar {
    width: 5px;
}

.comm-messages::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.3);
}

.comm-messages::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 5px;
}

.loading-messages {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 40px;
    color: #666;
}

/* 单条消息 */
.message-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    padding: 15px;
    margin-bottom: 15px;
    transition: all 0.3s;
}

.message-card:hover {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 255, 255, 0.1);
}

.message-card.pinned {
    background: rgba(255, 215, 0, 0.05);
    border-color: rgba(255, 215, 0, 0.3);
}

.message-card.pending {
    opacity: 0.6;
    border-style: dashed;
}

.message-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 10px;
}

.message-user {
    display: flex;
    align-items: center;
    gap: 10px;
}

.message-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(0, 243, 255, 0.1);
    border: 2px solid rgba(0, 243, 255, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2em;
    overflow: hidden;
    flex-shrink: 0;
}

.message-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.message-avatar.admin {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.2), rgba(255, 140, 0, 0.2));
    border-color: var(--gold);
    box-shadow: 0 0 15px rgba(255, 215, 0, 0.3);
    animation: admin-glow 2s ease-in-out infinite;
}

@keyframes admin-glow {
    0%, 100% { box-shadow: 0 0 15px rgba(255, 215, 0, 0.3); }
    50% { box-shadow: 0 0 25px rgba(255, 215, 0, 0.5); }
}

.message-info {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.message-name {
    font-weight: 600;
    color: #e0e0e0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.message-name.admin {
    color: var(--gold);
}

.admin-badge {
    background: linear-gradient(135deg, var(--gold), #ff8c00);
    color: #000;
    font-size: 0.7em;
    padding: 2px 6px;
    border-radius: 3px;
    font-weight: 700;
}

.message-meta {
    font-size: 0.8em;
    color: #666;
    display: flex;
    align-items: center;
    gap: 10px;
}

.message-tag {
    background: rgba(0, 243, 255, 0.1);
    color: var(--primary);
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 0.75em;
}

.message-status {
    color: #ffc107;
    font-size: 0.75em;
}

.message-actions {
    display: flex;
    gap: 10px;
}

.message-actions button {
    background: transparent;
    border: none;
    color: #555;
    cursor: pointer;
    padding: 5px;
    transition: color 0.3s;
    font-size: 0.85em;
}

.message-actions button:hover {
    color: var(--primary);
}

.message-actions button.delete:hover {
    color: #ff4757;
}

.message-content {
    color: #ccc;
    line-height: 1.6;
    white-space: pre-wrap;
    word-break: break-word;
}

.message-card.admin-message {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.05), rgba(255, 140, 0, 0.03));
    border-color: rgba(255, 215, 0, 0.2);
}

/* 回复消息 */
.message-replies {
    margin-top: 15px;
    padding-left: 20px;
    border-left: 2px solid rgba(0, 243, 255, 0.2);
}

.reply-card {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 8px;
    padding: 12px;
    margin-bottom: 10px;
}

.reply-card:last-child {
    margin-bottom: 0;
}

.reply-to-hint {
    color: var(--primary);
    font-size: 0.9em;
    margin-right: 5px;
}

.reply-indicator {
    color: #666;
    font-size: 0.85em;
    margin-bottom: 8px;
}

.reply-indicator i {
    margin-right: 5px;
}

/* 加载更多 */
.load-more {
    text-align: center;
    padding: 20px;
}

.load-more button {
    background: rgba(0, 243, 255, 0.1);
    border: 1px solid rgba(0, 243, 255, 0.3);
    color: var(--primary);
    padding: 12px 30px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
    font-family: 'Rajdhani', sans-serif;
    font-size: 0.95em;
}

.pagination-info {
    text-align: center;
    padding: 10px;
    color: #666;
    font-size: 0.85em;
}

.load-more button:hover {
    background: rgba(0, 243, 255, 0.2);
}

/* 空状态 */
.empty-messages {
    text-align: center;
    padding: 60px 20px;
    color: #555;
}

.empty-messages i {
    font-size: 3em;
    margin-bottom: 15px;
    color: #333;
}

/* 置顶标记 */
.pinned-badge {
    background: linear-gradient(135deg, var(--gold), #ff8c00);
    color: #000;
    font-size: 0.7em;
    padding: 2px 8px;
    border-radius: 3px;
    font-weight: 600;
    margin-left: 8px;
}

/* ================= 私信聊天样式 ================= */
.dm-chat-container {
    display: flex;
    flex-direction: column;
    gap: 15px;
    padding: 10px 0;
}

.dm-bubble {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    max-width: 85%;
}

.dm-bubble.dm-mine {
    align-self: flex-end;
    flex-direction: row-reverse;
}

.dm-bubble.dm-other {
    align-self: flex-start;
}

.dm-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(0, 243, 255, 0.1);
    border: 2px solid rgba(0, 243, 255, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1em;
    flex-shrink: 0;
    overflow: hidden;
}

.dm-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.dm-avatar.admin {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.2), rgba(255, 140, 0, 0.2));
    border-color: var(--gold);
    box-shadow: 0 0 10px rgba(255, 215, 0, 0.3);
}

.dm-content-wrap {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.dm-sender {
    font-size: 0.8em;
    color: #666;
}

.dm-sender .admin-name {
    color: var(--gold);
    font-weight: 600;
}

.dm-time {
    color: #555;
    margin-left: 8px;
}

.dm-text {
    background: rgba(0, 243, 255, 0.1);
    border: 1px solid rgba(0, 243, 255, 0.2);
    border-radius: 12px;
    padding: 12px 16px;
    color: #ddd;
    line-height: 1.5;
    word-break: break-word;
}

.dm-mine .dm-text {
    background: rgba(188, 19, 254, 0.15);
    border-color: rgba(188, 19, 254, 0.3);
}

.dm-other .dm-text {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.1), rgba(255, 140, 0, 0.05));
    border-color: rgba(255, 215, 0, 0.2);
}

/* 私信用户列表（站长视角） */
.dm-user-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.dm-user-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 15px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s;
}

.dm-user-item:hover {
    background: rgba(0, 243, 255, 0.1);
    border-color: rgba(0, 243, 255, 0.3);
}

.dm-user-avatar {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: rgba(0, 243, 255, 0.1);
    border: 2px solid rgba(0, 243, 255, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3em;
    flex-shrink: 0;
}

.dm-user-info {
    flex: 1;
    min-width: 0;
}

.dm-user-name {
    font-weight: 600;
    color: #e0e0e0;
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 4px;
}

.dm-unread-badge {
    background: #ff4757;
    color: #fff;
    font-size: 0.7em;
    padding: 2px 6px;
    border-radius: 10px;
    font-weight: 600;
}

.dm-user-preview {
    font-size: 0.85em;
    color: #888;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.dm-user-time {
    font-size: 0.8em;
    color: #555;
    white-space: nowrap;
}

/* 响应式 */
@media (max-width: 768px) {
    .comm-container {
        flex-direction: column;
    }
    
    .comm-sidebar {
        width: 100%;
        flex-direction: row;
        padding: 10px;
        overflow-x: auto;
        border-right: none;
        border-bottom: 1px solid rgba(0, 243, 255, 0.2);
    }
    
    .comm-channel {
        padding: 10px 15px;
        white-space: nowrap;
    }
    
    .comm-channel span {
        font-size: 0.85em;
    }
    
    .comm-header {
        flex-direction: column;
        gap: 10px;
        align-items: flex-start;
    }
    
    .input-footer {
        flex-direction: column;
        align-items: stretch;
    }
    
    .tag-selector {
        justify-content: flex-start;
        overflow-x: auto;
        padding-bottom: 5px;
    }
    
    .input-actions {
        justify-content: space-between;
    }
}

/* === 域名优选弹窗 === */
.rd-modal-content { max-width: 660px; padding: 0; overflow: hidden; }

.rd-header {
    padding: 18px 24px 14px;
    border-bottom: 1px solid rgba(255,255,255,0.07);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}
.rd-title {
    font-size: 1rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 10px;
}
.rd-dot {
    width: 7px; height: 7px;
    border-radius: 50%;
    background: var(--primary);
    animation: rd-pulse 2s infinite;
}
@keyframes rd-pulse { 0%,100%{opacity:1;} 50%{opacity:0.3;} }

.rd-badge {
    font-family: 'JetBrains Mono', monospace;
    font-size: 10px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: #000;
    padding: 2px 8px;
    border-radius: 4px;
    font-weight: 700;
    letter-spacing: 0.05em;
}
.rd-btn-group { display: flex; gap: 8px; }
.rd-btn {
    font-family: 'Noto Sans SC', sans-serif;
    font-size: 12px;
    font-weight: 700;
    padding: 6px 14px;
    border-radius: 7px;
    cursor: pointer;
    border: 1px solid rgba(255,255,255,0.1);
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
    background: transparent;
}
.rd-btn-refresh { color: var(--primary); border-color: rgba(0,243,255,0.25); background: rgba(0,243,255,0.06); }
.rd-btn-refresh:hover { background: rgba(0,243,255,0.15); border-color: rgba(0,243,255,0.5); transform: translateY(-1px); }
.rd-btn-copy { color: #a78bfa; border-color: rgba(124,92,252,0.25); background: rgba(124,92,252,0.06); }
.rd-btn-copy:hover { background: rgba(124,92,252,0.15); border-color: rgba(124,92,252,0.5); transform: translateY(-1px); }
.rd-btn-copy.copied { color: #4ade80; border-color: rgba(74,222,128,0.3); background: rgba(74,222,128,0.06); }

.rd-code-area { padding: 18px 24px; }
.rd-code-box {
    background: #0a0a0f;
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 10px;
    padding: 16px 18px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 12.5px;
    line-height: 1.9;
    color: #94a3b8;
    min-height: 110px;
    transition: border-color 0.3s;
}
.rd-code-box:hover { border-color: rgba(0,243,255,0.15); }
.rd-code-content { word-break: break-all; white-space: pre-wrap; transition: opacity 0.2s, transform 0.2s; }
.rd-code-content.fade-out { opacity: 0; transform: translateY(-6px); }
.rd-code-content.fade-in  { opacity: 1; transform: translateY(0); }

/* syntax highlight */
.rd-kw { color: #7dd3fc; }
.rd-dm { color: #34d399; }
.rd-op { color: #f9a8d4; }

.rd-meta-bar {
    padding: 8px 24px 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px;
}
.rd-counter { font-family: 'JetBrains Mono', monospace; font-size: 11px; color: #555; }
.rd-counter span { color: var(--primary); font-weight: 700; }
.rd-tags { display: flex; gap: 6px; flex-wrap: wrap; }
.rd-tag {
    font-size: 10px;
    padding: 2px 8px;
    border-radius: 4px;
    background: rgba(255,255,255,0.03);
    color: #555;
    border: 1px solid rgba(255,255,255,0.07);
    font-family: 'JetBrains Mono', monospace;
}
