/* 全局重置和基础设置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* 颜色系统 */
    --primary-color: #1890ff;
    --primary-hover: #40a9ff;
    --primary-dark: #096dd9;
    --secondary-color: #722ed1;
    --success-color: #52c41a;
    --warning-color: #faad14;
    --error-color: #ff4d4f;
    
    /* 文本颜色 */
    --text-primary: #262626;
    --text-secondary: #8c8c8c;
    --text-disabled: #bfbfbf;
    
    /* 背景颜色 */
    --bg-primary: #ffffff;
    --bg-secondary: #fafafa;
    --bg-tertiary: #f5f5f5;
    --bg-hover: #e6f7ff;
    
    /* 边框颜色 */
    --border-color: #d9d9d9;
    --border-light: #f0f0f0;
    
    /* 间距系统 */
    --spacing-xs: 4px;
    --spacing-sm: 8px;
    --spacing-md: 16px;
    --spacing-lg: 24px;
    --spacing-xl: 32px;
    --spacing-xxl: 48px;
    
    /* 圆角系统 */
    --border-radius-sm: 4px;
    --border-radius-md: 8px;
    --border-radius-lg: 12px;
    --border-radius-xl: 16px;
    
    /* 阴影系统 */
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.15);
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.25);
    --shadow-hover: 0 6px 16px rgba(24, 144, 255, 0.3);
    
    /* 字体系统 */
    --font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    --font-size-xs: 12px;
    --font-size-sm: 14px;
    --font-size-md: 16px;
    --font-size-lg: 18px;
    --font-size-xl: 20px;
    --font-size-xxl: 24px;
    --font-size-3xl: 30px;
    
    /* 动画时间 */
    --animation-fast: 0.15s;
    --animation-normal: 0.3s;
    --animation-slow: 0.5s;
    
    /* 缓动函数 */
    --ease-out: cubic-bezier(0.4, 0, 0.2, 1);
    --ease-in: cubic-bezier(0.4, 0, 1, 1);
    --ease-bounce: cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

body {
    font-family: var(--font-family);
    font-size: var(--font-size-md);
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--bg-secondary);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* 容器布局 */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 var(--spacing-lg);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
}

/* 头部样式 */
.header {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    padding: var(--spacing-xl) 0;
    margin: calc(-1 * var(--spacing-lg)) calc(-1 * var(--spacing-lg)) var(--spacing-lg) calc(-1 * var(--spacing-lg));
    border-radius: 0 0 20px 20px;
    box-shadow: 0 6px 24px rgba(24, 144, 255, 0.3);
    position: relative;
    overflow: hidden;
}

.header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 320"><path fill="rgba(255,255,255,0.1)" d="M0,96L48,112C96,128,192,160,288,186.7C384,213,480,235,576,213.3C672,192,768,128,864,128C960,128,1056,192,1152,208C1200,224,1248,192,1296,170.7C1344,149,1392,139,1416,133.3L1440,128L1440,320L1416,320C1392,320,1344,320,1296,320C1248,320,1200,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z"></path></svg>') no-repeat bottom;
    background-size: cover;
    opacity: 0.6;
}

.header-content {
    text-align: center;
    position: relative;
    z-index: 2;
    max-width: 600px;
    margin: 0 auto;
    padding: 0 var(--spacing-lg);
}

.header h1 {
    font-size: clamp(1.8rem, 4.5vw, 2.8rem);
    font-weight: 700;
    margin-bottom: var(--spacing-md);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-sm);
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    letter-spacing: -0.02em;
    line-height: 1.2;
}

.header h1 i {
    font-size: 1.2em;
    opacity: 0.95;
    animation: pulse 2s ease-in-out infinite;
}

.header p {
    font-size: clamp(0.9rem, 2vw, 1.1rem);
    opacity: 0.92;
    margin: 0;
    font-weight: 400;
    line-height: 1.5;
    text-shadow: 0 1px 5px rgba(0, 0, 0, 0.1);
    max-width: 480px;
    margin: 0 auto;
}

/* 赞赏按钮样式 */
.btn-reward {
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a52 50%, #ff4757 100%);
    color: white;
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(255, 107, 107, 0.3);
}

