/* 主样式表 */
:root {
    --primary-color: #2563eb;
    --primary-dark: #1d4ed8;
    --primary-light: #dbeafe;
    --secondary-color: #ef4444;
    --secondary-dark: #dc2626;
    --secondary-light: #fee2e2;
    --success-color: #10b981;
    --warning-color: #f59e0b;
    --gray-light: #f9fafb;
    --gray-medium: #e5e7eb;
    --gray-dark: #6b7280;
    --text-main: #1f2937;
    --text-light: #6b7280;
    --white: #ffffff;
    --base-font-size: 16px;
}

/* 基本设置 */
html {
    scroll-behavior: smooth;
}

body {
    font-family: "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-main);
}

/* 背景图案 */
.bg-pattern {
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.2'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

/* 导航样式 */
.nav-link {
    position: relative;
    padding: 0.5rem 0;
    color: var(--text-main);
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: var(--primary-color);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

/* 特色功能卡片 */
.feature-card {
    background-color: var(--white);
    border-radius: 0.75rem;
    border: 1px solid var(--gray-medium);
    padding: 1.5rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
}

.feature-icon {
    width: 3rem;
    height: 3rem;
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

/* 按钮样式 */
.quick-nav-btn {
    width: 2.5rem;
    height: 2.5rem;
    background-color: var(--white);
    color: var(--gray-dark);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    cursor: pointer;
    border: 1px solid var(--gray-medium);
}

.quick-nav-btn:hover {
    background-color: var(--primary-color);
    color: var(--white);
    transform: scale(1.1);
}

/* FAQ样式 */
.faq-question {
    cursor: pointer;
}

.faq-question i {
    transition: transform 0.3s ease;
}

.faq-item.active .faq-question i {
    transform: rotate(180deg);
}

.faq-answer {
    display: none;
}

.faq-item.active .faq-answer {
    display: block;
}

/* 计数器动画 */
.counter-number {
    font-feature-settings: "tnum";
    font-variant-numeric: tabular-nums;
}

/* 媒体查询 */
@media (max-width: 768px) {
    .feature-icon {
        margin: 0 auto 1rem;
    }

    .hero-content {
        text-align: center;
    }
}

/* 自定义字体大小类 */
body.font-small {
    font-size: 14px;
}

body.font-medium {
    font-size: 16px;
}

body.font-large {
    font-size: 18px;
}

body.font-xl {
    font-size: 20px;
} 