/* Google Custom Font Declaration */
@font-face {
    font-family: 'GoogleCustomFont';
    src: url('/Public/font/google.ttf') format('truetype');
    font-display: swap;
    font-weight: normal;
    font-style: normal;
}

/* Global Font Application */
* {
    font-family: 'GoogleCustomFont', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif !important;
}

body, html {
    font-family: 'GoogleCustomFont', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif !important;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'GoogleCustomFont', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif !important;
}

input, textarea, select, button {
    font-family: 'GoogleCustomFont', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif !important;
}

table, th, td {
    font-family: 'GoogleCustomFont', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif !important;
}

.nav, .menu, .navigation {
    font-family: 'GoogleCustomFont', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif !important;
}

/* Mobile CSS for Modern Responsive Design */
/* ========================================= */

/* Reset and Base Styles */
* {
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

html, body {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
    overflow-x: hidden;
}

body {
    font-family: 'GoogleCustomFont', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif !important;
    font-size: 16px;
    line-height: 1.5;
    color: #333;
    background: #f5f5f5;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Mobile Container - Full Width */
.mobile-container {
    width: 100vw;
    max-width: 100vw;
    margin: 0;
    padding: 0;
    background: #fff;
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
}

/* Ensure all screen sizes use full width */
@media screen and (min-width: 415px) {
    .mobile-container {
        width: 100vw;
        max-width: 100vw;
        box-shadow: none;
    }
}

@media screen and (max-width: 414px) {
    .mobile-container {
        width: 100vw;
        max-width: 100vw;
        box-shadow: none;
    }
}

/* Touch Target Base Class - Minimum 44px */
.touch-target {
    min-width: 44px;
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    user-select: none;
}

.touch-target:active {
    transform: scale(0.95);
    opacity: 0.7;
}

/* Mobile Header Styles */
.mobile-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100vw;
    max-width: 100vw;
    height: 60px;
    background: #005599;
    z-index: 9999;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.header-container {
    position: relative;
    width: 100%;
    max-width: 100%;
}

.header-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 60px;
    padding: 0 16px;
}

/* Hamburger Menu Button */
.menu-toggle {
    background: none;
    border: none;
    color: white;
    flex-direction: column;
    gap: 4px;
    padding: 8px;
}

.hamburger-line {
    width: 20px;
    height: 2px;
    background: white;
    transition: all 0.3s ease;
    border-radius: 1px;
}

.menu-toggle.active .hamburger-line:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.menu-toggle.active .hamburger-line:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active .hamburger-line:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

/* Logo */
.logo {
    flex: 1;
    text-align: center;
    padding: 0 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    position: relative;
    z-index: 10001;
}

.logo a {
    display: inline-block;
    text-decoration: none;
    line-height: 1;
    max-width: 100%;
}

.logo img {
    height: 40px;
    max-width: 120px;
    object-fit: contain;
    display: block;
    margin: 0 auto;
}

/* 如果图片不存在或加载失败，显示文字logo */
.logo img:not([src]),
.logo img[src=""],
.logo img[style*="display:none"],
.logo img[style*="display: none"] {
    display: none !important;
}

.logo img:not([src]) + .logo-text,
.logo img[src=""] + .logo-text,
.logo img[style*="display:none"] + .logo-text,
.logo img[style*="display: none"] + .logo-text {
    display: block !important;
}

.logo-text {
    color: white;
    font-size: 16px;
    font-weight: 600;
    line-height: 40px;
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Search Toggle */
.search-toggle {
    background: none;
    border: none;
    color: white;
    padding: 8px;
}

.search-toggle svg {
    display: block;
}

/* Mobile Search */
.mobile-search {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #005599;
    padding: 12px 16px;
    transform: translateY(-100%);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    border-top: 1px solid rgba(255,255,255,0.1);
}

.mobile-search.active {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
}

.search-form {
    width: 100%;
}

.search-input-group {
    display: flex;
    align-items: center;
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.search-input {
    flex: 1;
    border: none;
    padding: 12px 16px;
    font-size: 16px;
    outline: none;
    background: transparent;
}

.search-input::placeholder {
    color: #999;
}

.search-submit {
    background: #005599;
    border: none;
    color: white;
    padding: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s ease;
}

.search-submit:active {
    background: #004080;
}

.search-cancel {
    background: none;
    border: none;
    color: #005599;
    padding: 12px 16px;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s ease;
}

.search-cancel:active {
    color: #004080;
}

/* Mobile Navigation */
.nav-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    z-index: 1001;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.nav-overlay.active {
    opacity: 1;
    visibility: visible;
}

.mobile-nav {
    position: fixed;
    top: 0;
    left: -300px;
    width: 300px;
    height: 100vh;
    background: white;
    z-index: 1002;
    transition: left 0.3s ease;
    overflow-y: auto;
    overflow-x: hidden; /* 防止水平滚动 */
    box-shadow: 2px 0 20px rgba(0,0,0,0.15);
    -webkit-overflow-scrolling: touch; /* iOS平滑滚动 */
}

.mobile-nav.active {
    left: 0;
}

.nav-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px;
    background: #005599;
    color: white;
    min-height: 60px;
}

.nav-logo {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    min-height: 32px;
}

.nav-logo img {
    height: 32px;
    max-width: 120px;
    object-fit: contain;
    display: block;
}

/* 如果导航中图片不存在或加载失败，显示文字logo */
.nav-logo img:not([src]),
.nav-logo img[src=""],
.nav-logo img[style*="display:none"],
.nav-logo img[style*="display: none"] {
    display: none !important;
}

.nav-logo img:not([src]) + .logo-text,
.nav-logo img[src=""] + .logo-text,
.nav-logo img[style*="display:none"] + .logo-text,
.nav-logo img[style*="display: none"] + .logo-text {
    display: block !important;
}

.nav-logo .logo-text {
    color: white;
    font-size: 14px;
    font-weight: 600;
    line-height: 32px;
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.nav-close {
    background: none;
    border: none;
    color: white;
    padding: 8px;
}

.nav-content {
    padding: 0;
    min-height: calc(100vh - 60px); /* 确保内容区域有足够高度 */
}

.nav-contact {
    padding: 16px;
    border-bottom: 1px solid #e0e0e0;
    background: #f8f9fa;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #666;
    font-size: 14px;
}

.contact-item svg {
    color: #005599;
    flex-shrink: 0;
}

.nav-menu {
    list-style: none;
    margin: 0;
    padding: 0;
    flex: 1; /* 让菜单占据剩余空间 */
}

.nav-item {
    border-bottom: 1px solid #f0f0f0;
}

.nav-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px;
    color: #333;
    text-decoration: none;
    font-size: 16px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    min-height: 56px;
    position: relative;
    overflow: hidden;
}

.nav-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 85, 153, 0.1), transparent);
    transition: left 0.5s ease;
}