.btn-reward::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, #ff8a80 0%, #ff5722 50%, #d32f2f 100%);
    opacity: 0;
    transition: opacity var(--animation-normal) var(--ease-out);
    z-index: -1;
}

.btn-reward:hover::before {
    opacity: 1;
}

.btn-reward:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 107, 107, 0.5);
    border-color: rgba(255, 255, 255, 0.3);
}

.btn-reward:active {
    transform: translateY(0);
    box-shadow: 0 2px 10px rgba(255, 107, 107, 0.3);
}

.btn-reward i {
    font-size: 1.1em;
    animation: heartbeat 2s ease-in-out infinite;
}

@keyframes heartbeat {
    0%, 100% {
        transform: scale(1);
    }
    25% {
        transform: scale(1.1);
    }
    75% {
        transform: scale(1.05);
    }
}

.btn-reward .reward-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.8) 0%, transparent 70%);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: all 0.6s ease;
    pointer-events: none;
}

.btn-reward:hover .reward-glow {
    width: 100px;
    height: 100px;
    opacity: 0.3;
}

/* 主要内容区域 */
.main-content {
    flex: 1;
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--spacing-lg);
    max-width: 1000px;
    margin: 0 auto;
    width: 100%;
    padding: 0 var(--spacing-md);
}

/* 输入区域样式 */
.input-section {
    background: var(--bg-primary);
    padding: var(--spacing-xl);
    border-radius: 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid var(--border-light);
    transition: all var(--animation-normal) var(--ease-out);
    position: relative;
    backdrop-filter: blur(10px);
}

.input-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.9) 0%, rgba(248, 250, 252, 0.8) 100%);
    border-radius: 20px;
    z-index: -1;
}

.input-section:hover {
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
    transform: translateY(-2px);
}

.input-group {
    margin-bottom: var(--spacing-md);
}

.input-group:last-of-type {
    margin-bottom: var(--spacing-lg);
}

.input-group label {
    display: block;
    font-weight: 600;
    font-size: var(--font-size-sm);
    color: var(--text-primary);
    margin-bottom: var(--spacing-sm);
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
}

.input-group label i {
    color: var(--primary-color);
    font-size: 1.1em;
}

/* 输入框样式 */
input[type="url"], select {
    width: 100%;
    padding: 16px 20px;
    border: 2px solid var(--border-color);
    border-radius: 12px;
    font-size: var(--font-size-md);
    font-family: var(--font-family);
    background-color: rgba(255, 255, 255, 0.8);
    color: var(--text-primary);
    transition: all var(--animation-normal) var(--ease-out);
    backdrop-filter: blur(5px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

input[type="url"]:focus, select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(24, 144, 255, 0.15), 0 4px 12px rgba(0, 0, 0, 0.1);
    transform: translateY(-1px);
    background-color: rgba(255, 255, 255, 0.95);
}

input[type="url"]::placeholder {
    color: var(--text-secondary);
    font-size: var(--font-size-sm);
}

select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23666' d='M1.41 0L6 4.59L10.59 0L12 1.41L6 7.41L0 1.41L1.41 0Z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right var(--spacing-md) center;
    padding-right: var(--spacing-xxl);
}

/* 按钮样式 */
.button-group {
    display: grid;
    grid-template-columns: 1fr auto auto;
    gap: var(--spacing-md);
    align-items: center;
    margin-top: var(--spacing-lg);
}

.btn {
    padding: 16px 24px;
    border: none;
    border-radius: 12px;
    font-size: var(--font-size-md);
    font-weight: 600;
    font-family: var(--font-family);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-sm);
    transition: all var(--animation-normal) var(--ease-out);
    position: relative;
    overflow: hidden;
    min-height: 48px;
    white-space: nowrap;
    backdrop-filter: blur(10px);
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-hover) 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(24, 144, 255, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--primary-hover) 0%, var(--primary-dark) 100%);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(24, 144, 255, 0.4);
}

.btn-primary:active {
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(24, 144, 255, 0.3);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.8);
    color: var(--text-primary);
    border: 2px solid var(--border-color);
    backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.95);
    border-color: var(--primary-color);
    color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none !important;
}

.btn i {
    font-size: 1.1em;
}

