/* ================================================
   欧硕新材料官网 - 公共样式 v2
   设计基调：专业稳重 · 现代简洁 · 工业质感
   ================================================ */

/* ===== CSS 自定义属性 ===== */
:root {
    /* 品牌色 */
    --color-primary: #0b4aad;
    --color-primary-light: #2e6dd2;
    --color-primary-dark: #07357a;
    --color-accent: #c90026;
    --color-accent-light: #e62e50;
    --color-accent-dark: #96001d;

    /* 中性色 */
    --color-white: #ffffff;
    --color-gray-50: #f8fafc;
    --color-gray-100: #f1f5f9;
    --color-gray-200: #e2e8f0;
    --color-gray-300: #cbd5e1;
    --color-gray-400: #94a3b8;
    --color-gray-500: #64748b;
    --color-gray-600: #475569;
    --color-gray-700: #334155;
    --color-gray-800: #1e293b;
    --color-gray-900: #0f172a;

    /* 语义色 */
    --color-text: #1e293b;
    --color-text-secondary: #475569;
    --color-text-muted: #94a3b8;

    /* 间距 */
    --space-unit: 8px;
    --space-xs: 4px;
    --space-sm: 8px;
    --space-md: 16px;
    --space-lg: 24px;
    --space-xl: 32px;
    --space-2xl: 48px;
    --space-3xl: 64px;
    --space-4xl: 80px;

    /* 圆角 */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-xl: 28px;
    --radius-full: 9999px;

    /* 阴影 */
    --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.04);
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 16px 40px rgba(0, 0, 0, 0.10);
    --shadow-xl: 0 24px 56px rgba(0, 0, 0, 0.14);

    /* 过渡 */
    --transition-fast: 0.15s ease;
    --transition-normal: 0.25s ease;
    --transition-slow: 0.4s cubic-bezier(0.2, 0, 0, 1);

    /* 容器 */
    --container-max: 1200px;
    --container-padding: 1.5rem;

    /* 导航栏高度（fixed 定位时用于页面顶部留白补偿，避免遮挡 banner/首屏） */
    --site-header-h: 90px;
}

/* ===== 基础重置 ===== */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scrollbar-gutter: stable;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC',
                 'Microsoft YaHei', 'Hiragino Sans GB', 'Noto Sans SC',
                 sans-serif;
    line-height: 1.6;
    color: var(--color-text);
    background: var(--color-white);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: inherit;
    text-decoration: none;
}

.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--container-padding);
}

.full-width {
    width: 100%;
}

/* ===== 页眉 ===== */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 2000;
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(16px) saturate(180%);
    -webkit-backdrop-filter: blur(16px) saturate(180%);
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    box-shadow: none;
    transition: box-shadow var(--transition-normal), border-color var(--transition-normal);
}

.site-header.scrolled {
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.06);
    border-bottom-color: rgba(0, 0, 0, 0.08);
}

/* 前台页面：导航 fixed 浮动，顶部预留导航高度，避免遮挡 banner 与首屏内容 */
body.front {
    padding-top: var(--site-header-h);
}

.header-container {
    max-width: var(--container-max);
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.35rem var(--container-padding);
}

.logo-area {
    display: flex;
    align-items: center;
    gap: 10px;
}

.brand-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
    line-height: 1.2;
}

.logo-img {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    object-fit: cover;
}

.company-name {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--color-primary);
    letter-spacing: 0.5px;
}

/* 公司名下方主营品类一行（小字、弱化，不撑高页眉） */
.company-sub {
    margin-top: 2px;
    font-size: 0.72rem;
    font-weight: 500;
    color: var(--color-gray-500);
    letter-spacing: 0.2px;
    white-space: nowrap;
}

/* ===== 导航菜单 ===== */
.nav-links {
    display: flex;
    gap: 0.35rem;
    list-style: none;
}

.nav-links li {
    position: relative;
}

.nav-links a {
    display: inline-block;
    padding: 0.55rem 1.1rem;
    font-size: 1rem;
    font-weight: 600;
    color: var(--color-gray-800);
    border-radius: var(--radius-sm);
    transition: all var(--transition-fast);
    background: transparent;
}

.nav-links a:hover {
    color: var(--color-accent);
    background: rgba(201, 0, 38, 0.04);
}

