body.ppt-creator-page {
    margin: 0;
    min-height: 100vh;
    background: #f6f8fb;
    color: #172033;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
}

.pc-shell {
    min-height: 100vh;
}

.pc-topbar {
    height: 68px;
    padding: 0 32px;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    background: rgba(255, 255, 255, 0.92);
    border-bottom: 1px solid #dbe3ef;
    position: sticky;
    top: 0;
    z-index: 20;
    backdrop-filter: blur(16px);
}

.pc-back,
.pc-nav a,
.pc-link-btn {
    color: #5d6b82;
    text-decoration: none;
    font-weight: 700;
}

.pc-back:hover,
.pc-nav a:hover,
.pc-link-btn:hover {
    color: #0f766e;
}

.pc-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 20px;
    font-weight: 900;
    letter-spacing: 0;
}

.pc-brand-mark {
    width: 24px;
    height: 24px;
    border-radius: 7px;
    background: linear-gradient(135deg, #0f766e 0%, #22c55e 58%, #f97316 100%);
    box-shadow: 0 8px 20px rgba(15, 118, 110, 0.18);
}

.pc-nav {
    justify-self: end;
    display: flex;
    align-items: center;
    gap: 18px;
    font-size: 14px;
}

.pc-main {
    width: min(1440px, calc(100vw - 48px));
    margin: 0 auto;
    padding: 32px 0 56px;
}

.pc-hero {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 28px;
    padding: 18px 2px 28px;
}

.pc-kicker {
    margin: 0 0 10px;
    color: #0f766e;
    font-size: 13px;
    font-weight: 900;
    text-transform: uppercase;
}

.pc-hero h1 {
    margin: 0;
    font-size: clamp(32px, 4vw, 54px);
    line-height: 1.05;
    letter-spacing: 0;
}

.pc-subtitle {
    margin: 14px 0 0;
    color: #5f6b7b;
    font-size: 16px;
    line-height: 1.7;
}

.pc-flow {
    display: grid;
    grid-template-columns: repeat(4, auto);
    gap: 10px;
    padding-bottom: 8px;
}

.pc-flow span {
    min-width: 62px;
    padding: 10px 14px;
    border: 1px solid #d7e2ee;
    border-radius: 999px;
    background: #fff;
    color: #41516a;
    text-align: center;
    font-size: 14px;
    font-weight: 800;
}

.pc-workspace {
    display: grid;
    grid-template-columns: minmax(360px, 0.78fr) minmax(560px, 1.22fr);
    gap: 20px;
    align-items: start;
}

.pc-panel {
    background: #fff;
    border: 1px solid #dbe3ef;
    border-radius: 8px;
    box-shadow: 0 20px 50px rgba(20, 32, 54, 0.08);
}

.pc-input-panel,
.pc-preview-panel {
    padding: 22px;
}

.pc-panel-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 16px;
}

.pc-panel-head h2 {
    margin: 0;
    color: #1f2a3d;
    font-size: 20px;
    line-height: 1.2;
}

.pc-panel-head p {
    margin: 7px 0 0;
    color: #718097;
    font-size: 13px;
    line-height: 1.5;
}

.pc-panel-head strong {
    flex: 0 0 auto;
    padding: 7px 10px;
    border-radius: 8px;
    background: #ecfdf5;
    color: #0f766e;
    font-size: 13px;
}

.pc-source-tools {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    flex: 0 0 auto;
}

.pc-inline-ai-btn {
    height: 32px;
    padding: 0 12px;
    border: 1px solid rgba(15, 118, 110, 0.24);
    border-radius: 999px;
    background: #ecfdf5;
    color: #0f766e;
    font: inherit;
    font-size: 12px;
    font-weight: 900;
    cursor: pointer;
}

.pc-inline-ai-btn:hover {
    border-color: rgba(15, 118, 110, 0.48);
    background: #d1fae5;
}

.pc-inline-ai-btn:disabled {
    cursor: not-allowed;
    opacity: 0.55;
}

.pc-source {
    width: 100%;
    min-height: 330px;
    padding: 18px;
    border: 1px solid #d6dfeb;
    border-radius: 8px;
    background: #fbfcfe;
    color: #172033;
    font-size: 15px;
    line-height: 1.72;
    resize: vertical;
    outline: none;
    box-sizing: border-box;
}