/* 视频区域样式 */
.video-section {
    position: relative;
    min-height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-primary);
    padding: var(--spacing-xl);
    border-radius: 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid var(--border-light);
    transition: all var(--animation-normal) var(--ease-out);
    backdrop-filter: blur(10px);
    overflow: hidden;
}

.video-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.9) 0%, rgba(248, 250, 252, 0.8) 100%);
    border-radius: 20px;
    z-index: -1;
}

.video-section:hover {
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
    transform: translateY(-2px);
}

.video-container {
    width: 100%;
    background: var(--bg-primary);
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
    overflow: hidden;
    border: 1px solid var(--border-light);
    position: relative;
    z-index: 2;
}

.video-container iframe {
    width: 100%;
    height: 550px;
    border: none;
    display: block;
    border-radius: 16px;
}

/* 播放器预览样式 */
.video-placeholder {
    width: 100%;
    height: 550px;
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    color: white;
}

.placeholder-content {
    text-align: center;
    z-index: 2;
}

.placeholder-content i.fa-play-circle {
    font-size: 80px;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: var(--spacing-lg);
    transition: all var(--animation-normal) var(--ease-out);
}

.placeholder-content i.fa-play-circle:hover {
    color: var(--primary-color);
    transform: scale(1.1);
    text-shadow: 0 0 20px rgba(24, 144, 255, 0.5);
}

.placeholder-content h3 {
    font-size: var(--font-size-xl);
    margin-bottom: var(--spacing-sm);
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
}

.placeholder-content p {
    font-size: var(--font-size-md);
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: var(--spacing-xl);
}

/* 模拟播放器控制栏 */
.placeholder-controls {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    padding: var(--spacing-lg) var(--spacing-md) var(--spacing-md);
}

.control-bar {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    font-size: var(--font-size-sm);
}

.play-button {
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all var(--animation-normal) var(--ease-out);
}

.play-button:hover {
    background: var(--primary-color);
    transform: scale(1.1);
}

.play-button i {
    color: white;
    font-size: 14px;
    margin-left: 2px; /* 视觉居中调整 */
}

.progress-bar {
    flex: 1;
    margin: 0 var(--spacing-sm);
}

.progress-track {
    height: 4px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 2px;
    overflow: hidden;
    cursor: pointer;
}

.progress-fill {
    height: 100%;
    width: 30%; /* 模拟进度 */
    background: var(--primary-color);
    border-radius: 2px;
    transition: width var(--animation-normal) var(--ease-out);
}

.time-display {
    color: rgba(255, 255, 255, 0.8);
    font-family: 'Courier New', monospace;
    font-size: 12px;
    min-width: 80px;
}

.volume-control,
.fullscreen-button {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border-radius: var(--border-radius-sm);
    transition: all var(--animation-normal) var(--ease-out);
}

.volume-control:hover,
.fullscreen-button:hover {
    background: rgba(255, 255, 255, 0.2);
}

.volume-control i,
.fullscreen-button i {
    color: rgba(255, 255, 255, 0.8);
    font-size: 14px;
}

/* 播放器预览动画效果 */
.video-placeholder::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 30%, rgba(24, 144, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(114, 46, 209, 0.1) 0%, transparent 50%);
    animation: bgShift 8s ease-in-out infinite;
}

@keyframes bgShift {
    0%, 100% { 
        opacity: 0.5;
        transform: scale(1);
    }
    50% { 
        opacity: 0.8;
        transform: scale(1.02);
    }
}

/* 悬停效果增强 */
.video-placeholder:hover .progress-fill {
    width: 35%;
    box-shadow: 0 0 10px rgba(24, 144, 255, 0.5);
}

.video-placeholder:hover .placeholder-content i.fa-play-circle {
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { 
        transform: scale(1);
        opacity: 0.8;
    }
    50% { 
        transform: scale(1.05);
        opacity: 1;
    }
}

/* 加载指示器 */
.loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-lg);
    padding: var(--spacing-lg);
    width: 100%;
    min-height: 450px;
}

