/* ================================================================
   轻舟易考 — 公共样式 (common.css)
   所有页面共用：重置、导航、页脚、WIP弹窗
   部分页面共用：section-kicker、hero-light
   ================================================================ */

/* ── Reset ── */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Microsoft YaHei", "PingFang SC", sans-serif;
}

body {
    background: #fff;
    color: #333;
    line-height: 1.8;
}

a {
    text-decoration: none;
    color: inherit;
}

/* ── Header & Nav ── */
header {
    width: 100%;
    height: 70px;
    background: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
    position: sticky;
    top: 0;
    z-index: 100;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

.header-wrap {
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: center;
    gap: 5px;
    height: 70px;
    text-decoration: none;
}

.logo img {
    height: 42px;
    width: auto;
    display: block;
}

.logo-text {
    font-size: 22px;
    font-weight: 600;
    color: #2D8AFF;
    letter-spacing: 1px;
    white-space: nowrap;
}

.logo-text span {
    color: #333;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 35px;
    font-size: 16px;
    color: #555;
}

nav a:hover,
.nav-active {
    color: #2D8AFF;
}

/* ── 汉堡菜单按钮 ── */
.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    width: 36px;
    height: 36px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    border-radius: 6px;
    flex-shrink: 0;
}

.nav-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: #444;
    border-radius: 2px;
    transition: transform 0.25s, opacity 0.25s;
    pointer-events: none;
}

.nav-toggle.open span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.nav-toggle.open span:nth-child(2) {
    opacity: 0;
}

.nav-toggle.open span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* ── Section Kicker（product / scene / about / private-deployment 共用）── */
.section-kicker {
    display: inline-block;
    font-size: 11px;
    color: #2D8AFF;
    background: rgba(45, 138, 255, 0.09);
    letter-spacing: 0.14em;
    text-transform: uppercase;
    font-weight: 600;
    padding: 4px 12px;
    border-radius: 50px;
    margin-bottom: 14px;
}

/* ── Hero Light（product / scene 页面共用）── */
.hero-light {
    background: linear-gradient(145deg, #F0F6FF 0%, #FAFCFF 55%, #fff 100%);
    padding: 72px 0 68px;
    border-bottom: 1px solid #E5ECFA;
}

.hero-kicker {
    display: inline-block;
    font-size: 11px;
    color: #2D8AFF;
    background: rgba(45, 138, 255, 0.09);
    letter-spacing: 0.14em;
    text-transform: uppercase;
    font-weight: 600;
    padding: 4px 12px;
    border-radius: 50px;
    margin-bottom: 20px;
}

.hero-light h1 {
    font-size: 38px;
    font-weight: 700;
    color: #1A1A2E;
    line-height: 1.25;
    letter-spacing: -0.5px;
    margin-bottom: 16px;
}

.hero-light h1 em {
    font-style: normal;
    color: #2D8AFF;
}

/* ── Footer ── */
footer {
    background: #F5F7FA;
    padding: 50px 0 25px;
    margin-top: 40px;
}

.footer-wrap {
    text-align: center;
    color: #888;
    font-size: 14px;
}

.footer-links {
    margin-bottom: 12px;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 4px 0;
}

.footer-links a {
    margin: 0 8px;
    color: #888;
}

.footer-links .beian-link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.footer-links .beian-link img {
    width: 16px;
    height: 16px;
}

.copyright {
    padding-top: 18px;
    border-top: 1px solid #EAEAEA;
    margin-top: 12px;
}

/* ── WIP 建设中弹窗 ── */
.wip-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.25);
    z-index: 999;
    align-items: center;
    justify-content: center;
}

.wip-overlay.show {
    display: flex;
}

.wip-box {
    background: #fff;
    border-radius: 16px;
    padding: 40px 48px;
    text-align: center;
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.12);
    min-width: 260px;
}

.wip-icon {
    font-size: 40px;
    margin-bottom: 14px;
}

.wip-icon img {
    width: 40px;
    height: 40px;
    filter: invert(65%) sepia(80%) saturate(400%) hue-rotate(5deg) brightness(110%);
}

.wip-box h3 {
    font-size: 18px;
    font-weight: 500;
    color: #222;
    margin-bottom: 8px;
}

.wip-box p {
    font-size: 14px;
    color: #999;
    margin-bottom: 24px;
}

.wip-close {
    display: inline-block;
    padding: 9px 28px;
    background: #2D8AFF;
    color: #fff;
    border-radius: 8px;
    font-size: 14px;
    cursor: pointer;
    border: none;
}

.wip-close:hover {
    opacity: 0.88;
}

/* ── 公共移动端适配 ── */
@media (max-width: 768px) {
    .nav-toggle {
        display: flex;
    }

    nav {
        display: none;
        position: absolute;
        top: 70px;
        left: 0;
        right: 0;
        background: #fff;
        box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
        border-top: 1px solid #F0F0F0;
        z-index: 99;
    }

    nav.open {
        display: block;
    }

    nav ul {
        flex-direction: column;
        gap: 0;
        padding: 6px 0;
    }

    nav ul li a {
        display: block;
        padding: 13px 24px;
        font-size: 15px;
        color: #444;
        border-bottom: 1px solid #F5F5F5;
    }

    nav ul li:last-child a {
        border-bottom: none;
    }

    .header-wrap {
        justify-content: space-between;
    }

    .hero-light {
        padding: 52px 0 48px;
    }

    .hero-light h1 {
        font-size: 26px;
    }

    /* footer-links 移动端：纵向排列，避免换行错乱 */
    .footer-links {
        flex-direction: column;
        gap: 8px;
    }

    .footer-links a {
        margin: 0;
    }

    footer {
        padding: 36px 0 40px;
    }

    .copyright {
        padding-bottom: 8px;
    }

    .wip-box {
        padding: 32px 28px;
        margin: 0 20px;
        min-width: unset;
        width: 100%;
    }
}
