/* ==========================================================================
   1. 全局重置与核心变量
   ========================================================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

:root {
    --primary-color: #005a36; /* 邮政墨绿 */
    --accent-color: #007a48;
    --gold-color: #d2a638;   /* 工业琥珀金 */
    --light-bg: #f9f9f9;
    --dark-bg: #11141a;
    --text-dark: #333333;
    --text-light: #ffffff;
    --gray-text: #666666;
    --border-color: #dddddd;
}

body {
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
    background-color: #ffffff;
}

a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { max-width: 100%; height: auto; display: block; }

/* 扩充容器最大宽度，为横向导航争取空间 */
.container {
    width: 100%;
    max-width: 1360px;
    margin: 0 auto;
    padding: 0 15px;
}

.section-title {
    font-size: 28px;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 30px;
    display: flex;
    align-items: center;
    text-transform: uppercase;
}

.section-title::before {
    content: '';
    display: inline-block;
    width: 6px;
    height: 24px;
    background-color: var(--gold-color);
    margin-right: 12px;
}

.btn-more {
    display: inline-block;
    padding: 10px 25px;
    border: 1px solid var(--gold-color);
    color: var(--gold-color);
    background: transparent;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
    font-weight: 500;
    text-align: center;
}

.btn-more:hover {
    background-color: var(--gold-color);
    color: var(--text-light);
}

.btn-green {
    background-color: var(--primary-color);
    color: var(--text-light);
    border: 1px solid var(--primary-color);
}

.btn-green:hover {
    background-color: transparent;
    color: var(--primary-color);
    border-color: var(--primary-color);
}

/* 固定悬浮栏 */
.floating-toolbar {
    position: fixed;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 999;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.floating-item {
    width: 45px;
    height: 45px;
    background: var(--primary-color);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    cursor: pointer;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
    transition: background 0.3s;
}

.floating-item:hover { background: var(--gold-color); }

/* ==========================================================================
   2. 沉浸式顶部导航与大图轮播整合（优化横向单行排列）
   ========================================================================== */
.hero-slider-section {
    height: 100vh;
    min-height: 600px;
    position: relative;
    overflow: hidden;
}

/* 导航栏直接设定为白底并加上底部阴影 */
header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    background: #ffffff;
    box-shadow: 0 2px 15px rgba(0,0,0,0.08);
    transition: all 0.4s ease;
}

/* 顶部小条直接设定为深绿色底白字 */
.top-info-bar {
    background-color: var(--primary-color);
    color: #ffffff;
    font-size: 13px;
    padding: 8px 0;
    transition: all 0.4s ease;
}

.top-info-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.top-info-left { display: flex; gap: 20px; }
.top-info-left a { color: #ffffff; }
.top-info-left a:hover { color: var(--gold-color); }
.top-info-left i { color: var(--gold-color); margin-right: 5px; }

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
    gap: 15px;
}

