@charset "UTF-8";

/* =========================================================================
   济南世通 - 高端极简工业风样式 (Jinan Shitong Minimalist Industrial CSS)
   核心要求: 大量留白(Negative Space)，严谨的排版，沉稳且有力量的色彩
   字体约束: Noto Sans SC (中文) + Inter (英文/数字), 免版权限制
========================================================================= */

:root {
  /* Colors */
  --bg-color: #0d0f12;           /* 极暗深空灰 - 背景体 */
  --surface-color: #171a1f;      /* 表面卡片颜色 */
  --text-primary: #f2f5f8;       /* 主文本白 */
  --text-secondary: #8b95a1;     /* 次要文本灰 */
  --accent-color: #fca311;       /* 工业橙 - 警示、动力、高亮 */
  --accent-hover: #e5940f;
  
  /* Typography */
  --font-family: 'Inter', 'Noto Sans SC', system-ui, -apple-system, sans-serif;
  
  /* Transitions */
  --transition-fast: 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-smooth: 0.6s cubic-bezier(0.16, 1, 0.3, 1);

  /* 默认配置主题变量映射 */
  --border-color: rgba(255, 255, 255, 0.05);
  --hero-overlay: linear-gradient(rgba(13, 15, 18, 0.6), rgba(13, 15, 18, 0.85));
  --nav-bg: rgba(13, 15, 18, 0.85);
  --nav-border: rgba(255, 255, 255, 0.05);
  --footer-bg: #090b0d;
  --logo-filter: drop-shadow(0px 0px 8px rgba(252, 163, 17, 0.35)) drop-shadow(0px 0px 20px rgba(252, 163, 17, 0.12));
  --logo-filter-hover: drop-shadow(0px 0px 12px rgba(252, 163, 17, 0.6)) drop-shadow(0px 0px 28px rgba(252, 163, 17, 0.25));
}

/* =========================================================================
   多主题配置切换配色体系
   ========================================================================= */

/* 方案一：经典深邃 (默认暗黑橙主题) */
.theme-dark-orange {
  --bg-color: #0d0f12;
  --surface-color: #171a1f;
  --text-primary: #f2f5f8;
  --text-secondary: #8b95a1;
  --accent-color: #fca311;
  --accent-hover: #e5940f;
  --border-color: rgba(255, 255, 255, 0.05);
  --hero-overlay: linear-gradient(rgba(13, 15, 18, 0.6), rgba(13, 15, 18, 0.85));
  --nav-bg: rgba(13, 15, 18, 0.85);
  --nav-border: rgba(255, 255, 255, 0.05);
  --footer-bg: #090b0d;
  --logo-filter: drop-shadow(0px 0px 8px rgba(252, 163, 17, 0.35)) drop-shadow(0px 0px 20px rgba(252, 163, 17, 0.12));
  --logo-filter-hover: drop-shadow(0px 0px 12px rgba(252, 163, 17, 0.6)) drop-shadow(0px 0px 28px rgba(252, 163, 17, 0.25));
}

/* 方案二：晨曦白玉 (高保真明亮科技蓝主题 - 科技冷灰蓝与纯白悬浮面板对比) */
.theme-light-blue {
  --bg-color: #f1f5f9;           /* 冰冷质感的淡冷灰蓝底色 */
  --surface-color: #ffffff;      /* 纯白色浮空毛玻璃卡片 */
  --text-primary: #0f172a;       /* 强对比深 Slate 灰主文字 */
  --text-secondary: #475569;     /* 强对比次要灰字 */
  --accent-color: #0284c7;       /* 亮科技天蓝色 */
  --accent-hover: #0369a1;
  --border-color: #e2e8f0;       /* 灰白色冷调细边 */
  --hero-overlay: linear-gradient(rgba(241, 245, 249, 0.45), rgba(241, 245, 249, 0.85));
  --nav-bg: rgba(241, 245, 249, 0.85);
  --nav-border: #e2e8f0;
  --footer-bg: #e2e8f0;          /* 块面深沉灰底页脚 */
  --logo-filter: drop-shadow(0px 0px 6px rgba(2, 132, 199, 0.15));
  --logo-filter-hover: drop-shadow(0px 0px 10px rgba(2, 132, 199, 0.35));
}

