/* Component Loading Styles */
.component-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    margin: 10px 0;
    color: #6c757d;
    font-size: 14px;
}

.component-loading::before {
    content: '';
    width: 20px;
    height: 20px;
    border: 2px solid #e9ecef;
    border-top: 2px solid #007bff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-right: 10px;
}

.component-error {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 15px;
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    border-radius: 8px;
    margin: 10px 0;
    color: #856404;
    font-size: 14px;
    text-align: center;
}

.component-error::before {
    content: '⚠️';
    margin-right: 8px;
    font-size: 16px;
}

/* Loading animation */
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Hide placeholders when components are loaded */
#header-placeholder:empty,
#footer-placeholder:empty {
    display: none;
}

/* 确保头部占位符完全透明，不影响视觉效果 */
#header-placeholder {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: transparent !important;
    min-height: 0;
}

#footer-placeholder {
    min-height: 60px;
}

/* 头部占位符加载动画 - 完全透明 */
#header-placeholder::before {
    display: none !important;
}

/* 底部占位符加载动画 */
#footer-placeholder::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 40px;
    height: 40px;
    border: 3px solid #e9ecef;
    border-top: 3px solid #007bff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

/* Hide loading animation after component loads */
#header-placeholder:not(:empty)::before,
#footer-placeholder:not(:empty)::before {
    display: none;
} 

/* Legal Warning Banner */
.legal-warning-banner {
    background: #ffffff;
    color: #333333;
    padding: 12px 0;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1002;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    border-bottom: 1px solid #e0e0e0;
    animation: slideDown 0.5s ease-out;
    transition: transform 0.3s ease-in-out, opacity 0.3s ease-in-out;
}

.legal-warning-banner .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.warning-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    max-width: 100%;
}

.warning-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: #fff3cd;
    border-radius: 50%;
    flex-shrink: 0;
}

.warning-icon i {
    color: #856404;
    font-size: 18px;
}

.warning-text {
    flex: 1;
    max-width: 800px;
}

.warning-main {
    font-weight: 600;
    font-size: 16px;
    color: #d63384;
    margin: 0 0 4px 0;
    line-height: 1.3;
}

.warning-detail {
    font-size: 14px;
    color: #495057;
    margin: 0;
    line-height: 1.4;
}

/* 警告横幅显示/隐藏控制 - 支持两种类名 */
.legal-warning-banner.hidden,
.legal-warning-banner.scroll-hidden {
    transform: translateY(-100%);
    opacity: 0;
    /* 🔧 确保隐藏时不占用空间 */
    pointer-events: none;
}

/* Body偏移控制 */
body.warning-banner-active {
    padding-top: 60px;
}

/* 警告横幅隐藏时移除偏移 */
body:not(.warning-banner-active) {
    padding-top: 0;
}

/* 🔧 页面加载时的默认状态 - 避免刷新时的布局闪烁 */
body {
    transition: padding-top 0.3s ease-in-out;
}

/* 所有页面统一的header偏移调整 */
body.warning-banner-active .header {
    top: 60px;
    transition: top 0.3s ease-in-out;
}

/* 警告横幅隐藏时header回到顶部 */
body:not(.warning-banner-active) .header {
    top: 0;
    transition: top 0.3s ease-in-out;
}

/* Products页面和ID查询页面的page-header偏移调整 */
body.warning-banner-active .products-page .page-header,
body.warning-banner-active .id-query-page .page-header {
    margin-top: 60px;
}

/* FAQ页面和服务政策页面的page-header偏移调整 */
body.warning-banner-active .faq-page .page-header,
body.warning-banner-active .service-policy-page .page-header,
body.warning-banner-active .id-query-page .page-header {
    padding-top: 140px; /* 原80px + 60px偏移 */
}

/* FAQ页面和服务政策页面的装饰性元素向上延伸 */
body.warning-banner-active .faq-page .page-header::before,
body.warning-banner-active .service-policy-page .page-header::before,
body.warning-banner-active .id-query-page .page-header::before {
    top: -60px;
    height: calc(100% + 60px);
}

body.warning-banner-active .faq-page .page-header::after,
body.warning-banner-active .service-policy-page .page-header::after,
body.warning-banner-active .id-query-page .page-header::after {
    top: -60px;
    height: calc(100% + 60px);
}



