* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f0f2f5;
    background-image: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    min-height: 100vh;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

@media (max-width: 767px) {
    .container {
        padding: 0;
    }
}

.header {
    background-color: #fff;
    padding: 20px 0;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    margin-bottom: 30px;
}

@media (max-width: 767px) {
    .header {
        padding: 10px 0;
        margin-bottom: 15px;
        box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
    }
}

.header h1 {
    text-align: center;
    font-size: 32px;
    font-weight: 700;
    color: #2c3e50;
    margin: 0;
    padding: 10px 0;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
    transition: color 0.3s ease, transform 0.3s ease;
}

.header h1:hover {
    color: #3498db;
    transform: scale(1.02);
}

.main {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
    margin-bottom: 40px;
}

@media (min-width: 768px) {
    .main {
        grid-template-columns: 1fr;
        gap: 40px;
        margin-bottom: 60px;
    }
}

@media (min-width: 1200px) {
    .video-container {
        max-width: 100%;
    }
}

.video-section {
    background-color: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    max-width: 800px;
    margin: 0 auto;
}

@media (max-width: 767px) {
    .video-section {
        max-width: 100%;
        border-radius: 0;
        box-shadow: none;
        margin: 0;
    }
}

.video-section:hover {
    transform: translateY(-8px);
    box-shadow: 0 16px 32px rgba(0, 0, 0, 0.25);
}

.contact-info {
    padding: 40px;
    text-align: center;
    background-color: #f8f9fa;
    border-top: 1px solid #e9ecef;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.contact-info:hover {
    background-color: #e9ecef;
    transform: translateY(-2px);
}

.contact-info p {
    margin: 0;
    font-size: 28px;
    font-weight: 700;
    color: #2c3e50;
    transition: color 0.3s ease, transform 0.3s ease;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
}

.contact-info:hover p {
    color: #3498db;
    transform: scale(1.02);
}

.video-container {
    position: relative;
    width: 100%;
    padding-top: 150%; /* 调整为更小的9:16宽高比 */
    max-width: 600px;
    margin: 0 auto;
}

@media (max-width: 767px) {
    .video-container {
        max-width: 100%;
        padding-top: 150%; /* 调整为更小的9:16宽高比 */
    }
}

.video-cover {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #000;
    background-size: cover;
    background-position: center;
    z-index: 1;
    transition: opacity 0.3s ease;
}

.video-cover.hidden {
    opacity: 0;
    pointer-events: none;
}

#main-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    background-color: #000;
}

.progress-bar {
    position: absolute;
    bottom: 60px;
    left: 0;
    right: 0;
    padding: 0 20px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

#progress-slider {
    width: 100%;
    -webkit-appearance: none;
    appearance: none;
    height: 6px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 3px;
    outline: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

#progress-slider:hover {
    background: rgba(255, 255, 255, 0.5);
}

#progress-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 16px;
    height: 16px;
    background: #3498db;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
}

#progress-slider::-webkit-slider-thumb:hover {
    background: #2980b9;
    transform: scale(1.1);
}

#progress-slider::-moz-range-thumb {
    width: 16px;
    height: 16px;
    background: #3498db;
    border-radius: 50%;
    cursor: pointer;
    border: none;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
}

#progress-slider::-moz-range-thumb:hover {
    background: #2980b9;
    transform: scale(1.1);
}

.video-controls {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    color: #fff;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.control-btn {
    background: none;
    border: none;
    color: #fff;
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    transition: background-color 0.3s ease;
}

.control-btn:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

.volume-control {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
}

#volume-slider {
    flex: 1;
    max-width: 100px;
    -webkit-appearance: none;
    appearance: none;
    height: 6px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 3px;
    outline: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

#volume-slider:hover {
    background: rgba(255, 255, 255, 0.5);
}

#volume-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 14px;
    height: 14px;
    background: #3498db;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
}

#volume-slider::-webkit-slider-thumb:hover {
    background: #2980b9;
    transform: scale(1.1);
}

#volume-slider::-moz-range-thumb {
    width: 14px;
    height: 14px;
    background: #3498db;
    border-radius: 50%;
    cursor: pointer;
    border: none;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
}



