/* ============================================
   四川鸿展智通科技有限公司 - 全局样式表
   设计规范：专业、大气、现代企业风格
   ============================================ */

/* ---------- CSS 变量 ---------- */
:root {
    --color-primary: #0A1F5C;
    --color-primary-light: #15358A;
    --color-accent: #1A5FDC;
    --color-accent-light: #E8F0FE;
    --color-dark: #1A1A2E;
    --color-text: #2D3436;
    --color-text-light: #636E72;
    --color-bg: #F8F9FB;
    --color-white: #FFFFFF;
    --color-border: #E8ECF1;
    --color-footer: #0D1529;
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.06);
    --shadow-md: 0 4px 24px rgba(0,0,0,0.08);
    --shadow-lg: 0 8px 40px rgba(0,0,0,0.12);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --max-width: 1200px;
}

/* ---------- 全局重置 ---------- */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", "Helvetica Neue", sans-serif;
    color: var(--color-text);
    line-height: 1.6;
    background: var(--color-white);
    min-width: 1200px;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

ul {
    list-style: none;
}

/* ---------- 容器 ---------- */
.container {
    width: var(--max-width);
    margin: 0 auto;
    padding: 0 20px;
}

.container-wide {
    width: 1280px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ---------- 顶部导航 ---------- */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    transition: background 0.35s ease, box-shadow 0.35s ease, backdrop-filter 0.35s ease;
    padding: 0 40px;
}

.header.scrolled {
    background: rgba(255,255,255,0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 1px 0 rgba(0,0,0,0.06), 0 4px 20px rgba(0,0,0,0.06);
}

.header-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
}

.header .logo img {
    height: 40px;
    transition: filter 0.35s ease;
}

.header.scrolled .logo img {
    filter: brightness(0.35);
}

.header .nav-links {
    display: flex;
    align-items: center;
    gap: 40px;
}

.header .nav-links a {
    font-size: 15px;
    font-weight: 500;
    position: relative;
    padding: 6px 0;
    letter-spacing: 0.5px;
    transition: color 0.3s ease;
}
/* 首页 Hero 区域：未滚动 → 白色字体 */
.header:not(.scrolled) .nav-links a {
    color: rgba(255,255,255,0.92);
}
/* 滚动后 / 子页面 → 深色字体 */
.header.scrolled .nav-links a {
    color: var(--color-text);
}

.header .nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: var(--color-accent);
    border-radius: 1px;
    transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.header .nav-links a:hover {
    color: var(--color-accent);
}

.header .nav-links a:hover::after,
.header .nav-links a.active::after {
    width: 100%;
}

.header .nav-links a.active {
    color: var(--color-accent);
    font-weight: 600;
}

/* ---------- 页面顶部横幅 ---------- */
.page-banner {
    margin-top: 72px;
    background-size: cover;
    background-position: center;
    position: relative;
    padding: 100px 0;
}

.page-banner::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(10,31,92,0.85) 0%, rgba(26,95,220,0.65) 100%);
}

.page-banner .banner-content {
    position: relative;
    z-index: 1;
    text-align: center;
    color: var(--color-white);
}

.page-banner .banner-title {
    font-size: 42px;
    font-weight: 700;
    margin-bottom: 12px;
    letter-spacing: 2px;
}

.page-banner .banner-subtitle {
    font-size: 16px;
    opacity: 0.85;
    font-weight: 300;
    letter-spacing: 1px;
}

/* 面包屑 */
.breadcrumb {
    position: relative;
    z-index: 1;
    color: rgba(255,255,255,0.7);
    font-size: 13px;
    margin-bottom: 30px;
}

.breadcrumb a {
    color: rgba(255,255,255,0.7);
}

.breadcrumb a:hover {
    color: var(--color-white);
}

.breadcrumb span {
    margin: 0 8px;
}

/* ---------- 通用区块 ---------- */
.section {
    padding: 80px 0;
}

.section-gray {
    background: var(--color-bg);
}

.section-title {
    font-size: 32px;
    font-weight: 700;
    color: var(--color-dark);
    text-align: center;
    margin-bottom: 12px;
    letter-spacing: 1px;
}

.section-subtitle {
    font-size: 16px;
    color: var(--color-text-light);
    text-align: center;
    margin-bottom: 50px;
}

.section-divider {
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, var(--color-primary), var(--color-accent));
    margin: 0 auto 40px;
    border-radius: 2px;
}

