.submit-page {
    max-width: 1440px;
    margin: 0 auto;
    padding: 22px 28px 0;
}

.submit-hero {
    min-height: 178px;
    padding: 30px 36px;
    border: 1px solid #d9e8ff;
    border-radius: 10px;
    background:
        radial-gradient(circle at 88% 10%, rgba(255,255,255,.9) 0 18%, transparent 19%),
        linear-gradient(125deg, #edf6ff 0%, #dcecff 58%, #cfe2ff 100%);
    box-shadow: var(--shadow-sm);
}
.submit-hero span {
    display: inline-flex;
    height: 28px;
    align-items: center;
    padding: 0 12px;
    margin-bottom: 12px;
    border-radius: 15px;
    color: #0c63d4;
    background: rgba(255,255,255,.78);
    font-size: 13px;
    font-weight: 800;
}
.submit-hero h1 {
    max-width: 760px;
    margin: 0 0 8px;
    color: #0d357f;
    font-size: 32px;
    line-height: 1.28;
    font-weight: 800;
    letter-spacing: 0;
}
.submit-hero p {
    color: #3d5c92;
    font-size: 16px;
}

.submit-layout {
    display: grid;
    grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
    gap: 16px;
    margin-top: 16px;
}
.submit-panel,
.submit-actions {
    border: 1px solid var(--border-light);
    border-radius: 10px;
    background: #fff;
    box-shadow: var(--shadow-sm);
}
.submit-panel { padding: 22px; }
.panel-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 18px;
}
.panel-heading h2 {
    margin: 0;
    color: #172033;
    font-size: 20px;
    line-height: 1.2;
}
.panel-heading small {
    color: var(--text-muted);
    font-size: 13px;
    text-align: right;
}

.field-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 220px;
    gap: 14px;
}
.submit-form-group { margin-bottom: 16px; }
.submit-form-label {
    display: block;
    margin-bottom: 8px;
    color: #25324a;
    font-size: 14px;
    font-weight: 800;
}
.submit-form-label span { color: var(--danger); }
.submit-input {
    width: 100%;
    min-height: 42px;
    padding: 10px 13px;
    border: 1px solid #d8e2ef;
    border-radius: 8px;
    color: var(--text-primary);
    background: #fff;
    font-size: 14px;
    outline: none;
    transition: border-color .2s, box-shadow .2s;
}
.submit-input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(22,119,255,.1);
}
.submit-page .f-select-wrap { display: block; }
.submit-page .f-select-trigger {
    height: 42px;
    border-color: #d8e2ef;
    border-radius: 8px;
}
.submit-page .f-select-arrow i { display: none; }
.submit-page .f-select-arrow::before {
    content: "⌄";
    color: #7d8aa0;
    font-size: 16px;
    line-height: 1;
}

.submit-tips {
    margin-top: 8px;
    padding: 14px;
    border: 1px solid #d8e8ff;
    border-radius: 8px;
    background: #f3f8ff;
}
.submit-tips strong {
    display: block;
    color: #0c63d4;
    margin-bottom: 4px;
}
.submit-tips p {
    margin: 0;
    color: #5d667a;
    font-size: 13px;
    line-height: 1.7;
}

.desc-mode-tabs {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    margin-bottom: 12px;
}
.desc-mode-tabs button {
    height: 38px;
    border: 1px solid #d8e2ef;
    border-radius: 8px;
    color: #41506a;
    background: #fff;
    font-weight: 800;
    cursor: pointer;
}
.desc-mode-tabs button.active {
    color: #fff;
    border-color: var(--primary);
    background: var(--primary);
    box-shadow: 0 8px 16px rgba(22,119,255,.16);
}
.desc-mode-panel {
    display: none;
    padding: 14px;
    margin-bottom: 14px;
    border: 1px solid var(--border-light);
    border-radius: 8px;
    background: #fbfdff;
}
.desc-mode-panel.active { display: block; }
.desc-mode-panel p {
    margin: 0 0 12px;
    color: #64748b;
    font-size: 13px;
    line-height: 1.7;
}
.prompt-input {
    min-height: 92px;
    margin-bottom: 12px;
    resize: vertical;
}
.tool-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 136px;
    height: 38px;
    padding: 0 16px;
    border: 1px solid #bcd8ff;
    border-radius: 8px;
    color: var(--primary);
    background: #fff;
    font-weight: 800;
    cursor: pointer;
}
.tool-btn:hover { background: var(--primary-light); }
.tool-btn:disabled { opacity: .65; cursor: wait; }

.submit-logo-uploader {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px;
    border: 1px solid #d8e8ff;
    border-radius: 8px;
    background: #fbfdff;
}
.submit-logo-preview {
    width: 76px;
    height: 76px;
    flex: 0 0 76px;
    overflow: hidden;
    border: 1px solid #d8e2ef;
    border-radius: 14px;
    background: #fff;
}
.submit-logo-preview img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}
.submit-logo-actions {
    display: grid;
    gap: 8px;
    min-width: 0;
}
.submit-logo-file {
    width: max-content;
    cursor: pointer;
}
.submit-logo-actions small {
    color: var(--text-muted);
    font-size: 12px;
    line-height: 1.6;
}

