/* ========================================
   公共样式 - 斯堡特曼国际供应�?
   ======================================== */

/* CSS Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Microsoft YaHei', 'PingFang SC', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #fff;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease;
}

ul, ol {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ========================================
   Header 头部样式
   ======================================== */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(0, 0, 0, 0.15);
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.site-header:hover {
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.site-header.scrolled {
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    height: 80px;
    width: 95%;
    max-width: none;
    margin: 0 auto;
    position: relative;
}

/* Logo */
.logo {
    display: flex;
    align-items: center;
}

.logo img {
    height: 50px;
    width: auto;
}

.logo-text {
    display: none;
}

.site-header:hover .logo-text,
.site-header.scrolled .logo-text {
    display: none;
}

/* 主导航 */
.main-nav {
    position: absolute;
    left: calc(18.75% - 32px);
    display: flex;
    align-items: center;
}

.nav-list {
    display: flex;
    align-items: center;
    gap: 80px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.nav-list li a {
    font-size: 18px;
    color: #fff;
    font-weight: 500;
    font-family: 'Noto Sans SC', 'Source Han Sans CN', 'PingFang SC', 'Hiragino Sans GB', sans-serif;
    letter-spacing: 1px;
    position: relative;
    padding: 8px 0;
    transition: color 0.3s ease;
}

.site-header:hover .nav-list li a,
.site-header.scrolled .nav-list li a {
    color: #333;
}

.nav-list li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: #fff;
    transition: width 0.3s ease, background 0.3s ease;
}

.site-header:hover .nav-list li a::after,
.site-header.scrolled .nav-list li a::after {
    background: #2196F3;
}

.nav-list li a:hover {
    color: #66b3ff;
}

.site-header:hover .nav-list li a:hover,
.site-header.scrolled .nav-list li a:hover {
    color: #2196F3;
}

.nav-list li a:hover::after {
    width: 100%;
}

/* 头部右侧 */
.header-right {
    display: flex;
    align-items: center;
    gap: 20px;
    position: absolute;
    right: 0;
}

.btn-diagnosis {
    display: inline-block;
    padding: 12px 32px;
    background: transparent;
    color: #fff;
    border: 2px solid #fff;
    border-radius: 30px;
    font-size: 15px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.site-header:hover .btn-diagnosis,
.site-header.scrolled .btn-diagnosis {
    background: linear-gradient(135deg, #2196F3, #1976D2);
    color: #fff;
    border-color: transparent;
}

.btn-diagnosis:hover {
    background: linear-gradient(135deg, #1976D2, #003d7a);
    color: #fff;
    border-color: transparent;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 102, 204, 0.4);
}

.contact-link {
    display: inline-block;
    padding: 12px 32px;
    background: transparent;
    color: #fff;
    border: 2px solid rgba(255, 255, 255, 0.6);
    border-radius: 30px;
    font-size: 15px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.site-header:hover .contact-link,
.site-header.scrolled .contact-link {
    color: #2196F3;
    border-color: #2196F3;
}

.contact-link:hover,
.site-header:hover .contact-link:hover,
.site-header.scrolled .contact-link:hover {
    background: linear-gradient(135deg, #2196F3, #1976D2);
    color: #fff !important;
    border-color: transparent;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 102, 204, 0.4);
}

/* 移动端菜单按钮 - PC端隐藏 */
.mobile-menu-btn {
    display: none !important;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 5px;
}

.mobile-menu-btn span {
    width: 25px;
    height: 2px;
    background: #333;
    transition: all 0.3s ease;
}

/* ========================================
   Footer 底部样式
   ======================================== */
.site-footer {
    background: linear-gradient(135deg, #2c3e50 0%, #1a252f 100%);
    color: #fff;
    padding: 60px 0 0;
}

.footer-inner {
    width: 95%;
    max-width: none;
    margin: 0 auto;
    padding: 0;
}

.footer-top {
    display: flex;
    justify-content: space-between;
    padding-bottom: 40px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-nav-group {
    display: flex;
    gap: 60px;
    width: 60%;
    justify-content: space-between;
}

.footer-column {
    min-width: 0;
}

.footer-column h4 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 24px;
    color: #fff;
    position: relative;
    padding-bottom: 12px;
}

.footer-column h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 2px;
    background: #2196F3;
}

.footer-column ul {
    list-style: none;
}

.footer-column ul li {
    margin-bottom: 12px;
}

.footer-column ul li a {
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
    transition: all 0.3s ease;
    display: inline-block;
}

.footer-column ul li a:hover {
    color: #fff;
    transform: translateX(5px);
}

/* 联系我们 - 右对齐 */
.footer-contact {
    text-align: right;
    margin-left: auto;
}

.footer-contact h4::after {
    left: auto;
    right: 0;
}

.footer-contact .contact-list li {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
}

.footer-contact .contact-icon {
    order: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.7);
}

.footer-contact .contact-icon svg {
    width: 16px;
    height: 16px;
}

.footer-contact .contact-list li span:last-child {
    order: 1;
}

.footer-contact .footer-social {
    justify-content: flex-end;
    margin-top: 20px;
}

.footer-social {
    display: flex;
    gap: 12px;
}

.footer-social a {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    color: rgba(255, 255, 255, 0.8);
}

.footer-social a:hover {
    background: #2196F3;
    color: #fff;
    transform: translateY(-3px);
}

/* 社交媒体二维码弹出框 */
.footer-social a.social-qr-trigger {
    position: relative;
}

.footer-social .qr-popup {
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: #fff;
    border-radius: 12px;
    padding: 15px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1000;
    margin-bottom: 15px;
    text-align: center;
    min-width: 140px;
}

.footer-social .qr-popup::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 8px solid transparent;
    border-top-color: #fff;
}

.footer-social .qr-popup img {
    width: 110px;
    height: 110px;
    display: block;
    margin: 0 auto 10px;
    border-radius: 8px;
    background: #f5f5f5;
}

.footer-social .qr-popup span {
    display: block;
    font-size: 12px;
    color: #666;
    white-space: nowrap;
}

.footer-social a.social-qr-trigger:hover .qr-popup,
.footer-social a.social-qr-trigger.active .qr-popup {
    opacity: 1;
    visibility: visible;
}

/* 友情链接 */
.footer-links {
    display: flex;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 8px 20px;
    padding: 12px 0;
    margin-top: 15px;
}

.footer-links-title {
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
    font-weight: 500;
    margin-right: 5px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.5);
    font-size: 13px;
    transition: all 0.3s ease;
    position: relative;
}

.footer-links a:hover {
    color: #2196F3;
}

.footer-links a::after {
    content: '|';
    margin-left: 20px;
    color: rgba(255, 255, 255, 0.2);
}

.footer-links a:last-child::after {
    content: '';
    margin-left: 0;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 25px 0;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.5);
    background: rgba(0, 0, 0, 0.2);
    margin: 10px -2.5% 0;
    padding-left: 2.5%;
    padding-right: 2.5%;
}