.nav-links a.active {
    color: var(--color-primary);
    font-weight: 600;
    background: rgba(11, 74, 173, 0.05);
}

.nav-links a.active::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 3px;
    background: var(--color-accent);
    border-radius: 2px;
}

/* ===== 汉堡菜单 ===== */
.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 40px;
    height: 40px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
}

.nav-toggle span {
    display: block;
    width: 24px;
    height: 2.5px;
    background: var(--color-primary);
    border-radius: 2px;
    transition: all 0.3s ease;
}

.nav-toggle.open span:nth-child(1) {
    transform: translateY(7.5px) rotate(45deg);
}

.nav-toggle.open span:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}

.nav-toggle.open span:nth-child(3) {
    transform: translateY(-7.5px) rotate(-45deg);
}

/* ===== Banner 轮播 ===== */
.banner {
    position: relative;
    width: 100%;
    overflow: hidden;
    background: var(--color-primary-dark);
}

.swiper {
    position: relative;
    width: 100%;
    aspect-ratio: 1920 / 820;
    min-height: 360px;
    overflow: hidden;
}

.slide {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    z-index: 1;
    transition: opacity 1.1s ease-in-out;
    will-change: opacity;
}

.slide.active {
    opacity: 1;
    z-index: 2;
}

.banner-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.25);
    color: white;
    font-size: 1.4rem;
    cursor: pointer;
    z-index: 10;
    transition: all var(--transition-fast);
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.banner-btn:hover {
    background: rgba(255, 255, 255, 0.28);
    border-color: rgba(255, 255, 255, 0.45);
    transform: translateY(-50%) scale(1.06);
}

.btn-left { left: 24px; }
.btn-right { right: 24px; }

.dots {
    position: absolute;
    bottom: 28px;
    width: 100%;
    text-align: center;
    z-index: 10;
}

.dot {
    display: inline-block;
    width: 10px;
    height: 10px;
    background: rgba(255, 255, 255, 0.4);
    border-radius: 50%;
    margin: 0 6px;
    cursor: pointer;
    transition: all var(--transition-normal);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.dot.active {
    background: var(--color-accent);
    border-color: var(--color-accent);
    transform: scale(1.3);
    box-shadow: 0 0 10px rgba(201, 0, 38, 0.4);
}

/* Banner 未上传时的站内占位（不再依赖境外 picsum） */
.banner-empty {
    min-height: 360px;
    aspect-ratio: 1920 / 820;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 0 24px;
    color: rgba(255,255,255,0.85);
    font-size: 1rem;
    background: linear-gradient(135deg, #0b4aad 0%, #07357a 100%);
}

.banner-empty code {
    background: rgba(255,255,255,0.18);
    padding: 1px 8px;
    border-radius: 5px;
    color: #fff;
    margin: 0 2px;
}

/* ===== 通用区块 ===== */
.section {
    padding: var(--space-4xl) 0;
}

.section-intro {
    text-align: center;
    max-width: 680px;
    margin: 0 auto var(--space-2xl);
}

.section-title {
    font-size: clamp(1.5rem, 2.5vw, 2rem);
    font-weight: 800;
    color: var(--color-primary);
    margin-bottom: 0.6rem;
    letter-spacing: 0.5px;
}

.section-subtitle {
    font-size: 0.95rem;
    color: var(--color-text-muted);
    line-height: 1.5;
}

.section-divider {
    display: block;
    width: 48px;
    height: 3px;
    background: var(--color-accent);
    border-radius: 2px;
    margin: 0.5rem auto 0;
}

/* ===== 贴心服务 ===== */
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-lg);
}

.service-item {
    text-align: center;
    padding: 2rem 1.5rem;
    background: var(--color-white);
    border-radius: var(--radius-xl);
    border: 1px solid var(--color-gray-100);
    box-shadow: var(--shadow-xs);
    transition: all var(--transition-slow);
}

.service-item:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-md);
    border-color: var(--color-gray-200);
}

.service-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    margin: 0 auto 1rem;
    background: rgba(11, 74, 173, 0.06);
    border-radius: 16px;
    font-size: 1.6rem;
    color: var(--color-primary);
    transition: all var(--transition-normal);
}

