/* ============================================================
   佛山市艾拉米智能科技有限公司 · 官网样式
   无图片版本：所有视觉由色块 / 排版 / 线条构成
   ============================================================ */

:root {
    --c-primary: #14508C;
    --c-primary-d: #0E3A68;
    --c-primary-l: #E8F1FA;
    --c-ink: #1E2429;
    --c-body: #4A545C;
    --c-muted: #8A949C;
    --c-line: #E2E7EB;
    --c-bg: #FFFFFF;
    --c-bg-soft: #F6F8FA;

    --f-sans: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei",
              "Source Han Sans SC", "Noto Sans CJK SC", sans-serif;

    --maxw: 1140px;
    --radius: 6px;
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
    font-family: var(--f-sans);
    font-size: 16px;
    line-height: 1.85;
    color: var(--c-body);
    background: var(--c-bg);
    -webkit-font-smoothing: antialiased;
}

a { color: var(--c-primary); text-decoration: none; transition: color .18s ease; }
a:hover { color: var(--c-primary-d); }

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

/* ---------- 页头 ---------- */
.site-header {
    position: sticky; top: 0; z-index: 100;
    background: rgba(255, 255, 255, .96);
    border-bottom: 1px solid var(--c-line);
}

.hd-inner {
    display: flex; align-items: center; justify-content: space-between;
    height: 72px;
}

