/* 全局样式 */
:root {
    --primary-color: #1a365d;
    --secondary-color: #2563eb;
    --accent-color: #3b82f6;
    --text-color: #1f2937;
    --light-text: #f3f4f6;
    --background: #ffffff;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Noto Sans SC', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
}

/* 导航栏 */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 1rem 5%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    letter-spacing: 1px;
}

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

.nav-links a {
    color: #333;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

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

/* 下拉菜单样式 */
.dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-toggle {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    position: relative;
    z-index: 1001;
}

/* 移除三角箭头相关样式 */
.dropdown-toggle::after {
    display: none;
}

.dropdown:hover .dropdown-toggle::after {
    display: none;
}

/* 添加一个空的伪元素，扩大可点击区域 */
.dropdown::before {
    content: '';
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    height: 20px;
    background: transparent;
    z-index: 999;
}

.dropdown-menu {
    position: absolute;
    top: calc(100% + 0.2rem);
    left: 0;
    background: white;
    min-width: 200px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    padding: 0.5rem 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(5px);
    transition: opacity 0.2s ease, visibility 0.2s ease, transform 0.2s ease;
    z-index: 1000;
    pointer-events: none;
    will-change: transform, opacity;
    margin-top: 0;
}

.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
}

.dropdown-menu a {
    display: block;
    padding: 0.75rem 1.5rem;
    color: #333;
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
}

.dropdown-menu a:hover {
    background: #f8fafc;
    color: inherit;
}

/* 添加活跃状态样式 */
.dropdown-menu a.active {
    background: transparent;
    color: #333;
    font-weight: 500;
    text-decoration: none;
    padding: 0.75rem 1.5rem;
    display: block;
    transition: all 0.3s ease;
    position: relative;
}

/* 确保激活状态的悬停效果与非激活状态一致 */
.dropdown-menu a.active:hover {
    background: #f8fafc;
    color: inherit;
}

/* 英雄区域 */
.hero {
    height: 100vh;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 0 5%;
    color: var(--light-text);
}

.hero-content h1 {
    font-size: 3rem;
    margin-bottom: 1.5rem;
}

.hero-content p {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

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

.primary-button, .secondary-button {
    padding: 0.75rem 2rem;
    border-radius: 8px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
}

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

.secondary-button {
    background: transparent;
    color: white;
    border: 2px solid white;
}

.primary-button:hover {
    background: #2563eb;
    transform: translateY(-2px);
}

.secondary-button:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

/* 解决方案区域 */
.solutions {
    padding: 8rem 5%;
    background: #ffffff;
    position: relative;
    overflow: hidden;
}

.solutions::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 20% 20%, rgba(37, 99, 235, 0.05) 0%, transparent 50%),
                radial-gradient(circle at 80% 80%, rgba(59, 130, 246, 0.05) 0%, transparent 50%);
    pointer-events: none;
}

.solutions h2 {
    text-align: center;
    font-size: 2.8rem;
    margin-bottom: 4rem;
    color: var(--text-color);
    position: relative;
    display: inline-block;
}

.solutions h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    border-radius: 2px;
}

.solutions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

.solution-card {
    background: #fff;
    border-radius: 8px;
    padding: 2rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-decoration: none;
    display: block;
    color: var(--text-color);
}

.solution-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

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

.solution-card p {
    color: var(--text-color);
    line-height: 1.6;
    margin: 0;
}

.solution-card:nth-child(1) {
    border-left: 4px solid #3b82f6;
}

.solution-card:nth-child(2) {
    border-left: 4px solid #10b981;
}

.solution-card:nth-child(3) {
    border-left: 4px solid #f59e0b;
}

.solution-card:nth-child(4) {
    border-left: 4px solid #8b5cf6;
}

.solution-card:nth-child(5) {
    border-left: 4px solid #ec4899;
}

.solution-card:nth-child(6) {
    border-left: 4px solid #06b6d4;
}

/* 关于我们区域 */
.about {
    padding: 8rem 5%;
    background: #f8fafc;
    position: relative;
}

.about-content {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.about h2 {
    font-size: 2.8rem;
    margin-bottom: 2rem;
    color: var(--text-color);
    position: relative;
    display: inline-block;
}

.about h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    border-radius: 2px;
}

