/* ==========================================================================
   朗致科技 - 现代化样式表
   替换旧的 style.css + responsive.css
   ========================================================================== */

/* ==========================================================================
   1. CSS 变量 & 设计令牌
   ========================================================================== */
:root {
    /* 品牌色 */
    --color-primary: #0284c7;
    --color-primary-light: #0ea5e9;
    --color-primary-dark: #0369a1;
    --color-primary-gradient: linear-gradient(135deg, #0ea5e9 0%, #0284c7 100%);
    --color-accent: #06b6d4;

    /* 中性色 */
    --color-dark: #0f172a;
    --color-dark-2: #1e293b;
    --color-dark-3: #334155;
    --color-text: #334155;
    --color-text-light: #64748b;
    --color-text-muted: #94a3b8;
    --color-bg: #f8fafc;
    --color-bg-alt: #f1f5f9;
    --color-white: #ffffff;
    --color-border: #e2e8f0;
    --color-border-light: #f1f5f9;

    /* 阴影 */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.07), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -4px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.05);
    --shadow-primary: 0 4px 14px 0 rgba(2, 132, 199, 0.3);

    /* 圆角 */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-full: 9999px;

    /* 间距 */
    --space-xs: 0.5rem;
    --space-sm: 1rem;
    --space-md: 1.5rem;
    --space-lg: 2.5rem;
    --space-xl: 4rem;
    --space-2xl: 6rem;

    /* 布局 */
    --container-max: 1280px;
    --header-height: 70px;
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.6s cubic-bezier(0.4, 0, 0.2, 1);

    /* 字体 */
    --font-sans: 'Noto Sans SC', 'PingFang SC', 'Microsoft YaHei', system-ui, -apple-system, sans-serif;
}

/* ==========================================================================
   2. 重置 & 基础样式
   ========================================================================== */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

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

body {
    font-family: var(--font-sans);
    font-size: 1rem;
    line-height: 1.7;
    color: var(--color-text);
    background: var(--color-white);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

a {
    color: var(--color-primary);
    text-decoration: none;
    transition: color var(--transition);
}

a:hover {
    color: var(--color-primary-dark);
}

ul, ol {
    list-style: none;
}

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: none;
}

/* 选择高亮 */
::selection {
    background: var(--color-primary);
    color: #fff;
}

/* 滚动条 */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: var(--color-bg-alt);
}
::-webkit-scrollbar-thumb {
    background: var(--color-text-muted);
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--color-text-light);
}

/* ==========================================================================
   3. 布局容器
   ========================================================================== */
.container {
    width: 100%;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 1.5rem;
}

.section {
    padding: var(--space-2xl) 0;
}

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

.section--dark {
    background: var(--color-dark);
    color: #fff;
}

/* ==========================================================================
   4. 排版
   ========================================================================== */
.section-title {
    font-size: clamp(1.75rem, 4vw, 2.75rem);
    font-weight: 800;
    color: var(--color-dark);
    text-align: center;
    margin-bottom: 0.75rem;
    letter-spacing: -0.02em;
}

.section-subtitle {
    font-size: clamp(1rem, 2vw, 1.25rem);
    color: var(--color-text-light);
    text-align: center;
    margin-bottom: var(--space-xl);
    font-weight: 400;
}

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

.section--dark .section-subtitle {
    color: rgba(255, 255, 255, 0.7);
}

/* 标题装饰线 */
.section-header {
    text-align: center;
    margin-bottom: var(--space-xl);
}

.section-header__line {
    width: 60px;
    height: 4px;
    background: var(--color-primary-gradient);
    border-radius: var(--radius-full);
    margin: 1rem auto 0;
}

/* ==========================================================================
   5. 按钮
   ========================================================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: var(--radius-sm);
    transition: all var(--transition);
    cursor: pointer;
    white-space: nowrap;
    text-align: center;
    line-height: 1.5;
}

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

.btn--primary:hover {
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px 0 rgba(2, 132, 199, 0.4);
}

.btn--outline {
    background: transparent;
    color: var(--color-primary);
    border: 2px solid var(--color-primary);
}

.btn--outline:hover {
    background: var(--color-primary);
    color: #fff;
    transform: translateY(-2px);
}

.btn--white {
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
    border: 2px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(10px);
}

.btn--white:hover {
    background: rgba(255, 255, 255, 0.25);
    color: #fff;
    border-color: rgba(255, 255, 255, 0.5);
}

.btn--lg {
    padding: 1rem 2.5rem;
    font-size: 1.125rem;
}

/* ==========================================================================
   6. 顶部信息栏
   ========================================================================== */
