/* 基础样式重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'PingFang SC', 'Microsoft YaHei', sans-serif;
    background: url('https://img.freepik.com/free-photo/beautiful-scenery-summit-mount-everest-covered-with-snow-white-clouds_181624-21317.jpg') no-repeat center center fixed;
    background-size: cover;
    color: #333;
    line-height: 1.6;
    position: relative;
}

body::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.85);
    z-index: -1;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    position: relative;
    z-index: 1;
}

/* 头部样式 */
header {
    text-align: center;
    margin-bottom: 30px;
}

.title {
    font-size: 2.5rem;
    color: #1a73e8;
    margin: 20px 0;
    position: relative;
    display: inline-block;
    padding-bottom: 8px;
}

.title::after {
    content: '';
    position: absolute;
    width: 50%;
    height: 2px;
    background: #1a73e8;
    bottom: 0;
    left: 25%;
    border-radius: 1px;
}

/* 主要内容区域 */
main {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

/* 视频播放窗口 */
.player-container {
    width: 100%;
    height: 0;
    padding-bottom: 56.25%;
    position: relative;
    background-color: #000;
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.05);
}

#video-placeholder {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.7);
    background-color: #222;
    z-index: 1;
}

#video-placeholder i {
    font-size: 4rem;
    margin-bottom: 15px;
    opacity: 0.7;
}

#video-placeholder p {
    font-size: 1.1rem;
    text-align: center;
    max-width: 80%;
    line-height: 1.5;
}

#video-player {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #000;
    z-index: 2;
}

.iframe-container {
    position: relative;
    width: 100%;
    height: 100%;
}

#player, #video-iframe {
    width: 100%;
    height: 100%;
    background-color: #000;
    z-index: 1;
}

.video-center-message {
    z-index: 20 !important;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2) !important;
    font-size: 16px !important;
}

/* 输入框和按钮 */
.input-area {
    width: 100%;
    margin: 30px 0;
}

.input-group {
    display: flex;
    gap: 10px;
    margin: 0 auto;
    width: 100%;
    max-width: 1000px;
}

.input-with-clear {
    position: relative;
    flex: 1;
    display: flex;
    align-items: center;
}

#video-url {
    width: 100%;
    padding: 15px 40px 15px 20px;
    border: 2px solid #ddd;
    border-radius: 6px;
    font-size: 1rem;
    outline: none;
    transition: all 0.3s ease;
}

#video-url:focus {
    border-color: #1a73e8;
    box-shadow: 0 0 0 3px rgba(26, 115, 232, 0.15);
}

.clear-btn {
    position: absolute;
    right: 15px;
    background: none;
    border: none;
    color: #999;
    font-size: 1.2rem;
    cursor: pointer;
    padding: 5px;
    z-index: 5;
    transition: all 0.2s ease;
    line-height: 1;
    display: none;
}

.clear-btn:hover {
    color: #1a73e8;
    transform: scale(1.1);
}

.action-btn {
    background: none;
    border: 2px solid #ddd;
    border-radius: 6px;
    padding: 0 15px;
    color: #555;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
}

.clear-input-btn {
    background-color: #f9f9f9;
}

.action-btn:hover {
    border-color: #1a73e8;
    color: #1a73e8;
    transform: translateY(-2px);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

#parse-btn {
    padding: 0 30px;
    border: none;
    border-radius: 6px;
    background: #1a73e8;
    color: white;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
}

#parse-btn:hover {
    background: #0b5bd3;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(26, 115, 232, 0.25);
}

#parse-btn:active {
    transform: translateY(1px);
}

.select-wrapper {
    position: relative;
    min-width: 150px;
}

#parse-source {
    width: 100%;
    padding: 15px 35px 15px 20px;
    border: 2px solid #ddd;
    border-radius: 6px;
    background-color: #fff;
    appearance: none;
    outline: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

#parse-source:focus {
    border-color: #1a73e8;
    box-shadow: 0 0 0 3px rgba(26, 115, 232, 0.15);
}

.select-wrapper::after {
    content: '\25BC';
    position: absolute;
    top: 50%;
    right: 15px;
    transform: translateY(-50%);
    pointer-events: none;
    color: #777;
    font-size: 0.8rem;
}

/* 视频网站入口 */
.site-entrances {
    margin: 20px 0 40px;
}

.site-entrances h3 {
    color: #444;
    margin-bottom: 20px;
    font-weight: normal;
    text-align: center;
    position: relative;
    padding-bottom: 8px;
}

.site-entrances h3::after {
    content: '';
    position: absolute;
    width: 40px;
    height: 2px;
    background-color: #1a73e8;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 1px;
}

.sites-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 20px;
}

.sites-row {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.site-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: #444;
    transition: all 0.25s ease;
    padding: 12px 8px;
    border-radius: 6px;
    background-color: #fff;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
    width: 120px;
}

.site-item:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    color: #1a73e8;
}

.site-icon {
    width: 40px;
    height: 40px;
    border-radius: 6px;
    margin-bottom: 8px;
    background-size: contain !important;
    background-repeat: no-repeat !important;
    background-position: center !important;
    background-color: #fff;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.05);
    transition: all 0.25s ease;
    display: inline-block;
}

/* 其他区域保持不变（网站图标部分略） */

/* 页脚 */
footer {
    margin-top: 40px;
    text-align: center;
    color: #999;
    font-size: 0.9rem;
}
