/* ============================================================
   清远灵动网络科技有限公司 - 前台样式
   默认配色：黑白金（可通过后台「网站配色」切换 36 套模板配色）
   说明：本文件 :root 定义「16 个语义变量 + 旧变量别名」；
         theme.css（后台保存配色时生成）仅覆盖语义变量，实现整站换肤。
   ============================================================ */

:root {
    /* ===== 语义变量（theme.css 覆盖目标，默认 = 黑白金） ===== */
    --c-primary:       #111111;
    --c-on-primary:    #FFFFFF;
    --c-accent:        #C8A15A;
    --c-on-accent:     #111111;
    --c-accent-soft:   #dcbb7e;
    --c-neutral:       #888780;
    --c-neutral-soft:  #b5b4ad;
    --c-bg:            #FFFFFF;
    --c-surface:       #FFFFFF;
    --c-surface-2:     #f6f5f2;
    --c-ink:           #111111;
    --c-on-dark-muted: #FFFFFF;
    --c-line:          #eeeeee;
    --c-line-dark:     #2a2a2a;
    --c-header-bg:     rgba(17, 17, 17, 0.96);
    --c-footer-bg:     #0d0d0d;

    /* ===== 功能色（不随主题变） ===== */
    --c-danger:        #d0021b;
    --c-success-bg:    #eaf7ee;
    --c-success-text:  #1d7a3c;
    --c-success-line:  #bfe6ca;
    --c-danger-bg:     #fdeeee;
    --c-danger-text:   #b02a2a;
    --c-danger-line:   #f3c4c4;

    /* ===== 布局（不变） ===== */
    --radius: 4px;
    --shadow: 0 8px 30px rgba(0, 0, 0, 0.18);

    /* ===== 品牌固定色（logo/版权栏保持黑白金，不随主题变） ===== */
    --brand-gold:  #C8A15A;
    --brand-white: #FFFFFF;
    --brand-ink:   #111111;

    /* ===== 旧变量别名（兼容，跟随语义变量，减少漏改风险） ===== */
    --black:       var(--c-primary);
    --black-soft:  var(--c-primary);
    --black-deep:  var(--c-footer-bg);
    --gold:        var(--c-accent);
    --gold-light:  var(--c-accent-soft);
    --gray:        var(--c-neutral);
    --gray-light:  var(--c-neutral-soft);
    --white:       #FFFFFF;
    --line:        var(--c-line-dark);
}

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

html {
    scroll-behavior: smooth;
}

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

a {
    color: inherit;
    text-decoration: none;
}

img {
    max-width: 100%;
    display: block;
}

ul {
    list-style: none;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.container-narrow {
    max-width: 780px;
}

/* ---------- 顶部导航（固定吸顶） ---------- */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 999;
    background: var(--c-header-bg);
    border-bottom: 1px solid var(--c-line-dark);
    height: 68px;
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--c-on-primary);
}

.logo-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: var(--brand-gold);
    color: var(--brand-ink);
    font-weight: 700;
    font-size: 16px;
    border-radius: 2px;
}

.logo-text {
    font-size: 17px;
    font-weight: 600;
    letter-spacing: 1px;
}

/* 站点 LOGO 图片：后台「站点配置」上传，留空时回退为文字 LOGO。
   限制最大高度并等比缩放，避免撑破 68px 高的吸顶导航。 */
.logo-img {
    display: block;
    width: auto;
    max-width: 220px;
    max-height: 44px;
    height: auto;
    object-fit: contain;
}

.main-nav .nav-list {
    display: flex;
    gap: 2px;
}

.nav-list li a {
    display: block;
    padding: 8px 14px;
    color: var(--c-on-dark-muted);
    font-size: 15px;
    position: relative;
    transition: color 0.2s;
}

.nav-list li a:hover,
.nav-list li.active a {
    color: var(--c-accent);
}

.nav-list li.active a::after {
    content: "";
    position: absolute;
    left: 14px;
    right: 14px;
    bottom: 2px;
    height: 2px;
    background: var(--c-accent);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px;
}

.nav-toggle span {
    width: 24px;
    height: 2px;
    background: var(--c-on-primary);
}

/* ---------- 主体留白（避开固定导航） ---------- */
.main {
    padding-top: 68px;
}

/* ---------- 按钮 ---------- */
.btn {
    display: inline-block;
    padding: 11px 28px;
    font-size: 15px;
    border-radius: var(--radius);
    border: 1px solid transparent;
    cursor: pointer;
    transition: all 0.25s;
}