.topbar {
    background: var(--color-dark);
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.875rem;
    padding: 0.5rem 0;
}

.topbar__inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.topbar__phone {
    color: var(--color-primary);
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.topbar__phone i {
    font-size: 1rem;
}

.topbar__link {
    color: rgba(255, 255, 255, 0.8);
    transition: color var(--transition);
}

.topbar__link:hover {
    color: var(--color-primary);
}

/* ==========================================================================
   7. 导航栏
   ========================================================================== */
/* --- 基础外壳 & 防 Bootstrap 渗透 --- */
.navbar,
nav.navbar {
    position: sticky !important;
    top: 0 !important;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.85) !important;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--color-border);
    transition: all var(--transition);
    display: block !important;
    margin: 0 !important;
    padding: 0 !important;
    border-width: 0 0 1px 0 !important;
    border-radius: 0 !important;
    min-height: auto !important;
    font-size: 16px !important;
    line-height: 1 !important;
    font-family: var(--font-sans) !important;
    height: auto !important;
    width: auto !important;
    float: none !important;
}

/* 强制统一导航栏内 container */
.navbar > .container,
.navbar .container {
    max-width: 1200px !important;
    margin-left: auto !important;
    margin-right: auto !important;
    padding-left: 15px !important;
    padding-right: 15px !important;
    width: auto !important;
}

.navbar--scrolled {
    box-shadow: var(--shadow-md);
}

.navbar__inner {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    height: var(--header-height) !important;
    margin: 0 !important;
    padding: 0 !important;
}

.navbar__brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-shrink: 0;
}

.navbar__brand img {
    height: 32px;
    width: auto;
}

/* --- 菜单 & 条目：彻底隔离外部样式表 --- */
.navbar .navbar__menu,
nav.navbar ul.navbar__menu {
    display: flex !important;
    align-items: stretch !important;
    gap: 0.25rem;
    list-style: none !important;
    height: 100% !important;
    line-height: 1 !important;
    margin: 0 !important;
    padding: 0 !important;
    background: none !important;
    border: none !important;
    border-radius: 0 !important;
    float: none !important;
    width: auto !important;
}

.navbar .navbar__menu-item,
nav.navbar ul.navbar__menu > li.navbar__menu-item {
    display: flex !important;
    align-items: center !important;
    line-height: 1 !important;
    margin: 0 !important;
    padding: 0 !important;
    position: static !important;
    float: none !important;
    border: none !important;
    background: none !important;
}

.navbar__menu-item a,
.navbar .navbar__menu-item a,
nav.navbar ul.navbar__menu > li.navbar__menu-item > a {
    display: flex !important;
    align-items: center !important;
    padding: 0 1.25rem !important;
    font-size: 1rem !important;
    font-weight: 500 !important;
    line-height: 1 !important;
    color: var(--color-text) !important;
    border-radius: var(--radius-sm) !important;
    transition: all var(--transition);
    position: relative;
    height: 100% !important;
    box-sizing: border-box !important;
    text-decoration: none !important;
    margin: 0 !important;
    border: none !important;
    background: none !important;
    float: none !important;
    vertical-align: middle;
    white-space: nowrap;
}

.navbar__menu-item a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 3px;
    background: var(--color-primary-gradient);
    border-radius: var(--radius-full);
    transition: width var(--transition);
}

.navbar__menu-item a:hover,
.navbar__menu-item.active a {
    color: var(--color-primary);
}

.navbar__menu-item a:hover::after,
.navbar__menu-item.active a::after {
    width: 30px;
}

/* 移动端汉堡按钮 */
.navbar__toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 28px;
    height: 22px;
    background: transparent;
    cursor: pointer;
    z-index: 1100;
}

.navbar__toggle span {
    display: block;
    width: 100%;
    height: 3px;
    background: var(--color-dark);
    border-radius: 3px;
    transition: all var(--transition);
}

.navbar__toggle.active span:nth-child(1) {
    transform: translateY(9.5px) rotate(45deg);
}

.navbar__toggle.active span:nth-child(2) {
    opacity: 0;
}

.navbar__toggle.active span:nth-child(3) {
    transform: translateY(-9.5px) rotate(-45deg);
}

/* 移动端菜单遮罩 */
.navbar__overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1050;
    opacity: 0;
    transition: opacity var(--transition);
}