.spinner {
    width: 48px;
    height: 48px;
    border: 4px solid var(--border-color);
    border-top-color: var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

.loading p {
    color: var(--text-secondary);
    font-size: var(--font-size-md);
    margin: 0;
}

/* 错误消息样式 */
.error-message {
    background: linear-gradient(135deg, #fff2f0, #ffebe6);
    border: 2px solid var(--error-color);
    border-radius: var(--border-radius-lg);
    padding: var(--spacing-lg);
    text-align: center;
    color: var(--error-color);
    width: 100%;
    min-height: 450px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.error-message i {
    font-size: 48px;
    margin-bottom: var(--spacing-md);
    opacity: 0.8;
}

.error-message p {
    font-size: var(--font-size-md);
    margin: 0;
    font-weight: 500;
}

/* 使用说明区域 */
.tips-section {
    background: var(--bg-primary);
    padding: var(--spacing-xl);
    border-radius: 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid var(--border-light);
    position: relative;
    backdrop-filter: blur(10px);
}

.tips-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 248, 225, 0.8) 0%, rgba(254, 252, 232, 0.6) 100%);
    border-radius: 20px;
    z-index: -1;
}

.tips-section h3 {
    color: var(--text-primary);
    font-size: var(--font-size-xl);
    margin-bottom: var(--spacing-md);
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
}

.tips-section h3 i {
    color: var(--warning-color);
    font-size: 1.1em;
}

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

.tips-list li {
    padding: var(--spacing-sm) 0;
    padding-left: var(--spacing-lg);
    position: relative;
    color: var(--text-secondary);
    font-size: var(--font-size-sm);
    line-height: 1.6;
}

.tips-list li::before {
    content: "•";
    color: var(--primary-color);
    position: absolute;
    left: 0;
    font-weight: bold;
    font-size: 1.2em;
}

/* 支持平台区域 */
.supported-platforms {
    background: var(--bg-primary);
    padding: var(--spacing-xl);
    border-radius: 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid var(--border-light);
    position: relative;
    backdrop-filter: blur(10px);
}

.supported-platforms::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(240, 253, 244, 0.8) 0%, rgba(236, 253, 245, 0.6) 100%);
    border-radius: 20px;
    z-index: -1;
}

.supported-platforms h3 {
    color: var(--text-primary);
    font-size: var(--font-size-xl);
    margin-bottom: var(--spacing-md);
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
}

.supported-platforms h3 i {
    color: var(--success-color);
    font-size: 1.1em;
}

.platform-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: var(--spacing-md);
    position: relative;
    z-index: 2;
    max-width: 900px;
    margin: 0 auto;
}

.platform-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: var(--spacing-md) var(--spacing-sm);
    background: rgba(255, 255, 255, 0.8);
    border-radius: 12px;
    transition: all var(--animation-normal) var(--ease-out);
    border: 2px solid transparent;
    backdrop-filter: blur(5px);
    position: relative;
    overflow: hidden;
    min-height: 100px;
}

.platform-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(82, 196, 26, 0.1) 0%, rgba(52, 211, 153, 0.05) 100%);
    opacity: 0;
    transition: opacity var(--animation-normal) var(--ease-out);
}

.platform-item:hover {
    background: rgba(255, 255, 255, 0.95);
    border-color: var(--success-color);
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(82, 196, 26, 0.2);
}

.platform-item:hover::before {
    opacity: 1;
}

.platform-logo {
    width: 42px;
    height: 42px;
    margin: 0 auto var(--spacing-sm) auto;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    position: relative;
    z-index: 2;
    transition: all var(--animation-normal) var(--ease-out);
    border-radius: 6px;
}

.platform-item:hover .platform-logo {
    transform: scale(1.1);
    filter: brightness(1.1) saturate(1.2);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}


/* 优酷 Logo */
.youku-logo {

    background: linear-gradient(135deg, #00A6D6 0%, #0099CC 100%);
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 166, 214, 0.3);
}

.youku-logo::after {
    content: 'U';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 20px;
    font-weight: bold;
    font-family: Arial, sans-serif;
}

/* 爱奇艺 Logo */
.iqiyi-logo {
    background: linear-gradient(135deg, #00BE07 0%, #00D408 100%);
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 190, 7, 0.3);
}

.iqiyi-logo::after {
    content: 'iqiyi';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 10px;
    font-weight: bold;
    font-family: Arial, sans-serif;
}