/* ---------- 特性网格 ---------- */
.features {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

/* ---------- 卡片 ---------- */
.card {
    background: var(--color-white);
    border-radius: var(--radius-md);
    padding: 32px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    border: 1px solid transparent;
}

.card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
    border-color: var(--color-border);
}

.card-icon {
    width: 56px;
    height: 56px;
    background: var(--color-accent-light);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.card-icon img {
    width: 28px;
    height: 28px;
}

.card h3 {
    font-size: 20px;
    font-weight: 600;
    color: var(--color-dark);
    margin-bottom: 12px;
}

.card p {
    font-size: 14px;
    color: var(--color-text-light);
    line-height: 1.8;
}

/* ---------- 按钮 ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 28px;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: var(--transition);
    border: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-accent) 100%);
    color: var(--color-white);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(26,95,220,0.35);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--color-primary);
    color: var(--color-primary);
}

.btn-outline:hover {
    background: var(--color-primary);
    color: var(--color-white);
}

.btn-white {
    background: var(--color-white);
    color: var(--color-primary);
}

.btn-white:hover {
    background: var(--color-bg);
    transform: translateY(-2px);
}

/* ---------- 统计数字 ---------- */
.stats-row {
    display: flex;
    justify-content: space-around;
    padding: 50px 0;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 48px;
    font-weight: 800;
    color: var(--color-primary);
    line-height: 1;
    margin-bottom: 8px;
}

.stat-label {
    font-size: 16px;
    color: var(--color-text-light);
    font-weight: 500;
}

/* ---------- 服务卡片（大图） ---------- */
.service-card-lg {
    display: flex;
    align-items: center;
    gap: 60px;
    background: var(--color-white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    margin-bottom: 30px;
}

.service-card-lg:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-2px);
}

.service-card-lg .service-img {
    width: 400px;
    flex-shrink: 0;
}

.service-card-lg .service-img img {
    width: 100%;
    height: 280px;
    object-fit: cover;
}

.service-card-lg .service-body {
    padding: 30px 40px 30px 0;
}

.service-card-lg .service-body h3 {
    font-size: 24px;
    font-weight: 700;
    color: var(--color-dark);
    margin-bottom: 15px;
}

.service-card-lg .service-body p {
    font-size: 14px;
    color: var(--color-text-light);
    line-height: 1.8;
    margin-bottom: 20px;
}

/* ---------- 案例卡片 ---------- */
.case-card {
    position: relative;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.case-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
}

.case-card img {
    width: 100%;
    height: 240px;
    object-fit: cover;
}

.case-card .case-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 20px 24px;
    background: linear-gradient(transparent, rgba(10,31,92,0.9));
    color: var(--color-white);
}

.case-card .case-overlay h3 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 4px;
}

.case-card .case-overlay p {
    font-size: 13px;
    opacity: 0.85;
}

/* ---------- 新闻列表 ---------- */
.news-item {
    display: flex;
    gap: 30px;
    padding: 24px;
    background: var(--color-white);
    border-radius: var(--radius-sm);
    transition: var(--transition);
    border: 1px solid transparent;
    margin-bottom: 16px;
}

.news-item:hover {
    border-color: var(--color-border);
    box-shadow: var(--shadow-md);
}