.navbar__overlay.active {
    display: block;
    opacity: 1;
}

/* ==========================================================================
   8. 英雄轮播区
   ========================================================================== */
.hero {
    position: relative;
    overflow: hidden;
    background: var(--color-dark);
    margin-top: 0 !important;
}

/* 导航栏紧贴下方内容区 — 彻底消除导航与banner之间的空白 */
.navbar {
    margin-bottom: 0 !important;
}

/* 紧邻导航栏的第一个区块 */
.navbar + .hero,
.navbar + .services,
.navbar + section,
nav + .hero,
nav + .services,
nav + section {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

/* 内页 banner 区域（.services.img_bac） */
.services.img_bac {
    padding: 0 !important;
    margin: 0 !important;
}

.services.img_bac > .container,
.services.img_bac .page-header-image,
.services.img_bac .page-header-image .container {
    padding-top: 0 !important;
    margin-top: 0 !important;
}

/* 覆盖 responsive.css 对所有旧版 section 类的 padding: 50px 0
   — 消除内页内容和footer之间的巨大空白 */
.why-choose-us,
.services:not(.img_bac),
.latest-work,
.pricing-table,
.our-clients,
.call-to-action,
.testimonial,
.project-summery {
    padding-top: 0 !important;
    padding-bottom: 0 !important;
}

/* 内容区与footer之间保留间距（用padding而非margin，避免露出body白色背景） */
.why-choose-us {
    padding-bottom: 3rem !important;
}

.hero__slider {
    position: relative;
    height: clamp(450px, 42vw, 850px);
}

.hero__slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.hero__slide.active {
    opacity: 1;
}

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

.hero__slide::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.7) 0%, rgba(2, 132, 199, 0.3) 100%);
}

.hero__content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    max-width: var(--container-max);
    padding: 0 1.5rem;
    z-index: 2;
    text-align: center;
}

.hero__title {
    font-size: clamp(1.75rem, 5vw, 3.5rem);
    font-weight: 800;
    color: #fff;
    line-height: 1.2;
    margin-bottom: 1rem;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
    animation: fadeInUp 0.8s ease;
}

.hero__subtitle {
    font-size: clamp(1rem, 2.5vw, 1.5rem);
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 2rem;
    animation: fadeInUp 0.8s ease 0.2s both;
}

.hero__actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    animation: fadeInUp 0.8s ease 0.4s both;
}

/* 轮播指示器 */
.hero__dots {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.5rem;
    z-index: 3;
}

.hero__dot {
    width: 12px;
    height: 12px;
    border-radius: var(--radius-full);
    background: rgba(255, 255, 255, 0.4);
    cursor: pointer;
    transition: all var(--transition);
    border: 2px solid transparent;
}

.hero__dot.active {
    background: var(--color-primary-light);
    width: 36px;
}

/* 轮播箭头 */
.hero__arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    border-radius: var(--radius-full);
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    color: #fff;
    font-size: 1.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 3;
    transition: all var(--transition);
    opacity: 0;
}

.hero:hover .hero__arrow {
    opacity: 1;
}

.hero__arrow:hover {
    background: var(--color-primary);
}

.hero__arrow--prev {
    left: 1.5rem;
}

.hero__arrow--next {
    right: 1.5rem;
}

/* ==========================================================================
   9. 优势卡片
   ========================================================================== */
.advantages {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}

.advantage-card {
    background: var(--color-white);
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid #f0f0f0;
    transition: all 0.35s ease;
    cursor: default;
}

.advantage-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.1);
}

.advantage-card__image {
    width: 100%;
    overflow: hidden;
    background: #f5f7fa;
}

.advantage-card__image img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.advantage-card:hover .advantage-card__image img {
    transform: scale(1.04);
}

.advantage-card__body {
    padding: 1.5rem 1.25rem 1.75rem;
}

.advantage-card__title {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--color-dark);
    margin-bottom: 0.6rem;
}

.advantage-card__desc {
    font-size: 0.9375rem;
    color: var(--color-text-light);
    line-height: 1.7;
}

/* ==========================================================================
   10. 产品展示
   ========================================================================== */
.products {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.product-card {
    background: var(--color-white);
    border-radius: var(--radius-md);
    overflow: hidden;
    border: 1px solid var(--color-border);
    transition: all var(--transition);
    text-align: center;
}

.product-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: var(--color-primary-light);
}

