@charset "UTF-8";

/* 防止 Vue 渲染前的模板闪烁 */
[v-cloak] {
    display: none !important;
}

/*
 * Themes
 */
:root {
    --bg-color: #1e293b;
    --text-color: #f8fafc;
    --link-color: #6366f1;
    --header-bg: rgba(15, 23, 42, 0.8);
    --content-bg: #0f172a;
    --input-bg: rgba(0, 0, 0, 0.4);
    --input-text: #f8fafc;
    --border-color: rgba(255, 255, 255, 0.15);
    --btn-bg: linear-gradient(135deg, #6366f1 0%, #a855f7 100%);
    --btn-hover: linear-gradient(135deg, #a855f7 0%, #6366f1 100%);
    --msg-error-bg: rgba(239, 68, 68, 0.2);
    --msg-error-text: #fca5a5;
    --msg-success-bg: rgba(34, 197, 94, 0.2);
    --msg-success-text: #86efac;
    --card-bg: #0f172a;
    --nav-border: rgba(255, 255, 255, 0.15);
    --nav-active-bg: rgba(255, 255, 255, 0.1);
    --profile-header-bg: rgba(255, 255, 255, 0.03);
    --wave-1: rgba(99, 102, 241, 0.2);
    --wave-2: rgba(168, 85, 247, 0.3);
    --wave-3: rgba(15, 23, 42, 0.8);
    --shadow-color: rgba(0, 0, 0, 0.5);
}

.light-mode {
    --bg-color: #f1f5f9;
    --text-color: #1e293b;
    --link-color: #3b82f6;
    --header-bg: rgba(255, 255, 255, 0.9);
    --content-bg: #ffffff;
    --input-bg: #e2e8f0;
    --input-text: #0f172a;
    --border-color: rgba(15, 23, 42, 0.15);
    --btn-bg: linear-gradient(135deg, #3b82f6 0%, #6366f1 100%);
    --btn-hover: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    --msg-error-bg: rgba(254, 226, 226, 0.8);
    --msg-error-text: #dc2626;
    --msg-success-bg: rgba(220, 252, 231, 0.8);
    --msg-success-text: #16a34a;
    --card-bg: #ffffff;
    --nav-border: rgba(15, 23, 42, 0.15);
    --nav-active-bg: rgba(15, 23, 42, 0.05);
    --profile-header-bg: rgba(255, 255, 255, 0.6);
    --wave-1: rgba(59, 130, 246, 0.2);
    --wave-2: rgba(99, 102, 241, 0.3);
    --wave-3: rgba(255, 255, 255, 0.6);
    --shadow-color: rgba(0, 0, 0, 0.1);
}

.wave-1 { fill: var(--wave-1); }
.wave-2 { fill: var(--wave-2); }
.wave-3 { fill: var(--wave-3); }


/*
 * Globals
 */

html {
	font-size: 14px;
    color: var(--text-color);
    width: 100%;
    height: 100%;
}

a{ color: var(--link-color); text-decoration: none;}
a:visited{color: var(--link-color); }
a:hover{color: var(--link-color); text-decoration: underline; opacity: 0.8;}


body {
    width: 100%;
    min-height: 100vh;
    margin: 0 auto;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    background: var(--bg-color);
    background-attachment: fixed;
}
.header {
    position: relative;
    text-align: center;
    width: 100%;
    background: var(--header-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-color);
    padding: 0;
    margin: 0 auto;
    z-index: 100;
}
.theme-toggle {
    position: absolute;
    top: 25px;
    right: 20px;
    transform: translateY(-50%);
    cursor: pointer;
    font-size: 24px;
    color: var(--text-color);
    transition: all 0.3s;
    z-index: 1000;
}
.theme-toggle:hover {
    opacity: 0.8;
}
.content {
    text-align: center;
    width: 100%;
    background: transparent;
    margin: 0 auto;
    position: relative;
    z-index: 10;
}
.logo {
    text-align: center;
    padding: 10px 0;
    width: fit-content;
    margin: 0 auto 20px auto;
    background: transparent;
}
.logo img, .logo .logo-dark, .logo .logo-light {
    width: auto;
    margin: 0 auto;
    filter: drop-shadow(0 8px 15px var(--shadow-color));
}

.form-container {
    max-width: 320px;
    margin: 30px auto;
    padding: 30px;
    border: 1px solid var(--border-color);
    border-radius: 20px;
    background: var(--content-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    /* 添加阴影效果 */
    box-shadow: 0 20px 40px -10px var(--shadow-color);
    position: relative;
    z-index: 10;
}

.form-group {
    margin-bottom: 18px;
}
.form-group label {
    display: none;
}
.form-group input {
    width: 100%;
    padding: 8px;
    border: 1px solid var(--text-color);
    border-radius: 4px;
    box-sizing: border-box;
    background-color: var(--input-bg);
    color: var(--input-text);
    font-size: 14px;
}


.form-group input::placeholder {
    color: var(--text-color);
    opacity: 0.7;
}

button {
    width: 100%;
    padding: 12px;
    /* 使用渐变色背景 */
    background: var(--btn-bg);
    color: white;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    transition: all 0.3s ease;
    /* 添加阴影效果 */
    box-shadow: 0 4px 15px var(--shadow-color);
    position: relative;
    overflow: hidden;
    z-index: 1;
}
button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px var(--shadow-color);
}
button::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--btn-hover);
    z-index: -1;
    transition: opacity 0.3s ease;
    opacity: 0;
}
button:hover::after {
    opacity: 1;
}

.messages {
    list-style-type: none;
    padding: 0;
    margin: 0 0 20px 0;
    font-size: 16px;
}
.messages li {
    margin-bottom: 10px;
    border-radius: 5px;
    text-align: center;
}
.messages .error {
    background-color: var(--msg-error-bg);
    color: var(--msg-error-text);
    border: 1px solid var(--border-color);
}
.messages .success {
    background-color: var(--msg-success-bg);
    color: var(--msg-success-text);
    border: 1px solid var(--border-color);
}

/* 明亮模式下的额外优化 */
.light-mode .logo img {
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.6));
}

