/* 响应式设计补充样式 */

/* 移动端导航栏优化 */
@media (max-width: 768px) {
    .navbar {
        padding: 16px 0;
    }
    
    .nav-container {
        padding: 0 16px;
        height: 70px;
    }
    
    .nav-logo {
        gap: 8px;
    }
    
    .logo-img {
        width: 35px;
        height: 35px;
    }
    
    .logo-text {
        font-size: 0.9rem;
    }
    
    .hamburger {
        width: 24px;
        height: 18px;
        display: flex;
    }
    
    .hamburger .bar {
        height: 2px;
    }
    
    /* 移动端菜单样式 */
    .nav-menu {
        position: fixed;
        top: 70px;
        left: 0;
        width: 100%;
        background: rgba(10, 61, 98, 0.95);
        backdrop-filter: blur(10px);
        flex-direction: column;
        padding: 20px 0;
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
        box-shadow: 0 10px 25px rgba(0,0,0,0.1);
        border-radius: 0 0 12px 12px;
    }
    
    .nav-menu.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }
    
    .nav-item {
        margin: 0;
        width: 100%;
        text-align: center;
    }
    
    .nav-link {
        padding: 16px 20px;
        display: block;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    .nav-link:last-child {
        border-bottom: none;
    }
    
    .dropdown-menu {
        position: static;
        background: transparent;
        box-shadow: none;
        opacity: 1;
        visibility: visible;
        transform: none;
        margin-top: 0;
        padding: 0;
        display: none;
        width: 100%;
    }
    
    .dropdown:hover .dropdown-menu,
    .dropdown.active .dropdown-menu {
        display: block;
    }
    
    .dropdown-menu a {
        color: rgba(255, 255, 255, 0.8);
        padding: 12px 20px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    }
    
    .dropdown-menu a:hover {
        color: white;
        background: rgba(255, 255, 255, 0.1);
    }
}

/* Hero区域移动端优化 */
@media (max-width: 768px) {
    .hero {
        min-height: 100vh;
        height: 100vh;
    }
    
    .hero-content {
        padding: 0 16px;
    }
    
    .hero-title {
        font-size: clamp(1.8rem, 6vw, 2.5rem);
        margin-bottom: 20px;
    }
    
    .hero-subtitle {
        font-size: clamp(1rem, 3vw, 1.2rem);
        margin-bottom: 32px;
        max-width: 100%;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
        gap: 16px;
    }
    
    .btn {
        width: 100%;
        max-width: 280px;
        justify-content: center;
    }
}

/* 服务卡片移动端优化 */
@media (max-width: 768px) {
    .services-overview {
        padding: 60px 0;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
        gap: 24px;
        padding: 0 16px;
    }
    
    .service-card {
        padding: 32px 24px;
    }
    
    .service-icon {
        width: 64px;
        height: 64px;
        margin-bottom: 20px;
    }
    
    .service-icon img {
        width: 32px;
        height: 32px;
    }
    
    .service-card h3 {
        font-size: 1.1rem;
        margin-bottom: 12px;
    }
    
    .service-card p {
        font-size: 0.9rem;
        margin-bottom: 20px;
    }
}

/* 公司优势移动端优化 */
@media (max-width: 768px) {
    .advantages {
        padding: 60px 0;
    }
    
    .advantages-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
        padding: 0 16px;
    }
    
    .advantage-item {
        padding: 20px;
    }
    
    .advantage-number {
        font-size: 2rem;
        margin-bottom: 8px;
    }
    
    .advantage-text h3 {
        font-size: 1rem;
        margin-bottom: 6px;
    }
    
    .advantage-text p {
        font-size: 0.85rem;
    }
}

@media (max-width: 480px) {
    .advantages-grid {
        grid-template-columns: 1fr;
    }
}

/* 新闻区域移动端优化 */
@media (max-width: 768px) {
    .news {
        padding: 60px 0;
    }
    
    .news-grid {
        grid-template-columns: 1fr;
        gap: 24px;
        padding: 0 16px;
    }
    
    .news-card {
        padding: 24px;
    }
    
    .news-title {
        font-size: 1.1rem;
        margin-bottom: 10px;
    }
    
    .news-excerpt {
        font-size: 0.9rem;
        margin-bottom: 16px;
    }
}

/* 页脚移动端优化 */
@media (max-width: 768px) {
    .footer {
        padding: 60px 0 30px;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 32px;
        padding: 0 16px;
    }
    
    .footer-section {
        text-align: center;
    }
    
    .footer-logo {
        justify-content: center;
    }
}

