/* =============================================
   全局 CSS — 深圳艾希博科技有限公司
   ============================================= */

:root {
    --bg-page:      #f5f7fa;
    --bg-white:     #ffffff;
    --bg-card:      #ffffff;
    --bg-card2:     #f0f4f8;
    --bg-section2:  #eef2f7;
    --accent:       #1a6bcc;
    --accent-hover: #155bb5;
    --accent2:      #0ea5e9;
    --accent-light: #e8f0fb;
    --text-primary: #1a202c;
    --text-muted:   #5a6a7e;
    --white:        #ffffff;
    --border:       #dde3ec;
    --border-accent:#b3ccf0;
    --nav-h:        64px;
    --shadow-sm:    0 2px 8px rgba(26,107,204,0.08);
    --shadow-md:    0 6px 24px rgba(26,107,204,0.13);
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    font-family: 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', sans-serif;
    font-size: 19px;
    background: var(--bg-page);
    color: var(--text-primary);
    line-height: 1.85;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3, h4, h5 { color: var(--text-primary); margin-top: 0; }

/* ── 导航栏 ── */
.site-nav {
    position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
    height: var(--nav-h);
    background: rgba(255,255,255,0.97);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
    display: flex; align-items: center;
    padding: 0 2rem;
}
.site-nav .brand {
    font-size: 1.1rem; font-weight: 700;
    color: var(--accent); white-space: nowrap;
    letter-spacing: .03em;
    flex-shrink: 0;
}
.site-nav .nav-links {
    display: flex; align-items: center; gap: 2rem; margin-left: auto; list-style: none; padding: 0; margin-bottom: 0;
}
.site-nav .nav-links > li {
    display: flex; align-items: center;
}
.site-nav .nav-links a {
    color: #1a202c; font-size: 1.05rem; font-weight: 600; transition: color .2s;
    display: flex; align-items: center; height: var(--nav-h);
}
.site-nav .nav-links a:hover { color: var(--accent); text-decoration: none; }

/* ── 下拉菜单 ── */
.nav-dropdown { position: relative; cursor: pointer; display: flex; align-items: center; height: var(--nav-h); }
.nav-dropdown-label {
    color: #1a202c; font-size: 1.05rem; font-weight: 600;
    cursor: pointer; user-select: none;
    display: flex; align-items: center; height: 100%;
    transition: color .2s;
}
.nav-dropdown:hover .nav-dropdown-label { color: var(--accent); }
.dropdown-menu {
    display: none;
    position: absolute; top: 100%; left: 50%;
    transform: translateX(-50%);
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 8px;
    box-shadow: var(--shadow-md);
    list-style: none; padding: .5rem 0; margin: 0;
    min-width: 200px; z-index: 1001;
}
.nav-dropdown:hover .dropdown-menu { display: block; }
/* 用伪元素在菜单上方填充透明区域，防止鼠标从 label 移向菜单时丢失 hover */
.dropdown-menu::before {
    content: '';
    position: absolute;
    top: -12px; left: 0; right: 0;
    height: 12px;
    background: transparent;
}
.dropdown-menu li a {
    display: block; padding: .65rem 1.2rem;
    color: var(--text-primary) !important; font-size: 1rem; font-weight: 500;
    white-space: nowrap;
}
.dropdown-menu li a:hover { background: var(--accent-light); color: var(--accent) !important; text-decoration: none; }

/* ── 语言切换 ── */
.language-switcher {
    display: flex;
    align-items: center;
    gap: .35rem;
    height: var(--nav-h);
}
.language-link {
    height: auto !important;
    padding: .25rem .55rem;
    border: 1px solid transparent;
    border-radius: 999px;
    color: var(--text-muted) !important;
    font-size: .85rem !important;
    line-height: 1.2;
}
.language-link:hover,
.language-link.active {
    border-color: var(--border-accent);
    background: var(--accent-light);
    color: var(--accent) !important;
    text-decoration: none;
}
.language-divider { color: var(--text-muted); font-size: .8rem; }

/* ── 页面主体留出导航栏高度 ── */
.page-body { padding-top: var(--nav-h); }

/* ── Hero 区 ── */
.hero {
    min-height: 88vh;
    display: flex; align-items: center; justify-content: center;
    text-align: left;
    padding: 5rem 1.5rem;
    background:
        radial-gradient(circle at 78% 18%, rgba(14,165,233,.36), transparent 32%),
        radial-gradient(circle at 16% 24%, rgba(37,99,235,.32), transparent 30%),
        linear-gradient(115deg, rgba(6,16,35,.88) 0%, rgba(15,23,42,.76) 48%, rgba(30,41,59,.62) 100%),
        url('/images/home.png') center / cover no-repeat;
    position: relative; overflow: hidden;
}
.hero::before {
    content: '';
    position: absolute; inset: 0;
    background:
        linear-gradient(90deg, rgba(125,211,252,.13) 1px, transparent 1px),
        linear-gradient(0deg, rgba(125,211,252,.13) 1px, transparent 1px),
        url("data:image/svg+xml,%3Csvg width='72' height='72' viewBox='0 0 72 72' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%237dd3fc' fill-opacity='0.16'%3E%3Ccircle cx='8' cy='8' r='1.8'/%3E%3Ccircle cx='64' cy='64' r='1.8'/%3E%3Cpath d='M8 8H32V10H8zM40 62H64V64H40zM62 40H64V64H62z'/%3E%3C/g%3E%3C/svg%3E");
    background-size: 72px 72px, 72px 72px, 144px 144px;
    mask-image: linear-gradient(to bottom, rgba(0,0,0,1), rgba(0,0,0,.62));
    pointer-events: none;
}
.hero-inner {
    position: relative; z-index: 1;
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(420px, .95fr);
    align-items: center;
    gap: 4rem;
}
.hero-content { position: relative; z-index: 1; max-width: 760px; }
.hero-eyebrow {
    display: inline-flex; align-items: center; gap: .6rem;
    font-size: .85rem; letter-spacing: .14em; text-transform: uppercase;
    color: #bae6fd; margin-bottom: 1rem; font-weight: 700;
    background: rgba(15,23,42,.52);
    border: 1px solid rgba(125,211,252,.26);
    border-radius: 999px;
    padding: .35rem .85rem;
    box-shadow: 0 10px 30px rgba(14,165,233,.12);
    backdrop-filter: blur(10px);
}
.hero h1 {
    font-size: clamp(2.5rem, 5.5vw, 5rem);
    font-weight: 900; line-height: 1.08;
    margin-bottom: 1.2rem;
    color: #ffffff;
    letter-spacing: -.04em;
    text-shadow: 0 14px 40px rgba(0,0,0,.42);
}
.hero h1 span {
    color: transparent;
    background: linear-gradient(135deg, #ffffff, #7dd3fc 45%, #38bdf8);
    -webkit-background-clip: text;
    background-clip: text;
}
.hero .subtitle {
    font-size: 1.12rem; color: #e2e8f0;
    max-width: 680px; margin: 0 0 2rem;
    text-shadow: 0 6px 24px rgba(0,0,0,.42);
}
.hero-actions { margin-bottom: 1.6rem; }
.hero-metrics {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: .9rem;
    max-width: 680px;
}
.hero-metrics div {
    background: rgba(255,255,255,.78);
    border: 1px solid rgba(26,107,204,.16);
    border-radius: 14px;
    padding: .9rem 1rem;
    box-shadow: 0 12px 28px rgba(26,107,204,.08);
}
.hero-metrics strong {
    display: block;
    color: var(--text-primary);
    font-size: 1.05rem;
    line-height: 1.25;
}
.hero-metrics span {
    display: block;
    color: var(--text-muted);
    font-size: .82rem;
    line-height: 1.4;
    margin-top: .2rem;
}
.hero-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(8px);
    opacity: .62;
    pointer-events: none;
}
.hero-orb-blue {
    width: 260px; height: 260px;
    right: 9%; top: 18%;
    background: radial-gradient(circle, rgba(26,107,204,.25), transparent 68%);
}
.hero-orb-cyan {
    width: 190px; height: 190px;
    left: 8%; bottom: 14%;
    background: radial-gradient(circle, rgba(14,165,233,.24), transparent 70%);
}
.hero-tech-panel {
    position: relative;
    min-height: 520px;
    border: 1px solid rgba(26,107,204,.18);
    border-radius: 28px;
    background:
        linear-gradient(145deg, rgba(255,255,255,.92), rgba(232,240,251,.68)),
        radial-gradient(circle at 50% 42%, rgba(14,165,233,.18), transparent 38%);
    box-shadow: 0 28px 80px rgba(26,107,204,.18);
    overflow: hidden;
    padding: 1.4rem;
}
.hero-tech-panel::before,
.hero-tech-panel::after {
    content: '';
    position: absolute;
    inset: 22px;
    border: 1px solid rgba(26,107,204,.16);
    border-radius: 22px;
    pointer-events: none;
}
.hero-tech-panel::after {
    inset: auto 9% 32%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(26,107,204,.45), transparent);
    border: 0;
    box-shadow: 0 -92px 0 rgba(26,107,204,.12), 0 92px 0 rgba(26,107,204,.12);
}
.panel-status {
    position: relative; z-index: 2;
    display: inline-flex; align-items: center; gap: .55rem;
    color: #0f766e;
    background: rgba(240,253,250,.9);
    border: 1px solid rgba(20,184,166,.25);
    border-radius: 999px;
    padding: .35rem .75rem;
    font-size: .78rem;
    font-weight: 800;
    letter-spacing: .12em;
}
.panel-status span {
    width: .55rem; height: .55rem;
    border-radius: 50%;
    background: #14b8a6;
    box-shadow: 0 0 0 6px rgba(20,184,166,.12), 0 0 16px rgba(20,184,166,.55);
}
.chip-visual {
    position: absolute;
    left: 50%; top: 45%;
    width: 230px; height: 230px;
    transform: translate(-50%, -50%);
    border-radius: 30px;
    background: linear-gradient(145deg, #12376b, #0f172a);
    box-shadow: inset 0 0 0 8px rgba(255,255,255,.08), 0 24px 50px rgba(15,23,42,.28), 0 0 70px rgba(14,165,233,.28);
}
.chip-core {
    position: absolute;
    inset: 34px;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    border-radius: 22px;
    border: 1px solid rgba(125,211,252,.35);
    color: #e0f2fe;
    font-size: 3rem;
    font-weight: 900;
    line-height: 1;
    background:
        linear-gradient(90deg, rgba(125,211,252,.12) 1px, transparent 1px),
        linear-gradient(0deg, rgba(125,211,252,.12) 1px, transparent 1px),
        rgba(15,23,42,.82);
    background-size: 18px 18px;
}
.chip-core small {
    margin-top: .55rem;
    color: #7dd3fc;
    font-size: .78rem;
    letter-spacing: .28em;
}
.pin {
    position: absolute;
    background: linear-gradient(90deg, #60a5fa, #bae6fd);
    border-radius: 4px;
    box-shadow: 0 0 12px rgba(96,165,250,.55);
}
.pin-1, .pin-2, .pin-3, .pin-4 { width: 48px; height: 8px; }
.pin-1 { left: -30px; top: 48px; }
.pin-2 { left: -30px; top: 98px; }
.pin-3 { right: -30px; top: 132px; }
.pin-4 { right: -30px; top: 182px; }
.pin-5, .pin-6, .pin-7, .pin-8 { width: 8px; height: 48px; }
.pin-5 { top: -30px; left: 54px; }
.pin-6 { top: -30px; right: 54px; }
.pin-7 { bottom: -30px; left: 86px; }
.pin-8 { bottom: -30px; right: 86px; }
.tech-lines {
    position: absolute;
    left: 1.4rem; right: 1.4rem; bottom: 1.4rem;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: .75rem;
    z-index: 2;
}
.tech-lines div {
    background: rgba(255,255,255,.82);
    border: 1px solid rgba(26,107,204,.15);
    border-radius: 14px;
    padding: .75rem .85rem;
    box-shadow: 0 12px 24px rgba(26,107,204,.08);
}
.tech-lines span {
    display: block;
    color: var(--accent);
    font-size: .85rem;
    font-weight: 900;
    line-height: 1.2;
}
.tech-lines em {
    display: block;
    color: var(--text-muted);
    font-size: .72rem;
    font-style: normal;
    line-height: 1.3;
    margin-top: .25rem;
}
.btn-primary-ics {
    display: inline-block;
    padding: .75rem 2rem; border-radius: 6px;
    background: rgba(255,255,255,.92); border: 1.5px solid rgba(26,107,204,.22);
    color: #0f3f88; font-size: 1rem; font-weight: 700;
    cursor: pointer; transition: all .25s;
    margin: .4rem;
    box-shadow: 0 8px 26px rgba(26,107,204,.16);
}
.btn-primary-ics:hover {
    background: #fff; text-decoration: none; color: var(--accent);
    transform: translateY(-1px);
}
.btn-solid-ics {
    display: inline-block;
    padding: .75rem 2rem; border-radius: 6px;
    background: linear-gradient(135deg, var(--accent), var(--accent2)); color: #ffffff;
    font-size: 1rem; font-weight: 700;
    cursor: pointer; transition: all .25s;
    margin: .4rem; box-shadow: 0 10px 30px rgba(26,107,204,.28);
}
.btn-solid-ics:hover {
    background: linear-gradient(135deg, var(--accent-hover), #0284c7); text-decoration: none; color: #ffffff;
    transform: translateY(-1px);
}

/* ── Section 通用 ── */
.section { padding: 5rem 1.5rem; }
.hero + .section { margin-top: -1px; }
.section-dark  { background: var(--bg-page); }
.section-card  { background: var(--bg-section2); }
.section-title {
    font-size: clamp(1.5rem, 3vw, 2.2rem);
    font-weight: 700; margin-bottom: .6rem;
    text-align: center; color: var(--text-primary);
}
.section-title span { color: var(--accent); }
.section-sub {
    text-align: center; color: var(--text-muted);
    margin-bottom: 3rem; font-size: 1rem;
}
.container-ics { max-width: 1400px; margin: 0 auto; padding: 0 2rem; }

/* ── 产品卡片 ── */
.product-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 2rem; }
.product-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px; overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: transform .25s, box-shadow .25s;
}
.product-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.product-card img { width: 100%; height: 220px; object-fit: cover; }
.product-card-body { padding: 1.5rem; }
.product-card-body h3 { font-size: 1.2rem; color: var(--accent); margin-bottom: .5rem; }
.product-card-body p  { color: var(--text-muted); font-size: .95rem; margin-bottom: 1.2rem; }

/* ── 特性图标网格 ── */
.feature-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 1.5rem; }
.feature-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 10px; padding: 1.5rem 1rem;
    text-align: center; transition: border-color .25s, box-shadow .25s;
    box-shadow: var(--shadow-sm);
}
.feature-card:hover { border-color: var(--accent); box-shadow: var(--shadow-md); }
.feature-icon { font-size: 2rem; margin-bottom: .7rem; }
.feature-card h4 { font-size: .95rem; color: var(--text-primary); margin-bottom: .3rem; }
.feature-card p  { font-size: .82rem; color: var(--text-muted); margin: 0; }

