/* 全局样式 */
:root {
    --primary-bg: #121212;
    --secondary-bg: #1f1f1f;
    --glass-bg: rgba(255, 255, 255, 0.1);
    --glass-border: rgba(255, 255, 255, 0.2);
    --primary-text: #ffffff;
    --secondary-text: #a0a0b9;
    --neon-blue: #00d9ff;
    --neon-purple: #ff00ff;
    --neon-red: #ff2a6d;
    --neon-green: #05ffa1;
    --neon-yellow: #ffff00;
    --neon-orange: #ff9900;
    --blur-amount: 10px;
    --border-radius: 12px;
    --box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background-color: var(--primary-bg);
    color: var(--primary-text);
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 2;
}

a {
    color: var(--primary-text);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--neon-blue);
}

/* 背景效果 */
.background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    overflow: hidden;
}

.gradient-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--primary-bg) 0%, var(--secondary-bg) 100%);
}

.noise-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.05;
    background-image: url('data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIzMDAiIGhlaWdodD0iMzAwIj48ZmlsdGVyIGlkPSJhIiB4PSIwIiB5PSIwIj48ZmVUdXJidWxlbmNlIGJhc2VGcmVxdWVuY3k9Ii43NSIgc3RpdGNoVGlsZXM9InN0aXRjaCIgdHlwZT0iZnJhY3RhbE5vaXNlIi8+PGZlQ29sb3JNYXRyaXggdHlwZT0ic2F0dXJhdGUiIHZhbHVlcz0iMCIvPjwvZmlsdGVyPjxwYXRoIGQ9Ik0wIDBoMzAwdjMwMEgweiIgZmlsdGVyPSJ1cmwoI2EpIiBvcGFjaXR5PSIuMDUiLz48L3N2Zz4=');
}

.glow-effect {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.15;
}

.glow-1 {
    top: 20%;
    left: 15%;
    width: 300px;
    height: 300px;
    background-color: var(--neon-blue);
    animation: float 15s ease-in-out infinite;
}

.glow-2 {
    bottom: 10%;
    right: 10%;
    width: 400px;
    height: 400px;
    background-color: var(--neon-purple);
    animation: float 20s ease-in-out infinite reverse;
}

@keyframes float {
    0% { transform: translate(0, 0); }
    50% { transform: translate(-30px, 30px); }
    100% { transform: translate(0, 0); }
}

/* 顶部导航栏 */
.header {
    position: sticky;
    top: 0;
    z-index: 100;
    padding: 15px 0;
    margin-bottom: 30px;
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
}

.logo-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--neon-blue), var(--neon-purple));
    display: flex;
    justify-content: center;
    align-items: center;
    margin-right: 15px;
    position: relative;
    overflow: hidden;
}

.logo-icon::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: conic-gradient(transparent, rgba(255, 255, 255, 0.5), transparent 30%);
    animation: rotate 4s linear infinite;
}

.logo-icon i {
    position: relative;
    z-index: 1;
    color: var(--primary-text);
    font-size: 18px;
}

.logo-text {
    font-size: 1.5rem;
    font-weight: bold;
    background: linear-gradient(to right, var(--neon-blue), var(--neon-purple));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.nav ul {
    display: flex;
    list-style: none;
}

.nav ul li {
    margin-left: 30px;
}

.nav-link {
    font-weight: 500;
    padding: 8px 15px;
    border-radius: 20px;
    position: relative;
    transition: var(--transition);
}

.nav-link:hover, .nav-link.active {
    background: rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 3px;
    background: linear-gradient(to right, var(--neon-blue), var(--neon-purple));
    border-radius: 3px;
}

/* 主要内容区域 */
.main {
    padding: 40px 0;
    min-height: calc(100vh - 180px);
}

.section-header {
    text-align: center;
    margin-bottom: 40px;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 15px;
    background: linear-gradient(to right, var(--neon-blue), var(--neon-purple));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 10px rgba(0, 217, 255, 0.3);
}

.section-desc {
    color: var(--secondary-text);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}

/* 查询区域 */
.search-section {
    padding: 60px 0;
    margin-bottom: 40px;
}

.search-box {
    display: flex;
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    position: relative;
    overflow: hidden;
}

.search-box::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, var(--neon-blue), var(--neon-purple), var(--neon-blue));
    z-index: -1;
    border-radius: calc(var(--border-radius) + 2px);
    animation: border-animation 3s linear infinite;
}