.btn-gold {
    background: var(--c-accent);
    color: var(--c-on-accent);
    font-weight: 600;
}

.btn-gold:hover {
    background: var(--c-accent-soft);
}

.btn-dark {
    background: var(--c-primary);
    color: var(--c-on-primary);
}

.btn-dark:hover {
    background: var(--c-accent);
    color: var(--c-on-accent);
}

.btn-outline {
    border-color: var(--c-line);
    color: var(--c-ink);
    background: var(--c-surface);
}

.btn-outline:hover {
    border-color: var(--c-accent);
    color: var(--c-accent);
}

/* ---------- 轮播 ---------- */
.hero {
    position: relative;
    height: 560px;
    overflow: hidden;
}

.hero-slider {
    position: relative;
    height: 100%;
}

.hero-slide {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 0.8s ease;
}

.hero-slide.active {
    opacity: 1;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(0, 0, 0, 0.72) 0%, rgba(0, 0, 0, 0.25) 60%);
    display: flex;
    align-items: center;
}

.hero-content {
    color: var(--c-on-primary);
}

.hero-content h1 {
    font-size: 44px;
    letter-spacing: 2px;
    margin-bottom: 28px;
    max-width: 640px;
}

.hero-dots {
    position: absolute;
    bottom: 22px;
    left: 0;
    right: 0;
    text-align: center;
    z-index: 5;
}

.hero-dots .dot {
    display: inline-block;
    width: 10px;
    height: 10px;
    margin: 0 5px;
    background: rgba(255, 255, 255, 0.4);
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s;
}

.hero-dots .dot.active {
    background: var(--c-accent);
    width: 26px;
    border-radius: 5px;
}

/* ---------- 区块 ---------- */
.section {
    padding: 80px 0;
}

.section-gray {
    background: var(--c-surface-2);
}

.section-head {
    text-align: center;
    margin-bottom: 48px;
}

.section-head h2 {
    font-size: 32px;
    color: var(--c-ink);
    letter-spacing: 2px;
}

.gold-line {
    display: block;
    width: 56px;
    height: 3px;
    background: var(--c-accent);
    margin: 14px auto;
}

.section-sub {
    color: var(--c-neutral);
    letter-spacing: 4px;
    font-size: 13px;
    text-transform: uppercase;
}

.section-more {
    text-align: center;
    margin-top: 40px;
}

/* ---------- 关于我们摘要 ---------- */
.about-teaser {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: center;
}

.about-teaser-img img {
    width: 100%;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.about-teaser-body h3 {
    font-size: 24px;
    color: var(--c-ink);
    margin-bottom: 18px;
}

.about-teaser-body p {
    color: var(--c-neutral);
    margin-bottom: 26px;
}

/* ---------- 卡片网格（产品/案例） ---------- */
.card-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 26px;
}

.card {
    display: block;
    background: var(--c-surface);
    border: 1px solid var(--c-line);
    border-radius: var(--radius);
    overflow: hidden;
    transition: all 0.3s;
}

.card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow);
    border-color: var(--c-accent);
}

.card-img {
    height: 200px;
    overflow: hidden;
    background: var(--c-surface-2);
}

.card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.card:hover .card-img img {
    transform: scale(1.06);
}

.card-body {
    padding: 18px 18px 22px;
}

.card-body h3 {
    font-size: 18px;
    color: var(--c-ink);
    margin-bottom: 8px;
}

.card-body p {
    font-size: 14px;
    color: var(--c-neutral);
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.card-tag {
    display: inline-block;
    font-size: 12px;
    color: var(--c-accent);
    border: 1px solid var(--c-accent);
    padding: 2px 10px;
    border-radius: 20px;
    margin-bottom: 10px;
}

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

.service-card {
    display: block;
    background: var(--c-surface);
    border: 1px solid var(--c-line);
    border-radius: var(--radius);
    padding: 34px 24px;
    text-align: center;
    transition: all 0.3s;
}

.service-card:hover {
    border-color: var(--c-accent);
    box-shadow: var(--shadow);
    transform: translateY(-6px);
}

.service-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    background: var(--c-primary);
    color: var(--c-accent);
    border-radius: 50%;
    margin-bottom: 18px;
    overflow: hidden;
}

.service-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    display: block;
}

.service-icon.large {
    width: 84px;
    height: 84px;
    flex: none;
}

