/* 全局基础样式 - 所有页面共用 */

/* 全局样式重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-red: #c00404;
    --text-dark: #333333;
    --text-gray: #666666;
    --text-light: #999999;
    --bg-light: #f5f5f5;
    --border-color: #e0e0e0;
}

body {
    font-family: "Microsoft YaHei", "Helvetica Neue", Helvetica, Arial, sans-serif;
    font-size: 14px;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: #fff;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--primary-red);
}

ul {
    list-style: none;
}

/* 顶部工具栏 */
.top-bar {
    background-color: rgba(220, 220, 220, 1);
    font-size: 14px;
    height: 44px;
    line-height: 44px;
    padding: 0;
}

.top-bar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
    width: 100%;
}

.welcome-text {
    color: var(--text-dark);
}

.top-nav {
    display: flex;
    align-items: center;
    gap: 10px;
}

.top-nav a {
    color: var(--text-dark);
    padding: 0 4px;
}

.top-nav .divider {
    color: var(--text-light);
}

/* 主导航栏 */
.main-nav {
    background-color: #fff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08);
    height: 100px;
}

.main-nav .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    height: 100%;
}

.logo {
    display: flex;
    align-items: center;
}

.logo-img {
    height: 80px;
    width: auto;
}

/* 导航菜单 */
.nav-menu {
    display: flex;
    align-items: stretch;
    gap: 0;
    height: 100%;
}

.nav-menu > li {
    position: relative;
    height: 100%;
    display: flex;
    align-items: stretch;
}

.nav-menu > li > a {
    padding: 0 24px;
    font-size: 16px;
    color: var(--text-dark);
    transition: all 0.3s ease;
    cursor: pointer;
    display: flex;
    align-items: center;
    height: 100%;
}

.nav-menu > li > a:hover {
    color: var(--primary-red);
}

.nav-menu > li.active {
    background-color: var(--primary-red);
}

.nav-menu > li.active > a {
    color: #fff;
}

.nav-menu .arrow {
    font-size: 12px;
    margin-left: 4px;
    line-height: 1;
    transition: transform 0.3s ease;
}

.nav-menu > li:hover .arrow {
    transform: rotate(180deg);
}

/* 下拉菜单 */
.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background-color: #fff;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
    width: max-content;
    min-width: 224px;
    white-space: nowrap;
    border-bottom: 2px #b02923 solid;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 999;
}

.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu li a {
    display: block;
    padding: 12px 20px;
    color: var(--text-dark);
    font-size: 14px;
    border-bottom: 1px solid #f0f0f0;
    transition: all 0.2s ease;
}

.dropdown-menu li a:last-child {
    border-bottom: none;
}

.dropdown-menu li a:hover {
    background-color: #f8f8f8;
    color: var(--primary-red);
    padding-left: 25px;
}

/* 子导航区域 */
.sub-nav-section {
    background-color: #eff1f5;
    padding: 10px 0;
}

.sub-nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
    min-height: 54px;
}

.sub-nav-menu {
    display: flex;
    gap: 15px;
    min-height: 54px;
    align-items: center;
}

.sub-nav-menu a {
    display: inline-block;
    padding: 10px 40px;
    background-color: #c00404;
    color: #fff;
    text-decoration: none;
    font-size: 16px;
    border-radius: 2px;
    transition: background-color 0.3s ease;
}

.sub-nav-menu a:hover,
.sub-nav-menu a.active {
    background-color: #000;
}

/* 面包屑导航 */
.breadcrumb {
    font-size: 14px;
    color: #6c757d;
    display: flex;
    align-items: center;
    gap: 5px;
}

.breadcrumb span {
    color: #212529;
}

.breadcrumb-icon {
    width: 16px;
    height: 16px;
    vertical-align: middle;
}

.breadcrumb a {
    color: #6c757d;
    text-decoration: none;
    transition: color 0.3s ease;
}

.breadcrumb a:hover {
    color: #c00404;
}

/* 页面内容区域 */
.page-content {
    padding-top: 40px;
    min-height: 400px;
    background-color: #ffffff;
}

.page-content .container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

.page-title {
    font-size: 32px;
    color: #212529;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #e0e0e0;
}

.intro-text-content {
    margin-bottom: 40px;
}

.intro-text-content p {
    font-size: 14px;
    color: #6c757d;
    line-height: 2;
    margin-bottom: 10px;
    text-align: justify;
}

.bottom-image {
    margin-top: 40px;
}

.bottom-image img {
    max-width: 100%;
}

/* 公司大门图片 */
.page-banner {
    width: 100%;
    min-height: 290px;
}

.page-banner img {
    width: 100%;
    height: auto;
    display: block;
}

/* 页脚模块 */
.site-footer {
    background-color: #1a1a1a;
    color: #999;
    padding: 60px 0 0;
}

.site-footer .container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    gap: 60px;
    padding-bottom: 40px;
}