.service-item:hover .service-icon {
    background: var(--color-accent);
    color: white;
    transform: scale(1.05);
}

.service-item h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--color-gray-800);
    margin-bottom: 0.4rem;
}

.service-item p {
    font-size: 0.88rem;
    color: var(--color-text-secondary);
    line-height: 1.5;
}

/* ===== 产品卡片 ===== */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: var(--space-lg);
}

.product-card {
    background: var(--color-white);
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-xs);
    border: 1px solid var(--color-gray-100);
    transition: all var(--transition-slow);
    cursor: pointer;
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: transparent;
}

.product-card img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.product-card:hover img {
    transform: scale(1.04);
}

.product-card .info {
    padding: 1.2rem 1.2rem 1.5rem;
}

.product-card h3 {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--color-gray-800);
    margin-bottom: 0.5rem;
    line-height: 1.3;
}

.product-card .summary {
    font-size: 0.85rem;
    color: var(--color-text-secondary);
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ===== 关于我们 ===== */
.about-wrap {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-2xl);
    align-items: center;
}

.about-text {
    flex: 1;
    min-width: 280px;
}

.about-text p {
    line-height: 1.8;
    color: var(--color-text-secondary);
    margin-bottom: 1rem;
    font-size: 0.95rem;
}

.about-img {
    flex: 1;
    min-width: 280px;
    text-align: center;
}

.about-img img {
    width: 100%;
    max-width: 480px;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-md);
}

/* 关于欧硕右侧视频：固定 16:9 框，封面与视频均 cover 填满，消除加载抖动 */
.about-img video.about-video {
    display: block;
    width: 100%;
    max-width: 480px;
    margin: 0 auto;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    background: #f0f2f5;
}

/* ===== 核心优势 ===== */
.advantage-banner {
    position: relative;
    min-height: 400px;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, var(--color-primary-dark) 0%, #0a459e 40%, var(--color-primary) 100%);
    overflow: hidden;
}

.advantage-banner::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(201, 0, 38, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.advantage-banner::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -10%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(46, 109, 210, 0.15) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.advantage-container {
    position: relative;
    z-index: 2;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: var(--space-4xl) var(--container-padding);
    width: 100%;
}

.advantage-title {
    color: white !important;
    text-align: center;
    margin-bottom: 0.6rem;
}

.advantage-title + .section-divider {
    background: var(--color-accent-light);
}

.advantage-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-lg);
    margin-top: var(--space-xl);
}

.advantage-text-item {
    text-align: center;
    color: white;
    padding: 2rem 1.2rem;
    background: rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(4px);
    border-radius: var(--radius-xl);
    transition: all var(--transition-slow);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.advantage-text-item:hover {
    background: rgba(255, 255, 255, 0.12);
    transform: translateY(-6px);
    border-color: rgba(255, 255, 255, 0.25);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.2);
}

.adv-number {
    font-size: 2.6rem;
    font-weight: 900;
    color: var(--color-accent-light);
    margin-bottom: 0.5rem;
    letter-spacing: -1px;
    line-height: 1;
}

.advantage-text-item h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.6rem;
}

.advantage-text-item p {
    font-size: 0.85rem;
    opacity: 0.85;
    line-height: 1.5;
}

/* ===== 合作伙伴 ===== */
.partners-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: var(--space-md);
}

.partner-logo-img {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.6rem 1rem;
    background: var(--color-white);
    border-radius: var(--radius-md);
    border: 1px solid var(--color-gray-100);
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--color-gray-500);
    min-height: 96px;
    text-align: center;
    text-decoration: none;
    overflow: hidden;
    transition: all var(--transition-normal);
    cursor: default;
}

.partner-logo-img img {
    max-height: 80px;
    max-width: 100%;
    width: auto;
    object-fit: contain;
    display: block;
    transition: transform var(--transition-normal);
}

.partner-logo-img .partner-name {
    line-height: 1.25;
    padding: 0 2px;
    word-break: break-word;
}

a.partner-logo-img {
    cursor: pointer;
    color: inherit;
}

.partner-logo-img:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
    border-color: var(--color-accent);
    color: var(--color-primary);
    background: var(--color-white);
}

.partner-logo-img:hover img {
    transform: scale(1.04);
}