/* ── 示例项目卡片 ── */
.sample-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1.5rem; }
.sample-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 10px; padding: 1.4rem;
    box-shadow: var(--shadow-sm);
    transition: border-color .25s, transform .2s, box-shadow .25s;
}
.sample-card:hover { border-color: var(--accent); transform: translateY(-3px); box-shadow: var(--shadow-md); }
.sample-card .tag {
    display: inline-block; font-size: .72rem;
    background: var(--accent-light); color: var(--accent);
    padding: .2rem .6rem; border-radius: 4px; margin-bottom: .7rem;
    font-weight: 600;
}
.sample-card h4 { font-size: 1rem; color: var(--text-primary); margin-bottom: .4rem; }
.sample-card p  { font-size: .85rem; color: var(--text-muted); margin: 0; }

/* ── code 片段 ── */
.code-block {
    background: #f6f8fa; border: 1px solid var(--border);
    border-radius: 8px; padding: 1.2rem 1.4rem;
    font-family: 'Cascadia Code','Fira Code', monospace;
    font-size: .82rem; color: #24292e;
    overflow-x: auto; margin: 1.2rem 0;
}
.code-block .kw { color: #d73a49; }
.code-block .cm { color: #6a737d; font-style: italic; }
.code-block .st { color: #032f62; }
.code-block .ac { color: var(--accent); }

/* ── 图片画廊 ── */
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 1rem; }
.gallery-grid img {
    width: 100%; border-radius: 8px;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
    transition: transform .25s, box-shadow .25s;
    cursor: zoom-in;
}
.gallery-grid img:hover { transform: scale(1.03); box-shadow: var(--shadow-md); }

/* ── 开发板图文展示卡片 ── */
.board-showcase-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}
.board-showcase-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 14px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: transform .25s, box-shadow .25s;
}
.board-showcase-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 36px rgba(26,107,204,0.18);
}
.board-showcase-card img {
    width: 100%;
    display: block;
    object-fit: cover;
    max-height: 280px;
    border-bottom: 2px solid var(--accent);
}
.board-showcase-info {
    padding: 1.4rem 1.6rem 1.6rem;
}
.board-showcase-info h4 {
    font-size: 1.15rem;
    color: var(--text-primary);
    margin: 0 0 .6rem;
    font-weight: 700;
}
.board-showcase-info p {
    font-size: 1rem;
    color: var(--text-primary);
    margin: 0;
    line-height: 1.7;
}

