/* GJMS 智杰工業 - 主样式文件 */
/* 导入所有模块化的CSS文件 */

/* 基础样式和变量 */
@import url('base.css');

/* 组件样式 */
@import url('components.css');

/* 导航栏组件 */
@import url('navigation.css');

/* 首页样式 */
@import url('home.css');

/* 产品页面样式 */
@import url('products.css');

/* 产品网格优化样式 */
@import url('product-grid.css');

/* 产品详情页样式 */
@import url('product-detail.css');

/* 其他页面样式（公司介绍、FAQ、联系等） */
@import url('pages.css');

/* 全局样式覆盖和补充 */
body {
    background: #000 !important;
    color: #fff !important;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

/* 全局滚动条样式 */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #1a1a1a;
}

::-webkit-scrollbar-thumb {
    background: #ff0000;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #cc0000;
}

/* 全局选择文本样式 */
::selection {
    background: rgba(255, 0, 0, 0.3);
    color: #fff;
}

::-moz-selection {
    background: rgba(255, 0, 0, 0.3);
    color: #fff;
}

/* 全局焦点样式 */
*:focus {
    outline: 2px solid rgba(255, 0, 0, 0.5);
    outline-offset: 2px;
}

/* 过渡动画优化 */
* {
    box-sizing: border-box;
}

*,
*::before,
*::after {
    transition: inherit;
}

html {
    transition: all 0.3s ease;
}

/* 全局响应式图片 */
img {
    max-width: 100%;
    height: auto;
}

/* 打印样式 */
@media print {
    body {
        background: white !important;
        color: black !important;
    }
    
    .navbar,
    .site-footer,
    .admin-footer-link,
    .language-bar {
        display: none !important;
    }
    
    .main-container {
        padding-top: 0 !important;
    }
}

/* GJMS 智杰工業 - 主要样式文件 */

/* 工业暗黑主题样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Microsoft JhengHei", "微軟正黑體", Arial, sans-serif;
    background: #0a0a0a;
    color: #ffffff;
    overflow-x: hidden;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* 工业背景纹理 */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 20%, rgba(0, 150, 255, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(255, 100, 0, 0.05) 0%, transparent 50%),
        linear-gradient(45deg, #0a0a0a 25%, transparent 25%),
        linear-gradient(-45deg, #0a0a0a 25%, transparent 25%),
        linear-gradient(45deg, transparent 75%, #111111 75%),
        linear-gradient(-45deg, transparent 75%, #111111 75%);
    background-size: 60px 60px, 60px 60px, 30px 30px, 30px 30px, 30px 30px, 30px 30px;
    background-position: 0 0, 0 0, 0 0, 0 15px, 15px 15px, 15px 0px;
    opacity: 0.3;
    z-index: -1;
}

/* 导航栏样式 */
.navbar {
    background: rgba(0, 0, 0, 0.95) !important;
    backdrop-filter: blur(10px);
    border-bottom: 2px solid #ff0000;
    padding: 15px 0;
    top: 40px;
}

.navbar-brand {
    color: #ff0000 !important;
    font-size: 32px;
    font-weight: bold;
    text-shadow: 0 0 10px rgba(255, 0, 0, 0.5);
}

.navbar-nav .nav-link {
    color: #ffffff !important;
    font-size: 16px;
    padding: 8px 15px;
    margin: 0 5px;
    border-radius: 5px;
    transition: all 0.3s ease;
    white-space: nowrap;
    text-decoration: none;
}

.navbar-nav .nav-link:hover {
    background: rgba(255, 0, 0, 0.2);
    color: #ff6666 !important;
    transform: translateY(-2px);
}

/* 语言切换区域 */
.language-bar {
    background: rgba(255, 255, 255, 0.95);
    padding: 8px 0;
    text-align: right;
    font-size: 0.9rem;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1003;
}

.language-bar .container {
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

.language-switch {
    color: #333;
    text-decoration: none;
    font-weight: 500;
}

.language-switch:hover {
    color: #ff0000;
    text-decoration: none;
}

.language-separator {
    color: #666;
    margin: 0 8px;
}

.language-active {
    color: #ff0000;
    font-weight: bold;
} 