* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #3498db;
    --secondary-color: #2c3e50;
    --success-color: #27ae60;
    --danger-color: #e74c3c;
    --warning-color: #f39c12;
    --info-color: #3498db;
    --dark-color: #34495e;
    --light-color: #ecf0f1;
    --white: #ffffff;
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    --shadow-hover: 0 15px 40px rgba(0, 0, 0, 0.15);
}

body {
    font-family: 'Microsoft YaHei UI', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: #0f2d4f;
    background-image: 
        linear-gradient(180deg, #0a1f35 0%, #0f2d4f 50%, #1a3d5f 100%);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    position: relative;
    overflow-x: hidden;
}

/* 背景纹理 */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 30% 40%, rgba(26, 61, 95, 0.4) 0%, transparent 60%),
        radial-gradient(circle at 70% 60%, rgba(15, 45, 79, 0.3) 0%, transparent 60%);
    z-index: 0;
    pointer-events: none;
}

.container {
    width: 100%;
    max-width: 700px;
    position: relative;
    z-index: 1;
}

/* 标题区域 */
.header {
    text-align: center;
    margin-bottom: 35px;
    animation: fadeInDown 0.5s ease-out;
}

.logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin-bottom: 10px;
}

.logo i {
    font-size: 48px;
    color: var(--white);
}

.logo h1 {
    font-size: 40px;
    font-weight: 600;
    color: var(--white);
    text-shadow: 1px 2px 8px rgba(0, 0, 0, 0.4);
    letter-spacing: 1px;
}

.subtitle {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 300;
    letter-spacing: 1px;
}

/* 主内容区域 */
.main-content {
    background: var(--white);
    border-radius: 16px;
    padding: 40px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.25), 0 2px 8px rgba(0, 0, 0, 0.15);
    animation: fadeInUp 0.6s ease-out;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 输入区域 */
.input-section {
    margin-bottom: 30px;
}

.input-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 600;
    color: var(--dark-color);
    margin-bottom: 12px;
}

.input-label i {
    color: var(--primary-color);
}

.input-group {
    position: relative;
    display: flex;
    align-items: center;
    background: var(--light-color);
    border-radius: 12px;
    padding: 5px;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.input-group:focus-within {
    border-color: #2980b9;
    background: var(--white);
    box-shadow: 0 0 0 3px rgba(41, 128, 185, 0.1);
}

.video-input {
    flex: 1;
    border: none;
    outline: none;
    padding: 15px 20px;
    font-size: 15px;
    background: transparent;
    color: var(--dark-color);
    font-family: inherit;
}

.video-input::placeholder {
    color: #95a5a6;
}

.btn-clear {
    background: transparent;
    border: none;
    padding: 10px 15px;
    cursor: pointer;
    color: #95a5a6;
    transition: all 0.3s ease;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-clear:hover {
    background: rgba(231, 76, 60, 0.1);
    color: var(--danger-color);
}

/* 按钮区域 */
.button-section {
    margin-bottom: 30px;
}

.platform-buttons {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin-bottom: 20px;
}

.btn-platform {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 18px 15px;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    color: var(--white);
    transition: all 0.2s ease;
    font-family: inherit;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
}

.btn-platform:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    opacity: 0.95;
}

.btn-platform:active {
    transform: translateY(0);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.btn-platform i {
    font-size: 22px;
}

.btn-platform span {
    font-size: 13px;
}

.btn-iqiyi {
    background: #e74c3c;
}

.btn-iqiyi:hover {
    background: #c0392b;
}

.btn-tencent {
    background: #2980b9;
}

.btn-tencent:hover {
    background: #1f6fa8;
}

.btn-youku {
    background: #f39c12;
}

.btn-youku:hover {
    background: #e67e22;
}

.btn-primary {
    width: 100%;
    padding: 16px 30px;
    background: #27ae60;
    border: none;
    border-radius: 10px;
    color: var(--white);
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: inherit;
    box-shadow: 0 3px 12px rgba(39, 174, 96, 0.35);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.btn-primary:hover {
    background: #229954;
    transform: translateY(-2px);
    box-shadow: 0 5px 18px rgba(39, 174, 96, 0.45);
}

.btn-primary:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(39, 174, 96, 0.3);
}

.btn-primary i {
    font-size: 20px;
}

/* 提示区域 */
.tip-section {
    margin-top: 30px;
}

.tip-box {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 18px;
    background: #fff5f5;
    border-left: 3px solid var(--danger-color);
    border-radius: 8px;
}


.tip-box i {
    color: var(--danger-color);
    font-size: 18px;
}

.tip-box p {
    color: var(--danger-color);
    font-size: 13px;
    margin: 0;
}

/* 页脚 */
.footer {
    text-align: center;
    margin-top: 30px;
    color: rgba(255, 255, 255, 0.8);
    font-size: 14px;
}

.footer p {
    margin: 5px 0;
}

.creator-info {
    margin-top: 10px;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
}

.creator-info .separator {
    color: rgba(255, 255, 255, 0.5);
}

/* 加载动画 */
.loader {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 9999;
    justify-content: center;
    align-items: center;
}

.loader.show {
    display: flex;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 5px solid rgba(255, 255, 255, 0.3);
    border-top-color: var(--white);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* 响应式设计 */
@media (max-width: 768px) {
    .main-content {
        padding: 30px 20px;
    }

    .logo h1 {
        font-size: 32px;
    }

    .logo i {
        font-size: 36px;
    }

    .platform-buttons {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .btn-platform {
        flex-direction: row;
        padding: 15px;
    }
}

/* 成功提示动画 */
@keyframes successPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.btn-primary.success {
    animation: successPulse 0.5s ease;
}