.news-date-box {
    width: 80px;
    height: 80px;
    background: var(--color-bg);
    border-radius: var(--radius-sm);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.news-date-box .day {
    font-size: 28px;
    font-weight: 700;
    color: var(--color-primary);
    line-height: 1;
}

.news-date-box .month {
    font-size: 13px;
    color: var(--color-text-light);
    margin-top: 4px;
}

.news-info h4 {
    font-size: 18px;
    font-weight: 600;
    color: var(--color-dark);
    margin-bottom: 8px;
}

.news-info p {
    font-size: 14px;
    color: var(--color-text-light);
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ---------- 招聘卡片 ---------- */
.job-card {
    background: var(--color-white);
    border-radius: var(--radius-md);
    padding: 28px;
    border: 1px solid var(--color-border);
    transition: var(--transition);
}

.job-card:hover {
    box-shadow: var(--shadow-md);
    border-color: var(--color-accent);
    transform: translateY(-2px);
}

.job-card h3 {
    font-size: 20px;
    font-weight: 600;
    color: var(--color-dark);
    margin-bottom: 12px;
}

.job-card .job-meta {
    display: flex;
    gap: 20px;
    font-size: 14px;
    color: var(--color-text-light);
}

.job-card .job-meta span {
    display: flex;
    align-items: center;
    gap: 4px;
}

/* ---------- 标签切换 ---------- */
.tabs {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-bottom: 40px;
}

.tab {
    padding: 10px 28px;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    background: var(--color-bg);
    color: var(--color-text-light);
    border: 1px solid transparent;
}

.tab:hover {
    background: var(--color-accent-light);
    color: var(--color-accent);
}

.tab.active {
    background: var(--color-primary);
    color: var(--color-white);
}

/* ---------- 页脚 ---------- */
.footer {
    background: var(--color-footer);
    color: rgba(255,255,255,0.7);
    padding: 60px 0 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1.5fr 1fr;
    gap: 60px;
    padding-bottom: 40px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

.footer-col h4 {
    font-size: 16px;
    font-weight: 600;
    color: var(--color-white);
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 12px;
}

.footer-col h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 2px;
    background: var(--color-accent);
}

.footer-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 16px;
}

.footer-nav a {
    font-size: 13px;
    transition: var(--transition);
}

.footer-nav a:hover {
    color: var(--color-white);
}

.footer-contact p {
    font-size: 13px;
    margin-bottom: 12px;
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.footer-contact .contact-icon {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    margin-top: 2px;
}

.footer-qr {
    text-align: center;
}

.footer-qr img {
    width: 100px;
    margin: 0 auto 8px;
    border-radius: var(--radius-sm);
}

.footer-qr p {
    font-size: 12px;
}

.footer-bottom {
    padding: 20px 0;
    text-align: center;
    font-size: 12px;
    opacity: 0.5;
}

/* ---------- 案例列表页 ---------- */
.case-list {
    padding: 60px 0;
}

.case-item {
    display: flex;
    align-items: center;
    gap: 80px;
    margin-bottom: 80px;
}

.case-item.reverse {
    flex-direction: row-reverse;
}

.case-item .case-img {
    width: 520px;
    flex-shrink: 0;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.case-item .case-img img {
    width: 100%;
    height: 340px;
    object-fit: cover;
    display: block;
}

.case-item .case-body h3 {
    font-size: 28px;
    font-weight: 700;
    color: var(--color-dark);
    margin-bottom: 20px;
}

.case-item .case-body ul {
    list-style: disc;
    padding-left: 20px;
    margin-bottom: 24px;
}

.case-item .case-body ul li {
    font-size: 17px;
    color: var(--color-text);
    line-height: 2;
}

.case-item .case-body ul li a {
    color: var(--color-primary);
    text-decoration: none;
    transition: color 0.2s;
}
.case-item .case-body ul li a:hover {
    color: var(--color-dark);
    text-decoration: underline;
}

/* ---------- 详情侧边栏 ---------- */
.sidebar-link {
    text-decoration: none;
    transition: color 0.2s;
}
.sidebar-link:hover {
    color: var(--color-primary) !important;
}

/* ---------- 关于我们 高级Tab ---------- */
.about-tab-bar {
    margin-top: -44px;
    position: relative;
    z-index: 10;
    display: flex;
    justify-content: center;
    padding: 0 20px;
}
.about-tab-inner {
    display: inline-flex;
    background: var(--color-white);
    border-radius: 50px;
    padding: 6px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.10), 0 2px 8px rgba(0,0,0,0.04);
    position: relative;
}
.about-tab {
    position: relative;
    z-index: 2;
    border: none;
    background: transparent;
    padding: 14px 28px;
    font-size: 16px;
    font-weight: 600;
    color: var(--color-text-light);
    cursor: pointer;
    border-radius: 50px;
    transition: color 0.35s ease;
    white-space: nowrap;
    font-family: inherit;
}
.about-tab.active {
    color: var(--color-white);
}
.about-tab-icon {
    margin-right: 6px;
    font-size: 15px;
}
.about-tab-indicator {
    position: absolute;
    z-index: 1;
    top: 6px;
    left: 6px;
    height: calc(100% - 12px);
    width: 120px;
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-accent) 100%);
    border-radius: 50px;
    transition: left 0.4s cubic-bezier(0.4, 0, 0.2, 1), width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 14px rgba(26,95,220,0.3);
}
.about-panel {
    transition: opacity 0.3s ease;
}
.about-panel.active { opacity: 1; }

/* ---------- 关于我们 公司简介 ---------- */
.about-intro-layout {
    display: flex;
    align-items: flex-start;
    gap: 60px;
}
.about-intro-img {
    flex: 1;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
}
.about-intro-img img {
    width: 100%;
    display: block;
}
.about-intro-text {
    flex: 1;
}
.about-intro-text h2 {
    font-size: 28px;
    font-weight: 700;
    color: var(--color-dark);
    margin-bottom: 4px;
}
.about-intro-text p {
    font-size: 15px;
    color: var(--color-text);
    line-height: 1.9;
    text-indent: 2em;
    text-align: justify;
    margin-bottom: 12px;
}