@media (max-width: 980px) {
    .partners-grid { grid-template-columns: repeat(4, 1fr); }
}

@media (max-width: 768px) {
    .partners-grid { grid-template-columns: repeat(3, 1fr); }
    .partner-logo-img { min-height: 84px; padding: 1.3rem 0.8rem; }
    .partner-logo-img img { max-height: 64px; }
}

@media (max-width: 480px) {
    .partners-grid { grid-template-columns: repeat(2, 1fr); }
    .partner-logo-img { min-height: 72px; padding: 1.1rem 0.6rem; }
    .partner-logo-img img { max-height: 52px; }
}

/* ===== 新闻卡片 ===== */
.news-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.news-item {
    display: flex;
    gap: 1.5rem;
    background: #fff;
    border-radius: 24px;
    padding: 1rem;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    border: 1px solid #f2f6fd;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02);
}

.news-item:hover {
    transform: translateX(4px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
    border-color: #cbd5e1;
}

.news-img {
    width: 120px;
    height: 120px;
    object-fit: cover;
    border-radius: 20px;
    flex-shrink: 0;
    background: #f0f5fd;
}

.news-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 0.6rem;
    min-width: 0;
}

.news-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 0;
}

.news-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: #0d4da8;
    margin: 0;
    line-height: 1.4;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-date {
    font-size: 0.85rem;
    color: #7aa0d9;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 4px;
}

.news-summary {
    font-size: 0.9rem;
    color: #475569;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    word-break: break-word;
    margin: 0;
}

.more-link {
    text-align: center;
    margin-top: var(--space-xl);
}

.more-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 0.7rem 2rem;
    background: var(--color-primary);
    color: white;
    font-weight: 600;
    font-size: 0.92rem;
    border-radius: var(--radius-full);
    transition: all var(--transition-normal);
    border: none;
    cursor: pointer;
}

.more-btn:hover {
    background: var(--color-accent);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(201, 0, 38, 0.3);
}

/* ===== 联系信息 ===== */
.contact-row {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-lg);
}

.office {
    flex: 1;
    min-width: 280px;
    background: var(--color-gray-50);
    padding: 1.8rem;
    border-radius: var(--radius-xl);
    border: 1px solid var(--color-gray-100);
    transition: all var(--transition-normal);
}

.office:hover {
    box-shadow: var(--shadow-md);
    border-color: var(--color-gray-200);
}

.office h3 {
    color: var(--color-primary);
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 0.8rem;
}

.office p {
    color: var(--color-text-secondary);
    font-size: 0.9rem;
    margin-bottom: 0.35rem;
    line-height: 1.6;
}

/* ===== 公共页面横幅 ===== */
.page-banner {
    height: 42vh;
    min-height: 280px;
    max-height: 480px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    position: relative;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.page-banner::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom,
        rgba(7, 53, 122, 0.35) 0%,
        rgba(7, 53, 122, 0.55) 100%);
    z-index: 1;
}

.page-banner > * {
    position: relative;
    z-index: 2;
}

/* ===== 分页 ===== */
.pagination {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: var(--space-2xl);
    padding-bottom: 1rem;
}

.pagination a,
.pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding: 0 10px;
    border-radius: var(--radius-sm);
    font-size: 0.88rem;
    font-weight: 500;
    color: var(--color-text-secondary);
    background: var(--color-gray-50);
    border: 1px solid var(--color-gray-200);
    transition: all var(--transition-fast);
}

.pagination a:hover {
    background: var(--color-gray-100);
    border-color: var(--color-gray-300);
    color: var(--color-primary);
}

.pagination .current,
.pagination .active {
    background: var(--color-primary);
    color: white;
    border-color: var(--color-primary);
    font-weight: 700;
}

/* ===== 浮动侧边栏 ===== */
.floating-sidebar,
.back-to-top-btn {
    position: fixed;
    z-index: 999;
}

