:root {
    --primary-color: #5e72e4;
    --secondary-color: #f7fafc;
    --accent-color: #667eea;
    --text-color: #2d3748;
    --light-text: #f8f9fa;
    --shadow-color: rgba(0, 0, 0, 0.1);
    --card-bg: rgba(255, 255, 255, 0.85);
    --neumorph-shadow-1: 8px 8px 16px #d1d9e6, -8px -8px 16px #ffffff;
    --neumorph-shadow-2: 4px 4px 8px #d1d9e6, -4px -4px 8px #ffffff;
    --neumorph-shadow-inset: inset 3px 3px 6px #d1d9e6, inset -3px -3px 6px #ffffff;
}

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

body {
    font-family: 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', sans-serif;
    background-color: #f0f2f5;
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
    background-image: radial-gradient(circle at 10% 20%, rgba(100, 126, 234, 0.1) 0%, rgba(94, 114, 228, 0.1) 90%);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}


/* 拟态设计按钮 */
.btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: 12px;
    background: var(--card-bg);
    box-shadow: var(--neumorph-shadow-2);
    border: none;
    color: var(--primary-color);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    text-align: center;
}

.btn:hover {
    box-shadow: var(--neumorph-shadow-inset);
    transform: translateY(2px);
}

.btn-primary {
    background: var(--primary-color);
    color: white;
    box-shadow: 0 4px 6px rgba(94, 114, 228, 0.3);
}

.btn-primary:hover {
    background: var(--accent-color);
    box-shadow: 0 2px 4px rgba(94, 114, 228, 0.3);
}

/* 拟态卡片 */
.card {
    background: var(--card-bg);
    border-radius: 16px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: var(--neumorph-shadow-1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 10px 10px 20px #d1d9e6, -10px -10px 20px #ffffff;
}

/* 导航栏 */
header {
    background: var(--card-bg);
    box-shadow: 0 4px 12px var(--shadow-color);
    position: sticky;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(10px);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
}

.logo {
    display: flex;
    align-items: center;
    font-size: 24px;
    font-weight: 700;
    color: var(--primary-color);
    text-decoration: none;
}

.logo img {
    height: 40px;
    margin-right: 10px;
}

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

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

.nav-links a {
    color: var(--text-color);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
    position: relative;
}

.nav-links a:hover {
    color: var(--primary-color);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: width 0.3s;
}

.nav-links a:hover::after {
    width: 100%;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: var(--text-color);
}

/* 英雄区域 */
.hero {
    padding: 80px 0;
    text-align: center;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 20px;
    background: linear-gradient(to right, var(--primary-color), var(--accent-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero p {
    font-size: 1.2rem;
    max-width: 700px;
    margin: 0 auto 30px;
    color: #4a5568;
}

/* 功能区域 */
.features {
    padding: 60px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 50px;
    font-size: 2.2rem;
    color: var(--text-color);
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background: linear-gradient(to right, var(--primary-color), var(--accent-color));
    margin: 15px auto 0;
    border-radius: 2px;
}

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

.feature-item {
    text-align: center;
    padding: 30px;
}

.feature-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    background: var(--card-bg);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--neumorph-shadow-2);
}

.feature-icon i {
    font-size: 36px;
    color: var(--primary-color);
    font-family: "Font Awesome 6 Free" !important; /* 强制使用Font Awesome字体 */
}

/* 功能模块区域 */
.functions {
    padding: 60px 0;
    background: #f8fafc;
}

.function-list {
    list-style: none;
    margin-top: 15px;
}

.function-list li {
    padding: 8px 0;
    border-bottom: 1px dashed #e2e8f0;
    display: flex;
    align-items: center;
}

.function-list li:last-child {
    border-bottom: none;
}

.function-list i {
    color: var(--primary-color);
    margin-right: 10px;
    font-size: 18px;
    font-family: "Font Awesome 6 Free" !important;
}

/* 使用说明 */
.usage {
    padding: 60px 0;
    background: var(--secondary-color);
}

.code-block {
    position: relative;
    background: #2d3748;
    color: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    margin: 20px 0;
    overflow-x: auto;
    font-family: 'Courier New', Courier, monospace;
}

/* 复制按钮样式（适配Font Awesome图标） */
.copy-btn {
    position: absolute;
    top: 8px;
    right: 8px;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    border-radius: 4px;
    padding: 4px 8px;
    color: white;
    cursor: pointer;
    opacity: 0;
    transition: opacity 0.3s;
    font-size: 12px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.code-block:hover .copy-btn {
    opacity: 1;
}

.copy-btn:hover {
    background: rgba(255, 255, 255, 0.3);
}

.copy-btn i {
    font-family: "Font Awesome 6 Free" !important; /* 确保图标使用正确字体 */
}

.copy-btn.copied {
    background: var(--primary-color);
}

/* 统计区域 */
.stats {
    padding: 60px 0;
    text-align: center;
}

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

.stat-item {
    padding: 30px;
}

.stat-number {
    font-size: 3rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 10px;
}

/* 页脚 */
footer {
    background: var(--text-color);
    color: var(--light-text);
    padding: 60px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-column h3 {
    color: white;
    margin-bottom: 20px;
    font-size: 1.2rem;
    position: relative;
    padding-bottom: 10px;
}

.footer-column h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background: var(--primary-color);
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: #cbd5e0;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: white;
}

.copyright {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #4a5568;
    color: #a0aec0;
    font-size: 0.9rem;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .nav-links {
        display: none;
        position: absolute;
        top: 80px;
        left: 0;
        right: 0;
        background: var(--card-bg);
        flex-direction: column;
        padding: 20px;
        box-shadow: 0 10px 15px var(--shadow-color);
        border-radius: 0 0 16px 16px;
    }

    .nav-links.active {
        display: flex;
    }

    .nav-links li {
        margin: 10px 0;
    }

    .mobile-menu-btn {
        display: block;
    }

    .hero h1 {
        font-size: 2.2rem;
    }

    .hero p {
        font-size: 1rem;
    }

    .section-title {
        font-size: 1.8rem;
    }
}

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

.animate {
    animation: fadeIn 0.6s ease forwards;
}

.delay-1 { animation-delay: 0.2s; }
.delay-2 { animation-delay: 0.4s; }
.delay-3 { animation-delay: 0.6s; }