/* 移动端适配 */
@media (max-width: 768px) {
    .legal-warning-banner {
        padding: 10px 0;
    }

    body.warning-banner-active {
        padding-top: 50px;
    }

    body:not(.warning-banner-active) {
        padding-top: 0;
    }

    body.warning-banner-active .header {
        top: 50px;
    }

    body:not(.warning-banner-active) .header {
        top: 0;
    }

    body.warning-banner-active .products-page .page-header,
    body.warning-banner-active .id-query-page .page-header {
        margin-top: 50px;
    }

    body.warning-banner-active .faq-page .page-header,
    body.warning-banner-active .service-policy-page .page-header,
    body.warning-banner-active .id-query-page .page-header {
        padding-top: 130px; /* 原80px + 50px偏移 */
    }

    body.warning-banner-active .faq-page .page-header::before,
    body.warning-banner-active .service-policy-page .page-header::before,
    body.warning-banner-active .id-query-page .page-header::before {
        top: -50px;
        height: calc(100% + 50px);
    }

    body.warning-banner-active .faq-page .page-header::after,
    body.warning-banner-active .service-policy-page .page-header::after,
    body.warning-banner-active .id-query-page .page-header::after {
        top: -50px;
        height: calc(100% + 50px);
    }

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

    .warning-main {
        font-size: 15px;
    }

    .warning-detail {
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .legal-warning-banner {
        padding: 8px 0;
    }

    body.warning-banner-active {
        padding-top: 44px;
    }

    body:not(.warning-banner-active) {
        padding-top: 0;
    }

    body.warning-banner-active .header {
        top: 44px;
    }

    body:not(.warning-banner-active) .header {
        top: 0;
    }

    body.warning-banner-active .products-page .page-header,
    body.warning-banner-active .id-query-page .page-header {
        margin-top: 44px;
    }

    body.warning-banner-active .faq-page .page-header,
    body.warning-banner-active .service-policy-page .page-header,
    body.warning-banner-active .id-query-page .page-header {
        padding-top: 124px; /* 原80px + 44px偏移 */
    }

    body.warning-banner-active .faq-page .page-header::before,
    body.warning-banner-active .service-policy-page .page-header::before,
    body.warning-banner-active .id-query-page .page-header::before {
        top: -44px;
        height: calc(100% + 44px);
    }

    body.warning-banner-active .faq-page .page-header::after,
    body.warning-banner-active .service-policy-page .page-header::after,
    body.warning-banner-active .id-query-page .page-header::after {
        top: -44px;
        height: calc(100% + 44px);
    }

    .warning-icon {
        width: 32px;
        height: 32px;
    }

    .warning-icon i {
        font-size: 16px;
    }

    .warning-main {
        font-size: 14px;
    }

    .warning-detail {
        font-size: 12px;
    }
}

@keyframes slideDown {
    from {
        transform: translateY(-100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Contact Form Styles for faq-page layout */
.contact-form .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.contact-form .form-group {
    margin-bottom: 20px;
}

.contact-form .form-group label {
    display: block;
    font-weight: 500;
    color: #333;
    margin-bottom: 8px;
    font-size: 14px;
}

.contact-form .form-group input,
.contact-form .form-group select,
.contact-form .form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 14px;
    transition: border-color 0.3s ease;
    background: #fafafa;
    box-sizing: border-box;
}

.contact-form .form-group input:focus,
.contact-form .form-group select:focus,
.contact-form .form-group textarea:focus {
    outline: none;
    border-color: #007bff;
    background: white;
}

.contact-form .form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.contact-form .checkbox-group {
    margin: 25px 0;
    padding: 25px;
    background: linear-gradient(135deg, #e3f2fd, #bbdefb);
    border: 3px solid #007bff;
    border-radius: 15px;
    box-shadow: 0 6px 20px rgba(0, 123, 255, 0.15);
    position: relative;
}

.contact-form .checkbox-group::before {
    content: '⚠️';
    position: absolute;
    top: -15px;
    left: 20px;
    background: #007bff;
    color: white;
    padding: 8px 12px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: bold;
}

.contact-form .checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    font-size: 17px;
    color: #1a1a1a;
    font-weight: 700;
    cursor: pointer;
    line-height: 1.6;
}

.contact-form .checkbox-label input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    cursor: pointer;
}

.contact-form .checkmark {
    width: 32px;
    height: 32px;
    background: #fff;
    border: 4px solid #007bff;
    border-radius: 8px;
    position: relative;
    flex-shrink: 0;
    margin-top: 2px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 123, 255, 0.3);
}

.contact-form .checkbox-label:hover .checkmark {
    background: #e3f2fd;
    border-color: #0056b3;
    box-shadow: 0 6px 20px rgba(0, 123, 255, 0.4);
    transform: scale(1.1);
}

.contact-form .checkbox-label input[type="checkbox"]:checked + .checkmark {
    background: #007bff;
    border-color: #007bff;
    box-shadow: 0 6px 20px rgba(0, 123, 255, 0.5);
    animation: checkboxPulse 0.6s ease-out;
}

.contact-form .checkbox-label input[type="checkbox"]:checked + .checkmark::after {
    content: '';
    position: absolute;
    left: 10px;
    top: 5px;
    width: 10px;
    height: 18px;
    border: solid white;
    border-width: 0 4px 4px 0;
    transform: rotate(45deg);
    animation: checkmarkSlide 0.3s ease-out 0.1s both;
}

.contact-form .checkbox-label input[type="checkbox"]:focus + .checkmark {
    outline: 4px solid rgba(0, 123, 255, 0.4);
    outline-offset: 3px;
}

/* 添加动画效果 */
@keyframes checkboxPulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); }
}

@keyframes checkmarkSlide {
    0% { 
        opacity: 0;
        transform: rotate(45deg) translateY(10px);
    }
    100% { 
        opacity: 1;
        transform: rotate(45deg) translateY(0);
    }
}

/* 未选中状态的视觉提示 */
.contact-form .checkbox-label:not(:has(input:checked)) .checkmark::before {
    content: '?';
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    font-size: 18px;
    font-weight: bold;
    color: #007bff;
    opacity: 0.6;
}

/* Social contact section */
.social-contact {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.social-contact h4 {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin-bottom: 15px;
}

/* Responsive Design for Contact Form */
@media (max-width: 768px) {
    .contact-form .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }
}

@media (max-width: 480px) {
    .contact-form .form-group input,
    .contact-form .form-group select,
    .contact-form .form-group textarea {
        padding: 10px 12px;
        font-size: 16px; /* Prevent zoom on iOS */
    }
}

/* Chat Now Button and Contact Modal Styles */

/* Chat Now Button - Fixed position bottom right */
.chat-now-button {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: linear-gradient(135deg, #007bff, #0056b3);
    color: white;
    border: none;
    border-radius: 50px;
    padding: 12px 20px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    z-index: 999;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 20px rgba(0, 123, 255, 0.4);
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.chat-now-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(0, 123, 255, 0.6);
    background: linear-gradient(135deg, #0056b3, #004085);
}

.chat-now-button:active {
    transform: translateY(0);
}

.chat-now-button i {
    font-size: 16px;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

/* Contact Modal */
.contact-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1000;
    display: none;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    pointer-events: none;
}

.contact-modal.active {
    display: block;
    opacity: 1;
    visibility: visible;
    pointer-events: all;
}

.contact-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
    cursor: pointer;
}

.contact-modal-content {
    position: fixed;
    background: white;
    border-radius: 12px;
    width: 380px;
    max-width: calc(100vw - 40px);
    max-height: calc(100vh - 100px);
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
    transform: translateY(20px) scale(0.9);
    transition: all 0.3s ease;
    /* 默认位置，会被JavaScript动态调整 */
    bottom: 100px;
    right: 30px;
    transform-origin: bottom right;
}

.contact-modal.active .contact-modal-content {
    transform: translateY(0) scale(1);
}

/* 添加一个小箭头指向按钮 */
.contact-modal-content::after {
    content: '';
    position: absolute;
    bottom: -8px;
    right: var(--arrow-left, 25px);
    width: 16px;
    height: 16px;
    background: white;
    transform: rotate(45deg);
    box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.1);
    z-index: -1;
}

.contact-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    border-bottom: 1px solid #e9ecef;
    background: #f8f9fa;
}

.contact-modal-header h3 {
    margin: 0;
    font-size: 20px;
    font-weight: 600;
    color: #333;
}

.contact-modal-close {
    background: none;
    border: none;
    font-size: 24px;
    color: #666;
    cursor: pointer;
    padding: 5px;
    border-radius: 50%;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
}

.contact-modal-close:hover {
    background: #e9ecef;
    color: #333;
}

.contact-modal-body {
    padding: 24px;
    max-height: calc(90vh - 80px);
    overflow-y: auto;
}

.contact-section {
    margin-bottom: 24px;
}

.contact-section:last-child {
    margin-bottom: 0;
}

.contact-section h4 {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin: 0 0 12px 0;
    padding-bottom: 8px;
    border-bottom: 2px solid #007bff;
    display: inline-block;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid #f1f1f1;
}

.contact-item:last-child {
    border-bottom: none;
}

.contact-item i {
    font-size: 18px;
    color: #007bff;
    width: 24px;
    text-align: center;
}

.contact-item > div {
    flex: 1;
}

.contact-item span {
    display: block;
    font-size: 13px;
    color: #666;
    margin-bottom: 2px;
}

