﻿/*
Theme Name: Milestrong
Theme URI: https://milestrong.com
Author: Milestrong Team
Author URI: https://milestrong.com
Description: A professional WordPress theme for international trade websites. Features advanced theme options panel, multilingual support (EN/CN), responsive design, and optimized performance. Built with WordPress coding standards and security best practices.
Version: 2.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: milestrong
Domain Path: /languages
Tags: business, e-commerce, portfolio, one-column, two-columns, custom-colors, custom-menu, custom-logo, editor-style, featured-images, footer-widgets, full-width-template, rtl-language-support, sticky-post, theme-options, threaded-comments, translation-ready, block-styles
Requires at least: 5.0
Tested up to: 6.4
Requires PHP: 7.4
*/

/**
 * Table of Contents
 * 
 * 1.0 - Reset & Normalize
 * 2.0 - Typography
 * 3.0 - Layout
 * 4.0 - Components
 * 5.0 - Utilities
 * 6.0 - Responsive
 */

/* 1.0 - Reset & Normalize */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    -webkit-text-size-adjust: 100%;
    -ms-text-size-adjust: 100%;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
    font-size: 1rem;
    line-height: 1.6;
    color: #ffffff;
    background-color: #000116;
}

/* 2.0 - Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 1rem;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.75rem; }
h4 { font-size: 1.5rem; }
h5 { font-size: 1.25rem; }
h6 { font-size: 1rem; }

p {
    margin-bottom: 1rem;
}

a {
    color: #0073aa;
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: #005177;
}

/* 3.0 - Layout */
.container {
    max-width: 1440px;
    margin: 0 auto;
    padding: 0;
}

/* ========================================
   全局 Hero/Banner 区块修复
   解决 .container { max-width: 1440px } 导致的图片无法铺满全屏问题
   受影响页面：Support, Dome, News, Blog, Immersive, MS-Series, Cases, Markets, Products, Videos, Project-Overview, Contact, About-Us 等
   ======================================== */

/* Hero/Banner 区块本身铺满全屏 */
/*.support-hero,
.dome-hero,
.imm-hero,
.ms-hero,
.cases-hero-banner,
.banner-section,
.hero-section,
.page-hero,
.single-hero,
.news-hero,
.blog-hero,
.markets-hero,
.products-hero,
.videos-hero,
.project-hero,
.contact-hero,
.page-header,
.single-banner,
.archive-hero,
.category-hero,
.milestrong-page-header,
.markets-mobile-header,
.markets-top-visual {
    width: 100vw;
    max-width: 100%;
    background-size: cover !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
    overflow: hidden;
    position: relative;
} */
/* ========================================
   全局 Hero/Banner 区块修复2.0
   解决 .container { max-width: 1440px } 导致的图片无法铺满全屏问题
   受影响页面：Support, Dome, News, Blog, Immersive, MS-Series, Cases, Markets, Products, Videos, Project-Overview, Contact, About-Us 等
   ======================================== */

/* Hero/Banner 区块本身铺满全屏 */
.support-hero,
.dome-hero,
.imm-hero,
.ms-hero,
.cases-hero-banner,
.banner-section,
.hero-section,
.page-hero,
.single-hero,
.news-hero,
.blog-hero,
.markets-hero,
.products-hero,
.videos-hero,
.project-hero,
.contact-hero,
.page-header,
.single-banner,
.archive-hero,
.category-hero,
.milestrong-page-header,
.markets-mobile-header,
.markets-top-visual {
    position: relative;
    width: 100vw !important;;
    max-width: 100% !important;;
    margin: 0 !important;;
    padding: 0 !important;;
    overflow: visible !important;;
    aspect-ratio: 16 / 9 !important;;
    background-size: 100% 100% !important;;
    background-position: center !important;;
    background-repeat: no-repeat !important;;
    height: 800px !important;;
}
/* Hero/Banner 区块内的 container 不限制宽度 */
.support-hero .container,
.dome-hero .container,
.hero-section .container,
.banner-section .container,
.page-hero .container,
.single-hero .container,
.news-hero .container,
.blog-hero .container,
.cases-hero-banner .container,
.markets-hero .container,
.products-hero .container,
.videos-hero .container,
.project-hero .container,
.imm-hero .container,
.ms-hero .container,
.contact-hero .container,
.page-header .container,
.single-banner .container,
.archive-hero .container,
.category-hero .container,
.milestrong-page-header .container {
    max-width: 100% !important;
    width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
    box-sizing: border-box !important;
}

