@import url('https://fonts.googleapis.com/css?family=Poppins:200,300,400,500,600,700,800,900&display=swap');

/* ---------- 全局重置 ---------- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

html, body {
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
    overflow: hidden;
    background: #1e1e24;
}

#app {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #1e1e24;
    overflow: hidden;
}

.page {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s;
    overflow-y: auto;
}

.page.active {
    opacity: 1;
    visibility: visible;
}

/* ---------- 登录页独有样式（卡片居中，默认显示红蓝边框，不旋转） ---------- */
#login-page {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #25252b;
}

@property --a {
    syntax: '<angle>';
    inherits: false;
    initial-value: 0deg;
}

#login-page .box {
    position: relative;
    width: 400px;
    height: 200px;
    background: repeating-conic-gradient(from var(--a), #ff2770 0% 5%, transparent 5% 40%, #ff2770 40% 50%);
    filter: drop-shadow(0 15px 50px #000);
    border-radius: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: height 0.5s ease, width 0.5s ease;
    animation: none;               /* 默认不旋转 */
}

#login-page .box:hover,
#login-page .box.expanded {
    width: 400px;
    height: 500px;
}

/* 加载时开启动画 */
#login-page .box.loading,
#login-page .box.loading::before {
    animation: rotating 4s linear infinite;
}
#login-page .box.loading::before {
    animation-delay: -1s;
}

@keyframes rotating {
    0% { --a: 0deg; }
    100% { --a: 360deg; }
}

#login-page .box::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background: repeating-conic-gradient(from var(--a), #45f3ff 0% 5%, transparent 5% 40%, #45f3ff 40% 50%);
    filter: drop-shadow(0 15px 50px #000);
    border-radius: 20px;
    pointer-events: none;
    animation: none;               /* 默认不旋转 */
}

#login-page .box::after {
    content: '';
    position: absolute;
    inset: 4px;
    background: #2d2d39;
    border-radius: 15px;
    border: 8px solid #25252b;
    pointer-events: none;
}

#login-page .login {
    position: absolute;
    inset: 60px;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    border-radius: 10px;
    background: rgba(0, 0, 0, 0.2);
    z-index: 1000;
    box-shadow: inset 0 10px 20px rgba(0, 0, 0, 0.5);
    border-bottom: 2px solid rgba(255, 255, 255, 0.5);
    transition: inset 0.5s ease;
    color: #fff;
    overflow: hidden;
}

#login-page .box:hover .login,
#login-page .box.expanded .login {
    inset: 40px;
}

#login-page .loginBx {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    gap: 20px;
    width: 70%;
    transform: translateY(126px);
    transition: transform 0.5s ease;
}

#login-page .box:hover .loginBx,
#login-page .box.expanded .loginBx {
    transform: translateY(0);
}

#login-page .loginBx h2 {
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 0.2em;
}

#login-page .loginBx h2 i {
    color: #ff2770;
    text-shadow: 0 0 5px #ff2770, 0 0 25px #ff2770;
}

#login-page .loginBx input {
    width: 100%;
    padding: 10px 20px;
    outline: none;
    border: none;
    font-size: 0.8em;
    color: #fff;
    background: rgba(0, 0, 0, 0.1);
    border: 2px solid #fff;
    border-radius: 30px;
}

#login-page .loginBx input::placeholder {
    color: #999;
}

#login-page .loginBx input[type="submit"] {
    background: #45f3ff;
    border: none;
    font-weight: 500;
    color: #111;
    cursor: pointer;
    transition: 0.5s;
}

#login-page .loginBx input[type="submit"]:hover {
    box-shadow: 0 0 10px #45f3ff, 0 0 60px #45f3ff;
}

#login-page .group {
    width: 100%;
    display: flex;
    justify-content: space-between;
}

#login-page .group a {
    color: #fff;
    text-decoration: none;
}

#login-page .group a:nth-child(2) {
    color: #ff2770;
    font-weight: 600;
}

/* 注册浮窗 */
#login-page .modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(15px);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
    z-index: 2000;
}

#login-page .modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

#login-page .login-modal {
    background: rgba(20, 30, 30, 0.9);
    border-radius: 30px;
    padding: 40px 30px;
    width: 350px;
    text-align: center;
    border: 1px solid #2ecc71;
    box-shadow: 0 0 30px rgba(46,204,113,0.3);
}

