/* 暗色主题，未来科技感样式 */
:root {
    --primary-color: #00f3ff;
    --secondary-color: #9d4edd;
    --accent-color: #ff00aa;
    --background-dark: #0f0c29;
    --background-darker: #000000;
    --card-bg: #1a1a2e;
    --text-light: #ffffff;
    --text-gray: #cccccc;
    --border-color: #2a2a4a;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, var(--background-dark), var(--background-darker));
    color: var(--text-light);
    line-height: 1.6;
    min-height: 100vh;
    background-attachment: fixed;
    overflow-x: hidden;
}

/* 粒子背景 */
#particles-js {
    position: fixed;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: -1;
}

/* 鼠标跟随光效 */
.cursor-light {
    position: fixed;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(0, 243, 255, 0.8), transparent 70%);
    pointer-events: none;
    transform: translate(-50%, -50%);
    z-index: 9999;
    display: none;
}

/* 在桌面设备上显示鼠标光效 */
@media (hover: hover) {
    .cursor-light {
        display: block;
    }
}

/* 头部导航 */
header {
    background: rgba(10, 8, 24, 0.8);
    backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid var(--border-color);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 2rem;
}

.logo {
    font-size: 1.8rem;
    font-weight: 700;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 10px rgba(0, 243, 255, 0.3);
    animation: logoGlow 3s infinite alternate;
}

@keyframes logoGlow {
    0% {
        text-shadow: 0 0 10px rgba(0, 243, 255, 0.3);
    }
    100% {
        text-shadow: 0 0 20px rgba(0, 243, 255, 0.6), 0 0 30px rgba(0, 243, 255, 0.3);
    }
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.nav-links {
    display: flex;
    list-style: none;
}

.nav-links li {
    margin-left: 2rem;
}

.nav-links a {
    color: var(--text-gray);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
    padding: 0.5rem 0;
}

.nav-links a:hover {
    color: var(--primary-color);
}

.nav-links a.active {
    color: var(--primary-color);
}

.nav-links a.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--primary-color);
    box-shadow: 0 0 10px var(--primary-color);
}

/* 语言切换按钮 */
.language-toggle {
    background: rgba(26, 26, 46, 0.7);
    color: var(--text-light);
    border: 1px solid var(--border-color);
    border-radius: 5px;
    padding: 0.5rem 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
}

.language-toggle:hover {
    background: rgba(0, 243, 255, 0.1);
    border-color: var(--primary-color);
    box-shadow: 0 0 10px rgba(0, 243, 255, 0.3);
}

/* 主要内容区域 */
main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
    position: relative;
    z-index: 10;
}

/* 首页英雄区域 */
.hero {
    text-align: center;
    padding: 3rem 0;
    margin-bottom: 3rem;
    position: relative;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, rgba(0, 243, 255, 0.1) 0%, transparent 70%);
    z-index: -1;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 1.5rem;
    overflow: hidden;
    border-right: 2px solid var(--primary-color);
    white-space: nowrap;
    animation: blinkCursor 1s infinite;
}

@keyframes blinkCursor {
    0%, 100% { border-color: var(--primary-color); }
    50% { border-color: transparent; }
}

.hero p {
    font-size: 1.2rem;
    color: var(--text-gray);
    max-width: 600px;
    margin: 0 auto 2rem;
    animation: fadeInUp 1s ease-out 0.5s both;
}

.models-showcase {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.model-card {
    background: rgba(26, 26, 46, 0.7);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 2rem;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
    position: relative;
    overflow: hidden;
}

.model-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, transparent, rgba(0, 243, 255, 0.1), transparent);
    transform: translateX(-100%);
    transition: transform 0.6s ease;
}

.model-card:hover::before {
    transform: translateX(100%);
}

.model-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0, 243, 255, 0.3);
    border-color: var(--primary-color);
}

.model-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

/* 打字机效果 */
.typewriter {
    overflow: hidden;
    border-right: 2px solid var(--primary-color);
    white-space: nowrap;
    animation: typing 3.5s steps(40, end), blinkCursor 1s infinite;
}

@keyframes typing {
    from { width: 0; }
    to { width: 100%; }
}

@keyframes blinkCursor {
    0%, 100% { border-color: var(--primary-color); }
    50% { border-color: transparent; }
}

/* 特色服务 */
.features {
    margin: 4rem 0;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
}

.feature-item {
    text-align: center;
    padding: 1.5rem;
    background: rgba(26, 26, 46, 0.5);
    border-radius: 10px;
    border: 1px solid var(--border-color);
    transition: all 0.5s ease;
    backdrop-filter: blur(5px);
    opacity: 0;
    transform: translateY(20px);
}

.feature-item.animated {
    opacity: 1;
    transform: translateY(0);
}

.feature-item:hover {
    transform: scale(1.05);
    border-color: var(--primary-color);
    box-shadow: 0 0 15px rgba(0, 243, 255, 0.2);
}

.feature-item h3 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

/* 模型详情页 */
.models-intro {
    text-align: center;
    margin-bottom: 3rem;
}

.models-intro h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.model-details {
    display: grid;
    gap: 2rem;
}