/* 腾讯视频 Logo */
.tencent-logo {
    background: linear-gradient(135deg, #12B7F5 0%, #0EA5E9 100%);
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(18, 183, 245, 0.3);
}

.tencent-logo::after {
    content: 'Q';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 20px;
    font-weight: bold;
    font-family: Arial, sans-serif;
}

/* 哔哩哔哩 Logo */
.bilibili-logo {
    background: linear-gradient(135deg, #FB7299 0%, #F85487 100%);
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(251, 114, 153, 0.3);
}

.bilibili-logo::after {
    content: 'B';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 20px;
    font-weight: bold;
    font-family: Arial, sans-serif;
}

/* 芒果TV Logo */
.mango-logo {
    background: linear-gradient(135deg, #FF6C00 0%, #FF5722 100%);
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(255, 108, 0, 0.3);
}

.mango-logo::after {
    content: 'M';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 20px;
    font-weight: bold;
    font-family: Arial, sans-serif;
}


.platform-item span {
    font-size: var(--font-size-sm);
    font-weight: 600;
    color: var(--text-primary);
    position: relative;
    z-index: 2;
    text-align: center;
    line-height: 1.2;
}

/* 页脚样式 */
.footer {
    margin-top: var(--spacing-xxl);
    padding: var(--spacing-xl) var(--spacing-lg);
    background: linear-gradient(135deg, rgba(248, 250, 252, 0.8) 0%, rgba(241, 245, 249, 0.6) 100%);
    backdrop-filter: blur(10px);
    border-radius: 20px 20px 0 0;
    position: relative;
    border-top: 1px solid var(--border-light);
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    border-radius: 2px;
}

.footer-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.copyright {
    color: var(--text-primary);
    font-size: var(--font-size-md);
    font-weight: 600;
    margin-bottom: var(--spacing-md);
    letter-spacing: 0.2px;
}

.disclaimer {
    color: var(--text-secondary);
    font-size: var(--font-size-sm);
    line-height: 1.8;
    max-width: 700px;
    margin: 0 auto;
}

.disclaimer p {
    margin-bottom: var(--spacing-sm);
}

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

.contact-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    border-bottom: 1px solid transparent;
    transition: all var(--animation-fast) var(--ease-out);
    padding: 2px 0;
}

.contact-link:hover {
    color: var(--primary-hover);
    border-bottom-color: var(--primary-hover);
    text-decoration: none;
}

/* 隐藏类 */
.hidden {
    display: none !important;
}

/* 赞赏弹窗样式 */
.reward-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: modalFadeIn var(--animation-normal) var(--ease-out);
}

.reward-modal-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    cursor: pointer;
}

.reward-modal-content {
    position: relative;
    background: var(--bg-primary);
    border-radius: var(--border-radius-xl);
    box-shadow: var(--shadow-lg);
    width: 90%;
    max-width: 500px;
    max-height: 90vh;
    overflow: hidden;
    transform: scale(0.9);
    animation: modalScaleIn var(--animation-normal) var(--ease-bounce) forwards;
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes modalScaleIn {
    to {
        transform: scale(1);
    }
}

.reward-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--spacing-lg);
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
}

.reward-modal-header h3 {
    margin: 0;
    font-size: var(--font-size-xl);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
}

.reward-modal-header h3 i {
    color: #ff6b6b;
    animation: heartbeat 2s ease-in-out infinite;
}

.reward-close-btn {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--animation-fast) var(--ease-out);
}

.reward-close-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

.reward-modal-body {
    padding: var(--spacing-xl);
}

.reward-title {
    text-align: center;
    font-size: var(--font-size-lg);
    color: var(--text-primary);
    margin-bottom: var(--spacing-xl);
    font-weight: 500;
}

.reward-codes {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: var(--spacing-xl);
}

.reward-code-item {
    text-align: center;
    padding: var(--spacing-xl);
    background: var(--bg-secondary);
    border-radius: var(--border-radius-lg);
    border: 2px solid var(--border-light);
    transition: all var(--animation-normal) var(--ease-out);
    max-width: 320px;
    width: 100%;
}