.footer-links {
    display: flex;
    gap: 90px;
    flex: 1;
}

.footer-column h4 {
    font-size: 16px;
    color: #fff;
    margin-bottom: 20px;
    font-weight: normal;
}

.footer-column ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-column ul li {
    margin-bottom: 8px;
}

.footer-column ul li a {
    color: rgba(255, 255, 255, 0.4);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s ease;
    white-space: nowrap;
}

.footer-column ul li a:hover {
    color: rgba(195, 11, 0, 1);
}

.footer-contact {
    display: flex;
    gap: 40px;
    min-width: 400px;
}

.contact-info h3 {
    font-size: 20px;
    color: #fff;
    margin-bottom: 25px;
    font-weight: normal;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
    font-size: 14px;
    color: #ffffff99;
}

.contact-icon {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    stroke: #999;
}

.social-links {
    display: flex;
    gap: 10px;
    margin-top: 25px;
}

.social-icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease;
}

.social-icon:hover {
    transform: scale(1.1);
}

.social-icon svg {
    width: 20px;
    height: 20px;
}

.social-icon.weibo {
    background-color: #e6162d;
}

.social-icon.wechat {
    background-color: #07c160;
}

.social-icon.qq {
    background-color: #12b7f5;
}

.social-icon.qzone {
    background-color: #fece00;
}

.social-icon.link {
    background-color: #00a8ff;
}

.qr-code {
    text-align: center;
}

.qr-code img {
    width: 120px;
    height: 120px;
    display: block;
    margin-bottom: 10px;
}

.qr-code p {
    font-size: 13px;
    color: #fff;
}

.footer-bottom {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px 0;
    font-size: 14px;
    background-color: rgba(9, 9, 9, 1);
    width: 100%;
}

.footer-bottom .container {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    gap: 30px;
}

.footer-bottom .copyright p {
    margin: 0;
    color: rgba(255, 255, 255, 0.64);
    white-space: normal;
    word-wrap: break-word;
    line-height: 1.5;
}

.footer-links-bottom {
    display: flex;
    gap: 20px;
    white-space: normal;
}

.footer-links-bottom a {
    color: rgba(255, 255, 255, 0.64);
    text-decoration: none;
}

.footer-links-bottom a:hover {
    color: #fff;
}

/* 响应式设计 */
@media (max-width: 992px) {
    .footer-content {
        flex-direction: column;
        gap: 40px;
    }
    
    .footer-links {
        flex-wrap: wrap;
        gap: 30px;
    }
    
    .footer-contact {
        min-width: auto;
        width: 100%;
    }
}

@media (max-width: 768px) {
    .site-footer {
        padding: 40px 0 0;
    }
    
    .footer-links {
        display: none;
    }
    
    .footer-content {
        flex-direction: column;
        gap: 20px;
        width: 100%;
    }
    
    .footer-contact {
        display: flex;
        flex-direction: column;
        gap: 15px;
        align-items: flex-start;
        width: 100%;
    }
    
    .contact-info h3 {
        font-size: 20px;
        margin-bottom: 15px;
    }
    
    .contact-item {
        font-size: 14px;
    }
    
    .contact-info {
        flex: 1;
        min-width: 0;
    }
    
    .qr-code {
        display: none;
    }
    
    .footer-bottom {
        font-size: 14px;
    }
    
    .footer-bottom .container {
        padding: 0 15px;
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
    
    .footer-links-bottom {
        flex-direction: row;
        gap: 15px;
        justify-content: center;
    }
}

/* 移动端菜单按钮 */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    z-index: 1001;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background-color: var(--text-dark);
    border-radius: 2px;
    transition: all 0.3s ease;
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* 响应式设计 - 平板设备 */
@media (max-width: 992px) {
    .nav-menu > li > a {
        padding: 20px 16px;
        font-size: 14px;
    }
    
    .logo-text h1 {
        font-size: 20px;
    }
    
    .logo-text p {
        font-size: 14px;
    }
}

/* 响应式设计 - 移动设备 */
@media (max-width: 768px) {
    .page-banner {
        min-height: auto;
    }
    
    .mobile-menu-toggle {
        display: flex;
        position: absolute;
        right: 15px;
        top: 50%;
        transform: translateY(-50%);
    }
    
    .main-nav {
        height: 50px;
    }

    .top-bar {
        height: auto;
        line-height: normal;
        padding: 10px 0;
    }
    
    .top-bar .container {
        flex-direction: column;
        gap: 8px;
        text-align: center;
        padding: 0 15px;
    }
    
    .main-nav .container {
        position: relative;
        display: flex;
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        padding: 0 15px;
        height: 50px;
    }
    
    .logo {
        flex: 1;
        display: flex;
        align-items: center;
    }
    
    .logo-img {
        height: 40px;
    }
    
    /* 汉堡菜单按钮 */
    .mobile-menu-toggle {
        display: inline-flex;
        flex-direction: column;
        justify-content: space-between;
        align-items: center;
        width: 30px;
        height: 22px;
        background: transparent;
        border: none;
        cursor: pointer;
        padding: 0;
        z-index: 1001;
        flex-shrink: 0;
    }
    
    .mobile-menu-toggle span {
        display: block;
        width: 100%;
        height: 3px;
        background-color: #333;
         transition: all 0.3s ease;
        border-radius: 2px;
    }
    
    .mobile-menu-toggle span:last-child {
        margin-bottom: 0;
    }
    
    .mobile-menu-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(6px, 6px);
    }
    
    .mobile-menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }
    
    .mobile-menu-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(6px, -6px);
    }
    
    .nav-menu {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: #fff;
        flex-direction: column;
        width: 100%;
        height: auto !important;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.4s ease;
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
        z-index: 999;
        display: none;
    }
    
    .nav-menu.mobile-active {
        display: block;
        max-height: 2000px;
    }
    
    .nav-menu > li {
        width: 100%;
        border-bottom: 1px solid #f0f0f0;
        display: block !important;
        height: auto !important;
        position: relative;
    }
    
    .nav-menu > li > a {
        padding: 15px 20px;
        width: 100%;
        text-align: left;
        display: block;
        height: auto;
        align-items: normal;
    }
    
    .dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        border-top: none;
        border-left: 3px solid var(--primary-red);
        width: 100%;
        display: none;
        background-color: #fafafa;
    }
    
    .dropdown.active .dropdown-menu {
        display: block;
    }
    
    .dropdown-menu li a {
        padding: 12px 20px 12px 35px;
    }
}