/* 通用移动端优化 */
@media (max-width: 768px) {
    .container {
        padding: 0 16px;
    }
    
    .section-title {
        font-size: clamp(1.5rem, 4vw, 2rem);
        margin-bottom: 40px;
    }
    
    /* 隐藏装饰性元素 */
    .decorative-element {
        display: none;
    }
    
    /* 优化触摸体验 */
    .btn,
    .nav-link,
    .service-card,
    .news-card {
        -webkit-tap-highlight-color: transparent;
    }
    
    /* 优化滚动性能 */
    .hero-image-full img {
        will-change: transform;
    }
}

/* 小屏幕设备优化 */
@media (max-width: 375px) {
    .hero-title {
        font-size: 1.6rem;
    }
    
    .hero-subtitle {
        font-size: 0.95rem;
    }
    
    .service-card {
        padding: 24px 16px;
    }
    
    .advantage-item {
        padding: 16px;
    }
    
    .news-card {
        padding: 20px;
    }
}

/* 更新通知样式 */
.update-notification {
    position: fixed;
    top: 80px;
    right: 20px;
    background: var(--primary-color);
    color: white;
    padding: 15px 20px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    z-index: 10000;
    animation: slideInRight 0.3s ease;
    max-width: 300px;
}

.update-content {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.update-content span {
    font-weight: 500;
    margin-bottom: 5px;
}

.update-content button {
    background: white;
    color: var(--primary-color);
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.update-content button:hover {
    background: #f8f9fa;
    transform: translateY(-1px);
}

.update-content button:last-child {
    background: transparent;
    color: white;
    border: 1px solid white;
}

.update-content button:last-child:hover {
    background: rgba(255,255,255,0.1);
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
/* 图片懒加载样式 */
img[data-src] {
    opacity: 0;
    transition: opacity 0.3s ease;
}

img[data-src].loading {
    opacity: 0.5;
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
}

img[data-src].loaded {
    opacity: 1;
}

img[data-src].error {
    opacity: 1;
    filter: grayscale(100%);
}

@keyframes loading {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
/* 更新通知样式 */
.update-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background: var(--primary-color);
    color: white;
    padding: 15px 20px;
    border-radius: 8px;
    box-shadow: var(--shadow-heavy);
    z-index: 10000;
    transform: translateX(400px);
    transition: transform 0.3s ease;
    max-width: 300px;
}

.update-notification.show {
    transform: translateX(0);
}

.update-content {
    display: flex;
    align-items: center;
    gap: 10px;
}

.update-content i {
    font-size: 1.2rem;
}

.update-content p {
    margin: 0;
    font-size: 0.9rem;
    flex: 1;
}

.update-content button {
    background: white;
    color: var(--primary-color);
    border: none;
    padding: 5px 10px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.8rem;
    font-weight: 500;
}

.update-content button:hover {
    background: #f8fafc;
}

/* 图片懒加载样式 */
img[data-src] {
    opacity: 0;
    transition: opacity 0.3s ease;
}

img[data-src].loading {
    opacity: 0.5;
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
}

img[data-src].loaded {
    opacity: 1;
}

img[data-src].error {
    opacity: 1;
    filter: grayscale(100%);
}

@keyframes loading {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

/* 图片错误提示 */
.image-error-message {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 10px 15px;
    border-radius: 5px;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 8px;
    z-index: 10;
    animation: fadeIn 0.3s ease;
}

.image-error-message button {
    background: none;
    border: none;
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
    margin-left: 10px;
    padding: 0;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.image-error-message button:hover {
    opacity: 0.7;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.8);
    }
    to {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
}

/* 图片错误提示 */
.image-error-message {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 10px 15px;
    border-radius: 5px;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 8px;
    z-index: 10;
    animation: fadeIn 0.3s ease;
}

.image-error-message button {
    background: none;
    border: none;
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
    margin-left: 10px;
    padding: 0;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.image-error-message button:hover {
    opacity: 0.7;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.8);
    }
    to {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
}

/* 平板设备响应式样式 */
@media (max-width: 1024px) {
    .container {
        padding: 0 20px;
    }
    
    .nav-container {
        padding: 0 20px;
    }
    
    /* 导航栏优化 */
    .navbar {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        background: var(--primary-color);
        z-index: 1000;
        box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    }
    
    .nav-menu {
        position: fixed;
        top: 80px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 80px);
        background: var(--primary-color);
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
        padding-top: 40px;
        transition: left 0.3s ease;
        z-index: 999;
        overflow-y: auto;
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .nav-link {
        color: rgba(255,255,255,0.9);
        font-size: 1.1rem;
        padding: 15px 30px;
        width: 100%;
        text-align: center;
        border-radius: 0;
    }
    
    .nav-link:hover {
        background: rgba(255,255,255,0.1);
        color: white;
    }
    
    .nav-item {
        width: 100%;
    }
    
    .nav-link.active {
        background: rgba(255,255,255,0.15);
        color: white;
    }
    
    .nav-link.active::after {
        display: none;
    }
    
    /* 下拉菜单样式调整 */
    .nav-dropdown {
        width: 100%;
        text-align: center;
    }
    
    .nav-dropdown .dropdown-content {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        background: rgba(255,255,255,0.1);
        width: 100%;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
    }
    
    .nav-dropdown.active .dropdown-content {
        max-height: 200px;
    }
    
    .dropdown-content li {
        width: 100%;
    }
    
    .dropdown-content a {
        color: rgba(255,255,255,0.8);
        padding: 10px 20px;
        font-size: 1rem;
        border-bottom: 1px solid rgba(255,255,255,0.1);
    }
    
    .dropdown-content a:hover {
        background: rgba(255,255,255,0.15);
        color: white;
        padding-left: 25px;
    }
    
    /* 汉堡菜单 */
    .nav-toggle {
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        width: 30px;
        height: 21px;
        cursor: pointer;
        z-index: 1001;
    }
    
    .nav-toggle span {
        display: block;
        width: 100%;
        height: 3px;
        background: white;
        border-radius: 2px;
        transition: all 0.3s ease;
    }
    
    .nav-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }
    
    .nav-toggle.active span:nth-child(2) {
        opacity: 0;
    }
    
    .nav-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -6px);
    }
    
    /* 服务网格调整 */
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }
    
    /* 新闻网格调整 */
    .news-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    /* 页面横幅调整 */
    .page-banner {
        padding: 100px 0 60px;
    }
    
    .banner-content h1 {
        font-size: 2.5rem;
        text-align: left;
    }
    
    /* 更新通知响应式 */
    .update-notification {
        right: 10px;
        top: 90px;
        max-width: calc(100vw - 20px);
    }
    
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }
}]}