/* 缩小 Logo 尺寸 */
.logo {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.logo img {
    height: 45px !important;
    width: auto;
    display: block;
}

/* 菜单项防折行处理 */
.nav-menu {
    display: flex;
    gap: 14px;
    height: 100%;
    align-items: center;
    flex-wrap: nowrap;
}

.nav-item {
    position: relative;
    height: 100%;
    display: flex;
    align-items: center;
    white-space: nowrap;
}

/* 导航菜单文字直接设定为深色 */
.nav-link {
    font-weight: 600;
    color: #333333;
    padding: 8px 0;
    font-size: 13.5px;
    position: relative;
    transition: color 0.3s;
    white-space: nowrap;
}

.nav-link::after {
    content: ''; position: absolute; left: 0; bottom: 0; width: 0; height: 2px;
    background-color: var(--gold-color); transition: width 0.3s ease;
}

.nav-link:hover::after, .nav-item.active .nav-link::after { width: 100%; }
.nav-link:hover, .nav-item.active .nav-link { color: var(--gold-color); }

/* Dropdown 下拉菜单 */
.dropdown {
    position: absolute; top: 70px; left: 0; background-color: #ffffff;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1); padding: 10px 0; min-width: 180px;
    display: none; border-top: 3px solid var(--gold-color);
}

.dropdown li a {
    display: block; padding: 10px 20px; color: #333; font-size: 13.5px; transition: all 0.3s;
    white-space: nowrap;
}

.dropdown li a:hover { background-color: #f5f5f5; color: var(--gold-color); padding-left: 25px; }
.nav-item:hover .dropdown { display: block; }

/* 缩小右侧搜索工具栏 */
.nav-tools-wrapper {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.search-box-container { display: flex; align-items: center; position: relative; }

/* 搜索框深色文字、灰白底设定 */
.search-input {
    padding: 6px 30px 6px 12px;
    font-size: 12px;
    background: #f9f9f9;
    border: 1px solid var(--border-color);
    color: #333333;
    border-radius: 20px;
    outline: none;
    width: 130px;
    transition: all 0.3s ease;
}
.search-input::placeholder { color: #999999; }

.search-input:focus {
    border-color: var(--gold-color);
    width: 160px;
}

.search-btn {
    position: absolute; right: 10px; background: transparent; border: none;
    color: var(--gray-text); cursor: pointer; font-size: 12px;
}
.search-btn:hover { color: var(--gold-color) !important; }

/* 语言选择器直接设为深色边框与文字 */
.lang-selector {
    position: relative; cursor: pointer; padding: 5px 8px;
    border: 1px solid var(--border-color); background: #ffffff;
    border-radius: 4px; font-size: 12px; color: var(--text-dark); font-weight: 500;
    display: flex; align-items: center; gap: 4px; transition: all 0.3s;
}

.lang-selector:hover { border-color: var(--gold-color); color: var(--gold-color); }

.lang-dropdown {
    position: absolute; top: 100%; right: 0; margin-top: 5px; background: #ffffff;
    border: 1px solid var(--border-color); box-shadow: 0 4px 10px rgba(0,0,0,0.08);
    border-radius: 4px; width: 100px; display: none; z-index: 1001; overflow: hidden;
}

.lang-dropdown li a {
    display: flex; align-items: center; gap: 8px; padding: 8px 10px;
    color: var(--text-dark); transition: all 0.3s; font-size: 12px;
}

.lang-dropdown li a:hover { background-color: #f5f5f5; color: var(--gold-color); }
.lang-selector:hover .lang-dropdown { display: block; }

.mobile-menu-toggle { display: none; font-size: 24px; color: var(--primary-color); cursor: pointer; }

.mobile-nav-panel {
    position: fixed; top: 70px; left: 0; width: 100%; background: #ffffff;
    box-shadow: 0 10px 20px rgba(0,0,0,0.1); z-index: 999; display: none;
    border-top: 1px solid var(--border-color); animation: slideDown 0.3s ease-out;
    max-height: calc(100vh - 70px); overflow-y: auto;
}

@keyframes slideDown {
    from { transform: translateY(-20px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.mobile-nav-list { padding: 10px 0; }
.mobile-nav-list li { border-bottom: 1px solid #f5f5f5; }
.mobile-nav-list li a { display: block; padding: 15px 25px; font-size: 15px; color: var(--text-dark); font-weight: 500; }
.mobile-nav-list li.active > a { color: var(--gold-color); }

.mobile-submenu { background: #fbfbfb; padding-left: 20px; }
.mobile-submenu a { font-size: 13px !important; color: var(--gray-text) !important; }
.mobile-tools-box { padding: 15px 25px; display: flex; flex-direction: column; gap: 15px; border-bottom: 1px solid var(--border-color); background: #fafafa; }

/* 轮播幻灯片 */
.slider-container { width: 100%; height: 100%; position: relative; }

.slide {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background-size: cover; background-position: center; background-repeat: no-repeat;
    display: flex; align-items: center; color: var(--text-light);
    opacity: 0; visibility: hidden; transition: opacity 0.8s ease-in-out, visibility 0.8s ease-in-out; z-index: 1;
}

.slide .container {
    padding-top: 120px;
    position: relative;
    z-index: 10;
}

.slide.active { opacity: 1; visibility: visible; z-index: 2; }

.slide-title {
    font-size: 56px;
    font-weight: 700;
    margin-bottom: 25px;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-shadow: 0 4px 15px rgba(0,0,0,0.4);
    transform: translateY(20px);
    transition: transform 0.8s ease-in-out;
}

.slide.active .slide-title { transform: translateY(0); }

.slider-dots {
    position: absolute; bottom: 40px; left: 50%; transform: translateX(-50%);
    z-index: 10; display: flex; gap: 12px;
}

.dot {
    width: 12px; height: 12px; background-color: rgba(255, 255, 255, 0.4);
    border-radius: 50%; cursor: pointer; transition: all 0.3s ease;
}

.dot.active, .dot:hover { background-color: var(--gold-color); transform: scale(1.2); }

/* ==========================================================================
   3. 产品/服务展厅区域
   ========================================================================== */
.tabs-container {
    display: flex; justify-content: center; background: #f0f0f0;
    border-radius: 4px; padding: 4px; max-width: 900px; margin: 0 auto 40px auto;
}

.btn-product-tab {
    flex: 1; padding: 12px 15px; background: transparent; color: var(--gray-text);
    border: none; cursor: pointer; font-weight: 500; font-size: 14px;
    transition: all 0.3s ease; text-align: center; border-radius: 4px;
}

.btn-product-tab.active { background: var(--primary-color); color: white; font-weight: 600; box-shadow: 0 4px 10px rgba(0, 90, 54, 0.15); }

.product-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.tab-content { display: none; }
.tab-content.active { display: block; animation: fadeIn 0.4s ease; }

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.product-card { background: white; border: 1px solid var(--border-color); padding: 25px; text-align: center; border-radius: 4px; transition: all 0.3s ease; }
.product-card:hover { transform: translateY(-5px); border-color: var(--gold-color); box-shadow: 0 5px 15px rgba(210,166,56,0.15); }

/* ==========================================================================
   4. SERVICE PRINCIPLE 服务宗旨布局
   ========================================================================== */
.service-section { width: 100%; background-color: var(--dark-bg); overflow: hidden; }
.service-container-fluid { display: flex; width: 100%; min-height: 480px; }

.service-panel-main {
    width: 35%; background-color: #003c23; padding: 60px 50px;
    display: flex; flex-direction: column; justify-content: space-between;
    position: relative; border-right: 1px solid rgba(255, 255, 255, 0.12);
}

.service-main-title h2 { font-size: 28px; font-weight: 700; letter-spacing: 0.5px; color: #ffffff; margin-bottom: 45px; }
.service-main-body h3 { font-size: 16px; font-weight: 600; color: var(--gold-color); margin-bottom: 12px; letter-spacing: 0.5px; display: flex; align-items: center; gap: 8px; }
.service-main-body p { font-size: 13.5px; color: rgba(255, 255, 255, 0.8); line-height: 1.7; text-align: justify; }

.service-learn-btn {
    display: inline-flex; align-items: center; padding: 6px 16px; border: 1px solid rgba(255, 255, 255, 0.4);
    color: rgba(255, 255, 255, 0.9); font-size: 12px; letter-spacing: 1px; text-transform: lowercase;
    margin-top: 30px; width: fit-content; transition: all 0.3s ease;
}
.service-learn-btn:hover { border-color: var(--gold-color); color: var(--gold-color); padding-right: 22px; }

.service-giant-num { position: absolute; bottom: -20px; left: 20px; font-size: 130px; font-weight: 900; color: rgba(255, 255, 255, 0.03); line-height: 1; pointer-events: none; user-select: none; }

.service-panel-sub {
    width: 21.66%; position: relative; display: flex; flex-direction: column; justify-content: center; align-items: center;
    padding: 40px 20px; text-align: center; border-right: 1px solid rgba(255, 255, 255, 0.1); overflow: hidden;
    background-size: cover; background-position: center; background-repeat: no-repeat; transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.panel-img-safety { background-image: url('https://images.unsplash.com/photo-1616423640778-28d1b53229bd?auto=format&fit=crop&w=600&q=80'); }
.panel-img-aftersales { background-image: url('https://images.unsplash.com/photo-1580674285054-bed31e145f59?auto=format&fit=crop&w=600&q=80'); }
.panel-img-support { background-image: url('https://images.unsplash.com/photo-1573164713988-8665fc963095?auto=format&fit=crop&w=600&q=80'); border-right: none; }

.service-panel-sub::before { content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%; transition: all 0.4s ease; z-index: 1; }
.panel-img-safety::before { background-color: rgba(0, 90, 54, 0.85); }
.panel-img-aftersales::before { background-color: rgba(0, 90, 54, 0.68); }
.panel-img-support::before { background-color: rgba(0, 90, 54, 0.48); }

.sub-panel-content { position: relative; z-index: 2; display: flex; flex-direction: column; align-items: center; gap: 20px; width: 100%; }
.sub-panel-content i { font-size: 34px; color: #ffffff; transition: all 0.3s ease; }
.sub-panel-content h4 { font-size: 15px; font-weight: 600; color: #ffffff; letter-spacing: 1px; text-transform: uppercase; line-height: 1.4; transition: all 0.3s ease; padding: 0 10px; }

.service-panel-sub:hover::before { background-color: rgba(0, 45, 27, 0.25) !important; }
.service-panel-sub:hover .sub-panel-content i { transform: scale(1.15); color: var(--gold-color); }
.service-panel-sub:hover .sub-panel-content h4 { color: var(--gold-color); }

/* ==========================================================================
   5. WHY CHOOSE 核心优势
   ========================================================================== */
.why-choose-section {
    padding: 80px 0; position: relative;
    background: linear-gradient(135deg, rgba(10, 14, 22, 0.95) 30%, rgba(20, 28, 42, 0.85) 100%), 
                url('https://images.unsplash.com/photo-1587293852726-70cdb56c2866?auto=format&fit=crop&w=1920&q=80') center/cover no-repeat;
    color: white; border-top: 1px solid rgba(255, 255, 255, 0.05); border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.why-choose-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 60px; align-items: center; }
.why-card-matrix { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }

.why-card { background: rgba(255, 255, 255, 0.03); border: 1px solid rgba(255, 255, 255, 0.08); padding: 30px 25px; border-radius: 6px; transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1); position: relative; overflow: hidden; }
.why-card::before { content: ''; position: absolute; top: 0; left: 0; width: 4px; height: 100%; background: var(--primary-color); transition: all 0.3s; }
.why-card:nth-child(even)::before { background: var(--gold-color); }
.why-card:hover { transform: translateY(-5px); background: rgba(255, 255, 255, 0.06); border-color: rgba(210, 166, 56, 0.3); box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3); }
.why-card i { font-size: 28px; margin-bottom: 15px; display: inline-block; }
.why-card h4 { font-size: 16px; font-weight: 600; margin-bottom: 8px; letter-spacing: 0.5px; }
.why-card p { font-size: 13px; opacity: 0.6; line-height: 1.5; }

/* 表单输入框组 */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-input-group { width: 100%; }
.form-input-group input, .form-input-group textarea {
    width: 100%; padding: 12px 15px; border: 1px solid var(--border-color); background-color: #ffffff;
    color: var(--text-dark); font-size: 14px; border-radius: 4px; outline: none; transition: all 0.3s ease;
}
.form-input-group input:focus, .form-input-group textarea:focus { border-color: var(--primary-color); box-shadow: 0 0 6px rgba(0, 90, 54, 0.12); }
.form-full-width { grid-column: span 2; }

/* ==========================================================================
   6. 企业多列高端页脚
   ========================================================================== */
.corporate-footer { background-color: #17191e; color: #9da3af; padding: 70px 0 25px 0; font-size: 14px; border-top: 1px solid rgba(255, 255, 255, 0.05); }
.footer-grid { display: grid; grid-template-columns: 1.3fr repeat(5, 1fr); gap: 30px; padding-bottom: 50px; border-bottom: 1px solid rgba(255, 255, 255, 0.06); }
.footer-contact-info { display: flex; flex-direction: column; gap: 16px; }
.footer-logo { font-size: 20px; color: #ffffff; letter-spacing: 1px; line-height: 1.1; }
.footer-company-name { font-size: 13px; color: #ffffff; opacity: 0.8; margin-top: 4px; }
.footer-contact-item { display: flex; align-items: flex-start; gap: 10px; line-height: 1.4; }
.footer-contact-item i { color: var(--accent-color); margin-top: 4px; font-size: 14px; }
.footer-column-title { color: #ffffff; font-size: 16px; font-weight: 600; margin-bottom: 25px; position: relative; }
.footer-column-title::after { content: ''; position: absolute; left: 0; bottom: -8px; width: 25px; height: 2px; background-color: var(--gold-color); }
.footer-links-list { display: flex; flex-direction: column; gap: 12px; margin-top: 10px; }
.footer-links-list li a { color: #9da3af; transition: all 0.3s ease; display: inline-block; }
.footer-links-list li a:hover { color: #ffffff; transform: translateX(3px); }
.footer-bottom { padding-top: 25px; display: flex; justify-content: space-between; align-items: center; font-size: 13px; color: #6c727f; }
.footer-social-medias { display: flex; gap: 12px; }
.social-circle-btn { width: 34px; height: 34px; background: rgba(255, 255, 255, 0.05); color: #ffffff; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 14px; transition: all 0.3s ease; }
.social-circle-btn:hover { background: var(--accent-color); transform: translateY(-2px); }

/* ==========================================================================
   7. 📱 移动端与不同分辨率自适应适配
   ========================================================================== */
@media (max-width: 1200px) { .footer-grid { grid-template-columns: repeat(3, 1fr); gap: 40px; } }

/* 临界点控制：低于 1150px 时切换为移动端菜单，确保 PC 端 100% 保持单行显示 */
@media (max-width: 1150px) {
    .top-info-bar { display: none; }
    header { background: #ffffff; border-bottom: 1px solid var(--border-color); box-shadow: 0 2px 10px rgba(0,0,0,0.05); }
    .logo { color: var(--primary-color); }
    .mobile-menu-toggle { display: block; color: var(--primary-color); }
    .nav-menu, .nav-tools-wrapper { display: none; }
    
    .product-grid { grid-template-columns: repeat(2, 1fr); gap: 20px; }
    .why-choose-grid { grid-template-columns: 1fr; gap: 40px; }

    .service-container-fluid { flex-direction: column; min-height: auto; }
    .service-panel-main { width: 100%; padding: 45px 30px; border-right: none; border-bottom: 1px solid rgba(255, 255, 255, 0.1); }
    .service-panel-sub { width: 100%; height: 160px; border-right: none; border-bottom: 1px solid rgba(255, 255, 255, 0.1); padding: 0; }
}

@media (max-width: 768px) {
    .section-title { font-size: 24px; }
    .slide-title { font-size: 32px !important; line-height: 1.3 !important; }
    .hero-slider-section { height: 100vh; min-height: 400px; }
    .product-grid { grid-template-columns: 1fr; }
    .tabs-container { display: grid; grid-template-columns: 1fr 1fr; gap: 5px; }
    .btn-product-tab { padding: 10px 5px; font-size: 13px; }
    
    .why-card-matrix { grid-template-columns: 1fr; }
    .form-grid { grid-template-columns: 1fr !important; gap: 15px; }
    .form-full-width { grid-column: span 1 !important; }
    
    .footer-grid { grid-template-columns: 1fr; gap: 35px; }
    .footer-bottom { flex-direction: column; gap: 20px; text-align: center; }
    .floating-toolbar .floating-item:not(:last-child) { display: none; }
}