/* 方案三：香槟暖阳 (高保真温馨明亮浅暖金主题 - 燕麦暖黄与乳白色浮空面板对比) */
.theme-light-warm {
  --bg-color: #f5efe6;           /* 极高品质的暖调麦芽燕麦底色 */
  --surface-color: #fdfbf7;      /* 温馨象牙白浮空卡片表面 */
  --text-primary: #292524;       /* 偏暖调的深石灰主文字 */
  --text-secondary: #57534e;     /* 暖灰色次要字 */
  --accent-color: #b45309;       /* 浓郁重金属质感的高级琥珀暖金色 */
  --accent-hover: #92400e;
  --border-color: #eaddd0;       /* 温馨麦芽沙金细线 */
  --hero-overlay: linear-gradient(rgba(245, 239, 230, 0.5), rgba(245, 239, 230, 0.88));
  --nav-bg: rgba(245, 239, 230, 0.85);
  --nav-border: #eaddd0;
  --footer-bg: #eaddd0;          /* 温暖沙底色页脚 */
  --logo-filter: drop-shadow(0px 0px 6px rgba(180, 83, 9, 0.15));
  --logo-filter-hover: drop-shadow(0px 0px 10px rgba(180, 83, 9, 0.35));
}

/* 方案四：竹雅翡翠 (柔和清新爽朗浅亮绿主题 - 竹青浅绿底色与翠白面板对比) */
.theme-light-green {
  --bg-color: #e2ede5;           /* 清新自然、富有呼吸感的竹青浅绿底色 */
  --surface-color: #fcfdfc;      /* 极素净高雅的翠白卡片 */
  --text-primary: #111827;       /* 深黛绿主文字 */
  --text-secondary: #374151;     /* 松石灰次要字 */
  --accent-color: #0d9488;       /* 经典沉稳松石翠绿 */
  --accent-hover: #0f766e;
  --border-color: #cbdad0;       /* 青翠色细边线 */
  --hero-overlay: linear-gradient(rgba(226, 237, 229, 0.45), rgba(226, 237, 229, 0.85));
  --nav-bg: rgba(226, 237, 229, 0.85);
  --nav-border: #cbdad0;
  --footer-bg: #cbdad0;          /* 清爽翠灰底色页脚 */
  --logo-filter: drop-shadow(0px 0px 6px rgba(13, 148, 136, 0.15));
  --logo-filter-hover: drop-shadow(0px 0px 10px rgba(13, 148, 136, 0.35));
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-family);
  background-color: var(--bg-color);
  color: var(--text-primary);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

/* =========================================
   Typography
========================================= */
h1, h2, h3, h4, h5, h6 {
  font-weight: 600;
  line-height: 1.2;
}

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
}

/* =========================================
   Navigation (三语极简带毛玻璃)
========================================= */
.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 5%;
  z-index: 1000;
  transition: padding var(--transition-fast), background var(--transition-fast);
}

.navbar.scrolled {
  padding: 1rem 5%;
  background: var(--nav-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--nav-border);
}

.logo {
  display: flex;
  align-items: center;
  gap: 0; /* logo图片内含公司名，不额外添加gap */
  text-decoration: none;
}

/* ---- Logo 品牌图片 ----
   透明背景PNG，图内文字已是灰白色，适配深色导航栏
   仅加品牌橙光晕，无需任何白色补偿 */
.site-logo {
  height: 64px;            /* 942:194 ≈ 4.86:1 横版，64px高对应约311px宽 */
  width: auto;
  object-fit: contain;
  /* 轻微品牌光晕，自适应主题配色 */
  filter: var(--logo-filter);
  -webkit-filter: var(--logo-filter);
  transition: all var(--transition-fast);
}

.site-logo:hover {
  filter: var(--logo-filter-hover);
  -webkit-filter: var(--logo-filter-hover);
}

.navbar.scrolled .site-logo {
  height: 52px; /* 滚动后收缩 */
}

.nav-links {
  display: flex;
  gap: 2rem;
}

.nav-links li a {
  font-size: 0.95rem;
  font-weight: 400;
  color: var(--text-secondary);
  transition: color var(--transition-fast);
}

.nav-links li a:hover {
  color: var(--accent-color);
}

/* Language Switcher */
.lang-switcher {
  display: flex;
  gap: 0.5rem;
}

.mobile-lang-switcher {
  display: none;
}

