/* 统一背景样式 - 以News.html为参照 */
.hero-banner {
    width: 100%;
    height: 400px;
    background: linear-gradient(135deg, #3498db 0%, #2980b9 50%, #1abc9c 100%);
    background-size: 400% 400%;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    animation: gradientShift 8s ease infinite;
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.hero-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('../img/product/background.webp') center/cover;
    opacity: 0.2;
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

.hero-banner::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(52, 152, 219, 0.8) 0%, rgba(41, 128, 185, 0.8) 50%, rgba(26, 188, 156, 0.8) 100%);
}

.banner-titles {
    text-align: center;
    color: white;
    position: relative;
    z-index: 2;
    animation: fadeInUp 1.2s ease-out;
}

.banner-titles h1 {
    font-size: 4rem;
    margin-bottom: 20px;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    font-weight: 800;
    letter-spacing: 3px;
    background: linear-gradient(45deg, #fff, #f0f0f0);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.banner-titles h2 {
    font-size: 2rem;
    font-weight: 300;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    opacity: 0.95;
    letter-spacing: 1px;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 响应式设计 */
@media (max-width: 768px) {
    .hero-banner {
        height: 350px;
    }
    
    .banner-titles h1 {
        font-size: 3rem;
        letter-spacing: 2px;
    }
    
    .banner-titles h2 {
        font-size: 1.6rem;
    }
}

/* 主内容区域样式 */
.download-main {
    max-width: 1400px;
    margin: 60px auto;
    padding: 0 20px;
}

/* 搜索框容器 */
.search-container {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 40px;
    background: white;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

/* 搜索输入框 */
.search-input {
    flex: 1;
    padding: 14px 20px;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    font-size: 16px;
    transition: all 0.3s ease;
    background: #f8f9fa;
}

.search-input:focus {
    outline: none;
    border-color: #3498db;
    background: white;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

/* 搜索按钮 */
.search-button {
    padding: 14px 24px;
    background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 16px;
    font-weight: 500;
}

.search-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(52, 152, 219, 0.3);
}

/* 分类选择框样式 */
.category-select {
    padding: 14px 20px;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    font-size: 16px;
    background: #f8f9fa;
    cursor: pointer;
    min-width: 150px;
    transition: all 0.3s ease;
}

.category-select:focus {
    outline: none;
    border-color: #3498db;
    background: white;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

/* 重要下载区域 */
.important-download {
    text-align: center;
    margin-bottom: 40px;
    padding: 30px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 16px;
    border: 2px solid #e9ecef;
}

.btn-important {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 16px 32px;
    background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
    color: white;
    text-decoration: none;
    border-radius: 12px;
    font-size: 18px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 16px rgba(52, 152, 219, 0.3);
}

.btn-important:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(52, 152, 219, 0.4);
    color: white;
}

.btn-important i {
    font-size: 20px;
}

.download-note {
    margin-top: 12px;
    color: #6c757d;
    font-size: 14px;
}

/* 下载中心表格样式 - 美化版本 */
.download-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    margin: 20px 0;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0,0,0,0.12), 0 2px 6px rgba(0,0,0,0.08);
    min-height: 600px;
    border: 1px solid rgba(0,0,0,0.06);
}

/* 表格主体固定高度 */
.download-table tbody {
    display: block;
    height: 720px; /* 再次增加高度确保所有10行都能完整显示 */
    overflow-y: visible;
}

/* 表格头部和行布局 */
.download-table thead,
.download-table tbody tr {
    display: table;
    width: 100%;
    table-layout: fixed;
}

.download-table table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

.download-table th,
.download-table td {
    padding: 18px 15px;
    text-align: center;
    border-bottom: 1px solid rgba(0,0,0,0.05);
    font-size: 15px;
    transition: all 0.3s ease;
    position: relative;
}

.download-table tbody tr {
    transition: all 0.3s ease;
}

/* 奇数行 - 浅白色 */
.download-table tbody tr:nth-child(odd) {
    background: linear-gradient(135deg, #ffffff 0%, #fefefe 100%);
}

.download-table tbody tr:nth-child(odd) td {
    background: transparent;
}

/* 偶数行 - 浅灰蓝色 */
.download-table tbody tr:nth-child(even) {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
}

.download-table tbody tr:nth-child(even) td {
    background: transparent;
}

/* 悬停效果 - 奇数行 */
.download-table tbody tr:nth-child(odd):hover {
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.06) 0%, rgba(29, 78, 216, 0.06) 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

/* 悬停效果 - 偶数行 */
.download-table tbody tr:nth-child(even):hover {
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.1) 0%, rgba(29, 78, 216, 0.1) 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.download-table th {
    background-color: #f8f9fa;
    font-weight: 600;
}

.product-name {
    text-align: left;
    font-weight: 600;
    padding-left: 20px;
    color: #2d3748;
    font-size: 15px;
    line-height: 1.4;
    transition: all 0.3s ease;
    position: relative;
}

/* 整个单元格可点击样式 */
.product-name.clickable-cell {
    cursor: pointer;
    user-select: none;
}

/* 产品文字包装器 */
.product-text {
    position: relative;
    display: inline-block;
    transition: all 0.3s ease;
}

.product-text::before {
    content: '🔗';
    opacity: 0;
    margin-right: 8px;
    transition: opacity 0.3s ease;
    font-size: 12px;
}

.product-text::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -2px;
    left: 0;
    background: linear-gradient(90deg, #2563eb, #1d4ed8);
    transition: width 0.3s ease;
}

.product-name.clickable-cell:hover {
    color: #2563eb;
    background: rgba(37, 99, 235, 0.05);
    transform: translateX(3px);
}

.product-name.clickable-cell:hover .product-text::before {
    opacity: 1;
}

.product-name.clickable-cell:hover .product-text::after {
    width: 100%;
}

/* 整个单元格点击效果 */
.product-name.clickable-cell:active {
    transform: translateX(1px);
    background: rgba(37, 99, 235, 0.1);
}

.download-btn {
    padding: 6px 12px;
    border: 1px solid #ddd;
    background: white;
    color: #333;
    cursor: pointer;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.download-btn:hover {
    background: #f5f5f5;
    border-color: #4a90e2;
}

.download-btn.PDF {
    color: #dc3545;
}

.download-btn.STEP {
    color: #28a745;
}

.download-table tr:hover td {
    background: #f8f9fa;
}

.download-table tr:last-child td {
    border-bottom: none;
}

.download-table th.product-name,
.download-table td.product-name {
    width: 40%;
    min-width: 200px;
}

.download-table th.file-type,
.download-table td.file-type {
    width: 30%;
    min-width: 140px;
    text-align: center;
}

/* 分页样式 - 固定布局版本 */
.pagination {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 30px 0;
    gap: 15px;
}

/* 固定布局容器 */
.pagination-fixed-layout {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 600px;
}

/* 左侧：上一页按钮区域 */
.pagination-left {
    flex: 0 0 100px;
    display: flex;
    justify-content: flex-end;
    padding-right: 15px;
}

/* 中间：页码区域 */
.pagination-center {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    min-height: 40px;
}

/* 右侧：下一页按钮区域 */
.pagination-right {
    flex: 0 0 100px;
    display: flex;
    justify-content: flex-start;
    padding-left: 15px;
}

/* 分页按钮基础样式 */
.pagination .page-btn {
    padding: 8px 12px;
    border: 1px solid #ddd;
    background: white;
    color: #333;
    cursor: pointer;
    border-radius: 6px;
    transition: all 0.3s ease;
    font-size: 14px;
    min-width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pagination .page-btn:hover:not(.disabled):not(.active) {
    background: #f8f9fa;
    border-color: #4a90e2;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* 当前页样式 */
.pagination .page-btn.active {
    background: linear-gradient(135deg, #4a90e2 0%, #357abd 100%);
    color: white;
    border-color: #4a90e2;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(74, 144, 226, 0.3);
}

/* 禁用状态 */
.pagination .page-btn.disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background: #f8f9fa;
    color: #999;
}

/* 上一页/下一页按钮 */
.pagination .prev-btn,
.pagination .next-btn {
    padding: 8px 16px;
    font-weight: 500;
}

/* 省略号样式 */
.pagination .ellipsis {
    padding: 8px 4px;
    color: #999;
    font-weight: bold;
    user-select: none;
    display: flex;
    align-items: center;
    height: 36px;
}

/* 页数跳转区域 */
.pagination .page-jump {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: 20px;
    padding: 6px 12px;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e9ecef;
}

.pagination .page-jump span {
    font-size: 14px;
    color: #666;
    white-space: nowrap;
}

/* 跳转输入框 */
.pagination .jump-input {
    width: 50px;
    padding: 4px 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    text-align: center;
    font-size: 14px;
    transition: all 0.3s ease;
}

.pagination .jump-input:focus {
    outline: none;
    border-color: #4a90e2;
    box-shadow: 0 0 0 2px rgba(74, 144, 226, 0.2);
}

/* 跳转按钮 */
.pagination .jump-btn {
    padding: 4px 12px;
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.pagination .jump-btn:hover {
    background: linear-gradient(135deg, #218838 0%, #1e7e34 100%);
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(40, 167, 69, 0.3);
}

/* 总页数显示 */
.pagination .total-pages {
    font-size: 13px;
    color: #888;
    font-weight: 500;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .pagination {
        gap: 6px;
        margin-top: 15px;
    }
    
    .pagination .page-btn {
        padding: 6px 10px;
        font-size: 13px;
        min-width: 32px;
        height: 32px;
    }
    
    .pagination .prev-btn,
    .pagination .next-btn {
        padding: 6px 12px;
    }
    
    .pagination .page-jump {
        margin-left: 10px;
        padding: 4px 8px;
    }
    
    .pagination .jump-input {
        width: 45px;
        padding: 3px 6px;
        font-size: 13px;
    }
    
    .pagination .jump-btn {
        padding: 3px 10px;
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .pagination {
        flex-direction: column;
        gap: 10px;
    }
    
    .pagination .page-jump {
        margin-left: 0;
        order: -1;
    }
}

/* 响应式设计 */
@media (max-width: 768px) {
    .download-main {
        margin: 40px auto;
        padding: 0 15px;
    }
    
    .search-container {
        flex-direction: column;
        gap: 15px;
    }
    
    .search-input,
    .category-select {
        width: 100%;
    }
    
    .download-table {
        font-size: 14px;
    }
    
    .download-table th,
    .download-table td {
        padding: 15px 10px;
    }
    
    .download-btn {
        padding: 8px 16px;
        font-size: 12px;
    }
    
    .btn-important {
        padding: 14px 24px;
        font-size: 16px;
    }
    
    .pagination {
        flex-wrap: wrap;
    }
    
    .pagination button {
        padding: 8px 12px;
        font-size: 12px;
    }
}

@media (max-width: 480px) {
    .download-table th,
    .download-table td {
        padding: 10px 8px;
        font-size: 12px;
    }
    
    .download-btn {
        padding: 6px 12px;
        font-size: 11px;
    }
}

/* 留言弹窗样式 - 与indownload.css一致 */
.contact-message {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(15px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    animation: modalBackdropFadeIn 0.4s ease-out;
    padding: 20px;
    box-sizing: border-box;
}
@keyframes modalBackdropFadeIn {
    from {
        opacity: 0;
        backdrop-filter: blur(0px);
    }
    to {
        opacity: 1;
        backdrop-filter: blur(15px);
    }
}
.modal-content {
    background: linear-gradient(145deg, #ffffff 0%, #f8f9fa 50%, #ffffff 100%);
    padding: 0;
    border-radius: 28px;
    max-width: 580px;
    width: 100%;
    max-height: 90vh;
    position: relative;
    animation: modalSlideIn 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow:
        0 32px 100px rgba(0, 0, 0, 0.2),
        0 8px 32px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.3);
    overflow: hidden;
    transform: translateZ(0);
    margin: auto;
    display: flex;
    flex-direction: column; /* 使用flex布局 */
}
@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-40px) scale(0.9) translateZ(0);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1) translateZ(0);
    }
}
.download-table th {
    background: linear-gradient(135deg, #60a5fa 0%, #3b82f6 100%);
    color: white;
    padding: 20px 15px;
    text-align: center;
    font-weight: 600;
    font-size: 16px;
    letter-spacing: 0.5px;
    text-shadow: 0 1px 2px rgba(0,0,0,0.1);
    border: none;
    position: relative;
}
.modal-content h3 {
    background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
    color: white;
    margin: 0;
    padding: 30px 35px 25px;
    font-size: 1.8rem;
    font-weight: 700;
    text-align: center;
    position: relative;
    font-family: '思源黑体', 'Source Han Sans', sans-serif;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    letter-spacing: 1px;
}
.modal-content h3::before {
    content: '💬';
    display: block;
    font-size: 3rem;
    margin-bottom: 12px;
    animation: bounce 2.5s infinite;
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.2));
}
@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0) scale(1);
    }
    40% {
        transform: translateY(-12px) scale(1.1);
    }
    60% {
        transform: translateY(-6px) scale(1.05);
    }
}
.close-modal {
    position: absolute;
    top: 25px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.4);
    border-radius: 50%;
    color: white;
    font-size: 28px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
    font-weight: 300;
    line-height: 1;
    z-index: 10;
}
.close-modal:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: rotate(90deg) scale(1.1);
    border-color: rgba(255, 255, 255, 0.6);
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.3);
    color: #e74c3c;
}
.close-modal:active {
    transform: rotate(90deg) scale(0.95);
}
.message-form {
    padding: 35px 35px 35px;
    margin: 0;
    background: white;
    overflow-y: auto; /* 添加滚动功能 */
    flex: 1; /* 占用剩余空间 */
    min-height: 0; /* 允许收缩 */
}
.form-row {
    display: flex;
    gap: 12px;
    margin-bottom: 15px;
    align-items: center;
}
.form-row .form-group {
    flex: 1;
}
.form-group {
    margin-bottom: 20px;
}
.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 18px;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    font-size: 0.95rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: #fafbfc;
    box-sizing: border-box;
    font-family: '思源黑体', 'Source Han Sans', sans-serif;
    color: #2d3748;
    font-weight: 500;
}
.form-group input:focus,
.form-group textarea:focus {
    border-color: #3498db;
    outline: none;
    box-shadow: 
        0 0 0 4px rgba(52, 152, 219, 0.1),
        0 4px 20px rgba(52, 152, 219, 0.15);
    transform: translateY(-3px);
    background: white;
}
.form-group textarea {
    height: 70px;
    resize: vertical;
    line-height: 1.6;
    min-height: 70px;
}
.form-group input::placeholder,
.form-group textarea::placeholder {
    color: #a0aec0;
    font-weight: 400;
    opacity: 0.8;
}
.submit-btn {
    width: 100%;
    padding: 12px 22px;
    background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    margin-top: 35px;
    font-family: '思源黑体', 'Source Han Sans', sans-serif;
    position: relative;
    overflow: hidden;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
    letter-spacing: 0.5px;
}
.submit-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transition: left 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}
.submit-btn:hover::before {
    left: 100%;
}
.submit-btn:hover {
    transform: translateY(-4px);
    box-shadow: 
        0 12px 40px rgba(52, 152, 219, 0.4),
        0 4px 20px rgba(41, 128, 185, 0.3);
    background: linear-gradient(135deg, #2980b9 0%, #1f5f8b 100%);
}
.submit-btn:active {
    transform: translateY(-2px);
    box-shadow: 
        0 8px 25px rgba(52, 152, 219, 0.3),
        0 2px 10px rgba(41, 128, 185, 0.2);
}
@media (max-width: 768px) {
    .contact-message {
        padding: 10px;
        align-items: center; /* 恢复居中对齐 */
        padding-top: 40px; /* 适当的顶部空间 */
        padding-bottom: 40px; /* 添加底部空间 */
    }
    .modal-content {
        width: 100%;
        max-height: 75vh; /* 更激进地减少高度 */
        border-radius: 18px;
        margin: 0; /* 移除边距，让居中对齐生效 */
    }
    .modal-content h3 {
        padding: 20px 20px 15px; /* 减少padding */
        font-size: 1.4rem; /* 减小字体 */
    }
    .modal-content h3::before {
        font-size: 1.8rem; /* 减小emoji */
        margin-bottom: 6px;
    }
    .message-form {
        padding: 20px 20px 20px; /* 减少padding */
    }
    .form-row {
        flex-direction: column;
        gap: 8px; /* 减少间距 */
    }
    .form-group {
        margin-bottom: 8px; /* 减少间距 */
    }
    .form-group input,
    .form-group textarea {
        padding: 10px 14px; /* 减少padding */
        font-size: 16px; /* 防止iOS缩放 */
    }
    .form-group textarea {
        height: 45px; /* 减少高度 */
        min-height: 45px;
    }
    .submit-btn {
        margin-top: 12px; /* 减少顶部边距 */
        padding: 12px 18px; /* 减少padding */
        font-size: 0.95rem;
    }
    .close-modal {
        top: 18px;
        right: 22px;
        width: 40px;
        height: 40px;
        font-size: 20px;
    }
}
@media (max-width: 480px) {
    .contact-message {
        padding: 8px;
        padding-top: 30px; /* 适当的顶部空间 */
        padding-bottom: 30px; /* 添加底部空间 */
    }
    .modal-content {
        border-radius: 14px;
        max-height: 70vh; /* 更激进地减少高度 */
        margin: 0; /* 移除边距，让居中对齐生效 */
    }
    .modal-content h3 {
        padding: 15px 15px 12px; /* 进一步减少padding */
        font-size: 1.2rem; /* 进一步减小字体 */
    }
    .modal-content h3::before {
        font-size: 1.5rem; /* 进一步减小emoji */
        margin-bottom: 4px;
    }
    .message-form {
        padding: 15px 15px 15px; /* 进一步减少padding */
    }
    .form-group {
        margin-bottom: 8px; /* 进一步减少间距 */
    }
    .form-group input,
    .form-group textarea {
        padding: 10px 12px; /* 减少padding */
        font-size: 16px; /* 防止iOS缩放 */
        border-radius: 8px;
    }
    .form-group textarea {
        height: 40px; /* 减少textarea高度 */
        min-height: 40px;
    }
    .submit-btn {
        padding: 10px 16px; /* 减少padding */
        font-size: 0.9rem;
        border-radius: 8px;
        margin-top: 10px; /* 减少顶部边距 */
    }
    .close-modal {
        top: 15px;
        right: 18px;
        width: 35px;
        height: 35px;
        font-size: 18px;
    }
}

/* 超小屏幕设备优化 */
@media (max-width: 360px) {
    .contact-message {
        padding: 5px;
        padding-top: 20px; /* 适当的顶部空间 */
        padding-bottom: 20px; /* 添加底部空间 */
    }
    .modal-content {
        max-height: 65vh; /* 极小高度 */
        border-radius: 10px;
        margin: 0; /* 移除边距，让居中对齐生效 */
    }
    .modal-content h3 {
        padding: 12px 12px 8px; /* 最小padding */
        font-size: 1.1rem; /* 最小字体 */
    }
    .modal-content h3::before {
        font-size: 1.3rem; /* 最小emoji */
        margin-bottom: 2px;
    }
    .message-form {
        padding: 12px 12px 12px; /* 最小padding */
    }
    .form-group {
        margin-bottom: 8px;
    }
    .form-group input,
    .form-group textarea {
        padding: 10px 12px;
        font-size: 16px;
        border-radius: 8px;
    }
    .form-group textarea {
        height: 45px;
        min-height: 45px;
    }
    .submit-btn {
        padding: 10px 16px;
        font-size: 0.9rem;
        border-radius: 8px;
        margin-top: 12px;
    }
    .close-modal {
        top: 12px;
        right: 15px;
        width: 30px;
        height: 30px;
        font-size: 16px;
    }
}

/* 以下为download.css中.sms-btn及验证码输入框样式 */
.sms-btn {
    width: 100%;
    padding: 12px 18px;
    background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-family: '思源黑体', 'Source Han Sans', sans-serif;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
    box-shadow: 
        0 4px 15px rgba(52, 152, 219, 0.3),
        0 2px 8px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    background-color: #fafbfc;
}

.sms-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(46, 204, 113, 0.3);
    background: linear-gradient(135deg, #2ecc71 0%, #27ae60 100%);
}

.sms-btn:disabled {
    background: #bdc3c7;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.sms-btn:active:not(:disabled) {
    transform: translateY(0);
    box-shadow: 0 2px 10px rgba(46, 204, 113, 0.2);
}

.form-group input[name="sms_code"] {
    font-family: 'Courier New', monospace;
    font-size: 1.1rem;
    text-align: left;
    letter-spacing: 2px;
    font-weight: 600;
    color: #2c3e50;
    width: 200px;
    margin: 0;
    display: block;
    background: #fafbfc;
}

.form-group input[name="sms_code"]::placeholder {
    color: #a0aec0;
    font-weight: 400;
    opacity: 0.8;
}

@media (max-width: 768px) {
    .sms-btn {
        padding: 12px 16px;
        font-size: 13px;
        min-width: 100px;
    }
    .form-group input[name="sms_code"] {
        font-size: 16px;
        letter-spacing: 1px;
    }
}

@media (max-width: 480px) {
    .sms-btn {
        padding: 10px 12px;
        font-size: 12px;
        min-width: 80px;
    }
}

.contact-message {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(15px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    animation: modalBackdropFadeIn 0.4s ease-out;
    padding: 20px;
    box-sizing: border-box;
}

@keyframes modalBackdropFadeIn {
    from {
        opacity: 0;
        backdrop-filter: blur(0px);
    }
    to {
        opacity: 1;
        backdrop-filter: blur(15px);
    }
}

.modal-content {
    background: linear-gradient(145deg, #ffffff 0%, #f8f9fa 50%, #ffffff 100%);
    padding: 0;
    border-radius: 28px;
    max-width: 580px;
    width: 100%;
    max-height: 90vh;
    position: relative;
    animation: modalSlideIn 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow:
        0 32px 100px rgba(0, 0, 0, 0.2),
        0 8px 32px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.3);
    overflow: hidden;
    transform: translateZ(0);
    margin: auto;
    display: flex;
    flex-direction: column;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-40px) scale(0.9) translateZ(0);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1) translateZ(0);
    }
}

