/* 会员发布中心与收益 */
.publish-hero {
    padding: 46px 0 38px;
    border-bottom: 1px solid var(--line);
    background:
        radial-gradient(600px 280px at 85% 20%, var(--blue-100), transparent 68%),
        linear-gradient(120deg, var(--blue-25), #fff);
}

.publish-hero h1 {
    margin: 7px 0 10px;
    font-family: "Songti SC", "STSong", serif;
    font-size: clamp(32px, 4vw, 46px);
    letter-spacing: -0.04em;
}

.publish-hero p {
    max-width: 660px;
    color: var(--muted);
    font-family: "Songti SC", "STSong", serif;
    font-size: 14px;
    line-height: 1.85;
}

.publish-hero-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-top: 16px;
    color: var(--muted-2);
    font-size: 10px;
}

.publish-hero-meta span {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.publish-hero-meta .icon {
    width: 12px;
    height: 12px;
}

.publish-page {
    padding-top: 26px;
    padding-bottom: 64px;
}

.publish-choice-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.publish-choice {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: 15px;
    background: #fff;
    box-shadow: var(--shadow-xs);
    transition: transform 0.2s, box-shadow 0.2s;
}

.publish-choice:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.publish-choice-icon {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    flex: 0 0 auto;
    border-radius: 12px;
    color: var(--blue-600);
    background: var(--blue-75);
}

.publish-choice-icon.amber {
    color: #bd7b30;
    background: #fff5e7;
}

.publish-choice-icon.violet {
    color: #7460b8;
    background: #f3efff;
}

.publish-choice-icon.rose {
    color: #b65b78;
    background: #fff0f5;
}

.publish-choice-icon.teal {
    color: #2a8e91;
    background: #e9f9f8;
}

.publish-choice-icon .icon {
    width: 21px;
    height: 21px;
}

.publish-choice > span:nth-child(2) {
    display: flex;
    flex-direction: column;
    min-width: 0;
    flex: 1;
}

.publish-choice small {
    color: var(--blue-400);
    font-family: "SFMono-Regular", Consolas, monospace;
    font-size: 7px;
    letter-spacing: 0.12em;
}

.publish-choice strong {
    margin: 2px 0 3px;
    color: var(--ink);
    font-family: "Songti SC", "STSong", serif;
    font-size: 18px;
}

.publish-choice p {
    color: var(--muted);
    font-size: 10px;
    line-height: 1.6;
}

.publish-choice > .icon {
    width: 16px;
    height: 16px;
    color: var(--muted-2);
}

.publish-note {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-top: 16px;
    padding: 14px 16px;
    border: 1px solid #e3f0fb;
    border-radius: 12px;
    background: #f9fcff;
    color: var(--muted);
    font-size: 10px;
    line-height: 1.7;
}

.publish-note > span {
    color: var(--blue-500);
}

.publish-note p {
    flex: 1;
}

.publish-note a {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    flex: 0 0 auto;
    color: var(--blue-600);
    white-space: nowrap;
}

.publish-form-page {
    max-width: 1180px;
}

.publish-form-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
    padding: 30px 0 20px;
}

.publish-form-head h1 {
    margin: 5px 0 4px;
    font-family: "Songti SC", "STSong", serif;
    font-size: clamp(28px, 3vw, 38px);
    letter-spacing: -0.035em;
}

.publish-form-head p {
    color: var(--muted);
    font-size: 11px;
}

.publish-form {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: 16px;
    align-items: start;
}

.publish-form-main,
.publish-form-aside {
    display: flex;
    flex-direction: column;
    gap: 14px;
    min-width: 0;
}

.publish-card {
    padding: 17px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: #fff;
    box-shadow: var(--shadow-xs);
}

.publish-card-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 12px;
}

.publish-card-head h2 {
    font-family: "Songti SC", "STSong", serif;
    font-size: 17px;
}

.publish-card-head span {
    color: var(--muted-2);
    font-size: 8px;
}

.publish-field {
    display: flex;
    flex-direction: column;
    gap: 5px;
    margin-bottom: 10px;
}

.publish-field:last-child {
    margin-bottom: 0;
}

.publish-field > label {
    color: var(--ink-2);
    font-size: 10px;
    font-weight: 500;
}

