/* ====== 全局样式 ====== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', 'Roboto', 'Helvetica Neue', -apple-system, BlinkMacSystemFont, sans-serif;
    background: linear-gradient(-45deg, #0f0f0f, #1c1c1c, #2a2a2a, #3a3a3a);
    background-size: 400% 400%;
    animation: gradientBG 15s ease infinite;
    color: #e0e0e0;
    line-height: 1.6;
}

@keyframes gradientBG {
    0% { background-position: 0% 50%; }
    25% { background-position: 100% 50%; }
    50% { background-position: 100% 0%; }
    75% { background-position: 0% 0%; }
    100% { background-position: 0% 50%; }
}

/* ====== 页眉 ====== */
header {
    background: rgba(31, 31, 31, 0.95);
    backdrop-filter: blur(10px);
    color: #fff;
    padding: 2rem 1rem;
    text-align: center;
    margin-top: 70px;
    border-bottom: 2px solid rgba(0, 170, 255, 0.2);
}

header h1 {
    font-size: 2.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, #00aaff, #0088cc);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
}

header p {
    font-size: 1.1rem;
    color: rgba(224, 224, 224, 0.8);
    font-weight: 300;
}

/* ====== 导航栏 ====== */
nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(31, 31, 31, 0.98);
    backdrop-filter: blur(10px);
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    border-bottom: 1px solid rgba(0, 170, 255, 0.15);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.5);
}

nav .menu {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
}

nav .menu a {
    color: #e0e0e0;
    text-decoration: none;
    font-weight: 600;
    padding: 0.5rem 0;
    transition: all 0.3s ease;
    position: relative;
}

nav .menu a:hover {
    color: #00aaff;
}

nav .menu a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #00aaff, #0088cc);
    transition: width 0.3s ease;
}

nav .menu a:hover::after {
    width: 100%;
}

nav .menu a img {
    width: 20px;
    height: 20px;
    vertical-align: middle;
    margin-right: 6px;
    transition: transform 0.3s ease;
}

nav .menu a:hover img {
    transform: scale(1.2);
}

/* 站点名称（类似 Logo） */
nav .menu a:first-child {
    font-size: 1.25rem;
    font-weight: 800;
    letter-spacing: 0.4px;
    padding-right: 1rem;
    background: linear-gradient(90deg, #00aaff, #0088cc);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: inline-flex;
    align-items: center;
}

@media (max-width: 768px) {
    nav .menu a:first-child {
        font-size: 1.05rem;
    }
}

/* 右侧认证按钮 */
nav .auth {
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

/* Language selector styling (rounded pill with custom chevron) */
nav .auth #lang-select {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-color: rgba(255,255,255,0.03);
    color: #e0e0e0;
    border: 1px solid rgba(0,170,255,0.12);
    padding: 0.45rem 2.2rem 0.45rem 0.8rem;
    border-radius: 999px;
    font-weight: 600;
    cursor: pointer;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath fill='%2300aaff' d='M0 0l5 6 5-6z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 10px 6px;
    transition: all 0.18s ease;
}

nav .auth #lang-select:focus {
    box-shadow: 0 0 0 4px rgba(0,170,255,0.06);
    outline: none;
    border-color: #00aaff;
    transform: translateY(-1px);
}

@media (max-width: 768px) {
    nav .auth #lang-select {
        width: 90px;
        padding-right: 1.6rem;
    }
}