.lang-btn {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: var(--text-secondary);
  padding: 0.3rem 0.8rem;
  font-family: inherit;
  font-size: 0.85rem;
  cursor: pointer;
  border-radius: 4px;
  transition: all var(--transition-fast);
}

.lang-btn.active, .lang-btn:hover {
  color: var(--bg-color);
  background: var(--text-primary);
  border-color: var(--text-primary);
}

/* =========================================
   Hero Section (视差与大图)
========================================= */
.hero {
  height: 100vh;
  position: relative;
  display: flex;
  align-items: center;
  padding: 0 10%;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 120%; /* For parallax */
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  z-index: -2;
  transition: opacity 0.8s ease-in-out;
}

/* 采用 ::before 伪类加载渐变遮罩，使遮罩配色自动承袭 CSS 变量，绝无色彩穿透 */
.hero-bg::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--hero-overlay);
  z-index: -1;
}

.hero-content {
  max-width: 800px;
  /* Animation handled by JS reveal */
}

.hero-title {
  font-size: 4rem;
  margin-bottom: 1.5rem;
  letter-spacing: -1px;
}

.hero-subtitle {
  font-size: 1.25rem;
  color: var(--text-secondary);
  font-weight: 300;
  margin-bottom: 3rem;
  max-width: 600px;
}

.btn-primary {
  display: inline-block;
  background: var(--accent-color);
  color: var(--bg-color);
  padding: 1rem 2.5rem;
  font-weight: 600;
  border-radius: 4px;
  transition: background var(--transition-fast), transform var(--transition-fast);
}

.btn-primary:hover {
  background: var(--accent-hover);
  transform: translateY(-2px);
}

/* =========================================
   Sections General
========================================= */
.section {
  padding: 8rem 10%;
  scroll-margin-top: 80px; /* 补偿桌面端固定头部高度 */
}

.section-header {
  margin-bottom: 5rem;
}

.section-title {
  font-size: 2.5rem;
  position: relative;
  display: inline-block;
}

.section-title::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -15px;
  width: 40px;
  height: 3px;
  background: var(--accent-color);
}

/* =========================================
   About Structure
========================================= */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}

.about-text p {
  font-size: 1.1rem;
  color: var(--text-secondary);
  line-height: 1.8;
}

.about-visual {
  position: relative;
}

.about-image {
  width: 100%;
  border-radius: 4px;
  /* 全彩显示，不施加灰度效果 */
}

/* =========================================
   Products Structure (Dynamic JS)
========================================= */
.product-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 3rem;
}

.filter-btn {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: var(--text-secondary);
  padding: 0.5rem 1.5rem;
  font-family: inherit;
  font-size: 0.95rem;
  cursor: pointer;
  border-radius: 4px;
  transition: all var(--transition-fast);
}

.filter-btn.active, .filter-btn:hover {
  background: var(--text-primary);
  color: var(--bg-color);
  border-color: var(--text-primary);
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  transition: opacity 0.3s ease-in-out, transform 0.3s ease-in-out;
  opacity: 1;
  transform: translateY(0);
}

.products-grid.fade-out {
  opacity: 0;
  transform: translateY(15px);
}

@media (max-width: 1200px) {
  .products-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 900px) {
  .products-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .products-grid { grid-template-columns: 1fr; }
}

.product-card {
  background: var(--surface-color);
  border-radius: 8px;
  overflow: hidden;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
  cursor: pointer;
}

.product-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.5);
}

.product-img {
  width: 100%;
  height: 240px;
  object-fit: cover;
  filter: grayscale(30%);
  transition: filter var(--transition-fast);
}

.product-card:hover .product-img {
  filter: grayscale(0%);
}

.product-info {
  padding: 2rem;
}

.product-title {
  font-size: 1.2rem;
  margin-bottom: 1rem;
}

.product-desc {
  color: var(--text-secondary);
  font-size: 0.95rem;
}

/* =========================================
   Pagination UI
========================================= */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  margin-top: 4rem;
}

.page-btn {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: var(--text-secondary);
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  cursor: pointer;
  transition: all var(--transition-fast);
  font-family: inherit;
  font-size: 1rem;
}

.page-btn.active, .page-btn:hover {
  background: var(--text-primary);
  color: var(--bg-color);
  border-color: var(--text-primary);
}

/* =========================================
   News & Careers
========================================= */
.biform-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
}