.view-count {
    position: absolute;
    top: 20px;
    right: 20px;
    background-color: rgba(0, 0, 0, 0.6);
    color: #fff;
    padding: 8px 16px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
}

#view-count-number {
    font-size: 18px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.form-section {
    background-color: #fff;
    border-radius: 8px;
    padding: 30px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.form-section h2 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 24px;
    color: #2c3e50;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #555;
}

.form-group input {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    transition: border-color 0.3s ease;
}

.form-group input:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 0 2px rgba(52, 152, 219, 0.2);
}

.region-selector {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
}

@media (min-width: 480px) {
    .region-selector {
        grid-template-columns: repeat(3, 1fr);
    }
}

.region-selector select {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    background-color: #fff;
    cursor: pointer;
    transition: border-color 0.3s ease;
}

.region-selector select:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 0 2px rgba(52, 152, 219, 0.2);
}

.submit-btn {
    width: 100%;
    padding: 14px;
    background-color: #3498db;
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.submit-btn:hover {
    background-color: #2980b9;
}

.success-message {
    margin-top: 20px;
    padding: 12px;
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
    border-radius: 4px;
    text-align: center;
    opacity: 0;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    display: none;
}

.success-message.show {
    opacity: 1;
    transform: translateY(0);
}

/* 弹窗样式 */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.modal.show {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background-color: #fff;
    border-radius: 8px;
    padding: 40px;
    max-width: 400px;
    width: 90%;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    transform: translateY(-20px);
    transition: transform 0.3s ease;
}

.modal.show .modal-content {
    transform: translateY(0);
}

.modal-icon {
    margin-bottom: 20px;
}

.modal-content h3 {
    font-size: 20px;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 10px;
}

.modal-content p {
    color: #7f8c8d;
    margin-bottom: 30px;
    line-height: 1.5;
}

.modal-close-btn {
    padding: 12px 30px;
    background-color: #3498db;
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.modal-close-btn:hover {
    background-color: #2980b9;
}

@media (max-width: 767px) {
    .modal-content {
        padding: 30px 20px;
        width: 95%;
    }
    
    .modal-content h3 {
        font-size: 18px;
    }
}

.footer {
    background-color: #2c3e50;
    color: #fff;
    padding: 30px 0;
    text-align: center;
}

.footer p {
    font-size: 14px;
    opacity: 0.8;
}

@media (max-width: 767px) {
    .footer {
        padding: 15px 0;
    }
    
    .footer p {
        font-size: 12px;
    }
}

@media (max-width: 767px) {
    .header h1 {
        font-size: 24px;
    }
    
    .form-section {
        padding: 20px;
    }
    
    .video-controls {
        opacity: 1;
        background: rgba(0, 0, 0, 0.8);
        padding: 15px;
        gap: 10px;
    }
    
    .progress-bar {
        opacity: 1;
        bottom: 60px;
        padding: 0 15px;
    }
    
    .control-btn {
        padding: 8px;
    }
    
    .control-btn svg {
        width: 20px;
        height: 20px;
    }
    
    .volume-control {
        gap: 8px;
    }
    
    #volume-slider {
        max-width: 80px;
    }
    
    .contact-info {
        padding: 15px;
    }
    
    .contact-info p {
        font-size: 18px;
    }
}

/* 类型选择器样式 */
.type-selector {
    display: flex;
    gap: 20px;
    margin-top: 8px;
}

.type-selector label {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-size: 14px;
    font-weight: normal;
}

.type-selector input[type="radio"] {
    margin-right: 6px;
    cursor: pointer;
    width: auto;
}

/* 播放按钮脉冲动画 */
@keyframes pulse {
    0% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 1;
    }
    50% {
        transform: translate(-50%, -50%) scale(1.1);
        opacity: 0.8;
    }
    100% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 1;
    }
}

/* 移动端播放按钮调整 */
@media (max-width: 767px) {
    .play-prompt {
        width: 60px !important;
        height: 60px !important;
    }
    
    .play-prompt div {
        border-top: 15px solid transparent !important;
        border-bottom: 15px solid transparent !important;
        border-left: 22px solid white !important;
    }
}