.footer-bottom p {
    margin: 0;
}

.footer-bottom-links {
    display: flex;
    gap: 25px;
}

.footer-bottom-links a {
    color: rgba(255, 255, 255, 0.5);
    transition: color 0.3s ease;
}

.footer-bottom-links a:hover {
    color: #fff;
}

/* ========================================
   响应式设�?
   ======================================== */
@media (max-width: 992px) {
    .nav-list {
        gap: 50px;
    }
    
    .footer-top {
        flex-direction: column;
        gap: 40px;
    }
    
    .footer-nav-group {
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        gap: 30px;
    }
    
    .footer-contact {
        text-align: center;
        margin-left: 0;
        padding-top: 30px;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    .footer-contact h4::after {
        left: 50%;
        transform: translateX(-50%);
        right: auto;
    }
    
    .footer-contact .contact-list li {
        justify-content: center;
    }
    
    .footer-contact .footer-social {
        justify-content: center;
    }
}

/* 响应式 - 小平板端 (768px-992px，如iPad Air 820px) */
@media (max-width: 992px) and (min-width: 769px) {
    .footer-inner {
        width: 90%;
    }
    
    .footer-top {
        flex-direction: column;
        gap: 30px;
    }
    
    .footer-nav-group {
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        gap: 20px;
        width: 100%;
    }
    
    .footer-column h4 {
        font-size: 14px;
        margin-bottom: 15px;
    }
    
    .footer-column ul li {
        margin-bottom: 8px;
    }
    
    .footer-column ul li a {
        font-size: 13px;
    }
    
    .footer-contact {
        text-align: center;
        margin-left: 0;
        padding-top: 25px;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    .footer-contact h4 {
        font-size: 14px;
    }
    
    .footer-contact .contact-list li {
        font-size: 13px;
        margin-bottom: 8px;
        justify-content: center;
    }
    
    /* 图标显示在文本左边 */
    .footer-contact .contact-icon {
        order: 1 !important;
    }
    
    .footer-contact .contact-list li span:last-child {
        order: 2 !important;
    }
    
    .footer-social a {
        width: 32px;
        height: 32px;
    }
    
    .footer-links {
        flex-wrap: wrap;
        justify-content: center;
        gap: 10px;
        padding: 15px 0;
    }
    
    .footer-links a {
        font-size: 12px;
    }
    
    .footer-bottom {
        padding-top: 15px;
        font-size: 12px;
    }
    
    .footer-bottom p {
        font-size: 12px;
    }
    
    .footer-bottom-links a {
        font-size: 12px;
    }
}

@media (max-width: 768px) {
    /* 移动端header始终白色背景 */
    .site-header {
        background: #fff !important;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1) !important;
        left: 0 !important;
        right: 0 !important;
        width: 100% !important;
        max-width: 100vw !important;
        overflow: hidden !important;
    }
    
    .header-inner {
        height: 56px;
        width: 100% !important;
        max-width: 100% !important;
        padding: 0 16px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important;
        box-sizing: border-box;
        position: relative;
        margin: 0 !important;
    }
    
    /* LOGO - 左侧 */
    .logo {
        flex-shrink: 0;
        position: static !important;
    }
    
    .logo img {
        height: 36px;
    }
    
    /* 移动端隐藏品牌名称 */
    .logo-text {
        display: none !important;
    }
    
    /* 移动端隐藏主导航（默认） */
    .main-nav {
        position: fixed !important;
        top: 56px;
        left: 0;
        right: 0;
        background: #fff;
        padding: 20px;
        box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
        z-index: 999;
    }
    
    .main-nav.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }
    
    .nav-list {
        flex-direction: column;
        gap: 0;
    }
    
    .nav-list li a {
        color: #333 !important;
        font-size: 16px;
        display: block;
        padding: 12px 0;
    }
    
    /* 移动端隐藏header-right */
    .header-right {
        display: none !important;
        visibility: hidden !important;
        width: 0 !important;
        height: 0 !important;
        overflow: hidden !important;
        position: absolute !important;
        left: -9999px !important;
    }
    
    /* 菜单按钮 - 右侧显示 */
    .mobile-menu-btn {
        display: flex !important;
        flex-direction: column !important;
        justify-content: center !important;
        align-items: center !important;
        gap: 5px !important;
        width: 44px !important;
        height: 44px !important;
        padding: 10px !important;
        flex-shrink: 0 !important;
        cursor: pointer !important;
        background: transparent !important;
        border: none !important;
        position: static !important;
        visibility: visible !important;
        opacity: 1 !important;
    }
    
    .mobile-menu-btn span {
        display: block !important;
        width: 24px !important;
        height: 2px !important;
        background: #333 !important;
        border-radius: 1px;
        transition: all 0.3s ease;
    }
    
    .footer-inner {
        width: 90%;
    }
    
    .footer-nav-group {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }
    
    /* 手机端隐藏友情链接 */
    .footer-links {
        display: none;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 15px;
        text-align: center;
        padding-left: 20px;
        padding-right: 20px;
    }
    
    .footer-bottom-links {
        flex-wrap: wrap;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .footer-nav-group {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .footer-column h4::after {
        left: 50%;
        transform: translateX(-50%);
    }
    
    .footer-contact h4::after {
        left: 50%;
        transform: translateX(-50%);
    }
    
    .footer-contact .contact-list li {
        justify-content: center;
    }
}

/* ========================================
   480px 小屏手机头部适配
   ======================================== */
@media (max-width: 480px) {
    .header-inner {
        height: 52px;
        padding: 0 12px !important;
    }
    
    .logo img {
        height: 32px;
    }
    
    /* 480px也隐藏品牌名称 */
    .logo-text {
        display: none !important;
    }
    
    /* 菜单按钮 */
    .mobile-menu-btn {
        width: 40px !important;
        height: 40px !important;
    }
    
    .mobile-menu-btn span {
        width: 22px !important;
    }
    
    /* 移动端导航 */
    .main-nav {
        top: 52px;
    }
    
    /* 底部480px */
    .site-footer {
        padding: 40px 0 0;
    }
    
    .footer-inner {
        width: 92%;
    }
    
    .footer-column h4 {
        font-size: 15px;
        margin-bottom: 18px;
    }
    
    .footer-column ul li {
        margin-bottom: 10px;
    }
    
    .footer-column ul li a {
        font-size: 13px;
    }
    
    .footer-social a {
        width: 32px;
        height: 32px;
    }
    
    .footer-social a svg {
        width: 16px;
        height: 16px;
    }
    
    .footer-bottom {
        padding: 20px 15px;
        font-size: 12px;
    }
    
    .footer-bottom-links {
        gap: 15px;
    }
    
    .footer-bottom-links a {
        font-size: 12px;
    }
}

/* ========================================
   浏览器兼容性
   ======================================== */
/* Flexbox兼容 - 仅PC端 */
@media (min-width: 769px) {
    .header-inner,
    .nav-list,
    .header-right {
        display: -webkit-box;
        display: -ms-flexbox;
        display: flex;
    }
}

.footer-top,
.footer-social,
.footer-bottom,
.footer-bottom-links,
.footer-links {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
}

/* 过渡动画兼容 */
a,
.btn-diagnosis,
.contact-link,
.footer-social a,
.mobile-menu-btn span {
    -webkit-transition: all 0.3s ease;
    -moz-transition: all 0.3s ease;
    -o-transition: all 0.3s ease;
    transition: all 0.3s ease;
}

/* 圆角兼容 */
.btn-diagnosis,
.contact-link,
.footer-social a {
    -webkit-border-radius: 25px;
    -moz-border-radius: 25px;
    border-radius: 25px;
}

/* 阴影兼容 */
.site-header {
    -webkit-box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1);
    -moz-box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1);
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1);
}