.list-item {
  padding: 1.5rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  transition: padding-left var(--transition-fast);
}

.news-item {
  flex-direction: row;
  align-items: center;
}

.news-thumb {
  width: 120px;
  height: 80px;
  object-fit: cover;
  border-radius: 4px;
  flex-shrink: 0;
}

.news-content {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.list-item:hover {
  padding-left: 10px;
  border-bottom-color: var(--accent-color);
}

.list-meta {
  font-size: 0.85rem;
  color: var(--accent-color);
  font-weight: 600;
}

.list-title {
  font-size: 1.1rem;
  color: var(--text-primary);
}

.list-desc {
  font-size: 0.9rem;
  color: var(--text-secondary);
}

/* =========================================
   Contact / Footer
========================================= */
footer {
  background: var(--footer-bg);
  padding: 6rem 10% 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr; /* Simplified for elegance */
  gap: 3rem;
  margin-bottom: 4rem;
  text-align: center;
}

.footer-info p {
  color: var(--text-secondary);
  font-size: 1rem;
  margin-bottom: 0.8rem;
}

.footer-bottom {
  text-align: center;
  color: var(--text-secondary);
  font-size: 0.85rem;
  border-top: 1px solid var(--border-color);
  padding-top: 2rem;
}

/* =========================================
   Animations (Scroll Reveal)
========================================= */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* =========================================
   Responsive & Mobile Menu
========================================= */

/* =============================================================
   移动端暗化遮罩及响应式重构
   ============================================================= */

/* 侧边菜单背景暗化遮罩层 */
.nav-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(8, 10, 12, 0.6);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.45s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 998;
}

.nav-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

/* Hamburger Menu Toggle */
.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    cursor: pointer;
    z-index: 1001;
    margin-left: auto;
}

.menu-toggle .bar {
    height: 3px;
    width: 100%;
    background-color: var(--text-primary);
    border-radius: 10px;
    transition: all 0.3s ease;
}

