* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* 无障碍访问 - 屏幕阅读器专用样式 */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    padding: 20px;
    color: #333;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
}

header {
    text-align: center;
    color: white;
    margin-bottom: 30px;
    position: relative;
}

.header-top {
    position: absolute;
    top: 0;
    right: 0;
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

.language-switcher {
    display: flex;
    gap: 5px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    padding: 3px;
    backdrop-filter: blur(10px);
}

.lang-btn {
    padding: 6px 16px;
    border: none;
    border-radius: 16px;
    background: transparent;
    color: white;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
    outline: none;
    text-decoration: none;
    display: inline-block;
}

.lang-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    color: white;
}

.lang-btn.active {
    background: rgba(255, 255, 255, 0.9);
    color: #667eea;
    font-weight: 600;
}

header h1 {
    font-size: 2.5em;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.subtitle {
    font-size: 1.1em;
    opacity: 0.9;
    margin-bottom: 20px;
}

/* 导航菜单样式 */
.main-nav {
    margin-top: 20px;
    position: relative;
    padding: 10px 15px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.25) 0%, rgba(255, 255, 255, 0.15) 100%);
    backdrop-filter: blur(20px) saturate(180%);
    border-radius: 12px;
    border: 2px solid rgba(255, 255, 255, 0.4);
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

.nav-menu {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 8px;
    list-style: none;
    padding: 0;
    margin: 0;
    flex-wrap: wrap;
}

.nav-menu li {
    margin: 0;
}

.nav-link {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px 16px;
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.15) 0%, rgba(255, 255, 255, 0.1) 100%);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.3);
    box-shadow: 
        0 4px 15px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
    min-width: 75px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

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

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

.nav-link:hover {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.4) 0%, rgba(255, 255, 255, 0.25) 100%);
    border-color: rgba(255, 255, 255, 0.6);
    transform: translateY(-4px) scale(1.02);
    box-shadow: 
        0 12px 30px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.5),
        0 0 20px rgba(255, 255, 255, 0.2);
    color: white;
}

.nav-link:active {
    transform: translateY(-2px) scale(1);
    box-shadow: 
        0 6px 20px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

/* 当前活动链接样式 */
.nav-link.active {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.5) 0%, rgba(255, 255, 255, 0.3) 100%);
    border-color: rgba(255, 255, 255, 0.7);
    box-shadow: 
        0 8px 25px rgba(0, 0, 0, 0.25),
        inset 0 1px 0 rgba(255, 255, 255, 0.6),
        0 0 15px rgba(255, 255, 255, 0.3);
}

/* 移动端菜单切换按钮 */
.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-around;
    width: 44px;
    height: 44px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.3) 0%, rgba(255, 255, 255, 0.2) 100%);
    border: 2px solid rgba(255, 255, 255, 0.4);
    border-radius: 10px;
    cursor: pointer;
    padding: 8px;
    position: absolute;
    top: 15px;
    right: 15px;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.nav-toggle:hover {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.4) 0%, rgba(255, 255, 255, 0.3) 100%);
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.nav-toggle span {
    width: 100%;
    height: 3px;
    background: white;
    border-radius: 3px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
    transform: rotate(45deg) translate(7px, 7px);
}

.nav-toggle[aria-expanded="true"] span:nth-child(2) {
    opacity: 0;
    transform: translateX(-10px);
}

.nav-toggle[aria-expanded="true"] span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

.player-wrapper {
    background: white;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    margin-bottom: 20px;
}

.url-input-section {
    margin-bottom: 20px;
}

.input-group {
    display: flex;
    gap: 10px;
    margin-bottom: 8px;
}

#m3u8-url {
    flex: 1;
    padding: 12px 16px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 16px;
    transition: border-color 0.3s;
}

#m3u8-url:focus {
    outline: none;
    border-color: #667eea;
}

.input-hint {
    color: #666;
    padding-left: 4px;
}

.btn {
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s;
    font-weight: 500;
}

.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.btn-primary:active {
    transform: translateY(0);
}

.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.video-container {
    position: relative;
    width: 100%;
    background: #000;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 20px;
    height: 300px;
    min-height: 300px;
}

/* 当视频加载后，恢复自适应高度 */
.video-container.has-video {
    height: auto;
    aspect-ratio: 16 / 9;
}

#video-player {
    width: 100%;
    height: 100%;
    display: block;
    background: #000;
}

