/* 主题样式 - AI科技感和未来感 */

/* 全局主题变量 */
:root {
    /* 主色调 - 科技蓝和紫色渐变 */
    --primary-color: #00c8ff;
    --secondary-color: #7000ff;
    --accent-color: #ff00c8;
    
    /* 背景色 */
    --dark-bg: #121212;
    --dark-bg-gradient: linear-gradient(135deg, #121212, #1a1a2e);
    --light-bg: #f8f9fa;
    --light-bg-gradient: linear-gradient(135deg, #f8f9fa, #e9ecef);
    
    /* 霓虹效果 */
    --neon-glow: 0 0 10px rgba(0, 200, 255, 0.5), 0 0 20px rgba(0, 200, 255, 0.3), 0 0 30px rgba(0, 200, 255, 0.1);
    --purple-glow: 0 0 10px rgba(112, 0, 255, 0.5), 0 0 20px rgba(112, 0, 255, 0.3), 0 0 30px rgba(112, 0, 255, 0.1);
    --pink-glow: 0 0 10px rgba(255, 0, 200, 0.5), 0 0 20px rgba(255, 0, 200, 0.3), 0 0 30px rgba(255, 0, 200, 0.1);
    
    /* 玻璃态效果 */
    --glass-bg: rgba(255, 255, 255, 0.1);
    --glass-border: 1px solid rgba(255, 255, 255, 0.2);
    --glass-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    --glass-blur: blur(10px);
    
    /* 未来感字体 */
    --future-font-weight: 300;
    --letter-spacing: 0.05em;
}

/* 全局主题应用 */
body {
    background-color: var(--dark-bg);
    background-image: var(--dark-bg-gradient);
    color: #ffffff;
    letter-spacing: var(--letter-spacing);
}

/* 科技感标题 */
h1, h2, h3, h4, h5, h6 {
    font-weight: var(--future-font-weight);
    letter-spacing: var(--letter-spacing);
}

/* 霓虹文字效果 */
.neon-text {
    color: var(--primary-color);
    text-shadow: var(--neon-glow);
}

.purple-neon-text {
    color: var(--secondary-color);
    text-shadow: var(--purple-glow);
}

.pink-neon-text {
    color: var(--accent-color);
    text-shadow: var(--pink-glow);
}

/* 渐变文字 */
.gradient-text {
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

/* 玻璃态效果 */
.glass-card {
    background: var(--glass-bg);
    border-radius: 16px;
    box-shadow: var(--glass-shadow);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: var(--glass-border);
    padding: 20px;
}

/* 未来感边框 */
.future-border {
    position: relative;
    border: 1px solid rgba(0, 200, 255, 0.3);
    border-radius: 8px;
    overflow: hidden;
}

.future-border::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 200, 255, 0.5), transparent);
    transform: translateX(-100%);
    animation: border-shine 3s infinite;
}

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

/* 科技感按钮 */
.tech-btn {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    border: none;
    border-radius: 30px;
    padding: 12px 30px;
    font-weight: 500;
    letter-spacing: 1px;
    position: relative;
    overflow: hidden;
    z-index: 1;
    transition: all 0.3s ease;
}

.tech-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--secondary-color), var(--primary-color));
    z-index: -1;
    transition: opacity 0.3s ease;
    opacity: 0;
}

.tech-btn:hover::before {
    opacity: 1;
}

.tech-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 7px 15px rgba(0, 200, 255, 0.3);
}

/* 科技感卡片 */
.tech-card {
    background-color: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    position: relative;
}

.tech-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
}

.tech-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(0, 200, 255, 0.2);
}

/* 未来感图标 */
.future-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    box-shadow: var(--neon-glow);
}

/* 科技感分隔线 */
.tech-divider {
    height: 3px;
    background: linear-gradient(to right, transparent, var(--primary-color), transparent);
    margin: 40px 0;
    border: none;
}

/* 未来感背景 */
.future-bg {
    background: var(--dark-bg-gradient);
    position: relative;
    overflow: hidden;
}

.future-bg::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 30% 50%, rgba(0, 200, 255, 0.1) 0%, transparent 50%);
}

.future-bg::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 70% 30%, rgba(112, 0, 255, 0.1) 0%, transparent 50%);
}

/* 科技感网格背景 */
.grid-bg {
    background-color: var(--dark-bg);
    background-image: 
        linear-gradient(rgba(0, 200, 255, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 200, 255, 0.05) 1px, transparent 1px);
    background-size: 20px 20px;
    position: relative;
}