@media (max-width: 900px) {
    /* 强制禁止横向溢出 */
    body {
        width: 100vw !important;
        overflow-x: hidden !important;
        position: relative;
    }

    .menu-toggle {
        display: flex !important;
    }

    /* 移动端导航栏：高度微调保证垂直留白优雅 */
    .navbar {
        padding: 0 6% !important;
        height: 68px !important;
        width: 100vw !important;
        left: 0 !important;
        display: flex !important;
        justify-content: space-between !important;
        align-items: center !important;
        box-sizing: border-box !important;
        background: rgba(13, 15, 18, 0.96) !important;
        border-bottom: 1px solid rgba(255, 255, 255, 0.03);
    }

    .navbar > .lang-switcher {
        display: none !important; /* 移动端顶部导航栏隐藏语言切换，移入菜单内 */
    }

    .site-logo {
        height: 46px !important; /* 移动端适配新logo尺寸 */
        width: auto !important;
        max-width: 72vw !important;
        object-fit: contain !important;
    }

    .navbar.scrolled .site-logo {
        height: 40px !important; /* 滚动后更紧凑 */
    }

    /* 现代毛玻璃抽屉式侧边栏菜单 */
    .nav-links {
        position: fixed;
        right: 0;
        top: 0;
        width: 72vw; /* 优雅的右侧半屏 */
        height: 100vh; /* 满屏高度 */
        background: rgba(13, 15, 18, 0.88);
        backdrop-filter: blur(28px);
        -webkit-backdrop-filter: blur(28px);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 2.2rem;
        transform: translateX(100%); /* 默认隐藏在右侧外面 */
        transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
        box-shadow: -15px 0 35px rgba(0, 0, 0, 0.75);
        z-index: 1000;
        margin: 0;
        padding: 3rem 1.5rem;
        box-sizing: border-box;
    }

    .nav-links.active {
        transform: translateX(0); /* 滑入屏幕 */
    }

    .mobile-lang-switcher {
        display: flex !important;
        justify-content: center;
        gap: 0.8rem;
        margin-top: 1.5rem;
        width: 100%;
    }

    .nav-links li {
        width: 100%;
        text-align: center;
    }

    .nav-links li a {
        font-size: 1.35rem;
        font-weight: 600;
        color: var(--text-primary);
        display: block;
        padding: 0.8rem;
        letter-spacing: 1px;
    }

    /* 汉堡变叉动画 */
    .menu-toggle.active .bar:nth-child(2) {
        opacity: 0;
    }

    .menu-toggle.active .bar:nth-child(1) {
        transform: translateY(9px) rotate(45deg);
        background-color: var(--accent-color); /* 激活时变为品牌橙色 */
    }

    .menu-toggle.active .bar:nth-child(3) {
        transform: translateY(-9px) rotate(-45deg);
        background-color: var(--accent-color);
    }

    /* 主视觉区域移动端高度控制及背景对齐微调 */
    .hero {
        padding: 0 6%;
        text-align: center;
        justify-content: center;
        height: 75vh;
        /* 将 X 轴定位偏右(75%)，使宽幅设备大图的工程搅拌站主体正好呈现在手机屏幕中心，防止被裁切 */
        background-position: 75% center !important;
        background-size: cover !important;
    }

    .hero-title {
        font-size: 2rem !important;
        line-height: 1.25;
        white-space: normal !important;
        word-break: break-all !important;
    }

    .hero-subtitle {
        font-size: 0.95rem;
        margin-bottom: 2.2rem;
        line-height: 1.6;
    }

    .section {
        padding: 4.5rem 6% !important;
    }

    .section-title {
        font-size: 1.8rem !important;
    }

    /* 替换硬性 display: block，使用 flexbox 保持结构弹性与安全间距 */
    .about-grid {
        display: flex !important;
        flex-direction: column !important;
        gap: 2.5rem !important;
    }

    .about-text {
        order: 2;
    }

    .about-visual {
        order: 1;
        margin-bottom: 0.5rem;
    }

    .about-image {
        max-height: 280px;
        width: 100%;
        object-fit: cover;
        border-radius: 6px;
    }

    .biform-grid {
        display: flex !important;
        flex-direction: column !important;
        gap: 3.5rem !important;
    }

    /* 移动端产品列表网格自适应 */
    .products-grid {
        display: grid !important;
        grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)) !important;
        gap: 2rem !important;
    }

    .news-item {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 1rem;
    }

    .news-thumb {
        width: 100% !important;
        height: 180px !important;
        margin-bottom: 0;
    }

    /* 横向滑动式分类选择器 (Swipeable Tabs) - 极致单手操作体验 */
    .product-filters {
        display: flex !important;
        flex-wrap: nowrap !important;
        overflow-x: auto !important;
        justify-content: flex-start !important;
        gap: 0.8rem !important;
        margin-top: 2rem !important;
        padding: 0.4rem 1rem 1.2rem !important; /* 留白防截断 */
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch; /* 弹性惯性滚动 */
        scrollbar-width: none; /* 隐藏 Firefox 滚动条 */
    }

    .product-filters::-webkit-scrollbar {
        display: none; /* 隐藏 Chrome/Safari 滚动条 */
    }

    .filter-btn {
        padding: 0.35rem 0.6rem !important;
        font-size: 0.8rem !important;
        letter-spacing: -0.5px;
    }
    
    .section {
        scroll-margin-top: 85px !important; /* 修正移动端锚点跳转遮挡 */
    }
}

@media (max-width: 480px) {
    .products-grid {
        grid-template-columns: 1fr !important; /* 确保单列显示 */
    }
    
    .product-img {
        height: 200px !important;
    }
}

/* =========================================================================
   核心产品体系与工程案例：无侵入平滑滑动动画类
   ========================================================================= */
.products-grid {
  transition: transform 0.3s cubic-bezier(0.25, 1, 0.5, 1), opacity 0.3s ease-out;
  will-change: transform, opacity;
}

/* 离场：向左滑出 */
.grid-slide-out-left {
  transform: translate3d(-35px, 0, 0) !important;
  opacity: 0 !important;
}

/* 离场：向右滑出 */
.grid-slide-out-right {
  transform: translate3d(35px, 0, 0) !important;
  opacity: 0 !important;
}

/* 进场准备：右侧就位 */
.grid-prep-right {
  transform: translate3d(35px, 0, 0) !important;
  opacity: 0 !important;
  transition: none !important;
}

/* 进场准备：左侧就位 */
.grid-prep-left {
  transform: translate3d(-35px, 0, 0) !important;
  opacity: 0 !important;
  transition: none !important;
}


