/* 
 * VIP视频解析网站样式
 * 采用现代设计风格
 */

/* 全局样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

:root {
    /* 新配色方案 - 深色主题 */
    --primary-color: #2786F9; /* 主色调：深蓝紫色 */
    --primary-light: #8978ff; /* 主色调亮版 */
    --primary-dark: #293dc0; /* 主色调暗版 */
    --secondary-color: #FF6D00; /* 次要色调：紫色 */
    --accent-color: #ff6b8b; /* 强调色：粉红色 */
    --light-gray: #2c2c2c; /* 修改为深色背景匹配颜色 */
    --medium-gray: #9da3b4;
    --dark-gray: #e0e0e0; /* 修改为更亮的颜色以适应深色背景 */
    --success-color: #4CAF50;
    --box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    --border-radius: 16px;
    --card-hover-transform: translateY(-5px);
    --gradient-bg: linear-gradient(120deg, #293dc0, #8c54e8);
    --gradient-btn: linear-gradient(90deg, #5461c7, #8c54e8);
    --gradient-hover: linear-gradient(90deg, #4352b8, #7845d9);
    --text-color: #e0e0e0; /* 修改为浅色文本 */
    --bg-color: #121212;  /* 修改为黑色背景 */
    --border-color: #333333; /* 更深的边框颜色 */
    --shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    --radius: 8px;
    --font-family: 'PingFang SC', 'Microsoft YaHei', sans-serif;
    --card-bg: #1e1e1e; /* 卡片背景色 */
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    font-family: var(--font-family);
    /* 移除背景图案，保持纯色背景 */
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

ul {
    list-style: none;
}

button, select, input {
    font-family: inherit;
}

/* 顶部导航栏 */
header {
    background-color: rgba(30, 30, 30, 0.9); /* 更改为深色 */
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid rgba(84, 97, 199, 0.2);
}

header .container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.logo i {
    font-size: 32px;
    color: var(--primary-color);
    margin-right: 8px;
    background: var(--gradient-bg);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.logo h1 {
    font-size: 20px;
    font-weight: 700;
    color: var(--dark-gray);
    margin: 0;
    white-space: nowrap;
}

/* 搜索栏 */
.search-bar {
    display: flex;
    align-items: center;
    gap: 15px;
    flex: 1;
    max-width: 600px;
    margin: 0 20px;
}

.search-input-wrapper {
    flex: 1;
    position: relative;
}

#search-input {
    width: 100%;
    height: 42px;
    background-color: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 0 15px;
    color: white;
    font-size: 15px;
    transition: all 0.3s ease;
}

#search-input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

#search-input:focus {
    background-color: rgba(255, 255, 255, 0.12);
    border-color: rgba(84, 97, 199, 0.5);
    box-shadow: 0 0 0 3px rgba(84, 97, 199, 0.2);
    outline: none;
}

#search-btn {
    height: 42px;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 8px;
    padding: 0 15px;
    font-size: 15px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 4px 10px rgba(40, 120, 250, 0.3);
    white-space: nowrap;
}

#search-btn i {
    margin-right: 6px;
}

#search-btn:hover {
    background-color: var(--primary-light);
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(40, 120, 250, 0.4);
}

nav ul {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
}

nav li {
    margin: 0 10px;
    position: relative;
}

nav a {
    color: var(--dark-gray);
    text-decoration: none;
    font-size: 16px;
    font-weight: 500;
    transition: all 0.3s;
    padding: 8px 0;
    display: flex;
    align-items: center;
}

nav a i {
    margin-right: 6px;
    font-size: 16px;
}

nav a:hover, nav li.active a {
    color: var(--primary-color);
}

nav li.active a {
    font-weight: 600;
}

/* 响应式设计 */
@media screen and (max-width: 992px) {
    .search-bar {
        max-width: 450px;
        margin: 0 15px;
    }
}

@media screen and (max-width: 768px) {
    header .container {
        flex-direction: column;
        padding: 15px;
        gap: 12px;
    }
    
    .search-bar {
        width: 100%;
        max-width: 100%;
        margin: 10px 0;
        order: 3;
    }
    
    .logo {
        margin-bottom: 5px;
    }
    
    nav ul {
        width: 100%;
        justify-content: center;
        margin-top: 5px;
    }
}