.grid-bg::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, transparent 0%, var(--dark-bg) 70%);
}

/* 科技感加载动画 */
.tech-loader {
    width: 50px;
    height: 50px;
    border: 3px solid rgba(0, 200, 255, 0.3);
    border-radius: 50%;
    border-top-color: var(--primary-color);
    animation: spin 1s infinite ease-in-out;
    position: relative;
}

.tech-loader::before {
    content: '';
    position: absolute;
    top: -3px;
    left: -3px;
    right: -3px;
    bottom: -3px;
    border-radius: 50%;
    border: 3px solid transparent;
    border-top-color: var(--secondary-color);
    animation: spin 1.5s infinite ease-in-out;
}

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

/* 科技感滚动条 */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.05);
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(to bottom, var(--primary-color), var(--secondary-color));
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(to bottom, var(--secondary-color), var(--primary-color));
}

/* 未来感表单元素 */
.future-input {
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(0, 200, 255, 0.3);
    border-radius: 8px;
    padding: 12px 15px;
    color: var(--dark-bg);
    transition: all 0.3s ease;
}

.future-input:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(0, 200, 255, 0.2);
    outline: none;
}

.future-input::placeholder {
    color: rgba(0, 0, 0, 0.4);
}

/* 科技感选择框 */
.tech-select {
    position: relative;
    display: inline-block;
}

.tech-select select {
    appearance: none;
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(0, 200, 255, 0.3);
    border-radius: 8px;
    padding: 12px 40px 12px 15px;
    color: var(--dark-bg);
    cursor: pointer;
    transition: all 0.3s ease;
}

.tech-select::after {
    content: '▼';
    position: absolute;
    top: 50%;
    right: 15px;
    transform: translateY(-50%);
    color: var(--primary-color);
    pointer-events: none;
    font-size: 12px;
}

.tech-select select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(0, 200, 255, 0.2);
    outline: none;
}

/* 科技感复选框 */
.tech-checkbox {
    position: relative;
    display: inline-block;
    padding-left: 30px;
    cursor: pointer;
}

.tech-checkbox input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
}

.tech-checkbox .checkmark {
    position: absolute;
    top: 0;
    left: 0;
    height: 20px;
    width: 20px;
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(0, 200, 255, 0.3);
    border-radius: 4px;
    transition: all 0.3s ease;
}

.tech-checkbox:hover input ~ .checkmark {
    border-color: var(--primary-color);
}

.tech-checkbox input:checked ~ .checkmark {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.tech-checkbox .checkmark:after {
    content: '';
    position: absolute;
    display: none;
    left: 7px;
    top: 3px;
    width: 5px;
    height: 10px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.tech-checkbox input:checked ~ .checkmark:after {
    display: block;
}

/* 科技感开关 */
.tech-switch {
    position: relative;
    display: inline-block;
    width: 60px;
    height: 30px;
}

.tech-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.tech-switch .slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.1);
    transition: .4s;
    border-radius: 30px;
}

.tech-switch .slider:before {
    position: absolute;
    content: "";
    height: 22px;
    width: 22px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
}

.tech-switch input:checked + .slider {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
}

.tech-switch input:checked + .slider:before {
    transform: translateX(30px);
}

/* 科技感徽章 */
.tech-badge {
    display: inline-block;
    padding: 5px 12px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 0.5px;
}

/* 未来感提示框 */
.future-tooltip {
    position: relative;
    display: inline-block;
}

.future-tooltip .tooltip-text {
    visibility: hidden;
    width: 200px;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    text-align: center;
    border-radius: 6px;
    padding: 10px;
    position: absolute;
    z-index: 1;
    bottom: 125%;
    left: 50%;
    transform: translateX(-50%);
    opacity: 0;
    transition: opacity 0.3s;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(0, 200, 255, 0.3);
}

.future-tooltip .tooltip-text::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 50%;
    margin-left: -5px;
    border-width: 5px;
    border-style: solid;
    border-color: rgba(0, 0, 0, 0.8) transparent transparent transparent;
}

.future-tooltip:hover .tooltip-text {
    visibility: visible;
    opacity: 1;
}

/* 科技感进度条 */
.tech-progress {
    height: 8px;
    background-color: rgba(0, 0, 0, 0.1);
    border-radius: 4px;
    overflow: hidden;
    position: relative;
}