.nav-link:hover::before,
.nav-link:active::before {
    left: 100%;
}

.nav-link:hover, 
.nav-link:active {
    background-color: #f8f9fa;
    transform: translateX(2px);
}

.nav-link.expanded {
    background-color: #e3f2fd;
    color: #005599;
    box-shadow: inset 3px 0 0 #005599;
}

/* 普通导航链接（无子导航）的特殊样式 */
.nav-link:not(.has-children):active {
    background-color: #e3f2fd !important;
    color: #005599 !important;
    transform: translateX(4px) !important;
}

/* 导航跳转动画 */
.nav-link.navigating {
    background-color: #e3f2fd;
    color: #005599;
    transform: translateX(4px);
    box-shadow: inset 3px 0 0 #005599;
}

/* 二级导航点击效果 */
.sub-nav-link.navigating,
.nav-sublink.navigating {
    background-color: #e9ecef;
    color: #005599;
    transform: translateX(6px);
}

/* 三级导航点击效果 */
.third-nav-link.navigating {
    background-color: #dee2e6;
    color: #005599;
    transform: translateX(8px);
}

.nav-text {
    flex: 1;
}

.nav-arrow {
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    color: #999;
    margin-left: 8px;
    transform-origin: center;
}

.nav-link.expanded .nav-arrow {
    transform: rotate(90deg);
    color: #005599;
}

.sub-nav {
    list-style: none;
    margin: 0;
    padding: 0;
    background: #f8f9fa;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out, opacity 0.2s ease-out;
    opacity: 0;
}

.sub-nav.expanded {
    overflow: visible;
    opacity: 1;
}

.sub-nav.expanding {
    overflow: hidden;
    opacity: 1;
}

/* 二级导航项的渐入动画 */
.sub-nav-item {
    border-bottom: 1px solid #e9ecef;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 1; /* 确保内容可见 */
    transform: none; /* 移除可能导致问题的变换 */
}

.sub-nav-item:last-child {
    border-bottom: none;
}

/* Mobile版本的子菜单样式 */
.nav-submenu {
    background: #f8f9fa;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out, opacity 0.2s ease-out;
    opacity: 0;
}

.nav-submenu.expanded {
    overflow: visible;
    opacity: 1;
}

.nav-sublink {
    display: block;
    padding: 12px 32px;
    color: #666;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.2s ease;
    min-height: 44px;
    line-height: 1.4;
    border-bottom: 1px solid #e9ecef;
}

.nav-sublink:last-child {
    border-bottom: none;
}

.nav-sublink:active {
    background-color: #e9ecef;
    color: #005599;
}

.third-nav {
    list-style: none;
    margin: 0;
    padding: 0;
    background: #e9ecef;
}

.third-nav-item {
    border-bottom: 1px solid #dee2e6;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 1; /* 确保内容可见 */
    transform: none; /* 移除可能导致问题的变换 */
}

.third-nav-item:last-child {
    border-bottom: none;
}

.third-nav-link {
    display: block;
    padding: 8px 48px;
    color: #666;
    text-decoration: none;
    font-size: 13px;
    transition: background-color 0.2s ease;
    min-height: 40px;
    line-height: 1.4;
}

.third-nav-link:active {
    background-color: #dee2e6;
}

.nav-quick-links {
    padding: 16px;
    border-top: 1px solid #e0e0e0;
    background: #f8f9fa;
}

.quick-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 0;
    color: #005599;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.2s ease;
}