#login-page .login-modal h2 {
    color: #2ecc71;
    margin-bottom: 10px;
}

#login-page .login-modal .sub {
    color: #a0b8b0;
    margin-bottom: 20px;
}

#login-page .login-modal input {
    width: 100%;
    padding: 12px 20px;
    margin: 10px 0;
    background: rgba(0,0,0,0.3);
    border: 1px solid #2ecc71;
    border-radius: 30px;
    color: #fff;
    outline: none;
}

#login-page .login-modal button {
    width: 100%;
    padding: 12px;
    background: #2ecc71;
    border: none;
    border-radius: 30px;
    color: #111;
    font-weight: bold;
    cursor: pointer;
    margin: 20px 0;
}

#login-page .login-modal .skip-link {
    color: #2ecc71;
    cursor: pointer;
    text-decoration: underline;
}

/* ---------- 主页全屏贴合样式（无圆角） ---------- */
#home-page {
    display: flex;
    flex-direction: column;
    background: transparent;
    backdrop-filter: blur(5px);
    padding: 0;
}

.top-bar {
    display: flex;
    justify-content: flex-end;
    padding: 10px 15px;
    background: rgba(0,0,0,0.2);
    border-bottom: 1px solid rgba(46,204,113,0.2);
}

.main-content {
    display: flex;
    flex: 1;
    overflow: hidden;
    padding: 0;
    gap: 0;
}

.sidebar {
    width: 120px;
    display: flex;
    flex-direction: column;
    padding: 0;
    margin: 0;
    background: rgba(0,0,0,0.2);
    border-right: 1px solid rgba(46,204,113,0.2);
}

.sidebar-item {
    padding: 20px 5px;
    text-align: center;
    color: #a0b8b0;
    cursor: pointer;
    border-left: 3px solid transparent;
    background: transparent;
    margin: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    font-size: 14px;
}

.sidebar-item i {
    font-size: 24px;
    color: #2ecc71;
}

.sidebar-item.active {
    border-left-color: #2ecc71;
    background: rgba(46,204,113,0.1);
    color: #fff;
}

.sidebar-item.active i {
    color: #fff;
    text-shadow: 0 0 10px #2ecc71;
}

.content-area {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
    background: rgba(0,0,0,0.3);
    backdrop-filter: blur(10px);
    border: none;
    box-shadow: none;
    margin: 0;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

.tab-content h3 {
    color: #2ecc71;
    font-size: 24px;
    margin-bottom: 15px;
}

.tab-content p {
    color: #a0b8b0;
    line-height: 1.6;
}

.bottom-input {
    display: flex;
    align-items: center;
    padding: 10px 15px;
    background: rgba(0,0,0,0.2);
    border-top: 1px solid rgba(46,204,113,0.2);
    gap: 10px;
}

.bottom-input i {
    color: #2ecc71;
    font-size: 18px;
}

.bottom-input input {
    flex: 1;
    padding: 10px 15px;
    background: rgba(0,0,0,0.3);
    border: 1px solid #2ecc71;
    color: #fff;
    outline: none;
    border-radius: 0;
}

.bottom-input input:focus {
    box-shadow: 0 0 10px #2ecc71;
}

.avatar-menu {
    position: absolute;
    top: 50px;
    right: 10px;
    background: rgba(20,30,30,0.9);
    backdrop-filter: blur(10px);
    border: 1px solid #2ecc71;
    border-radius: 0;
    box-shadow: none;
    width: 150px;
    padding: 5px 0;
    display: none;
    z-index: 100;
}

.avatar-menu.active {
    display: block;
}

.avatar-menu-item {
    padding: 10px 15px;
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
}

.avatar-menu-item:hover {
    background: #2ecc71;
    color: #111;
}

.pending-user-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px;
    background: rgba(255,255,255,0.05);
    margin-bottom: 5px;
    border-left: 3px solid #ffaa00;
}

.approve-btn {
    background: #2ecc71;
    color: #111;
    border: none;
    padding: 5px 10px;
    cursor: pointer;
    margin-right: 5px;
}

.reject-btn {
    background: #ff4757;
    color: #fff;
    border: none;
    padding: 5px 10px;
    cursor: pointer;
}