/* ============================================================
   TensorSpace CN 门户样式
   纯 CSS，无外部依赖。主色 #1a4fd6，深蓝科技风。
   ============================================================ */

:root {
    --blue: #1a4fd6;
    --blue-deep: #0b1f3a;
    --blue-mid: #0e2a52;
    --blue-soft: #e8f0ff;
    --ink: #1c2333;
    --ink-soft: #5a6478;
    --bg: #ffffff;
    --bg-alt: #f5f8fd;
    --line: #e3e9f4;
    --radius: 14px;
    --shadow: 0 10px 30px rgba(16, 42, 100, 0.08);
}

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

html { scroll-behavior: smooth; }

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

img, svg { display: block; }
a { color: inherit; text-decoration: none; }

/* ---------- 导航 ---------- */
.nav {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--line);
}

.nav-inner {
    max-width: 1080px;
    margin: 0 auto;
    padding: 14px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.brand {
    display: flex;
    align-items: center;
    gap: 10px;
}

.brand-logo { width: 32px; height: 32px; }

.brand-name {
    font-size: 17px;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.brand-name em {
    font-style: normal;
    font-weight: 500;
    color: var(--ink-soft);
    font-size: 13px;
    margin-left: 6px;
}

.nav-links {
    display: flex;
    gap: 32px;
    font-size: 15px;
    color: var(--ink-soft);
}

.nav-links a { transition: color 0.2s; }
.nav-links a:hover { color: var(--blue); }

/* ---------- Hero ---------- */
.hero {
    position: relative;
    min-height: 520px;
    display: flex;
    align-items: center;
    color: #fff;
    overflow: hidden;
}

.hero-grid {
    position: absolute;
    inset: 0;
}

.hero-content {
    position: relative;
    max-width: 1080px;
    margin: 0 auto;
    padding: 90px 24px;
    width: 100%;
}

.hero-tag {
    display: inline-block;
    font-size: 14px;
    letter-spacing: 3px;
    color: #9cc0ff;
    border: 1px solid rgba(156, 192, 255, 0.4);
    padding: 6px 16px;
    border-radius: 999px;
    margin-bottom: 26px;
}

.hero h1 {
    font-size: 44px;
    line-height: 1.28;
    font-weight: 700;
    letter-spacing: 1px;
    margin-bottom: 22px;
}

.hero-sub {
    font-size: 17px;
    color: rgba(255, 255, 255, 0.82);
    margin-bottom: 38px;
}

.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }

.btn {
    display: inline-block;
    padding: 13px 34px;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    transition: transform 0.15s, box-shadow 0.15s, background 0.2s;
}

.btn:active { transform: translateY(1px); }

.btn-primary {
    background: var(--blue);
    color: #fff;
    box-shadow: 0 8px 22px rgba(26, 79, 214, 0.42);
}

.btn-primary:hover { background: #2a5ee0; }

.btn-ghost {
    border: 1px solid rgba(255, 255, 255, 0.45);
    color: #fff;
}

.btn-ghost:hover { background: rgba(255, 255, 255, 0.1); }

/* ---------- 通用 Section ---------- */
.section { padding: 88px 24px; }

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

.section-inner {
    max-width: 1080px;
    margin: 0 auto;
}

.section-eyebrow {
    font-size: 13px;
    letter-spacing: 4px;
    color: var(--blue);
    font-weight: 700;
    margin-bottom: 10px;
}

.section-title {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 14px;
}

.section-desc {
    color: var(--ink-soft);
    font-size: 16px;
    max-width: 640px;
    margin-bottom: 48px;
}

/* ---------- 业务卡片 ---------- */
.cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 26px;
}

.card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 34px 30px;
    box-shadow: var(--shadow);
    transition: transform 0.2s, box-shadow 0.2s;
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 40px rgba(16, 42, 100, 0.13);
}

.card-icon {
    width: 64px;
    height: 64px;
    margin-bottom: 22px;
}

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

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

.card-text {
    color: var(--ink-soft);
    font-size: 14.5px;
    margin-bottom: 18px;
}

.card-points {
    list-style: none;
    font-size: 14px;
    color: var(--ink-soft);
}

.card-points li {
    padding-left: 18px;
    position: relative;
    margin-bottom: 7px;
}

.card-points li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 9px;
    width: 7px;
    height: 7px;
    border-radius: 2px;
    background: var(--blue);
    opacity: 0.55;
}

/* ---------- 技术能力 ---------- */
.grid-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 26px;
}

.stat {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 28px 24px;
    transition: transform 0.2s;
}

.stat:hover { transform: translateY(-3px); }

.stat-icon { width: 44px; height: 44px; margin-bottom: 16px; }
.stat-icon svg { width: 100%; height: 100%; }

.stat h4 { font-size: 16.5px; margin-bottom: 8px; }

.stat p { font-size: 13.5px; color: var(--ink-soft); }