/* 自定义原生 video controls 样式 */

/* Chrome/Safari/Edge 浏览器样式 */
#video-player::-webkit-media-controls-panel {
    background-color: rgba(0, 0, 0, 0.7);
    border-radius: 0 0 8px 8px;
}

#video-player::-webkit-media-controls-play-button {
    background-color: rgba(102, 126, 234, 0.8);
    border-radius: 50%;
    margin: 0 5px;
}

#video-player::-webkit-media-controls-play-button:hover {
    background-color: rgba(102, 126, 234, 1);
}

#video-player::-webkit-media-controls-current-time-display,
#video-player::-webkit-media-controls-time-remaining-display {
    color: #fff;
    font-size: 14px;
    font-weight: 500;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
}

#video-player::-webkit-media-controls-timeline {
    background-color: rgba(255, 255, 255, 0.3);
    border-radius: 2px;
    height: 4px;
}

#video-player::-webkit-media-controls-timeline::-webkit-slider-thumb {
    background-color: #667eea;
    border-radius: 50%;
    width: 12px;
    height: 12px;
}

#video-player::-webkit-media-controls-volume-slider {
    background-color: rgba(255, 255, 255, 0.3);
    border-radius: 2px;
    height: 4px;
}

#video-player::-webkit-media-controls-volume-slider::-webkit-slider-thumb {
    background-color: #667eea;
    border-radius: 50%;
    width: 12px;
    height: 12px;
}

#video-player::-webkit-media-controls-mute-button {
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    margin: 0 5px;
}

#video-player::-webkit-media-controls-mute-button:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

#video-player::-webkit-media-controls-fullscreen-button {
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    margin: 0 5px;
}

#video-player::-webkit-media-controls-fullscreen-button:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

/* 控制栏整体样式 */
#video-player::-webkit-media-controls-enclosure {
    background-color: transparent;
    border-radius: 0 0 8px 8px;
}

/* Firefox 浏览器样式 */
#video-player::-moz-media-controls {
    background-color: rgba(0, 0, 0, 0.7);
}

/* 视频播放时的控制栏透明度 */
#video-player:not(:hover)::-webkit-media-controls-panel {
    opacity: 0.8;
    transition: opacity 0.3s;
}

#video-player:hover::-webkit-media-controls-panel {
    opacity: 1;
    transition: opacity 0.3s;
}

.loading-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: white;
    z-index: 10;
}

.loading-overlay.active {
    display: flex;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 4px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 15px;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.error-message {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(220, 53, 69, 0.9);
    color: white;
    padding: 20px 30px;
    border-radius: 8px;
    display: none;
    z-index: 10;
    text-align: center;
    max-width: 80%;
}

.error-message.active {
    display: block;
}

.player-controls {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.control-group {
    display: flex;
    align-items: center;
    gap: 15px;
}

.control-btn {
    width: 40px;
    height: 40px;
    border: none;
    background: #f0f0f0;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    font-size: 18px;
}

.control-btn:hover {
    background: #e0e0e0;
    transform: scale(1.1);
}

.control-btn:active {
    transform: scale(0.95);
}

.volume-control {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
}

.volume-control input[type="range"] {
    flex: 1;
    max-width: 200px;
}

#volume-value {
    min-width: 45px;
    font-size: 14px;
    color: #666;
}

.progress-group {
    display: flex;
    align-items: center;
    gap: 10px;
}

.progress-group span {
    min-width: 50px;
    font-size: 14px;
    color: #666;
    text-align: center;
}

input[type="range"] {
    -webkit-appearance: none;
    appearance: none;
    height: 6px;
    background: #e0e0e0;
    border-radius: 3px;
    outline: none;
    flex: 1;
}

input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 18px;
    height: 18px;
    background: #667eea;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s;
}

input[type="range"]::-webkit-slider-thumb:hover {
    transform: scale(1.2);
    background: #764ba2;
}

input[type="range"]::-moz-range-thumb {
    width: 18px;
    height: 18px;
    background: #667eea;
    border-radius: 50%;
    cursor: pointer;
    border: none;
    transition: all 0.3s;
}

input[type="range"]::-moz-range-thumb:hover {
    transform: scale(1.2);
    background: #764ba2;
}

#progress-bar {
    flex: 1;
}

.quality-select {
    padding: 8px 12px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 14px;
    cursor: pointer;
    background: white;
}