/* ========================================
   首页 Banner Slider 修复
   ======================================== */
.banner-section {
    height: 100vh;
    min-height: 600px;
}

.banner-slider {
    width: 100%;
    height: 100%;
}

.banner-slide,
.banner-slide-img {
    width: 100%;
    height: 100%;
}

.banner-placeholder {
    display: none;
}

/* ========================================
   Immersive 页面 Hero 修复
   ======================================== */
.imm-hero {
    height: 800px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.imm-hero__bg-layer {
    position: absolute;
    inset: 0;
    background-size: cover !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
    z-index: 0;
}

/* ========================================
   MS-Series 页面 Hero 修复
   ======================================== */
.ms-hero {
    height: 800px;
}

.ms-hero__bg-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    z-index: 0;
}

/* ========================================
   Dome 页面 Hero 修复
   ======================================== */
.dome-hero {
    height: 800px;
    display: flex;
    align-items: flex-end;
    justify-content: center;
}

/* ========================================
   Support 页面 Hero 修复
   ======================================== */
.support-hero {
    height: 603px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ========================================
   Cases 页面 Hero Banner 修复
   ======================================== */
.cases-hero-banner {
    min-height: 400px;
}

.cases-hero-banner-image {
    width: 100%;
    height: 100%;
    min-height: 400px;
    display: block;
    object-fit: cover;
}

/* ========================================
   Markets 页面 Hero 修复
   ======================================== */
.markets-top-visual {
    height: 100vh;
    min-height: 600px;
}

.markets-mobile-header {
    min-height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ========================================
   统一页面头部 修复
   ======================================== */
.milestrong-page-header {
    height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.milestrong-page-header-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
}

.milestrong-page-header-content {
    position: relative;
    z-index: 2;
    text-align: center;
}

.milestrong-page-title {
    font-size: 48px;
    font-weight: 700;
    color: #ffffff;
    margin: 0 0 16px;
}

.milestrong-page-subtitle {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.9);
    margin: 0;
}

/* ========================================
   News/Blog 单页头部修复
   ======================================== */
.single-news-template .support-hero,
.single-blog-template .support-hero,
.single-videos-template .support-hero,
.single-project-overview-template .support-hero {
    height: 603px;
}

/* ========================================
   About Us 页面 Hero 修复
   ======================================== */
.about-hero,
.about-us-hero {
    width: 100vw;
    max-width: 100%;
    margin-left: calc(-50vw + 50%);
    margin-right: calc(-50vw + 50%);
    background-size: cover !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
}

/* ========================================
   Contact Us 页面 Hero 修复
   ======================================== */
.contact-hero,
.contact-us-hero {
    width: 100vw;
    max-width: 100%;
    margin-left: calc(-50vw + 50%);
    margin-right: calc(-50vw + 50%);
    background-size: cover !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
}

.site-header {
    background: #fff;
    border-bottom: 1px solid #eee;
    padding: 1rem 0;
}

.site-footer {
    background: #f8f9fa;
    padding: 2rem 0;
    margin-top: 3rem;
    border-top: 1px solid #eee;
}

/* 4.0 - Components */
.button, .btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    background: #0073aa;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.3s ease;
}

.button:hover, .btn:hover {
    background: #005177;
    color: #fff;
}

/* 5.0 - Utilities */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }

/* 6.0 - Responsive */
@media (max-width: 768px) {
    html { font-size: 14px; }
    h1 { font-size: 2rem; }
    h2 { font-size: 1.75rem; }
    h3 { font-size: 1.5rem; }
}

/* ========================================
   全局内容宽度统一 - PC端绝对居中1440px
   布局原则：
   - Hero/首区块：全屏背景 + 内容1440px居中
   - 其他区块：内容1440px居中，无额外边距
   ======================================== */