.service-card h3 {
    font-size: 18px;
    color: var(--c-ink);
    margin-bottom: 10px;
}

.service-card p {
    font-size: 14px;
    color: var(--c-neutral);
}

.service-more {
    display: inline-block;
    margin-top: 14px;
    font-size: 13px;
    color: var(--c-accent);
}

/* ---------- 资质 ---------- */
.qual-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 26px;
}

.qual-item {
    background: var(--c-surface);
    border: 1px solid var(--c-line);
    border-radius: var(--radius);
    padding: 20px;
    text-align: center;
}

.qual-img {
    height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--c-surface-2);
    border: 1px solid var(--c-line);
    margin-bottom: 16px;
    overflow: hidden;
}

.qual-img img {
    max-height: 100%;
    object-fit: contain;
}

.qual-item h4 {
    font-size: 16px;
    color: var(--c-ink);
    margin-bottom: 6px;
}

.qual-item p {
    font-size: 13px;
    color: var(--c-neutral);
}

.qual-date {
    margin-top: 4px;
}

.qual-more {
    margin-top: 14px;
    padding: 8px 22px;
    font-size: 14px;
}

/* ---------- 新闻列表 ---------- */
.news-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.news-item {
    display: flex;
    gap: 24px;
    background: var(--c-surface);
    border: 1px solid var(--c-line);
    border-radius: var(--radius);
    padding: 20px;
    transition: all 0.3s;
}

.news-item:hover {
    border-color: var(--c-accent);
    box-shadow: var(--shadow);
}

.news-img {
    flex: none;
    width: 220px;
    height: 150px;
    overflow: hidden;
    border-radius: 2px;
}

.news-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.news-body h3 {
    font-size: 18px;
    color: var(--c-ink);
    margin-bottom: 10px;
}

.news-body p {
    font-size: 14px;
    color: var(--c-neutral);
    margin-bottom: 12px;
}

.news-meta {
    display: flex;
    gap: 20px;
    font-size: 13px;
    color: var(--c-neutral);
}

/* ---------- 页头横幅（内页） ---------- */
.page-banner {
    background: var(--c-primary);
    color: var(--c-on-primary);
    text-align: center;
    padding: 70px 0;
}

.page-banner h1 {
    font-size: 36px;
    letter-spacing: 3px;
}

.page-banner p {
    color: var(--c-accent);
    letter-spacing: 5px;
    margin-top: 8px;
    font-size: 14px;
}

/* ---------- 筛选条 ---------- */
.filter-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
    margin-bottom: 40px;
}

.filter-item {
    padding: 7px 20px;
    border: 1px solid var(--c-line);
    border-radius: 30px;
    font-size: 14px;
    color: var(--c-neutral);
    transition: all 0.2s;
}

.filter-item:hover,
.filter-item.active {
    background: var(--c-accent);
    border-color: var(--c-accent);
    color: var(--c-on-accent);
}

/* ---------- 分页 ---------- */
.pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 44px;
    flex-wrap: wrap;
}

.pagination a,
.pagination .current {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 38px;
    height: 38px;
    padding: 0 12px;
    border: 1px solid var(--c-line);
    border-radius: var(--radius);
    font-size: 14px;
    color: var(--c-neutral);
}

.pagination .current {
    background: var(--c-accent);
    border-color: var(--c-accent);
    color: var(--c-on-accent);
    font-weight: 600;
}

.pagination a:hover {
    border-color: var(--c-accent);
    color: var(--c-accent);
}

/* ---------- 详情页 ---------- */
.detail-wrap {
    background: var(--c-surface);
}

.detail-head {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 44px;
    align-items: center;
    margin-bottom: 40px;
}

.detail-img {
    border: 1px solid var(--c-line);
    border-radius: var(--radius);
    overflow: hidden;
}

.detail-img img {
    width: 100%;
    object-fit: cover;
}

.detail-meta h1 {
    font-size: 30px;
    color: var(--c-ink);
    margin-bottom: 14px;
}

.detail-summary {
    color: var(--c-neutral);
    margin: 16px 0 24px;
    line-height: 1.9;
}

.detail-client {
    color: var(--c-neutral);
    margin-top: 8px;
}

.service-detail-head {
    display: flex;
    align-items: center;
    gap: 26px;
    margin-bottom: 34px;
}

.service-detail-head h1 {
    font-size: 28px;
    color: var(--c-ink);
}

