/**
 * Videos Single Page Styles
 * 视频内页样式
 * 
 * @package Milestrong
 * @since 2.0.0
 */

/* ===== 基础样式 ===== */
.page-videos-single {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #333;
}

/* ===== 正文头部标题区 ===== */
.videos-single-header {
    padding: 60px 0;
    position: relative;
}

.videos-single-header-content {
    max-width: 1200px;
    margin: 0 auto;
}

.videos-meta-info {
    text-align: center;
}

.videos-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #ffffff;
    margin: 0 0 30px 0;
    line-height: 1.2;
}

.videos-meta-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 40px;
    flex-wrap: wrap;
}

.videos-single-date {
    display: flex;
    align-items: center;
    font-size: 1rem;
    color: #666;
    font-weight: 500;
}

.videos-single-date .custom-date-icon,
.videos-single-date .icon-calendar {
    margin-right: 8px;
}

/* ===== 社会化分享按钮 ===== */
.videos-share-buttons-container {
    display: flex;
    gap: 15px;
    align-items: center;
    justify-content: flex-end;
}

.videos-share-buttons-container .share-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
    text-decoration: none;
}

.videos-share-buttons-container .share-button:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.videos-share-buttons-container .share-button img {
    width: 20px;
    height: 20px;
    object-fit: contain;
}

.videos-share-buttons-container .share-button .share-icon {
    font-size: 18px;
    color: #333;
}

/* ===== 正文内容区 ===== */
.videos-single-content {
    padding: 80px 0;
    min-height: 400px;
}

.videos-content-wrapper {
    max-width: 1200px;
    margin: 0 auto;
}

.videos-article .entry-content {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #ffffff;
}

.videos-article .entry-content h1,
.videos-article .entry-content h2,
.videos-article .entry-content h3,
.videos-article .entry-content h4,
.videos-article .entry-content h5,
.videos-article .entry-content h6 {
    font-weight: 600;
    margin: 40px 0 20px 0;
    line-height: 1.3;
}

.videos-article .entry-content h1 { font-size: 2.2rem; }
.videos-article .entry-content h2 { font-size: 1.9rem; }
.videos-article .entry-content h3 { font-size: 1.6rem; }
.videos-article .entry-content h4 { font-size: 1.4rem; }
.videos-article .entry-content h5 { font-size: 1.2rem; }
.videos-article .entry-content h6 { font-size: 1.1rem; }

.videos-article .entry-content p {
    margin: 0 0 25px 0;
}

.videos-article .entry-content ul,
.videos-article .entry-content ol {
    margin: 0 0 25px 0;
    padding-left: 30px;
}

.videos-article .entry-content li {
    margin-bottom: 8px;
}

.videos-article .entry-content blockquote {
    margin: 30px 0;
    padding: 20px 30px;
    background: #f8f9fa;
    border-left: 4px solid #017fff;
    font-style: italic;
    border-radius: 0 8px 8px 0;
}

/* ===== 视频和图片样式 ===== */
.videos-content-image {
    max-width: 1000px;
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    margin: 30px auto;
    display: block;
    cursor: pointer;
    transition: all 0.3s ease;
}

.videos-content-image:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

.videos-video-wrapper {
    position: relative;
    width: 100%;
    max-width: 1000px;
    margin: 30px auto;
    aspect-ratio: 16/9;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.videos-video-wrapper iframe,
.videos-video-wrapper video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

/* 视频播放器控制条样式 */
.videos-video-wrapper video::-webkit-media-controls-panel {
    background-color: #017fff;
}

.videos-video-wrapper video::-webkit-media-controls-play-button,
.videos-video-wrapper video::-webkit-media-controls-volume-slider {
    filter: brightness(0) invert(1);
}

/* ===== 文章导航区 ===== */
.videos-single-navigation {
    padding: 40px 0;
}

.videos-navigation-wrapper {
    max-width: 1200px;
    margin: 0 auto;
}

.videos-navigation-divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, #e0e0e0 50%, transparent);
    margin-bottom: 30px;
}

.videos-navigation-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    align-items: center;
}

