body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #1e3c72, #2a5298);
    margin: 0;
    padding: 0;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #333;
}

.container {
    background-color: rgba(255, 255, 255, 0.9);
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    padding: 30px;
    width: 90%;
    max-width: 600px;
    text-align: center;
}

h1 {
    color: #2a5298;
    margin-bottom: 20px;
}

.description {
    margin-bottom: 20px;
    color: #555;
    line-height: 1.6;
}

.url-input-section {
    margin-bottom: 30px;
}

label {
    display: block;
    margin-bottom: 10px;
    font-weight: bold;
}

input[type="text"] {
    width: 100%;
    padding: 12px;
    border: 2px solid #ddd;
    border-radius: 5px;
    font-size: 16px;
    box-sizing: border-box;
    margin-bottom: 20px;
}

button {
    background: linear-gradient(to right, #1e3c72, #2a5298);
    color: white;
    border: none;
    padding: 12px 24px;
    font-size: 16px;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
}

button:hover {
    background: linear-gradient(to right, #2a5298, #1e3c72);
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.examples, .instructions {
    text-align: left;
    margin-bottom: 20px;
}

.examples h3, .instructions h3 {
    color: #2a5298;
    margin-bottom: 10px;
}

.examples ul, .instructions ol {
    padding-left: 20px;
}

.examples li, .instructions li {
    margin-bottom: 8px;
}

.examples code, .instructions code {
    background-color: #e9ecef;
    padding: 2px 4px;
    border-radius: 4px;
    font-size: 14px;
}

.direct-link-section {
    background-color: #f8f9fa;
    border-left: 4px solid #1e3c72;
    padding: 15px;
    text-align: left;
    margin-bottom: 20px;
}

.direct-link-section p {
    margin-top: 0;
    margin-bottom: 10px;
}

code {
    display: block;
    background-color: #e9ecef;
    padding: 10px;
    border-radius: 4px;
    overflow-x: auto;
    font-size: 14px;
    margin: 5px 0;
}

.status {
    padding: 15px;
    border-radius: 5px;
    margin-top: 20px;
    display: none;
}

.status.loading {
    background-color: #d1ecf1;
    color: #0c5460;
    display: block;
}

.status.success {
    background-color: #d4edda;
    color: #155724;
    display: block;
}

.status.error {
    background-color: #f8d7da;
    color: #721c24;
    display: block;
}

/* 纯文本显示模式 */
body.plain-text-mode {
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100vh;
    margin: 0;
    padding: 20px;
    background-image: none;
}

body.plain-text-mode .container {
    display: none;
}

body.plain-text-mode #status {
    display: block;
    font-size: 18px;
    text-align: center;
    padding: 20px;
    border-radius: 5px;
    background: none;
    box-shadow: none;
    width: 100%;
    max-width: none;
}

body.plain-text-mode .status.loading {
    background-color: #f0f8ff;
    color: #333;
}

body.plain-text-mode .status.success {
    background-color: #f0fff0;
    color: #333;
}

body.plain-text-mode .status.error {
    background-color: #fff0f0;
    color: #333;
}