.quick-link:active {
    color: #004080;
}

.quick-link svg {
    flex-shrink: 0;
}

/* 响应式调整 */
@media screen and (max-width: 375px) {
    .mobile-nav {
        width: 280px;
        left: -280px;
    }
}

@media screen and (min-width: 768px) {
    .mobile-nav {
        width: 320px;
        left: -320px;
    }
}

/* 确保导航动画期间内容不被截断 */
.mobile-nav .nav-content {
    position: relative;
    z-index: 1;
}

.mobile-nav .sub-nav {
    position: relative;
    z-index: 2;
}

/* 优化滚动性能 */
.mobile-nav {
    transform: translateZ(0);
    backface-visibility: hidden;
}

.sub-nav {
    transform: translateZ(0);
    backface-visibility: hidden;
}

/* 导航项悬停效果增强 */
.sub-nav-link {
    display: block;
    padding: 12px 32px;
    color: #666;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.2s ease;
    min-height: 44px;
    line-height: 1.4;
}

.sub-nav-link:active {
    background-color: #e9ecef;
    color: #005599;
}

.third-nav-link {
    display: block;
    padding: 8px 48px;
    color: #666;
    text-decoration: none;
    font-size: 13px;
    transition: all 0.2s ease;
    min-height: 40px;
    line-height: 1.4;
}

.third-nav-link:active {
    background-color: #dee2e6;
    color: #005599;
}

/* 响应用户的动画偏好设置 */
@media (prefers-reduced-motion: reduce) {
    .sub-nav,
    .sub-nav-item,
    .third-nav-item,
    .nav-arrow,
    .nav-link,
    .sub-nav-link,
    .third-nav-link {
        transition: none !important;
    }
    
    .nav-link.expanded .nav-arrow {
        transform: rotate(90deg);
    }
}

/* 高对比度模式支持 */
@media (prefers-contrast: high) {
    .sub-nav {
        border: 1px solid #333;
    }
    
    .nav-link.expanded {
        border-left: 4px solid #005599;
    }
}

/* Mobile Content */
.mobile-content {
    padding-top: 60px;
    padding-bottom: 70px;
    min-height: calc(100vh - 130px);
}

/* Mobile Footer */
.mobile-footer {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100vw;
    max-width: 100vw;
    background: white;
    border-top: 1px solid #e0e0e0;
    z-index: 1000;
}

.footer-tabs {
    display: flex;
    height: 60px;
    width: 100%;
    max-width: 100%;
}

.tab-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: #999;
    font-size: 12px;
    transition: color 0.2s ease;
    gap: 4px;
}

.tab-item.active {
    color: #005599;
}

.tab-icon {
    display: flex;
    align-items: center;
    justify-content: center;
}

.tab-text {
    font-size: 11px;
}

.back-to-top {
    position: absolute;
    right: 16px;
    top: -25px;
    width: 50px;
    height: 50px;
    background: #005599;
    color: white;
    border: none;
    border-radius: 25px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.footer-copyright {
    position: absolute;
    bottom: 70px;
    left: 0;
    right: 0;
    background: rgba(0,0,0,0.8);
    color: white;
    text-align: center;
    padding: 8px;
    font-size: 12px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.footer-copyright.visible {
    opacity: 1;
    visibility: visible;
}

.footer-copyright a {
    color: white;
    text-decoration: none;
}

/* Mobile Online Service */
.mobile-online-service {
    position: fixed;
    right: 16px;
    bottom: 90px;
    z-index: 999;
}

.service-call {
    width: 50px;
    height: 50px;
    background: #4CAF50;
    color: white;
    border-radius: 25px;
    text-decoration: none;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

/* Card Layout for Content */
.mobile-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    margin: 16px;
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.mobile-card:active {
    transform: translateY(2px);
    box-shadow: 0 1px 4px rgba(0,0,0,0.1);
}

.card-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
    position: relative;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.card-image:hover img {
    transform: scale(1.05);
}

.card-content {
    padding: 16px;
}

.card-title {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin: 0 0 8px 0;
    line-height: 1.3;
}

.card-summary {
    font-size: 14px;
    color: #666;
    line-height: 1.4;
    margin: 0 0 12px 0;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-clamp: 3;
}

.card-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
    color: #999;
}

/* Swipe Gallery */
.swipe-gallery {
    position: relative;
    width: 100%;
    height: 250px;
    overflow: hidden;
    border-radius: 12px;
    margin: 16px 0;
}

.gallery-container {
    display: flex;
    width: 500%;
    height: 100%;
    transition: transform 0.3s ease;
}

.gallery-slide {
    width: 20%;
    height: 100%;
    position: relative;
}

.gallery-slide img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.slide-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.7));
    color: white;
    padding: 20px 16px 16px;
}

.slide-content h3 {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
}

.gallery-indicators {
    position: absolute;
    bottom: 16px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
}

.indicator {
    width: 8px;
    height: 8px;
    border-radius: 4px;
    background: rgba(255,255,255,0.5);
    transition: background 0.3s ease;
}

.indicator.active {
    background: white;
}

/* Form Styles */
.mobile-form {
    padding: 16px;
}