.nav-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: auto;
    height: auto;
    border-radius: 0;
    background: transparent;
    border: none;
    color: #666;
    font-size: 20px;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
}

.nav-button:hover:not(.disabled) {
    transform: none;
    box-shadow: none;
}

.nav-button.disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.nav-icon {
    font-style: normal;
    line-height: 1;
}

/* 导航按钮图标图片 */
.nav-icon-img {
    width: auto;
    height: auto;
    object-fit: contain;
    pointer-events: none;
}

/* hover 图标默认隐藏 */
.nav-back-hover,
.nav-prev-hover,
.nav-next-hover {
    display: none;
}

/* hover 时切换：隐藏常态，显示 hover */
.nav-button.nav-back:hover .nav-back-default { display: none; }
.nav-button.nav-back:hover .nav-back-hover { display: inline; }
.nav-button.nav-prev:hover .nav-prev-default { display: none; }
.nav-button.nav-prev:hover .nav-prev-hover { display: inline; }
.nav-button.nav-next:hover .nav-next-default { display: none; }
.nav-button.nav-next:hover .nav-next-hover { display: inline; }

/* ===== 相关视频区块 ===== */
.videos-related-section {
    padding: 80px 0;
}

.related-videos-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
}

.related-videos-title {
    font-size: 2.2rem;
    font-weight: 700;
    text-align: center;
    margin: 0 0 60px 0;
    color: #ffffff;
}

.related-videos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 40px;
    margin-bottom: 50px;
}

.related-videos-item {
    background: #181822;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    position: relative;
    padding: 15px;
}

.related-videos-item:hover {
    transform: translateY(-5px);
    background: #fff;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

.videos-item-image {
    position: relative;
    aspect-ratio: 16/9;
    overflow: hidden;
    border-radius: 8px;
    margin-bottom: 15px;
}

.videos-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.3s ease;
}

.videos-play-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.3s ease;
}

.related-videos-item:hover .videos-play-overlay {
    opacity: 1;
}

.play-button {
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: #017fff;
    transform: scale(0.8);
    transition: all 0.3s ease;
}

.related-videos-item:hover .play-button {
    transform: scale(1);
}

.videos-item-content {
    padding: 0;
    background: transparent;
    transition: all 0.3s ease;
}

.related-videos-item:hover .videos-item-content {
    background: transparent;
    color: #333;
}

.videos-item-title {
    font-size: 1.2rem;
    font-weight: 600;
    margin: 0 0 15px 0;
    line-height: 1.4;
    color: #fff;
    word-wrap: break-word;
    word-break: break-word;
    hyphens: auto;
    overflow-wrap: break-word;
}

.videos-item-title a {
    color: #fff;
    text-decoration: none;
    transition: all 0.3s ease;
    word-wrap: break-word;
    word-break: break-word;
    display: block;
}

.related-videos-item:hover .videos-item-title,
.related-videos-item:hover .videos-item-title a {
    color: #333;
}

.videos-item-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
}

.videos-item-date {
    font-size: 0.9rem;
    color: #fff;
    font-weight: 500;
}

.related-videos-item:hover .videos-item-date {
    color: #666;
}

.videos-item-button {
    padding: 8px 20px;
    background: linear-gradient(135deg, var(--videos-btn-start), var(--videos-btn-end));
    color: #fff;
    text-decoration: none;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.videos-item-button:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(1, 127, 255, 0.3);
}

/* ===== 导航和指示器 ===== */
.related-videos-navigation {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    transform: translateY(-50%);
    pointer-events: none;
    z-index: 10;
}

.nav-btn {
    position: absolute;
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: #333;
    cursor: pointer;
    transition: all 0.3s ease;
    pointer-events: auto;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.nav-btn:hover {
    background: #017fff;
    color: #fff;
    transform: scale(1.1);
}

.nav-btn.nav-prev {
    left: -80px;
}

.nav-btn.nav-next {
    right: -80px;
}

.related-videos-indicators {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 30px;
}

.indicators-wrapper {
    display: flex;
    gap: 8px;
}

.indicator-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #ddd;
    cursor: pointer;
    transition: all 0.3s ease;
}