/* 页眉内容宽度 - 与1440px对齐 */
.site-header .container,
.site-header .header-inner,
#masthead .container {
    max-width: 1440px !important;
    margin: 0 auto !important;
    box-sizing: border-box !important;
}

/* 页脚内容宽度 - 与1440px对齐 */
.milestrong-footer-container,
#colophon .milestrong-footer-container {
    max-width: 1440px !important;
    margin: 0 auto !important;
    box-sizing: border-box !important;
}

/* ========================================
   排除Hero区块后的所有容器统一1440px居中
   ======================================== */

/* Support页面 */
.support-tabs-section .container,
.support-service-cards,
.support-faq-section,
.support-faq-container,
.support-download-section .container,
.support-video-section .container,

/* Products页面 */
.products-led-container,
.products-description-container,
.products-filter-container,
.products-led-section .products-led-container,
.products-description-section .products-description-container,
.products-filter-section .products-filter-container,

/* MS-Series页面 */
.ms-container,
.ms-section .ms-container,

/* Dome页面 */
.dome-section .container,
.dome-scenario-section .container,
.dome-video-section .container,
.dome-content-section .container,

/* Immersive页面 */
.imm-container,
.imm-section .container,
.imm-scenario-section .container,
.imm-video-section .container,
.imm-content-section .container,

/* News页面 */
.news-container,
.news-section .container,
.news-list-section .container,

/* Blog页面 */
.blog-container,
.blog-section .container,
.blog-list-section .container,

/* Cases页面 */
.cases-container,
.cases-section .container,
.cases-list-section .container,

/* Markets页面 */
.markets-container,
.markets-section .container,
.markets-contact-section .container,

/* Videos页面 */
.videos-container,
.videos-section .container,

/* Project Overview页面 */
.project-overview-container,
.project-overview-section .container,

/* About Us页面 */
.about-section .container,
.about-content-section .container,

/* Contact Us页面 */
.contact-section .container,
.contact-content-section .container,

/* 通用容器 */
.page-content-container,
.milestrong-page-header-content {
    max-width: 1440px !important;
    margin: 0 auto !important;
    box-sizing: border-box !important;
    width: 100% !important;
}

/* ========================================
   全局.container覆盖（排除Hero区块内）
   ======================================== */
.container:not(.support-hero .container):not(.dome-hero .container):not(.imm-hero .container):not(.ms-hero .container):not(.banner-section .container):not(.hero-section .container):not(.page-hero .container):not(.single-hero .container):not(.news-hero .container):not(.blog-hero .container):not(.cases-hero-banner .container):not(.markets-hero .container):not(.products-hero .container):not(.videos-hero .container):not(.project-hero .container):not(.contact-hero .container):not(.page-header .container):not(.single-banner .container):not(.archive-hero .container):not(.category-hero .container):not(.milestrong-page-header .container):not(.about-hero .container):not(.about-us-hero .container):not(.contact-us-hero .container) {
    max-width: 1440px !important;
    margin: 0 auto !important;
}


/* ============================================
   相关区块统一样式 - Related  Styles
   统一使用 NEWS 样式控制：blog / videos / project
   ============================================ */

/* 统一外层容器 */
.news-related-section,
.blog-single-related-section,
.videos-related-section,
.project-related-section {
    padding: 80px 0;
    position: relative;
    overflow: hidden; /* 防止按钮撑宽页面 */
}

/* 统一内层包裹器 */
.related-news-wrapper,
.related-blog-wrapper,
.related-videos-wrapper,
.related-projects-wrapper {
    max-width: 1440px;
    margin: 0 auto;
    position: relative;
}

/* 统一容器定位 */
.news-related-section .container,
.blog-single-related-section .container,
.videos-related-section .container,
.project-related-section .container {
    position: relative;
}

/* 统一标题样式 */
.related-news-title,
.related-blog-title,
.related-videos-title,
.related-project-title {
    font-size: 36px;
    font-weight: 700;
    color: #ffffff;
    text-align: center;
    margin: 0 0 60px 0;
}