@keyframes border-animation {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.search-type {
    width: 120px;
    padding: 10px;
}

.search-input {
    flex: 1;
    padding: 10px;
}

.search-button {
    padding: 10px;
}

/* 自定义下拉选择器 */
.custom-select {
    position: relative;
    width: 100%;
}

.select-selected {
    background-color: rgba(255, 255, 255, 0.05);
    color: var(--primary-text);
    padding: 10px 16px;
    border-radius: var(--border-radius);
    cursor: pointer;
    user-select: none;
    transition: var(--transition);
}

.select-selected:after {
    position: absolute;
    content: "";
    top: 14px;
    right: 10px;
    width: 0;
    height: 0;
    border: 6px solid transparent;
    border-color: var(--primary-text) transparent transparent transparent;
}

.select-selected.select-arrow-active:after {
    border-color: transparent transparent var(--primary-text) transparent;
    top: 7px;
}

.select-items {
    position: absolute;
    background-color: rgba(37, 42, 65, 0.95);
    backdrop-filter: blur(var(--blur-amount));
    -webkit-backdrop-filter: blur(var(--blur-amount));
    top: 100%;
    left: 0;
    right: 0;
    z-index: 99;
    border-radius: var(--border-radius);
    margin-top: 5px;
    box-shadow: var(--box-shadow);
    overflow: hidden;
}

.select-item {
    color: var(--primary-text);
    padding: 10px 16px;
    cursor: pointer;
    user-select: none;
    transition: var(--transition);
}

.select-item:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.select-hide {
    display: none;
}

/* 自定义输入框 */
.glass-input {
    width: 100%;
    padding: 10px 16px;
    background-color: rgba(255, 255, 255, 0.05);
    border: none;
    border-radius: var(--border-radius);
    color: var(--primary-text);
    font-size: 1rem;
    transition: var(--transition);
    outline: none;
}

.glass-input:focus {
    background-color: rgba(255, 255, 255, 0.1);
    box-shadow: 0 0 0 2px rgba(0, 217, 255, 0.3);
}

.glass-input::placeholder {
    color: var(--secondary-text);
}

/* 霓虹按钮 */
.neon-button {
    position: relative;
    padding: 12px 24px;
    background: transparent;
    border: none;
    border-radius: 30px;
    color: var(--primary-text);
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    overflow: hidden;
    transition: var(--transition);
    outline: none;
}

.neon-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, var(--neon-blue), var(--neon-purple));
    border-radius: 30px;
    z-index: -2;
}

.neon-button::after {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    right: 2px;
    bottom: 2px;
    background-color: rgba(31, 31, 31, 0.9);
    border-radius: 28px;
    z-index: -1;
    transition: var(--transition);
}

.neon-button:hover::after {
    background-color: rgba(31, 31, 31, 0.7);
}

.neon-button-text {
    position: relative;
    z-index: 1;
}

.neon-button-glow {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 30px;
    filter: blur(15px);
    background: linear-gradient(45deg, var(--neon-blue), var(--neon-purple));
    opacity: 0;
    z-index: -3;
    transition: var(--transition);
}

.neon-button:hover .neon-button-glow {
    opacity: 0.5;
}

.neon-button:active {
    transform: scale(0.95);
}

.neon-button.small {
    padding: 8px 16px;
    font-size: 0.9rem;
}

.neon-button.cancel::before {
    background: linear-gradient(45deg, #666, #999);
}

/* 页脚 */
.footer {
    padding: 20px 0;
    text-align: center;
    margin-top: 60px;
}

.footer p {
    color: var(--secondary-text);
}

/* 响应式设计 */
@media (max-width: 768px) {
    .search-box {
        flex-direction: column;
    }
    
    .search-type, .search-input, .search-button {
        width: 100%;
        margin-bottom: 10px;
    }
    
    .nav ul li {
        margin-left: 15px;
    }
    
    .section-title {
        font-size: 2rem;
    }
}

@keyframes rotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* 增强的提示消息样式 */
.toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    pointer-events: none;
}

.toast {
    position: relative;
    min-width: 300px;
    max-width: 400px;
    margin-bottom: 15px;
    padding: 15px 20px;
    border-radius: var(--border-radius);
    background-color: rgba(31, 31, 31, 0.95);
    backdrop-filter: blur(var(--blur-amount));
    -webkit-backdrop-filter: blur(var(--blur-amount));
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
    color: var(--primary-text);
    font-weight: 500;
    transform: translateX(120%);
    opacity: 0;
    transition: transform 0.5s ease, opacity 0.5s ease;
    pointer-events: auto;
    overflow: hidden;
    border-left: 4px solid transparent;
}