@media screen and (max-width: 480px) {
    .search-bar {
        flex-direction: column;
        gap: 10px;
    }
    
    #search-btn {
        width: 100%;
    }
}

/* 主要内容区域 */
main {
    padding: 50px 0;
}

/* 解析工具区域 */
.parse-section {
    margin-bottom: 40px;
}

.parse-box {
    background-color: var(--card-bg); /* 更改为深色卡片背景 */
    border-radius: var(--border-radius);
    padding: 30px;
    box-shadow: var(--box-shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid rgba(84, 97, 199, 0.15);
    position: relative;
    overflow: hidden;
    max-width: 900px;
    margin: 0 auto;
}

.parse-box::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100px;
    height: 100px;
    background: linear-gradient(45deg, transparent, rgba(84, 97, 199, 0.03));
    border-radius: 0 0 0 100%;
}

.input-group {
    display: flex;
    gap: 20px; /* 增加元素之间的间距 */
    position: relative;
    z-index: 2;
    align-items: center;
}

.input-wrapper {
    flex: 1;
    position: relative;
}

.select-wrapper {
    width: 150px; /* 固定宽度 */
}

#video-url {
    width: 100%;
    padding: 14px 20px;
    height: 52px;
    border: 2px solid #333; /* 更改边框颜色 */
    border-radius: 12px;
    font-size: 16px;
    outline: none;
    transition: all 0.3s;
    color: var(--text-color); /* 更改文本颜色 */
    background-color: #262626; /* 更改输入框背景色 */
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
}

#video-url:focus {
    border-color: var(--primary-light);
    box-shadow: 0 0 0 4px rgba(84, 97, 199, 0.2);
}

#parse-line {
    width: 100%;
    padding: 0 20px;
    height: 52px;
    border: 2px solid #333; /* 更改边框颜色 */
    border-radius: 12px;
    font-size: 16px;
    background-color: #262626; /* 更改选择框背景色 */
    cursor: pointer;
    outline: none;
    transition: all 0.3s;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%235461c7' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 15px center;
    color: var(--text-color); /* 更改文本颜色 */
    font-weight: 500;
}

#parse-btn {
    background: var(--gradient-btn);
    color: white;
    border: none;
    border-radius: 12px;
    height: 52px;
    padding: 0 25px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    white-space: nowrap;
    box-shadow: 0 5px 15px rgba(84, 97, 199, 0.2);
    min-width: 140px;
}

#parse-btn:hover {
    background: var(--gradient-hover);
    box-shadow: 0 7px 20px rgba(84, 97, 199, 0.3);
    transform: translateY(-2px);
}

#parse-btn i {
    margin-right: 8px;
}

/* 视频播放区域 */
.player-section {
    margin-bottom: 50px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.player-container {
    background-color: var(--card-bg); /* 更改为深色卡片背景 */
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    overflow: hidden;
    position: relative;
    padding-top: 56.25%; /* 16:9宽高比 */
    border: 1px solid rgba(84, 97, 199, 0.15);
    transition: box-shadow 0.3s ease;
}

.player-container:hover {
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
}

/* 视频控制栏 */
.player-controls {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 50px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.7), transparent);
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding: 0 20px;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 10;
    pointer-events: none; /* 使控制栏不影响其他元素的点击 */
}

/* 右上角控制栏样式 */
.player-controls-top {
    top: 0;
    bottom: auto;
    height: 50px;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.7), transparent);
    justify-content: flex-end;
}

.player-container:hover .player-controls {
    opacity: 1;
}

.control-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.2);
    color: white;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    margin-left: 10px;
    transition: all 0.3s ease;
    pointer-events: auto; /* 确保按钮可以被点击 */
}

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

.control-btn i {
    font-size: 18px;
}

/* 投屏模态框 */
.cast-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

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

.cast-modal-content {
    background-color: var(--card-bg);
    border-radius: var(--border-radius);
    padding: 30px;
    width: 90%;
    max-width: 500px;
    position: relative;
    transform: translateY(20px);
    transition: all 0.3s ease;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
}

.cast-modal.show .cast-modal-content {
    transform: translateY(0);
}

.cast-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.cast-modal-title {
    font-size: 20px;
    font-weight: 600;
    color: var(--dark-gray);
}

