* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Microsoft YaHei", Arial, sans-serif;
}

body {
    background: linear-gradient(135deg, #e8f4f8 0%, #f0f8fb 100%);
    min-height: 100vh;
}

main {
    max-width: 800px;
    margin: 80px auto;
    padding: 0 24px;
    text-align: center;
}

.main-title {
    font-size: 32px;
    color: #2d3748;
    margin-bottom: 16px;
    font-weight: 700;
}

.main-subtitle {
    font-size: 16px;
    color: #718096;
    margin-bottom: 48px;
}

.input-card {
    background-color: #ffffff;
    border-radius: 12px;
    padding: 32px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.input-label {
    display: block;
    text-align: left;
    font-size: 14px;
    color: #4a5568;
    margin-bottom: 8px;
    font-weight: 500;
}

.input-group {
    display: flex;
    gap: 12px;
    margin-bottom: 16px;
}

.url-input {
    flex: 1;
    padding: 16px 20px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-size: 16px;
    color: #2d3748;
    outline: none;
}

.url-input::placeholder {
    color: #cbd5e0;
}

.parse-btn {
    padding: 0 32px;
    background: linear-gradient(135deg, #4299e1 0%, #38b2ac 100%);
    color: #ffffff;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(66, 153, 225, 0.3);
}

.support-platform {
    font-size: 12px;
    color: #a0aec0;
    text-align: left;
}

footer {
    background: none;
    box-shadow: none;
    padding: 24px 0;
    margin-top: 40px;
    border-top: 1px solid #e2e8f0;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
    font-size: 13px;
    color: #64748b;
    line-height: 1.8;
    padding: 0 24px;
}

.d-none {
    display: none !important;
}

.result-card {
    background-color: #ffffff;
    border-radius: 12px;
    margin-top: 32px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.result-header {
    background: linear-gradient(135deg, #4299e1 0%, #38b2ac 100%);
    color: #ffffff;
    padding: 16px 24px;
    font-weight: 600;
    font-size: 15px;
}

.result-body {
    padding: 24px;
}

.video-title {
    font-size: 15px;
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 20px;
    text-align: left;
}

.video-player {
    background-color: #000000;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 20px;
    position: relative;
}

.video-player video {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
    background-color: #000000;
    object-fit: contain;
}

.btn-group {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn {
    padding: 12px 24px;
    font-size: 14px;
    font-weight: 500;
    border-radius: 8px;
    cursor: pointer;
    border: none;
}

.btn-success {
    background: linear-gradient(135deg, #4299e1 0%, #38b2ac 100%);
    color: #ffffff;
    box-shadow: 0 2px 8px rgba(66, 153, 225, 0.3);
}

.btn-outline {
    background-color: transparent;
    color: #4a5568;
    border: 1px solid #e2e8f0;
}

.alert {
    padding: 16px 20px;
    border-radius: 8px;
    margin-top: 24px;
    text-align: center;
}

.alert-info {
    background-color: #ebf8ff;
    color: #2b6cb0;
    border: 1px solid #bee3f8;
}

.alert-danger {
    background-color: #fff5f5;
    color: #c53030;
    border: 1px solid #fed7d7;
}

.spinner {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid #2b6cb0;
    border-top-color: transparent;
    border-radius: 50%;
    margin-right: 8px;
    vertical-align: middle;
    -webkit-animation: spin 0.8s linear infinite;
    animation: spin 0.8s linear infinite;
}

@-webkit-keyframes spin {
    0% { -webkit-transform: rotate(0deg); }
    100% { -webkit-transform: rotate(360deg); }
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.ad-container {
    margin: 20px 0;
    padding: 16px;
    background-color: #ffffff;
    border-radius: 8px;
    text-align: center;
}

.ad-banner {
    margin: 16px 0;
    padding: 12px;
    background-color: #f7fafc;
    border: 1px dashed #e2e8f0;
    border-radius: 8px;
    text-align: center;
}

.ad-footer {
    padding: 16px;
    text-align: center;
}

.footer-ad-wrapper {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 24px;
}

@media (max-width: 768px) {
    .main-title {
        font-size: 24px;
    }

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

    .parse-btn {
        padding: 16px 0;
        width: 100%;
    }

    .input-card {
        padding: 24px;
    }

    .footer-container {
        font-size: 12px;
    }
    
    .btn-group {
        flex-direction: column;
    }

    .btn {
        width: 100%;
    }
}
