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

:root {
    --primary: #3b82f6;
    --secondary: #10b981;
    --dark: #1f2937;
    --light: #f9fafb;
    --white: #ffffff;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-400: #9ca3af;
    --gray-600: #4b5563;
    --gray-700: #374151;
}

body {
    font-family: 'Inter', 'Microsoft YaHei', 'PingFang SC', system-ui, sans-serif;
    background-color: var(--light);
    color: var(--dark);
    line-height: 1.6;
}

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

/* 导航栏 */
nav {
    background-color: var(--white);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    position: fixed;
    width: 100%;
    z-index: 1000;
    top: 0;
}

nav .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 1rem;
}

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

.logo i {
    margin-right: 0.5rem;
}

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

.nav-links a {
    color: var(--gray-700);
    text-decoration: none;
    transition: color 0.3s ease;
}

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

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 1.25rem;
    cursor: pointer;
    color: var(--gray-700);
}

.mobile-menu {
    display: none;
    background-color: var(--white);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    position: absolute;
    width: 100%;
    left: 0;
    top: 100%;
}

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

.mobile-menu a {
    display: block;
    padding: 0.75rem 1rem;
    color: var(--gray-700);
    text-decoration: none;
    border-bottom: 1px solid var(--gray-200);
}

.mobile-menu a:hover {
    color: var(--primary);
    background-color: var(--gray-100);
}

/* 英雄区域 */
.hero {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: var(--white);
    padding: 8rem 1rem 4rem;
    text-align: center;
}

