/* ============================================
   本己科技官网 - 蓝色调简约风格
   ============================================ */

:root {
    --blue-600: #1e6ff5;
    --blue-700: #0f5bd8;
    --blue-800: #0a3d91;
    --blue-50: #f0f6ff;
    --blue-100: #dbeafe;
    --ink-900: #0f1b2d;
    --ink-600: #45566e;
    --ink-400: #7b8aa0;
    --bg-white: #ffffff;
    --bg-alt: #f5f9ff;
    --border: #e3ebf6;
    --shadow-sm: 0 2px 8px rgba(30, 111, 245, .08);
    --shadow-md: 0 8px 24px rgba(30, 111, 245, .12);
    --radius: 12px;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: "PingFang SC", "Microsoft YaHei", "Segoe UI", -apple-system, sans-serif;
    color: var(--ink-900);
    background: var(--bg-white);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}

.container {
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 24px;
}

a {
    color: inherit;
    text-decoration: none;
    -webkit-tap-highlight-color: transparent;
}

img,
svg {
    display: block;
}

/* ---------- 顶部导航 ---------- */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255, 255, 255, .92);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
}

.header-inner {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    font-size: 18px;
    color: var(--ink-900);
}

.logo-icon {
    width: 34px;
    height: 34px;
}

/* 锚点滚动定位补偿（粘性导航高度） */
section[id] {
    scroll-margin-top: 84px;
}

/* 移动端汉堡菜单 */
.nav-toggle {
    display: none;
}

.nav-burger {
    display: none;
    position: relative;
    z-index: 101;
    width: 44px;
    height: 44px;
    cursor: pointer;
    align-items: center;
    justify-content: center;
}

.burger-line,
.burger-line::before,
.burger-line::after {
    content: "";
    display: block;
    width: 22px;
    height: 2px;
    border-radius: 2px;
    background: var(--ink-900);
    transition: transform .2s, background .2s;
}

.burger-line::before {
    position: absolute;
    top: 14px;
    left: 11px;
}

.burger-line::after {
    position: absolute;
    bottom: 14px;
    left: 11px;
}

.nav-toggle:checked ~ .nav-burger .burger-line {
    background: transparent;
}

.nav-toggle:checked ~ .nav-burger .burger-line::before {
    top: 21px;
    transform: rotate(45deg);
}

.nav-toggle:checked ~ .nav-burger .burger-line::after {
    bottom: 21px;
    transform: rotate(-45deg);
}

.site-nav {
    display: flex;
    align-items: center;
    gap: 32px;
    font-size: 15px;
    color: var(--ink-600);
}

.site-nav a:hover {
    color: var(--blue-600);
}

.nav-contact {
    padding: 7px 20px;
    border-radius: 999px;
    background: var(--blue-600);
    color: #fff !important;
    transition: background .2s;
}

.nav-contact:hover {
    background: var(--blue-700);
}

/* ---------- Hero ---------- */
.hero {
    position: relative;
    padding: 110px 0 120px;
    text-align: center;
    overflow: hidden;
    background:
        radial-gradient(700px 340px at 15% -10%, rgba(30, 111, 245, .14), transparent 60%),
        radial-gradient(600px 300px at 85% 0%, rgba(30, 111, 245, .10), transparent 60%),
        linear-gradient(180deg, var(--bg-alt), #fff);
}

.hero::after {
    content: "";
    position: absolute;
    inset: auto 0 -60px;
    height: 120px;
    background: #fff;
    transform: skewY(-2deg);
}

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

.hero-badge {
    display: inline-block;
    padding: 6px 18px;
    margin-bottom: 24px;
    font-size: 14px;
    color: var(--blue-700);
    background: var(--blue-100);
    border-radius: 999px;
    letter-spacing: 1px;
}

.hero-title {
    font-size: clamp(34px, 6vw, 56px);
    font-weight: 800;
    letter-spacing: 2px;
    margin-bottom: 20px;
}

.hero-title .accent {
    color: var(--blue-600);
}

.hero-subtitle {
    max-width: 640px;
    margin: 0 auto 40px;
    font-size: 17px;
    color: var(--ink-600);
}

.hero-subtitle strong {
    color: var(--blue-700);
}

.hero-actions {
    display: flex;
    justify-content: center;
    gap: 16px;
}

/* ---------- 按钮 ---------- */
.btn {
    display: inline-block;
    padding: 12px 34px;
    font-size: 15px;
    font-weight: 600;
    border-radius: 999px;
    transition: all .2s;
}

.btn-primary {
    background: var(--blue-600);
    color: #fff;
    box-shadow: var(--shadow-md);
}

.btn-primary:hover {
    background: var(--blue-700);
    transform: translateY(-2px);
}

.btn-ghost {
    color: var(--blue-700);
    border: 1.5px solid var(--blue-600);
}

.btn-ghost:hover {
    background: var(--blue-50);
    transform: translateY(-2px);
}

/* ---------- 通用区块 ---------- */
.section {
    padding: 90px 0;
}

.section-alt {
    background: var(--bg-alt);
}

.section-title {
    text-align: center;
    font-size: 30px;
    font-weight: 800;
    letter-spacing: 2px;
    margin-bottom: 12px;
}

.section-title::after {
    content: "";
    display: block;
    width: 42px;
    height: 4px;
    margin: 14px auto 0;
    border-radius: 2px;
    background: var(--blue-600);
}

.section-desc {
    text-align: center;
    color: var(--ink-400);
    margin-bottom: 52px;
}

/* ---------- 主营业务 ---------- */
.services-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
}