.submit-btn:disabled {
        background: #bdc3c7;
        cursor: not-allowed;
        transform: none;
        box-shadow: none;
    }

    /* 短信验证码按钮样式 */
    .sms-btn {
        width: 100%;
        padding: 12px 18px;
        background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
        color: white;
        border: none;
        border-radius: 10px;
        font-size: 0.95rem;
        font-weight: 600;
        cursor: pointer;
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        font-family: '思源黑体', 'Source Han Sans', sans-serif;
        text-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
        box-shadow: 
            0 4px 15px rgba(52, 152, 219, 0.3),
            0 2px 8px rgba(0, 0, 0, 0.1);
        display: flex;
        align-items: center;
        justify-content: center;
        box-sizing: border-box;
        background-color: #fafbfc;
    }
.modal-content h3::before {
    content: '📋';
    display: block;
    font-size: 2.2rem;
    margin-bottom: 8px;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

.modal-content p {
    text-align: center;
    color: #6c757d;
    margin: 0;
    padding: 0 30px 20px;
    font-size: 1rem;
    line-height: 1.6;
    font-family: '思源黑体', 'Source Han Sans', sans-serif;
}

.message-form {
    padding: 0 30px 30px;
    flex: 1;
    overflow-y: auto;
}

.form-row {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
}

.form-group {
    flex: 1;
    margin-bottom: 15px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 14px 18px;
    border: 2px solid #e9ecef;
    border-radius: 12px;
    font-size: 1rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: #ffffff;
    color: #2d3748;
    font-family: '思源黑体', 'Source Han Sans', sans-serif;
    box-sizing: border-box;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
    transform: translateY(-1px);
}

.form-group textarea {
    height: 80px;
    min-height: 80px;
    resize: vertical;
    font-family: '思源黑体', 'Source Han Sans', sans-serif;
}

.close-modal {
    position: absolute;
    top: 20px;
    right: 25px;
    color: rgba(255, 255, 255, 0.8);
    font-size: 24px;
    font-weight: bold;
    cursor: pointer;
    z-index: 10;
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
}

.close-modal:hover {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    transform: rotate(90deg) scale(1.1);
}

.submit-btn {
    width: 100%;
    padding: 12px 22px;
    background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    margin-top: 35px;
    font-family: '思源黑体', 'Source Han Sans', sans-serif;
    position: relative;
    overflow: hidden;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
    letter-spacing: 0.5px;
}

.submit-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transition: left 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

.submit-btn:hover::before {
    left: 100%;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(52, 152, 219, 0.4);
}

.submit-btn:active {
    transform: translateY(0);
    box-shadow: 0 4px 15px rgba(52, 152, 219, 0.3);
}

.submit-btn:disabled {
    background: #bdc3c7;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* 短信验证码按钮样式 */
.sms-btn {
    width: 100%;
    padding: 12px 18px;
    background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-family: '思源黑体', 'Source Han Sans', sans-serif;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
    box-shadow: 
        0 4px 15px rgba(52, 152, 219, 0.3),
        0 2px 8px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    background-color: #fafbfc;
}

.sms-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(52, 152, 219, 0.4);
}

.sms-btn:disabled {
    background: #95a5a6;
    cursor: not-allowed;
    transform: none;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.form-group input[name="sms_code"] {
    background: #f8f9fa;
    border: 2px solid #e9ecef;
    font-family: 'Courier New', monospace;
    font-size: 1.1rem;
    letter-spacing: 2px;
    text-align: center;
    font-weight: 600;
}

.form-group input[name="sms_code"]:focus {
    background: white;
    border-color: #28a745;
    box-shadow: 0 0 0 3px rgba(40, 167, 69, 0.1);
}

/* 响应式设计 */
@media (max-width: 768px) {
    .contact-message {
        padding: 10px;
        align-items: center;
        padding-top: 40px;
        padding-bottom: 40px;
    }
    
    .modal-content {
        width: 100%;
        max-height: 75vh;
        border-radius: 18px;
        margin: 0;
    }
    
    .modal-content h3 {
        padding: 20px 20px 15px;
        font-size: 1.4rem;
    }
    
    .modal-content h3::before {
        font-size: 1.8rem;
        margin-bottom: 6px;
    }
    
    .message-form {
        padding: 20px 20px 20px;
    }
    
    .form-row {
        flex-direction: column;
        gap: 8px;
    }
    
    .form-group {
        margin-bottom: 8px;
    }
    
    .form-group input,
    .form-group textarea {
        padding: 10px 14px;
        font-size: 16px;
    }
    
    .form-group textarea {
        height: 45px;
        min-height: 45px;
    }
    
    .submit-btn {
        margin-top: 12px;
        padding: 12px 18px;
        font-size: 0.95rem;
    }
    
    .close-modal {
        top: 18px;
        right: 22px;
        width: 40px;
        height: 40px;
        font-size: 20px;
    }
    
    .sms-btn {
        padding: 12px 16px;
        font-size: 13px;
        min-width: 100px;
    }
    
    .form-group input[name="sms_code"] {
        font-size: 16px;
        letter-spacing: 1px;
    }
}

@media (max-width: 480px) {
    .contact-message {
        padding: 8px;
        padding-top: 30px;
        padding-bottom: 30px;
    }
    
    .modal-content {
        border-radius: 14px;
        max-height: 70vh;
        margin: 0;
    }
    
    .modal-content h3 {
        padding: 15px 15px 12px;
        font-size: 1.2rem;
    }
    
    .modal-content h3::before {
        font-size: 1.5rem;
        margin-bottom: 4px;
    }
    
    .message-form {
        padding: 15px 15px 15px;
    }
    
    .form-group {
        margin-bottom: 8px;
    }
    
    .form-group input,
    .form-group textarea {
        padding: 10px 12px;
        font-size: 16px;
        border-radius: 8px;
    }
    
    .form-group textarea {
        height: 40px;
        min-height: 40px;
    }
    
    .submit-btn {
        padding: 10px 16px;
        font-size: 0.9rem;
        border-radius: 8px;
        margin-top: 10px;
    }
    
    .close-modal {
        top: 15px;
        right: 18px;
        width: 35px;
        height: 35px;
        font-size: 18px;
    }
    
    .sms-btn {
        padding: 10px 12px;
        font-size: 12px;
        min-width: 80px;
    }
}

@media (max-width: 360px) {
    .contact-message {
        padding: 5px;
        padding-top: 20px;
        padding-bottom: 20px;
    }
    
    .modal-content {
        max-height: 65vh;
        border-radius: 10px;
        margin: 0;
    }
    
    .modal-content h3 {
        padding: 12px 12px 8px;
        font-size: 1.1rem;
    }
    
    .modal-content h3::before {
        font-size: 1.3rem;
        margin-bottom: 2px;
    }
    
    .message-form {
        padding: 12px 12px 12px;
    }
    
    .form-group {
        margin-bottom: 8px;
    }
    
    .form-group input,
    .form-group textarea {
        padding: 10px 12px;
        font-size: 16px;
        border-radius: 8px;
    }
    
    .form-group textarea {
        height: 45px;
        min-height: 45px;
    }
    
    .submit-btn {
        padding: 10px 16px;
        font-size: 0.9rem;
        border-radius: 8px;
        margin-top: 12px;
    }
    
    .close-modal {
        top: 12px;
        right: 15px;
        width: 30px;
        height: 30px;
        font-size: 16px;
    }
}

.download-table-wrapper {
    width: 100%;
    overflow-x: auto;
}

@media (max-width: 768px) {
    .download-table-wrapper {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    .download-table {
        min-width: 600px;
    }
}