/* ── 协议徽章 ── */
.protocol-badges { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: center; margin-bottom: 2rem; }
.protocol-badge {
    background: var(--bg-card); border: 1.5px solid var(--border-accent);
    color: var(--accent); border-radius: 6px;
    padding: .6rem 1.4rem; font-weight: 600; font-size: .9rem;
    box-shadow: var(--shadow-sm);
}

/* ── 架构流程图 ── */
.arch-flow {
    display: flex; align-items: center; justify-content: center;
    flex-wrap: wrap; gap: .5rem; margin: 2rem 0;
}
.arch-box {
    background: var(--bg-card); border: 1px solid var(--border);
    border-radius: 8px; padding: .6rem 1.2rem;
    font-size: .88rem; color: var(--text-primary); text-align: center;
    box-shadow: var(--shadow-sm);
}
.arch-box.highlight { border-color: var(--accent); color: var(--accent); background: var(--accent-light); }
.arch-arrow { color: var(--text-muted); font-size: 1.2rem; }

/* ── 亮点列表 ── */
.highlight-list { list-style: none; padding: 0; margin: 0; }
.highlight-list li {
    padding: .6rem 0; border-bottom: 1px solid var(--border);
    color: var(--text-primary); font-size: .95rem;
    display: flex; align-items: flex-start; gap: .7rem;
}
.highlight-list li:last-child { border-bottom: none; }
.highlight-list li::before { content: '▹'; color: var(--accent); flex-shrink: 0; margin-top: .1rem; }