.pc-prompt-choice {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 10px;
    padding: 10px;
    border: 1px solid #dbe3ef;
    border-radius: 8px;
    background: #f8fbfd;
    color: #5d6b82;
    font-size: 13px;
}

.pc-prompt-choice[hidden] {
    display: none;
}

.pc-prompt-choice span {
    margin-right: auto;
}

.pc-prompt-choice button {
    height: 30px;
    padding: 0 10px;
    border: 1px solid #dbe3ef;
    border-radius: 7px;
    background: #fff;
    color: #172033;
    cursor: pointer;
    font-weight: 800;
}

.pc-prompt-choice button:hover {
    border-color: #0f766e;
    color: #0f766e;
}

.pc-source:focus,
.pc-form-grid input:focus,
.pc-form-grid select:focus,
.pc-slide-card input:focus,
.pc-slide-card textarea:focus,
.pc-slide-card select:focus {
    border-color: #0f766e;
    box-shadow: 0 0 0 3px rgba(15, 118, 110, 0.12);
}

.pc-form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin-top: 14px;
}

.pc-form-grid label {
    display: grid;
    gap: 7px;
    color: #5d6b82;
    font-size: 13px;
    font-weight: 800;
}

.pc-form-grid input,
.pc-form-grid select,
.pc-slide-card input,
.pc-slide-card textarea,
.pc-slide-card select {
    width: 100%;
    border: 1px solid #d6dfeb;
    border-radius: 8px;
    background: #fff;
    color: #172033;
    font: inherit;
    box-sizing: border-box;
    outline: none;
}

.pc-form-grid input,
.pc-form-grid select {
    height: 46px;
    padding: 0 12px;
}

.pc-actions,
.pc-preview-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.pc-actions {
    margin-top: 16px;
}

.pc-btn,
.pc-link-btn {
    border: 0;
    border-radius: 8px;
    cursor: pointer;
    font: inherit;
}

.pc-btn {
    height: 46px;
    padding: 0 18px;
    font-weight: 900;
}

.pc-btn-primary {
    background: #0f766e;
    color: #fff;
    box-shadow: 0 12px 28px rgba(15, 118, 110, 0.22);
}

.pc-btn-secondary {
    background: #eef3f8;
    color: #2f3a4f;
}

.pc-btn:disabled,
.pc-link-btn:disabled {
    cursor: not-allowed;
    opacity: 0.5;
}

.pc-link-btn {
    min-height: 36px;
    padding: 0 12px;
    background: #f3f6fa;
    border: 1px solid #dbe3ef;
}

.pc-status {
    color: #6d788b;
    font-size: 13px;
}

.pc-theme-strip {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 42px;
    margin-bottom: 16px;
    padding: 10px 12px;
    border: 1px solid #dbe3ef;
    border-radius: 8px;
    background: #f8fbfd;
    color: #5d6b82;
    font-size: 13px;
}

.pc-theme-strip span {
    color: #172033;
    font-weight: 900;
}

.pc-theme-strip i {
    width: 28px;
    height: 18px;
    border-radius: 5px;
    border: 1px solid rgba(23, 32, 51, 0.14);
}

.pc-theme-strip small {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}


.pc-empty[hidden],
.pc-slide-list[hidden],
.pc-theme-strip[hidden],
.pc-download[hidden] {
    display: none !important;
}

