:root {
    --primary-color: #00f2ff;
    --secondary-color: #bc13fe;
    --bg-color: #050a14;
    --card-bg: rgba(255, 255, 255, 0.05);
    --text-color: #e0e6ed;
    --transition: all 0.3s ease;
}

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

body {
    font-family: 'Roboto', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    background-image: 
        linear-gradient(rgba(0, 242, 255, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 242, 255, 0.05) 1px, transparent 1px);
    background-size: 40px 40px;
    overflow-x: hidden;
    transition: opacity 0.3s ease;
}

body::before {
    content: '';
    position: absolute;
    top: -100px;
    left: 50%;
    transform: translateX(-50%);
    width: 600px;
    height: 300px;
    background: radial-gradient(circle, rgba(0, 242, 255, 0.2) 0%, transparent 70%);
    z-index: -1;
    filter: blur(50px);
}

.container {
    max-width: 1200px;
    width: 90%;
    margin: 50px auto;
    text-align: center;
}

header { 
    margin-bottom: 60px; 
    animation: fadeInDown 1s ease-out; 
}

h1 {
    font-family: 'Orbitron', sans-serif;
    font-size: 3rem;
    margin-bottom: 20px;
    text-transform: uppercase;
    background: linear-gradient(90deg, #fff, var(--primary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 20px rgba(0, 242, 255, 0.3);
    letter-spacing: 2px;
}

.subtitle {
    font-size: 1.1rem;
    color: #8b9bb4;
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.6;
}

.highlight { 
    color: var(--primary-color); 
    font-weight: bold; 
}

.tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    padding: 20px;
    margin-bottom: 60px;
}

.card {
    background: var(--card-bg);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 30px;
    text-align: left;
    position: relative;
    overflow: hidden;
    transition: var(--transition);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    display: flex;
    flex-direction: column;
}

.card:hover {
    transform: translateY(-10px);
    border-color: var(--primary-color);
    box-shadow: 0 15px 40px rgba(0, 242, 255, 0.15);
}

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

.card-icon {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: var(--primary-color);
    display: inline-block;
    background: rgba(0, 242, 255, 0.1);
    padding: 15px;
    border-radius: 12px;
    width: fit-content;
}

.card h3 {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: #fff;
}

.card p {
    color: #a0aec0;
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 25px;
    flex-grow: 1;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 25px;
    background: transparent;
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
    font-family: 'Orbitron', sans-serif;
    font-size: 0.9rem;
    border-radius: 5px;
    text-decoration: none;
    transition: var(--transition);
    cursor: pointer;
    width: 100%;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--primary-color);
    transition: var(--transition);
    z-index: -1;
}

.btn:hover {
    color: #000;
    box-shadow: 0 0 20px rgba(0, 242, 255, 0.4);
}

.btn:hover::before { 
    left: 0; 
}

.btn:active {
    transform: scale(0.98);
}

.btn i { 
    margin-left: 8px; 
}

.card.purple .card-icon {
    color: var(--secondary-color);
    background: rgba(188, 19, 254, 0.1);
}

.card.purple:hover {
    border-color: var(--secondary-color);
    box-shadow: 0 15px 40px rgba(188, 19, 254, 0.15);
}

.card.purple .btn {
    border-color: var(--secondary-color);
    color: var(--secondary-color);
}

.card.purple .btn::before {
    background: var(--secondary-color);
}

.card.purple .btn:hover {
    color: #ffffff;
    box-shadow: 0 0 20px rgba(188, 19, 254, 0.4);
}


.loading {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 1000;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

.loading.active {
    display: flex;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 5px solid rgba(255, 255, 255, 0.1);
    border-top: 5px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 15px;
}

.loading-text {
    color: var(--primary-color);
    font-family: 'Orbitron', sans-serif;
}

/* 新增的文档部分样式 */
.docs-section {
    background: var(--card-bg);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 40px;
    margin: 40px 0;
    text-align: left;
    position: relative;
}

.docs-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
}

.docs-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
}

.docs-title {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.8rem;
    color: #fff;
}

.docs-toggle {
    background: transparent;
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    transition: var(--transition);
    font-family: 'Orbitron', sans-serif;
    font-size: 0.9rem;
}

.docs-toggle:hover {
    background: var(--primary-color);
    color: #000;
}

.docs-content {
    display: none;
    margin-top: 20px;
}

.docs-content.active {
    display: block;
    animation: fadeIn 0.5s ease;
}

.docs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    margin-top: 30px;
}

.doc-item {
    background: rgba(0, 0, 0, 0.2);
    padding: 20px;
    border-radius: 10px;
    border-left: 3px solid var(--primary-color);
}

.doc-item h4 {
    font-family: 'Orbitron', sans-serif;
    color: var(--primary-color);
    margin-bottom: 10px;
    font-size: 1.2rem;
}

.doc-item p {
    color: #a0aec0;
    line-height: 1.6;
    font-size: 0.9rem;
}

.doc-item.purple {
    border-left-color: var(--secondary-color);
}

.doc-item.purple h4 {
    color: var(--secondary-color);
}

.features-list {
    list-style-type: none;
    margin: 20px 0;
}

.features-list li {
    padding: 8px 0;
    padding-left: 25px;
    position: relative;
    color: #a0aec0;
}

.features-list li:before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: bold;
}

footer {
    margin-top: auto;
    padding: 40px;
    color: #555;
    font-size: 0.8rem;
    width: 100%;
    text-align: center;
}

/* 动画 */
@keyframes fadeInDown {
    from { 
        opacity: 0; 
        transform: translateY(-20px); 
    }
    to { 
        opacity: 1; 
        transform: translateY(0); 
    }
}

@keyframes fadeIn {
    from { 
        opacity: 0; 
    }
    to { 
        opacity: 1; 
    }
}

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

/* 触摸设备优化 */
@media (hover: none) {
    .card:hover {
        transform: none;
        border-color: rgba(255, 255, 255, 0.1);
    }
    
    .btn:active {
        transform: scale(0.95);
    }
}

/* 响应式设计 */
@media (max-width: 768px) {
    h1 { 
        font-size: 2rem; 
    }
    
    .tools-grid { 
        grid-template-columns: 1fr; 
    }
    
    .lang-switcher { 
        position: relative; 
        top: 0; 
        right: 0; 
        justify-content: center; 
        margin-bottom: 20px; 
    }
    
    .container {
        margin: 30px auto;
    }
    
    .docs-section {
        padding: 25px;
    }
    
    .docs-header {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    
    .docs-grid {
        grid-template-columns: 1fr;
    }
}

/* 无障碍优化 - 减少动画偏好 */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