/* ── 联系区 ── */
.contact-section {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px; padding: 3rem 2rem;
    text-align: center; box-shadow: var(--shadow-sm);
}
.contact-section h2 { color: var(--accent); }
.contact-info { font-size: 1.1rem; color: var(--text-primary); margin: .5rem 0; }
.contact-info a { color: var(--accent); font-weight: 600; }

/* ── 底部 ── */
.site-footer {
    background: #1e293b;
    border-top: 1px solid #334155;
    padding: 2rem 1.5rem; text-align: center;
    color: #94a3b8; font-size: .85rem;
}
.site-footer a { color: #94a3b8; }

/* ── 页面子 Hero（产品页用）── */
.page-hero {
    padding: 6rem 1.5rem 3rem;
    background: linear-gradient(135deg, #e8f0fb 0%, #f5f7fa 60%, #e0f2fe 100%);
    text-align: center;
}
.page-hero h1 { font-size: clamp(1.8rem, 4vw, 3rem); color: var(--text-primary); }
.page-hero p { color: var(--text-muted); max-width: 600px; margin: 0 auto; }

/* ── 两列布局 ── */
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: start; }
@media (max-width: 768px) { .two-col { grid-template-columns: 1fr; } }

@media (max-width: 980px) {
    .hero { text-align: center; }
    .hero-inner { grid-template-columns: 1fr; gap: 2.5rem; }
    .hero-content { max-width: 100%; }
    .hero .subtitle { margin-left: auto; margin-right: auto; }
    .hero-metrics { margin: 0 auto; }
    .hero-tech-panel { min-height: 440px; max-width: 560px; margin: 0 auto; width: 100%; }
}

@media (max-width: 640px) {
    .hero { padding: 3.5rem 1rem; }
    .hero-metrics { grid-template-columns: 1fr; }
    .hero-tech-panel { min-height: 420px; border-radius: 20px; }
    .chip-visual { width: 180px; height: 180px; }
    .chip-core { inset: 26px; font-size: 2.4rem; }
    .tech-lines { grid-template-columns: 1fr; }
}

/* ── 定制服务卡片 ── */
.custom-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.5rem; }
.custom-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 10px; padding: 1.8rem 1.5rem;
    box-shadow: var(--shadow-sm);
    transition: border-color .25s, box-shadow .25s, transform .2s;
    border-left: 4px solid var(--accent);
}
.custom-card:hover { border-color: var(--accent); box-shadow: var(--shadow-md); transform: translateY(-3px); }
.custom-card .custom-icon { font-size: 2.2rem; margin-bottom: .8rem; }
.custom-card h4 { font-size: 1.05rem; color: var(--text-primary); margin-bottom: .5rem; }
.custom-card p  { font-size: .88rem; color: var(--text-muted); margin: 0; }

/* ── Blazor 错误 ── */
.blazor-error-boundary {
    background: #fef2f2; border: 1px solid #fca5a5;
    padding: 1rem 1rem 1rem 2rem; color: #dc2626;
}
.blazor-error-boundary::after { content: "发生了一个错误。"; }

h1:focus { outline: none; }
.valid.modified:not([type=checkbox]) { outline: 1px solid #26b050; }
.invalid { outline: 1px solid #e50000; }
.validation-message { color: #e50000; }

/* end */