* {
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 0;
    background: #0f172a; /* 深色背景 */
    color: #e5e7eb;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
        "Helvetica Neue", Arial, "Noto Sans", "PingFang SC",
        "Microsoft YaHei", sans-serif;
}

.container {
    max-width: 720px;
    margin: 40px auto;
    padding: 0 16px;
}

h1 {
    text-align: center;
    font-size: 28px;
    margin-bottom: 8px;
    color: #f1f5f9;
}

.subtitle {
    text-align: center;
    color: #94a3b8;
    margin-bottom: 24px;
}

.card {
    background: rgba(15, 23, 42, 0.9);
    border: 1px solid rgba(148, 163, 184, 0.25);
    border-radius: 16px;
    padding: 20px 24px;
    margin-bottom: 20px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.5);
    backdrop-filter: blur(16px);
}

.card.disabled {
    opacity: 0.5;
    pointer-events: none;
}

.card h2 {
    margin-top: 0;
    font-size: 20px;
    margin-bottom: 12px;
}

.password-row,
.upload-row {
    display: flex;
    gap: 12px;
    margin-top: 12px;
    flex-wrap: wrap;
}

input[type="password"],
input[type="file"] {
    flex: 1;
    padding: 10px 12px;
    border-radius: 10px;
    border: 1px solid #475569;
    background: #1e293b;
    color: #e2e8f0;
    font-size: 14px;
}

input[type="password"]:focus {
    outline: none;
    border-color: #38bdf8;
    box-shadow: 0 0 0 1px #38bdf8;
}

button {
    padding: 10px 18px;
    border: none;
    background: linear-gradient(135deg, #38bdf8, #6366f1);
    color: white;
    border-radius: 999px;
    font-size: 14px;
    cursor: pointer;
    font-weight: 500;
}

button:disabled {
    background: #475569;
    cursor: not-allowed;
}

.status-text {
    margin-top: 8px;
    font-size: 14px;
}

.status-text.ok {
    color: #4ade80;
}

.status-text.error {
    color: #f87171;
}

/* 上传控制按钮 */
.upload-controls {
    display: flex;
    gap: 12px;
    margin-top: 16px;
    flex-wrap: wrap;
}

/* 进度条 */
.progress-wrapper {
    margin-top: 18px;
}

.progress-bar {
    width: 100%;
    height: 12px;
    background: #1e293b;
    border-radius: 999px;
    overflow: hidden;
    border: 1px solid #334155;
}

.progress-inner {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #22c55e, #eab308);
    transition: width 0.15s linear;
}

.progress-info {
    margin-top: 6px;
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    color: #94a3b8;
}

.tip {
    margin-top: 8px;
    font-size: 12px;
    color: #64748b;
}

/* 上传成功地址列表 */
#urlList {
    margin-top: 10px;
    padding-left: 20px;
}

#urlList li {
    margin-bottom: 6px;
}

#urlList a {
    text-decoration: none;
    color: #38bdf8;
}

#urlList a:hover {
    text-decoration: underline;
}