.toast.show {
    transform: translateX(0);
    opacity: 1;
}

.toast::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    animation: toast-shine 2s linear infinite;
}

@keyframes toast-shine {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.toast-info {
    border-left-color: var(--neon-blue);
}

.toast-success {
    border-left-color: var(--neon-green);
}

.toast-warning {
    border-left-color: var(--neon-yellow);
}

.toast-error {
    border-left-color: var(--neon-red);
}

.toast-icon {
    display: inline-block;
    margin-right: 10px;
    font-size: 1.2rem;
    vertical-align: middle;
}

.toast-content {
    display: flex;
    align-items: center;
}

.toast-title {
    font-weight: bold;
    margin-bottom: 5px;
    font-size: 1.1rem;
}

.toast-message {
    font-size: 0.95rem;
}

.toast-close {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 20px;
    height: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    opacity: 0.7;
    transition: opacity 0.3s;
}

.toast-close:hover {
    opacity: 1;
}

.toast-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 3px;
    width: 100%;
    background: linear-gradient(to right, var(--neon-blue), var(--neon-purple));
    animation: toast-progress 5s linear forwards;
}

@keyframes toast-progress {
    0% { width: 100%; }
    100% { width: 0%; }
}

/* 弹出式提示框 */
.alert-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
}

.alert-overlay.show {
    opacity: 1;
    visibility: visible;
}

.alert-box {
    position: relative;
    width: 90%;
    max-width: 400px;
    background-color: rgba(31, 31, 31, 0.95);
    border-radius: var(--border-radius);
    padding: 25px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    transform: scale(0.9);
    opacity: 0;
    transition: transform 0.3s, opacity 0.3s;
    overflow: hidden;
}

.alert-overlay.show .alert-box {
    transform: scale(1);
    opacity: 1;
}

.alert-box::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, var(--neon-blue), var(--neon-purple), var(--neon-blue));
    z-index: -1;
    border-radius: calc(var(--border-radius) + 2px);
    animation: border-animation 3s linear infinite;
}

.alert-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(45deg, var(--neon-blue), var(--neon-purple));
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto 20px;
    font-size: 30px;
    color: var(--primary-text);
}

.alert-title {
    font-size: 1.5rem;
    font-weight: bold;
    text-align: center;
    margin-bottom: 15px;
    background: linear-gradient(to right, var(--neon-blue), var(--neon-purple));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.alert-message {
    text-align: center;
    margin-bottom: 25px;
    color: var(--primary-text);
    font-size: 1.1rem;
}

.alert-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
}

/* 加载动画 */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.loading-spinner {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: 3px solid transparent;
    border-top-color: var(--neon-blue);
    border-bottom-color: var(--neon-purple);
    animation: spin 1.5s linear infinite;
}

.loading-spinner::before {
    content: '';
    position: absolute;
    top: 5px;
    left: 5px;
    right: 5px;
    bottom: 5px;
    border-radius: 50%;
    border: 3px solid transparent;
    border-top-color: var(--neon-purple);
    border-bottom-color: var(--neon-blue);
    animation: spin 2s linear infinite reverse;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loading-text {
    margin-top: 20px;
    color: var(--primary-text);
    font-size: 1.2rem;
    text-align: center;
    background: linear-gradient(to right, var(--neon-blue), var(--neon-purple));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* 震动动画 */
@keyframes shake {
    0%, 100% { transform: translateX(0); }
    10%, 30%, 50%, 70%, 90% { transform: translateX(-5px); }
    20%, 40%, 60%, 80% { transform: translateX(5px); }
}

.shake {
    animation: shake 0.6s cubic-bezier(.36,.07,.19,.97) both;
}

/* 脉冲动画 */
@keyframes pulse {
    0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(0, 217, 255, 0.7); }
    70% { transform: scale(1.05); box-shadow: 0 0 0 10px rgba(0, 217, 255, 0); }
    100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(0, 217, 255, 0); }
}

.pulse {
    animation: pulse 1.5s infinite;
}

/* 闪烁动画 */
@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.blink {
    animation: blink 1s linear infinite;
}