.product-card__image {
    padding: 2rem;
    background: var(--color-bg);
    overflow: hidden;
    transition: background var(--transition);
}

.product-card:hover .product-card__image {
    background: linear-gradient(135deg, rgba(14, 165, 233, 0.05), rgba(2, 132, 199, 0.02));
}

.product-card__image img {
    max-height: 160px;
    width: auto;
    margin: 0 auto;
    transition: transform var(--transition-slow);
}

.product-card:hover .product-card__image img {
    transform: scale(1.1);
}

.product-card__body {
    padding: 1.5rem;
}

.product-card__title {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--color-dark);
    margin-bottom: 0.5rem;
}

.product-card__desc {
    font-size: 0.9375rem;
    color: var(--color-text-light);
}

.products__more {
    text-align: center;
    margin-top: 2.5rem;
}

/* ==========================================================================
   11. 传输模式 / 服务卡片
   ========================================================================== */
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.service-card {
    background: var(--color-white);
    border-radius: var(--radius-md);
    overflow: hidden;
    border: 1px solid var(--color-border);
    transition: all var(--transition);
}

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

.service-card__image {
    width: 100%;
    overflow: hidden;
}

.service-card__image img {
    width: 100%;
    transition: transform var(--transition-slow);
}

.service-card:hover .service-card__image img {
    transform: scale(1.08);
}

.service-card__body {
    padding: 1.75rem;
    text-align: center;
}

.service-card__title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--color-dark);
    margin-bottom: 0.75rem;
}

.service-card__desc {
    font-size: 0.9375rem;
    color: var(--color-text-light);
    line-height: 1.7;
}

/* ==========================================================================
   12. 核心功能（深色背景）
   ========================================================================== */
.features {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

.feature-card {
    text-align: center;
    padding: 1.75rem 1.25rem;
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all var(--transition);
    backdrop-filter: blur(10px);
}

.feature-card:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--color-primary-light);
    transform: translateY(-4px);
}

.feature-card__icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.feature-card__icon img {
    max-height: 56px;
    width: auto;
    transition: transform var(--transition);
}

.feature-card:hover .feature-card__icon img {
    transform: scale(1.15);
}

.feature-card__title {
    font-size: 1.0625rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 0.5rem;
}

.feature-card__desc {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.65);
    line-height: 1.6;
}

/* ==========================================================================
   13. 新闻中心
   ========================================================================== */
.news-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.news-column__title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--color-dark);
    margin-bottom: 1.25rem;
    padding-bottom: 0.75rem;
    border-bottom: 3px solid var(--color-primary);
    display: inline-block;
}

.news-column__title a {
    color: inherit;
}

.news-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.news-list__item {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    padding: 0.5rem 0;
    cursor: pointer;
    transition: all var(--transition);
}

.news-list__item::before {
    content: '';
    width: 8px;
    height: 8px;
    background: var(--color-primary);
    border-radius: 50%;
    flex-shrink: 0;
    transition: all var(--transition);
}

.news-list__item:hover {
    transform: translateX(6px);
}

.news-list__item:hover::before {
    background: var(--color-primary-dark);
    box-shadow: 0 0 0 4px rgba(2, 132, 199, 0.15);
}

.news-list__item a {
    color: var(--color-text);
    font-size: 0.9375rem;
    line-height: 1.5;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    transition: color var(--transition);
}

.news-list__item:hover a {
    color: var(--color-primary);
}

/* ==========================================================================
   14. Footer — 深色专业分区页脚
   ========================================================================== */
.footer {
    background: #1a1d24;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.875rem;
    line-height: 1.7;
    /* 防止旧版style.css/bootstrap给footer加额外间距 */
    padding: 0 !important;
    margin-top: 0 !important;   /* 不用margin，改用内容区padding-bottom做间距 */
}

/* ---- 顶部导航条 ---- */
.footer__topbar {
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding: 0 !important;
    margin: 0 !important;
}

/* 覆盖旧版CSS/Bootstrap对footer内部container的干扰 */
.footer__topbar > .container {
    padding-left: 15px !important;
    padding-right: 15px !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
}

.footer__topbar-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0 !important;
    gap: 2rem;
}

.footer__slogan {
    font-size: 0.875rem;
    color: var(--color-primary);
    font-weight: 600;
    white-space: nowrap;
    letter-spacing: 0.5px;
}

.footer__top-nav {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    list-style: none;
}

