/* ===== 全局重置 ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Microsoft YaHei", "微软雅黑", -apple-system, BlinkMacSystemFont, sans-serif;
    background-color: #f3f4f6;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.app-wrapper {
    max-width: 720px;
    width: 100%;
    background-color: #ffffff;
    border-radius: 24px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.08);
    padding: 40px 36px 30px;
}

.app-header {
    margin-bottom: 32px;
    text-align: center;
}

.app-title {
    font-size: 26px;
    font-weight: 600;
    color: #1e293b;
    letter-spacing: 0.5px;
    margin-bottom: 6px;
}

.app-subtitle {
    font-size: 14px;
    color: #94a3b8;
}

.app-main {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.editor-form {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 18px;
    margin-bottom: 28px;
}

.form-row {
    display: flex;
    align-items: center;
    width: 100%;
    gap: 12px;
    flex-wrap: wrap;
}

.form-label {
    width: 100px;
    flex-shrink: 0;
    font-size: 15px;
    font-weight: 500;
    color: #334155;
    text-align: right;
}

.form-input {
    flex: 1;
    min-width: 200px;
    height: 42px;
    padding: 0 14px;
    font-size: 15px;
    font-family: inherit;
    border: 1.5px solid #d1d5db;
    border-radius: 8px;
    background-color: #fafbfc;
    transition: border-color 0.2s, box-shadow 0.2s;
    outline: none;
    color: #0f172a;
}

.form-input:focus {
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
    background-color: #ffffff;
}

.form-input::placeholder {
    color: #9ca3af;
    font-weight: 300;
}

.btn-wrapper {
    width: 100%;
    display: flex;
    justify-content: center;
}

.btn-download {
    height: 40px;
    min-width: 180px;
    padding: 0 28px;
    background-color: #e65a5a;
    color: #ffffff;
    font-size: 16px;
    font-weight: 600;
    font-family: "Microsoft YaHei", "微软雅黑", sans-serif;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: background-color 0.15s, transform 0.1s, box-shadow 0.15s;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 10px rgba(230, 90, 90, 0.25);
}

.btn-download:hover {
    background-color: #d94a4a;
    box-shadow: 0 6px 14px rgba(230, 90, 90, 0.35);
}

.btn-download:active {
    background-color: #c93e3e;
    transform: scale(0.97);
}

.app-footer {
    margin-top: 28px;
    text-align: center;
    border-top: 1px solid #eef2f6;
    padding-top: 20px;
}

.footer-text {
    font-size: 13px;
    color: #94a3b8;
}

/* ===== 响应式 ===== */
@media (max-width: 640px) {
    .app-wrapper {
        padding: 24px 18px 20px;
    }

    .app-title {
        font-size: 22px;
    }

    .form-row {
        flex-direction: column;
        align-items: stretch;
        gap: 6px;
    }

    .form-label {
        width: auto;
        text-align: left;
        font-size: 14px;
    }

    .form-input {
        min-width: unset;
        height: 40px;
        font-size: 14px;
    }

    .btn-download {
        min-width: 140px;
        height: 38px;
        font-size: 15px;
    }
}

@media (max-width: 400px) {
    .app-wrapper {
        padding: 16px 12px;
    }

    .app-title {
        font-size: 18px;
    }

    .btn-download {
        min-width: 120px;
        height: 36px;
        font-size: 14px;
    }
}