.quality-select:focus {
    outline: none;
    border-color: #667eea;
}

/* 视频信息和快捷操作合并区域 */
.video-actions-section {
    margin-top: 20px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

/* 视频信息栏 */
.video-info-bar {
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    border-radius: 12px;
    padding: 20px;
    border: 1px solid #e0e0e0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.video-info-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
}

.info-icon {
    font-size: 20px;
}

.info-label {
    font-weight: 600;
    color: #333;
    font-size: 15px;
}

.video-info-content {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.info-value {
    flex: 1;
    color: #666;
    font-size: 14px;
    word-break: break-all;
    min-width: 200px;
    padding: 8px 12px;
    background: #f8f9fa;
    border-radius: 6px;
    font-family: 'Monaco', 'Courier New', monospace;
}

.copy-btn {
    padding: 8px 16px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.3s;
    white-space: nowrap;
    font-weight: 500;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
}

.copy-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.copy-btn:active {
    transform: translateY(0);
}

/* 快捷操作区 */
.quick-actions {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 12px;
}

.action-btn {
    padding: 14px 20px;
    background: white;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.3s;
    font-size: 14px;
    color: #333;
    font-weight: 500;
}

.action-btn:hover {
    border-color: #667eea;
    background: linear-gradient(135deg, #f0f4ff 0%, #ffffff 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.2);
}

.action-btn:active {
    transform: translateY(0);
}

.action-btn .icon {
    font-size: 18px;
}

.action-btn .action-text {
    font-weight: 500;
}

.playlist-section {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 2px solid #e0e0e0;
}

.playlist-section h3 {
    margin-bottom: 15px;
    color: #333;
}

.playlist {
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-height: 300px;
    overflow-y: auto;
}

.playlist-item {
    padding: 12px;
    background: #f8f9fa;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s;
    border: 2px solid transparent;
}

.playlist-item:hover {
    background: #e9ecef;
    border-color: #667eea;
}

.playlist-item.active {
    background: #667eea;
    color: white;
    border-color: #764ba2;
}

.playlist-item-title {
    font-weight: 500;
    margin-bottom: 4px;
}

.playlist-item-info {
    font-size: 12px;
    opacity: 0.7;
}

/* 内容布局 - 两列 */
.content-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-top: 30px;
    margin-bottom: 30px;
}

.content-left,
.content-right {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.content-full {
    width: 100%;
    grid-column: 1 / -1;
    display: flex;
    flex-direction: column;
    gap: 25px;
}

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

.info-card {
    background: white;
    border-radius: 16px;
    padding: 28px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s;
    border: 1px solid #f0f0f0;
}

.info-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.card-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 2px solid #f0f0f0;
}

.card-icon {
    font-size: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 10px;
    color: white;
}

.info-card h2 {
    margin: 0;
    color: #333;
    font-size: 1.3em;
    font-weight: 600;
}

.info-card h3 {
    margin-bottom: 12px;
    color: #333;
    font-size: 1.2em;
}

.info-card h4 {
    margin-bottom: 8px;
    color: #333;
    font-size: 1em;
    font-weight: 600;
}

/* 介绍卡片样式（已废弃，使用M3U8介绍卡片样式） */

/* 功能介绍卡片 */
.feature-intro-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.feature-intro-card .card-icon {
    background: rgba(255, 255, 255, 0.2);
}

.feature-intro-card h2 {
    color: white;
}

.feature-intro-text {
    color: rgba(255, 255, 255, 0.95);
    font-size: 16px;
    line-height: 1.8;
    margin: 0;
}

/* 核心功能一行显示 */
.features-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-top: 20px;
}

/* 功能网格样式（用于详细功能） */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

/* 详细功能网格 */
.features-detail-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.detail-item {
    padding: 20px;
    background: #f8f9fa;
    border-radius: 12px;
    border-left: 4px solid #667eea;
    transition: all 0.3s;
}

.detail-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.15);
    background: white;
    border-left-color: #764ba2;
}

.detail-icon {
    font-size: 2em;
    margin-bottom: 12px;
    display: block;
}

.detail-item h4 {
    color: #667eea;
    margin-bottom: 10px;
    font-size: 1.1em;
    font-weight: 600;
}

.detail-item p {
    color: #666;
    line-height: 1.6;
    margin: 0;
    font-size: 14px;
}

.feature-item {
    text-align: center;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 10px;
    transition: all 0.3s;
    border: 2px solid transparent;
}

