/* ============================================
   南京市逸新恒迹数字科技有限责任公司 企业官网公共样式
   主色调: #2563eb | 风格: 现代简约
   ============================================ */

/* ---------- 基础重置 ---------- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Microsoft YaHei",
        "PingFang SC", "Helvetica Neue", Arial, sans-serif;
    color: #333;
    background-color: #ffffff;
    line-height: 1.7;
    font-size: 16px;
}

a {
    color: #2563eb;
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {
    color: #1a4fcc;
}

/* ---------- 通用容器 ---------- */
.container {
    max-width: 960px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ---------- 导航栏 ---------- */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 64px;
    background-color: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
    z-index: 1000;
}

.navbar .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
}

.nav-logo {
    font-size: 20px;
    font-weight: 700;
    color: #2563eb;
    letter-spacing: 1px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.nav-logo .logo-mark {
    width: 32px;
    height: 32px;
    background-color: #2563eb;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 16px;
}

.nav-menu {
    display: flex;
    align-items: center;
    list-style: none;
    gap: 32px;
}

.nav-menu a {
    color: #555;
    font-size: 15px;
    font-weight: 500;
    padding: 8px 0;
    position: relative;
}

.nav-menu a:hover {
    color: #2563eb;
}

.nav-menu a.active {
    color: #2563eb;
}

.nav-menu a.active::after {
    content: "";
    position: absolute;
    bottom: -4px;
    left: 0;
    right: 0;
    height: 2px;
    background-color: #2563eb;
    border-radius: 1px;
}

/* 移动端汉堡菜单按钮 */
.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 8px;
}

.nav-toggle span {
    width: 24px;
    height: 2px;
    background-color: #333;
    border-radius: 1px;
    transition: 0.3s;
}

/* ---------- Hero 区域 ---------- */
.hero {
    margin-top: 64px;
    padding: 80px 0 64px;
    text-align: center;
    background: linear-gradient(135deg, #f0f5ff 0%, #ffffff 100%);
}

.hero-eyebrow {
    font-size: 15px;
    color: #2563eb;
    font-weight: 600;
    letter-spacing: 2px;
    margin-bottom: 16px;
}

.hero h1 {
    font-size: 36px;
    font-weight: 700;
    color: #1a2233;
    margin-bottom: 20px;
    line-height: 1.4;
}

.hero .hero-subtitle {
    font-size: 18px;
    color: #667085;
    max-width: 640px;
    margin: 0 auto 32px;
}

.hero .hero-cta {
    display: inline-block;
    padding: 14px 40px;
    background-color: #2563eb;
    color: #ffffff;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 500;
    transition: background-color 0.2s ease;
}

.hero .hero-cta:hover {
    background-color: #1a4fcc;
    color: #ffffff;
}

/* ---------- 页面标题区（内页通用） ---------- */
.page-header {
    margin-top: 64px;
    padding: 56px 0 40px;
    text-align: center;
    background: linear-gradient(135deg, #f0f5ff 0%, #ffffff 100%);
}

.page-header h1 {
    font-size: 32px;
    font-weight: 700;
    color: #1a2233;
    margin-bottom: 12px;
}

.page-header .subtitle {
    font-size: 16px;
    color: #667085;
}

/* ---------- 内容区块 ---------- */
.section {
    padding: 64px 0;
}

.section-gray {
    background-color: #f9fafb;
}

.section-title {
    text-align: center;
    font-size: 28px;
    font-weight: 700;
    color: #1a2233;
    margin-bottom: 12px;
}

.section-desc {
    text-align: center;
    font-size: 16px;
    color: #667085;
    max-width: 560px;
    margin: 0 auto 48px;
}

/* ---------- 宇宙星系图标 ---------- */
.universe-icon {
    animation: universeSpin 40s linear infinite;
}

@keyframes universeSpin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* ---------- 愿景区域 ---------- */
.vision {
    text-align: center;
    padding: 64px 0;
}

.vision-icon {
    font-size: 48px;
    margin-bottom: 24px;
}

.vision-text {
    font-size: 22px;
    line-height: 2;
    color: #1a2233;
    max-width: 680px;
    margin: 0 auto;
    font-weight: 300;
}

.vision-text .highlight {
    color: #2563eb;
    font-weight: 600;
}

/* ---------- 卡片网格 ---------- */
.card-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
    margin-top: 40px;
}

.card {
    background-color: #ffffff;
    border-radius: 12px;
    padding: 32px 24px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    border: 1px solid #f0f0f0;
    transition: box-shadow 0.3s ease, transform 0.3s ease;
    text-align: center;
}

.card:hover {
    box-shadow: 0 8px 24px rgba(37, 99, 235, 0.12);
    transform: translateY(-4px);
}

.card .card-icon {
    font-size: 36px;
    margin-bottom: 16px;
}


.card h3 {
    font-size: 18px;
    font-weight: 600;
    color: #1a2233;
    margin-bottom: 12px;
}

.card p {
    font-size: 15px;
    color: #667085;
    line-height: 1.6;
}

/* ---------- 文本内容区 ---------- */
.content-block {
    max-width: 720px;
    margin: 0 auto;
}

.content-block h2 {
    font-size: 24px;
    font-weight: 600;
    color: #1a2233;
    margin: 40px 0 16px;
}

.content-block h2:first-child {
    margin-top: 0;
}

.content-block p {
    font-size: 16px;
    color: #475467;
    margin-bottom: 16px;
    line-height: 1.9;
}

.content-block ul {
    margin: 16px 0 16px 24px;
    color: #475467;
}

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

/* ---------- 联系信息 ---------- */
.contact-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    margin-top: 40px;
}