/* 统一网格布局 */
.related-news-grid,
.related-blog-grid,
.related-videos-grid,
.related-project-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-bottom: 40px;
}

/* ============================================
   统一卡片样式（覆盖 news / blog / videos / project）
   ============================================ */
.related-news-item,
.related-blog-item,
.related-videos-item,
.related-project-item {
    background: #181822;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    position: relative;
    margin: 15px;
}

/* 统一卡片 hover 效果 */
.related-news-item:hover,
.related-blog-item:hover,
.related-videos-item:hover,
.related-project-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
    background-color: var(--hover-bg-color, #ffffff) !important;
}

/* 统一卡片遮罩层 */
.related-news-item::before,
.related-blog-item::before,
.related-videos-item::before,
.related-project-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: transparent;
    transition: background-color 0.3s ease;
    pointer-events: none;
    z-index: 1;
}

/* 统一遮罩 hover */
.related-news-item:hover::before,
.related-blog-item:hover::before,
.related-videos-item:hover::before,
.related-project-item:hover::before {
    background-color: var(--hover-bg-color, #ffffff);
}

/* ============================================
   统一图片区域样式
   ============================================ */
.news-item-image,
.blog-item-image,
.videos-item-image,
.project-item-image {
    width: calc(100% - 30px);
    height: 200px;
    overflow: hidden;
    position: relative;
    margin: 15px;
    border-radius: 12px;
    z-index: 2;
}

.news-item-image img,
.blog-item-image img,
.videos-item-image img,
.project-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
    border-radius: 12px;
}

/* 统一图片 hover 缩放 */
.related-news-item:hover .news-item-image img,
.related-blog-item:hover .blog-item-image img,
.related-videos-item:hover .videos-item-image img,
.related-project-item:hover .project-item-image img {
    transform: scale(1.05);
}

/* ============================================
   统一内容区域样式
   ============================================ */
.news-item-content,
.blog-item-content,
.videos-item-content,
.project-item-content {
    padding: 20px 25px 25px 25px;
    transition: all 0.3s ease;
    background-color: transparent;
    position: relative;
    z-index: 2;
}

/* 统一内容 hover 文字变色 */
.related-news-item:hover .news-item-content,
.related-blog-item:hover .blog-item-content,
.related-videos-item:hover .videos-item-content,
.related-project-item:hover .project-item-content {
    color: #000;
}

/* ============================================
   统一标题样式
   ============================================ */
.news-item-title,
.blog-item-title,
.videos-item-title,
.project-item-title {
    font-size: 18px;
    font-weight: 600;
    margin: 0 0 15px 0;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    min-height: 2.8em;
    max-height: 2.8em;
    word-wrap: break-word;
    word-break: break-word;
    color: #fff;
}

.news-item-title a,
.blog-item-title a,
.videos-item-title a,
.project-item-title a {
    color: #fff;
    text-decoration: none;
    transition: color 0.3s ease;
}

/* 统一标题 hover 变色 */
.related-news-item:hover .news-item-title a,
.related-blog-item:hover .blog-item-title a,
.related-videos-item:hover .videos-item-title a,
.related-project-item:hover .project-item-title a {
    color: #000 !important;
}

/* ============================================
   统一底部信息样式
   ============================================ */
.news-item-footer,
.blog-item-footer,
.videos-item-footer,
.project-item-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 20px;
}

.news-item-date,
.blog-item-date,
.videos-item-date,
.project-item-date {
    font-size: 14px;
    color: #fff;
    margin: 0;
    flex: 1;
    transition: color 0.3s ease;
}

/* 统一日期 hover 变色 */
.related-news-item:hover .news-item-date,
.related-blog-item:hover .blog-item-date,
.related-videos-item:hover .videos-item-date,
.related-project-item:hover .project-item-date {
    color: #000 !important;
}

/* ============================================
   统一按钮样式
   ============================================ */
.news-item-button,
.blog-item-button,
.videos-item-button,
.project-item-button {
    display: inline-block;
    padding: 10px 20px;
    color: #fff;
    text-decoration: none;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
    margin-left: 15px;
}