.light-mode .form-group input {
    border-color: 1px solid var(--text-color);
}

.light-mode .form-group input:focus {
    outline: none;
    border-color: 1px solid var(--text-color);
    box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.2);
}

.light-mode button {
    box-shadow: 0 2px 4px 0 rgba(0, 0, 0, 0.1), 0 3px 10px 0 rgba(0, 0, 0, 0.08);
}

.light-mode button:hover {
    box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.15), 0 6px 20px 0 rgba(0, 0, 0, 0.12);
}



.footer {
    text-align: center;
    width: 100%;
    padding: 10px 0 0 0;
    margin: 0;
    color: #8ba3a7;
}

.footer a{
    color: #007bff;
}
.footer a:visited{color: #2c8df5; }

.parallax > use {
    animation: move-forever 15s linear infinite;
}

.parallax > use:nth-child(1) {
    animation-delay: -2s;
}

.parallax > use:nth-child(2) {
    animation-delay: -2s;
    animation-duration: 5s;
}

.parallax > use:nth-child(3) {
    animation-delay: -4s;
    animation-duration: 3s;
}

@keyframes move-forever {
    0% {
        transform: translate(-90px, 10%);
    }
    100% {
        transform: translate(90px, 10%);
    }
}

.wiiuii_layout {
    width: 100%;
    height: 40px;
    position: relative;
    overflow: hidden;
    z-index: 1;
    background: transparent;
}

.editorial {
    display: block;
    width: 100%;
    height: 40px;
    margin: 0;
}

/* Background animated elements */
.bg-element {
    position: fixed;
    border-radius: 50%;
    filter: blur(80px);
    z-index: 0;
    opacity: 0.5;
    animation: moveBg 20s infinite alternate linear;
    pointer-events: none;
}

.element-1 {
    width: 400px;
    height: 400px;
    background: var(--wave-1);
    top: -100px;
    left: -100px;
}

.element-2 {
    width: 500px;
    height: 500px;
    background: var(--wave-2);
    bottom: -150px;
    right: -150px;
    animation-delay: -5s;
}

@keyframes moveBg {
    0% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(50px, 50px) scale(1.1); }
    100% { transform: translate(-50px, -50px) scale(0.9); }
}

.theme-toggle {
    position: fixed !important;
    top: 20px !important;
    right: 20px !important;
    z-index: 99999 !important;
    transform: none !important;
}

/* Logo 主题切换逻辑 */
.logo-light { display: none !important; }
.logo-dark { display: block !important; }

.light-mode .logo-dark { display: none !important; }
.light-mode .logo-light { display: block !important; }

/* 修正页头 logo 容器布局，防止两个图片撑开空间 */
.guest-logo {
    display: flex;
    align-items: center;
}