.service-card {
    padding: 40px 36px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: #fff;
    transition: box-shadow .25s, transform .25s;
}

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

.service-icon {
    width: 52px;
    height: 52px;
    margin-bottom: 20px;
    padding: 12px;
    border-radius: 10px;
    color: var(--blue-600);
    background: var(--blue-100);
}

.service-icon svg {
    width: 100%;
    height: 100%;
}

.service-card h3 {
    font-size: 20px;
    margin-bottom: 12px;
}

.service-card p {
    font-size: 15px;
    color: var(--ink-600);
    margin-bottom: 18px;
}

.service-points {
    list-style: none;
}

.service-points li {
    position: relative;
    padding-left: 22px;
    font-size: 14px;
    color: var(--ink-600);
    margin-bottom: 8px;
}

.service-points li::before {
    content: "";
    position: absolute;
    left: 2px;
    top: 9px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--blue-600);
}

/* ---------- 开发团队 ---------- */
.team-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.team-card {
    padding: 40px 32px;
    text-align: center;
    border-radius: var(--radius);
    background: #fff;
    border: 1px solid var(--border);
    transition: box-shadow .25s, transform .25s;
}

.team-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-4px);
}

.team-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 20px;
    padding: 15px;
    border-radius: 50%;
    color: var(--blue-600);
    background: var(--blue-100);
}

.team-icon svg {
    width: 100%;
    height: 100%;
}

.team-card h3 {
    font-size: 19px;
    margin-bottom: 10px;
}

.team-card p {
    font-size: 14.5px;
    color: var(--ink-600);
}

/* ---------- 作品展示 ---------- */
.works-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

.work-card {
    display: flex;
    flex-direction: column;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: #fff;
    overflow: hidden;
    transition: box-shadow .25s, transform .25s;
}

.work-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-4px);
}

.work-cover {
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: var(--blue-50);
}

.work-cover img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    transition: transform .3s ease;
}

.work-card:hover .work-cover img {
    transform: scale(1.05);
}

.work-body {
    padding: 22px 24px 26px;
}

.work-body h3 {
    font-size: 18px;
    margin-bottom: 8px;
}

.work-body p {
    font-size: 14px;
    color: var(--ink-600);
}

/* ---------- 联系方式 ---------- */
.contact-inner .section-desc {
    margin-bottom: 40px;
}

.contact-card {
    max-width: 560px;
    margin: 0 auto;
    padding: 48px 40px;
    text-align: center;
    border-radius: var(--radius);
    background: #fff;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
}

.contact-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 18px;
    padding: 14px;
    border-radius: 50%;
    color: #fff;
    background: var(--blue-600);
}

.contact-icon svg {
    width: 100%;
    height: 100%;
}

.contact-label {
    font-size: 14px;
    color: var(--ink-400);
    margin-bottom: 6px;
}

.contact-email {
    font-size: 26px;
    font-weight: 700;
    color: var(--blue-700);
    margin-bottom: 28px;
    word-break: break-all;
}

/* ---------- 页脚 ---------- */
.site-footer {
    background: var(--ink-900);
    color: rgba(255, 255, 255, .75);
    padding: 48px 0 32px;
}

.footer-inner {
    text-align: center;
}

.footer-company {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-size: 17px;
    font-weight: 600;
    color: #fff;
    margin-bottom: 14px;
}

.footer-logo-icon {
    width: 26px;
    height: 26px;
    border-radius: 7px;
}

.footer-nav {
    display: flex;
    justify-content: center;
    gap: 28px;
    font-size: 14px;
    margin-bottom: 24px;
}

.footer-nav a:hover {
    color: var(--blue-600);
}

.footer-legal {
    font-size: 13px;
    color: rgba(255, 255, 255, .5);
    line-height: 2;
}

.footer-legal a {
    color: rgba(255, 255, 255, .6);
}

.footer-legal a:hover {
    color: #fff;
}

/* ---------- 响应式 ---------- */
@media (max-width: 900px) {
    .team-grid,
    .works-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* 平板与手机：汉堡下拉菜单 */
@media (max-width: 768px) {
    .nav-burger {
        display: flex;
    }

    .site-nav {
        display: none;
        position: absolute;
        top: 64px;
        left: 0;
        right: 0;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: 10px 24px 18px;
        background: #fff;
        border-bottom: 1px solid var(--border);
        box-shadow: var(--shadow-md);
    }

    .nav-toggle:checked ~ .site-nav {
        display: flex;
    }

    .site-nav a {
        padding: 13px 4px;
        font-size: 16px;
        border-bottom: 1px solid var(--border);
    }

    .site-nav a:last-of-type {
        border-bottom: none;
    }

    .nav-contact {
        align-self: stretch;
        margin-top: 16px;
        padding: 13px 24px;
        border: none;
        border-radius: 999px;
        text-align: center;
        font-size: 16px;
    }
}

@media (max-width: 640px) {
    .services-grid,
    .team-grid,
    .works-grid {
        grid-template-columns: 1fr;
    }

    .hero {
        padding: 64px 0 84px;
    }

    .hero-title {
        letter-spacing: 1px;
    }

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

    .section {
        padding: 56px 0;
    }

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

    .hero-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .btn {
        text-align: center;
        padding: 13px 34px;
    }

    .contact-card {
        padding: 36px 24px;
    }

    .contact-email {
        font-size: 21px;
    }

    .footer-nav {
        flex-wrap: wrap;
        gap: 14px 22px;
    }
}