.detail-cta {
    margin-top: 36px;
    text-align: center;
}

/* ---------- 富文本内容 ---------- */
.rich-content {
    font-size: 16px;
    color: var(--c-ink);
    line-height: 2;
}

.rich-content p {
    margin-bottom: 16px;
}

.rich-content img {
    max-width: 100%;
    margin: 12px 0;
    border-radius: var(--radius);
}

.rich-content h1,
.rich-content h2,
.rich-content h3 {
    color: var(--c-ink);
    margin: 20px 0 12px;
}

.rich-content ul,
.rich-content ol {
    margin: 0 0 16px 22px;
}

.rich-content ul {
    list-style: disc;
}

.rich-content ol {
    list-style: decimal;
}

.rich-content a {
    color: var(--c-accent);
    text-decoration: underline;
}

/* ---------- 文章 ---------- */
.article-title {
    font-size: 28px;
    color: var(--c-ink);
    margin-bottom: 16px;
}

.article-meta {
    display: flex;
    gap: 24px;
    color: var(--c-neutral);
    font-size: 14px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--c-line);
    margin-bottom: 24px;
}

.article-cover {
    margin-bottom: 24px;
    border-radius: var(--radius);
    overflow: hidden;
}

.article-back {
    margin-top: 36px;
}

/* ---------- 联系 / 留言 ---------- */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 48px;
    align-items: start;
}

.contact-info h2 {
    font-size: 26px;
    color: var(--c-ink);
    margin-bottom: 22px;
}

.contact-list li {
    padding: 12px 0;
    border-bottom: 1px dashed var(--c-line);
    color: var(--c-neutral);
}

.contact-list strong {
    color: var(--c-ink);
}

.platform-links {
    margin: 24px 0;
}

.platform-links h3 {
    font-size: 17px;
    color: var(--c-ink);
    margin-bottom: 10px;
}

.contact-qr {
    text-align: center;
    border: 1px solid var(--c-line);
    border-radius: var(--radius);
    padding: 24px;
}

.contact-qr img {
    width: 200px;
    margin: 0 auto 14px;
}

.contact-qr p {
    color: var(--c-neutral);
    font-size: 14px;
}

.contact-box {
    margin-top: 26px;
    padding: 20px;
    background: var(--c-surface-2);
    border-left: 3px solid var(--c-accent);
    border-radius: var(--radius);
}

.contact-box h3 {
    color: var(--c-ink);
    margin-bottom: 10px;
}

/* ---------- 表单 ---------- */
.form {
    background: var(--c-surface);
    border: 1px solid var(--c-line);
    border-radius: var(--radius);
    padding: 34px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 14px;
    color: var(--c-ink);
    margin-bottom: 8px;
}

.form-group label em {
    color: var(--c-danger);
    font-style: normal;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 11px 14px;
    border: 1px solid var(--c-line);
    border-radius: var(--radius);
    font-size: 15px;
    font-family: inherit;
    background: var(--c-surface);
    color: var(--c-ink);
    transition: border-color 0.2s;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--c-accent);
}

.form .btn {
    margin-top: 6px;
}

/* ---------- 留言验证码 ---------- */
.captcha-row {
    display: flex;
    align-items: center;
    gap: 10px;
}

.captcha-row .captcha-input {
    flex: 1;
    min-width: 0;
    width: auto;
}

.captcha-row .captcha-img {
    flex: none;
    width: 120px;
    height: 40px;
    border: 1px solid var(--c-line);
    border-radius: var(--radius);
    cursor: pointer;
}

.form-hint {
    font-size: 12px;
    color: var(--c-neutral-soft);
    margin-top: 6px;
}

.flash {
    padding: 14px 18px;
    border-radius: var(--radius);
    margin-bottom: 24px;
    font-size: 15px;
}

.flash-success {
    background: var(--c-success-bg);
    color: var(--c-success-text);
    border: 1px solid var(--c-success-line);
}

.flash-error {
    background: var(--c-danger-bg);
    color: var(--c-danger-text);
    border: 1px solid var(--c-danger-line);
}

.flash-error ul {
    list-style: disc;
    margin-left: 20px;
}

.empty-tip {
    text-align: center;
    color: var(--c-neutral);
    padding: 60px 0;
    font-size: 16px;
}

/* ---------- 联系引导 CTA ---------- */
.cta {
    background: var(--c-primary);
    color: var(--c-on-primary);
    text-align: center;
}

