:root {
    --primary-color: #4a89dc;
    --secondary-color: #8e44ad;
    --accent-color: #f39c12;
    --light-bg: #f8f9fa;
    --dark-text: #2d3436;
    --light-text: #636e72;
    --white: #ffffff;
    --shadow: 0 6px 12px rgba(0,0,0,0.15);
    --navbar-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    line-height: 1.6;
    color: var(--dark-text);
    background-color: var(--white);
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* 导航栏样式 */
.navbar {
    background-color: var(--white);
    box-shadow: var(--navbar-shadow);
    position: sticky;
    top: 0;
    z-index: 100;
    padding: 1.2rem 0;
}

.logo img {
    height: 50px;
    transition: transform 0.3s;
}

.logo:hover img {
    transform: scale(1.05);
}

.logo span {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary-color);
    letter-spacing: -0.5px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

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

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

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

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

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

.logo {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    animation: float 3s ease-in-out infinite;
}

.logo img {
    height: 40px;
}

.logo span {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary-color);
}

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

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

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

/* 简介部分 */
.intro {
    padding: 10rem 0;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: var(--white);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.intro::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: radial-gradient(circle at 20% 30%, rgba(255,255,255,0.15) 0%, rgba(255,255,255,0) 70%);
    z-index: 1;
}

.intro .container {
    max-width: 800px;
    text-align: center;
    padding: 4rem 2rem;
}

.intro-actions {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 1.5rem;
}

.btn.secondary-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 28px;
    background-color: #4a6cf7;
    color: white;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    border: none;
    box-shadow: 0 4px 12px rgba(74, 108, 247, 0.25);
    position: relative;
    z-index: 10;
}

.btn.secondary-btn:hover {
    background-color: #3a5bdb;
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(74, 108, 247, 0.35);
}

.btn.secondary-btn:active {
    transform: translateY(0);
    box-shadow: 0 4px 8px rgba(74, 108, 247, 0.2);
}
    position: relative;
    z-index: 9999;
    cursor: pointer;
    pointer-events: auto;
}
    background-color: var(--color-secondary);
    color: var(--color-text);
    &:hover {
        background-color: var(--color-secondary-dark);
        transform: translateY(-2px);
    }
}

.primary-btn {
    background-color: var(--accent-color);
    color: white;
    box-shadow: 0 4px 12px rgba(243, 156, 18, 0.3);
    opacity: 0;
    animation: fadeIn 0.8s ease-out 0.6s forwards;
}

.primary-btn:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(243, 156, 18, 0.4);
    background-color: #e67e22;
}

/* 特性部分 */
.features {
    padding: 6rem 0;
}

.features h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 4rem;
    color: var(--dark-text);
}

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

.feature-card {
    background-color: var(--white);
    padding: 2rem;
    border-radius: 8px;
    box-shadow: var(--shadow);
    transition: transform 0.3s;
}

.feature-card:hover {
    transform: translateY(-5px);
}

.feature-card h3 {
    color: var(--secondary-color);
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.feature-card p {
    color: var(--light-text);
}

/* 快速开始步骤样式 */
.install {
    padding: 6rem 0 8rem;
    background: var(--light-bg);
}

.install h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 4rem;
    color: var(--dark-text);
}

.install-steps {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.step {
    margin-bottom: 0;
    padding: 2rem;
    background: var(--white);
    border-radius: 12px;
    box-shadow: var(--shadow);
    transition: transform 0.3s, box-shadow 0.3s;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.step:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 20px rgba(0,0,0,0.12);
}

.step h3 {
    color: var(--secondary-color);
    margin-bottom: 1.2rem;
    font-size: 1.3rem;
    display: flex;
    align-items: center;
}

.step h3::before {
    content: '';
    display: inline-block;
    width: 32px;
    height: 32px;
    background: var(--secondary-color);
    color: var(--white);
    border-radius: 50%;
    text-align: center;
    line-height: 32px;
    margin-right: 1rem;
    font-weight: bold;
    flex-shrink: 0;
}

.step p {
    margin-bottom: 1.5rem;
    color: var(--light-text);
    flex-grow: 1;
}

.code-block {
    background-color: #2d3436;
    color: var(--white);
    padding: 1rem;
    border-radius: 8px;
    overflow-x: auto;
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
}

.code-block code {
    font-family: 'Consolas', 'Monaco', monospace;
}

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

.step a:hover {
    text-decoration: underline;
}

/* 贡献指南部分 */
.contribute {
    padding: 6rem 0;
}

.contribute h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 2rem;
    color: var(--dark-text);
}

.contribute p {
    max-width: 800px;
    margin: 0 auto 2rem;
    text-align: center;
    color: var(--light-text);
}

.contribute h3 {
    text-align: center;
    margin-bottom: 1.5rem;
    color: var(--secondary-color);
}

.contribute ul {
    max-width: 600px;
    margin: 0 auto 2rem;
    list-style-position: inside;
    color: var(--light-text);
}

.contribute li {
    margin-bottom: 0.8rem;
}

/* 页脚样式 */
.footer {
    background-color: var(--dark-text);
    color: var(--white);
    padding: 3rem 0;
    text-align: center;
}

.footer p {
    margin-bottom: 1rem;
    opacity: 0.8;
}

.footer a {
    color: var(--white);
    text-decoration: none;
}

.footer a:hover {
    text-decoration: underline;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .intro h1 {
        font-size: 2.8rem;
    }

    .features h2, .install h2, .contribute h2 {
        font-size: 2rem;
    }

    .install-steps {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 1.5rem;
    }

    .nav-links {
        gap: 1.5rem;
    }

    .logo span {
        font-size: 1.5rem;
    }
}

@media (max-width: 480px) {
    .navbar .container {
        flex-direction: column;
        gap: 1rem;
        padding: 0.5rem 0;
    }

    .nav-links {
        flex-wrap: wrap;
        justify-content: center;
        gap: 1rem 1.5rem;
    }

    .intro {
        padding: 8rem 0 6rem;
    }

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

    .intro p {
        font-size: 1.1rem;
    }

    .install-steps {
        grid-template-columns: 1fr;
    }

    .btn {
        padding: 0.9rem 2rem;
        font-size: 0.95rem;
    }
}

@media (max-width: 480px) {
    .step h3 {
        font-size: 1.1rem;
    }
}
