html, body {
    overflow-x: hidden;
    width: 100%;
    background-image: url('assets/images/logo/113.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

.video-module-section {
    padding: 60px 0;
    background-color: transparent;
    width: 100%;
}

.categories-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
    box-sizing: border-box;
}

.section-title {
    text-align: center;
    font-size: 28px;
    color: #333;
    margin-bottom: 15px;
}

.section-subtitle {
    text-align: center;
    color: #666;
    font-size: 16px;
    margin-bottom: 30px;
}

.videos-grid {
    display: grid;
    gap: 20px;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

@media (min-width: 768px) {
    .videos-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (min-width: 768px) and (max-width: 1024px) {
    .section-title {
        font-size: 24px;
    }
    .section-subtitle {
        font-size: 14px;
    }
}

@media (max-width: 767px) {
    .videos-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 0 25px;
    }
    .video-module-section {
        padding: 30px 0;
    }
    .section-title {
        font-size: 20px;
        padding: 0 25px;
    }
    .section-subtitle {
        font-size: 13px;
        padding: 0 25px;
    }
    .search-container {
        margin-bottom: 15px !important;
    }
    .search-box {
        width: calc(100% - 50px) !important;
        margin: 0 25px;
    }
    .search-box .search-input {
        font-size: 14px !important;
        padding: 12px 35px 12px 16px !important;
    }
    .search-box .clear-btn {
        right: 10px !important;
        font-size: 18px !important;
    }
    .search-container p {
        font-size: 12px !important;
        padding: 0 25px;
        margin-top: 6px !important;
    }
    .video-card {
        border-radius: 12px;
        box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
    }
    .video-card .video-cover,
    .video-card .inline-video {
        height: 180px;
        border-radius: 12px 12px 0 0;
    }
    .video-info {
        padding: 16px;
    }
    .video-info p {
        font-size: 14px;
        font-weight: 500;
        color: #444;
    }
    .no-result-desc {
        font-size: 13px !important;
        width: calc(100% - 50px) !important;
        padding: 0 !important;
    }
    .recommend-title {
        padding: 0 25px;
    }
    .recommend-list {
        padding: 0 25px;
        justify-content: center !important;
        display: grid !important;
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 16px !important;
    }
    .recommend-card {
        flex: none !important;
        width: 100% !important;
    }
    .categories-container p:last-child {
        font-size: 11px !important;
        padding: 0 25px;
    }
}

.video-card {
    background-color: #ffffff;
    border: none;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    position: relative;
    cursor: pointer;
    touch-action: pan-y pinch-zoom;
    -webkit-user-select: none;
    user-select: none;
}

.video-card:hover {
    transform: translateY(-5px);
}

.video-card:focus {
    outline: 2px solid #003366;
    outline-offset: 2px;
}

.video-card .video-cover {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
    position: relative;
    top: 0;
    left: 0;
    z-index: 2;
}

.video-card .inline-video {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: none;
    position: absolute;
    z-index: 1;
    background: #000;
}

.video-info {
    padding: 15px;
}

.video-info p {
    font-size: 14px;
    color: #666666;
    line-height: 1.5;
    margin: 0;
}

/* 模态框样式 */
.video-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.85);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
    transition: opacity 0.3s ease;
    touch-action: none;
}

.modal-video {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
}

@media (max-width: 767px) {
    .modal-video {
        width: 100%;
        height: auto;
        max-height: 70vh;
        object-fit: contain;
    }
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 30px;
    color: white;
    background-color: transparent;
    border: none;
    cursor: pointer;
    z-index: 10000;
    transition: transform 0.2s ease;
    box-shadow: 0 0 0 15px rgba(0,0,0,0);
}

.modal-close:hover {
    transform: scale(1.1);
}

@media (max-width: 767px) {
    .modal-close {
        top: 10px;
        right: 10px;
        font-size: 28px;
        width: 45px;
        height: 45px;
        display: flex;
        align-items: center;
        justify-content: center;
        box-shadow: 0 0 0 20px rgba(0,0,0,0);
    }
}