/* 手机设备 */
@media (max-width: 768px) {
    .navbar {
        padding: 0;
    }
    
    .nav-container {
        height: 70px;
        padding: 0 15px;
    }
    
    .logo-img {
        height: 35px;
    }
    
    .logo-text {
        font-size: 1.3rem;
    }
    
    .hero {
        padding: 100px 0 60px;
    }
    
    .hero-content {
        grid-template-columns: 1fr;
        gap: 30px;
        text-align: center;
    }
    
    .hero-title {
        font-size: 2rem;
        margin-bottom: 15px;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
        margin-bottom: 30px;
    }
    
    .hero-image {
        order: -1;
    }
    
    .hero-buttons {
        flex-direction: column;
        gap: 15px;
        align-items: center;
    }
    
    .btn {
        padding: 12px 25px;
        font-size: 1rem;
        min-width: 200px;
    }
    
    .services-overview,
    .advantages,
    .news {
        padding: 60px 0;
    }
    
    .section-title {
        font-size: 2.2rem;
        margin-bottom: 40px;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }
    
    .service-card {
        padding: 30px 25px;
    }
    
    .service-icon {
        width: 70px;
        height: 70px;
        margin-bottom: 15px;
    }
    
    .service-icon img {
        width: 35px;
        height: 35px;
    }
    
    .service-card h3 {
        font-size: 1.4rem;
        margin-bottom: 12px;
    }
    
    .advantages-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }
    
    .advantage-item {
        padding: 20px;
    }
    
    .advantage-number {
        font-size: 2.5rem;
        margin-bottom: 8px;
    }
    
    .advantage-text h3 {
        font-size: 1.2rem;
        margin-bottom: 8px;
    }
    
    .news-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }
    
    .news-card {
        padding: 25px;
    }
    
    .news-title {
        font-size: 1.1rem;
        margin-bottom: 12px;
    }
    
    .footer {
        padding: 40px 0 15px;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
        margin-bottom: 30px;
        text-align: center;
    }
    
    .footer-section h3 {
        margin-bottom: 15px;
    }
    
    .footer-logo {
        justify-content: center;
    }
    
    .social-links {
        justify-content: center;
    }
    
    .footer-bottom {
        padding-top: 15px;
        font-size: 0.8rem;
    }
}

