:root {
    --primary-color: #4f46e5;
    --secondary-color: #7c3aed;
    --accent-color: #10b981;
    --dark-bg: #0f172a;
    --card-bg: rgba(30, 41, 59, 0.7);
    --notice-bg: rgba(16, 185, 129, 0.9);
}

/* 重要提示横幅 */
.notice-banner {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 10000;
    background: var(--notice-bg);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    animation: slideDown 0.5s ease;
}

.notice-content {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px 20px;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
}

.notice-icon {
    color: #ffffff;
    font-size: 18px;
    margin-right: 12px;
    flex-shrink: 0;
}

.notice-text {
    color: #ffffff;
    font-size: 14px;
    font-weight: 500;
    text-align: center;
    line-height: 1.4;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.notice-close {
    position: absolute;
    right: 15px;
    background: none;
    border: none;
    color: #ffffff;
    font-size: 16px;
    cursor: pointer;
    padding: 5px;
    border-radius: 50%;
    transition: all 0.3s ease;
    opacity: 0.8;
}

.notice-close:hover {
    opacity: 1;
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.1);
}

@keyframes slideDown {
    from {
        transform: translateY(-100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes slideUp {
    from {
        transform: translateY(0);
        opacity: 1;
    }
    to {
        transform: translateY(-100%);
        opacity: 0;
    }
}

/* 当提示横幅显示时，为body添加顶部边距 */
body.has-notice-banner {
    padding-top: 60px;
}

/* 中间提示框 */
.center-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10001;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease;
}

.center-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(5px);
}

.center-modal-content {
    position: relative;
    background: rgba(30, 41, 59, 0.95);
    backdrop-filter: blur(15px);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    max-width: 500px;
    width: 90%;
    max-height: 80vh;
    overflow: hidden;
    animation: scaleIn 0.3s ease;
}

.center-modal-header {
    display: flex;
    align-items: center;
    padding: 24px 24px 16px 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
}

.center-modal-icon {
    color: #f59e0b;
    font-size: 24px;
    margin-right: 12px;
}

.center-modal-title {
    color: #ffffff;
    font-size: 20px;
    font-weight: 600;
    margin: 0;
    flex: 1;
}

.center-modal-close {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.7);
    font-size: 18px;
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.center-modal-close:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-50%) scale(1.1);
}

.center-modal-body {
    padding: 24px;
}

