* { margin: 0; padding: 0; box-sizing: border-box; }
html { background: #0f0c29; }
@font-face {
    font-family: 'Renogare';
    src: url('../celeste-font-en/Renogare-Regular.otf') format('opentype');
}
@font-face {
    font-family: 'CelesteZH';
    src: url('../fonts/NotoSansCJKsc-Medium.otf') format('opentype');
    font-display: swap;
}
body {
    font-family: 'Renogare', 'CelesteZH', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', sans-serif;
    background: linear-gradient(135deg, #0f0c29 0%, #302b63 50%, #24243e 100%);
    background-attachment: fixed;
    color: #e8e8f0;
    line-height: 1.6;
    position: relative;
}
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        radial-gradient(2px 2px at 20% 30%, rgba(255, 255, 255, 0.3), transparent),
        radial-gradient(2px 2px at 60% 70%, rgba(255, 255, 255, 0.3), transparent),
        radial-gradient(1px 1px at 50% 50%, rgba(255, 255, 255, 0.2), transparent),
        radial-gradient(1px 1px at 80% 10%, rgba(255, 255, 255, 0.3), transparent),
        radial-gradient(2px 2px at 90% 60%, rgba(255, 255, 255, 0.25), transparent),
        radial-gradient(1px 1px at 33% 80%, rgba(255, 255, 255, 0.2), transparent),
        radial-gradient(1px 1px at 15% 90%, rgba(255, 255, 255, 0.25), transparent);
    background-size: 200% 200%;
    animation: stars 60s linear infinite;
    pointer-events: none;
    z-index: 0;
}
@keyframes stars {
    0% { background-position: 0% 0%; }
    100% { background-position: 100% 100%; }
}
a { text-decoration: none; color: inherit; }

.container { max-width: 1100px; margin: 0 auto; padding: 0 20px; position: relative; z-index: 1; }

/* 头部 */
.header {
    background: transparent;
    backdrop-filter: none;
    box-shadow: none;
    border-bottom: none;
    position: relative;
    z-index: 100;
}
.header-inner {
    display: flex;
    align-items: center;
    height: 100px;
    gap: 20px;
    position: relative;
    z-index: 1;
}
.logo {
    display:inline-flex;
    align-items:center;
    flex-shrink:0;
}
.logo img {
    height:auto;
    max-height:100px;
    width:auto;
    filter:drop-shadow(0 0 12px rgba(100,180,255,0.7));
    transition:transform .2s;
}
.logo:hover img {
    transform:scale(1.1);
}
.nav {
    display: flex;
    gap: 4px;
    align-items: center;
}
.nav-link {
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 14px;
    color: #b8b8d0;
    transition: all 0.3s;
    position: relative;
}
.nav-link:hover, .nav-link.active {
    background: rgba(138, 43, 226, 0.2);
    color: #a78bfa;
    box-shadow: 0 0 15px rgba(138, 43, 226, 0.3);
}
.header-right {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-shrink: 0;
    margin-left: auto;
}
.user-info { display: flex; align-items: center; gap: 10px; font-size: 14px; color: #b8b8d0; }
.user-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 600;
    box-shadow: 0 0 15px rgba(138, 43, 226, 0.5);
    overflow: hidden;
}
.user-avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* 按钮 */
.btn {
    padding: 7px 18px;
    border-radius: 7px;
    font-size: 14px;
    cursor: pointer;
    border: none;
    transition: all 0.3s;
    display: inline-block;
    position: relative;
    overflow: hidden;
}
.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    box-shadow: 0 4px 15px rgba(138, 43, 226, 0.4);
}
.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(138, 43, 226, 0.6);
}
.btn-outline {
    background: rgba(138, 43, 226, 0.1);
    color: #a78bfa;
    border: 1px solid rgba(138, 43, 226, 0.5);
}
.btn-outline:hover {
    background: rgba(138, 43, 226, 0.2);
    border-color: #a78bfa;
    box-shadow: 0 0 15px rgba(138, 43, 226, 0.3);
}
.btn-sm { padding: 5px 12px; font-size: 13px; }
.btn-danger {
    background: rgba(231, 76, 60, 0.1);
    color: #ff6b6b;
    border: 1px solid rgba(231, 76, 60, 0.5);
}
.btn-danger:hover {
    background: #e74c3c;
    color: #fff;
    box-shadow: 0 0 15px rgba(231, 76, 60, 0.5);
}