/* Safari滚动优化 */
html {
    -webkit-overflow-scrolling: touch;
}

/* iOS输入框样式重置 */
input,
textarea,
button {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}


/* ========================================
   移动端通用优化 - 768px
   ======================================== */
@media (max-width: 768px) {
    /* 通用容器宽度 */
    .container,
    [class*="-container"] {
        width: 90% !important;
        padding-left: 15px;
        padding-right: 15px;
    }
    
    /* 通用标题优化 - 统一20px */
    h1 {
        font-size: 22px !important;
        line-height: 1.3;
    }
    
    h2 {
        font-size: 20px !important;
        line-height: 1.3;
    }
    
    h3 {
        font-size: 18px !important;
    }
    
    /* 通用段落优化 */
    p {
        font-size: 14px;
        line-height: 1.6;
    }
    
    /* 通用按钮优化 */
    .btn-primary,
    .btn-secondary,
    [class*="btn-primary"],
    [class*="btn-outline"] {
        padding: 12px 24px;
        font-size: 14px;
    }
    
    /* 通用卡片优化 */
    [class*="-card"] {
        padding: 20px;
    }
    
    /* 通用网格优化 */
    [class*="-grid"] {
        gap: 20px;
    }
    
    /* 移动端导航菜单样式 */
    .main-nav.active {
        max-height: 80vh;
        overflow-y: auto;
    }
    
    .nav-list li {
        padding: 10px 0;
        border-bottom: 1px solid #f0f0f0;
    }
    
    .nav-list li:last-child {
        border-bottom: none;
    }
}

