/* 公共样式表 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

:root {
    --primary-color: #2574f4;
    --primary-dark: #1a56db;
    --text-dark: #333;
    --text-medium: #666;
    --text-light: #999;
    --white: #fff;
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

body {
    color: #333;
    line-height: 1.6;
    background-color: #fff;
    padding-top: 70px; /* 为固定导航栏预留空间 */
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* 导航栏样式 - 固定在顶部 */
header {
    background-color: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.8rem 0;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo img {
    height: 40px;
}

.logo-text {
    font-size: 1.2rem;
    font-weight: 600;
    color: #2574f4;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2.5rem;
}

.nav-links a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
    padding: 8px 0; /* 增加点击区域 */
}

/* 导航链接悬停下划线动画 */
.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: #2574f4;
    transition: width 0.3s ease;
}
.nav-links a:hover {
    color: #2574f4;
}
.nav-links a:hover::after {
    width: 100%;
}

.nav-links a.active {
    color: #2574f4;
}

.nav-links a.active::after {
    width: 100%;
}

.price-tag {
    position: relative;
}

/* 特惠标签样式 */
.badge {
    position: absolute;
    top: -10px;
    right: -36px;
    background-color: #ff4d4f;
    color: white;
    font-size: 0.7rem;
    padding: 0.1rem 0.5rem;
    border-radius: 5px;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(255, 77, 79, 0.7);
    }
    
    70% {
        transform: scale(1.05);
        box-shadow: 0 0 0 5px rgba(255, 77, 79, 0);
    }
    
    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(255, 77, 79, 0);
    }
}
/* AI标签样式 */
.ai-badge {
    position: absolute;
    top: -10px;
    right: -24px;
    background: linear-gradient(135deg, #4285f4 0%, #34a853 100%);
    color: white;
    font-size: 0.7rem;
    padding: 0.1rem 0.5rem;
    border-radius: 4px;
    font-weight: 600;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.nav-links li {
    position: relative;
}

/* 移动端AI标签调整 */
@media (max-width: 992px) {
     
    .mobile-nav-links li {
        position: relative;
    }
    
    .mobile-nav-links .ai-badge {
        top: 17px;
        left: auto;
        right: 140px;
        margin-left: 0;
    }
}

.nav-buttons {
    display: flex;
    gap: 1rem;
}

/* 页面标题样式 */
.page-header {
    padding: 80px 0;
    background: linear-gradient(135deg, #f5f7fa 0%, #eef2f7 100%);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
        radial-gradient(circle at 20% 30%, rgba(37, 116, 244, 0.05) 0%, transparent 20%),
        radial-gradient(circle at 80% 70%, rgba(37, 116, 244, 0.05) 0%, transparent 20%);
    z-index: 0;
}

.page-header h1 {
    font-size: 2.8rem;
    margin-bottom: 15px;
    background: linear-gradient(90deg, var(--primary-color), var(--primary-dark));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    position: relative;
    z-index: 1;
}

.page-header p {
    font-size: 1.2rem;
    color: var(--text-medium);
    max-width: 700px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

/* 行动召唤区 */
.cta-section {
    padding: 4rem 0;
}
.cta-card {
    background: linear-gradient(135deg, #2574f4 0%, #1a56db 100%);
    border-radius: 16px;
    padding: 3rem;
    text-align: center;
    color: white;
    box-shadow: 0 10px 30px rgba(37, 116, 244, 0.2);
}

.cta-card h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.cta-card p {
    font-size: 1.1rem;
    max-width: 700px;
    margin: 0 auto 2.5rem;
    opacity: 0.9;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.cta-buttons .btn-primary {
    background: white;
    color: #2574f4;
    box-shadow: 0 4px 14px rgba(37, 116, 244, 0.3);
}
.cta-buttons .btn-primary:hover {
    background: #2574f4;
    color: white;
    border: 1px solid white;
}
.cta-buttons .btn-outline {
    background-color: transparent;
    color: white;
    border-color: white;
}

/* 按钮样式 - 添加渐变效果 */
.btn {
    display: inline-block;
    padding: 0.6rem 1rem; /* 增大点击区域 */
    border-radius: 6px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: linear-gradient(135deg, #2574f4 0%, #1a56db 100%);
    color: white;
    border: none;
    box-shadow: 0 4px 14px rgba(37, 116, 244, 0.3);
}

.btn-primary:hover {
    background: linear-gradient(135deg, #1a56db 0%, #0d47a1 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(37, 116, 244, 0.4);
}
.btn-auth {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    color: white;
    border: none;
    box-shadow: 0 4px 14px rgba(37, 116, 244, 0.3);
}

.btn-auth:hover {
    border-color: #ffd700;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(37, 116, 244, 0.4);
}

.btn-outline {
    background: transparent;
    color: #2574f4;
    border: 1px solid #2574f4;
    z-index: 1;
}

.btn-outline::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, #2574f4 0%, #1a56db 100%);
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.btn-outline:hover {
    color: white;
    transform: translateY(-2px);
}

.btn-outline:hover::before {
    opacity: 1;
}

/* 渐变卡片样式 */
.gradient-card {
    background: linear-gradient(135deg, white 0%, #f9fafb 100%);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    border-radius: 12px;
}

.gradient-card:hover {
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
    transform: translateY(-5px);
}

/* 移动端菜单样式 */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 1rem; /* 扩大点击区域 */
    z-index: 101;
}

.bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    background-color: #333;
    transition: all 0.3s ease;
}

/* 移动端菜单 - 显示在LOGO下方，从右到左弹出 */
.mobile-menu {
    position: absolute;
    top: 100%; /* 显示在LOGO行下方 */
    right: 0;
    height: calc(100vh - 70px); 
    /* 减去导航栏高度 */
    width: 80%;
    max-width: 300px;
    background-color: white;
    box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
    transform: translateX(100%); /* 初始在右侧隐藏 */
    transition: transform 0.3s ease-in-out;
    z-index: 99;
    padding-top: 1.5rem;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
}

.mobile-menu.active {
    transform: translateX(0); /* 从右向左弹出 */
}

.mobile-nav-links {
    list-style: none;
    margin-bottom: 1.2rem;
}

.mobile-nav-links li {
    margin-bottom: 0.8rem;
}

/* 移动端链接扩大点击区域 */
.mobile-nav-links a {
    text-decoration: none;
    color: #333;
    font-size: 1.1rem;
    font-weight: 500;
    display: block;
    padding: 0.8rem 0;
}

.mobile-nav-links a.active {
    color: #2574f4;
}

/* 移动端按钮扩大点击区域 */
.mobile-nav-buttons {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.mobile-nav-buttons .btn {
    padding: 0.8rem;
}

/* 移动端价格标签调整 */
@media (max-width: 768px) {
    .price-tag .badge {
        top: 17px;
        right: 130px;
    }
}

/* 页脚样式 - 统一并居中 */
footer {
    background-color: #f9fafb;
    padding: 3rem 0 1.5rem;
    margin-top: 3rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

/* 页脚名称旁添加LOGO */
.footer-col:first-child {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.footer-logo img {
    height: 36px;
}

.footer-logo-text {
    font-size: 1.1rem;
    font-weight: 600;
    color: #2574f4;
}

.footer-desc {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.footer-links-title {
    font-size: 1.1rem;
    margin-bottom: 1rem;
    color: #333;
    text-align: center;
}

.footer-links {
    list-style: none;
    text-align: center;
}

.footer-links li {
    margin-bottom: 0.8rem;
}

.footer-links a {
    text-decoration: none;
    color: #666;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: #2574f4;
}

.footer-contact {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.footer-contact-item {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.footer-contact-icon img {
    width: 24px;
    height: 24px;
    object-fit: contain;
}

.footer-contact-text {
    color: #666;
    font-size: 0.9rem;
}

.footer-bottom {
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    padding-top: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: center;
}

/* 版权信息在前，备案号在后，居中显示 */
.copyright {
    color: #666;
    font-size: 0.8rem;
    text-align: center;
    order: -1;
    margin-bottom: 0.5rem;
}
.copyright a {
    text-decoration: none;
    color: #666;
    font-size: 0.8rem;
    transition: color 0.3s ease;
}
.copyright a:hover {
    color: #2574f4;
}

.record-info {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    justify-content: center;
}

.record-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    line-height: 1; /* 取消文字行高影响 */
}

.record-item img {
    width: 16px;
    height: 16px;
    object-fit: contain;
     vertical-align: middle; /* 额外确保图片垂直居中 */
}

.record-item a {
    text-decoration: none;
    color: #666;
    font-size: 0.8rem;
    transition: color 0.3s ease;
    display: flex;
    align-items: center; /* 链接内部也保持居中 */
    gap: 0.3rem;
}

.record-item a:hover {
    color: #2574f4;
}

/* 响应式样式 */
@media (max-width: 992px) {
    .page-header h1 {
        font-size: 2.4rem;
    }
    .nav-links, .nav-buttons {
        display: none;
    }
    
    .menu-toggle {
        display: block;
    }
    
    /* 移动端菜单按钮动画 */
    .menu-toggle.active .bar:nth-child(2) {
        opacity: 0;
    }
    
    .menu-toggle.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }
    
    .menu-toggle.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }
}

/* 移动端页脚脚布局调整 */
@media (max-width: 768px) {
    .page-header {
        padding: 60px 0;
    }
    .cta-section {
        padding: 60px 0;
    }
    .footer-content {
        grid-template-columns: 1fr 1fr;
        gap: 1.5rem; /* 适中的间距 */
        padding: 0 1rem; /* 页面两边适中间距 */
    }
    
    /* LOGO区域保持居中并占满一行 */
    .footer-col:first-child {
        grid-column: 1 / -1;
    }
    
    /* 产品和资源板块显示在一行 */
    .footer-col:nth-child(2),
    .footer-col:nth-child(3) {
        grid-row: 2;
    }
    
    /* 公司版块显示在下一行左边 */
    .footer-col:nth-child(4) {
        grid-row: 3;
        grid-column: 1;
    }
}

@media (max-width: 576px) {
    .page-header {
        padding: 40px 0;
    }

    .page-header h1 {
        font-size: 2rem;
    }

    .page-header p,
    .section-title p {
        font-size: 1rem;
    }
    .footer-content {
        grid-template-columns: 1fr 1fr;
        gap: 1.2rem;
        padding: 0 0.8rem;
    }
    
    .footer-col:first-child {
        grid-column: 1 / -1;
    }
    
    .footer-col:nth-child(2),
    .footer-col:nth-child(3) {
        grid-row: 2;
    }
    
    .footer-col:nth-child(4) {
        grid-row: 3;
        grid-column: 1;
    }
}