@charset "utf-8";

/* =========================================
   1. 设计系统变量 (Design System Tokens)
   ========================================= */
:root {
    /* 品牌核心色 - 更加稳重与质感 */
    --primary-blue: #002a55;
    /* 深邃工业蓝：传递稳重、专业 */
    --primary-light: #004d80;
    /* 亮部蓝：用于悬停 */
    --accent-gold: #d4af37;
    /* 香槟金：高端点缀，非俗气土金 */

    /* 辅助色 */
    --success: #28a745;
    --warning: #ffc107;
    --danger: #dc3545;
    --info: #17a2b8;

    /* 中性色 - 极简白与高级灰 */
    --bg-body: #f7f9fc;
    /* 冷调灰白背景，护眼且现代 */
    --bg-card: #ffffff;
    --text-main: #1a1a1a;
    /* 近黑，非纯黑 */
    --text-secondary: #555555;
    --text-light: #999999;
    --border-light: #ebebeb;

    /* 高级阴影 (Diffuse Shadows) */
    --shadow-xs: 0 2px 8px rgba(0, 0, 0, 0.04);
    --shadow-sm: 0 4px 12px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 8px 24px rgba(0, 42, 85, 0.08);
    /* 带蓝色倾向的阴影 */
    --shadow-lg: 0 16px 48px rgba(0, 42, 85, 0.12);
    --shadow-float: 0 20px 60px rgba(0, 0, 0, 0.15);
    /* 悬浮态 */

    /* 倒角系统 */
    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-full: 999px;

    /* 动效曲线 */
    --ease-out: cubic-bezier(0.25, 0.46, 0.45, 0.94);
    --ease-elastic: cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* =========================================
   2. 全局重置与排版 (Global Reset & Typography)
   ========================================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
    outline: none;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    /* 提升基础字号 */
}

body {
    font-family: "Inter", "Helvetica Neue", "PingFang SC", "Microsoft YaHei", sans-serif;
    background-color: var(--bg-body);
    color: var(--text-main);
    line-height: 1.75;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s var(--ease-out);
}

ul,
li {
    list-style: none;
}

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

/* 选区颜色 */
::selection {
    background-color: var(--primary-blue);
    color: #fff;
}

/* 通用容器 */
.w1240 {
    max-width: 1240px;
    width: 90%;
    /* 移动端默认左右留白 */
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

/* 通用间距 */
.pt50 {
    padding: 80px 0;
}

/* 增大留白，呼吸感 */
.mt30 {
    margin-top: 30px;
}

/* =========================================
   2. 电影级 Hero Banner (Hero Section)
   ========================================= */
.hero-slider {
    width: 100%;
    height: 720px;
    /* 增加高度，更具其实 */
    position: relative;
    overflow: hidden;
    background: #000;
}

.swiper-slide {
    position: relative;
    overflow: hidden;
    height: 100%;
}

.hero-bg-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1);
    transition: transform 8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.swiper-slide-active .hero-bg-img {
    transform: scale(1.15);
    /* 缓慢缩放效果 */
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0.4) 60%, transparent 100%);
    z-index: 1;
}

.hero-content {
    position: absolute;
    top: 50%;
    left: 10%;
    transform: translateY(-50%);
    z-index: 10;
    color: #fff;
    max-width: 650px;
    width: 85%;
}

.hero-title,
.hero-desc,
.hero-btn {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s var(--ease-out);
}

.hero-title {
    font-size: 64px;
    font-weight: 800;
    margin-bottom: 24px;
    line-height: 1.1;
    text-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    letter-spacing: -1px;
}

.hero-desc {
    font-size: 20px;
    font-weight: 300;
    margin-bottom: 50px;
    line-height: 1.6;
    border-left: 4px solid var(--accent-gold);
    padding-left: 24px;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.1) 0%, transparent 100%);
}