.reward-code-item:hover {
    border-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.reward-code-item h4 {
    margin: 0 0 var(--spacing-md) 0;
    font-size: var(--font-size-lg);
    color: var(--text-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-sm);
}

.reward-code-item h4 i {
    font-size: 1.2em;
}


.reward-code-item h4 .fa-weixin {
    color: #07c160;
}

.qr-code-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin: 0 auto var(--spacing-sm) auto;
}

.qr-code-image {
    width: 200px;
    height: 200px;
    border-radius: var(--border-radius-lg);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
    transition: all var(--animation-normal) var(--ease-out);
    cursor: pointer;
    object-fit: cover;
    border: 3px solid var(--border-light);
}

.qr-code-image:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
    border-color: var(--primary-color);
}

.qr-code-container small {
    font-size: var(--font-size-sm);
    color: var(--text-secondary);
    margin-top: var(--spacing-md);
    text-align: center;
    font-weight: 500;
}

.reward-message {
    text-align: center;
    padding: var(--spacing-lg);
    background: linear-gradient(135deg, #fff7e6 0%, #fffbe6 100%);
    border-radius: var(--border-radius-lg);
    border-left: 4px solid var(--warning-color);
}

.reward-message p {
    margin: 0;
    color: var(--text-primary);
    font-size: var(--font-size-md);
    font-weight: 500;
}


/* 响应式设计 */
@media (max-width: 768px) {
    .container {
        padding: 0 var(--spacing-sm);
        background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    }
    
    
    .header {
        margin: calc(-1 * var(--spacing-sm)) calc(-1 * var(--spacing-sm)) var(--spacing-md) calc(-1 * var(--spacing-sm));
        padding: var(--spacing-lg) 0;
        border-radius: 0 0 16px 16px;
    }
    
    .header h1 {
        font-size: clamp(1.75rem, 6vw, 2.5rem);
        flex-direction: column;
        gap: var(--spacing-sm);
    }
    
    .header p {
        font-size: clamp(0.9rem, 3vw, 1.1rem);
    }
    
    .main-content {
        padding: 0 var(--spacing-sm);
        gap: var(--spacing-md);
    }
    
    .input-section, .video-section, .tips-section, .supported-platforms {
        padding: var(--spacing-lg);
        border-radius: 16px;
    }
    
    .button-group {
        grid-template-columns: 1fr;
        gap: var(--spacing-sm);
    }
    
    .btn {
        justify-content: center;
        padding: 16px 20px;
        min-height: 52px;
        width: 100%;
    }
    
    /* 移动端赞赏按钮调整 */
    .btn-reward {
        font-size: var(--font-size-md);
    }
    
    .video-container iframe {
        height: 320px;
        border-radius: 12px;
    }
    
    /* 移动端播放器预览调整 */
    .video-placeholder {
        height: 320px;
    }
    
    .video-section {
        min-height: 340px;
        padding: var(--spacing-md);
    }
    
    .loading, .error-message {
        min-height: 280px;
    }
    
    .placeholder-content i.fa-play-circle {
        font-size: 60px;
    }
    
    .placeholder-content h3 {
        font-size: var(--font-size-lg);
    }
    
    .placeholder-content p {
        font-size: var(--font-size-sm);
        margin-bottom: var(--spacing-lg);
    }
    
    .control-bar {
        gap: var(--spacing-sm);
    }
    
    .play-button {
        width: 28px;
        height: 28px;
    }
    
    .play-button i {
        font-size: 12px;
    }
    
    .time-display {
        font-size: 10px;
        min-width: 60px;
    }
    
    .volume-control,
    .fullscreen-button {
        width: 24px;
        height: 24px;
    }
    
    .volume-control i,
    .fullscreen-button i {
        font-size: 12px;
    }
    
    .platform-grid {
        grid-template-columns: repeat(5, 1fr);
        gap: var(--spacing-xs);
        max-width: 100%;
    }
    
    .platform-item {
        padding: var(--spacing-sm) var(--spacing-xs);
        min-height: 80px;
    }
    
    .platform-logo {
        width: 28px;
        height: 28px;
        margin-bottom: var(--spacing-xs);
    }
    
    .main-content {
        gap: var(--spacing-sm);
    }
    
    /* 移动端footer优化 */
    .footer {
        padding: var(--spacing-lg) var(--spacing-md);
        border-radius: 16px 16px 0 0;
        margin-top: var(--spacing-xl);
    }
    
    .footer-content {
        text-align: left;
    }
    
    .copyright {
        font-size: var(--font-size-sm);
        text-align: center;
        margin-bottom: var(--spacing-md);
    }
    
    .disclaimer {
        font-size: var(--font-size-xs);
        line-height: 1.6;
        text-align: left;
    }
    
    .disclaimer p {
        margin-bottom: var(--spacing-xs);
    }
    
    /* 移动端弹窗优化 */
    .reward-modal-content {
        width: 95%;
        margin: var(--spacing-md);
    }
    
    .reward-codes {
        justify-content: center;
    }
    
    .reward-modal-body {
        padding: var(--spacing-lg);
    }
    
    .qr-code-image {
        width: 160px;
        height: 160px;
    }
    
    .reward-code-item {
        max-width: 280px;
        padding: var(--spacing-lg);
    }
}

@media (max-width: 480px) {
    .platform-grid {
        grid-template-columns: repeat(5, 1fr);
        gap: 2px;
    }
    
    .platform-item {
        padding: var(--spacing-xs);
        min-height: 70px;
        border-radius: 8px;
    }
    
    .platform-logo {
        width: 24px;
        height: 24px;
        margin-bottom: 2px;
    }
    
    .platform-item span {
        font-size: 11px;
        line-height: 1.1;
    }
    
    .video-container iframe {
        height: 220px;
    }
    
    /* 超小屏幕播放器预览调整 */
    .video-placeholder {
        height: 220px;
    }
    
    .loading, .error-message {
        min-height: 180px;
    }
    
    .placeholder-content i.fa-play-circle {
        font-size: 50px;
    }
    
    .placeholder-content h3 {
        font-size: var(--font-size-md);
    }
    
    .placeholder-content p {
        font-size: var(--font-size-xs);
        margin-bottom: var(--spacing-md);
    }
    
    .header h1 {
        font-size: var(--font-size-xl);
    }
    
    .tips-section h3, .supported-platforms h3 {
        font-size: var(--font-size-lg);
    }
    
    /* 超小屏幕footer优化 */
    .footer {
        padding: var(--spacing-md);
        margin-top: var(--spacing-lg);
    }
    
    .footer::before {
        width: 40px;
        height: 3px;
    }
    
    .copyright {
        font-size: var(--font-size-xs);
        margin-bottom: var(--spacing-sm);
        line-height: 1.4;
    }
    
    .disclaimer {
        font-size: 11px;
        line-height: 1.5;
    }
    
    .contact-link {
        word-break: break-all;
    }
}

/* 打印样式 */
@media print {
    * {
        background: transparent !important;
        color: black !important;
        box-shadow: none !important;
        text-shadow: none !important;
    }
    
    .video-section, .button-group {
        display: none !important;
    }
    
    .header {
        background: none !important;
        color: black !important;
    }
}

/* 高对比度模式 */
@media (prefers-contrast: high) {
    :root {
        --text-primary: #000000;
        --text-secondary: #333333;
        --bg-primary: #ffffff;
        --border-color: #000000;
    }
}

/* 减少动画偏好 */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* 焦点可见性增强 */
.btn:focus-visible,
input:focus-visible,
select:focus-visible {
    outline: 3px solid var(--warning-color);
    outline-offset: 2px;
}

/* 加载动画优化 */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes slideInFromBottom {
    from {
        opacity: 0;
        transform: translateY(30px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes shimmer {
    0% {
        background-position: -200px 0;
    }
    100% {
        background-position: 200px 0;
    }
}

.video-container {
    animation: slideInFromBottom 0.6s var(--ease-out);
}

.input-section, .video-section, .tips-section, .supported-platforms {
    animation: slideInFromBottom 0.5s var(--ease-out);
}

.input-section {
    animation-delay: 0.1s;
}

.video-section {
    animation-delay: 0.2s;
}

.tips-section {
    animation-delay: 0.3s;
}

.supported-platforms {
    animation-delay: 0.4s;
}

/* 水波纹效果 */
.btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background-color: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
    pointer-events: none;
}

.btn:active::before {
    width: 200px;
    height: 200px;
}