.center-modal-text {
    color: #ffffff;
    font-size: 16px;
    line-height: 1.6;
    margin: 0 0 12px 0;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.center-modal-subtext {
    color: rgba(255, 255, 255, 0.8);
    font-size: 14px;
    line-height: 1.5;
    margin: 0;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.center-modal-footer {
    padding: 16px 24px 24px 24px;
    display: flex;
    gap: 12px;
    justify-content: flex-end;
}

.center-modal-btn {
    padding: 10px 20px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 80px;
}

.center-modal-btn-primary {
    background: var(--primary-color);
    color: #ffffff;
}

.center-modal-btn-primary:hover {
    background: #3730a3;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.4);
}

.center-modal-btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.center-modal-btn-secondary:hover {
    background: rgba(255, 255, 255, 0.2);
    color: #ffffff;
    transform: translateY(-1px);
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes scaleIn {
    from {
        transform: scale(0.9);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

body {
    background: #000000;
    color: #e2e8f0;
    min-height: 100vh;
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
}

.glass-card {
    background: var(--card-bg);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
}

.glass-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
    border-color: rgba(255, 255, 255, 0.2);
}

.nav-item {
    transition: all 0.2s ease;
    border-radius: 10px;
    padding: 12px 16px;
}

.nav-item:hover {
    background: rgba(79, 70, 229, 0.2);
    transform: scale(1.05);
}

.category-title {
    position: relative;
    display: inline-block;
    margin-bottom: 20px;
    padding-bottom: 8px;
}

.category-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    border-radius: 3px;
}

.logo-text {
    background: linear-gradient(90deg, #8b5cf6, #ec4899);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 800;
}

.quick-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 15px;
    border-radius: 10px;
    background: rgba(30, 41, 59, 0.5);
    transition: all 0.2s ease;
}

.quick-link:hover {
    background: rgba(79, 70, 229, 0.2);
    transform: translateY(-3px);
}

.icon-wrapper {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
}

.bg-grid {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
    background-size: 40px 40px;
    z-index: -1;
}

.extract-code {
    background: rgba(16, 185, 129, 0.2);
    color: #10b981;
    border-radius: 4px;
    padding: 2px 6px;
    font-size: 0.9rem;
    font-family: monospace;
}

/* 二维码相关样式 */
.qr-container {
    position: relative;
}

/* 二维码显示模态框 */
.qr-display {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 9999;
    width: auto;
    height: auto;
}

.qr-content {
    background: var(--card-bg);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    padding: 20px;
    text-align: center;
    animation: fadeInUp 0.3s ease;
    min-width: 400px;
    min-height: 450px;
    max-width: 90vw;
    max-height: 90vh;
    overflow: hidden;
}

.qr-instruction {
    color: #ffffff;
    font-size: 16px;
    font-weight: 600;
    margin: 0 0 8px 0;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.qr-note {
    color: rgba(255, 255, 255, 0.8);
    font-size: 13px;
    margin: 0 0 20px 0;
    line-height: 1.4;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

/* 提示框模态框 */
.tip-modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 9999;
    width: auto;
    height: auto;
}

.tip-content {
    background: rgba(30, 41, 59, 0.95);
    backdrop-filter: blur(15px);
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
    padding: 0;
    text-align: center;
    animation: fadeInUp 0.3s ease;
    min-width: 320px;
    max-width: 400px;
    overflow: hidden;
}

.tip-header {
    background: linear-gradient(135deg, #f97316, #ea580c);
    padding: 20px;
    color: white;
}

.tip-header i {
    font-size: 2.5rem;
    margin-bottom: 10px;
    display: block;
}

.tip-header h3 {
    margin: 0;
    font-size: 1.2rem;
    font-weight: 600;
}

.tip-body {
    padding: 25px 20px;
}

.tip-instruction {
    color: #94a3b8;
    line-height: 1.6;
    margin-bottom: 20px;
    font-size: 0.95rem;
}

.search-keyword, .extract-code-section {
    background: rgba(249, 115, 22, 0.1);
    border: 2px solid rgba(249, 115, 22, 0.3);
    border-radius: 12px;
    padding: 15px;
    margin-bottom: 20px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* 提取码显示区域 */
.extract-code-section {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 10px;
    padding: 10px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* 搜索关键词显示区域 */
.search-keyword {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 10px;
    padding: 10px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.search-keyword::before {
    content: '🔍';
    position: absolute;
    top: -8px;
    left: 15px;
    background: var(--card-bg);
    padding: 0 8px;
    font-size: 1.2rem;
}

.search-keyword code, .extract-code-section code {
    color: #f97316;
    font-size: 1.1rem;
    font-weight: bold;
    background: none;
    padding: 0;
    border-radius: 0;
    flex: 1;
}

.copy-keyword-btn {
    background: rgba(249, 115, 22, 0.2);
    color: #f97316;
    border: 1px solid rgba(249, 115, 22, 0.4);
    border-radius: 6px;
    padding: 8px 12px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-left: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
}

.copy-keyword-btn:hover {
    background: rgba(249, 115, 22, 0.3);
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(249, 115, 22, 0.3);
}

.copy-keyword-btn:active {
    transform: translateY(0);
    background: rgba(249, 115, 22, 0.4);
}

.tip-note {
    color: #64748b;
    font-size: 0.85rem;
    margin: 0;
    font-style: italic;
}

.tip-close-btn {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
    border: 1px solid rgba(239, 68, 68, 0.3);
    border-radius: 8px;
    padding: 10px 20px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s ease;
    margin: 0 20px 20px 20px;
    width: calc(100% - 40px);
}

.tip-close-btn:hover {
    background: rgba(239, 68, 68, 0.2);
    transform: translateY(-1px);
}

.qr-content canvas {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    margin: 0 auto 15px;
    border-radius: 8px;
    max-width: none !important;
    max-height: none !important;
}

.qr-content img {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    margin: 0 auto 15px;
    border-radius: 8px;
    max-width: none !important;
    max-height: none !important;
}

.qr-content > div {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    margin: 0 auto;
}



.qr-tip {
    color: #94a3b8;
    font-size: 0.9rem;
    line-height: 1.5;
    margin-bottom: 15px;
}

.close-btn {
    background: rgba(239, 68, 68, 0.2);
    color: #ef4444;
    border: 1px solid rgba(239, 68, 68, 0.3);
    border-radius: 8px;
    padding: 8px 16px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.close-btn:hover {
    background: rgba(239, 68, 68, 0.3);
    transform: scale(1.05);
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInOut {
    0% {
        opacity: 0;
        transform: translateX(100%);
    }
    15%, 85% {
        opacity: 1;
        transform: translateX(0);
    }
    100% {
        opacity: 0;
        transform: translateX(100%);
    }
}