.hero-btn {
    display: inline-flex;
    align-items: center;
    padding: 16px 48px;
    border: 1px solid rgba(255, 255, 255, 0.4);
    color: #fff;
    border-radius: 50px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    font-size: 18px;
    font-weight: 600;
    transition: all 0.4s;
}

.hero-btn:hover {
    background: var(--accent-gold);
    border-color: var(--accent-gold);
    color: #fff;
    transform: translateY(-4px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

.swiper-slide-active .hero-title {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.4s;
}

.swiper-slide-active .hero-desc {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.6s;
}

.swiper-slide-active .hero-btn {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.8s;
}

/* 分页器 */
.swiper-pagination-bullet {
    width: 40px;
    height: 4px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 2px;
    margin: 0 8px !important;
    transition: all 0.4s;
}

.swiper-pagination-bullet-active {
    width: 60px;
    background: var(--accent-gold);
}

/* 核心优势悬浮卡片区 - 修正版 */
.feature-section {
    margin-top: -100px;
    /* 向上重叠 */
    position: relative;
    z-index: 20;
    padding-bottom: 40px;
}

.feature-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.feature-item {
    background: #fff;
    padding: 40px;
    border-radius: var(--radius-md);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.1);
    text-align: center;
    transition: all 0.4s;
    border-bottom: 3px solid transparent;
}

.feature-item:hover {
    transform: translateY(-15px);
    border-bottom-color: var(--primary-blue);
}

.feature-item i {
    font-size: 48px;
    color: var(--primary-blue);
    margin-bottom: 20px;
    display: block;
    transition: 0.4s;
}

.feature-item:hover i {
    transform: scale(1.2);
    color: var(--accent-gold);
}

.feature-item h3 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--text-main);
}

.feature-item p {
    font-size: 14px;
    color: var(--text-secondary);
}

/* =========================================
   3. 实用工具类 (Utilities) & 其他模块衔接
   ========================================= */

/* 毛玻璃效果 */
.glass-effect {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.5);
}

/* 文本截断 */
.text-truncate-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* =========================================
   4. 通用组件 (Components)
   ========================================= */

/* 1. 标题系统 - 现代居中风格 */
.title {
    text-align: center;
    margin-bottom: 60px;
    position: relative;
}

.title h3 {
    font-size: 36px;
    font-weight: 800;
    color: var(--primary-blue);
    letter-spacing: -0.5px;
    margin-bottom: 16px;
}

.title p {
    color: var(--text-secondary);
    font-size: 16px;
    letter-spacing: 2px;
    text-transform: uppercase;
    font-weight: 500;
    position: relative;
    display: inline-block;
}

/* 装饰性短横线 */
.title p::after {
    content: '';
    display: block;
    width: 40px;
    height: 3px;
    background: var(--accent-gold);
    margin: 12px auto 0;
    border-radius: 2px;
}

/* 2. 按钮组件 - 拟态/渐变 */
.btn-primary,
.more-btn,
.getmore {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 40px;
    background: linear-gradient(135deg, var(--primary-blue) 0%, #004080 100%);
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    border-radius: 50px;
    border: none;
    cursor: pointer;
    box-shadow: 0 10px 20px rgba(0, 42, 85, 0.2);
    transition: all 0.4s var(--ease-elastic);
    position: relative;
    overflow: hidden;
    text-align: center;
}

/* 按钮微光扫过动画 */
.btn-primary::before,
.more-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(to right, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.2) 50%, rgba(255, 255, 255, 0) 100%);
    transform: skewX(-25deg);
    transition: 0.5s;
}

.btn-primary:hover::before,
.more-btn:hover::before {
    left: 125%;
    transition: 0.7s ease;
}

.btn-primary:hover,
.more-btn:hover {
    transform: translateY(-4px);
    box-shadow: 0 15px 30px rgba(0, 42, 85, 0.3);
}

.more-btn {
    display: table;
    /* 兼容旧代码 */
    margin: 50px auto 0;
    width: auto;
    min-width: 180px;
}