.contact-item a {
    color: #333;
    font-weight: 500;
    text-decoration: none;
    font-size: 15px;
}

.contact-item a:hover {
    color: #007bff;
}

/* Facebook Contacts */
.facebook-contacts {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.facebook-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px;
    background: #f8f9fa;
    border-radius: 8px;
    transition: all 0.2s ease;
    cursor: pointer;
}

.facebook-item:hover {
    background: #e9ecef;
    transform: translateY(-1px);
}

.facebook-item i {
    font-size: 20px;
    color: #1877f2;
}

.facebook-item span {
    font-weight: 500;
    color: #333;
}

/* QR Codes */
.qr-codes {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.qr-item {
    text-align: center;
    padding: 16px;
    background: #f8f9fa;
    border-radius: 12px;
    transition: all 0.2s ease;
}

.qr-item:hover {
    background: #e9ecef;
    transform: translateY(-2px);
}

.qr-item img {
    width: 100px;
    height: 100px;
    border-radius: 8px;
    margin-bottom: 8px;
    object-fit: cover;
}

.qr-item span {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: #333;
}

/* Online Service */
.online-service {
    margin-top: 8px;
}

.online-service-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
    color: white;
    text-decoration: none;
    border-radius: 12px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.online-service-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s ease;
}

.online-service-link:hover::before {
    left: 100%;
}

.online-service-link:hover {
    background: linear-gradient(135deg, #0056b3 0%, #004094 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 123, 255, 0.3);
}

.online-service-link:active {
    transform: translateY(0);
}

.online-service-link > i:first-child {
    font-size: 20px;
    color: #fff;
    opacity: 0.9;
}

.online-service-link > div {
    flex: 1;
}

.online-service-link > div span {
    display: block;
    font-size: 15px;
    font-weight: 600;
    color: white;
    margin-bottom: 2px;
}

.online-service-link > div small {
    display: block;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 400;
}

.online-service-link > i:last-child {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
    opacity: 0.8;
    transition: all 0.2s ease;
}

.online-service-link:hover > i:last-child {
    opacity: 1;
    color: white;
    transform: translateX(2px);
}

/* Mobile Adaptations */
@media (max-width: 768px) {
    .chat-now-button {
        bottom: 20px;
        right: 20px;
        padding: 10px 16px;
        font-size: 13px;
    }
    
    .chat-now-button span {
        display: none;
    }
    
    .chat-now-button {
        width: 50px;
        height: 50px;
        border-radius: 50%;
        justify-content: center;
        padding: 0;
    }
    
    .chat-now-button i {
        font-size: 20px;
        margin: 0;
    }
    
    .contact-modal-content {
        width: calc(100vw - 30px);
        right: 15px;
        bottom: 85px;
        max-height: calc(100vh - 120px);
    }
    
    .contact-modal-content::after {
        right: 20px;
    }
    
    .contact-modal-header {
        padding: 16px 20px;
    }
    
    .contact-modal-header h3 {
        font-size: 18px;
    }
    
    .contact-modal-body {
        padding: 20px;
    }
    
    .contact-section {
        margin-bottom: 20px;
    }
    
    .contact-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
        padding: 12px 0;
    }
    
    .contact-item i {
        align-self: flex-start;
    }
    
    .facebook-contacts {
        grid-template-columns: 1fr;
        gap: 8px;
    }
    
    .qr-codes {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .qr-item img {
        width: 120px;
        height: 120px;
    }
    
    .online-service-link {
        padding: 12px 14px;
    }
    
    .online-service-link > div span {
        font-size: 14px;
    }
    
    .online-service-link > div small {
        font-size: 11px;
    }
}

@media (max-width: 480px) {
    .chat-now-button {
        bottom: 15px;
        right: 15px;
        width: 45px;
        height: 45px;
    }
    
    .chat-now-button i {
        font-size: 18px;
    }
    
    .contact-modal-content {
        width: calc(100vw - 20px);
        right: 10px;
        bottom: 75px;
        border-radius: 8px;
        max-height: calc(100vh - 100px);
    }
    
    .contact-modal-content::after {
        right: 15px;
    }
    
    .contact-modal-header {
        padding: 14px 16px;
    }
    
    .contact-modal-body {
        padding: 16px;
    }
    
    .contact-section h4 {
        font-size: 15px;
    }
    
    .contact-item {
        padding: 10px 0;
    }
    
    .qr-item {
        padding: 12px;
    }
    
    .qr-item img {
        width: 100px;
        height: 100px;
    }
    
    .online-service-link {
        padding: 10px 12px;
    }
    
    .online-service-link > i:first-child {
        font-size: 18px;
    }
    
    .online-service-link > div span {
        font-size: 13px;
    }
    
    .online-service-link > div small {
        font-size: 10px;
    }
    
    .online-service-link > i:last-child {
        font-size: 12px;
    }
}

/* ===========================================
   固件下载页面布局强制重置
   =========================================== */

/* 强制上下布局 */
.firmware-page .content-wrapper > * {
    width: 100% !important;
    display: block !important;
    float: none !important;
    position: relative !important;
}

.firmware-page .content-wrapper > .firmware-notice {
    margin-bottom: 24px !important;
}

.firmware-page .content-wrapper > .firmware-download-area {
    margin-top: 0 !important;
}

/* 确保没有左右浮动 */
.firmware-notice,
.firmware-download-area {
    clear: both !important;
    float: none !important;
}

/* ===========================================
   固件下载页面 - 完整宽度设计
   =========================================== */

/* 页面容器 - 完整宽度上下布局 */
.firmware-page .container {
    max-width: 100%;
    margin: 0;
    padding: 0 20px;
}

.firmware-page .content-wrapper {
    padding: 20px 0;
    max-width: 100%;
    display: flex;
    flex-direction: column;
    gap: 0;
    width: 100%;
}

/* PC端优化 */
@media (min-width: 1200px) {
    .firmware-page .container {
        max-width: 100%;
        padding: 0 30px;
    }
    
    .firmware-page .content-wrapper {
        padding: 30px 0;
    }
    
    .firmware-list-header {
        padding: 25px 30px;
    }
    
    .firmware-list-header h3 {
        font-size: 22px;
    }
    
    .firmware-list-header p {
        font-size: 15px;
    }
    
    /* PC端表格优化 */
    .firmware-table {
        font-size: 15px;
    }
    
    .firmware-table th {
        padding: 20px 18px;
        font-size: 14px;
    }
    
    .firmware-table td {
        padding: 18px 18px;
    }
    
    .download-btn-table,
    .changelog-btn-table {
        width: 40px;
        height: 40px;
    }
    
    .download-btn-table i,
    .changelog-btn-table i {
        font-size: 16px;
    }
}

/* 超大屏幕优化 */
@media (min-width: 1400px) {
    .firmware-page .container {
        max-width: 100%;
        padding: 0 40px;
    }
}

/* 大屏幕优化 */
@media (min-width: 1600px) {
    .firmware-page .container {
        max-width: 100%;
        padding: 0 50px;
    }
}

/* 中等屏幕优化 */
@media (min-width: 992px) and (max-width: 1199px) {
    .firmware-page .container {
        max-width: 100%;
        padding: 0 25px;
    }
    
    .firmware-table {
        font-size: 14px;
    }
    
    .firmware-table th {
        padding: 16px 14px;
    }
    
    .firmware-table td {
        padding: 16px 14px;
    }
}

/* 平板屏幕优化 */
@media (min-width: 768px) and (max-width: 991px) {
    .firmware-table {
        font-size: 13px;
    }
    
    .firmware-table th {
        padding: 14px 12px;
    }
    
    .firmware-table td {
        padding: 14px 12px;
    }
    
    .download-btn-table,
    .changelog-btn-table {
        width: 32px;
        height: 32px;
    }
    
    .download-btn-table i,
    .changelog-btn-table i {
        font-size: 13px;
    }
}

/* Firmware Update Website Notice */
.firmware-update-website {
    background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
    border: 1px solid #42a5f5;
    border-radius: 12px;
    padding: 20px;
    margin: 0 0 24px 0;
    display: flex;
    align-items: flex-start;
    gap: 15px;
    box-shadow: 0 4px 15px rgba(66, 165, 245, 0.2);
    width: 100%;
    box-sizing: border-box;
    flex-shrink: 0;
    position: relative;
    overflow: hidden;
}

.firmware-update-website::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #1976d2, #42a5f5, #64b5f6);
}