/* ========================================
   移动端通用优化 - 480px
   ======================================== */
@media (max-width: 480px) {
    /* 更小的容器宽度 */
    .container,
    [class*="-container"] {
        width: 92% !important;
        padding-left: 10px;
        padding-right: 10px;
    }
    
    /* 更小的标题 */
    h1 {
        font-size: 24px !important;
    }
    
    h2 {
        font-size: 20px !important;
    }
    
    h3 {
        font-size: 18px !important;
    }
    
    /* 更小的段落 */
    p {
        font-size: 14px;
        line-height: 1.6;
    }
    
    /* 更小的按钮 */
    .btn-primary,
    .btn-secondary,
    [class*="btn-primary"],
    [class*="btn-outline"] {
        padding: 10px 20px;
        font-size: 13px;
    }
    
    /* 更小的卡片内边距 */
    [class*="-card"] {
        padding: 15px;
    }
    
    /* 更小的网格间距 */
    [class*="-grid"] {
        gap: 15px;
    }
    
    /* Footer移动端优化 - 只显示联系我们和版权信息 */
    .footer-nav-group {
        display: none !important;
    }
    
    .footer-links {
        display: none !important;
    }
    
    .footer-top {
        justify-content: center;
    }
    
    .footer-contact {
        width: 100%;
        text-align: center;
    }
    
    .footer-contact h4 {
        text-align: center;
    }
    
    .footer-contact .contact-list {
        align-items: center;
    }
    
    .footer-contact .contact-list li {
        flex-direction: row;
        justify-content: center;
    }
    
    .footer-contact .contact-icon {
        order: 0 !important;
    }
    
    .footer-contact .contact-list li span:last-child {
        order: 1 !important;
    }
    
    .footer-social {
        justify-content: center;
    }
    
    .footer-bottom {
        text-align: center;
        border-top: none !important;
        margin-top: 20px;
    }
    
    .footer-top {
        border-bottom: none !important;
    }
    
    .footer-contact {
        border-bottom: none !important;
        padding-bottom: 0;
    }
}
   移动端Header最终修复 - 最高优先级
   ======================================== */