/* 响应式设计 - 小屏移动设备 */
@media (max-width: 480px) {
    .top-nav {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .logo-img {
        height: 40px;
    }
    
    .nav-menu > li > a {
        padding: 12px 15px;
        font-size: 13px;
    }
}

/* 面包屑响应式设计 */
@media (max-width: 768px) {
    .sub-nav-content {
        flex-direction: column;
        gap: 15px;
    }
    
    .sub-nav-menu {
        display: flex;
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        width: 100%;
        gap: 10px;
        padding-bottom: 10px;
    }
    
    .sub-nav-menu a {
        flex-shrink: 0;
        padding: 10px 20px;
        font-size: 14px;
        white-space: nowrap;
    }
    
    .breadcrumb {
        justify-content: center;
        font-size: 14px;
    }
}

/* 全局侧边栏 */
.sidebar {
    position: fixed;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    z-index: 9999;
    display: flex;
    flex-direction: column;
}

.sidebar-item {
    width: 45px;
    height: 45px;
    background-color: #f3f3f3;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    position: relative;
    transition: all 0.3s ease;
    margin-bottom: 1px;
}

.sidebar-item:last-child {
    margin-bottom: 0;
}

.sidebar-item:hover {
    background-color: #f35454;
}

.sidebar-item:hover svg {
    stroke: #fff;
    fill: #fff;
}

.sidebar-item svg {
    width: 24px;
    height: 24px;
    stroke: #999;
    fill: #999;
    transition: all 0.3s ease;
}

.sidebar-popup {
    position: absolute;
    right: 100%;
    top: 50%;
    transform: translateY(-50%);
    background-color: #f35454;
    color: #fff;
    padding: 10px 20px;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    pointer-events: none;
    margin-right: 10px;
    border-radius: 4px;
    width: 210px;
}

.sidebar-popup::after {
    content: '';
    position: absolute;
    right: -8px;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    border-top: 8px solid transparent;
    border-bottom: 8px solid transparent;
    border-left: 8px solid #f35454;
}

.sidebar-item:hover .sidebar-popup {
    opacity: 1;
    visibility: visible;
}

.popup-content {
    font-size: 14px;
    line-height: 1.6;
    white-space: nowrap;
}

/* 包含p标签的客服信息，垂直排列 */
.popup-content:has(p) {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

/* 包含svg+span的电话/邮箱信息，水平排列 */
.popup-content:has(span) {
    display: flex;
    align-items: center;
    gap: 8px;
}

.popup-content p {
    margin: 0;
    white-space: nowrap;
}

.popup-content span {
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
}

.popup-content span svg,
.popup-content > svg {
    width: 16px;
    height: 16px;
    stroke: #fff;
    fill: #fff;
    flex-shrink: 0;
}

/* 移动端侧边栏适配 */
@media (max-width: 768px) {
    .sidebar {
        display: none;
    }
}

/* 居中对齐工具类 */
.page-content .center {
    display: block !important;
    margin-left: auto !important;
    margin-right: auto !important;
    text-align: center !important;
}

/* 图片宽度限制 */
.page-content img {
    max-width: 100% !important;
    height: auto !important;
}