.form-group {
    margin-bottom: 16px;
}

.form-label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
}

.form-input {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 16px;
    transition: border-color 0.2s ease;
    -webkit-appearance: none;
}

.form-input:focus {
    outline: none;
    border-color: #005599;
}

.form-textarea {
    min-height: 100px;
    resize: vertical;
}

.form-button {
    width: 100%;
    padding: 16px;
    background: #005599;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.form-button:active {
    background: #004080;
}

/* List Styles */
.mobile-list {
    background: white;
    border-radius: 12px;
    margin: 16px;
    overflow: hidden;
}

.list-item {
    display: flex;
    align-items: center;
    padding: 16px;
    border-bottom: 1px solid #f0f0f0;
    text-decoration: none;
    color: #333;
    transition: background-color 0.2s ease;
}

.list-item:last-child {
    border-bottom: none;
}

.list-item:active {
    background-color: #f8f9fa;
}

.list-icon {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    background: #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 12px;
}

.list-content {
    flex: 1;
}

.list-title {
    font-size: 16px;
    font-weight: 600;
    margin: 0 0 4px 0;
}

.list-subtitle {
    font-size: 14px;
    color: #666;
    margin: 0;
}

.list-arrow {
    color: #ccc;
}

/* Loading States */
.loading {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
    color: #666;
}

.loading-spinner {
    width: 20px;
    height: 20px;
    border: 2px solid #e0e0e0;
    border-top: 2px solid #005599;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-right: 12px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Error States */
.error-message {
    background: #ffebee;
    color: #c62828;
    padding: 16px;
    margin: 16px;
    border-radius: 8px;
    text-align: center;
    font-size: 14px;
}

/* Success States */
.success-message {
    background: #e8f5e8;
    color: #2e7d32;
    padding: 16px;
    margin: 16px;
    border-radius: 8px;
    text-align: center;
    font-size: 14px;
}

/* Utility Classes */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.mb-8 { margin-bottom: 8px; }
.mb-16 { margin-bottom: 16px; }
.mb-24 { margin-bottom: 24px; }

.p-8 { padding: 8px; }
.p-16 { padding: 16px; }
.p-24 { padding: 24px; }

.hidden { display: none; }
.visible { display: block; }

/* Responsive adjustments */
@media screen and (max-width: 375px) {
    .mobile-container {
        width: 100%;
    }
    
    .mobile-header,
    .mobile-footer {
        width: 100%;
        left: 0;
        transform: none;
    }
    
    .mobile-nav {
        left: 0;
        transform: translateX(-100%);
        width: min(260px, 85vw);
    }
    
    .mobile-nav.active {
        transform: translateX(0);
    }
    
    .action-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
}

@media screen and (min-width: 415px) {
    .mobile-container {
        max-width: 100%;
        box-shadow: none;
    }
    
    .mobile-header,
    .mobile-footer {
        max-width: 100%;
    }
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    body {
        background: #121212;
        color: #ffffff;
    }
    
    .mobile-container {
        background: #1e1e1e;
    }
    
    .mobile-card {
        background: #2d2d2d;
        color: #ffffff;
    }
    
    .card-title {
        color: #ffffff;
    }
    
    .card-summary {
        color: #cccccc;
    }
}

/* Safe area support for notched devices */
@supports (padding: max(0px)) {
    .mobile-header {
        padding-top: max(env(safe-area-inset-top), 0px);
        height: calc(60px + max(env(safe-area-inset-top), 0px));
    }
    
    .mobile-content {
        padding-top: calc(60px + max(env(safe-area-inset-top), 0px));
    }
    
    .mobile-footer {
        padding-bottom: max(env(safe-area-inset-bottom), 0px);
        height: calc(70px + max(env(safe-area-inset-bottom), 0px));
    }
    
    .mobile-content {
        padding-bottom: calc(70px + max(env(safe-area-inset-bottom), 0px));
    }
}

/* Global Image Styles for Article Content */
/* ======================================= */

/* Force all images in article content to use full width */
.content-body img,
.article-content img,
.product-content img,
.info-content img {
    width: 100% !important;
    height: auto !important;
    max-width: 100% !important;
    display: block !important;
    margin: 16px 0 !important;
    border-radius: 8px;
    box-sizing: border-box;
}

/* Ensure images in any content area follow the same rule */
.mobile-content img:not(.logo):not(.icon):not(.avatar):not(.thumbnail) {
    width: 100% !important;
    height: auto !important;
    max-width: 100% !important;
    display: block !important;
}

/* Exception for specific image types that should maintain their size */
.logo img,
.icon img,
.avatar img,
.thumbnail img,
.gallery-thumbnail img,
.nav-logo img,
.header img:not(.content-image) {
    width: 70% !important;
    height: auto !important;
    max-width: 70% !important;
}
/* Global Table Responsive Styles */
/* ================================ */

/* Ensure tables don't exceed container width and allow content wrapping */
.content-body table,
.article-content table,
.product-content table,
.info-content table,
.mobile-content table {
    width: 100% !important;
    max-width: 100% !important;
    table-layout: fixed !important;
    border-collapse: collapse !important;
    margin: 16px 0 !important;
    background: white !important;
    border-radius: 8px !important;
    overflow: hidden !important;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1) !important;
}