.indicator-dot.active {
    background: #017fff;
}

/* ===== 联系我们区块 ===== */
.videos-contact-section {
    padding: 80px 0;
    color: #fff;
}

.videos-contact-section .contact-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.videos-contact-section .contact-title {
    font-size: 5.5rem;
    font-weight: 700;
    margin: 0 0 15px 0;
    color: #fff;
}

.videos-contact-section .contact-title .contact-word-1 {
    color: #017fff;
}

.videos-contact-section .contact-title .contact-word-2 {
    color: #fff;
}

.videos-contact-section .contact-subtitle {
    font-size: 2rem;
    color: rgba(255, 255, 255, 0.8);
}

.videos-contact-section .contact-description {
    font-size: 18px;
    color: #ffffff;
    margin: 0px 0 35px 0;
    line-height: 1.6;
}

.videos-contact-section .contact-form-wrapper {
    max-width: 800px;
    margin: 0 auto 30px;
}

.videos-contact-section .contact-privacy {
    text-align: center;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
}

/* ===== 响应式设计 ===== */

/* 平板端 (768px-1199px) */
@media screen and (max-width: 1199px) {
    .videos-title {
        font-size: 2.2rem;
    }
    
    .videos-meta-row {
        gap: 30px;
    }
    
    .related-videos-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }
    
    .nav-btn.nav-prev {
        left: -15px;
    }
    
    .nav-btn.nav-next {
        right: -15px;
    }
}

@media screen and (max-width: 768px) {
    /* 移动端样式 */
    .videos-single-header {
        padding: 40px 0;
    }
    
    .videos-title {
        font-size: 1.8rem;
        margin-bottom: 20px;
    }
    
    .videos-meta-row {
        flex-direction: row;
        justify-content: space-between;
        gap: 15px;
    }
    
    .videos-share-buttons-container {
        gap: 10px;
    }
    
    .videos-share-buttons-container .share-button {
        width: 35px;
        height: 35px;
    }
    
    .videos-share-buttons-container .share-button img {
        width: 16px;
        height: 16px;
    }
    
    .videos-single-content {
        padding: 50px 0;
    }
    
    .videos-article .entry-content {
        font-size: 1rem;
    }
    
    .videos-article .entry-content h1 { font-size: 1.8rem; }
    .videos-article .entry-content h2 { font-size: 1.6rem; }
    .videos-article .entry-content h3 { font-size: 1.4rem; }
    .videos-article .entry-content h4 { font-size: 1.2rem; }
    .videos-article .entry-content h5 { font-size: 1.1rem; }
    .videos-article .entry-content h6 { font-size: 1rem; }
    
    .videos-content-image {
        margin: 20px auto;
    }
    
    .videos-video-wrapper {
        margin: 20px auto;
    }
    
    .videos-related-section {
        padding: 60px 0;
    }
    
    .related-videos-title {
        font-size: 1.8rem;
        margin-bottom: 40px;
    }
    
    .related-videos-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }
    
    .related-videos-navigation {
        display: none;
    }
    
    .related-videos-indicators {
        display: flex;
    }
    
    .videos-contact-section {
        padding: 60px 0;
    }
    
    .videos-contact-section .contact-title {
        font-size: 2rem;
    }
    
    .videos-contact-section .contact-title .contact-word-1 {
        color: #017fff;
    }
    
    .videos-contact-section .contact-title .contact-word-2 {
        color: #fff;
    }
    
    .videos-contact-section .contact-subtitle {
        font-size: 1.1rem;
    }
    
    .videos-contact-section .contact-description {
        font-size: 17px;
    }
    
    .nav-button {
        width: 45px;
        height: 45px;
        font-size: 18px;
    }
    
    .videos-navigation-buttons {
        gap: 15px;
    }
}