.footer__top-nav a {
    display: block;
    padding: 0.5rem 1.25rem;
    font-size: 1rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.7);
    border-radius: var(--radius-sm);
    text-decoration: none;
    transition: all var(--transition);
    position: relative;
    white-space: nowrap;
}

.footer__top-nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 3px;
    background: var(--color-primary-gradient);
    border-radius: var(--radius-full);
    transition: width var(--transition);
}

.footer__top-nav a:hover,
.footer__top-nav a.active {
    color: #fff;
}

.footer__top-nav a:hover::after,
.footer__top-nav a.active::after {
    width: 30px;
}

/* ---- 主体内容区 ---- */
.footer__main {
    padding: 3rem 0;
}

.footer__grid {
    display: grid;
    grid-template-columns: 380px 1fr;
    gap: 4rem;
}

/* 左侧：联系方式 */
.footer__contact {
    padding-right: 2rem;
}

.footer__phone {
    font-size: 1.65rem;
    font-weight: 800;
    color: var(--color-primary);
    line-height: 1.35;
    margin-bottom: 1.25rem;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    gap: 0.65rem;
}

.footer__phone i {
    font-size: 1.15rem;
    opacity: 0.85;
}

.footer__contact-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.footer__contact-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.65);
    line-height: 1.6;
}

.footer__contact-item i {
    color: var(--color-primary);
    font-size: 0.9rem;
    margin-top: 0.2rem;
    flex-shrink: 0;
    width: 16px;
    text-align: center;
}

.footer__contact-item span {
    word-break: break-all;
}

.footer__heading {
    font-size: 1.125rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 1rem;
}

.footer__heading--sm {
    margin-top: 1.75rem;
    margin-bottom: 0.85rem;
    font-size: 1rem;
}

/* 二维码区 */
.footer__qrcodes {
    display: flex;
    gap: 1.25rem;
    margin-bottom: 1.5rem;
}

.footer__qr-item {
    text-align: center;
}

.footer__qr-box {
    width: 96px;
    height: 96px;
    background: #fff;
    border-radius: 10px;
    padding: 5px;
    margin-bottom: 0.45rem;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.footer__qr-box img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.footer__qr-item span {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.4);
    line-height: 1.5;
}

/* 咨询按钮 */
.footer__cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: var(--color-primary-gradient);
    color: #fff !important;
    padding: 0.6rem 1.5rem;
    border-radius: 22px;
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 14px rgba(2, 132, 199, 0.35);
}

.footer__cta-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(230, 167, 92, 0.5);
}

/* 右侧：公司介绍 + 优势标签 */
.footer__info {
    padding-left: 1rem;
}

.footer__tabs {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 1rem;
}

.footer__tab {
    font-size: 1.05rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.35);
    cursor: pointer;
    transition: color 0.25s ease;
}

.footer__tab.active {
    color: #fff;
}

.footer__tab:hover {
    color: rgba(255, 255, 255, 0.7);
}

.footer__desc {
    margin-bottom: 0.5rem;
}

.footer__desc p {
    font-size: 0.8125rem;
    color: rgba(255, 255, 255, 0.45);
    line-height: 2;
    text-align: justify;
}

/* 优势标签云 */
.footer__tags {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.55rem 1rem;
}

.footer__tags a {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.38);
    text-decoration: none;
    padding: 0.3rem 0;
    transition: color 0.25s ease;
    white-space: nowrap;
}

.footer__tags a:hover {
    color: var(--color-primary);
}

/* ---- 友情链接 ---- */
.footer__friendlinks {
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    padding: 1rem 0;
    font-size: 0.75rem;
}

.footer__friendlinks-label {
    color: rgba(255, 255, 255, 0.3);
    margin-right: 0.5rem;
}

.footer__friendlinks a {
    color: rgba(255, 255, 255, 0.32);
    margin-right: 1rem;
    text-decoration: none;
    transition: color 0.25s ease;
}

.footer__friendlinks a:hover {
    color: rgba(255, 255, 255, 0.65);
}

/* ---- 底部版权栏 ---- */
.footer__bottom {
    background: #111318;
    padding: 1rem 0;
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.32);
}

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

.footer__bottom-inner a {
    color: rgba(255, 255, 255, 0.4);
    text-decoration: none;
    transition: color 0.25s ease;
}

.footer__bottom-inner a:hover {
    color: var(--color-primary);
}

.footer__bottom-sep {
    margin: 0 0.35rem;
}