.model-card-detail {
    background: rgba(26, 26, 46, 0.7);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 2rem;
    backdrop-filter: blur(5px);
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.5s ease;
}

.model-card-detail.animated {
    opacity: 1;
    transform: translateY(0);
}

.model-card-detail h2 {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    font-size: 2rem;
    text-align: center;
}

.model-info p {
    margin-bottom: 1rem;
    color: var(--text-gray);
}

.model-info ul {
    margin: 1rem 0 1rem 2rem;
}

.model-info li {
    margin-bottom: 0.5rem;
}

/* 配置页 */
.config-intro {
    text-align: center;
    margin-bottom: 2rem;
}

.config-intro h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.config-instructions {
    background: rgba(26, 26, 46, 0.7);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    backdrop-filter: blur(5px);
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.5s ease;
}

.config-instructions.animated {
    opacity: 1;
    transform: translateY(0);
}

.model-config-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

.model-config {
    background: rgba(26, 26, 46, 0.7);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 1.5rem;
    backdrop-filter: blur(5px);
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.5s ease;
}

.model-config.animated {
    opacity: 1;
    transform: translateY(0);
}

.model-config.placeholder {
    opacity: 0.7;
}

.model-config h2 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.config-info {
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 5px;
}

.config-info h3 {
    color: var(--primary-color);
    margin: 1rem 0 0.5rem 0;
}

.config-info p, .config-info ol {
    color: var(--text-gray);
    margin-bottom: 0.5rem;
}

.config-info ul {
    margin: 0.5rem 0 0.5rem 2rem;
    color: var(--text-gray);
}

.config-info li {
    margin-bottom: 0.3rem;
}

.config-image-placeholder {
    margin-top: 1rem;
    text-align: center;
}

.image-placeholder {
    background: rgba(0, 0, 0, 0.3);
    border: 1px dashed var(--border-color);
    border-radius: 5px;
    padding: 1rem;
    margin-top: 0.5rem;
    color: var(--text-gray);
    font-style: italic;
    text-align: center;
}

.image-container {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 1rem;
}

.config-image {
    max-width: 100%;
    max-height: 200px;
    cursor: pointer;
    border-radius: 5px;
    transition: transform 0.3s ease;
}

.config-image:hover {
    transform: scale(1.05);
    border: 1px solid var(--primary-color);
}

/* 图片放大查看模态框 */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
}

.modal-content {
    margin: auto;
    display: block;
    width: 80%;
    max-width: 800px;
    max-height: 90%;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border-radius: 10px;
}

.modal-content:hover {
    transform: translate(-50%, -50%) scale(1.02);
}

.close {
    position: absolute;
    top: 20px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    z-index: 1001;
}

.close:hover,
.close:focus {
    color: var(--primary-color);
}

/* 关于页 */
.about-intro {
    text-align: center;
    margin-bottom: 3rem;
}

.about-intro h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.about-content {
    display: grid;
    gap: 2rem;
}

.about-section {
    background: rgba(26, 26, 46, 0.7);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 2rem;
    backdrop-filter: blur(5px);
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.5s ease;
}

.about-section.animated {
    opacity: 1;
    transform: translateY(0);
}

.about-section h2 {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    font-size: 1.8rem;
}

.about-section p {
    margin-bottom: 1rem;
    color: var(--text-gray);
}

.about-section ul {
    margin-left: 2rem;
    color: var(--text-gray);
}

.about-section li {
    margin-bottom: 0.5rem;
}

.promise-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.promise-item {
    text-align: center;
    padding: 1.5rem;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 8px;
}

.promise-item h3 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

/* 页脚 */
footer {
    text-align: center;
    padding: 2rem;
    margin-top: 3rem;
    border-top: 1px solid var(--border-color);
    color: var(--text-gray);
    position: relative;
    z-index: 10;
}

/* 响应式设计 */
@media (max-width: 768px) {
    nav {
        flex-direction: column;
        padding: 1rem;
    }
    
    .nav-right {
        width: 100%;
        justify-content: space-between;
    }
    
    .nav-links {
        margin-top: 1rem;
        width: 100%;
        justify-content: center;
    }
    
    .nav-links li {
        margin: 0 1rem;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    main {
        padding: 1rem;
    }
    
    .models-showcase {
        grid-template-columns: 1fr;
    }
    
    .model-config-container {
        grid-template-columns: 1fr;
    }
}

/* 动画效果 */
@keyframes glow {
    0% {
        box-shadow: 0 0 5px rgba(0, 243, 255, 0.5);
    }
    50% {
        box-shadow: 0 0 20px rgba(0, 243, 255, 0.8);
    }
    100% {
        box-shadow: 0 0 5px rgba(0, 243, 255, 0.5);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.model-card:hover {
    animation: glow 2s infinite;
}

/* 进入视口动画 */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.animate-on-scroll.animated {
    opacity: 1;
    transform: translateY(0);
}

/* 代码样式 */
code {
    background: rgba(0, 0, 0, 0.3);
    padding: 0.2rem 0.4rem;
    border-radius: 4px;
    color: var(--accent-color);
}