/* 视频加载状态样式 */
.video-loading {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    border: 6px solid rgba(255,255,255,0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 1s ease-in-out infinite;
    z-index: 10001;
}

@keyframes spin {
    to { transform: translate(-50%, -50%) rotate(360deg); }
}

/* 视频错误提示样式 */
.video-error {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    padding: 24px;
    border-radius: 12px;
    text-align: center;
    z-index: 10001;
    max-width: 80%;
    min-width: 250px;
}

.video-error p {
    margin: 0 0 16px;
    color: #333;
    font-size: 15px;
}

.video-error button {
    margin: 0 8px;
    padding: 10px 24px;
    background: #003366;
    color: white;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    font-size: 14px;
    transition: background 0.2s;
}

.video-error button:hover {
    background: #00264d;
}

.video-error .btn-secondary {
    background: transparent;
    color: #003366;
    border: 1px solid #003366;
}

.video-error .btn-secondary:hover {
    background: #f5f8fc;
}

/* 横屏提示样式 */
.landscape-tip {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 14px;
    background: rgba(0,0,0,0.6);
    padding: 12px 24px;
    border-radius: 25px;
    z-index: 10001;
    display: flex;
    align-items: center;
    gap: 8px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

/* 订单表单模态框样式 */
.form-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.7);
    z-index: 10002;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    padding: 20px;
    box-sizing: border-box;
}

.form-modal.show {
    opacity: 1;
    visibility: visible;
}

.form-modal .form-card {
    position: relative;
    background-color: rgba(255, 255, 255, 0.98);
    border-radius: 20px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.2);
    padding: 40px 30px;
    max-width: 450px;
    width: calc(100% - 40px);
    max-height: 90vh;
    overflow-y: auto;
    box-sizing: border-box;
    margin: 0 20px;
}

.form-modal .form-header {
    text-align: center;
    margin-bottom: 30px;
}

.form-modal .form-header h2 {
    font-size: 24px;
    color: #003366;
    margin-bottom: 10px;
    font-weight: 700;
}

.form-modal .form-header p {
    color: #666;
    font-size: 14px;
}

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

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

.form-modal .form-group label .required {
    color: #e53935;
    margin-left: 4px;
}

.form-modal .form-input {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-size: 14px;
    outline: none;
    transition: all 0.3s ease;
    background-color: #fafafa;
    box-sizing: border-box;
}

.form-modal .form-input select {
    width: 100%;
    padding: 12px 16px;
    border: none;
    border-radius: 10px;
    font-size: 14px;
    outline: none;
    background-color: transparent;
    -webkit-appearance: none;
    appearance: none;
    cursor: pointer;
}

.form-modal .form-input select option[disabled] {
    color: #999;
    background-color: #f5f5f5;
}

.form-modal select.form-input option:not([disabled]) {
    color: #333;
}

.form-modal select.form-input:invalid {
    color: #999;
}

.form-modal select.form-input {
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23999' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 40px;
}

.form-modal .form-input:focus {
    border-color: #003366;
    box-shadow: 0 0 0 4px rgba(0, 51, 102, 0.15);
    background-color: #fff;
}

.form-modal .form-input.error {
    border-color: #e53935;
}

.form-modal .submit-btn {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, #003366 0%, #00264d 100%);
    color: #ffffff;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 10px;
}

.form-modal .submit-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 51, 102, 0.35);
}

.form-modal .submit-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
}

.form-modal .error-message {
    color: #e53935;
    font-size: 12px;
    margin-top: 5px;
    display: none;
}

.form-modal .close-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 28px;
    color: #888;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0 8px;
}

.form-modal .close-btn:hover {
    color: #333;
}

.form-modal .success-message {
    color: #43a047;
    font-size: 14px;
    margin-top: 12px;
    padding: 12px;
    background-color: rgba(76, 175, 80, 0.1);
    border-radius: 8px;
    display: none;
    text-align: center;
}