.tech-progress .progress-bar {
    height: 100%;
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
    border-radius: 4px;
    position: relative;
    overflow: hidden;
    transition: width 0.5s ease;
}

.tech-progress .progress-bar::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, 
        rgba(255, 255, 255, 0) 25%, 
        rgba(255, 255, 255, 0.2) 25%, 
        rgba(255, 255, 255, 0.2) 50%, 
        rgba(255, 255, 255, 0) 50%, 
        rgba(255, 255, 255, 0) 75%, 
        rgba(255, 255, 255, 0.2) 75%, 
        rgba(255, 255, 255, 0.2) 100%);
    background-size: 20px 20px;
    animation: progress-animation 1s linear infinite;
}

@keyframes progress-animation {
    0% {
        background-position: 0 0;
    }
    100% {
        background-position: 20px 0;
    }
}

/* 科技感表格 */
.tech-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.tech-table thead {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
}

.tech-table th {
    padding: 15px;
    text-align: left;
    font-weight: 500;
    letter-spacing: 1px;
}

.tech-table tbody tr {
    background-color: white;
    transition: all 0.3s ease;
}

.tech-table tbody tr:hover {
    background-color: rgba(0, 200, 255, 0.05);
}

.tech-table td {
    padding: 15px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.tech-table tbody tr:last-child td {
    border-bottom: none;
}

/* 科技感警告框 */
.tech-alert {
    padding: 15px 20px;
    border-radius: 8px;
    position: relative;
    margin: 20px 0;
    border-left: 4px solid;
}

.tech-alert.info {
    background-color: rgba(0, 200, 255, 0.1);
    border-left-color: var(--primary-color);
    color: var(--primary-color);
}

.tech-alert.warning {
    background-color: rgba(255, 193, 7, 0.1);
    border-left-color: #ffc107;
    color: #856404;
}

.tech-alert.error {
    background-color: rgba(220, 53, 69, 0.1);
    border-left-color: #dc3545;
    color: #721c24;
}

.tech-alert.success {
    background-color: rgba(40, 167, 69, 0.1);
    border-left-color: #28a745;
    color: #155724;
}

/* 科技感标签 */
.tech-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.tech-tag {
    display: inline-block;
    padding: 5px 12px;
    background-color: rgba(0, 200, 255, 0.1);
    color: var(--primary-color);
    border-radius: 20px;
    font-size: 0.8rem;
    transition: all 0.3s ease;
}

.tech-tag:hover {
    background-color: var(--primary-color);
    color: white;
}

/* 科技感引用 */
.tech-quote {
    padding: 20px;
    background-color: rgba(0, 0, 0, 0.02);
    border-left: 3px solid var(--primary-color);
    margin: 20px 0;
    position: relative;
}

.tech-quote::before {
    content: '"';
    position: absolute;
    top: 10px;
    left: 10px;
    font-size: 40px;
    color: rgba(0, 200, 255, 0.2);
    font-family: Georgia, serif;
}

.tech-quote p {
    margin: 0;
    padding-left: 20px;
    font-style: italic;
}

.tech-quote cite {
    display: block;
    margin-top: 10px;
    padding-left: 20px;
    color: var(--primary-color);
    font-style: normal;
    font-weight: 500;
}

/* 科技感数字计数器 */
.tech-counter {
    font-size: 3rem;
    font-weight: 700;
    color: var(--primary-color);
    text-shadow: var(--neon-glow);
    margin-bottom: 10px;
}

.tech-counter-title {
    font-size: 1rem;
    color: var(--gray-color);
    letter-spacing: 1px;
}

/* 科技感时间线 */
.tech-timeline {
    position: relative;
    padding-left: 30px;
}

.tech-timeline::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 2px;
    height: 100%;
    background: linear-gradient(to bottom, var(--primary-color), var(--secondary-color));
}

.tech-timeline-item {
    position: relative;
    padding-bottom: 30px;
}

.tech-timeline-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -39px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    box-shadow: var(--neon-glow);
}

.tech-timeline-date {
    font-size: 0.9rem;
    color: var(--primary-color);
    margin-bottom: 10px;
    font-weight: 500;
}

.tech-timeline-content {
    background-color: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.tech-timeline-title {
    font-size: 1.2rem;
    margin-bottom: 10px;
    color: var(--dark-bg);
}

.tech-timeline-text {
    color: var(--gray-color);
}