/* Allow table cells to wrap content properly */
.content-body th,
.content-body td,
.article-content th,
.article-content td,
.product-content th,
.product-content td,
.info-content th,
.info-content td,
.mobile-content th,
.mobile-content td {
    word-wrap: break-word !important;
    word-break: break-word !important;
    white-space: normal !important;
    overflow: visible !important;
    text-overflow: clip !important;
    padding: 8px 12px !important;
    border: 1px solid #e0e0e0 !important;
    vertical-align: top !important;
    line-height: 1.4 !important;
}

/* Table headers */
.content-body th,
.article-content th,
.product-content th,
.info-content th,
.mobile-content th {
    background: #f8f9fa !important;
    font-weight: 600 !important;
    color: #333 !important;
}

/* Mobile-specific table adjustments */
@media screen and (max-width: 480px) {
    .content-body th,
    .content-body td,
    .article-content th,
    .article-content td,
    .product-content th,
    .product-content td,
    .info-content th,
    .info-content td,
    .mobile-content th,
    .mobile-content td {
        padding: 6px 8px !important;
        font-size: 13px !important;
        line-height: 1.3 !important;
    }
    
    .content-body table,
    .article-content table,
    .product-content table,
    .info-content table,
    .mobile-content table {
        font-size: 12px !important;
    }
}


/* ========================================= */
/* Tablet Device Optimizations              */
/* ========================================= */
/* 平板设备图片高度优化 - 提升视觉效果 */

/* 平板设备 (768px - 1024px) */
@media screen and (min-width: 768px) {
    /* Hero Banner - 增加内边距和字体大小 */
    .hero-banner {
        padding: 80px 32px;
    }
    
    .banner-title {
        font-size: 40px;
    }
    
    .banner-subtitle {
        font-size: 20px;
        max-width: 600px;
    }
    
    /* Featured Image - 从160px增加到280px */
    .featured-image {
        height: 280px;
    }
    
    .featured-card {
        min-width: 380px;
    }
    
    .featured-title {
        font-size: 20px;
    }
    
    .featured-summary {
        font-size: 15px;
        -webkit-line-clamp: 3;
    }
    
    /* Card Image - 从200px增加到320px */
    .card-image {
        height: 320px;
    }
    
    .card-title {
        font-size: 22px;
    }
    
    .card-summary {
        font-size: 16px;
    }
    
    /* Swipe Gallery - 从250px增加到400px */
    .swipe-gallery {
        height: 400px;
    }
    
    /* Service Image - 从100px增加到180px */
    .service-image {
        height: 180px;
    }
    
    .service-title {
        font-size: 17px;
    }
    
    .service-desc {
        font-size: 14px;
        -webkit-line-clamp: 3;
    }
    
    .service-content {
        padding: 16px;
    }
    
    /* Product Image - 从120px/140px增加到220px */
    .product-image {
        height: 220px;
    }
    
    .product-slide .product-image {
        height: 220px;
    }
    
    .product-slide {
        min-width: 280px;
    }
    
    .product-info {
        padding: 16px;
    }
    
    .product-info .product-title {
        font-size: 17px;
    }
    
    /* News Image - 从60px增加到120px */
    .news-image {
        width: 160px;
        height: 120px;
        border-radius: 8px;
    }
    
    .news-title {
        font-size: 18px;
    }
    
    .news-summary {
        font-size: 15px;
        -webkit-line-clamp: 2;
    }
    
    /* Quick Navigation - 增大图标 */
    .quick-nav-icon {
        width: 72px;
        height: 72px;
    }
    
    .quick-nav-text {
        font-size: 15px;
    }
    
    .quick-nav-item {
        padding: 20px 12px;
    }
    
    /* Services Grid - 优化布局 */
    .services-grid {
        gap: 20px;
        padding: 20px;
    }
    
    /* Section Headers - 增大字体 */
    .section-header h2 {
        font-size: 24px;
    }
    
    .section-header p {
        font-size: 14px;
    }
    
    /* About Section - 增大统计数字 */
    .stat-number {
        font-size: 44px;
    }
    
    .stat-label {
        font-size: 16px;
    }
    
    .about-content h2 {
        font-size: 28px;
    }
    
    .about-content p {
        font-size: 17px;
        max-width: 600px;
        margin-left: auto;
        margin-right: auto;
    }
    
    /* Contact Section - 优化布局 */
    .contact-info {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }
    
    .contact-item:last-child {
        grid-column: span 2;
    }
    
    .contact-container h2 {
        font-size: 28px;
    }
    
    /* Mobile Card - 增加内边距 */
    .mobile-card {
        margin: 20px;
    }
    
    .card-content {
        padding: 20px;
    }
    
    /* Products Carousel - 增加间距 */
    .products-carousel {
        gap: 20px;
        padding: 20px;
    }
    
    /* Featured Carousel - 增加间距 */
    .featured-carousel {
        gap: 20px;
        padding: 16px;
    }
    
    /* News List - 增加间距 */
    .news-list {
        padding: 16px;
        gap: 16px;
    }
    
    .news-link {
        padding: 20px;
        gap: 20px;
    }
}