@media (max-width: 500px) {
    .form-modal {
        padding: 15px;
    }
    
    .form-modal .form-card {
        padding: 30px 20px;
        border-radius: 16px;
    }
    
    .form-modal .form-header h2 {
        font-size: 20px;
    }
    
    .form-modal .form-header p {
        font-size: 13px;
    }
    
    .form-modal .form-input {
        padding: 11px 14px;
        font-size: 13px;
    }
    
    .form-modal select.form-input {
        padding-right: 35px;
    }
    
    .form-modal .submit-btn {
        padding: 13px;
        font-size: 15px;
    }
    
    .form-modal .close-btn {
        top: 12px;
        right: 12px;
        font-size: 24px;
        padding: 0 6px;
    }
    
    .form-modal .form-group {
        margin-bottom: 18px;
    }
    
    .form-modal .form-group label {
        font-size: 13px;
    }
}

.landscape-tip.show {
    opacity: 1;
    visibility: visible;
}

/* 加载动画 */
.thumbnail-loading {
    position: relative;
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s infinite;
}

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

.no-result-tip {
    grid-column: 1 / -1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 25px;
    text-align: center;
    color: #666;
    animation: fadeIn 0.4s ease-out;
}

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

.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: 40px;
    padding: 20px;
}

.pagination button {
    padding: 10px 16px;
    border: 2px solid #003366;
    background-color: white;
    color: #003366;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
}

.pagination button:hover:not(:disabled) {
    background-color: #003366;
    color: white;
}

.pagination button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.pagination button.active {
    background-color: #003366;
    color: white;
}

.pagination .page-info {
    padding: 0 12px;
    color: #666;
    font-size: 14px;
}

.no-result-icon {
    margin-bottom: 24px;
    opacity: 0.7;
}

.no-result-title {
    font-size: 20px;
    font-weight: 600;
    color: #333;
    margin: 0 0 10px;
}

.no-result-desc {
    font-size: 15px;
    color: #888;
    width: calc(100% - 50px);
    max-width: 600px;
    margin: 0 auto 30px;
    line-height: 1.6;
}

.no-result-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    justify-content: center;
}

.btn-primary, .btn-secondary {
    padding: 10px 24px;
    border-radius: 25px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s;
    border: none;
}

.btn-primary {
    background: #003366;
    color: white;
}

.btn-primary:hover {
    background: #00264d;
}

.btn-secondary {
    background: white;
    color: #003366;
    border: 1px solid #003366;
}

.btn-secondary:hover {
    background: #f5f8fc;
}

.no-result-recommend {
    margin-top: 30px;
    width: calc(100% - 50px);
    max-width: 600px;
}

.recommend-title {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin: 0 0 16px;
    text-align: center;
}

.recommend-list {
    display: flex;
    gap: 16px;
    justify-content: center;
}

.recommend-card {
    flex: 0 0 180px;
    cursor: pointer;
    transition: transform 0.2s;
    position: relative;
    touch-action: pan-y pinch-zoom;
    -webkit-user-select: none;
    user-select: none;
}

.recommend-card:hover {
    transform: translateY(-4px);
}

.recommend-thumb {
    width: 100%;
    height: 100px;
    object-fit: cover;
    border-radius: 8px;
    background: #eee;
    transition: opacity 0.2s;
}

.recommend-card:hover .recommend-thumb {
    opacity: 0.85;
}

.recommend-play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease, transform 0.2s ease;
    pointer-events: auto;
    z-index: 10;
    box-shadow: 0 0 0 20px rgba(255,255,255,0);
}

.recommend-card:hover .recommend-play-btn {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, -50%) scale(1.1);
}

.recommend-play-btn::before {
    content: '';
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 10px 0 10px 16px;
    border-color: transparent transparent transparent #003366;
    margin-left: 2px;
}

.recommend-name {
    margin: 8px 0 0;
    font-size: 13px;
    color: #555;
}

@media (max-width: 600px) {
    .recommend-card {
        flex: 0 0 140px;
    }
    .recommend-thumb {
        height: 80px;
    }
}