/* Custom language dropdown styles */
.lang-dropdown {
    position: relative;
    display: inline-block;
}
.lang-dropdown .lang-toggle {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.45rem 0.9rem;
    border-radius: 999px;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(0,170,255,0.12);
    color: #e0e0e0;
    font-weight: 600;
    cursor: pointer;
}
.lang-dropdown .lang-toggle .lang-flag { font-size: 1rem; }
.lang-dropdown .lang-toggle .chev { margin-left: 6px; color: #00aaff; }
.lang-dropdown .lang-menu {
    display: none;
    position: absolute;
    right: 0;
    margin-top: 8px;
    background: rgba(20,20,20,0.98);
    border: 1px solid rgba(0,170,255,0.12);
    box-shadow: 0 6px 24px rgba(0,0,0,0.6);
    border-radius: 8px;
    min-width: 0;
    width: max-content;
    white-space: nowrap;
    z-index: 1200;
    overflow: hidden;
    padding: 0.15rem; /* reduce internal padding */
}
.lang-dropdown .lang-menu li {
    list-style: none;
    padding: 0.3rem 0.55rem; /* tighter padding */
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    color: #e0e0e0;
    justify-content: flex-start; /* ensure left alignment */
}
.lang-dropdown .lang-menu li span { margin-right: 0.25rem; }
.lang-dropdown .lang-menu li:hover {
    background: rgba(0,170,255,0.06);
    color: #fff;
}
.lang-dropdown .lang-menu li:active { transform: translateY(0); }

@media (max-width: 768px) {
    .lang-dropdown .lang-menu { right: 0; left: auto; }
}

nav .auth a {
    color: #e0e0e0;
    text-decoration: none;
    font-weight: 600;
    padding: 0.6rem 1.2rem;
    border-radius: 6px;
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 170, 255, 0.3);
}

nav .auth a:first-child {
    color: #00aaff;
}

nav .auth a:first-child:hover {
    background: rgba(0, 170, 255, 0.1);
    border-color: #00aaff;
}

nav .auth a:last-child {
    background: linear-gradient(135deg, #00aaff, #0088cc);
    border-color: #00aaff;
    color: #fff;
}

nav .auth a:last-child:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(0, 170, 255, 0.4);
}