.cast-modal-close {
    background: none;
    border: none;
    font-size: 24px;
    color: var(--medium-gray);
    cursor: pointer;
}

.cast-device-list {
    margin: 20px 0;
}

.cast-device {
    display: flex;
    align-items: center;
    padding: 15px;
    border-radius: 10px;
    background-color: rgba(84, 97, 199, 0.1);
    margin-bottom: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.cast-device:hover {
    background-color: rgba(84, 97, 199, 0.2);
    transform: translateX(5px);
}

.cast-device-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--primary-color);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
}

.cast-device-info {
    flex: 1;
}

.cast-device-name {
    font-size: 16px;
    font-weight: 600;
    color: var(--dark-gray);
    margin-bottom: 5px;
}

.cast-device-status {
    font-size: 12px;
    color: var(--medium-gray);
}

.cast-qrcode {
    text-align: center;
    margin: 20px 0;
}

.cast-qrcode img {
    width: 200px;
    height: 200px;
    border-radius: 10px;
    background-color: white;
    padding: 10px;
}

.cast-qrcode-text {
    font-size: 14px;
    color: var(--medium-gray);
    margin-top: 10px;
}

.scan-instructions {
    font-size: 14px;
    color: var(--medium-gray);
    line-height: 1.6;
    text-align: center;
    margin-top: 20px;
    padding: 15px;
    background-color: rgba(84, 97, 199, 0.05);
    border-radius: 10px;
}

.scan-instructions i {
    font-size: 20px;
    margin-right: 5px;
    color: var(--primary-color);
}

#player-tips {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: var(--medium-gray);
    background: linear-gradient(135deg, rgba(30,30,30,0.8) 0%, rgba(20,20,20,0.9) 100%); /* 更改为深色渐变 */
    padding: 20px;
}

#player-tips i {
    font-size: 70px;
    margin-bottom: 25px;
    opacity: 0.5;
    background: var(--gradient-bg);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

#player-tips p {
    font-size: 18px;
    max-width: 80%;
    text-align: center;
    line-height: 1.6;
    color: var(--medium-gray);
    font-weight: 500;
}

#player-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 5; /* 确保播放器在控制栏下方 */
}

#player-iframe {
    width: 100%;
    height: 100%;
    border: none;
    position: relative;
    z-index: 5;
}

/* 友情链接区域 */
.links-section {
    background-color: var(--card-bg); /* 更改为深色卡片背景 */
    border-radius: var(--border-radius);
    padding: 35px;
    box-shadow: var(--box-shadow);
    border: 1px solid rgba(84, 97, 199, 0.15);
    position: relative;
    overflow: hidden;
    max-width: 900px;
    margin: 0 auto;
}

.links-section::before {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 200px;
    height: 200px;
    background: linear-gradient(135deg, transparent, rgba(84, 97, 199, 0.03));
    border-radius: 200px 0 0 0;
}

.links-section h2 {
    text-align: center;
    margin-bottom: 30px;
    font-size: 24px;
    font-weight: 700;
    color: var(--dark-gray);
    position: relative;
    display: inline-block;
    left: 50%;
    transform: translateX(-50%);
}

.links-section h2::after {
    content: '';
    display: block;
    width: 50px;
    height: 4px;
    background: var(--gradient-btn);
    margin: 10px auto 0;
    border-radius: 2px;
}

.links-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
    position: relative;
    z-index: 2;
}

.link-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 110px;
    transition: all 0.3s;
}

.link-item:hover {
    transform: var(--card-hover-transform);
}

.link-icon {
    width: 70px;
    height: 70px;
    border-radius: 20px;
    margin-bottom: 12px;
    background-size: 65%;
    background-position: center;
    background-repeat: no-repeat;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.link-item:hover .link-icon {
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.25);
    transform: scale(1.08);
}

.link-icon::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0) 100%);
    border-radius: 20px;
}

.link-item span {
    font-size: 14px;
    color: var(--dark-gray);
    text-align: center;
    font-weight: 500;
    transition: all 0.3s;
}

.link-item:hover span {
    color: var(--primary-color);
}

/* 视频平台图标 - 本地资源 */
.link-icon.qq {
    background-image: url('../img/platforms/qq.svg');
    background-color: #3385ff;
}