.feature-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.2);
    border-color: #667eea;
    background: white;
}

.feature-item .feature-icon {
    font-size: 2.5em;
    margin-bottom: 15px;
    display: block;
}

.feature-item h3 {
    color: #667eea;
    margin-bottom: 10px;
    font-size: 1.1em;
}

.feature-item p {
    color: #666;
    line-height: 1.6;
    margin: 0;
    font-size: 14px;
}

/* 功能卡片样式（保留兼容性） */
.feature-card {
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.2);
}

.feature-icon {
    font-size: 3em;
    margin-bottom: 15px;
    display: block;
}

.feature-card h3 {
    color: #667eea;
    margin-bottom: 10px;
}

.feature-card p {
    color: #666;
    line-height: 1.6;
    margin: 0;
}

/* 使用步骤样式 */
.usage-steps {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.step-item {
    display: flex;
    gap: 15px;
    align-items: flex-start;
}

.step-number {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 50%;
    font-weight: bold;
    font-size: 18px;
    flex-shrink: 0;
    box-shadow: 0 4px 10px rgba(102, 126, 234, 0.3);
}

.step-content {
    flex: 1;
    padding-top: 5px;
}

.step-content h4 {
    margin-bottom: 5px;
    color: #333;
}

.step-content p {
    color: #666;
    line-height: 1.6;
    margin: 0;
}

/* 技术信息样式 */
.tech-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.tech-item {
    display: flex;
    flex-direction: column;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
    text-align: center;
    transition: all 0.3s;
}

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

.tech-label {
    font-weight: 600;
    color: #666;
    font-size: 13px;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.tech-value {
    color: #667eea;
    font-weight: 600;
    font-size: 16px;
}

.info-card ul {
    list-style: none;
    padding-left: 0;
}

.info-card ul li {
    padding: 8px 0;
    padding-left: 25px;
    position: relative;
    color: #666;
}

.info-card ul li:before {
    content: "•";
    position: absolute;
    left: 0;
    color: #667eea;
    font-weight: bold;
    font-size: 1.2em;
}

#tech-info p {
    margin: 10px 0;
    color: #666;
}

#tech-info strong {
    color: #333;
}

/* FAQ 样式 */
.faq-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.faq-item {
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid #667eea;
    transition: all 0.3s;
}

.faq-item:hover {
    background: #e9ecef;
    transform: translateX(5px);
}

.faq-item h4 {
    color: #667eea;
    margin-bottom: 8px;
    font-size: 1em;
    font-weight: 600;
}

.faq-item p {
    color: #666;
    line-height: 1.6;
    margin: 0;
    font-size: 14px;
}

/* 帮助文章列表样式 */
.articles-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 20px;
}

.article-item-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.article-item {
    margin-bottom: 0;
    background: #f8f9fa;
    border-radius: 12px;
    border-left: 4px solid #667eea;
    transition: all 0.3s;
    display: flex;
    align-items: flex-start;
    gap: 20px;
    padding: 20px;
}

.article-item:hover {
    transform: translateX(5px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.15);
    background: white;
    border-left-color: #764ba2;
}

.article-icon-wrapper {
    flex-shrink: 0;
}

.article-icon {
    font-size: 2.5em;
    line-height: 1;
}

.article-content {
    flex: 1;
}

.article-content h3 {
    color: #667eea;
    margin-bottom: 8px;
    font-size: 1.2em;
    font-weight: 600;
}

.article-summary {
    color: #666;
    line-height: 1.6;
    margin: 0;
    font-size: 14px;
}

.article-arrow {
    flex-shrink: 0;
    color: #667eea;
    font-size: 1.5em;
    transition: transform 0.3s;
    margin-top: 5px;
    font-weight: bold;
}

.article-item:hover .article-arrow {
    transform: translateX(5px);
    color: #764ba2;
}

.article-full-content {
    padding-top: 20px;
    color: #333;
    line-height: 1.8;
    font-size: 15px;
}

.article-full-content h4 {
    color: #667eea;
    margin-top: 20px;
    margin-bottom: 10px;
    font-size: 1.1em;
    font-weight: 600;
}

.article-full-content h4:first-child {
    margin-top: 0;
}

.article-full-content p {
    margin-bottom: 15px;
    text-align: justify;
}

.article-full-content ul,
.article-full-content ol {
    margin: 15px 0;
    padding-left: 25px;
}