/* ---------- 关于我们 ---------- */
.about-wrap {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 56px;
    align-items: center;
}

.about-p {
    color: var(--ink-soft);
    font-size: 15.5px;
    margin-bottom: 16px;
}

.about-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 24px;
}

.about-tags span {
    background: var(--blue-soft);
    color: var(--blue);
    font-size: 13px;
    font-weight: 600;
    padding: 6px 16px;
    border-radius: 999px;
}

.about-visual svg { width: 100%; height: auto; border-radius: 18px; }

/* ---------- 产品架构（深色板块） ---------- */
.platform {
    background: linear-gradient(160deg, #0b1f3a, #0e2a52 55%, #123a74);
    color: #fff;
}

.platform .section-eyebrow { color: #9cc0ff; }

.platform .section-title { color: #fff; }

.platform .section-desc { color: rgba(255, 255, 255, 0.72); }

.platform-grid {
    display: grid;
    grid-template-columns: 0.95fr 1.05fr;
    gap: 44px;
    align-items: start;
}

/* 终端产品形态 */
.term {
    background: #0a1526;
    border: 1px solid rgba(130, 170, 255, 0.25);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.35);
    font-family: "SF Mono", Menlo, Consolas, "Courier New", monospace;
    font-size: 12.5px;
    line-height: 2;
}

.term-bar {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 10px 14px;
    background: rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(130, 170, 255, 0.15);
    font-family: "PingFang SC", sans-serif;
    font-size: 11.5px;
    color: rgba(255, 255, 255, 0.55);
}

.term-bar span { margin-left: 6px; }

.term-bar i { width: 10px; height: 10px; border-radius: 50%; background: #3a4a66; }
.term-bar i:nth-child(1) { background: #ff5f57; }
.term-bar i:nth-child(2) { background: #febc2e; }
.term-bar i:nth-child(3) { background: #28c840; }

.term-body { padding: 16px 18px; color: #c8d6f2; white-space: pre-wrap; word-break: break-all; }

.term-body .p   { color: #6ee7a0; font-weight: 700; }
.term-body .c   { color: #fff; }
.term-body .ok  { color: #6ee7a0; }
.term-body .dim { color: #7d8db0; }
.term-body .hl  { color: #9cc0ff; }

/* 分层架构 */
.arch { display: flex; flex-direction: column; }

.arch-layer {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(130, 170, 255, 0.28);
    border-radius: 12px;
    padding: 14px 18px;
}

.arch-name {
    flex: none;
    width: 86px;
    font-size: 12px;
    letter-spacing: 2px;
    font-weight: 700;
    color: #9cc0ff;
}

.arch-chips { display: flex; gap: 8px; flex-wrap: wrap; }

.arch-chips span {
    font-size: 12.5px;
    padding: 4px 12px;
    border-radius: 999px;
    border: 1px solid rgba(156, 192, 255, 0.35);
    color: rgba(255, 255, 255, 0.88);
    white-space: nowrap;
}

.arch-link {
    align-self: center;
    color: rgba(156, 192, 255, 0.75);
    font-size: 14px;
    line-height: 1;
    padding: 7px 0;
}

.arch-core {
    background: rgba(26, 79, 214, 0.32);
    border-color: rgba(130, 170, 255, 0.6);
    box-shadow: 0 0 32px rgba(56, 130, 246, 0.28);
}

/* ---------- 联系我们 ---------- */
.contact-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 26px;
}

.contact-item {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 26px 28px;
}

.contact-item h4 {
    font-size: 15px;
    color: var(--blue);
    margin-bottom: 8px;
}

.contact-item p { font-size: 15px; color: var(--ink); }

/* ---------- 页脚 ---------- */
.footer {
    background: var(--blue-deep);
    color: rgba(255, 255, 255, 0.75);
    padding: 44px 24px;
}

.footer-inner {
    max-width: 1080px;
    margin: 0 auto;
    text-align: center;
}

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

.footer-logo { width: 26px; height: 26px; }

.footer-copy { font-size: 13.5px; margin-bottom: 8px; }

.footer-beian { font-size: 13px; }

.footer-beian a {
    color: rgba(255, 255, 255, 0.75);
    border-bottom: 1px dotted rgba(255, 255, 255, 0.4);
    transition: color 0.2s;
}

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

/* ---------- 响应式 ---------- */
@media (max-width: 900px) {
    .cards, .contact-grid { grid-template-columns: 1fr; }
    .grid-4 { grid-template-columns: repeat(2, 1fr); }
    .about-wrap { grid-template-columns: 1fr; gap: 36px; }
    .platform-grid { grid-template-columns: 1fr; gap: 32px; }
    .hero h1 { font-size: 32px; }
    .nav-links { display: none; }
}

@media (max-width: 520px) {
    .grid-4 { grid-template-columns: 1fr; }
    .section { padding: 64px 20px; }
    .hero { min-height: 440px; }
    .hero h1 { font-size: 27px; }
}