.float-toggle {
    width: 48px;
    height: 48px;
    background: var(--color-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 16px rgba(11, 74, 173, 0.25);
    transition: all var(--transition-slow);
    cursor: pointer;
    color: white;
    border: none;
}

.float-toggle:hover {
    background: var(--color-accent);
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(201, 0, 38, 0.35);
}

.toggle-icon {
    opacity: 0.9;
    transition: opacity var(--transition-fast);
}

.float-toggle:hover .toggle-icon {
    opacity: 1;
}

.pulse {
    animation: pulse-ring 2s infinite;
}

@keyframes pulse-ring {
    0% { box-shadow: 0 0 0 0 rgba(201, 0, 38, 0.45); }
    70% { box-shadow: 0 0 0 14px rgba(201, 0, 38, 0); }
    100% { box-shadow: 0 0 0 0 rgba(201, 0, 38, 0); }
}

.floating-sidebar {
    right: 24px;
    bottom: 20%;
}

.float-content {
    position: absolute;
    right: 0;
    bottom: 64px;
    width: 240px;
    background: rgba(15, 23, 42, 0.96);
    backdrop-filter: blur(16px);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-xl);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #e2e8f0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: all 0.25s ease;
    pointer-events: none;
}

.floating-sidebar:hover .float-content {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
}

.floating-inner { padding: 14px 12px; }

.floating-item {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 12px;
}

.floating-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.float-icon-svg {
    min-width: 18px;
    flex-shrink: 0;
    color: var(--color-accent-light);
}

.float-icon {
    font-size: 18px;
    min-width: 28px;
    text-align: center;
}

.float-text {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.float-text strong {
    font-size: 11px;
    color: var(--color-accent-light);
}

.float-text span {
    font-size: 10px;
    opacity: 0.85;
    word-break: break-all;
}

.qr-image {
    width: 48px;
    height: 48px;
    object-fit: cover;
    border-radius: 10px;
    margin-top: 4px;
    background: #fff;
    border: 1px solid #ddd;
}

.back-to-top-btn {
    right: 24px;
    bottom: 12%;
    width: 48px;
    height: 48px;
    background: var(--color-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 16px rgba(11, 74, 173, 0.25);
    transition: all var(--transition-slow);
    cursor: pointer;
    border: none;
    color: white;
}

.back-to-top-btn:hover {
    background: var(--color-accent);
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(201, 0, 38, 0.35);
}

/* ===== 页脚 ===== */
.site-footer {
    background: #1b1d22;
    color: #a3abb5;
    padding: var(--space-3xl) 0 0;
    font-size: 0.88rem;
}

.footer-container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--container-padding);
}

.footer-row {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr 1.3fr;
    gap: var(--space-xl);
    margin-bottom: var(--space-2xl);
}

.footer-col:first-child {
    min-width: 220px;
}

.footer-col {
    min-width: 120px;
}

.footer-logo span {
    font-size: 1.2rem;
    font-weight: 700;
    color: white;
    display: block;
    margin-bottom: 0.8rem;
}

.footer-desc {
    line-height: 1.7;
    color: #9aa1ac;
    font-size: 0.84rem;
    margin-bottom: 1rem;
}

.footer-social {
    display: flex;
    gap: 0.8rem;
}

.social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 50%;
    text-decoration: none;
    color: #94a3b8;
    font-size: 0.85rem;
    transition: all var(--transition-fast);
}

.social-icon:hover {
    background: var(--color-accent);
    color: white;
    transform: translateY(-2px);
}

.footer-col h4 {
    color: white;
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 0.9rem;
    position: relative;
    display: inline-block;
}

.footer-col h4::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 20px;
    height: 2px;
    background: var(--color-accent);
    border-radius: 1px;
}

.footer-col ul {
    list-style: none;
    padding: 0;
}

.footer-col ul li {
    margin-bottom: 0.45rem;
}

.footer-col ul li a {
    color: #a3abb5;
    font-size: 0.86rem;
    transition: color var(--transition-fast);
}

.footer-col ul li a:hover {
    color: var(--color-accent-light);
    padding-left: 4px;
}

.footer-contact li {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 0.6rem;
    color: #b4bcc6;
    font-size: 0.82rem;
}

.footer-contact li svg {
    flex-shrink: 0;
    color: var(--color-accent-light);
    opacity: 0.7;
}

.footer-legal {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding: var(--space-md) 0;
    font-size: 0.72rem;
    color: #79828d;
    line-height: 1.6;
    text-align: center;
}