.article-full-content li {
    margin-bottom: 8px;
    line-height: 1.7;
}

.article-full-content strong {
    color: #667eea;
    font-weight: 600;
}

.article-full-content code {
    background: #f0f0f0;
    padding: 2px 6px;
    border-radius: 4px;
    font-family: 'Monaco', 'Courier New', monospace;
    font-size: 0.9em;
    color: #e83e8c;
}

/* 文章详情页样式 */
.breadcrumb {
    margin-bottom: 20px;
    padding: 15px 20px;
    background: #f8f9fa;
    border-radius: 8px;
    font-size: 14px;
}

.breadcrumb a {
    color: #667eea;
    text-decoration: none;
    transition: color 0.3s;
}

.breadcrumb a:hover {
    color: #764ba2;
    text-decoration: underline;
}

.breadcrumb-separator {
    margin: 0 8px;
    color: #999;
}

.breadcrumb-current {
    color: #666;
    font-weight: 500;
}

.article-detail-card {
    margin-top: 0;
}

.article-detail-header {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    padding-bottom: 20px;
    border-bottom: 2px solid #f0f0f0;
    margin-bottom: 30px;
}

.article-icon-large {
    font-size: 4em;
    flex-shrink: 0;
    line-height: 1;
}

.article-header-content {
    flex: 1;
}

.article-header-content h2 {
    color: #333;
    margin-bottom: 10px;
    font-size: 1.8em;
}

.article-meta {
    color: #999;
    font-size: 14px;
    margin: 0;
}

.article-detail-body {
    padding: 0;
}

.article-detail-footer {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid #f0f0f0;
}

.btn-back {
    display: inline-block;
    padding: 12px 24px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.3s;
    font-weight: 500;
}

.btn-back:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
    opacity: 0.9;
}

/* 关于页面样式 */
.about-content {
    color: #666;
    line-height: 1.8;
    font-size: 15px;
}

.about-content p {
    margin-bottom: 16px;
}

.about-content p:last-child {
    margin-bottom: 0;
}

.tech-list {
    list-style: none;
    padding: 0;
    margin: 20px 0 0 0;
}

.tech-list li {
    padding: 12px 20px;
    margin-bottom: 10px;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid #667eea;
    color: #333;
    transition: all 0.3s;
}

.tech-list li:hover {
    background: white;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.1);
    transform: translateX(5px);
    border-left-color: #764ba2;
}

.tech-list li:last-child {
    margin-bottom: 0;
}