/* 标签 */
.tag {
    display: inline-block;
    padding: 2px 10px;
    background: rgba(138, 43, 226, 0.15);
    color: #a78bfa;
    border-radius: 20px;
    font-size: 12px;
    margin: 2px;
    border: 1px solid rgba(138, 43, 226, 0.3);
}
.tag-link { cursor: pointer; transition: all 0.3s; }
.tag-link:hover {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    box-shadow: 0 0 10px rgba(138, 43, 226, 0.5);
    transform: translateY(-1px);
}

/* 分页 */
.pagination { display: flex; align-items: center; justify-content: center; gap: 12px; margin: 32px 0; position: relative; z-index: 1; }
.page-btn {
    padding: 8px 20px;
    border: 1px solid rgba(138, 43, 226, 0.4);
    background: rgba(30, 27, 75, 0.6);
    backdrop-filter: blur(10px);
    border-radius: 7px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s;
    color: #b8b8d0;
}
.page-btn:hover {
    border-color: #a78bfa;
    color: #a78bfa;
    box-shadow: 0 0 15px rgba(138, 43, 226, 0.4);
    transform: translateY(-2px);
}
.page-info { font-size: 14px; color: #8b8ba0; }

/* 工具 */
.loading { text-align: center; padding: 32px; color: #aaa; font-size: 14px; }
.empty { text-align: center; padding: 32px; color: #bbb; font-size: 14px; }

/* 表单 */
.form-group { margin-bottom: 18px; }
.form-group label { display: block; font-size: 14px; color: #b8b8d0; margin-bottom: 6px; font-weight: 500; }
.form-control {
    width: 100%; padding: 11px 14px; border: 1px solid rgba(138, 43, 226, 0.3);
    border-radius: 8px; font-size: 14px; outline: none;
    transition: all 0.3s; font-family: inherit;
    background: rgba(30, 27, 75, 0.4);
    color: #e8e8f0;
}
.form-control:focus {
    border-color: #a78bfa;
    box-shadow: 0 0 15px rgba(138, 43, 226, 0.3);
    background: rgba(30, 27, 75, 0.6);
}
.form-error { color: #ff6b6b; font-size: 13px; margin-top: 6px; display: none; }

/* Toast */
.toast {
    position: fixed; top: 72px; right: 24px; z-index: 999;
    padding: 12px 20px; border-radius: 8px; font-size: 14px; color: #fff;
    box-shadow: 0 4px 16px rgba(0,0,0,0.15); transform: translateX(120%);
    transition: transform 0.3s; min-width: 160px; text-align: center;
}
.toast.show { transform: translateX(0); }
.toast.success { background: #27ae60; }
.toast.error { background: #e74c3c; }
.toast.info { background: #4f46e5; }

/* 页脚 */
.footer {
    background: rgba(15, 12, 41, 0.85);
    backdrop-filter: blur(10px);
    border-top: 1px solid rgba(138, 43, 226, 0.2);
    padding: 20px 0;
    text-align: center;
    font-size: 13px;
    color: #8b8ba0;
    margin-top: 40px;
    position: relative;
    z-index: 1;
}

/* 卡片 */
.card {
    background: rgba(30, 27, 75, 0.6);
    backdrop-filter: blur(10px);
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3), 0 0 1px rgba(138, 43, 226, 0.5);
    padding: 24px;
    border: 1px solid rgba(138, 43, 226, 0.2);
    position: relative;
    z-index: 1;
}