/* 大平板设备 (1024px+) */
@media screen and (min-width: 1024px) {
    /* Hero Banner - 进一步增加 */
    .hero-banner {
        padding: 100px 48px;
    }
    
    .banner-title {
        font-size: 48px;
    }
    
    .banner-subtitle {
        font-size: 22px;
        max-width: 700px;
    }
    
    .banner-btn {
        padding: 14px 28px;
        font-size: 16px;
    }
    
    /* Featured Image - 增加到350px */
    .featured-image {
        height: 350px;
    }
    
    .featured-card {
        min-width: 450px;
    }
    
    .featured-title {
        font-size: 22px;
    }
    
    .featured-content {
        padding: 20px;
    }
    
    /* Card Image - 增加到400px */
    .card-image {
        height: 400px;
    }
    
    .card-title {
        font-size: 24px;
    }
    
    /* Swipe Gallery - 增加到500px */
    .swipe-gallery {
        height: 500px;
    }
    
    /* Service Image - 增加到240px */
    .service-image {
        height: 240px;
    }
    
    .service-title {
        font-size: 18px;
    }
    
    .service-desc {
        font-size: 15px;
    }
    
    .service-content {
        padding: 18px;
    }
    
    /* Product Image - 增加到280px */
    .product-image {
        height: 280px;
    }
    
    .product-slide .product-image {
        height: 280px;
    }
    
    .product-slide {
        min-width: 340px;
    }
    
    .product-info .product-title {
        font-size: 18px;
    }
    
    /* News Image - 增加到150px */
    .news-image {
        width: 200px;
        height: 150px;
    }
    
    .news-title {
        font-size: 20px;
    }
    
    .news-summary {
        font-size: 16px;
    }
    
    /* Services Grid - 4列布局 */
    .services-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 24px;
        padding: 24px;
    }
    
    /* Quick Navigation - 更大图标 */
    .quick-nav-icon {
        width: 80px;
        height: 80px;
    }
    
    .quick-nav-text {
        font-size: 16px;
    }
    
    /* Section Headers */
    .section-header h2 {
        font-size: 28px;
    }
    
    /* About Section */
    .about-content h2 {
        font-size: 32px;
    }
    
    .about-content p {
        font-size: 18px;
    }
    
    .stat-number {
        font-size: 52px;
    }
    
    .stat-label {
        font-size: 18px;
    }
    
    /* Contact Info - 3列布局 */
    .contact-info {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .contact-item:last-child {
        grid-column: auto;
    }
    
    .contact-container h2 {
        font-size: 32px;
    }
    
    /* Featured Carousel */
    .featured-carousel {
        gap: 24px;
        padding: 20px;
    }
    
    /* News List */
    .news-list {
        padding: 20px;
        gap: 20px;
    }
    
    .news-link {
        padding: 24px;
        gap: 24px;
    }
}

/* 超大平板/小型桌面 (1200px+) */
@media screen and (min-width: 1200px) {
    /* Featured Image - 400px */
    .featured-image {
        height: 400px;
    }
    
    .featured-card {
        min-width: 500px;
    }
    
    /* Card Image - 450px */
    .card-image {
        height: 450px;
    }
    
    /* Swipe Gallery - 550px */
    .swipe-gallery {
        height: 550px;
    }
    
    /* Service Image - 280px */
    .service-image {
        height: 280px;
    }
    
    /* Product Image - 320px */
    .product-image {
        height: 320px;
    }
    
    .product-slide .product-image {
        height: 320px;
    }
    
    .product-slide {
        min-width: 380px;
    }
    
    /* News Image - 180px */
    .news-image {
        width: 240px;
        height: 180px;
    }
}


/* ========================================= */
/* 平板端其他页面优化                         */
/* Tablet Optimization for Other Pages       */
/* ========================================= */