.desc-editor {
    min-height: 170px;
    resize: vertical;
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}
.desc-preview {
    overflow: hidden;
    border: 1px solid var(--border-light);
    border-radius: 8px;
    background: #fff;
}
.preview-title {
    height: 38px;
    display: flex;
    align-items: center;
    padding: 0 14px;
    color: #25324a;
    font-weight: 800;
    background: #f6f9fd;
    border-bottom: 1px solid var(--border-light);
}
.preview-body {
    min-height: 130px;
    padding: 16px;
    color: #475569;
    line-height: 1.75;
}
.preview-body h3,
.preview-body h2 { color: #172033; margin-bottom: 8px; }
.preview-body ul { padding-left: 20px; }
.preview-body .ai-site-desc {
    display: grid;
    gap: 14px;
}
.preview-body .ai-desc-lead {
    margin: 0;
    padding: 14px 16px;
    border-radius: 8px;
    color: #25324a;
    background: #f8fbff;
    border: 1px solid #e4eefc;
    line-height: 1.8;
}
.preview-body .ai-desc-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}
.preview-body .ai-desc-card {
    padding: 15px;
    border: 1px solid var(--border-light);
    border-radius: 8px;
    background: #fff;
}
.preview-body .ai-desc-card h3 {
    margin: 0 0 8px;
    color: #172033;
    font-size: 16px;
}
.preview-body .ai-desc-card ul {
    margin: 0;
    padding-left: 20px;
}
.preview-body .ai-desc-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.preview-body .ai-desc-tags span {
    display: inline-flex;
    align-items: center;
    min-height: 26px;
    padding: 0 10px;
    border-radius: 999px;
    color: var(--primary);
    background: var(--primary-light);
    font-size: 12px;
    font-weight: 800;
}
.preview-body .ai-desc-note {
    margin: 0;
    padding: 11px 13px;
    border-left: 4px solid var(--primary);
    background: #f8fbff;
}

.submit-actions {
    grid-column: 1 / -1;
    display: flex;
    justify-content: flex-end;
    padding: 16px 22px;
}
.submit-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 142px;
    height: 42px;
    border: 0;
    border-radius: 8px;
    color: #fff;
    background: var(--primary);
    font-size: 15px;
    font-weight: 800;
    cursor: pointer;
    box-shadow: 0 10px 18px rgba(22,119,255,.22);
}
.submit-btn:hover { background: var(--primary-hover); }
.submit-btn:disabled { opacity: .68; cursor: wait; }

.submit-account-card {
    margin-top: 16px;
    padding: 22px;
    border: 1px solid #bfe0ff;
    border-radius: 10px;
    background: linear-gradient(180deg, #ffffff 0%, #f2f8ff 100%);
    box-shadow: var(--shadow-sm);
}
.submit-account-card[hidden] { display: none; }
.account-kicker {
    display: inline-flex;
    height: 26px;
    align-items: center;
    padding: 0 10px;
    border-radius: 14px;
    color: #0c63d4;
    background: #e8f3ff;
    font-size: 12px;
    font-weight: 800;
}
.submit-account-card h2 {
    margin: 10px 0 6px;
    color: #172033;
    font-size: 22px;
}
.submit-account-card p {
    margin: 0 0 16px;
    color: #64748b;
}
.account-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}
.account-grid label {
    display: grid;
    gap: 7px;
    color: #25324a;
    font-size: 13px;
    font-weight: 800;
}
.account-grid input {
    width: 100%;
    min-height: 42px;
    padding: 10px 12px;
    border: 1px solid #d8e2ef;
    border-radius: 8px;
    color: #0f172a;
    background: #fff;
    font-size: 14px;
}
.account-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 16px;
}
.account-login-btn {
    min-width: 132px;
    text-decoration: none;
}

.submit-toast {
    position: fixed;
    right: 22px;
    top: 78px;
    z-index: 3000;
    max-width: 340px;
    padding: 12px 14px;
    border-radius: 8px;
    color: #fff;
    background: #172033;
    box-shadow: var(--shadow-md);
    font-weight: 700;
}
.submit-toast.error { background: #f04438; }
.submit-toast.success { background: #16a34a; }

@media (max-width: 980px) {
    .submit-page { padding: 16px; }
    .submit-layout { grid-template-columns: 1fr; }
    .account-grid { grid-template-columns: 1fr; }
    .panel-heading { display: block; }
    .panel-heading small { display: block; margin-top: 6px; text-align: left; }
}

@media (max-width: 640px) {
    .submit-page { padding-left: 12px; padding-right: 12px; }
    .submit-hero { padding: 24px 20px; }
    .preview-body .ai-desc-grid { grid-template-columns: 1fr; }
    .submit-hero h1 { font-size: 26px; }
    .field-grid,
    .desc-mode-tabs { grid-template-columns: 1fr; }
    .submit-actions { justify-content: stretch; }
    .submit-btn { width: 100%; }
}