.cta-inner h2 {
    font-size: 32px;
    letter-spacing: 2px;
}

.cta-inner p {
    color: var(--c-neutral-soft);
    margin: 16px 0 30px;
}

/* ---------- 右侧悬浮 ---------- */
.float-bar {
    position: fixed;
    right: 18px;
    bottom: 120px;
    z-index: 998;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.float-item {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    background: var(--c-primary);
    color: var(--c-on-primary);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
    transition: background 0.25s;
}

.float-item:hover {
    background: var(--c-accent);
    color: var(--c-on-accent);
}

.float-icon {
    font-size: 12px;
    font-weight: 600;
}

.float-pop {
    position: absolute;
    right: 64px;
    top: 50%;
    transform: translateY(-50%);
    background: var(--c-surface);
    color: var(--c-ink);
    padding: 10px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.25s;
    font-size: 14px;
}

.float-pop img {
    width: 140px;
}

.float-pop p {
    text-align: center;
    font-size: 12px;
    margin-top: 6px;
}

.float-item:hover .float-pop {
    opacity: 1;
    visibility: visible;
}

/* ---------- 页脚 ---------- */
.site-footer {
    background: var(--c-footer-bg);
    color: var(--c-on-dark-muted);
    padding-top: 60px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    padding-bottom: 40px;
}

.logo-light {
    color: var(--c-on-primary);
    margin-bottom: 18px;
}

/* 底部深色背景上的 LOGO 图片，可比导航略大 */
.logo-light .logo-img {
    max-width: 260px;
    max-height: 56px;
}

.footer-desc {
    font-size: 14px;
    line-height: 1.9;
}

.footer-title {
    color: var(--c-on-primary);
    font-size: 16px;
    margin-bottom: 18px;
    position: relative;
    padding-bottom: 10px;
}

.footer-title::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 30px;
    height: 2px;
    background: var(--c-accent);
}

.footer-contact li,
.footer-links li {
    font-size: 14px;
    padding: 5px 0;
    color: var(--c-neutral-soft);
}

.footer-links li a:hover {
    color: var(--c-accent);
}

.footer-qr img {
    width: 120px;
    border-radius: var(--radius);
}

.footer-bottom {
    border-top: 1px solid var(--c-line-dark);
    padding: 20px 0;
    font-size: 13px;
    color: var(--c-neutral-soft);
}

.footer-bottom p {
    padding: 2px 0;
}

/* ---------- 响应式 ---------- */
@media (max-width: 1024px) {
    .card-grid,
    .service-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 900px) {
    .main-nav {
        position: fixed;
        top: 68px;
        right: 0;
        width: 240px;
        height: calc(100vh - 68px);
        background: var(--c-primary);
        border-left: 1px solid var(--c-line-dark);
        transform: translateX(100%);
        transition: transform 0.3s;
    }

    .main-nav.open {
        transform: translateX(0);
    }

    .main-nav .nav-list {
        flex-direction: column;
        padding: 12px 0;
    }

    .nav-list li a {
        padding: 14px 24px;
        border-bottom: 1px solid var(--c-line-dark);
    }

    .nav-list li.active a::after {
        display: none;
    }

    .nav-toggle {
        display: flex;
    }

    .about-teaser,
    .detail-head {
        grid-template-columns: 1fr;
    }

    .qual-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .hero {
        height: 380px;
    }
    .hero-content h1 {
        font-size: 28px;
    }
    .section {
        padding: 56px 0;
    }
    .section-head h2 {
        font-size: 26px;
    }
    .card-grid,
    .service-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }
    .qual-grid {
        grid-template-columns: 1fr;
    }
    .news-item {
        flex-direction: column;
    }
    .news-img {
        width: 100%;
        height: 180px;
    }
    .contact-grid {
        grid-template-columns: 1fr;
    }
    .form-row {
        grid-template-columns: 1fr;
    }
    .footer-grid {
        grid-template-columns: 1fr;
    }
    /* 移动端收窄 LOGO，避免与汉堡菜单挤在一行 */
    .logo-img {
        max-width: 150px;
        max-height: 34px;
    }
    .logo-light .logo-img {
        max-width: 190px;
        max-height: 46px;
    }
    .float-bar {
        right: 10px;
        bottom: 90px;
    }
}

@media (max-width: 400px) {
    .card-grid,
    .service-grid {
        grid-template-columns: 1fr;
    }
}
