/* assets/css/theme.css - 全局共享样式（由 header.php 自动加载） */

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

:root {
    --primary: #6366f1;
    --primary-dark: #4f46e5;
    --accent: #06b6d4;
    --bg-dark: #0f0f1a;
    --bg-card: rgba(255,255,255,0.05);
    --text-primary: #ffffff;
    --text-muted: rgba(255,255,255,0.55);
    --border: rgba(255,255,255,0.08);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
    background: var(--bg-dark);
    color: var(--text-primary);
    min-height: 100vh;
}

/* ── 背景光球（多页面复用）── */
.bg-orb {
    position: fixed;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.3;
    pointer-events: none;
    z-index: 0;
}
.bg-orb-1 {
    width: 500px; height: 500px;
    background: radial-gradient(circle, #6366f1, transparent 70%);
    top: -150px; left: -100px;
}
.bg-orb-2 {
    width: 400px; height: 400px;
    background: radial-gradient(circle, #06b6d4, transparent 70%);
    bottom: -100px; right: -80px;
}

/* ── 顶部导航（全站统一）── */
.topnav {
    position: relative;
    z-index: 100;
    padding: 1rem 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.topnav-logo {
    display: flex; align-items: center; gap: 0.75rem;
    text-decoration: none;
}
.topnav-logo .logo-icon {
    width: 36px; height: 36px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    font-weight: 900; font-size: 1.1rem; color: white;
}
.topnav-logo .logo-text {
    font-weight: 700; font-size: 1.1rem; color: white;
}
.topnav-links {
    display: flex; align-items: center; gap: 0.75rem;
}
.topnav-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    padding: 0.45rem 1rem;
    border-radius: 8px;
    transition: all 0.2s;
}
.topnav-links a:hover { color: white; background: rgba(255,255,255,0.08); }
.topnav-links .btn-nav-primary {
    background: var(--primary);
    color: white !important;
}
.topnav-links .btn-nav-primary:hover { background: var(--primary-dark) !important; }

/* ── 通知组件（全站复用）── */
.notification-container {
    position: fixed;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    pointer-events: none;
}
.notification {
    background: rgba(30,30,50,0.98);
    backdrop-filter: blur(12px);
    border-radius: 12px;
    padding: 1rem 2rem;
    color: white;
    font-size: 1rem;
    font-weight: 500;
    box-shadow: 0 8px 32px rgba(0,0,0,0.4);
    border: 1px solid rgba(255,255,255,0.08);
    min-width: 260px;
    text-align: center;
    pointer-events: auto;
    animation: centerPop 0.3s ease;
}
.notification.success { border-color: rgba(16,185,129,0.4); background: rgba(16,185,129,0.15); color: #6ee7b7; }
.notification.error   { border-color: rgba(239,68,68,0.4);  background: rgba(239,68,68,0.15);  color: #fca5a5; }
.notification.info    { border-color: rgba(59,130,246,0.4); background: rgba(59,130,246,0.15);  color: #93c5fd; }

@keyframes centerPop {
    from { opacity: 0; transform: scale(0.85); }
    to   { opacity: 1; transform: scale(1); }
}

/* ── Footer（全站统一）── */
.site-footer {
    padding: 3rem 2rem;
    border-top: 1px solid rgba(255,255,255,0.06);
    text-align: center;
    color: rgba(255,255,255,0.25);
    font-size: 0.85rem;
}

/* ── 响应式 ── */
@media (max-width: 600px) {
    .topnav { padding: 0.8rem 1rem; }
}