.hero h1 {
    font-size: 2.5rem;
    font-weight: bold;
    margin-bottom: 1.5rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.hero p {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    max-width: 48rem;
    margin-left: auto;
    margin-right: auto;
}

.hero-buttons {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    justify-content: center;
    align-items: center;
}

.btn {
    display: inline-block;
    padding: 0.75rem 2rem;
    border-radius: 0.5rem;
    font-weight: bold;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

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

.btn-primary:hover {
    background-color: var(--gray-100);
}

.btn-outline {
    background-color: transparent;
    border: 2px solid var(--white);
    color: var(--white);
}

.btn-outline:hover {
    background-color: var(--white);
    color: var(--primary);
}

.hero-stats {
    margin-top: 3rem;
}

.hero-stats .badge {
    display: inline-block;
    background-color: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(4px);
    padding: 1rem 1.5rem;
    border-radius: 0.75rem;
}

.hero-stats .badge span {
    font-weight: 600;
    font-size: 1.125rem;
}

/* 通用区块样式 */
.section {
    padding: 4rem 1rem;
}

.section-title {
    font-size: 2rem;
    font-weight: bold;
    text-align: center;
    margin-bottom: 3rem;
}

.bg-white {
    background-color: var(--white);
}

.bg-gray-50 {
    background-color: var(--gray-100);
}

/* 卡片网格 */
.grid {
    display: grid;
    gap: 2rem;
}

.grid-cols-1 {
    grid-template-columns: repeat(1, 1fr);
}

.grid-cols-2 {
    grid-template-columns: repeat(1, 1fr);
}

.grid-cols-3 {
    grid-template-columns: repeat(1, 1fr);
}

.grid-cols-4 {
    grid-template-columns: repeat(1, 1fr);
}

/* 功能卡片 */
.card {
    background-color: var(--white);
    padding: 1.5rem;
    border-radius: 0.75rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.card:hover {
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
}

.card-icon {
    font-size: 2rem;
    color: var(--primary);
    margin-bottom: 1rem;
}

.card h3 {
    font-size: 1.25rem;
    font-weight: bold;
    margin-bottom: 0.75rem;
}

.card p {
    color: var(--gray-600);
}

.card-light {
    background-color: var(--gray-100);
}

/* 扩展卡片 */
.extension-card {
    background-color: var(--white);
    padding: 1.25rem;
    border-radius: 0.5rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.extension-card:hover {
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
}

.extension-card h3 {
    font-size: 1.125rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
}

.extension-card p {
    color: var(--gray-600);
    margin-bottom: 0.75rem;
}

.extension-card a {
    color: var(--primary);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
}

.extension-card a:hover {
    text-decoration: underline;
}

.extension-card a i {
    margin-left: 0.5rem;
}

/* 文档卡片 */
.doc-card {
    background-color: var(--gray-100);
    padding: 1.5rem;
    border-radius: 0.75rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.doc-card:hover {
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
}

.doc-card h3 {
    font-size: 1.25rem;
    font-weight: bold;
    margin-bottom: 0.75rem;
}

.doc-card p {
    color: var(--gray-600);
    margin-bottom: 1rem;
}

.doc-card a {
    color: var(--primary);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
}

.doc-card a:hover {
    text-decoration: underline;
}

.doc-card a i {
    margin-left: 0.5rem;
}

/* 社区卡片 */
.community-card {
    background-color: var(--white);
    padding: 1.5rem;
    border-radius: 0.75rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    text-align: center;
    transition: all 0.3s ease;
}

.community-card:hover {
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
}

.community-card .card-icon {
    margin-bottom: 1rem;
}

.community-card h3 {
    font-size: 1.25rem;
    font-weight: bold;
    margin-bottom: 0.75rem;
}

.community-card p {
    color: var(--gray-600);
    margin-bottom: 1rem;
}

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

.community-card a:hover {
    text-decoration: underline;
}

/* CTA 区域 */
.cta {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: var(--white);
    text-align: center;
    padding: 4rem 1rem;
}

.cta h2 {
    font-size: 2rem;
    font-weight: bold;
    margin-bottom: 1.5rem;
}

.cta p {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    max-width: 48rem;
    margin-left: auto;
    margin-right: auto;
}

.cta .btn-primary {
    color: var(--primary);
}

.cta .btn-outline {
    border-color: var(--white);
    color: var(--white);
}

/* 页脚 */
footer {
    background-color: var(--dark);
    color: var(--white);
    padding: 3rem 1rem;
}

footer .grid {
    gap: 2rem;
}

footer h3 {
    font-size: 1.25rem;
    font-weight: bold;
    margin-bottom: 1rem;
}

footer p {
    color: var(--gray-400);
}

footer ul {
    list-style: none;
}

footer ul li {
    margin-bottom: 0.5rem;
}

footer ul li a {
    color: var(--gray-400);
    text-decoration: none;
    transition: color 0.3s ease;
}

footer ul li a:hover {
    color: var(--white);
}

.footer-social {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.footer-social a {
    color: var(--gray-400);
    font-size: 1.25rem;
    transition: color 0.3s ease;
}

.footer-social a:hover {
    color: var(--white);
}

.footer-bottom {
    border-top: 1px solid var(--gray-700);
    margin-top: 2rem;
    padding-top: 2rem;
    text-align: center;
}

.footer-bottom p {
    color: var(--gray-400);
}

/* 响应式设计 */
@media (min-width: 640px) {
    .grid-cols-2 {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .grid-cols-3 {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .hero h1 {
        font-size: 3rem;
    }
    
    .hero-buttons {
        flex-direction: row;
    }
}

@media (min-width: 768px) {
    .grid-cols-3 {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .grid-cols-4 {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .section-title {
        font-size: 2.5rem;
    }
    
    .nav-links {
        display: flex;
    }
    
    .mobile-menu-btn {
        display: none;
    }
    
    .footer .grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .grid-cols-3 {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .grid-cols-4 {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .footer .grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 767px) {
    .nav-links {
        display: none;
    }
    
    .mobile-menu-btn {
        display: block;
    }
}
/* 页脚底部链接样式 - 继承父元素颜色20260320 */
.footer-bottom a {
    color: inherit;           /* 继承父元素颜色，即 var(--gray-400) */
    text-decoration: none;    /* 去掉下划线 */
}

.footer-bottom a:hover {
    color: var(--white);       /* 悬停时变白色 */
    text-decoration: underline; /* 悬停时显示下划线 */
}
/* 页脚底部链接样式 - 继承父元素颜色20260320 */