/* ---------- 政府支持徽章 ---------- */
.gov-badges {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
    padding-top: 10px;
}
.gov-badge {
    text-align: center;
    padding: 30px 28px;
    background: var(--color-white);
    border-radius: 16px;
    border: 1px solid var(--color-border);
    min-width: 160px;
    transition: transform 0.3s, box-shadow 0.3s;
}
.gov-badge:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-md);
}
.gov-badge-icon {
    font-size: 32px;
    margin-bottom: 12px;
    color: var(--color-primary);
}
.gov-badge-text {
    font-size: 18px;
    font-weight: 700;
    color: var(--color-dark);
    margin-bottom: 6px;
}
.gov-badge-sub {
    font-size: 13px;
    color: var(--color-text-light);
}

/* ---------- 联系我们卡片 ---------- */
.contact-grid-about {
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
}
.contact-card-about {
    flex: 1;
    min-width: 200px;
    text-align: center;
    padding: 32px 20px;
    background: var(--color-white);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    transition: transform 0.3s, box-shadow 0.3s;
}
.contact-card-about:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}
.contact-card-icon {
    width: 48px;
    height: 48px;
    margin: 0 auto 16px;
}
.contact-card-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}
.contact-card-label {
    font-size: 14px;
    color: var(--color-text-light);
    margin-bottom: 8px;
}
.contact-card-value {
    font-size: 16px;
    font-weight: 600;
    color: var(--color-dark);
}

/* ---------- 发展历程 ---------- */
.timeline-bg {
    background-size: cover;
    background-position: center;
    border-radius: 20px;
    overflow: hidden;
    padding: 60px 40px;
    position: relative;
}
.timeline-bg::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(255,255,255,0.82);
}
.timeline-row {
    position: relative;
    z-index: 1;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
}
.timeline-card {
    flex: 0 0 220px;
    background: rgba(255,255,255,0.95);
    border-radius: 14px;
    padding: 28px 20px;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0,0,0,0.06);
    border: 1px solid rgba(0,0,0,0.04);
    transition: transform 0.3s, box-shadow 0.3s;
}
.timeline-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 32px rgba(0,0,0,0.1);
}
.timeline-year {
    font-size: 36px;
    font-weight: 800;
    color: var(--color-primary);
    margin-bottom: 6px;
}
.timeline-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--color-dark);
    margin-bottom: 10px;
}
.timeline-desc {
    font-size: 14px;
    color: var(--color-text-light);
    line-height: 1.7;
}

/* ---------- 荣誉资质 ---------- */
.cert-grid {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}
.cert-item {
    flex: 1;
    min-width: 280px;
    max-width: 420px;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--color-border);
    transition: transform 0.3s, box-shadow 0.3s;
}
.cert-item:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}
.cert-item img {
    width: 100%;
    display: block;
}

/* ---------- 合作伙伴 ---------- */
.partner-grid {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 40px;
    flex-wrap: wrap;
    row-gap: 50px;
}
.partner-item {
    flex: 0 0 160px;
    text-align: center;
    text-decoration: none;
    transition: transform 0.3s;
}
.partner-item:hover {
    transform: translateY(-6px);
}
.partner-item img {
    width: 160px;
    height: 70px;
    object-fit: contain;
    display: block;
    margin: 0 auto 10px;
}
.partner-item span {
    font-size: 14px;
    color: var(--color-text-light);
    font-weight: 500;
}

/* ---------- 案例详情页 ---------- */
.case-detail {
    padding: 60px 0;
}

/* 效果与预期卡片 */
.effect-card {
    background: var(--color-white);
    border-radius: var(--radius-md);
    padding: 36px 40px;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--color-border);
    margin-bottom: 50px;
}

.effect-card h3 {
    font-size: 24px;
    font-weight: 700;
    color: var(--color-dark);
    margin-bottom: 16px;
    position: relative;
    padding-left: 16px;
}

.effect-card h3::before {
    content: '';
    position: absolute;
    left: 0;
    top: 4px;
    bottom: 4px;
    width: 4px;
    background: linear-gradient(180deg, var(--color-primary), var(--color-accent));
    border-radius: 2px;
}

.effect-card ul {
    padding-left: 16px;
}