.pc-empty {
    min-height: 420px;
    display: grid;
    place-items: center;
    align-content: center;
    gap: 14px;
    color: #7a879a;
    border: 1px dashed #c9d5e4;
    border-radius: 8px;
    background: linear-gradient(135deg, #fbfcfe 0%, #f1f5f9 100%);
}

.pc-empty span {
    width: 68px;
    height: 48px;
    border-radius: 7px;
    border: 2px solid #c4d2e2;
    position: relative;
}

.pc-empty span::after {
    content: "";
    position: absolute;
    left: 10px;
    right: 10px;
    bottom: 10px;
    height: 8px;
    border-radius: 99px;
    background: #0f766e;
}

.pc-empty p {
    margin: 0;
    font-weight: 800;
}

.pc-slide-list {
    display: grid;
    gap: 14px;
}

.pc-slide-card {
    display: grid;
    grid-template-columns: 118px minmax(0, 1fr);
    gap: 14px;
    padding: 14px;
    border: 1px solid #dbe3ef;
    border-radius: 8px;
    background: #fff;
}

.pc-slide-thumb {
    aspect-ratio: 16 / 9;
    border-radius: 8px;
    background: linear-gradient(135deg, #0f766e 0%, #162033 68%, #f97316 100%);
    color: #fff;
    display: grid;
    align-content: space-between;
    padding: 10px;
    box-sizing: border-box;
}

.pc-slide-thumb strong {
    font-size: 22px;
    line-height: 1;
}

.pc-slide-thumb span {
    font-size: 12px;
    font-weight: 800;
    opacity: 0.88;
}

.pc-slide-fields {
    display: grid;
    grid-template-columns: 128px minmax(0, 1fr);
    gap: 10px;
}

.pc-slide-fields label {
    display: grid;
    gap: 6px;
    color: #68768b;
    font-size: 12px;
    font-weight: 900;
}

.pc-slide-fields label.pc-wide {
    grid-column: 1 / -1;
}

.pc-slide-card input,
.pc-slide-card select {
    height: 38px;
    padding: 0 10px;
}

.pc-slide-card textarea {
    min-height: 74px;
    padding: 10px;
    line-height: 1.55;
    resize: vertical;
}

.pc-slide-card .pc-note {
    min-height: 58px;
}

.pc-slide-tools {
    grid-column: 1 / -1;
    display: flex;
    justify-content: flex-end;
    gap: 8px;
}

.pc-danger-btn {
    border: 1px solid #fecaca;
    color: #dc2626;
    background: #fff7f7;
    border-radius: 8px;
    min-height: 34px;
    padding: 0 10px;
    cursor: pointer;
    font: inherit;
    font-weight: 800;
}

@media (max-width: 1080px) {
    .pc-workspace {
        grid-template-columns: 1fr;
    }

    .pc-source {
        min-height: 240px;
    }
}

@media (max-width: 760px) {
    .pc-topbar {
        height: auto;
        grid-template-columns: 1fr;
        justify-items: start;
        gap: 12px;
        padding: 16px 18px;
    }

    .pc-brand {
        order: -1;
    }

    .pc-nav {
        justify-self: start;
        flex-wrap: wrap;
    }

    .pc-main {
        width: min(100% - 28px, 640px);
        padding-top: 20px;
    }

    .pc-hero {
        align-items: flex-start;
        flex-direction: column;
    }

    .pc-flow {
        grid-template-columns: repeat(2, auto);
    }

    .pc-form-grid,
    .pc-slide-fields {
        grid-template-columns: 1fr;
    }

    .pc-slide-card {
        grid-template-columns: 1fr;
    }

    .pc-slide-thumb {
        width: min(240px, 100%);
    }
}


.pc-export-btn {
    min-width: 168px;
}

.pc-download {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 14px;
    padding: 12px 14px;
    border: 1px solid #bbf7d0;
    border-radius: 8px;
    background: #f0fdf4;
    color: #166534;
}

.pc-download a {
    color: #0f766e;
    font-weight: 900;
    text-decoration: none;
}

.pc-history-panel {
    margin-top: 20px;
    padding: 22px;
}

.pc-history-list {
    display: grid;
    gap: 10px;
}

.pc-history-item {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    border: 1px solid #dbe3ef;
    border-radius: 8px;
    background: #fbfcfe;
}

.pc-history-title {
    margin: 0 0 5px;
    color: #172033;
    font-weight: 900;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.pc-history-meta,
.pc-history-empty {
    color: #718097;
    font-size: 13px;
}

.pc-history-item a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 34px;
    padding: 0 12px;
    border-radius: 8px;
    background: #0f766e;
    color: #fff;
    font-weight: 900;
    text-decoration: none;
}

@media (max-width: 760px) {
    .pc-history-item {
        grid-template-columns: 1fr;
    }

    .pc-preview-actions {
        justify-content: flex-start;
    }
}