/* 文字标识（无 Logo 素材时的替代方案） */
.brand { display: flex; align-items: center; gap: 12px; min-width: 0; }
.brand-mark {
    flex: none;
    width: 40px; height: 40px;
    background: var(--c-primary);
    color: #fff;
    border-radius: var(--radius);
    display: flex; align-items: center; justify-content: center;
    font-size: 19px; font-weight: 700; letter-spacing: -.5px;
}
/* 后台配置了 Logo 时，site-sync.js 会把文字块替换成 <img class="brand-mark"> */
img.brand-mark {
    object-fit: contain;
    background: transparent;
    border-radius: var(--radius);
}
.brand-text { min-width: 0; }
.brand-name {
    display: block;
    font-size: 17px; font-weight: 700; color: var(--c-ink);
    line-height: 1.3; letter-spacing: -.2px;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.brand-en {
    display: block;
    font-size: 11px; color: var(--c-muted); line-height: 1.4;
    letter-spacing: .3px;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

.nav { display: flex; align-items: center; gap: 4px; }
.nav a {
    position: relative;
    display: block; padding: 8px 16px;
    font-size: 15px; color: var(--c-body); border-radius: var(--radius);
}
.nav a:hover { color: var(--c-primary); background: var(--c-bg-soft); }
.nav a.is-active { color: var(--c-primary); font-weight: 600; }
.nav a.is-active::after {
    content: ""; position: absolute; left: 16px; right: 16px; bottom: 0;
    height: 2px; background: var(--c-primary); border-radius: 2px;
}

.nav-toggle {
    display: none;
    width: 42px; height: 42px;
    border: 1px solid var(--c-line); border-radius: var(--radius);
    background: #fff; cursor: pointer;
    flex-direction: column; align-items: center; justify-content: center; gap: 5px;
}
.nav-toggle span {
    display: block; width: 18px; height: 2px;
    background: var(--c-ink); border-radius: 2px;
    transition: transform .22s ease, opacity .22s ease;
}
.nav-toggle.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.is-open span:nth-child(2) { opacity: 0; }
.nav-toggle.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
/* 背景图由 site-images.js 集中填充（data-img-bg），此处渐变仅作无 JS 兜底 */
.hero {
    position: relative;
    background: linear-gradient(160deg, rgba(14, 58, 104, .93) 0%, rgba(20, 80, 140, .90) 55%, rgba(28, 99, 168, .86) 100%);
    color: #fff; padding: 92px 0 84px;
}
.hero .wrap { position: relative; z-index: 1; }
.hero-slogan {
    display: inline-block;
    font-size: 13px; letter-spacing: 3px;
    padding: 7px 16px; margin-bottom: 26px;
    border: 1px solid rgba(255, 255, 255, .38); border-radius: 40px;
    color: rgba(255, 255, 255, .95);
}
.hero h1 {
    font-size: 40px; line-height: 1.35; font-weight: 700;
    letter-spacing: -.5px; margin-bottom: 18px;
}
.hero-lead {
    font-size: 17px; line-height: 1.9;
    color: rgba(255, 255, 255, .88); max-width: 720px;
}
.hero-meta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.hero-meta a {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 11px 22px; border-radius: var(--radius);
    font-size: 15px; font-weight: 500;
    background: rgba(255, 255, 255, .14);
    border: 1px solid rgba(255, 255, 255, .32);
    color: #fff;
}
.hero-meta a:hover { background: #fff; color: var(--c-primary-d); border-color: #fff; }

/* ---------- 区块 ---------- */
.section { padding: 76px 0; }
.section.soft { background: var(--c-bg-soft); border-top: 1px solid var(--c-line); border-bottom: 1px solid var(--c-line); }

.sec-head { margin-bottom: 44px; max-width: 780px; }
.sec-kicker {
    display: block; font-size: 13px; letter-spacing: 2px;
    color: var(--c-primary); font-weight: 600; margin-bottom: 10px;
}
.sec-head h2 {
    font-size: 30px; line-height: 1.4; color: var(--c-ink);
    font-weight: 700; letter-spacing: -.3px; margin-bottom: 14px;
}
.sec-head p { font-size: 16px; color: var(--c-body); }

/* ---------- 摘要卡 ---------- */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.card {
    background: #fff; border: 1px solid var(--c-line);
    border-radius: var(--radius); padding: 30px 28px;
    display: flex; flex-direction: column;
}
.card-idx {
    display: inline-block; font-size: 12px; font-weight: 700;
    letter-spacing: 1px; color: var(--c-primary);
    background: var(--c-primary-l);
    padding: 4px 10px; border-radius: 4px; margin-bottom: 16px;
    align-self: flex-start;
}
.card h3 { font-size: 19px; color: var(--c-ink); font-weight: 600; margin-bottom: 12px; }
.card p { font-size: 15px; line-height: 1.9; color: var(--c-body); }
.card-link { display: inline-block; margin-top: 18px; font-size: 14px; font-weight: 600; }
.card-link::after { content: " →"; }
.card-img {
    width: calc(100% + 56px);
    height: 200px; object-fit: cover;
    margin: -30px -28px 18px -28px;
    border-bottom: 1px solid var(--c-line);
}

/* ---------- 正文配图 ---------- */
.content-figure {
    margin: 36px 0 0;
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--c-line);
}
.content-figure img {
    width: 100%;
    height: auto;
    max-height: 640px;
    object-fit: contain;
    display: block;
    background: #f5f7fa;
}
.content-figure figcaption {
    padding: 12px 16px;
    font-size: 13.5px;
    color: var(--c-body);
    background: var(--c-bg-soft);
    border-top: 1px solid var(--c-line);
}

/* ---------- 正文排版 ---------- */
.prose { max-width: 840px; }
.prose p { margin-bottom: 20px; font-size: 16.5px; line-height: 2.0; }
.prose p:last-child { margin-bottom: 0; }
.prose strong { color: var(--c-ink); font-weight: 600; }

.lead-para {
    font-size: 18px; line-height: 1.95; color: var(--c-ink);
    padding-left: 18px; border-left: 3px solid var(--c-primary);
    margin-bottom: 36px;
}

/* 关键事实条 */
.facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 40px; }
.fact {
    background: var(--c-bg-soft); border: 1px solid var(--c-line);
    border-radius: var(--radius); padding: 24px 22px;
}
.fact dt { font-size: 13px; color: var(--c-muted); letter-spacing: .5px; margin-bottom: 8px; }
.fact dd { font-size: 16px; color: var(--c-ink); font-weight: 600; line-height: 1.6; }

/* ---------- 文化条目 ---------- */
.culture-list { display: grid; gap: 20px; }
.culture-item {
    display: grid; grid-template-columns: 92px 1fr; gap: 28px;
    background: #fff; border: 1px solid var(--c-line);
    border-radius: var(--radius); padding: 30px 32px;
}
.culture-badge {
    width: 76px; height: 76px; border-radius: var(--radius);
    background: var(--c-primary); color: #fff;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    font-size: 20px; font-weight: 700; letter-spacing: 1px;
}
.culture-badge small {
    display: block; font-size: 9px; font-weight: 400;
    letter-spacing: 1.2px; opacity: .82; margin-top: 3px;
}
.culture-item h3 { font-size: 20px; color: var(--c-ink); font-weight: 600; margin-bottom: 10px; }
.culture-item p { font-size: 16px; line-height: 1.95; }

/* ---------- 理念三栏 ---------- */
.tenets { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.tenet {
    border: 1px solid var(--c-line); border-top: 3px solid var(--c-primary);
    border-radius: var(--radius); padding: 28px 26px; background: #fff;
}
.tenet-label {
    font-size: 13px; color: var(--c-primary); font-weight: 600;
    letter-spacing: 1px; margin-bottom: 12px;
}
.tenet p { font-size: 17px; color: var(--c-ink); font-weight: 600; line-height: 1.8; }

/* ---------- 联系 ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.contact-card {
    background: #fff; border: 1px solid var(--c-line);
    border-radius: var(--radius); padding: 34px 32px;
}
.contact-card h3 {
    font-size: 17px; color: var(--c-ink); font-weight: 600;
    margin-bottom: 18px; padding-bottom: 14px; border-bottom: 1px solid var(--c-line);
}
.contact-row { display: flex; gap: 14px; padding: 14px 0; border-bottom: 1px dashed var(--c-line); }
.contact-row:last-of-type { border-bottom: 0; }
.contact-row .k { flex: none; width: 76px; font-size: 14px; color: var(--c-muted); }
.contact-row .v { font-size: 16px; color: var(--c-ink); line-height: 1.8; }
.contact-row .v .note { display: block; font-size: 13px; color: var(--c-muted); margin-top: 2px; }

.tel-btn {
    display: inline-flex; align-items: center; gap: 10px;
    margin-top: 22px; padding: 14px 28px;
    background: var(--c-primary); color: #fff;
    border-radius: var(--radius); font-size: 18px; font-weight: 600;
    letter-spacing: .5px;
}
.tel-btn:hover { background: var(--c-primary-d); color: #fff; }

.map-links { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 18px; }
.map-btn {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 11px 20px; border: 1px solid var(--c-primary);
    border-radius: var(--radius); font-size: 15px; color: var(--c-primary);
    background: #fff;
}
.map-btn:hover { background: var(--c-primary); color: #fff; }

/* ---------- 页脚 ---------- */
.site-footer {
    background: #1E2429; color: #9BA6AE;
    padding: 52px 0 0; font-size: 14px;
}
.ft-grid {
    display: grid; grid-template-columns: 1.4fr 1fr 1fr;
    gap: 40px; padding-bottom: 38px;
}
.ft-col h4 { font-size: 15px; color: #fff; font-weight: 600; margin-bottom: 16px; }
.ft-col p, .ft-col li { line-height: 1.95; }
.ft-col ul { list-style: none; }
.ft-col li { margin-bottom: 6px; }
.ft-col a { color: #9BA6AE; }
.ft-col a:hover { color: #fff; }
.ft-brand-name { font-size: 16px; color: #fff; font-weight: 600; margin-bottom: 12px; }

.ft-bottom {
    border-top: 1px solid #2E353C;
    padding: 20px 0 28px;
    display: flex; flex-wrap: wrap; gap: 10px 24px;
    align-items: center; justify-content: space-between;
    font-size: 13.5px;
}
.ft-icp a { color: #9BA6AE; }
.ft-icp a:hover { color: #fff; }
/* ---------- 响应式 ---------- */
@media (max-width: 900px) {
    .cards, .facts, .tenets { grid-template-columns: 1fr 1fr; }
    .ft-grid { grid-template-columns: 1fr 1fr; }
    .contact-grid { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
    .nav-toggle { display: flex; }
    .nav {
        display: none;
        position: absolute; top: 72px; left: 0; right: 0;
        flex-direction: column; align-items: stretch; gap: 0;
        background: #fff; border-bottom: 1px solid var(--c-line);
        box-shadow: 0 8px 20px rgba(20, 40, 60, .10);
        padding: 8px 16px 16px;
    }
    .nav.is-open { display: flex; }
    .nav a { padding: 13px 8px; font-size: 16px; border-radius: 0; border-bottom: 1px solid var(--c-line); }
    .nav a.is-active::after { display: none; }
    .nav a:last-child { border-bottom: 0; }

    .hd-inner { height: 64px; }
    .brand-name { font-size: 15px; }
    .brand-en { display: none; }

    .hero { padding: 60px 0 52px; }
    .hero h1 { font-size: 27px; }
    .hero-lead { font-size: 15.5px; }
    .hero-meta a { flex: 1 1 auto; justify-content: center; }

    .section { padding: 52px 0; }
    .sec-head { margin-bottom: 30px; }
    .sec-head h2 { font-size: 24px; }

    .cards, .facts, .tenets { grid-template-columns: 1fr; }
    .ft-grid { grid-template-columns: 1fr; gap: 28px; }

    .culture-item { grid-template-columns: 1fr; gap: 18px; padding: 26px 22px; }
    .culture-badge { width: 62px; height: 62px; font-size: 17px; }

    .contact-row { flex-direction: column; gap: 4px; }
    .contact-row .k { width: auto; }

    .card-img { height: 170px; }
    .ft-bottom { flex-direction: column; align-items: flex-start; gap: 8px; }
}

@media (max-width: 380px) {
    .wrap { padding: 0 18px; }
    .hero h1 { font-size: 24px; }
}

@media print {
    .site-header, .nav-toggle { display: none; }
}