.effect-card ul li {
    font-size: 17px;
    color: var(--color-text);
    line-height: 2;
}

/* 案例详情内容区 */
.case-section {
    margin-bottom: 50px;
}

.case-section h2 {
    font-size: 28px;
    font-weight: 700;
    color: var(--color-dark);
    margin-bottom: 20px;
    position: relative;
    padding-left: 16px;
}

.case-section h2::before {
    content: '';
    position: absolute;
    left: 0;
    top: 4px;
    bottom: 4px;
    width: 4px;
    background: linear-gradient(180deg, var(--color-primary), var(--color-accent));
    border-radius: 2px;
}

.case-section p {
    font-size: 17px;
    color: var(--color-text);
    line-height: 1.9;
    text-align: justify;
    text-indent: 2em;
    margin-bottom: 12px;
}

.case-section p.no-indent {
    text-indent: 0;
}

/* 固定咨询按钮 */
.consult-fixed {
    position: fixed;
    right: 40px;
    top: 280px;
    z-index: 100;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 16px 32px;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 600;
    letter-spacing: 1px;
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-accent) 100%);
    color: var(--color-white);
    box-shadow: 0 8px 24px rgba(26,95,220,0.35);
    transition: var(--transition);
    text-decoration: none;
}

.consult-fixed:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 32px rgba(26,95,220,0.45);
    color: var(--color-white);
}

/* ---------- 动画系统 ---------- */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(40px); }
    to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}
@keyframes scaleIn {
    from { opacity: 0; transform: scale(0.92); }
    to   { opacity: 1; transform: scale(1); }
}
@keyframes slideInLeft {
    from { opacity: 0; transform: translateX(-50px); }
    to   { opacity: 1; transform: translateX(0); }
}
@keyframes slideInRight {
    from { opacity: 0; transform: translateX(50px); }
    to   { opacity: 1; transform: translateX(0); }
}

/* 基础动画项：初始隐藏，JS 添加 .visible 后播放 */
.anim-item {
    opacity: 0;
}
.anim-item.visible {
    animation-fill-mode: forwards;
    animation-timing-function: cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* 动画变体 */
.anim-fade-up.visible    { animation-name: fadeInUp; animation-duration: 0.7s; }
.anim-fade-in.visible    { animation-name: fadeIn;    animation-duration: 0.6s; }
.anim-scale-in.visible   { animation-name: scaleIn;   animation-duration: 0.6s; }
.anim-slide-left.visible { animation-name: slideInLeft;  animation-duration: 0.7s; }
.anim-slide-right.visible{ animation-name: slideInRight; animation-duration: 0.7s; }

/* 延迟工具 */
.anim-d1.visible { animation-delay: 0.1s; }
.anim-d2.visible { animation-delay: 0.2s; }
.anim-d3.visible { animation-delay: 0.3s; }
.anim-d4.visible { animation-delay: 0.4s; }
.anim-d5.visible { animation-delay: 0.5s; }

/* 图片 hover 微放大 */
.img-hover-zoom {
    overflow: hidden;
}
.img-hover-zoom img {
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.img-hover-zoom:hover img {
    transform: scale(1.08);
}

/* 案例卡片图片 hover */
.case-card.img-hover-zoom:hover img {
    transform: scale(1.08);
}

/* 页面横幅文字入场 */
.page-banner .banner-title,
.page-banner .banner-subtitle {
    animation: fadeInUp 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94) both;
}
.page-banner .banner-subtitle {
    animation-delay: 0.15s;
}

/* 标签切换栏入场 */
.tabs {
    animation: fadeInUp 0.6s 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94) both;
}

/* ---------- 响应式 ---------- */
@media (max-width: 1280px) {
    body { min-width: auto; }
    .container, .container-wide { width: 100%; padding: 0 24px; }
}

@media (max-width: 768px) {
    .header .nav-links { display: none; }
    .header-inner { height: 56px; }
    .header .logo img { height: 30px; }
    .page-banner { padding: 60px 0; margin-top: 56px; }
    .page-banner .banner-title { font-size: 28px; }
    .section { padding: 50px 0; }
    .section-title { font-size: 24px; }
    .footer-grid { grid-template-columns: 1fr; gap: 30px; }
    .stats-row { flex-wrap: wrap; gap: 30px; }
    .stat-number { font-size: 36px; }
    .service-card-lg { flex-direction: column; }
    .service-card-lg .service-img { width: 100%; }
    .service-card-lg .service-body { padding: 20px; }
    .news-item { flex-direction: column; }
}