/* 登出按钮样式 */
.btn-logout {
    color: #fff;
    background: linear-gradient(135deg, #00aaff, #0088cc);
    border: 1px solid #00aaff;
    padding: 0.6rem 1.2rem;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-logout:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(0, 170, 255, 0.4);
    color: #fff;
}

.btn-logout:active {
    transform: translateY(0);
}

/* 响应式菜单 */
@media (max-width: 768px) {
    nav {
        flex-direction: column;
        gap: 1rem;
        padding: 1rem;
    }

    nav .menu {
        justify-content: center;
        width: 100%;
        gap: 1rem;
    }

    nav .auth {
        width: 100%;
        justify-content: center;
    }

    header {
        margin-top: 180px;
        padding: 1.5rem 1rem;
    }

    header h1 {
        font-size: 2rem;
    }
}

/* ====== 内容容器 ====== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 1rem;
}

.container h2 {
    font-size: 2rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 2rem;
    position: relative;
    padding-bottom: 1rem;
}

.container h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, #00aaff, #0088cc);
    border-radius: 2px;
}

/* ====== 资源卡片 ====== */
.resource-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.resource {
    background: rgba(30, 30, 30, 0.8);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(0, 170, 255, 0.15);
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.resource:hover {
    transform: translateY(-5px);
    border-color: rgba(0, 170, 255, 0.4);
    box-shadow: 0 8px 30px rgba(0, 170, 255, 0.2);
}

.resource h3 {
    color: #fff;
    font-size: 1.3rem;
    font-weight: 600;
    margin: 0;
}

.resource p {
    color: rgba(224, 224, 224, 0.8);
    margin: 0;
    font-size: 0.95rem;
    flex-grow: 1;
}

.resource button {
    background: linear-gradient(135deg, #00aaff, #0088cc);
    color: #fff;
    border: none;
    padding: 0.75rem 1.5rem;
    cursor: pointer;
    border-radius: 6px;
    font-weight: 600;
    transition: all 0.3s ease;
    align-self: flex-start;
}

.resource button:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(0, 170, 255, 0.4);
}

.resource button:active {
    transform: translateY(0);
}

/* ====== 页脚 ====== */
footer {
    background: rgba(31, 31, 31, 0.95);
    backdrop-filter: blur(10px);
    color: rgba(170, 170, 170, 0.9);
    text-align: center;
    padding: 2rem 1rem;
    margin-top: 3rem;
    border-top: 1px solid rgba(0, 170, 255, 0.15);
}

footer p {
    margin: 0.5rem 0;
    font-size: 0.95rem;
}

footer a {
    color: #00aaff;
    text-decoration: none;
    transition: color 0.3s ease;
}

footer a:hover {
    color: #00ccff;
    text-decoration: underline;
}

/* ====== 响应式设计 ====== */
@media (max-width: 768px) {
    .resource-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .container {
        padding: 1.5rem 1rem;
    }

    .container h2 {
        font-size: 1.5rem;
    }
}

/* ====== 辅助类 ====== */
.text-center {
    text-align: center;
}

.mt-4 {
    margin-top: 2rem;
}

.mb-4 {
    margin-bottom: 2rem;
}

/* ====== 登录页面样式 ====== */
.login-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(-45deg, #0f0f0f, #1c1c1c, #2a2a2a, #3a3a3a);
    background-size: 400% 400%;
    animation: gradientBG 15s ease infinite;
}

.login-card {
    width: 100%;
    max-width: 420px;
    padding: 2.5rem;
    background: rgba(31, 31, 31, 0.95);
    border-radius: 12px;
    box-shadow: 0 8px 32px 0 rgba(31, 178, 255, 0.2);
    border: 1px solid rgba(0, 170, 255, 0.2);
    backdrop-filter: blur(4px);
}

.login-card h2 {
    color: #fff;
    font-weight: 700;
    margin-bottom: 1.5rem;
    text-align: center;
    font-size: 1.75rem;
}

.form-control {
    background: rgba(224, 224, 224, 0.05);
    border: 1px solid rgba(0, 170, 255, 0.3);
    color: #e0e0e0;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    transition: all 0.3s ease;
    margin-bottom: 1rem;
}

.form-control::placeholder {
    color: rgba(224, 224, 224, 0.5);
}

.form-control:focus {
    background: rgba(224, 224, 224, 0.08);
    border-color: #00aaff;
    box-shadow: 0 0 0 0.2rem rgba(0, 170, 255, 0.25);
    color: #e0e0e0;
}

.btn-login {
    width: 100%;
    padding: 0.85rem;
    background: linear-gradient(135deg, #00aaff, #0088cc);
    border: none;
    color: #fff;
    font-weight: 600;
    border-radius: 8px;
    transition: all 0.3s ease;
    margin-top: 0.5rem;
}

.btn-login:hover {
    background: linear-gradient(135deg, #00ccff, #00aaff);
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(0, 170, 255, 0.4);
    color: #fff;
}

.btn-login:active {
    transform: translateY(0);
}

#message {
    margin-top: 1rem;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    text-align: center;
    display: none;
}

#message.success {
    display: block;
    background: rgba(76, 175, 80, 0.2);
    border: 1px solid #4caf50;
    color: #81c784;
}

#message.error {
    display: block;
    background: rgba(244, 67, 54, 0.2);
    border: 1px solid #f44336;
    color: #ef5350;
}

.login-footer {
    text-align: center;
    margin-top: 1.5rem;
    color: rgba(224, 224, 224, 0.8);
    font-size: 0.95rem;
}

.login-footer a {
    color: #00aaff;
    text-decoration: none;
    transition: color 0.3s ease;
    font-weight: 600;
}

.login-footer a:hover {
    color: #00ccff;
    text-decoration: underline;
}

/* ====== 注册页面样式 ====== */
.register-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(-45deg, #0f0f0f, #1c1c1c, #2a2a2a, #3a3a3a);
    background-size: 400% 400%;
    animation: gradientBG 15s ease infinite;
    padding: 1rem;
}

.register-card {
    width: 100%;
    max-width: 480px;
    padding: 2.5rem;
    background: rgba(31, 31, 31, 0.95);
    border-radius: 12px;
    box-shadow: 0 8px 32px 0 rgba(31, 178, 255, 0.2);
    border: 1px solid rgba(0, 170, 255, 0.2);
    backdrop-filter: blur(4px);
}

.register-card h2 {
    color: #fff;
    font-weight: 700;
    margin-bottom: 1.5rem;
    text-align: center;
    font-size: 1.75rem;
}

.btn-register {
    width: 100%;
    padding: 0.85rem;
    background: linear-gradient(135deg, #00aaff, #0088cc);
    border: none;
    color: #fff;
    font-weight: 600;
    border-radius: 8px;
    transition: all 0.3s ease;
    margin-top: 0.5rem;
}

.btn-register:hover {
    background: linear-gradient(135deg, #00ccff, #00aaff);
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(0, 170, 255, 0.4);
    color: #fff;
}

.btn-register:active {
    transform: translateY(0);
}

.register-footer {
    text-align: center;
    margin-top: 1.5rem;
    color: rgba(224, 224, 224, 0.8);
    font-size: 0.95rem;
}

.register-footer a {
    color: #00aaff;
    text-decoration: none;
    transition: color 0.3s ease;
    font-weight: 600;
}

.register-footer a:hover {
    color: #00ccff;
    text-decoration: underline;
}

.password-info {
    margin-top: 0.5rem;
    font-size: 0.85rem;
    color: rgba(224, 224, 224, 0.6);
}

/* ====== 输入框组合样式 ====== */
.input-group {
    display: flex;
    gap: 0;
    margin-bottom: 1rem;
}

.input-group .form-control {
    flex: 1;
    margin-bottom: 0;
    border-radius: 8px 0 0 8px;
}

.input-group .btn {
    margin-bottom: 0;
    padding: 0.75rem 1rem;
    height: auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

#sendCodeBtn {
    background: rgba(0, 170, 255, 0.2);
    border: 1px solid rgba(0, 170, 255, 0.4);
    color: #00aaff;
    padding: 0.75rem 1.2rem;
    border-radius: 0 8px 8px 0;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

#sendCodeBtn:hover {
    background: rgba(0, 170, 255, 0.35);
    border-color: #00aaff;
    color: #00ccff;
}

#sendCodeBtn:active {
    transform: scale(0.98);
}

/* ====== 首页样式 ====== */
.hero-section {
    margin-top: 70px;
    text-align: center;
    padding: 4rem 1rem;
    background: linear-gradient(135deg, rgba(0, 170, 255, 0.1), rgba(0, 136, 204, 0.1));
    border-bottom: 2px solid rgba(0, 170, 255, 0.2);
}

.hero-section h1 {
    font-size: 3rem;
    font-weight: 700;
    background: linear-gradient(135deg, #00aaff, #0088cc);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1rem;
}

.hero-section p {
    font-size: 1.3rem;
    color: rgba(224, 224, 224, 0.9);
    margin-bottom: 2rem;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.cta-buttons a {
    padding: 0.9rem 2rem;
    font-weight: 600;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
}

.cta-primary {
    background: linear-gradient(135deg, #00aaff, #0088cc);
    color: #fff;
    border: 2px solid #00aaff;
}

.cta-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(0, 170, 255, 0.4);
    color: #fff;
}

.cta-secondary {
    background: transparent;
    color: #00aaff;
    border: 2px solid #00aaff;
}

.cta-secondary:hover {
    background: rgba(0, 170, 255, 0.1);
    color: #00ccff;
    border-color: #00ccff;
}

.stats-section {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin: 3rem 0;
    padding: 0 1rem;
}

.stat-box {
    background: rgba(30, 30, 30, 0.8);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(0, 170, 255, 0.15);
    padding: 2rem;
    border-radius: 12px;
    text-align: center;
    transition: all 0.3s ease;
}

.stat-box:hover {
    border-color: rgba(0, 170, 255, 0.4);
    box-shadow: 0 8px 30px rgba(0, 170, 255, 0.2);
}

.stat-box .number {
    font-size: 2.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, #00aaff, #0088cc);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-box .label {
    color: rgba(224, 224, 224, 0.8);
    font-size: 1rem;
    margin-top: 0.5rem;
}

@media (max-width: 768px) {
    .hero-section h1 {
        font-size: 2rem;
    }

    .hero-section p {
        font-size: 1rem;
    }

    .cta-buttons {
        flex-direction: column;
    }

    .cta-buttons a {
        width: 100%;
    }
}

/* ====== 插件页面样式 ====== */
.plugins-wrapper {
    display: flex;
    gap: 2rem;
    margin-top: 100px;
    min-height: calc(100vh - 100px);
}

.sidebar {
    flex: 0 0 300px;
    background: rgba(31, 31, 31, 0.95);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(0, 170, 255, 0.15);
    border-radius: 12px;
    padding: 1.5rem;
    height: fit-content;
    position: sticky;
    top: 100px;
}

.sidebar-header {
    font-size: 1.3rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid rgba(0, 170, 255, 0.3);
}

.sidebar-content {
    color: rgba(224, 224, 224, 0.9);
    font-size: 0.95rem;
    line-height: 1.6;
}

.sidebar-content p {
    margin-bottom: 1rem;
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(0, 170, 255, 0.2);
}

.social-links a {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 170, 255, 0.1);
    border: 1px solid rgba(0, 170, 255, 0.3);
    border-radius: 8px;
    transition: all 0.3s ease;
    text-decoration: none;
}

.social-links a:hover {
    background: rgba(0, 170, 255, 0.25);
    border-color: #00aaff;
    transform: translateY(-3px);
}

.social-links img {
    width: 20px;
    height: 20px;
    filter: brightness(0.9);
    transition: filter 0.3s ease;
}

.social-links a:hover img {
    filter: brightness(1.2);
}

.plugin-list {
    flex: 1;
    padding: 1rem;
}

.plugin-list > p {
    font-size: 1.8rem;
    font-weight: 600;
    color: #fff;
    margin-bottom: 2rem;
}

.plugin-container {
    position: relative;
    width: 100%;
    height: 800px;
    background: rgba(20, 20, 20, 0.6);
    border: 2px solid rgba(0, 170, 255, 0.3);
    border-radius: 12px;
    padding: 2rem;
    overflow: hidden;
}

.plugin-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
}

.plugin-card {
    background: rgba(30, 30, 30, 0.8);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(0, 170, 255, 0.15);
    border-radius: 12px;
    overflow: hidden;
    transition: box-shadow 0.2s ease, border-color 0.2s ease;
    padding: 1.2rem;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    cursor: grab;
    width: 280px;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

.plugin-card:hover {
    border-color: rgba(0, 170, 255, 0.4);
    box-shadow: 0 8px 30px rgba(0, 170, 255, 0.2);
}

.plugin-card.dragging {
    opacity: 0.9;
    z-index: 1000;
    box-shadow: 0 12px 35px rgba(0, 170, 255, 0.6);
    cursor: grabbing;
    border-color: rgba(0, 170, 255, 0.5);
}

.plugin-card-header {
    background: linear-gradient(135deg, rgba(0, 170, 255, 0.1), rgba(0, 136, 204, 0.05));
    padding: 0.9rem;
    margin: -1.2rem -1.2rem 0 -1.2rem;
    border-bottom: 1px solid rgba(0, 170, 255, 0.1);
}

.plugin-card-header h3 {
    margin: 0 0 0.4rem 0;
    color: #fff;
    font-size: 1.1rem;
    font-weight: 600;
}

.plugin-info {
    display: flex;
    gap: 0.8rem;
    font-size: 0.8rem;
    color: rgba(224, 224, 224, 0.7);
    flex-wrap: wrap;
}

.plugin-card-body {
    padding: 0;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.plugin-card-body p {
    color: rgba(224, 224, 224, 0.85);
    margin: 0;
    line-height: 1.5;
    font-size: 0.9rem;
}

.plugin-tags {
    display: flex;
    gap: 0.4rem;
    flex-wrap: wrap;
}

.plugin-tag {
    background: rgba(0, 170, 255, 0.15);
    color: #00aaff;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.75rem;
    border: 1px solid rgba(0, 170, 255, 0.3);
    white-space: nowrap;
}

.plugin-card-footer {
    padding: 0;
    border-top: 1px solid rgba(0, 170, 255, 0.1);
    padding-top: 0.8rem;
    display: flex;
    gap: 0.6rem;
}

.plugin-btn {
    flex: 1;
    padding: 0.5rem 0.8rem;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.2s ease;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    user-select: none;
}
/*    transition: all 0.3s ease;*/
/*    text-decoration: none;*/
/*    display: flex;*/
/*    align-items: center;*/
/*    justify-content: center;*/
/*    font-size: 0.9rem;*/
/*}*/

.plugin-btn-primary {
    background: linear-gradient(135deg, #00aaff, #0088cc);
    color: #fff;
}

.plugin-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(0, 170, 255, 0.4);
    color: #fff;
    text-decoration: none;
}

.plugin-btn-secondary {
    background: transparent;
    color: #00aaff;
    border: 1px solid #00aaff;
}

.plugin-btn-secondary:hover {
    background: rgba(0, 170, 255, 0.15);
    color: #00ccff;
    border-color: #00ccff;
    text-decoration: none;
}

@media (max-width: 1024px) {
    .plugins-wrapper {
        flex-direction: column;
    }

    .sidebar {
        position: static;
        flex: 1;
    }

    .plugin-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }
}

@media (max-width: 768px) {
    .plugins-wrapper {
        margin-top: 80px;
        gap: 1rem;
    }

    .sidebar {
        flex: 1;
    }

    .plugin-grid {
        grid-template-columns: 1fr;
    }

    .plugin-card-footer {
        flex-direction: column;
    }

    .plugin-btn {
        width: 100%;
    }
}

/* ====== 用户卡片样式 ====== */
.user-card {
    background: rgba(31, 31, 31, 0.95);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(0, 170, 255, 0.2);
    border-radius: 12px;
    color: #e0e0e0;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

.user-card h3 {
    color: #00aaff;
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.user-card h5 {
    color: #00aaff;
    font-weight: 600;
    margin-bottom: 1rem;
}

.user-card hr {
    border-color: rgba(0, 170, 255, 0.2);
}

/* ====== Featured 插件卡片 ====== */
.featured-plugin-card {
    background: rgba(31, 31, 31, 0.95);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(0, 170, 255, 0.2);
    border-radius: 12px;
    padding: 1.5rem;
    color: #e0e0e0;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    transition: all 0.3s ease;
}

.featured-plugin-icon {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 8px;
    border: 1px solid rgba(0, 170, 255, 0.2);
    flex-shrink: 0;
}

.featured-plugin-icon-small {
    width: 1.5rem;
    height: 1.5rem;
    object-fit: cover;
    border-radius: 4px;
    border: 1px solid rgba(0, 170, 255, 0.2);
    flex-shrink: 0;
}

.featured-plugin-card:hover {
    border-color: rgba(0, 170, 255, 0.5);
    box-shadow: 0 12px 48px rgba(0, 170, 255, 0.2);
    transform: translateY(-4px);
}

.featured-plugin-card h3 {
    color: #00aaff;
    font-weight: 700;
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.featured-plugin-card .plugin-desc {
    color: rgba(224, 224, 224, 0.85);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.featured-buttons {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.featured-buttons .btn {
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
    transition: all 0.3s ease;
}