.footer-legal p {
    margin-bottom: 0.25rem;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding: var(--space-md) 0;
    text-align: center;
    font-size: 0.76rem;
    color: #79828d;
}

.footer-bottom p {
    margin: 0;
}

.footer-sep {
    margin: 0 0.6rem;
    color: rgba(255, 255, 255, 0.18);
}

.footer-bottom a {
    color: #a3abb5;
    transition: color var(--transition-fast);
}

.footer-bottom a:hover {
    color: var(--color-accent-light);
}

.gongan-icon {
    display: inline-block;
    height: 14px;
    width: auto;
    vertical-align: middle;
    margin-right: 3px;
}

/* ===== 移动端底部联系栏 ===== */
.mobile-contact-bar {
    display: none;
}

@media (max-width: 1100px) {
    .floating-sidebar,
    .back-to-top-btn {
        display: none;
    }

    .mobile-contact-bar {
        display: flex;
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        z-index: 999;
        background: rgba(255, 255, 255, 0.95);
        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);
        box-shadow: 0 -2px 16px rgba(0, 0, 0, 0.06);
        justify-content: space-around;
        align-items: center;
        border-top: 1px solid var(--color-gray-200);
        padding-bottom: env(safe-area-inset-bottom, 0);
    }

    .mobile-contact-item {
        flex: 1;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 2px;
        padding: 8px 4px;
        text-decoration: none;
        color: var(--color-gray-500);
        font-size: 0.68rem;
        background: none;
        border: none;
        cursor: pointer;
        transition: color var(--transition-fast);
        -webkit-tap-highlight-color: transparent;
    }

    .mobile-contact-item:active {
        color: var(--color-accent);
    }

    .mobile-contact-item svg {
        opacity: 0.7;
    }

    .mobile-contact-form {
        color: var(--color-primary);
        font-weight: 600;
    }

    body {
        padding-bottom: 60px;
    }
}

/* ===== 响应式 ===== */
@media (max-width: 1024px) {
    .advantage-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-row {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    :root {
        --site-header-h: 88px;
    }

    .header-container {
        flex-wrap: nowrap;
    }

    .company-sub {
        white-space: normal;
        font-size: 0.66rem;
        letter-spacing: 0;
        margin-top: 1px;
    }

    .nav-toggle {
        display: flex;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(16px);
        flex-direction: column;
        padding: 0.8rem;
        box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
        gap: 0;
        border-top: 1px solid var(--color-gray-200);
    }

    .nav-links.open {
        display: flex;
    }

    .nav-links li {
        width: 100%;
    }

    .nav-links a {
        display: block;
        padding: 0.75rem 1rem;
        border-radius: var(--radius-md);
        text-align: center;
        font-size: 0.95rem;
    }

    .nav-links a.active::after {
        display: none;
    }

    .slide {
        aspect-ratio: 1920 / 820;
        min-height: 320px;
    }

    .banner-btn {
        width: 36px;
        height: 36px;
        font-size: 1.1rem;
    }

    .btn-left { left: 12px; }
    .btn-right { right: 12px; }

    .section {
        padding: var(--space-2xl) 0;
    }

    .services-grid {
        grid-template-columns: 1fr 1fr;
        gap: var(--space-md);
    }

    .advantage-grid {
        grid-template-columns: 1fr;
        gap: var(--space-md);
    }

    .advantage-text-item {
        padding: 1.5rem 1rem;
    }

    .news-item {
        flex-direction: column;
        gap: 0.8rem;
        padding: 0.8rem;
    }

    .news-img {
        width: 100%;
        height: auto;
        aspect-ratio: 16 / 9;
    }

    .news-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .news-date {
        white-space: normal;
    }

    .news-title {
        font-size: 1.1rem;
    }

    .news-content {
        gap: 0.5rem;
    }

    .footer-row {
        grid-template-columns: 1fr 1fr;
        gap: var(--space-lg);
    }

    .footer-legal {
        text-align: left;
    }
}

@media (max-width: 480px) {
    .services-grid {
        grid-template-columns: 1fr;
    }

    .products-grid {
        grid-template-columns: 1fr;
    }

    .footer-row {
        grid-template-columns: 1fr;
    }

    .page-banner {
        height: 28vh;
        min-height: 180px;
    }
}