/* 提示卡片样式 */
.tips-card {
    background: linear-gradient(135deg, #f0f4ff 0%, #e8f0fe 100%);
    border: 2px solid #667eea;
}

.tips-card .card-icon {
    background: linear-gradient(135deg, #ffd700 0%, #ffb347 100%);
}

/* M3U8介绍卡片样式 */
.intro-card {
    background: linear-gradient(135deg, #e8f5e9 0%, #f1f8e9 100%);
    border: 2px solid #4caf50;
}

.intro-card .card-icon {
    background: linear-gradient(135deg, #4caf50 0%, #66bb6a 100%);
}

.intro-content {
    margin-top: 10px;
}

.intro-text {
    color: #555;
    line-height: 1.8;
    margin-bottom: 20px;
    font-size: 15px;
}

.intro-features {
    margin-top: 25px;
    padding-top: 20px;
    border-top: 2px solid rgba(76, 175, 80, 0.2);
}

.intro-features h3 {
    color: #2e7d32;
    font-size: 1.1em;
    margin-bottom: 15px;
    font-weight: 600;
}

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

.intro-list li {
    padding: 10px 0;
    padding-left: 30px;
    position: relative;
    color: #555;
    line-height: 1.7;
    font-size: 14px;
}

.intro-list li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #4caf50;
    font-weight: bold;
    font-size: 1.2em;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(76, 175, 80, 0.1);
    border-radius: 50%;
}

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

.tips-list li {
    padding: 12px 0;
    padding-left: 30px;
    position: relative;
    color: #555;
    line-height: 1.6;
    border-bottom: 1px solid rgba(102, 126, 234, 0.1);
}

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

.tips-list li:before {
    content: "💡";
    position: absolute;
    left: 0;
    font-size: 1.2em;
}

/* 响应式设计 */
@media (max-width: 768px) {
    header {
        padding-top: 50px;
    }

    .header-top {
        position: relative;
        justify-content: center;
        margin-bottom: 20px;
    }

    header h1 {
        font-size: 2em;
    }

    .subtitle {
        font-size: 1em;
        margin-bottom: 15px;
    }

    /* 移动端导航菜单 */
    .main-nav {
        margin-top: 15px;
        padding: 15px 60px 15px 15px;
        background: linear-gradient(135deg, rgba(255, 255, 255, 0.3) 0%, rgba(255, 255, 255, 0.2) 100%);
        border-radius: 15px;
    }

    .nav-toggle {
        display: flex;
        width: 44px;
        height: 44px;
        top: 10px;
        right: 10px;
    }

    .nav-menu {
        display: none;
        flex-direction: column;
        width: 100%;
        background: linear-gradient(135deg, rgba(255, 255, 255, 0.98) 0%, rgba(255, 255, 255, 0.95) 100%);
        border-radius: 15px;
        padding: 20px;
        margin-top: 15px;
        box-shadow: 
            0 8px 30px rgba(0, 0, 0, 0.25),
            inset 0 1px 0 rgba(255, 255, 255, 0.8);
        gap: 10px;
        border: 2px solid rgba(255, 255, 255, 0.5);
    }

    .nav-menu.active {
        display: flex;
        animation: slideDown 0.3s ease-out;
    }

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

    .nav-link {
        color: #333;
        background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
        border: 2px solid #e0e0e0;
        text-align: center;
        width: 100%;
        padding: 12px 20px;
        font-size: 14px;
        font-weight: 600;
        border-radius: 10px;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    }

    .nav-link:hover {
        background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
        color: white;
        border-color: #667eea;
        transform: translateY(-3px);
        box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
    }

    .nav-link.active {
        background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
        color: white;
        border-color: #667eea;
        box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
    }

    .player-wrapper {
        padding: 20px;
    }

    .input-group {
        flex-direction: column;
    }

    .control-group {
        flex-wrap: wrap;
    }

    .progress-group {
        flex-wrap: wrap;
    }

    .volume-control {
        width: 100%;
    }

    .video-actions-section {
        gap: 12px;
    }

    .video-info-content {
        flex-direction: column;
        align-items: stretch;
    }

    .info-value {
        width: 100%;
        min-width: auto;
    }

    .copy-btn {
        width: 100%;
        justify-content: center;
    }

    .quick-actions {
        grid-template-columns: 1fr;
    }

    .content-layout {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    /* 移动端核心功能改为2列 */
    .features-row {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }

    .features-detail-grid {
        grid-template-columns: 1fr;
    }

    .article-item {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .article-icon {
        margin-bottom: 10px;
    }

    .info-section {
        grid-template-columns: 1fr;
    }
}

/* 小屏幕设备 */
@media (max-width: 480px) {
    .features-row {
        grid-template-columns: 1fr;
        gap: 12px;
    }
}

/* 滚动条样式 */
.playlist::-webkit-scrollbar {
    width: 8px;
}

.playlist::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

.playlist::-webkit-scrollbar-thumb {
    background: #667eea;
    border-radius: 4px;
}

.playlist::-webkit-scrollbar-thumb:hover {
    background: #764ba2;
}

/* Footer 样式 */
.footer {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    color: white;
    padding: 40px 20px 20px;
    margin-top: 50px;
}

.footer-links {
    max-width: 1200px;
    margin: 0 auto 30px;
    padding-bottom: 30px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-section {
    text-align: center;
}

.footer-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 20px;
    color: white;
    opacity: 0.95;
}

.links-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
    max-width: 800px;
    margin: 0 auto;
}

.footer-link {
    display: inline-block;
    padding: 10px 20px;
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.3s;
    font-size: 14px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-link:hover {
    color: white;
    background: rgba(102, 126, 234, 0.3);
    border-color: #667eea;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.2);
}

.footer-copyright {
    text-align: center;
    padding-top: 20px;
    opacity: 0.7;
}

.footer-copyright p {
    margin: 0;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.8);
}

/* Footer 响应式 */
@media (max-width: 768px) {
    .footer {
        padding: 30px 15px 15px;
    }

    .footer-links {
        margin-bottom: 20px;
        padding-bottom: 20px;
    }

    .footer-title {
        font-size: 16px;
        margin-bottom: 15px;
    }

    .links-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .footer-link {
        padding: 8px 15px;
        font-size: 13px;
    }
}