/* 3. 卡片通用 - 悬浮磁吸感 */
.hover-card {
    background: var(--bg-card);
    border-radius: var(--radius-md);
    transition: all 0.4s var(--ease-out);
    position: relative;
    border: 1px solid rgba(0, 0, 0, 0.03);
}

.hover-card:hover {
    transform: translateY(-8px) scale(1.01);
    box-shadow: var(--shadow-lg);
    border-color: transparent;
    z-index: 10;
}

/* =========================================
   5. 模块特定样式 (Module Specific)
   ========================================= */

/* Tab 选项卡 - 极简风格 */
.tab-hd {
    text-align: center;
    margin-bottom: 40px;
    border-bottom: 1px solid var(--border-light);
}

.tabs {
    display: inline-flex;
    justify-content: center;
    gap: 30px;
    padding-bottom: 15px;
    position: relative;
}

.tabs div {
    font-size: 16px;
    color: var(--text-light);
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s;
    padding: 5px 10px;
    position: relative;
}

.tabs div.active {
    color: var(--primary-blue);
    font-weight: 700;
}

.tabs div.active::after {
    content: '';
    position: absolute;
    bottom: -17px;
    /* 贴合父级border */
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--primary-blue);
    border-radius: 3px 3px 0 0;
    box-shadow: 0 -2px 5px rgba(0, 42, 85, 0.2);
}

/* 产品网格 */
.prod-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.prod-card {
    background: #fff;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: all 0.4s var(--ease-out);
    group: product;
}

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

.prod-img {
    height: 240px;
    background: #f4f6f9;
    padding: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
}

.prod-img img {
    max-width: 90%;
    max-height: 90%;
    transition: transform 0.6s ease;
    filter: drop-shadow(0 5px 15px rgba(0, 0, 0, 0.05));
}

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

.prod-title {
    text-align: center;
    padding: 20px;
    font-weight: 600;
    color: var(--text-main);
    border-top: 1px solid rgba(0, 0, 0, 0.03);
    font-size: 16px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* 新闻列表 - 改良版 */
.news-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.news-card {
    background: #fff;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: all 0.4s;
    height: 100%;
    /* 等高 */
    display: flex;
    flex-direction: column;
}

.news-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.news-card a {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.news-img {
    height: 220px;
    position: relative;
    overflow: hidden;
}

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

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

/* 日期徽章 */
.news-date-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background: rgba(255, 255, 255, 0.95);
    padding: 6px 12px;
    border-radius: 4px;
    text-align: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    color: var(--primary-blue);
    font-weight: bold;
    font-size: 12px;
    line-height: 1.2;
}

.news-info {
    padding: 25px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.news-title {
    font-size: 18px;
    color: var(--text-main);
    font-weight: 700;
    margin-bottom: 12px;
    line-height: 1.5;
    transition: color 0.3s;
}

.news-card:hover .news-title {
    color: var(--primary-blue);
}

.news-desc {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 20px;
    flex: 1;
    /* 撑满空间 */
}

/* 查看更多小箭头 */
.news-more-link {
    color: var(--accent-gold);
    font-size: 13px;
    font-weight: 600;
    display: flex;
    align-items: center;
    margin-top: auto;
}

.news-more-link i {
    margin-left: 5px;
    transition: 0.3s;
}

.news-card:hover .news-more-link i {
    margin-left: 10px;
}


/* =========================================
   6. 页脚 (Footer)
   ========================================= */
.footer {
    background: #0f121a;
    /* 更深邃的黑 */
    color: #8890a6;
    padding: 80px 0 30px;
    font-size: 14px;
}

.footer-top {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 40px;
    padding-bottom: 50px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.footer h4 {
    color: #fff;
    margin-bottom: 20px;
    font-size: 18px;
}

.footer-contact li {
    margin-bottom: 12px;
    display: flex;
    align-items: center;
}

.footer-contact i {
    margin-right: 10px;
    color: var(--accent-gold);
}

.copyright {
    text-align: center;
    padding-top: 30px;
    opacity: 0.6;
}