.link-icon.iqiyi {
    background-image: url('../img/platforms/iqiyi.svg');
    background-color: #07D302;
}

.link-icon.youku {
    background-image: url('../img/platforms/youku.svg');
    background-color: #00a3ff;
}

.link-icon.mgtv {
    background-image: url('../img/platforms/mgtv.svg');
    background-color: #ff6c00;
}

.link-icon.bilibili {
    background-image: url('../img/platforms/bilibili.svg');
    background-color: #fb7299;
}

.link-icon.acfun {
    background-image: url('../img/platforms/acfun.svg');
    background-color: #fd4c5d;
}

/* 页脚区域 */
footer {
    background: linear-gradient(180deg, rgba(18,18,18,0) 0%, rgba(25,25,25,1) 100%); /* 更改为深色渐变 */
    padding: 30px 0;
    text-align: center;
    color: var(--medium-gray);
    font-size: 14px;
    margin-top: 50px;
    position: relative;
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, 
        rgba(84, 97, 199, 0) 0%, 
        rgba(84, 97, 199, 0.2) 50%, 
        rgba(84, 97, 199, 0) 100%);
}

footer p {
    margin-bottom: 10px;
}

/* 特点介绍区域 */
.features-section {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
    margin-top: 50px;
    margin-bottom: 30px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.feature-card {
    background-color: var(--card-bg); /* 更改为深色卡片背景 */
    border-radius: var(--border-radius);
    padding: 30px 20px;
    box-shadow: var(--box-shadow);
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid rgba(84, 97, 199, 0.15);
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: -50px;
    right: -50px;
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, transparent 30%, rgba(84, 97, 199, 0.05));
    border-radius: 0 0 0 100px;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(84, 97, 199, 0.1);
}

.feature-icon {
    width: 70px;
    height: 70px;
    border-radius: 35px;
    background: linear-gradient(135deg, var(--primary-light), var(--primary-color));
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    position: relative;
    overflow: hidden;
}

.feature-icon::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.2) 0%, rgba(255,255,255,0) 60%);
    border-radius: 35px;
}

.feature-icon i {
    font-size: 30px;
    color: white;
}

.feature-card h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--dark-gray);
}

.feature-card p {
    color: var(--medium-gray);
    font-size: 14px;
    line-height: 1.6;
}

/* 页脚区域 - 新增样式 */
.footer-content {
    margin-bottom: 20px;
}

/* 返回顶部按钮 */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--gradient-btn);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 5px 15px rgba(84, 97, 199, 0.3);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 99;
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(84, 97, 199, 0.4);
}

.back-to-top i {
    font-size: 20px;
}

/* 响应式设计增强 */
@media screen and (max-width: 992px) {
    .features-section {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media screen and (max-width: 768px) {
    .input-group {
        flex-direction: column;
        align-items: stretch;
        gap: 15px; /* 垂直排列时减小间距 */
    }
    
    .select-wrapper {
        width: 100%;
    }
    
    #parse-btn {
        width: 100%;
        padding: 16px;
    }
    
    .link-item {
        width: 90px;
    }
    
    .link-icon {
        width: 60px;
        height: 60px;
        border-radius: 16px;
    }
    
    header .container {
        flex-direction: column;
        padding: 12px 15px;
    }
    
    .logo {
        margin-bottom: 10px;
    }
    
    .player-container {
        padding-top: 65%; /* 增加移动端播放器高度比例 */
    }
    
    .parse-box, .links-section {
        padding: 25px;
    }
    
    nav ul {
        width: 100%;
        justify-content: center;
        margin-top: 10px;
    }
    
    nav li {
        margin: 0 10px;
    }
    
    .features-section {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .feature-card {
        padding: 25px 15px;
    }
    
    .feature-icon {
        width: 60px;
        height: 60px;
        border-radius: 30px;
        margin-bottom: 15px;
    }
    
    .feature-icon i {
        font-size: 24px;
    }
    
    .icon-badge {
        width: 50px;
        height: 50px;
        border-radius: 25px;
    }
    
    .icon-badge i {
        font-size: 24px;
    }
    
    .section-header h2 {
        font-size: 24px;
    }
    
    .tag-cloud {
        justify-content: flex-start;
        margin-top: 15px;
    }
    
    .player-icon-wrapper {
        width: 90px;
        height: 90px;
        border-radius: 45px;
    }
    
    .back-to-top {
        bottom: 20px;
        right: 20px;
        width: 40px;
        height: 40px;
    }
    
    .search-bar {
        flex-direction: column;
        gap: 12px;
    }
    
    #search-btn {
        width: 100%;
    }
}

/* 按钮样式优化 */
button,
.button {
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: var(--radius);
    padding: 12px 28px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 500;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(39, 134, 249, 0.3);
}

button:hover,
.button:hover {
    background-color: #1E75E5;
    box-shadow: 0 4px 12px rgba(39, 134, 249, 0.5);
}

/* 输入框样式优化 */
input[type="text"],
input[type="url"],
select {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    font-size: 16px;
    transition: all 0.3s;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}

input[type="text"]:focus,
input[type="url"]:focus,
select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(39, 134, 249, 0.2);
    outline: none;
}