.news-item-button:hover,
.blog-item-button:hover,
.videos-item-button:hover,
.project-item-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(1, 127, 255, 0.3);
    color: #fff;
}

/* ============================================
   统一导航按钮样式
   ============================================ */
.related-news-navigation,
.related-blog-navigation,
.related-videos-navigation,
.related-project-navigation {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 100%;
    pointer-events: none;
}

/* ========================================
   响应式调整
   ======================================== */
@media screen and (max-width: 1440px) {
    .container,
    .ms-container,
    .site-header .container,
    .milestrong-footer-container,
    .support-tabs-section .container,
    .support-service-cards,
    .support-faq-section,
    .products-led-container,
    .products-description-container,
    .products-filter-container,
    .news-container,
    .blog-container,
    .cases-container,
    .markets-container,
    .dome-container,
    .imm-container,
    .videos-container,
    .project-overview-container {
        padding: 0 20px !important;
    }
}

@media screen and (max-width: 768px) {
    .container,
    .ms-container,
    .site-header .container,
    .milestrong-footer-container,
    .support-tabs-section .container,
    .support-service-cards,
    .support-faq-section,
    .products-led-container,
    .products-description-container,
    .products-filter-container,
    .news-container,
    .blog-container,
    .cases-container,
    .markets-container,
    .dome-container,
    .imm-container,
    .videos-container,
    .project-overview-container {
        padding: 0 15px !important;
    }
}

/* ========================================
   强制覆盖各页面CSS中的容器padding
   PC端(>1440px)清除左右padding确保1440px居中
   ======================================== */
@media screen and (min-width: 1441px) {
    /* Support页面容器 */
    .support-hero .container,
    .support-tabs-section .container,
    .support-service-cards,
    .support-faq-section,
    .support-faq-container,
    .support-download-section .container,
    .support-video-section .container,
    .support-download-container,
    .support-video-container,
    
    /* Products页面容器 */
    .products-led-container,
    .products-description-container,
    .products-filter-container,
    .products-led-section .container,
    .products-description-section .container,
    .products-filter-section .container,
    
    /* MS-Series页面容器 */
    .ms-container,
    .ms-section .ms-container,
    .ms-scenario-section .ms-container,
    .ms-video-section .ms-container,
    
    /* Dome页面容器 */
    .dome-section .container,
    .dome-scenario-section .container,
    .dome-video-section .container,
    .dome-content-section .container,
    .dome-scenario-container,
    .dome-video-container,
    
    /* Immersive页面容器 */
    .imm-container,
    .imm-section .container,
    .imm-scenario-section .container,
    .imm-video-section .container,
    .imm-content-section .container,
    .imm-scenario-container,
    .imm-video-container,
    
    /* News页面容器 */
    .news-container,
    .news-section .container,
    .news-list-section .container,
    .news-content-container,
    
    /* Blog页面容器 */
    .blog-container,
    .blog-section .container,
    .blog-list-section .container,
    .blog-content-container,
    
    /* Cases页面容器 */
    .cases-container,
    .cases-section .container,
    .cases-list-section .container,
    .cases-content-container,
    
    /* Markets页面容器 */
    .markets-container,
    .markets-section .container,
    .markets-contact-section .container,
    .markets-content-container,
    
    /* Videos页面容器 */
    .videos-container,
    .videos-section .container,
    .videos-content-container,
    
    /* Project Overview页面容器 */
    .project-overview-container,
    .project-overview-section .container,
    
    /* About Us页面容器 */
    .about-section .container,
    .about-content-section .container,
    
    /* Contact Us页面容器 */
    .contact-section .container,
    .contact-content-section .container,
    
    /* 单页模板容器 */
    .single-content-container,
    .single-news-container,
    .single-blog-container,
    .single-videos-container,
    .single-project-overview-container,
    
    /* 通用容器 */
    .page-content-container,
    .content-wrapper,
    .entry-content,
    .main-content {
        padding-left: 0 !important;
        padding-right: 0 !important;
    }
}
