:root {
    --bg-color: #050505;
    --primary: #00f3ff;
    --secondary: #bc13fe;
    --alert: #ff2a2a;
    --success: #00ff41;
    --text-main: #ffffff;
    --glass: rgba(255, 255, 255, 0.05);
    --border: rgba(0, 243, 255, 0.3);
}

* { box-sizing: border-box; margin: 0; padding: 0; cursor: none; }

body {
    background-color: var(--bg-color);
    color: var(--text-main);
    font-family: 'Roboto', sans-serif;
    overflow-x: hidden;
    min-height: 100vh;
}

/* 动态背景 & 鼠标 */
#bgCanvas { position: fixed; top: 0; left: 0; width: 100%; height: 100%; z-index: -1; }
#cursor, #cursor-blur { position: fixed; transform: translate(-50%, -50%); pointer-events: none; z-index: 9999; }
#cursor { width: 20px; height: 20px; border: 2px solid var(--primary); border-radius: 50%; transition: 0.1s; }
#cursor-blur { width: 50px; height: 50px; background: var(--primary); filter: blur(40px); opacity: 0.3; transition: 0.3s; }
body.hovered #cursor { width: 40px; height: 40px; background: rgba(0, 243, 255, 0.1); border-color: var(--secondary); }

/* 导航栏 */
.navbar {
    display: flex; justify-content: space-between; align-items: center;
    padding: 15px 30px; backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--glass); position: sticky; top: 0; z-index: 100;
    background: rgba(5,5,5,0.8);
}
.logo { font-family: 'Orbitron'; font-size: 24px; color: var(--primary); text-shadow: 0 0 10px var(--primary); }
.blink { animation: blink 1s infinite; }
@keyframes blink { 50% { opacity: 0; } }

/* 搜索栏 */
.search-bar { flex: 1; margin: 0 40px; position: relative; max-width: 500px; }
#searchInput {
    width: 100%; background: rgba(0,0,0,0.5); border: 1px solid var(--border);
    border-radius: 20px; padding: 8px 40px 8px 20px; color: var(--primary);
    font-family: 'Orbitron'; letter-spacing: 1px;
}
.search-icon { position: absolute; right: 15px; top: 50%; transform: translateY(-50%); opacity: 0.7; }

