/* 全局样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', 'Microsoft YaHei', sans-serif;
}

:root {
    --primary: #2563eb;
    --primary-dark: #1d4ed8;
    --secondary: #0ea5e9;
    --accent: #f59e0b;
    --dark: #1f2937;
    --light: #f9fafb;
    --gray: #6b7280;
    --success: #10b981;
    --border: #e5e7eb;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: #f8fafc;
    color: #1f2937;
    line-height: 1.6;
    font-size: 16px;
}

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

/* 页眉样式 */
header {
    background-color: white;
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

.logo-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    font-size: 20px;
}

.logo-text {
    font-size: 24px;
    font-weight: 700;
    color: var(--dark);
}

.logo-text span {
    color: var(--primary);
}

/* 桌面导航菜单 - PC端 */
.desktop-nav ul {
    display: flex;
    list-style: none;
    gap: 30px;
}

.desktop-nav a {
    text-decoration: none;
    color: var(--dark);
    font-weight: 500;
    font-size: 16px;
    transition: color 0.3s;
    position: relative;
    padding: 5px 0;
}

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

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

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

/* 移动菜单按钮 */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    color: var(--dark);
    cursor: pointer;
    padding: 5px;
    z-index: 1001;
}

/* 移动端导航菜单 */
.mobile-menu {
    display: none;
    position: fixed;
    top: 70px;
    left: 0;
    width: 100%;
    background-color: white;
    padding: 20px;
    box-shadow: var(--shadow);
    z-index: 999;
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.mobile-menu ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.mobile-menu a {
    display: block;
    padding: 12px 0;
    text-decoration: none;
    color: var(--dark);
    font-weight: 500;
    font-size: 16px;
    transition: color 0.3s;
    border-bottom: 1px solid #f1f5f9;
}

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

.mobile-menu a.active {
    color: var(--primary);
    font-weight: 600;
}

/* 主内容区 */
main {
    min-height: calc(100vh - 300px);
    padding: 40px 0;
}

.hero {
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    border-radius: 16px;
    padding: 60px 40px;
    margin-bottom: 60px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 200%;
    background: radial-gradient(circle, rgba(37, 99, 235, 0.1) 0%, transparent 70%);
    z-index: 0;
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero h1 {
    font-size: 48px;
    margin-bottom: 20px;
    color: var(--dark);
    line-height: 1.2;
}

.hero p {
    font-size: 20px;
    color: var(--gray);
    max-width: 800px;
    margin: 0 auto 30px;
}

.cta-button {
    display: inline-block;
    background: linear-gradient(to right, var(--primary), var(--secondary));
    color: white;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 18px;
    transition: transform 0.3s, box-shadow 0.3s;
    box-shadow: var(--shadow);
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

/* 服务卡片 */
.section-title {
    text-align: center;
    margin-bottom: 50px;
}

.section-title h2 {
    font-size: 36px;
    color: var(--dark);
    margin-bottom: 15px;
}

.section-title p {
    color: var(--gray);
    max-width: 700px;
    margin: 0 auto;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-bottom: 60px;
}

.service-card {
    background-color: white;
    border-radius: 12px;
    padding: 30px;
    box-shadow: var(--shadow);
    transition: transform 0.3s, box-shadow 0.3s;
    border: 1px solid var(--border);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.service-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    color: white;
    font-size: 24px;
}

.service-card h3 {
    font-size: 22px;
    margin-bottom: 15px;
    color: var(--dark);
}

.service-card p {
    color: var(--gray);
    margin-bottom: 20px;
}

.service-link {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: gap 0.3s;
}

.service-link:hover {
    gap: 10px;
}

/* 内容区域 */
.content-section {
    background-color: white;
    border-radius: 12px;
    padding: 40px;
    margin-bottom: 40px;
    box-shadow: var(--shadow);
}

.content-section h2 {
    font-size: 28px;
    margin-bottom: 20px;
    color: var(--dark);
    padding-bottom: 15px;
    border-bottom: 2px solid var(--border);
}

.content-section h3 {
    font-size: 22px;
    margin: 25px 0 15px;
    color: var(--dark);
}

.content-section p {
    margin-bottom: 15px;
    color: #374151;
}

.content-section ul, .content-section ol {
    margin: 15px 0 15px 20px;
    color: #374151;
}

.content-section li {
    margin-bottom: 8px;
}

.content-section strong {
    color: var(--dark);
}

/* 联系样式 */
.contact-section {
    background: linear-gradient(135deg, #1e3a8a 0%, #1e40af 100%);
    border-radius: 16px;
    padding: 50px 40px;
    text-align: center;
    color: white;
    margin-top: 60px;
}

.contact-section h2 {
    font-size: 36px;
    margin-bottom: 20px;
    color: white;
}

.contact-section p {
    font-size: 18px;
    margin-bottom: 30px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    opacity: 0.9;
}

.telegram-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background-color: white;
    color: var(--primary);
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 18px;
    transition: transform 0.3s, box-shadow 0.3s;
    box-shadow: var(--shadow);
}

.telegram-link:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

/* 页脚样式 */
footer {
    background-color: var(--dark);
    color: white;
    padding: 40px 0 20px;
    margin-top: 60px;
}

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

.footer-column h3 {
    font-size: 20px;
    margin-bottom: 20px;
    color: white;
}

.footer-column ul {
    list-style: none;
}

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

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

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

.copyright {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #374151;
    color: #9ca3af;
    font-size: 14px;
}

/* 响应式设计 */

/* PC端样式 (≥769px) */
@media (min-width: 769px) {
    /* 显示桌面导航，隐藏移动相关元素 */
    .desktop-nav {
        display: block;
    }
    
    .mobile-menu-btn {
        display: none;
    }
    
    .mobile-menu {
        display: none !important;
    }
}

/* 平板和手机端 (≤768px) */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 36px;
    }
    
    .hero p {
        font-size: 18px;
    }
    
    .section-title h2 {
        font-size: 28px;
    }
    
    .content-section {
        padding: 25px;
    }
    
    /* 移动端隐藏桌面导航，显示菜单按钮 */
    .desktop-nav {
        display: none;
    }
    
    .mobile-menu-btn {
        display: block;
    }
    
    /* 移动菜单样式 */
    .mobile-menu.active {
        display: block;
    }
    
    .mobile-menu ul {
        flex-direction: column;
        gap: 15px;
    }
    
    .mobile-menu a {
        display: block;
        padding: 10px 0;
    }
    
    /* 调整服务卡片布局 */
    .services-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .service-card {
        padding: 20px;
    }
    
    /* 调整页脚布局 */
    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    /* 调整联系区域 */
    .contact-section {
        padding: 30px 20px;
    }
    
    .contact-section h2 {
        font-size: 28px;
    }
}

/* 小手机端 (≤480px) */
@media (max-width: 480px) {
    .hero {
        padding: 40px 20px;
    }
    
    .hero h1 {
        font-size: 28px;
    }
    
    .hero p {
        font-size: 16px;
    }
    
    .cta-button {
        padding: 12px 24px;
        font-size: 16px;
    }
    
    .section-title h2 {
        font-size: 24px;
    }
    
    .content-section {
        padding: 20px 15px;
    }
    
    .content-section h2 {
        font-size: 24px;
    }
    
    .content-section h3 {
        font-size: 20px;
    }
    
    .service-card h3 {
        font-size: 20px;
    }
    
    .telegram-link {
        padding: 12px 20px;
        font-size: 16px;
    }
}