.contact-item {
    background-color: #f9fafb;
    border-radius: 12px;
    padding: 28px;
    display: flex;
    align-items: flex-start;
    gap: 16px;
}

.contact-item .contact-icon {
    font-size: 28px;
    flex-shrink: 0;
}

.contact-item .contact-label {
    font-size: 14px;
    color: #667085;
    margin-bottom: 4px;
}

.contact-item .contact-value {
    font-size: 16px;
    color: #1a2233;
    font-weight: 500;
}

/* ---------- 页脚 ---------- */
.footer {
    background-color: #1a2233;
    color: #98a2b3;
    padding: 24px 0;
    margin-top: 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 48px;
    margin-bottom: 32px;
}

.footer-brand {
    font-size: 18px;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 12px;
}

.footer-desc {
    font-size: 14px;
    line-height: 1.8;
    max-width: 400px;
}

.footer h4 {
    font-size: 15px;
    color: #ffffff;
    margin-bottom: 16px;
}

.footer ul {
    list-style: none;
}

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

.footer ul li a {
    color: #98a2b3;
    font-size: 14px;
}

.footer ul li a:hover {
    color: #ffffff;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
}

.footer-bottom a {
    color: #98a2b3;
}

.footer-bottom a:hover {
    color: #ffffff;
}

.footer-bottom .icp-link {
    opacity: 0.4;
    font-size: 12px;
}

.footer-bottom .icp-link:hover {
    opacity: 0.7;
}

/* ============================================
   响应式 — 移动端适配
   ============================================ */
@media (max-width: 768px) {
    .nav-menu {
        display: none;
        position: absolute;
        top: 64px;
        left: 0;
        right: 0;
        background-color: #ffffff;
        flex-direction: column;
        padding: 16px 24px;
        gap: 16px;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
        border-bottom: 1px solid #e5e7eb;
    }

    .nav-menu.open {
        display: flex;
    }

    .nav-toggle {
        display: flex;
    }

    .hero h1 {
        font-size: 26px;
    }

    .hero .hero-subtitle {
        font-size: 15px;
    }

    .hero {
        padding: 48px 0 40px;
    }

    .page-header h1 {
        font-size: 24px;
    }

    .vision-text {
        font-size: 17px;
    }

    .card-grid {
        grid-template-columns: 1fr;
    }

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

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 12px;
        text-align: center;
    }

    .section-title {
        font-size: 22px;
    }

    .section {
        padding: 40px 0;
    }
}