.nav-menu { display: flex; gap: 10px; }
.cyber-btn {
    background: transparent; border: 1px solid var(--primary); color: var(--primary);
    padding: 8px 15px; font-family: 'Orbitron'; cursor: none; transition: 0.3s;
    font-size: 0.8rem; text-transform: uppercase;
}
.cyber-btn:hover { background: var(--primary); color: #000; box-shadow: 0 0 15px var(--primary); }
.danger-btn { border-color: var(--alert); color: var(--alert); }
.danger-btn:hover { background: var(--alert); box-shadow: 0 0 15px var(--alert); }
.upload-btn { border-color: var(--success); color: var(--success); }
.upload-btn:hover { background: var(--success); box-shadow: 0 0 15px var(--success); }
.icon-btn { font-size: 0.9rem; }

/* 滚动公告 */
#marqueeContainer {
    background: rgba(0, 0, 0, 0.9); border-bottom: 1px solid var(--secondary);
    height: 30px; display: flex; align-items: center; overflow: hidden;
    font-family: 'VT323', monospace; color: var(--secondary); font-size: 1.2rem;
}
.marquee-label { padding: 0 20px; background: var(--secondary); color: #000; height: 100%; display: flex; align-items: center; font-weight: bold; }
.marquee-content { white-space: nowrap; animation: marquee 20s linear infinite; padding-left: 100%; }
@keyframes marquee { 0% { transform: translateX(0); } 100% { transform: translateX(-100%); } }

/* 面包屑 */
.breadcrumb { margin: 20px 0; font-family: 'Orbitron'; color: #aaa; }
.crumb-item { color: var(--primary); cursor: pointer; text-decoration: underline; margin-right: 5px; }
.crumb-item:hover { color: #fff; }
.crumb-item::after { content: '>'; display: inline-block; margin-left: 5px; color: #aaa; text-decoration: none; }
.crumb-item:last-child { color: #fff; text-decoration: none; cursor: default; }
.crumb-item:last-child::after { content: ''; }

/* 内容区 & 3D 视图 */
.container { max-width: 1400px; margin: 20px auto; padding: 0 20px; perspective: 1000px; } /* 3D透视 */

.view-normal .grid-system {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 25px;
}

/* 3D 模式样式 */
.view-3d .grid-system {
    display: flex; flex-wrap: wrap; justify-content: center; gap: 50px;
    transform-style: preserve-3d; transform: rotateX(20deg) scale(0.8);
    margin-top: 50px;
}
.view-3d .card {
    transform: rotateY(0deg) translateZ(0); transition: 0.5s;
    box-shadow: 0 20px 50px rgba(0,243,255,0.2);
}
.view-3d .card:hover {
    transform: rotateY(10deg) translateZ(50px) scale(1.1);
    z-index: 100;
}

/* 卡片 */
.card {
    background: var(--glass); border: 1px solid var(--border); padding: 15px;
    border-radius: 8px; position: relative; backdrop-filter: blur(5px);
    display: flex; flex-direction: column; transition: 0.3s;
}
.card.private-card { border-color: var(--alert); border-style: dashed; } /* 私密卡片 */
.card:hover { transform: translateY(-5px); border-color: var(--primary); box-shadow: 0 0 20px rgba(0,243,255,0.2); }

.card-img { width: 100%; height: 120px; object-fit: cover; border-radius: 4px; background: #000; margin-bottom: 10px; }
.folder-icon { font-size: 60px; text-align: center; color: var(--primary); height: 120px; line-height: 120px; text-shadow: 0 0 10px var(--primary); }

.card-title { font-weight: bold; color: var(--primary); margin-bottom: 5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.card-desc { font-size: 0.8rem; color: #aaa; margin-bottom: 15px; flex-grow: 1; height: 40px; overflow: hidden; }

/* 状态指示灯 */
.status-dot {
    display: inline-block; width: 10px; height: 10px; border-radius: 50%;
    background: #555; margin-right: 5px; box-shadow: 0 0 5px #555;
    transition: 0.3s;
}
.status-alive { background: var(--success); box-shadow: 0 0 8px var(--success); }
.status-dead { background: var(--alert); box-shadow: 0 0 8px var(--alert); animation: blink 0.5s infinite; }

/* 热力统计 */
.click-stat {
    position: absolute; bottom: 5px; left: 10px; font-size: 0.7rem; color: #666; font-family: 'Orbitron';
}
.card:hover .click-stat { color: var(--secondary); }

.card-link {
    text-decoration: none; background: rgba(0,243,255,0.1); color: #fff;
    padding: 8px; text-align: center; font-size: 0.9rem; border: 1px solid var(--border);
    transition: 0.2s; margin-top: auto;
}
.card-link:hover { background: var(--primary); color: #000; }

.delete-btn {
    position: absolute; top: 5px; right: 5px; width: 25px; height: 25px;
    background: rgba(0,0,0,0.8); color: var(--alert); border: 1px solid var(--alert);
    border-radius: 50%; display: flex; align-items: center; justify-content: center;
    opacity: 0; transition: 0.2s; z-index: 10;
}
.card:hover .delete-btn { opacity: 1; }

/* 模态框通用 */
.modal { display: none; position: fixed; z-index: 1000; left: 0; top: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.85); backdrop-filter: blur(10px); justify-content: center; align-items: center; }
.modal-content { background: #0a0a0a; border: 1px solid var(--primary); padding: 30px; width: 400px; position: relative; box-shadow: 0 0 50px rgba(0,243,255,0.15); }
.wide-modal { width: 800px; max-height: 80vh; overflow-y: auto; }
.close-modal { position: absolute; top: 10px; right: 20px; font-size: 24px; cursor: pointer; color: #fff; }
input, select, textarea { width: 100%; padding: 10px; margin: 10px 0; background: rgba(255,255,255,0.05); border: 1px solid #333; color: #fff; font-family: 'Roboto'; }
input:focus { border-color: var(--primary); outline: none; }
.full-width { width: 100%; margin-top: 15px; }

/* 密码眼睛 */
.pass-wrapper { position: relative; }
.eye-icon { position: absolute; right: 10px; top: 20px; cursor: pointer; opacity: 0.7; }

/* 日志列表 */
.log-list { margin-top: 20px; max-height: 300px; overflow-y: auto; border: 1px solid #333; padding: 10px; font-family: 'VT323'; font-size: 1.1rem; }
.log-item { border-bottom: 1px solid #222; padding: 5px 0; color: #aaa; display: flex; justify-content: space-between; }
.log-item .time { color: var(--primary); margin-right: 15px; }
.log-item .action { color: var(--secondary); font-weight: bold; margin-right: 15px; }
.log-del { color: var(--alert); cursor: pointer; margin-left: 10px; }