.publish-field label small {
    color: var(--muted-2);
    font-size: 8px;
}

.publish-field input,
.publish-field select,
.publish-field textarea {
    width: 100%;
    border: 1px solid #dfeaf5;
    border-radius: 7px;
    color: var(--ink-2);
    background: #fbfdff;
    font-size: 11px;
}

.publish-field input,
.publish-field select {
    height: 37px;
    padding: 0 9px;
}

.publish-field textarea {
    padding: 9px;
    line-height: 1.65;
    resize: vertical;
}

.publish-field input:focus,
.publish-field select:focus,
.publish-field textarea:focus {
    outline: 0;
    border-color: var(--blue-300);
    box-shadow: 0 0 0 3px var(--blue-50);
}

.publish-field-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.publish-hint {
    color: var(--muted-2);
    font-size: 8px;
    line-height: 1.6;
}

.publish-upload {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    min-height: 38px;
    border: 1px dashed var(--line-strong);
    border-radius: 7px;
    color: var(--blue-600);
    background: var(--blue-25);
    font-size: 10px;
    cursor: pointer;
}

.publish-switch {
    display: flex;
    align-items: center;
    gap: 7px;
    color: var(--ink-2);
    font-size: 10px;
    cursor: pointer;
}

.publish-switch input {
    width: 15px;
    height: 15px;
    accent-color: var(--blue-500);
}

.publish-form .btn-block {
    width: 100%;
}

.publish-actions {
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.publish-draft-list {
    display: flex;
    flex-direction: column;
}

.publish-draft-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 10px 0;
    border-top: 1px solid #eef6fc;
}

.publish-draft-row:first-child {
    border-top: 0;
}

.publish-draft-row > div:first-child {
    display: flex;
    flex-direction: column;
    gap: 3px;
    min-width: 0;
    flex: 1;
}

.publish-draft-cover {
    width: 46px;
    height: 32px;
    flex: 0 0 auto;
    border-radius: 5px;
    object-fit: cover;
}

.publish-draft-row strong {
    overflow: hidden;
    color: var(--ink-2);
    font-size: 12px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.publish-draft-row span {
    color: var(--muted-2);
    font-size: 8px;
}

.publish-draft-actions {
    display: flex;
    align-items: center;
    gap: 5px;
    flex: 0 0 auto;
}

.publish-draft-actions form {
    display: flex;
    align-items: center;
    gap: 4px;
}

.publish-draft-actions input[type="datetime-local"] {
    width: 148px;
    height: 30px;
    border: 1px solid #dfeaf5;
    border-radius: 5px;
    padding: 0 5px;
    color: var(--muted);
    font-size: 9px;
}

/* 收益页 */
.earning-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    margin-bottom: 13px;
}

.earning-stats > div {
    padding: 13px 14px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: #fff;
}

.earning-stats span {
    display: block;
    color: var(--muted);
    font-size: 9px;
}

.earning-stats strong {
    display: block;
    margin: 4px 0 2px;
    color: var(--ink);
    font-family: "Songti SC", "STSong", serif;
    font-size: 23px;
}

.earning-stats small {
    color: var(--muted-2);
    font-size: 8px;
}

.earning-card {
    margin-bottom: 13px;
    padding: 17px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: #fff;
}

.earning-card-head {
    margin-bottom: 12px;
}

.earning-card-head h2 {
    margin-top: 2px;
    font-family: "Songti SC", "STSong", serif;
    font-size: 20px;
}

.earning-card-head p {
    margin-top: 4px;
    color: var(--muted);
    font-size: 9px;
    line-height: 1.7;
}

.earning-withdraw-form {
    display: flex;
    flex-direction: column;
    gap: 9px;
}

.earning-form-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 9px;
}

.earning-withdraw-form label {
    display: flex;
    flex-direction: column;
    gap: 4px;
    color: var(--ink-2);
    font-size: 9px;
}

.earning-withdraw-form input,
.earning-withdraw-form select {
    height: 35px;
    padding: 0 8px;
    border: 1px solid #dfeaf5;
    border-radius: 6px;
    color: var(--ink-2);
    background: #fbfdff;
    font-size: 10px;
}