.firmware-update-website .website-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #1976d2, #42a5f5);
    border-radius: 50%;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(25, 118, 210, 0.3);
}

.firmware-update-website .website-icon i {
    color: white;
    font-size: 20px;
}

.firmware-update-website .website-content h3 {
    color: #1565c0;
    font-size: 18px;
    font-weight: 700;
    margin: 0 0 10px 0;
}

.firmware-update-website .website-content p {
    color: #424242;
    font-size: 14px;
    line-height: 1.6;
    margin: 8px 0;
}

.firmware-update-website .website-content a {
    color: #1976d2;
    text-decoration: none;
    font-weight: 500;
    margin-left: 0.5rem;
    padding: 2px 8px;
    background: rgba(25, 118, 210, 0.1);
    border-radius: 4px;
    transition: all 0.3s ease;
}

.firmware-update-website .website-content a:hover {
    background: rgba(25, 118, 210, 0.2);
    transform: translateY(-1px);
}

/* Firmware Notice - 完整宽度上方显示 */
.firmware-notice {
    background: linear-gradient(135deg, #fff3cd, #ffeaa7);
    border: 2px solid #ffc107;
    border-radius: 12px;
    padding: 20px;
    margin: 0 0 24px 0;
    display: flex;
    align-items: flex-start;
    gap: 15px;
    box-shadow: 0 4px 15px rgba(255, 193, 7, 0.2);
    width: 100%;
    box-sizing: border-box;
    flex-shrink: 0;
    order: 1;
}

.firmware-notice .notice-icon {
    flex-shrink: 0;
    width: 50px;
    height: 50px;
    background: #ffc107;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 20px;
}

.firmware-notice .notice-content h3 {
    color: #856404;
    font-size: 18px;
    font-weight: 700;
    margin: 0 0 10px 0;
}

.firmware-notice .notice-content ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.firmware-notice .notice-content li {
    color: #856404;
    font-size: 14px;
    margin: 8px 0;
    padding-left: 20px;
    position: relative;
}

.firmware-notice .notice-content li::before {
    content: '⚠️';
    position: absolute;
    left: 0;
    font-size: 12px;
}

/* 固件下载区域 - 完整宽度下方显示 */
.firmware-download-area {
    width: 100%;
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    border: 1px solid #e9ecef;
    margin: 0;
    display: block;
    box-sizing: border-box;
    flex-shrink: 0;
    order: 2;
}

/* 标题区域 */
.firmware-header {
    padding: 24px;
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    border-bottom: 2px solid #dee2e6;
    text-align: center;
}

.firmware-header h2 {
    margin: 0 0 8px 0;
    font-size: 24px;
    font-weight: 700;
    color: #333;
}

.firmware-total {
    font-size: 16px;
    color: #6c757d;
    font-weight: 500;
}

.firmware-total #totalCount {
    color: #007bff;
    font-weight: 700;
    font-size: 18px;
}

/* 控制工具栏 */
.firmware-controls {
    padding: 20px 24px;
    background: white;
    border-bottom: 1px solid #e9ecef;
    display: flex;
    gap: 16px;
    align-items: center;
    flex-wrap: wrap;
    justify-content: center;
}

/* 搜索容器 */
.search-container {
    position: relative;
    flex: 2;
    min-width: 320px;
    max-width: 600px;
}

.search-container i {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: #6c757d;
    font-size: 16px;
}

.search-container input {
    width: 100%;
    height: 44px;
    padding: 0 14px 0 44px;
    border: 2px solid #dee2e6;
    border-radius: 8px;
    font-size: 14px;
    background: white;
    transition: all 0.3s ease;
}

.search-container input:focus {
    border-color: #007bff;
    outline: none;
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
}

.search-container input::placeholder {
    color: #adb5bd;
}

/* 筛选下拉菜单 */
.firmware-controls select {
    height: 44px;
    padding: 0 12px;
    border: 2px solid #dee2e6;
    border-radius: 8px;
    background: white;
    font-size: 14px;
    color: #495057;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 140px;
}

.firmware-controls select:focus {
    border-color: #007bff;
    outline: none;
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
}

.firmware-controls select:hover {
    border-color: #adb5bd;
}

/* Firmware Table */
.firmware-table-container {
    overflow: hidden;
    margin-bottom: 0;
}

.firmware-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
    background: white;
}