.about-content > p {
    font-size: 1.2rem;
    color: #4a5568;
    max-width: 800px;
    margin: 0 auto 4rem;
    line-height: 1.8;
}

.about-features {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 4rem;
}

.feature {
    background: white;
    padding: 2.5rem;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.feature::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.feature:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1);
}

.feature:hover::before {
    transform: scaleX(1);
}

.feature h3 {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    position: relative;
}

.feature h3::before {
    display: none;
}

.feature:hover h3::before {
    background: var(--primary-color);
}

.feature p {
    color: #4a5568;
    line-height: 1.8;
    font-size: 1.1rem;
}

/* 联系我们区域 */
.contact {
    padding: 8rem 5%;
    background: #ffffff;
}

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

.contact-content {
    max-width: 800px;
    margin: 0 auto;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contact-form input,
.contact-form textarea {
    padding: 1rem;
    border: 1px solid #e5e7eb;
    border-radius: 4px;
    font-family: inherit;
    font-size: 1rem;
}

.contact-form textarea {
    height: 150px;
    resize: vertical;
}

.submit-button {
    background: #3b82f6;
    color: white;
    padding: 1rem;
    border: none;
    border-radius: 4px;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.submit-button:hover {
    background: #2563eb;
}

/* 页脚 */
footer {
    background: #0B0F1F;
    color: var(--light-text);
    padding: 2rem 5%;
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: flex-start;
    max-width: 1200px;
    margin: 0 auto;
    gap: 2rem;
}

.footer-section {
    flex: 1;
    min-width: 250px;
}

.footer-section h4 {
    font-size: 1rem;
    margin-bottom: 1rem;
    color: #ffffff;
    font-weight: normal;
}

.footer-section p {
    margin-bottom: 0.8rem;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.95rem;
    line-height: 1.6;
}

.footer-bottom {
    text-align: center;
    margin-top: 2rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.9rem;
    line-height: 1.5;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .navbar {
        padding: 1rem;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: white;
        padding: 1rem;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    }

    .nav-links.active {
        display: flex;
        flex-direction: column;
        gap: 1rem;
    }

    .dropdown-toggle {
        padding: 0.5rem 0;
        width: 100%;
        justify-content: space-between;
    }

    .dropdown-menu {
        position: static;
        box-shadow: none;
        padding-left: 1rem;
        opacity: 1;
        visibility: visible;
        transform: none;
        display: none;
        margin-top: 0.5rem;
    }

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

    .hero-content h1 {
        font-size: 2.5rem;
    }

    .solutions,
    .about,
    .contact {
        padding: 4rem 1rem;
    }

    .contact-content {
        grid-template-columns: 1fr;
    }

    .solutions-grid {
        grid-template-columns: 1fr;
    }
    
    .solution-card {
        padding: 1.5rem;
    }

    .about {
        padding: 4rem 0;
    }

    .about h2 {
        font-size: 2.2rem;
    }

    .about-content > p {
        font-size: 1.1rem;
        padding: 0 1rem;
    }

    .about-features {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding: 0 1rem;
    }

    .feature {
        padding: 2rem;
    }

    .feature h3 {
        font-size: 1.3rem;
    }

    .feature p {
        font-size: 1rem;
    }

    .footer-content {
        flex-direction: column;
        gap: 1.5rem;
    }

    .footer-section {
        width: 100%;
    }

    .values-list {
        justify-content: center;
        flex-wrap: wrap;
        gap: 1rem 1.5rem;
    }

    .contact {
        padding: 4rem 1rem;
    }

    .contact h2 {
        font-size: 2rem;
        margin-bottom: 2rem;
    }

    .footer-section p {
        font-size: 0.9rem;
    }

    .footer-bottom p {
        font-size: 0.85rem;
    }
}

@media (max-width: 1200px) {
    .about-features {
        grid-template-columns: repeat(2, 1fr);
        padding: 0 1rem;
    }
}

@media (max-width: 480px) {
    .about h2 {
        font-size: 2rem;
    }

    .about-content > p {
        font-size: 1rem;
    }

    .feature {
        padding: 1.5rem;
    }
}

/* 截图项相关样式 */
.screenshot-item {
    background: transparent !important;
}

.screenshot-item:hover {
    background: transparent !important;
}

.solution-image {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.solution-image:hover {
    transform: none !important;
    filter: none !important;
}