/* 平板设备 (768px - 1024px) */
@media screen and (min-width: 768px) {
    /* ===== 列表页优化 ===== */
    
    /* Hero Banner */
    .hero-banner {
        padding: 60px 32px;
    }
    
    .banner-title {
        font-size: 36px;
    }
    
    .banner-subtitle {
        font-size: 18px;
    }
    
    /* Category Section */
    .category-list {
        padding: 16px 24px;
        gap: 14px;
    }
    
    .category-item {
        padding: 10px 20px;
        font-size: 15px;
    }
    
    /* Section Headers */
    .section-header {
        padding: 20px 24px;
    }
    
    .section-header h2 {
        font-size: 22px;
    }
    
    .section-header p {
        font-size: 14px;
    }
    
    /* Content List */
    .content-list {
        padding: 16px 24px;
        gap: 16px;
    }
    
    .list-link {
        padding: 20px;
        gap: 20px;
    }
    
    .list-image {
        width: 160px;
        height: 120px;
        border-radius: 10px;
    }
    
    .list-title {
        font-size: 18px;
        margin-bottom: 10px;
    }
    
    .list-summary {
        font-size: 15px;
        -webkit-line-clamp: 3;
        line-clamp: 3;
    }
    
    .list-meta {
        font-size: 14px;
        gap: 20px;
    }
    
    /* ===== 产品网格优化 ===== */
    
    .products-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
        padding: 20px 24px;
    }
    
    .product-image {
        height: 180px;
    }
    
    .product-content {
        padding: 16px;
    }
    
    .product-title {
        font-size: 16px;
        margin-bottom: 10px;
    }
    
    .product-price {
        font-size: 18px;
    }
    
    /* ===== 详情页优化 ===== */
    
    /* Detail Hero */
    .detail-hero {
        padding: 48px 32px;
    }
    
    .hero-tag {
        font-size: 14px;
        padding: 6px 16px;
        margin-bottom: 16px;
    }
    
    .hero-title {
        font-size: 28px;
    }
    
    /* Article Meta */
    .article-meta-section {
        padding: 20px 32px;
    }
    
    .meta-container {
        gap: 24px;
    }
    
    .meta-item {
        font-size: 15px;
        gap: 8px;
    }
    
    /* Article Content */
    .article-content-section {
        padding: 24px 32px;
    }
    
    .content-card {
        padding: 32px;
        border-radius: 16px;
    }
    
    .article-body {
        font-size: 17px;
        line-height: 1.9;
    }
    
    .article-body img {
        border-radius: 12px;
        margin: 24px 0;
    }
    
    .article-body p {
        margin-bottom: 20px;
    }
    
    .article-body h2 {
        font-size: 24px;
        margin: 32px 0 16px;
    }
    
    .article-body h3 {
        font-size: 20px;
        margin: 28px 0 14px;
    }
    
    .article-body table {
        font-size: 15px;
    }
    
    .article-body table td,
    .article-body table th {
        padding: 14px 16px;
    }
    
    /* Source Section */
    .source-section {
        padding: 0 32px 24px;
    }
    
    .source-card {
        padding: 16px 20px;
        border-radius: 12px;
    }
    
    .source-label {
        font-size: 14px;
    }
    
    .source-value {
        font-size: 16px;
    }
    
    /* Action Section */
    .action-section {
        padding: 24px 32px;
    }
    
    .back-btn {
        padding: 14px 32px;
        font-size: 16px;
        border-radius: 10px;
    }
    
    /* ===== 分页优化 ===== */
    
    .pagination-container {
        padding: 28px 24px;
    }
    
    .pagination-container a,
    .pagination-container span {
        min-width: 44px;
        height: 44px;
        padding: 0 14px;
        margin: 0 6px;
        font-size: 15px;
        border-radius: 10px;
    }
    
    /* ===== 下载页面优化 ===== */
    
    .download-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
        padding: 20px 24px;
    }
    
    .download-card {
        padding: 20px;
    }
    
    .download-icon {
        width: 56px;
        height: 56px;
    }
    
    .download-title {
        font-size: 17px;
    }
    
    .download-meta {
        font-size: 14px;
    }
    
    /* ===== 关于页面优化 ===== */
    
    .about-section {
        padding: 32px;
    }
    
    .about-title {
        font-size: 26px;
    }
    
    .about-content {
        font-size: 16px;
        line-height: 1.9;
    }
    
    .about-image {
        height: 300px;
        border-radius: 16px;
    }
    
    /* ===== 搜索页面优化 ===== */
    
    .search-form {
        padding: 24px;
    }
    
    .search-input {
        padding: 16px 20px;
        font-size: 17px;
    }
    
    .search-btn {
        padding: 16px 32px;
        font-size: 16px;
    }
    
    .search-results {
        padding: 20px 24px;
    }
}