.firmware-table thead {
    background: linear-gradient(135deg, #6c757d, #495057);
}

.firmware-table th {
    padding: 16px 12px;
    text-align: left;
    font-weight: 600;
    color: white;
    border-bottom: none;
    white-space: nowrap;
    font-size: 13px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.firmware-table tbody tr {
    transition: all 0.2s ease;
    border-bottom: 1px solid #f1f1f1;
}

.firmware-table tbody tr:hover {
    background-color: #f8f9fa;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.firmware-table tbody tr:last-child {
    border-bottom: none;
}

.firmware-table tbody tr:nth-child(even) {
    background-color: #fdfdfd;
}

.firmware-table td {
    padding: 14px 12px;
    vertical-align: middle;
    border-right: 1px solid #f8f9fa;
}

.firmware-table td:last-child {
    border-right: none;
}

/* 型号列 */
.model-cell {
    min-width: 120px;
    width: 12%;
}

.model-info {
    display: flex;
    align-items: center;
    gap: 8px;
}

.model-info i {
    color: #007bff;
    font-size: 16px;
    width: 18px;
}

/* 类型徽章 */
.type-badge {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    text-align: center;
    min-width: 60px;
}

.type-badge.type-firmware {
    background: #d4edda;
    color: #155724;
}

.type-badge.type-flash {
    background: #cce7ff;
    color: #003d82;
}

/* 类型列 */
.firmware-table .type-badge {
    width: 8%;
    min-width: 70px;
}

/* 版本列 */
.version-cell {
    font-weight: 600;
    color: #007bff;
    min-width: 80px;
    width: 8%;
}

/* 日期列 */
.date-cell {
    color: #666;
    min-width: 100px;
    width: 10%;
}

/* 大小列 */
.size-cell {
    font-weight: 500;
    min-width: 70px;
    width: 7%;
}

/* 描述列 */
.description-cell {
    color: #666;
    line-height: 1.4;
    width: 45%;
    max-width: none;
    padding-right: 20px;
}

/* 操作列 */
.actions-cell {
    text-align: center;
    min-width: 100px;
    width: 10%;
}

.download-btn-table,
.changelog-btn-table {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 6px;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    margin: 0 2px;
    text-decoration: none;
}

.download-btn-table {
    background: #28a745;
    color: white;
}

.download-btn-table:hover {
    background: #218838;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(40, 167, 69, 0.3);
}

.changelog-btn-table {
    background: #6c757d;
    color: white;
}

.changelog-btn-table:hover {
    background: #5a6268;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(108, 117, 125, 0.3);
}

/* 分页区域 */
.firmware-pagination {
    padding: 24px;
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    border-top: 2px solid #dee2e6;
    display: flex;
    justify-content: center;
}

/* 空状态 */
.firmware-empty {
    text-align: center;
    padding: 80px 20px;
    background: white;
}

.firmware-empty i {
    font-size: 64px;
    color: #adb5bd;
    margin-bottom: 20px;
}

.firmware-empty h3 {
    color: #495057;
    font-size: 20px;
    margin: 0 0 12px 0;
    font-weight: 600;
}

.firmware-empty p {
    color: #6c757d;
    margin: 0;
    font-size: 16px;
}

/* 错误信息 */
.error-message {
    text-align: center;
    padding: 40px 20px;
    color: #dc3545;
    background: #fff5f5;
    border: 1px solid #f5c6cb;
}

.error-message i {
    font-size: 48px;
    margin-bottom: 15px;
    display: block;
    color: #dc3545;
}

.error-message h3 {
    color: #721c24;
    font-size: 18px;
    margin: 10px 0;
}

.error-message p {
    color: #856404;
    margin: 0;
}







/* 表格容器 - 完整宽度 */
.firmware-table-container {
    width: 100%;
    overflow-x: auto;
    background: white;
}

.firmware-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
    margin: 0;
    min-width: 1000px;
}

/* 表格头部 */
.firmware-table thead th {
    background: linear-gradient(135deg, #2c3e50, #34495e);
    color: white;
    font-weight: 600;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 18px 16px;
    text-align: left;
    border: none;
    white-space: nowrap;
    position: sticky;
    top: 0;
    z-index: 10;
}

/* 表格头部列宽 */
.firmware-table thead th:nth-child(1) { width: 16%; } /* 设备型号 */
.firmware-table thead th:nth-child(2) { width: 10%; } /* 类型 */
.firmware-table thead th:nth-child(3) { width: 12%; } /* 版本号 */
.firmware-table thead th:nth-child(4) { width: 12%; } /* 发布日期 */
.firmware-table thead th:nth-child(5) { width: 10%; } /* 文件大小 */
.firmware-table thead th:nth-child(6) { width: 30%; } /* 更新说明 */
.firmware-table thead th:nth-child(7) { width: 10%; } /* 操作 */

/* 表格行样式 */
.firmware-table tbody tr {
    border-bottom: 1px solid #e9ecef;
    transition: all 0.3s ease;
}

.firmware-table tbody tr:hover {
    background-color: #f8f9fa;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.firmware-table tbody tr:nth-child(even) {
    background-color: #fdfdfd;
}

.firmware-table tbody tr:nth-child(even):hover {
    background-color: #f1f3f4;
}

.firmware-table td {
    padding: 16px;
    vertical-align: middle;
    border-right: 1px solid #f1f1f1;
    font-size: 14px;
}

.firmware-table td:last-child {
    border-right: none;
}

/* 型号列 */
.model-info {
    display: flex;
    align-items: center;
    gap: 8px;
}

.model-info i {
    color: #007bff;
    font-size: 16px;
    width: 18px;
    flex-shrink: 0;
}

.model-info strong {
    font-weight: 600;
    color: #333;
}

/* 类型标签 */
.type-badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    text-align: center;
}

.type-badge.type-firmware {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.type-badge.type-flash {
    background: #cce7ff;
    color: #003d82;
    border: 1px solid #b3d7ff;
}

/* 版本号 */
.version-cell {
    font-weight: 600;
    color: #007bff;
    font-family: 'SF Mono', 'Monaco', 'Inconsolata', 'Fira Code', monospace;
}

/* 日期 */
.date-cell {
    color: #6c757d;
    font-size: 13px;
}

/* 文件大小 */
.size-cell {
    font-weight: 500;
    color: #28a745;
}

/* 描述 */
.description-cell {
    color: #6c757d;
    line-height: 1.4;
}

/* 操作按钮 */
.actions-cell {
    text-align: center;
}

.download-btn-table,
.changelog-btn-table {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 6px;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    margin: 0 2px;
    text-decoration: none;
}

.download-btn-table {
    background: #28a745;
    color: white;
}

.download-btn-table:hover {
    background: #218838;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(40, 167, 69, 0.3);
}

.changelog-btn-table {
    background: #6c757d;
    color: white;
}

.changelog-btn-table:hover {
    background: #5a6268;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(108, 117, 125, 0.3);
}

.download-btn-table i,
.changelog-btn-table i {
    font-size: 13px;
}

.firmware-page .pagination-container {
    display: flex;
    justify-content: center;
    margin: 30px 0;
    padding: 20px;
    background: #f8f9fa;
    border-top: 1px solid #e9ecef;
}

.firmware-page .no-results {
    text-align: center;
    padding: 60px 20px;
    color: #6c757d;
    max-width: 600px;
    margin: 0 auto;
}

.firmware-page .no-results i {
    font-size: 48px;
    color: #dc3545;
    margin-bottom: 20px;
}

.firmware-page .no-results h3 {
    color: #333;
    margin-bottom: 10px;
}

/* Changelog Modal */
.changelog-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.changelog-modal.active {
    display: flex;
}

.changelog-content {
    background: white;
    border-radius: 15px;
    max-width: 600px;
    width: 100%;
    max-height: 80vh;
    overflow-y: auto;
    position: relative;
}

.changelog-header {
    padding: 25px 30px 20px;
    border-bottom: 2px solid #e9ecef;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.changelog-header h3 {
    color: #333;
    font-size: 20px;
    font-weight: 700;
    margin: 0;
}

.close-changelog {
    background: none;
    border: none;
    font-size: 24px;
    color: #666;
    cursor: pointer;
    padding: 5px;
    border-radius: 50%;
    transition: all 0.2s ease;
}

.close-changelog:hover {
    background: #f8f9fa;
    color: #333;
}

.changelog-body {
    padding: 25px 30px;
}

.changelog-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.changelog-list li {
    padding: 10px 0 10px 30px;
    position: relative;
    color: #495057;
    font-size: 14px;
    line-height: 1.5;
    border-bottom: 1px solid #f1f1f1;
}

.changelog-list li:last-child {
    border-bottom: none;
}

.changelog-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #28a745;
    font-weight: bold;
    font-size: 16px;
}



/* Mobile Responsive */
@media (max-width: 767px) {
    .firmware-page .container {
        max-width: 100% !important;
        padding: 0 15px;
    }
    
    .firmware-notice {
        flex-direction: column;
        gap: 15px;
        padding: 15px;
    }
    
    .firmware-notice .notice-icon {
        align-self: flex-start;
        width: 40px;
        height: 40px;
        font-size: 18px;
    }
    
    /* 移动端头部控制区域优化 */
    .firmware-list-header {
        padding: 20px 15px;
    }
    
    .firmware-list-header .header-content {
        flex-direction: column;
        gap: 20px;
    }
    
    .header-text h3 {
        font-size: 18px;
    }
    
    .header-text p {
        font-size: 13px;
    }
    
    .header-controls {
        min-width: auto;
        width: 100%;
    }
    
    .filter-controls {
        gap: 8px;
    }
    
    .filter-select {
        flex: 1;
        min-width: auto;
        font-size: 13px;
        padding: 8px 12px;
    }

    /* 移动端表格优化 */
    .firmware-table-container {
        overflow-x: auto;
        border-radius: 8px;
    }

    .firmware-table {
        min-width: 700px;
        font-size: 12px;
    }

    .firmware-table th {
        padding: 12px 8px;
        font-size: 11px;
    }

    .firmware-table td {
        padding: 12px 8px;
    }

    .model-info {
        gap: 6px;
    }

    .model-info i {
        font-size: 14px;
    }

    .type-badge {
        font-size: 10px;
        padding: 3px 8px;
    }

    .download-btn-table,
    .changelog-btn-table {
        width: 28px;
        height: 28px;
    }

    .download-btn-table i,
    .changelog-btn-table i {
        font-size: 12px;
    }
}

@media (max-width: 480px) {
    .firmware-notice .notice-content h3 {
        font-size: 16px;
    }
    
    .firmware-notice .notice-content li {
        font-size: 13px;
    }
    
    .firmware-list-header {
        padding: 15px 12px;
    }
    
    .firmware-list-header .header-content {
        gap: 15px;
    }
    
    .header-controls {
        gap: 12px;
    }
    
    .filter-controls {
        gap: 6px;
    }
    
    /* 小屏幕表格优化 */
    .firmware-table {
        min-width: 600px;
        font-size: 11px;
    }

    .firmware-table th {
        padding: 10px 6px;
        font-size: 10px;
    }

    .firmware-table td {
        padding: 10px 6px;
    }

    .model-info i {
        font-size: 12px;
    }

    .type-badge {
        font-size: 9px;
        padding: 2px 6px;
    }

    .download-btn-table,
    .changelog-btn-table {
        width: 24px;
        height: 24px;
    }

    .download-btn-table i,
    .changelog-btn-table i {
        font-size: 10px;
    }
    
    .changelog-content {
        margin: 10px;
    }
    
    .changelog-header,
    .changelog-body {
        padding: 20px;
    }
}

/* 移动端响应式设计 */
@media screen and (max-width: 992px) {
    .firmware-controls {
        flex-direction: column;
        gap: 16px;
    }

    .search-container {
        flex: none;
        width: 100%;
        max-width: none;
        margin-bottom: 12px;
    }

    .firmware-controls select {
        width: 100%;
        max-width: none;
    }
}

@media screen and (max-width: 768px) {
    .firmware-page .container {
        padding: 0 12px;
    }

    .firmware-page .content-wrapper {
        padding: 12px 0;
    }

    /* 移动端固件更新网站提示框优化 */
    .firmware-update-website {
        padding: 16px;
        margin-bottom: 16px;
        flex-direction: column;
        text-align: center;
    }

    .firmware-update-website .website-icon {
        width: 40px;
        height: 40px;
        font-size: 16px;
        margin-bottom: 12px;
    }

    .firmware-update-website .website-content h3 {
        font-size: 16px;
        margin-bottom: 12px;
    }

    .firmware-update-website .website-content p {
        font-size: 13px;
        margin: 6px 0;
        text-align: center;
    }

    /* 移动端提示框优化 */
    .firmware-notice {
        padding: 16px;
        margin-bottom: 16px;
        flex-direction: column;
        text-align: center;
    }

    .firmware-notice .notice-icon {
        width: 40px;
        height: 40px;
        font-size: 16px;
        margin-bottom: 12px;
    }

    .firmware-notice .notice-content h3 {
        font-size: 16px;
        margin-bottom: 12px;
    }

    .firmware-notice .notice-content li {
        font-size: 13px;
        margin: 6px 0;
        text-align: left;
    }

    /* 移动端标题区域优化 */
    .firmware-header {
        padding: 16px;
    }

    .firmware-header h2 {
        font-size: 18px;
        margin-bottom: 8px;
    }

    .firmware-total {
        font-size: 14px;
    }

    .firmware-total #totalCount {
        font-size: 16px;
    }

    /* 移动端控制区域优化 */
    .firmware-controls {
        padding: 16px;
        gap: 12px;
    }

    .search-container {
        margin-bottom: 8px;
    }

    .search-container input {
        height: 40px;
        font-size: 14px;
        padding: 0 12px 0 40px;
    }

    .search-container i {
        left: 12px;
        font-size: 14px;
    }

    .firmware-controls select {
        height: 40px;
        font-size: 14px;
        padding: 0 10px;
    }

    /* 移动端表格优化 */
    .firmware-table-container {
        margin: 0 -12px;
        border-radius: 0;
    }

    .firmware-table {
        font-size: 12px;
        min-width: 750px;
    }

    .firmware-table thead th {
        padding: 12px 8px;
        font-size: 11px;
        letter-spacing: 0.3px;
    }

    .firmware-table td {
        padding: 12px 8px;
        font-size: 12px;
    }

    .model-info {
        gap: 4px;
        flex-direction: column;
        align-items: flex-start;
    }

    .model-info i {
        font-size: 12px;
        width: 14px;
    }

    .model-info strong {
        font-size: 12px;
    }

    .type-badge {
        font-size: 10px;
        padding: 2px 6px;
    }

    .version-cell {
        font-size: 11px;
    }

    .date-cell,
    .size-cell {
        font-size: 11px;
    }

    .description-cell {
        font-size: 11px;
        max-width: 120px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .download-btn-table,
    .changelog-btn-table {
        width: 26px;
        height: 26px;
        border-radius: 4px;
    }

    .download-btn-table i,
    .changelog-btn-table i {
        font-size: 11px;
    }

    /* 移动端分页和空状态 */
    .firmware-pagination {
        padding: 12px 16px;
    }

    .firmware-empty {
        padding: 40px 16px;
    }

    .firmware-empty i {
        font-size: 40px;
        margin-bottom: 16px;
    }

    .firmware-empty h3 {
        font-size: 16px;
        margin-bottom: 8px;
    }

    .firmware-empty p {
        font-size: 13px;
    }
}

@media screen and (max-width: 480px) {
    .firmware-page .container {
        padding: 0 8px;
    }

    .firmware-page .content-wrapper {
        padding: 8px 0;
    }

    /* 超小屏幕固件更新网站提示框优化 */
    .firmware-update-website {
        padding: 12px;
        margin-bottom: 12px;
        border-radius: 8px;
    }

    .firmware-update-website .website-icon {
        width: 36px;
        height: 36px;
        font-size: 14px;
        margin-bottom: 10px;
    }

    .firmware-update-website .website-content h3 {
        font-size: 14px;
        margin-bottom: 10px;
    }

    .firmware-update-website .website-content p {
        font-size: 12px;
        margin: 4px 0;
    }

    /* 超小屏幕提示框优化 */
    .firmware-notice {
        padding: 12px;
        margin-bottom: 12px;
        border-radius: 8px;
    }

    .firmware-notice .notice-icon {
        width: 36px;
        height: 36px;
        font-size: 14px;
        margin-bottom: 10px;
    }

    .firmware-notice .notice-content h3 {
        font-size: 14px;
        margin-bottom: 10px;
    }

    .firmware-notice .notice-content li {
        font-size: 12px;
        margin: 4px 0;
        padding-left: 16px;
    }

    /* 超小屏幕标题区域 */
    .firmware-header {
        padding: 12px;
    }

    .firmware-header h2 {
        font-size: 16px;
        margin-bottom: 6px;
    }

    .firmware-total {
        font-size: 12px;
    }

    .firmware-total #totalCount {
        font-size: 14px;
    }

    /* 超小屏幕控制区域 */
    .firmware-controls {
        padding: 12px;
        gap: 10px;
    }

    .search-container {
        margin-bottom: 6px;
    }

    .search-container input {
        height: 36px;
        font-size: 13px;
        padding: 0 10px 0 36px;
    }

    .search-container i {
        left: 10px;
        font-size: 13px;
    }

    .firmware-controls select {
        height: 36px;
        font-size: 13px;
        padding: 0 8px;
    }

    /* 超小屏幕表格优化 */
    .firmware-table-container {
        margin: 0 -8px;
    }

    .firmware-table {
        font-size: 11px;
        min-width: 650px;
    }

    .firmware-table thead th {
        padding: 10px 6px;
        font-size: 10px;
        letter-spacing: 0.2px;
    }

    .firmware-table td {
        padding: 10px 6px;
        font-size: 11px;
    }

    .model-info {
        gap: 2px;
    }

    .model-info i {
        font-size: 10px;
        width: 12px;
    }

    .model-info strong {
        font-size: 11px;
    }

    .type-badge {
        font-size: 9px;
        padding: 1px 4px;
        border-radius: 8px;
    }

    .version-cell {
        font-size: 10px;
    }

    .date-cell,
    .size-cell {
        font-size: 10px;
    }

    .description-cell {
        font-size: 10px;
        max-width: 100px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .download-btn-table,
    .changelog-btn-table {
        width: 24px;
        height: 24px;
        border-radius: 3px;
    }

    .download-btn-table i,
    .changelog-btn-table i {
        font-size: 10px;
    }

    /* 超小屏幕分页和空状态 */
    .firmware-pagination {
        padding: 10px 12px;
    }

    .firmware-empty {
        padding: 30px 12px;
    }

    .firmware-empty i {
        font-size: 32px;
        margin-bottom: 12px;
    }

    .firmware-empty h3 {
        font-size: 14px;
        margin-bottom: 6px;
    }

    .firmware-empty p {
        font-size: 12px;
    }
}

/* ====== Founder Letter Styles ====== */
.founder-letter {
    padding: 80px 0;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    position: relative;
    min-height: 100vh;
}

.founder-letter::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 20% 80%, rgba(120, 119, 198, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255, 121, 63, 0.08) 0%, transparent 50%);
    pointer-events: none;
}