/* 超小屏幕 */
@media screen and (max-width: 480px) {
    .videos-title {
        font-size: 1.6rem;
    }
    
    .videos-meta-row {
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }
    
    .related-videos-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .videos-item-content {
        padding: 0;
    }
    
    .videos-item-footer {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .videos-item-button {
        align-self: stretch;
        text-align: center;
    }
    
    .videos-contact-section .contact-description {
        font-size: 16px;
    }
}

/* ===== 工具类 ===== */
.desktop-only {
    display: block;
}

.mobile-tablet-only {
    display: none;
}

@media screen and (max-width: 1199px) {
    .desktop-only {
        display: none;
    }
    
    .mobile-tablet-only {
        display: block;
    }
}

/* ===== 页面链接样式 ===== */
.page-links {
    margin: 40px 0;
    text-align: center;
}

.page-links a,
.page-links span {
    display: inline-block;
    padding: 8px 15px;
    margin: 0 5px;
    background: #f8f9fa;
    border: 1px solid #e0e0e0;
    border-radius: 5px;
    text-decoration: none;
    color: #333;
    transition: all 0.3s ease;
}

.page-links a:hover {
    background: #017fff;
    border-color: #017fff;
    color: #fff;
}

.page-links .current {
    background: #017fff;
    border-color: #017fff;
    color: #fff;
}

/* ===== 无相关内容提示 ===== */
.no-related-videos {
    text-align: center;
    font-size: 1.1rem;
    color: #666;
    padding: 40px 0;
    font-style: italic;
}

/* ===== 联系表单样式 ===== */
/* Contact Submit Button Arrow Icon */
.contact-submit-arrow {
    display: inline-block;
    width: 20px;
    height: 20px;
    position: relative;
    transform: rotate(-45deg);
}

/* 箭头的尖端（直角部分） */
.contact-submit-arrow::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    border-top: 1.5px solid #ffffff;
    border-right: 1.5px solid #ffffff;
    transform: translate(-30%, -40%) rotate(45deg);
    box-sizing: border-box;
}

/* 箭头的横线 */
.contact-submit-arrow::after {
    content: '';
    position: absolute;
    top: 54%;
    left: 0;
    width: 28px;
    height: 1.5px;
    background-color: #ffffff;
    transform: translateY(50%);
}

/* Input Focus States */
.contact-section input:focus,
.contact-section textarea:focus {
    border-color: #007BFF !important;
    box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.2) !important;
}

/* Error States */
.contact-section input.error,
.contact-section textarea.error {
    border-color: #EF4444 !important;
}

/* Placeholder Styles */
.contact-section input::placeholder,
.contact-section textarea::placeholder {
    color: #9CA3AF;
    opacity: 1;
}

/* Submit Button Hover */
#contact-submit-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(0, 123, 255, 0.4);
}

#contact-submit-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* Spinner Animation */
#submit-btn-spinner {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* 响应式设计 */
@media (max-width: 1023px) {
    .milestrong-contact-form-container form > div:first-of-type {
        grid-template-columns: 1fr !important;
        gap: 16px !important;
    }
    
    #contact-submit-btn {
        min-width: 100% !important;
        padding: 14px 40px !important;
    }
}

/* iPad 端 (768px-1023px) */
@media (min-width: 768px) and (max-width: 1023px) {
    .milestrong-contact-form-container {
        max-width: 100% !important;
    }
    
    .milestrong-contact-form-container form > div:first-of-type {
        grid-template-columns: 1fr !important;
        gap: 20px !important;
    }
    
    .milestrong-contact-form-container form > div:first-of-type > div {
        gap: 30px !important;
    }
    
    .contact-section input,
    .contact-section textarea {
        padding: 11px 15px !important;
        font-size: 13px !important;
    }
    
    #contact-submit-btn {
        font-size: 19px !important;
        padding: 12px 35px !important;
    }
}

/* 手机端 (最大767px) */
@media (max-width: 767px) {
    .milestrong-contact-form-container form > div:first-of-type > div {
        gap: 20px !important;
    }
    
    .contact-section input,
    .contact-section textarea {
        padding: 10px 14px !important;
        font-size: 12px !important;
    }
    
    #contact-submit-btn {
        font-size: 17px !important;
        padding: 10px 30px !important;
        min-width: 100% !important;
    }
    
    .contact-submit-arrow {
        width: 16px !important;
        height: 16px !important;
    }
    
    .contact-submit-arrow::after {
        width: 24px !important;
    }
}