/* ==========================================================================
   15. 滚动动画
   ========================================================================== */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

.reveal:nth-child(2) { transition-delay: 0.1s; }
.reveal:nth-child(3) { transition-delay: 0.2s; }
.reveal:nth-child(4) { transition-delay: 0.3s; }

/* 动画关键帧 */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

/* ==========================================================================
   16. 返回顶部按钮
   ========================================================================== */
.back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 48px;
    height: 48px;
    background: var(--color-primary-gradient);
    color: #fff;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    cursor: pointer;
    z-index: 900;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all var(--transition);
    box-shadow: var(--shadow-primary);
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px 0 rgba(2, 132, 199, 0.4);
}

/* ==========================================================================
   17. 响应式设计
   ========================================================================== */

/* 大屏桌面 */
@media (max-width: 1200px) {
    .advantages {
        grid-template-columns: repeat(2, 1fr);
    }
    .features {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* 平板 */
@media (max-width: 992px) {
    .section {
        padding: var(--space-xl) 0;
    }

    .navbar__menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 300px;
        max-width: 80vw;
        height: 100vh;
        background: var(--color-white);
        flex-direction: column;
        align-items: flex-start;
        padding: 5rem 1.5rem 2rem;
        gap: 0;
        box-shadow: -10px 0 30px rgba(0, 0, 0, 0.1);
        transition: right var(--transition);
        z-index: 1060;
        overflow-y: auto;
    }

    .navbar__menu.active {
        right: 0;
    }

    .navbar__menu-item {
        width: 100%;
    }

    .navbar__menu-item a {
        display: block;
        padding: 1rem 0.5rem;
        font-size: 1.0625rem;
        border-bottom: 1px solid var(--color-border-light);
    }

    .navbar__menu-item a::after {
        display: none;
    }

    .navbar__toggle {
        display: flex;
    }

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

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

    .hero__slider {
        height: clamp(300px, 42vw, 500px);
    }
}

/* 手机 */
@media (max-width: 768px) {
    .section {
        padding: 3rem 0;
    }

    .container {
        padding: 0 1rem;
    }

    .topbar {
        font-size: 0.8125rem;
    }

    .topbar__inner {
        justify-content: center;
        text-align: center;
    }

    .advantages,
    .products,
    .services-grid,
    .news-grid,
    .features {
        grid-template-columns: 1fr;
    }

    .hero__slider {
        height: clamp(180px, 42vw, 300px);
    }

    .hero__arrow {
        display: none;
    }

    .hero__actions {
        flex-direction: column;
        align-items: center;
    }

    .hero__actions .btn {
        width: 100%;
        max-width: 280px;
    }

    /* Footer 响应式 */
    .footer__topbar-inner {
        flex-direction: column;
        gap: 0.6rem;
        text-align: center;
    }

    .footer__slogan {
        white-space: normal;
    }

    .footer__top-nav {
        justify-content: center;
        gap: 0;
    }

    .footer__top-nav a {
        padding: 0.4rem 0.8rem;
        font-size: 0.875rem;
    }

    .footer__grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .footer__contact {
        padding-right: 0;
        text-align: center;
    }

    .footer__phone {
        justify-content: center;
    }

    .footer__contact-list {
        align-items: center;
    }

    .footer__qrcodes {
        justify-content: center;
    }

    .footer__info {
        padding-left: 0;
    }

    .footer__tabs {
        justify-content: center;
    }

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

    .back-to-top {
        bottom: 1rem;
        right: 1rem;
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
}

/* 小手机 */
@media (max-width: 480px) {
    .section-title {
        font-size: 1.5rem;
    }

    .section-subtitle {
        font-size: 0.9375rem;
    }

    .advantage-card,
    .product-card__body,
    .service-card__body {
        padding: 1.25rem;
    }

    .topbar__link {
        display: none;
    }

    .footer__phone {
        font-size: 1.5rem;
    }

    .footer__qr-box {
        width: 80px;
        height: 80px;
    }

    .footer__tags {
        grid-template-columns: 1fr 1fr;
    }
}

/* ==========================================================================
   18. 无障碍 & 减少动画
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }

    .reveal {
        opacity: 1;
        transform: none;
    }
}

/* 焦点可见性 */
a:focus-visible,
button:focus-visible {
    outline: 2px solid var(--color-primary);
    outline-offset: 2px;
    border-radius: 4px;
}

/* 屏幕阅读器专用 */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}