/* 大平板设备 (1024px+) */
@media screen and (min-width: 1024px) {
    /* ===== 列表页优化 ===== */
    
    .hero-banner {
        padding: 80px 48px;
    }
    
    .banner-title {
        font-size: 44px;
    }
    
    .banner-subtitle {
        font-size: 20px;
    }
    
    .category-list {
        padding: 20px 32px;
        gap: 16px;
        justify-content: center;
    }
    
    .category-item {
        padding: 12px 24px;
        font-size: 16px;
    }
    
    .section-header {
        padding: 24px 32px;
    }
    
    .section-header h2 {
        font-size: 26px;
    }
    
    /* Content List - 2列布局 */
    .content-list {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
        padding: 24px 32px;
    }
    
    .list-card {
        margin: 0;
    }
    
    .list-link {
        padding: 24px;
        flex-direction: column;
        gap: 16px;
    }
    
    .list-image {
        width: 100%;
        height: 200px;
        border-radius: 12px;
    }
    
    .list-title {
        font-size: 20px;
    }
    
    .list-summary {
        font-size: 16px;
    }
    
    /* ===== 产品网格优化 ===== */
    
    .products-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 24px;
        padding: 24px 32px;
    }
    
    .product-image {
        height: 220px;
    }
    
    .product-content {
        padding: 18px;
    }
    
    .product-title {
        font-size: 17px;
    }
    
    .product-price {
        font-size: 20px;
    }
    
    /* ===== 详情页优化 ===== */
    
    .detail-hero {
        padding: 64px 48px;
    }
    
    .hero-tag {
        font-size: 15px;
        padding: 8px 20px;
    }
    
    .hero-title {
        font-size: 34px;
        max-width: 800px;
        margin: 0 auto;
    }
    
    .article-meta-section {
        padding: 24px 48px;
        max-width: 900px;
        margin: 0 auto;
    }
    
    .meta-item {
        font-size: 16px;
    }
    
    .article-content-section {
        padding: 32px 48px;
        max-width: 900px;
        margin: 0 auto;
    }
    
    .content-card {
        padding: 40px;
    }
    
    .article-body {
        font-size: 18px;
        line-height: 2;
    }
    
    .article-body h2 {
        font-size: 28px;
    }
    
    .article-body h3 {
        font-size: 22px;
    }
    
    .source-section {
        padding: 0 48px 32px;
        max-width: 900px;
        margin: 0 auto;
    }
    
    .action-section {
        padding: 32px 48px;
    }
    
    .back-btn {
        padding: 16px 40px;
        font-size: 17px;
    }
    
    /* ===== 分页优化 ===== */
    
    .pagination-container {
        padding: 36px 32px;
    }
    
    .pagination-container a,
    .pagination-container span {
        min-width: 48px;
        height: 48px;
        font-size: 16px;
    }
    
    /* ===== 下载页面优化 ===== */
    
    .download-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 24px;
        padding: 24px 32px;
    }
    
    .download-card {
        padding: 24px;
    }
    
    .download-icon {
        width: 64px;
        height: 64px;
    }
    
    .download-title {
        font-size: 18px;
    }
    
    /* ===== 关于页面优化 ===== */
    
    .about-section {
        padding: 48px;
        max-width: 900px;
        margin: 0 auto;
    }
    
    .about-title {
        font-size: 32px;
    }
    
    .about-content {
        font-size: 17px;
        line-height: 2;
    }
    
    .about-image {
        height: 400px;
    }
    
    /* ===== 搜索页面优化 ===== */
    
    .search-form {
        padding: 32px;
        max-width: 700px;
        margin: 0 auto;
    }
    
    .search-input {
        padding: 18px 24px;
        font-size: 18px;
    }
    
    .search-btn {
        padding: 18px 40px;
        font-size: 17px;
    }
}

/* 超大平板/小型桌面 (1200px+) */
@media screen and (min-width: 1200px) {
    /* ===== 列表页优化 ===== */
    
    .hero-banner {
        padding: 100px 64px;
    }
    
    .banner-title {
        font-size: 52px;
    }
    
    .banner-subtitle {
        font-size: 22px;
    }
    
    /* Content List - 3列布局 */
    .content-list {
        grid-template-columns: repeat(3, 1fr);
        gap: 28px;
        padding: 28px 48px;
    }
    
    .list-image {
        height: 240px;
    }
    
    .list-title {
        font-size: 22px;
    }
    
    /* ===== 产品网格优化 ===== */
    
    .products-grid {
        grid-template-columns: repeat(5, 1fr);
        gap: 28px;
        padding: 28px 48px;
    }
    
    .product-image {
        height: 260px;
    }
    
    .product-title {
        font-size: 18px;
    }
    
    /* ===== 详情页优化 ===== */
    
    .detail-hero {
        padding: 80px 64px;
    }
    
    .hero-title {
        font-size: 40px;
    }
    
    .article-content-section {
        max-width: 1200px;
    }
    
    .content-card {
        padding: 48px;
    }
    
    .article-body {
        font-size: 19px;
    }
    
    /* ===== 下载页面优化 ===== */
    
    .download-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 28px;
        padding: 28px 48px;
    }
    
    /* ===== 关于页面优化 ===== */
    
    .about-section {
        max-width: 1200px;
    }
    
    .about-image {
        height: 500px;
    }
}

/* ========================================= */
/* 平板端通用组件优化                         */
/* ========================================= */

@media screen and (min-width: 768px) {
    /* 卡片阴影增强 */
    .mobile-card {
        box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    }
    
    .mobile-card:hover {
        box-shadow: 0 8px 24px rgba(0,0,0,0.12);
        transform: translateY(-2px);
    }
    
    /* 按钮增大 */
    .touch-target {
        min-width: 48px;
        min-height: 48px;
    }
    
    /* 表单元素增大 */
    input[type="text"],
    input[type="email"],
    input[type="tel"],
    input[type="search"],
    textarea,
    select {
        padding: 14px 18px;
        font-size: 16px;
        border-radius: 10px;
    }
    
    /* 按钮样式 */
    button,
    .btn,
    input[type="submit"] {
        padding: 14px 28px;
        font-size: 16px;
        border-radius: 10px;
    }
}

@media screen and (min-width: 1024px) {
    /* 卡片悬停效果 */
    .mobile-card:hover {
        transform: translateY(-4px);
    }
    
    /* 链接悬停效果 */
    .list-link:hover .list-title,
    .product-link:hover .product-title {
        color: #005599;
    }
    
    .list-link:hover .list-image img,
    .product-link:hover .product-image img {
        transform: scale(1.05);
    }
    
    .list-image img,
    .product-image img {
        transition: transform 0.3s ease;
    }
}