/* 设置选择框 */
select {
    appearance: none;
    background: url('../img/arrow-down.svg') no-repeat right 16px center;
    background-size: 12px;
    background-color: white;
    padding-right: 40px;
}

/* 返回顶部按钮 */
#backToTop {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background-color: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 99;
}

#backToTop.show {
    opacity: 1;
    visibility: visible;
}

#backToTop:hover {
    background-color: #1E75E5;
    transform: translateY(-3px);
}

#backToTop i {
    font-size: 20px;
}

/* 解析输入区域优化 */
.parse-input-group {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

/* 增大输入框 */
#video-url {
    flex: 1;
    height: 50px;
    font-size: 16px;
}

/* 适配解析线路选择框 */
#parse-line {
    width: 180px;
    height: 50px;
}

/* 解析按钮 */
#parse-btn {
    height: 50px;
    min-width: 120px;
    font-size: 16px;
    font-weight: 600;
}

/* 视频平台图标区域 */
.platform-logos {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    margin: 30px 0;
}

.platform-logo {
    width: 40px;
    height: 40px;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.platform-logo:hover {
    transform: scale(1.1);
}

/* 主页面区域优化 */
.main-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 30px 20px;
}

.section {
    margin-bottom: 40px;
    background-color: white;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 30px;
}

/* 播放器区域优化 */
.player-section {
    position: relative;
    overflow: hidden;
}

#player-wrapper {
    aspect-ratio: 16 / 9;
    width: 100%;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
}

#player-iframe {
    width: 100%;
    height: 100%;
    border: none;
}

#player-tips {
    width: 100%;
    aspect-ratio: 16 / 9;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background-color: #f8f9fa;
    border-radius: var(--radius);
    color: #6c757d;
}

#player-tips i {
    font-size: 40px;
    margin-bottom: 16px;
    color: var(--primary-color);
}

/* 响应式样式 */
@media (max-width: 768px) {
    .parse-input-group {
        flex-direction: column;
    }
    
    #parse-line {
        width: 100%;
    }
    
    .section {
        padding: 20px;
    }
    
    #backToTop {
        width: 40px;
        height: 40px;
        bottom: 20px;
        right: 20px;
    }
}

/* 搜索结果模态框 */
.search-results-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
}

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

.search-results-content {
    width: 90%;
    max-width: 800px;
    background-color: var(--card-bg);
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    max-height: 80vh;
    overflow-y: auto;
    transform: scale(0.9);
    transition: transform 0.3s;
    border: 1px solid rgba(84, 97, 199, 0.15);
}

.search-results-modal.show .search-results-content {
    transform: scale(1);
}