@media screen and (max-width: 768px) {
    /* 强制显示移动端菜单按钮 */
    .mobile-menu-btn {
        display: flex !important;
        flex-direction: column !important;
        justify-content: center !important;
        align-items: center !important;
        gap: 5px !important;
        width: 44px !important;
        height: 44px !important;
        padding: 10px !important;
        cursor: pointer !important;
        background: transparent !important;
        border: none !important;
        visibility: visible !important;
        opacity: 1 !important;
        position: static !important;
        z-index: 100 !important;
        flex-shrink: 0 !important;
    }
    
    .mobile-menu-btn span {
        display: block !important;
        width: 24px !important;
        height: 2px !important;
        background-color: #333 !important;
        border-radius: 2px !important;
        visibility: visible !important;
        opacity: 1 !important;
        flex-shrink: 0 !important;
    }
    
    /* 强制隐藏header-right */
    .header-right {
        display: none !important;
        visibility: hidden !important;
        width: 0 !important;
        height: 0 !important;
        overflow: hidden !important;
        position: absolute !important;
        left: -9999px !important;
    }
    
    /* header-inner布局 */
    .header-inner {
        display: flex !important;
        justify-content: space-between !important;
        align-items: center !important;
    }
}

@media screen and (max-width: 480px) {
    .mobile-menu-btn {
        width: 40px !important;
        height: 40px !important;
    }
    
    .mobile-menu-btn span {
        width: 22px !important;
    }
}


/* ========================================