/* 小屏手机 */
@media (max-width: 480px) {
    .nav-container {
        height: 65px;
    }
    
    .logo {
        width: 35px;
        height: 35px;
    }
    
    .company-name {
        font-size: 1rem;
    }
    
    .hero {
        padding: 90px 0 50px;
    }
    
    .hero-title {
        font-size: 1.8rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .btn {
        padding: 10px 20px;
        font-size: 0.9rem;
        min-width: 180px;
    }
    
    .services-overview,
    .advantages,
    .news {
        padding: 50px 0;
    }
    
    .section-title {
        font-size: 2rem;
        margin-bottom: 30px;
    }
    
    .service-card {
        padding: 25px 20px;
    }
    
    .service-icon {
        width: 60px;
        height: 60px;
    }
    
    .service-icon img {
        width: 30px;
        height: 30px;
    }
    
    .service-card h3 {
        font-size: 1.3rem;
    }
    
    .advantage-number {
        font-size: 2.2rem;
    }
    
    /* 导航菜单调整 */
    .nav-menu {
        top: 65px;
        height: calc(100vh - 65px);
    }
    
    .nav-link {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
    
    .dropdown-content a {
        padding: 8px 15px;
        font-size: 0.85rem;
    }
    
    /* 页面横幅 */
    .page-banner {
        padding: 70px 0 35px;
    }
    
    .banner-content h1 {
        font-size: 1.8rem;
        text-align: left;
    }
    
    /* 新闻分类标签 */
    .news-tabs {
        flex-wrap: wrap;
        gap: 10px;
        margin-bottom: 20px;
    }
    
    .news-tab {
        padding: 8px 15px;
        font-size: 0.9rem;
        flex: 1;
        min-width: 100px;
        text-align: center;
    }
    
    /* 图片懒加载 */
    .img-container {
        height: 180px;
    }
    
    .error-placeholder {
        padding: 15px;
    }
    
    .error-placeholder i {
        font-size: 1.8rem;
    }
    
    /* 更新通知 */
    .update-notification {
        top: 75px;
        padding: 12px;
    }
    
    .update-content h4 {
        font-size: 0.9rem;
    }
    
    .update-content p {
        font-size: 0.8rem;
    }
    
    .news-card {
        padding: 20px;
    }
    
    .news-title {
        font-size: 1rem;
    }
    
    .social-link {
        padding: 6px 12px;
        font-size: 0.8rem;
    }
}

/* 横屏模式 */
@media (max-height: 500px) and (orientation: landscape) {
    .hero {
        padding: 80px 0 40px;
    }
    
    .hero-title {
        font-size: 1.6rem;
    }
    
    .hero-subtitle {
        font-size: 0.9rem;
        margin-bottom: 20px;
    }
    
    .btn {
        padding: 8px 16px;
        font-size: 0.8rem;
    }
    
    .services-overview,
    .advantages,
    .news {
        padding: 40px 0;
    }
    
    .section-title {
        font-size: 1.8rem;
        margin-bottom: 25px;
    }
}

/* 触摸设备优化 */
@media (hover: none) and (pointer: coarse) {
    .service-card:hover,
    .news-card:hover {
        transform: none;
    }
    
    .btn:hover {
        transform: none;
    }
    
    .nav-link:hover {
        background-color: transparent;
    }
    
    .dropdown:hover .dropdown-menu {
        display: none;
    }
    
    .dropdown.active .dropdown-menu {
        display: block;
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }
}

/* 打印样式 */
@media print {
    .navbar,
    .hero-buttons,
    .social-links,
    .footer {
        display: none;
    }
    
    .hero {
        padding: 20px 0;
        background: none !important;
        color: var(--text-color) !important;
    }
    
    .service-card,
    .news-card {
        box-shadow: none;
        border: 1px solid var(--border-color);
    }
}

/* 高对比度模式 */
@media (prefers-contrast: high) {
    :root {
        --primary-color: #000080;
        --secondary-color: #0066cc;
        --accent-color: #cc6600;
        --text-color: #000000;
        --text-light: #333333;
        --border-color: #000000;
    }
    
    .service-card,
    .news-card {
        border: 2px solid var(--border-color);
    }
    
    .btn-primary {
        border: 2px solid #000000;
    }
}

/* 减少动画 */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .service-card:hover,
    .news-card:hover,
    .btn:hover {
        transform: none;
    }
}