.search-results-header {
    padding: 20px;
    border-bottom: 1px solid rgba(84, 97, 199, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.search-results-header h3 {
    margin: 0;
    font-size: 22px;
    color: var(--dark-gray);
    font-weight: 600;
}

.search-modal-close {
    background: none;
    border: none;
    font-size: 28px;
    cursor: pointer;
    color: var(--medium-gray);
    transition: color 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
}

.search-modal-close:hover {
    color: var(--accent-color);
    background-color: rgba(255, 107, 139, 0.1);
}

.search-results-description {
    padding: 15px 20px;
    background-color: rgba(84, 97, 199, 0.05);
    border-bottom: 1px solid rgba(84, 97, 199, 0.1);
}

.search-results-description p {
    margin: 0;
    color: var(--medium-gray);
    font-size: 16px;
}

.platform-links {
    padding: 15px;
}

.platform-link {
    display: flex;
    padding: 18px;
    border-radius: 12px;
    margin-bottom: 15px;
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(84, 97, 199, 0.1);
    align-items: center;
    text-decoration: none;
    color: var(--dark-gray);
    transition: all 0.3s ease;
}

.platform-link:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
    background-color: rgba(84, 97, 199, 0.1);
    border-color: rgba(84, 97, 199, 0.2);
}

.platform-icon {
    width: 60px;
    height: 60px;
    margin-right: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 10px;
    transition: all 0.3s ease;
}

.platform-link:hover .platform-icon {
    transform: scale(1.05);
    background-color: rgba(255, 255, 255, 0.15);
}

.platform-icon img {
    max-width: 100%;
    max-height: 100%;
}

.platform-info {
    flex: 1;
}

.platform-name {
    font-weight: 600;
    font-size: 18px;
    margin-bottom: 8px;
    color: var(--dark-gray);
}

.platform-desc {
    font-size: 14px;
    color: var(--medium-gray);
    line-height: 1.5;
}

.platform-action {
    padding: 10px 18px;
    background: var(--gradient-btn);
    color: white;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    white-space: nowrap;
    margin-left: 15px;
    box-shadow: 0 4px 10px rgba(84, 97, 199, 0.3);
}

.platform-link:hover .platform-action {
    background: var(--gradient-hover);
    box-shadow: 0 6px 15px rgba(84, 97, 199, 0.4);
}

.search-results-footer {
    padding: 18px 20px;
    background-color: rgba(30, 30, 30, 0.5);
    border-top: 1px solid rgba(84, 97, 199, 0.1);
    text-align: center;
    border-radius: 0 0 16px 16px;
}

.search-results-footer p {
    margin: 0;
    color: var(--medium-gray);
    font-size: 14px;
}

/* 移动端适配 */
@media (max-width: 768px) {
    .search-results-content {
        width: 95%;
        max-height: 85vh;
    }
    
    .platform-link {
        flex-direction: column;
        align-items: flex-start;
        padding: 15px;
    }
    
    .platform-icon {
        margin-bottom: 15px;
        margin-right: 0;
        width: 50px;
        height: 50px;
    }
    
    .platform-action {
        margin-top: 15px;
        margin-left: 0;
        align-self: flex-start;
        width: 100%;
        text-align: center;
    }
    
    .search-results-header h3 {
        font-size: 18px;
    }
}

/* 平台搜索结果样式 */
.search-results-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.search-results-container {
    background: #1c1c1c;
    border-radius: 10px;
    width: 80%;
    max-width: 800px;
    max-height: 80vh;
    overflow-y: auto;
    padding: 20px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
    color: #fff;
}

.search-results-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    border-bottom: 1px solid #333;
    padding-bottom: 10px;
}

.search-results-title {
    font-size: 1.5rem;
    font-weight: bold;
}

.search-results-close {
    background: none;
    border: none;
    color: #999;
    font-size: 1.5rem;
    cursor: pointer;
    transition: color 0.3s;
}

.search-results-close:hover {
    color: #fff;
}

.platform-link {
    display: flex;
    align-items: center;
    padding: 15px;
    margin-bottom: 10px;
    background: #252525;
    border-radius: 8px;
    text-decoration: none;
    color: #fff;
    transition: background 0.3s;
}

.platform-link:hover {
    background: #303030;
}

.platform-icon {
    width: 40px;
    height: 40px;
    margin-right: 15px;
}

.platform-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.platform-info {
    flex: 1;
}

.platform-name {
    font-size: 1.2rem;
    font-weight: bold;
    margin-bottom: 5px;
}

.platform-desc {
    font-size: 0.9rem;
    color: #aaa;
}

.platform-action {
    background: #007bff;
    color: white;
    padding: 8px 12px;
    border-radius: 4px;
    font-size: 0.9rem;
    transition: background 0.3s;
}

.platform-link:hover .platform-action {
    background: #0069d9;
}

.search-results-note {
    margin-top: 20px;
    padding: 10px;
    background: #252525;
    border-radius: 5px;
    font-size: 0.9rem;
    color: #aaa;
    text-align: center;
} 