.letter-container {
    max-width: 900px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
    perspective: 1000px;
}

.letter-paper {
    background: #ffffff;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    border-radius: 8px;
    padding: 60px 80px;
    position: relative;
    font-family: 'Georgia', serif;
    line-height: 1.8;
    color: #2d3748;
}

.letter-paper::before {
    content: '';
    position: absolute;
    top: 0;
    left: 80px;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, 
        transparent 0%, 
        #e2e8f0 10%, 
        #e2e8f0 90%, 
        transparent 100%);
    opacity: 0.6;
}

.letter-header {
    text-align: center;
    margin-bottom: 50px;
    padding-bottom: 30px;
    border-bottom: 2px solid #e2e8f0;
    position: relative;
}

.letter-title {
    font-size: 36px;
    font-weight: 700;
    color: #1a202c;
    margin-bottom: 20px;
    line-height: 1.3;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.letter-author {
    font-size: 18px;
    color: #4a5568;
    font-style: italic;
    margin-bottom: 10px;
    font-weight: 500;
}

.letter-date {
    font-size: 14px;
    color: #718096;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.letter-divider {
    font-size: 20px;
    color: #a0aec0;
    letter-spacing: 10px;
    margin: 0;
}

.letter-content {
    font-size: 18px;
    line-height: 1.9;
    text-align: justify;
}

.letter-paragraph {
    margin-bottom: 24px;
    text-indent: 2em;
    position: relative;
}

.letter-paragraph:first-child {
    text-indent: 0;
    font-weight: 600;
    color: #2d3748;
    font-size: 20px;
    margin-bottom: 16px;
}

.letter-paragraph strong {
    color: #2d3748;
    font-weight: 700;
    font-size: 20px;
    display: block;
    text-indent: 0;
    margin-bottom: 16px;
    position: relative;
    padding-left: 20px;
}

.letter-paragraph strong::before {
    content: '◆';
    position: absolute;
    left: 0;
    color: #4299e1;
    font-size: 14px;
    top: 3px;
}

.letter-highlight {
    background: linear-gradient(135deg, rgba(66, 153, 225, 0.1), rgba(72, 187, 120, 0.1));
    padding: 16px 24px;
    border-radius: 8px;
    border-left: 4px solid #4299e1;
    margin: 32px 0;
    font-style: italic;
    font-weight: 600;
    color: #2d3748;
    text-indent: 0 !important;
    box-shadow: 0 4px 12px rgba(66, 153, 225, 0.1);
    position: relative;
}

.letter-highlight::before {
    content: '"';
    position: absolute;
    top: -8px;
    left: 16px;
    font-size: 32px;
    color: #4299e1;
    opacity: 0.3;
    font-family: Georgia, serif;
}

.letter-quote {
    text-align: center;
    font-style: italic;
    font-size: 20px;
    color: #2d3748;
    margin: 32px 0;
    padding: 24px 32px;
    background: rgba(66, 153, 225, 0.05);
    border-radius: 12px;
    position: relative;
    font-weight: 500;
    text-indent: 0 !important;
    box-shadow: 0 4px 12px rgba(66, 153, 225, 0.08);
}

.letter-quote::before,
.letter-quote::after {
    content: '"';
    font-size: 48px;
    color: #4299e1;
    position: absolute;
    font-family: Georgia, serif;
    opacity: 0.3;
    font-weight: bold;
}

.letter-quote::before {
    top: -10px;
    left: 20px;
}

.letter-quote::after {
    bottom: -30px;
    right: 20px;
}

.letter-content .letter-divider {
    text-align: center;
    font-size: 16px;
    color: #a0aec0;
    letter-spacing: 8px;
    margin: 40px 0;
    font-weight: normal;
}

.letter-signature {
    margin-top: 60px;
    padding: 40px 0;
    text-align: center;
    border-top: 2px solid #e2e8f0;
    background: linear-gradient(135deg, rgba(26, 32, 44, 0.02) 0%, rgba(74, 85, 104, 0.02) 100%);
    border-radius: 12px;
}

.signature-company {
    font-size: 32px;
    font-weight: 700;
    color: #1a202c;
    margin-bottom: 12px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.signature-location {
    font-size: 16px;
    color: #4a5568;
    margin-bottom: 24px;
    font-style: italic;
    letter-spacing: 1px;
}

.signature-meaning {
    margin-top: 20px;
}

.signature-meaning div {
    font-size: 18px;
    margin-bottom: 8px;
    line-height: 1.6;
    color: #2d3748;
}

.signature-meaning strong {
    color: #4299e1;
    font-weight: 700;
}

/* Responsive Design */
@media (max-width: 768px) {
    .founder-letter {
        padding: 40px 0;
    }

    .letter-paper {
        padding: 40px 30px;
        margin: 0 16px;
        transform: none;
        box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    }

    .letter-paper:hover {
        transform: none;
    }

    .letter-paper::before {
        left: 30px;
    }

    .letter-title {
        font-size: 28px;
        margin-bottom: 16px;
    }

    .letter-author {
        font-size: 16px;
    }

    .letter-content {
        font-size: 16px;
        line-height: 1.8;
    }

    .letter-paragraph {
        text-indent: 1.5em;
        margin-bottom: 20px;
    }

    .letter-paragraph strong {
        font-size: 18px;
        padding-left: 16px;
    }

    .letter-highlight {
        padding: 12px 16px;
        margin: 24px 0;
    }

    .letter-quote {
        font-size: 18px;
        padding: 20px 24px;
        margin: 24px 0;
    }

    .letter-quote::before,
    .letter-quote::after {
        font-size: 36px;
    }

    .signature-company {
        font-size: 24px;
    }

    .signature-meaning div {
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .letter-paper {
        padding: 30px 20px;
        margin: 0 12px;
    }

    .letter-paper::before {
        left: 20px;
    }

    .letter-title {
        font-size: 24px;
    }

    .letter-content {
        font-size: 15px;
    }

    .letter-paragraph {
        text-indent: 1em;
    }

    .letter-paragraph strong {
        font-size: 16px;
        padding-left: 12px;
    }

    .letter-highlight {
        padding: 10px 12px;
    }

    .letter-quote {
        font-size: 16px;
        padding: 16px 16px;
    }

    .signature-company {
        font-size: 20px;
    }
}

/* ====== Company Overview Mobile Optimization ====== */
@media (max-width: 768px) {
    .company-overview {
        padding: 40px 0;
    }

    .overview-content {
        grid-template-columns: 1fr !important;
        gap: 2rem !important;
        text-align: center;
    }

    .overview-text {
        order: 2;
    }

    .overview-image {
        order: 1;
        margin-bottom: 1rem;
    }

    .overview-text h2 {
        font-size: 2rem !important;
        margin-bottom: 1.5rem !important;
    }

    .overview-text p {
        font-size: 1rem !important;
        margin-bottom: 1.2rem !important;
        text-align: left;
        padding: 0 1rem;
    }

    .company-values {
        grid-template-columns: 1fr !important;
        gap: 1.5rem !important;
        margin-top: 2rem !important;
        padding: 0 1rem;
    }

    .value-item {
        padding: 1.5rem 1rem !important;
        margin-bottom: 0;
    }

    .value-item i {
        font-size: 2.5rem !important;
        margin-bottom: 0.8rem !important;
    }

    .value-item h4 {
        font-size: 1.1rem;
        margin-bottom: 0.5rem !important;
    }

    .value-item p {
        font-size: 0.9rem !important;
        line-height: 1.5;
    }

    .overview-image img {
        max-width: 100%;
        height: auto;
        border-radius: 12px !important;
        box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1) !important;
    }
}

@media (max-width: 480px) {
    .company-overview {
        padding: 30px 0;
    }

    .overview-content {
        gap: 1.5rem !important;
    }

    .overview-text h2 {
        font-size: 1.8rem !important;
        margin-bottom: 1rem !important;
    }

    .overview-text p {
        font-size: 0.95rem !important;
        margin-bottom: 1rem !important;
        padding: 0 0.5rem;
    }

    .company-values {
        gap: 1rem !important;
        margin-top: 1.5rem !important;
        padding: 0 0.5rem;
    }

    .value-item {
        padding: 1.2rem 0.8rem !important;
    }

    .value-item i {
        font-size: 2rem !important;
        margin-bottom: 0.6rem !important;
    }

    .value-item h4 {
        font-size: 1rem;
        margin-bottom: 0.4rem !important;
    }

    .value-item p {
        font-size: 0.85rem !important;
        line-height: 1.4;
    }

    .overview-image {
        margin-bottom: 0.5rem;
    }

    .overview-image img {
        border-radius: 8px !important;
        box-shadow: 0 6px 15px rgba(0, 0, 0, 0.1) !important;
    }
} 