.earning-withdraw-form .btn {
    align-self: flex-start;
}

.earning-table-wrap {
    overflow-x: auto;
}

.earning-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 9px;
}

.earning-table th {
    padding: 7px 6px;
    color: var(--muted);
    background: #f8fcff;
    text-align: left;
    white-space: nowrap;
}

.earning-table td {
    padding: 8px 6px;
    border-top: 1px solid #f0f7fd;
    color: var(--ink-2);
    vertical-align: top;
}

.earning-table .is-income {
    color: #2b9a69;
    font-weight: 600;
}

.earning-status {
    display: inline-block;
    padding: 2px 6px;
    border-radius: 4px;
    background: #fff6e7;
    color: #b37b33;
    font-size: 8px;
}

.earning-status.paid {
    background: #eaf9f1;
    color: #2a9668;
}

.earning-status.rejected {
    background: #fff0f2;
    color: #bd5b68;
}

.earning-empty {
    padding: 14px 0;
    color: var(--muted-2);
    font-size: 9px;
    text-align: center;
}

.my-content-stats {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
    margin-bottom: 13px;
}

.my-content-stats > div {
    padding: 11px 13px;
    border: 1px solid var(--line);
    border-radius: 11px;
    background: #fff;
}

.my-content-stats strong {
    display: block;
    color: var(--ink);
    font-family: "Songti SC", "STSong", serif;
    font-size: 22px;
}

.my-content-stats span {
    color: var(--muted);
    font-size: 8px;
}

.my-content-list {
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: #fff;
}

.my-content-row {
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 11px 13px;
    border-top: 1px solid #eef6fc;
}

.my-content-row:first-child {
    border-top: 0;
}

.my-content-cover {
    display: grid;
    place-items: center;
    width: 56px;
    height: 40px;
    flex: 0 0 auto;
    overflow: hidden;
    border-radius: 6px;
    color: var(--blue-400);
    background: var(--blue-50);
}

.my-content-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.my-content-cover .icon {
    width: 17px;
    height: 17px;
}

.my-content-body {
    display: flex;
    flex-direction: column;
    gap: 2px;
    flex: 1;
    min-width: 0;
}

.my-content-type {
    color: var(--blue-500);
    font-size: 7px;
}

.my-content-body strong {
    overflow: hidden;
    color: var(--ink-2);
    font-size: 12px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.my-content-body > span:last-child {
    color: var(--muted-2);
    font-size: 8px;
}

.my-content-status {
    padding: 3px 7px;
    border-radius: 4px;
    flex: 0 0 auto;
    font-size: 8px;
    white-space: nowrap;
}

.my-content-status.is-published { color: #278d63; background: #eaf9f1; }
.my-content-status.is-scheduled { color: #3e7fbd; background: #edf7ff; }
.my-content-status.is-pending { color: #ad762e; background: #fff7e8; }
.my-content-status.is-draft { color: #75879a; background: #f1f5f9; }
.my-content-status.is-rejected { color: #b34f5c; background: #fff0f2; }

.my-content-reason {
    color: #b34f5c !important;
    font-size: 8px !important;
}

.my-content-actions {
    flex: 0 0 auto;
    font-size: 9px;
}

.my-content-actions a {
    color: var(--blue-600);
}

@media (max-width: 640px) {
    .my-content-stats {
        grid-template-columns: repeat(2, 1fr);
    }

    .my-content-row {
        flex-wrap: wrap;
    }

    .my-content-status {
        margin-left: 67px;
    }

    .my-content-actions {
        margin-left: auto;
    }
}

@media (max-width: 900px) {
    .publish-form {
        grid-template-columns: 1fr;
    }

    .publish-form-aside {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .publish-form-aside .btn-block {
        grid-column: 1 / -1;
    }
}

@media (max-width: 640px) {
    .publish-choice-grid,
    .publish-form-aside,
    .earning-stats,
    .earning-form-row,
    .publish-field-row {
        grid-template-columns: 1fr;
    }

    .publish-hero {
        padding: 30px 0 26px;
    }

    .publish-form-head {
        display: block;
    }

    .publish-form-head .btn {
        margin-top: 10px;
    }
}
