:root {
    --bg: #f7fbff;
    --surface: #ffffff;
    --surface-soft: #eef8ff;
    --text: #101828;
    --muted: #667085;
    --line: #d9e7f2;
    --brand: #0ea5e9;
    --brand-strong: #2563eb;
    --ink: #5b2be0;
    --green: #12b981;
    --radius: 8px;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    color: var(--text);
    background: linear-gradient(180deg, #effbff 0%, #ffffff 360px, #f8fbff 100%);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
    font-size: 15px;
    line-height: 1.65;
    overflow-x: hidden;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    max-width: 100%;
    display: block;
}

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    background: rgba(255, 255, 255, 0.88);
    border-bottom: 1px solid rgba(217, 231, 242, 0.82);
    backdrop-filter: blur(16px);
}

.header-inner,
.page-wrap {
    width: min(1180px, calc(100% - 40px));
    margin: 0 auto;
}

.header-inner {
    height: 72px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.header-left {
    display: flex;
    align-items: center;
    min-width: 0;
    gap: 34px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-weight: 800;
    font-size: 20px;
}

.brand-logo {
    width: 42px;
    height: 42px;
    border-radius: 8px;
}

.site-nav {
    display: flex;
    align-items: center;
    gap: 10px;
}

.site-nav a,
.search-pill {
    border: 1px solid transparent;
    border-radius: 999px;
    padding: 8px 14px;
    color: #344054;
    font-weight: 600;
}

.site-nav a:hover,
.site-nav a.active,
.search-pill {
    border-color: var(--line);
    background: #ffffff;
}

.site-nav a.active {
    color: var(--brand-strong);
}

.header-auth {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    flex-shrink: 0;
}

.login-btn,
.login-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    font-weight: 800;
}

.login-btn {
    min-height: 38px;
    padding: 8px 16px;
    color: #ffffff;
    background: linear-gradient(135deg, var(--brand), var(--brand-strong));
    box-shadow: 0 8px 22px rgba(37, 99, 235, 0.16);
}

.login-link {
    padding: 7px 12px;
    border: 1px solid var(--line);
    color: #475467;
    background: #ffffff;
}

.user-name {
    max-width: 140px;
    overflow: hidden;
    color: #344054;
    font-size: 14px;
    font-weight: 800;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.account-menu {
    position: relative;
    padding: 10px 0;
}

.account-menu-trigger {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 5px 7px;
    border: 0;
    border-radius: 999px;
    color: #344054;
    background: transparent;
    cursor: pointer;
    font: inherit;
}

.account-menu-trigger:hover,
.account-menu:focus-within .account-menu-trigger,
.account-menu.open .account-menu-trigger {
    background: #f1f7fc;
}

.account-menu-trigger > img,
.account-menu-trigger > span {
    width: 30px;
    height: 30px;
    display: grid;
    flex: 0 0 30px;
    place-items: center;
    overflow: hidden;
    border-radius: 50%;
    color: #ffffff;
    background: linear-gradient(135deg, var(--brand), var(--ink));
    object-fit: cover;
    font-size: 13px;
    font-weight: 900;
}

.account-menu-trigger i {
    width: 7px;
    height: 7px;
    border-right: 1.5px solid #667085;
    border-bottom: 1.5px solid #667085;
    transform: translateY(-2px) rotate(45deg);
    transition: transform 0.18s ease;
}

.account-menu:hover .account-menu-trigger i,
.account-menu:focus-within .account-menu-trigger i,
.account-menu.open .account-menu-trigger i {
    transform: translateY(2px) rotate(225deg);
}

.account-dropdown {
    position: absolute;
    top: calc(100% - 2px);
    right: 0;
    z-index: 30;
    min-width: 150px;
    padding: 7px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 18px 42px rgba(16, 24, 40, 0.14);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-5px);
    transition: opacity 0.16s ease, transform 0.16s ease, visibility 0.16s ease;
}

.account-dropdown::before {
    position: absolute;
    right: 0;
    bottom: 100%;
    width: 100%;
    height: 12px;
    content: "";
}

.account-menu:hover .account-dropdown,
.account-menu:focus-within .account-dropdown,
.account-menu.open .account-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.account-dropdown a {
    display: flex;
    align-items: center;
    min-height: 38px;
    padding: 7px 11px;
    border-radius: 6px;
    color: #344054;
    font-size: 14px;
    font-weight: 800;
}

.account-dropdown a:hover,
.account-dropdown a:focus {
    color: var(--brand-strong);
    background: #eff7ff;
}

.account-dropdown a:last-child {
    color: #b42318;
}

.page-wrap {
    padding: 42px 0 64px;
}

.page-wrap-tight {
    padding-top: 26px;
}

.account-page {
    max-width: 1080px;
}

.account-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 30px;
    margin-bottom: 24px;
}

.account-heading h1 {
    margin: 0;
    font-size: 40px;
    line-height: 1.15;
}

.account-heading p {
    margin: 10px 0 0;
    color: #667085;
}

.account-identity {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 230px;
    padding: 12px 14px;
    border-bottom: 1px solid var(--line);
}

.account-identity > img,
.account-identity > span {
    width: 46px;
    height: 46px;
    display: grid;
    flex: 0 0 46px;
    place-items: center;
    overflow: hidden;
    border-radius: 50%;
    color: #ffffff;
    background: linear-gradient(135deg, var(--brand), var(--ink));
    object-fit: cover;
    font-size: 18px;
    font-weight: 900;
}

.account-identity strong,
.account-identity em {
    display: block;
}

.account-identity strong {
    font-size: 16px;
}

.account-identity em {
    color: #667085;
    font-size: 12px;
    font-style: normal;
}

.account-overview {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(340px, 0.8fr);
    gap: 18px;
    margin-bottom: 18px;
}

.account-section {
    padding: 22px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.92);
}

.account-section-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 18px;
}

.account-section-head span {
    color: var(--brand-strong);
    font-size: 12px;
    font-weight: 900;
}

.account-section-head h2 {
    margin: 2px 0 0;
    font-size: 23px;
}

.account-section-head > strong {
    color: #667085;
    font-size: 14px;
}

.account-details {
    margin: 0;
}

.account-details > div {
    display: grid;
    grid-template-columns: 110px minmax(0, 1fr);
    gap: 18px;
    padding: 13px 0;
    border-top: 1px solid #edf2f7;
}

.account-details > div:first-child {
    border-top: 0;
}

.account-details dt {
    color: #667085;
}

.account-details dd {
    margin: 0;
    color: #1d2939;
    font-weight: 800;
}

.account-details dd em {
    margin-left: 8px;
    color: #667085;
    font-size: 12px;
    font-style: normal;
    font-weight: 600;
}

.binding-status {
    display: inline-flex;
    border-radius: 999px;
    padding: 2px 8px;
    color: #667085;
    background: #f2f4f7;
    font-size: 12px;
}

.binding-status.bound {
    color: #047857;
    background: #ecfdf3;
}

.password-form {
    display: grid;
    gap: 13px;
}

.password-form label span {
    display: block;
    margin-bottom: 5px;
    color: #475467;
    font-size: 13px;
    font-weight: 800;
}

.password-form input {
    width: 100%;
    height: 44px;
    padding: 0 12px;
    border: 1px solid #cfdfea;
    border-radius: 7px;
    outline: none;
    color: #101828;
    background: #ffffff;
    font: inherit;
}

.password-form input:focus {
    border-color: var(--brand);
    box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.1);
}

.password-form .btn {
    width: 100%;
    margin-top: 2px;
}

.account-form-message {
    padding: 9px 11px;
    border-radius: 7px;
    color: #b42318;
    background: #fff1f0;
    font-size: 13px;
}

.account-form-message.success {
    color: #047857;
    background: #ecfdf3;
}

.account-form-message[hidden] {
    display: none;
}

.account-orders {
    padding-bottom: 8px;
}

.order-history article {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 180px auto;
    align-items: center;
    gap: 24px;
    padding: 17px 0;
    border-top: 1px solid #e9f0f6;
}

.order-history-main > span {
    color: #047857;
    font-size: 12px;
    font-weight: 900;
}

.order-history-main h3 {
    margin: 2px 0;
    font-size: 17px;
}

.order-history-main p {
    margin: 0;
    color: #667085;
    font-size: 12px;
}

.order-history-meta {
    text-align: right;
}

.order-history-meta strong,
.order-history-meta span,
.order-history-meta em {
    display: block;
}

.order-history-meta strong {
    color: var(--brand-strong);
    font-size: 20px;
}

.order-history-meta span,
.order-history-meta em {
    color: #667085;
    font-size: 12px;
    font-style: normal;
}

.account-empty {
    padding: 38px 0 48px;
    border-top: 1px solid #e9f0f6;
    text-align: center;
}

.account-empty strong {
    font-size: 18px;
}

.account-empty p {
    margin: 4px 0 15px;
    color: #667085;
}

@media (max-width: 760px) {
    .account-menu-trigger .user-name {
        max-width: 88px;
    }

    .account-heading {
        display: block;
    }

    .account-heading h1 {
        font-size: 32px;
    }

    .account-identity {
        margin-top: 20px;
        padding-left: 0;
    }

    .account-overview {
        grid-template-columns: 1fr;
    }

    .account-section {
        padding: 18px;
    }

    .order-history article {
        grid-template-columns: 1fr auto;
        gap: 12px;
    }

    .order-history-meta {
        text-align: right;
    }

    .order-history article > .btn {
        grid-column: 1 / -1;
    }
}

.hero {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
    align-items: center;
    gap: 44px;
    margin-bottom: 30px;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 14px;
    color: var(--brand-strong);
    font-weight: 800;
}

.eyebrow::before {
    content: "";
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: var(--green);
    box-shadow: 0 0 0 5px rgba(18, 185, 129, 0.12);
}

.hero h1 {
    margin: 0;
    font-size: 48px;
    line-height: 1.12;
    letter-spacing: 0;
}

.hero-text {
    margin: 18px 0 0;
    max-width: 650px;
    color: #475467;
    font-size: 17px;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 26px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    padding: 11px 17px;
    border: 1px solid var(--line);
    background: #ffffff;
    color: #1d2939;
    font-weight: 800;
}

.btn-primary {
    border-color: transparent;
    color: #ffffff;
    background: linear-gradient(135deg, var(--brand), var(--brand-strong));
}

.stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin-top: 28px;
    max-width: 640px;
}

.stat {
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.72);
}

.stat strong {
    display: block;
    font-size: 22px;
    line-height: 1.2;
}

.stat span {
    color: var(--muted);
    font-size: 13px;
}

.hero-preview,
.project-card,
.source-panel,
.prompt-row,
.image-tile {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface);
}

.hero-preview {
    padding: 16px;
}

.mock-product {
    position: relative;
    min-height: 280px;
    overflow: hidden;
    border-radius: var(--radius);
    background: linear-gradient(135deg, #ddf7ff, #f2f7ff 52%, #e9e2ff);
}

.mock-product::before,
.mock-product::after {
    position: absolute;
    content: "";
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.9);
}

.mock-product::before {
    width: 46%;
    height: 70%;
    left: 24px;
    top: 32px;
}

.mock-product::after {
    width: 38%;
    height: 52%;
    right: 24px;
    bottom: 24px;
}

.mock-lines {
    position: absolute;
    left: 54px;
    top: 70px;
    width: 28%;
}

.mock-lines i {
    display: block;
    height: 10px;
    margin-bottom: 12px;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--brand), rgba(14, 165, 233, 0.18));
}

.mock-badge {
    position: absolute;
    right: 44px;
    top: 42px;
    border-radius: 999px;
    padding: 8px 12px;
    color: #ffffff;
    font-size: 13px;
    font-weight: 800;
    background: linear-gradient(135deg, var(--ink), var(--brand-strong));
}

.mock-caption {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin-top: 14px;
    color: #475467;
    font-size: 13px;
}

.product-shot {
    width: 100%;
    min-height: 170px;
    max-height: var(--shot-max-height, none);
    aspect-ratio: var(--shot-ratio, 16 / 10);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    margin: 0;
    padding: 10px;
    border: 1px solid #d7e7f5;
    border-radius: var(--radius);
    background: #f8fbff;
}

.product-shot > img,
.product-shot > .mock-product {
    width: 100%;
    height: 100%;
    min-height: 0;
    object-fit: contain;
    border-radius: 8px;
}

.section-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
    margin: 34px 0 18px;
}

.section-head h2 {
    margin: 0;
    font-size: 26px;
    line-height: 1.2;
}

.section-head p {
    margin: 6px 0 0;
    color: var(--muted);
}

.waterfall {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.project-card {
    display: block;
    width: 100%;
    margin: 0;
    overflow: hidden;
}

.project-card.current {
    grid-column: span 2;
    border-color: rgba(14, 165, 233, 0.46);
    background: linear-gradient(180deg, #ffffff 0%, #f2fbff 100%);
}

.card-visual {
    padding: 12px 12px 0;
}

.card-shot {
    --shot-max-height: 260px;
    min-height: 210px;
}

.project-card.current .card-shot {
    --shot-max-height: 340px;
    min-height: 300px;
}

.project-body {
    padding: 18px;
}

.project-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 12px;
}

.tag {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 5px 9px;
    background: #eef8ff;
    color: #0369a1;
    font-size: 12px;
    font-weight: 700;
}

.status {
    background: #ecfdf3;
    color: #047857;
}

.project-card h3 {
    margin: 0 0 8px;
    font-size: 21px;
    line-height: 1.25;
}

.project-card p {
    margin: 0;
    color: #5b6678;
}

.latest-prompt {
    margin-top: 14px;
    padding: 12px;
    border-radius: var(--radius);
    background: #f8fbff;
    border: 1px solid #e6eff8;
}

.latest-prompt strong {
    display: block;
    margin-bottom: 4px;
}

.latest-prompt span {
    color: var(--muted);
    font-size: 13px;
}

.latest-prompt em {
    display: inline-flex;
    margin-top: 8px;
    color: var(--brand-strong);
    font-size: 12px;
    font-style: normal;
    font-weight: 800;
}

.card-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 16px;
}

.counts {
    color: var(--muted);
    font-size: 13px;
    min-width: 0;
}

.detail-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 24px;
}

.project-title {
    margin: 0;
    font-size: 42px;
    line-height: 1.16;
}

.detail-summary {
    max-width: 760px;
    color: #475467;
    font-size: 17px;
}

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

.image-tile {
    padding: 10px;
}

.image-tile .detail-shot {
    --shot-max-height: 260px;
    min-height: 170px;
}

.image-tile h3 {
    margin: 10px 2px 0;
    font-size: 15px;
}

.prompt-list {
    position: relative;
    display: grid;
    gap: 18px;
    padding-left: 38px;
    counter-reset: prompt-timeline;
}

.prompt-list::before {
    position: absolute;
    top: 6px;
    bottom: 10px;
    left: 15px;
    width: 2px;
    border-radius: 999px;
    background:
        linear-gradient(180deg, rgba(37, 99, 235, 0), rgba(14, 165, 233, 0.96) 12%, rgba(91, 43, 224, 0.86) 58%, rgba(18, 185, 129, 0.12));
    box-shadow: 0 0 24px rgba(37, 99, 235, 0.34);
    content: "";
}

.prompt-item {
    position: relative;
    overflow: visible;
    border: 1px solid rgba(14, 165, 233, 0.24);
    border-radius: var(--radius);
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(247, 251, 255, 0.94)),
        radial-gradient(circle at 0 0, rgba(14, 165, 233, 0.2), transparent 36%);
    box-shadow: 0 14px 34px rgba(29, 78, 216, 0.08);
    counter-increment: prompt-timeline;
    transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}

.prompt-item::before {
    position: absolute;
    top: 18px;
    left: -38px;
    z-index: 1;
    width: 30px;
    height: 30px;
    display: grid;
    place-items: center;
    border: 2px solid #ffffff;
    border-radius: 50%;
    color: #ffffff;
    background: linear-gradient(135deg, var(--brand), var(--ink));
    box-shadow: 0 0 0 7px rgba(14, 165, 233, 0.12), 0 0 28px rgba(37, 99, 235, 0.34);
    content: counter(prompt-timeline);
    font-size: 12px;
    font-weight: 900;
}

.prompt-item::after {
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: linear-gradient(100deg, rgba(14, 165, 233, 0.12), transparent 24%, rgba(91, 43, 224, 0.08));
    content: "";
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.22s ease;
}

.prompt-item:hover {
    transform: translateY(-3px);
    border-color: rgba(37, 99, 235, 0.44);
    box-shadow: 0 20px 48px rgba(29, 78, 216, 0.14);
}

.prompt-item:hover::after {
    opacity: 1;
}

.prompt-row {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 16px;
    align-items: start;
    padding: 18px;
    border: 0;
    border-radius: 0;
    background: transparent;
}

.prompt-time {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    margin-bottom: 8px;
    border-radius: 999px;
    padding: 4px 10px;
    color: var(--brand-strong);
    background: rgba(37, 99, 235, 0.08);
    font-size: 13px;
    font-weight: 900;
}

.prompt-row h3 {
    margin: 0 0 6px;
    font-size: 18px;
}

.prompt-actions {
    display: grid;
    gap: 8px;
    min-width: 96px;
}

.prompt-vault {
    position: relative;
    overflow: hidden;
    margin-top: 10px;
    padding: 13px 16px 14px 18px;
    border: 1px solid rgba(37, 99, 235, 0.26);
    border-radius: 8px;
    background:
        linear-gradient(135deg, rgba(238, 246, 255, 0.98), rgba(255, 255, 255, 0.96) 48%, rgba(239, 248, 255, 0.98)),
        radial-gradient(circle at 100% 8%, rgba(37, 99, 235, 0.22), transparent 34%);
    box-shadow:
        inset 4px 0 0 rgba(37, 99, 235, 0.92),
        inset 0 0 0 1px rgba(255, 255, 255, 0.78),
        0 8px 20px rgba(29, 78, 216, 0.07);
}

.prompt-vault p {
    position: relative;
    z-index: 1;
    margin: 0;
    color: #0f2f66;
    background: linear-gradient(90deg, #071936 0%, #1d4ed8 28%, #0891b2 52%, #5b2be0 74%, #071936 100%);
    background-size: 260% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    font-size: 14px;
    font-weight: 650;
    line-height: 1.75;
    white-space: pre-wrap;
    animation: promptTextFlow 6s ease-in-out infinite;
}

@supports (-webkit-background-clip: text) {
    .prompt-vault p {
        -webkit-text-fill-color: transparent;
    }
}

@keyframes promptTextFlow {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

.copy-btn,
.preview-btn {
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #ffffff;
    padding: 8px 10px;
    color: #1d2939;
    cursor: pointer;
    font-weight: 800;
}

.preview-btn {
    color: #ffffff;
    border-color: transparent;
    background: linear-gradient(135deg, var(--brand), var(--brand-strong));
}

.prompt-screenshots {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    padding: 0 18px 18px;
}

.prompt-screenshots .image-tile {
    margin: 0;
}

.prompt-screenshots .detail-shot {
    min-height: 150px;
}

.prompt-unlock-panel {
    margin: 18px 0 0 38px;
    padding: 18px;
    border: 1px solid rgba(37, 99, 235, 0.22);
    border-radius: var(--radius);
    background:
        radial-gradient(circle at 100% 0, rgba(91, 43, 224, 0.12), transparent 34%),
        linear-gradient(135deg, rgba(239, 248, 255, 0.96), rgba(255, 255, 255, 0.92));
    box-shadow: 0 16px 36px rgba(29, 78, 216, 0.08);
}

.prompt-unlock-panel strong {
    display: block;
    color: #101828;
    font-size: 18px;
    line-height: 1.35;
}

.prompt-unlock-panel p {
    margin: 7px 0 14px;
    color: #5b6678;
}

.article-list-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 22px;
    margin-bottom: 18px;
}

.article-list-head h1 {
    margin: 0;
    font-size: 34px;
    line-height: 1.2;
}

.article-list-head p {
    margin: 8px 0 0;
    color: #475467;
}

.article-categories {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 8px;
}

.article-categories span,
.article-category,
.article-tags span {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 5px 10px;
    color: #0369a1;
    background: #eef8ff;
    font-size: 12px;
    font-weight: 800;
}

.article-feed {
    display: grid;
    gap: 16px;
    width: 100%;
}

.article-card {
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.92);
}

.article-link {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(260px, 360px);
    gap: 24px;
    padding: 18px;
}

.article-main {
    min-width: 0;
}

.article-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    color: var(--muted);
    font-size: 13px;
}

.article-like-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    min-height: 28px;
    border: 1px solid rgba(14, 165, 233, 0.22);
    border-radius: 999px;
    padding: 4px 10px;
    color: #2563eb;
    background: linear-gradient(135deg, #f8fbff, #eef8ff);
    cursor: pointer;
    font: inherit;
    font-size: 13px;
    font-weight: 800;
    transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.article-like-btn:hover {
    transform: translateY(-1px);
    border-color: rgba(37, 99, 235, 0.36);
    box-shadow: 0 10px 24px rgba(37, 99, 235, 0.12);
}

.article-like-btn:disabled {
    cursor: default;
    transform: none;
}

.article-like-btn strong,
.article-like-btn em {
    font-style: normal;
    line-height: 1;
}

.article-like-btn.liked {
    border-color: rgba(239, 68, 68, 0.18);
    color: #e11d48;
    background: linear-gradient(135deg, #fff1f2, #ffffff);
}

.article-like-btn.loading {
    opacity: 0.72;
}

.article-card h2 {
    margin: 10px 0 8px;
    color: #101828;
    font-size: 22px;
    line-height: 1.35;
}

.article-card p {
    margin: 0;
    color: #475467;
}

.article-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 14px;
    color: #667085;
    font-size: 13px;
}

.pagination {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    margin: 28px 0 6px;
}

.page-link {
    min-width: 38px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #ffffff;
    color: #344054;
    font-size: 14px;
    font-weight: 800;
}

.page-link.active {
    border-color: transparent;
    color: #ffffff;
    background: linear-gradient(135deg, var(--brand), var(--brand-strong));
}

.page-link.disabled {
    color: #98a2b3;
    background: #f8fafc;
    cursor: not-allowed;
}

.article-cover,
.article-hero-cover,
.article-inline-image {
    position: relative;
    width: 100%;
    min-height: 160px;
    aspect-ratio: var(--cover-ratio, 16 / 9);
    overflow: hidden;
    margin: 0;
    border: 1px solid #d7e7f5;
    border-radius: var(--radius);
    background: linear-gradient(135deg, #e4f8ff, #f3f7ff 55%, #ebe4ff);
}

.article-cover::before,
.article-cover::after,
.article-hero-cover::before,
.article-hero-cover::after,
.article-inline-image::before,
.article-inline-image::after {
    position: absolute;
    content: "";
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.9);
}

.article-cover::before,
.article-hero-cover::before,
.article-inline-image::before {
    width: 46%;
    height: 58%;
    left: 26px;
    top: 28px;
}

.article-cover::after,
.article-hero-cover::after,
.article-inline-image::after {
    width: 34%;
    height: 42%;
    right: 24px;
    bottom: 24px;
}

.theme-code {
    background: linear-gradient(135deg, #e0f2fe, #eef6ff 45%, #e9e2ff);
}

.theme-structure {
    background: linear-gradient(135deg, #dcfce7, #eef8ff 52%, #e0e7ff);
}

.theme-flow {
    background: linear-gradient(135deg, #dff7ff, #f1f5ff 45%, #ede9fe);
}

.theme-seo {
    background: linear-gradient(135deg, #e0f2fe, #f7fbff 50%, #dcfce7);
}

.article-cover-lines {
    position: absolute;
    z-index: 1;
    left: 46px;
    top: 58px;
    width: 30%;
}

.article-cover-lines i {
    display: block;
    height: 9px;
    margin-bottom: 10px;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--brand), rgba(14, 165, 233, 0.2));
}

.article-detail {
    max-width: 760px;
    margin: 0 auto;
    padding: 8px 0 34px;
}

.article-detail-head {
    padding-bottom: 22px;
    border-bottom: 1px solid var(--line);
}

.article-detail-head h1 {
    margin: 16px 0 12px;
    color: #121212;
    font-size: 36px;
    line-height: 1.25;
    font-weight: 900;
}

.article-detail-head > p {
    margin: 0;
    color: #444;
    font-size: 16px;
    line-height: 1.8;
}

.article-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 18px 0;
}

.article-hero-cover {
    min-height: 250px;
    margin-top: 20px;
}

.article-content {
    padding-top: 30px;
    color: #121212;
    font-size: 17px;
    line-height: 1.95;
    letter-spacing: 0;
}

.article-content p {
    margin: 0 0 1.15em;
}

.article-content h2 {
    margin: 2.1em 0 0.85em;
    color: #121212;
    font-size: 25px;
    line-height: 1.35;
    font-weight: 900;
}

.article-content h3,
.article-content h4 {
    margin: 1.8em 0 0.75em;
    color: #1f2937;
    line-height: 1.38;
    font-weight: 900;
}

.article-content h3 {
    font-size: 21px;
}

.article-content h4 {
    font-size: 18px;
}

.article-content ul,
.article-content ol {
    margin: 0 0 1.2em;
    padding-left: 1.4em;
}

.article-content li {
    margin: 0.35em 0;
}

.article-content a {
    color: var(--brand-strong);
    font-weight: 800;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.article-content p code,
.article-content li code {
    border-radius: 6px;
    padding: 2px 6px;
    color: #0f172a;
    background: #eef6ff;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-size: 0.92em;
}

.article-content blockquote {
    margin: 1.4em 0;
    padding: 2px 0 2px 18px;
    border-left: 4px solid #d0d7de;
    border-radius: 0;
    background: transparent;
    color: #646464;
    font-size: 16px;
}

.article-rich-html > :first-child {
    margin-top: 0;
}

.article-rich-html > :last-child {
    margin-bottom: 0;
}

.article-rich-html figure {
    margin: 30px 0;
}

.article-rich-html img {
    max-width: 100%;
    max-height: 520px;
    margin: 14px auto;
    object-fit: contain;
    border-radius: 8px;
    background: #f8fbff;
}

.article-rich-html figure img {
    width: 100%;
    max-height: 520px;
    margin: 0;
    object-fit: contain;
    border-radius: 8px;
    background: #f8fbff;
}

.article-rich-html figcaption {
    margin-top: 8px;
    color: var(--muted);
    font-size: 13px;
    text-align: center;
}

.article-rich-html pre {
    overflow: auto;
    margin: 1.55em 0;
    padding: 16px;
    border: 1px solid #1f2937;
    border-radius: 8px;
    color: #e5e7eb;
    background: #0b1220;
    box-shadow: 0 18px 36px rgba(15, 23, 42, 0.16);
}

.article-rich-html pre code {
    color: inherit;
    background: transparent;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
    font-size: 14px;
    line-height: 1.7;
    white-space: pre;
}

.article-rich-html .keyword-highlight {
    border-radius: 7px;
    padding: 1px 6px;
    color: #0369a1;
    background: #e0f2fe;
    font-weight: 900;
}

.article-resource-card {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 154px;
    gap: 18px;
    align-items: center;
    margin: 34px 0;
    padding: 20px;
    border: 1px solid rgba(14, 165, 233, 0.22);
    border-radius: 8px;
    background:
        radial-gradient(circle at 100% 0, rgba(91, 43, 224, 0.12), transparent 30%),
        linear-gradient(135deg, #f8fbff, #ffffff);
    box-shadow: 0 18px 42px rgba(29, 78, 216, 0.08);
}

.article-resource-copy span,
.article-resource-action span {
    display: inline-flex;
    margin-bottom: 6px;
    border-radius: 999px;
    padding: 4px 9px;
    color: var(--brand-strong);
    background: rgba(37, 99, 235, 0.09);
    font-size: 12px;
    font-weight: 900;
}

.article-resource-copy h2 {
    margin: 0 0 8px;
    font-size: 23px;
}

.article-resource-copy p {
    margin: 0;
    color: #475467;
    font-size: 15px;
    line-height: 1.75;
}

.article-resource-qr {
    justify-self: center;
    padding: 10px;
    border: 1px solid #dbeafe;
    border-radius: 8px;
    background: #ffffff;
}

.article-resource-qr img {
    width: 132px;
    height: 132px;
    object-fit: cover;
    border-radius: 6px;
}

.article-resource-action {
    grid-column: 1 / -1;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    padding-top: 12px;
    border-top: 1px solid #e6eff8;
}

.article-resource-action span {
    margin-bottom: 0;
}

.article-resource-action button {
    min-width: 96px;
    border: 1px solid rgba(14, 165, 233, 0.28);
    border-radius: 10px;
    padding: 10px 18px;
    color: #0284c7;
    background: linear-gradient(135deg, #ecfeff, #eff6ff);
    box-shadow: 0 12px 28px rgba(14, 165, 233, 0.14);
    cursor: pointer;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-size: 15px;
    font-weight: 900;
    letter-spacing: 0.04em;
}

.article-figure {
    margin: 30px 0;
}

.article-inline-image {
    min-height: 230px;
    border-radius: 8px;
}

.article-inline-image.has-image {
    background: #f8fbff;
}

.article-figure .article-inline-image.theme-wechat {
    width: min(320px, 100%);
    min-height: 0;
    margin: 0 auto;
    padding: 14px;
    border-color: #dbeafe;
    border-radius: 14px;
    background: #ffffff;
    box-shadow: 0 18px 45px rgba(15, 23, 42, 0.08);
}

.article-figure .article-inline-image.theme-wechat img {
    border-radius: 10px;
}

.article-cover.has-image,
.article-hero-cover.has-image {
    background: #f8fbff;
}

.article-cover.has-image::before,
.article-cover.has-image::after,
.article-cover.has-image .article-cover-lines,
.article-hero-cover.has-image::before,
.article-hero-cover.has-image::after,
.article-hero-cover.has-image .article-cover-lines,
.article-inline-image.has-image::before,
.article-inline-image.has-image::after,
.article-inline-image.has-image .article-cover-lines {
    display: none;
}

.article-cover.has-image img,
.article-hero-cover.has-image img,
.article-inline-image.has-image img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: contain;
    background: #ffffff;
}

.article-cover:has(img)::before,
.article-cover:has(img)::after,
.article-cover:has(img) .article-cover-lines,
.article-hero-cover:has(img)::before,
.article-hero-cover:has(img)::after,
.article-hero-cover:has(img) .article-cover-lines,
.article-inline-image:has(img)::before,
.article-inline-image:has(img)::after,
.article-inline-image:has(img) .article-cover-lines {
    display: none;
}

.article-figure figcaption {
    margin-top: 8px;
    color: var(--muted);
    font-size: 13px;
    text-align: center;
}

.article-resource-keyword {
    display: grid;
    justify-items: center;
    gap: 12px;
    margin-top: 18px;
    text-align: center;
}

.article-resource-keyword p {
    margin: 0;
    color: #334155;
    font-size: 15px;
}

.article-resource-keyword button {
    min-width: 96px;
    border: 1px solid rgba(14, 165, 233, 0.28);
    border-radius: 10px;
    padding: 10px 18px;
    color: #0284c7;
    background: linear-gradient(135deg, #ecfeff, #eff6ff);
    box-shadow: 0 12px 28px rgba(14, 165, 233, 0.14);
    cursor: pointer;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-size: 15px;
    font-weight: 900;
    letter-spacing: 0.04em;
}

.code-block {
    overflow: hidden;
    margin: 1.55em 0;
    border-radius: 8px;
    border: 1px solid #1f2937;
    background: #0b1220;
    box-shadow: 0 18px 36px rgba(15, 23, 42, 0.16);
}

.code-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 12px;
    border-bottom: 1px solid #1f2937;
    color: #cbd5e1;
    background: #111827;
    font-size: 12px;
    font-weight: 800;
}

.code-head button {
    border: 1px solid #334155;
    border-radius: 8px;
    background: #0f172a;
    color: #f8fafc;
    cursor: pointer;
    padding: 6px 10px;
    font-weight: 800;
}

.code-head button:hover {
    border-color: #38bdf8;
    color: #7dd3fc;
}

.code-block pre {
    margin: 0;
    overflow: auto;
    padding: 15px 16px;
    background: #0b1220;
}

.code-block code {
    color: #e5e7eb;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
    font-size: 14px;
    line-height: 1.7;
    white-space: pre;
}

.code-block .hl-comment {
    color: #7dd3fc;
    opacity: 0.72;
    font-style: italic;
}

.code-block .hl-string {
    color: #86efac;
}

.code-block .hl-key,
.code-block .hl-variable {
    color: #f9a8d4;
}

.code-block .hl-keyword {
    color: #93c5fd;
    font-weight: 800;
}

.code-block .hl-function {
    color: #c4b5fd;
}

.code-block .hl-type,
.code-block .hl-tag {
    color: #67e8f9;
}

.code-block .hl-number {
    color: #fcd34d;
}

.code-block .hl-literal {
    color: #fca5a5;
}

.code-block .hl-operator {
    color: #cbd5e1;
}

.auth-page {
    flex: 1;
    width: 100%;
    min-height: 650px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 46px 24px 34px;
}

.auth-screen {
    min-height: 100vh;
    background: #e6f6ff;
}

.auth-screen .site-shell {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background-image:
        radial-gradient(circle at 50% 46%, rgba(255, 255, 255, 0.36), rgba(229, 246, 255, 0.12) 34%, rgba(229, 246, 255, 0.03) 64%),
        url("/static/images/auth/login-ai-workspace.webp");
    background-position: center center;
    background-repeat: no-repeat;
    background-size: cover;
}

.auth-stage {
    width: min(460px, 100%);
}

.auth-page-brand {
    width: max-content;
    max-width: 100%;
    margin: 0 auto 22px;
    display: grid;
    grid-template-columns: 54px auto;
    grid-template-rows: auto auto;
    column-gap: 13px;
    align-items: center;
    color: #0f2745;
    text-align: left;
    text-shadow: 0 1px 0 rgba(255, 255, 255, 0.7);
}

.auth-page-brand img {
    width: 54px;
    height: 54px;
    grid-row: 1 / 3;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(29, 78, 216, 0.14);
}

.auth-page-brand strong {
    align-self: end;
    font-size: 27px;
    line-height: 1.15;
    letter-spacing: 0;
}

.auth-page-brand span {
    align-self: start;
    color: #49647f;
    font-size: 13px;
}

.login-panel {
    width: 100%;
    min-height: 0;
    display: block;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.86);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 26px 70px rgba(20, 75, 130, 0.18);
    backdrop-filter: blur(18px);
}

.login-form-panel {
    padding: 34px 40px 30px;
}

.login-tabs {
    display: flex;
    gap: 28px;
    border-bottom: 1px solid #e3eaf1;
}

.login-tabs button {
    position: relative;
    min-height: 44px;
    padding: 0 1px;
    border: 0;
    color: #66758a;
    background: transparent;
    cursor: pointer;
    font-size: 15px;
    font-weight: 700;
}

.login-tabs button.active {
    color: #175cd3;
}

.login-tabs button.active::after {
    position: absolute;
    right: 0;
    bottom: -1px;
    left: 0;
    height: 3px;
    background: #2563eb;
    content: "";
}

.login-method {
    margin-top: 14px;
}

.login-method.active {
    display: block;
}

.login-method[hidden] {
    display: none;
}

.login-field {
    min-height: 52px;
    display: flex;
    align-items: center;
    border-bottom: 1px solid #dfe7ef;
}

.login-field input {
    min-width: 0;
    flex: 1;
    padding: 14px 2px;
    border: 0;
    outline: 0;
    color: #182230;
    background: transparent;
    font: inherit;
}

.login-field input::placeholder {
    color: #98a3b3;
}

.country-code {
    flex: 0 0 auto;
    margin-right: 16px;
    padding-right: 16px;
    border-right: 1px solid #dfe7ef;
    color: #53657a;
    font-size: 14px;
}

.code-field button,
.password-field button {
    flex: 0 0 auto;
    padding: 8px 0 8px 14px;
    border: 0;
    color: #175cd3;
    background: transparent;
    cursor: pointer;
    font-size: 13px;
    font-weight: 700;
}

.code-field button:disabled,
.password-field button:disabled {
    cursor: not-allowed;
    color: #98a2b3;
}

.auth-form-message {
    margin-top: 12px;
    padding: 9px 11px;
    border: 1px solid #fecaca;
    border-radius: 6px;
    color: #b42318;
    background: #fff1f1;
    font-size: 12px;
    line-height: 1.55;
}

.auth-form-message.success {
    border-color: #bbf7d0;
    color: #067647;
    background: #f0fdf4;
}

.auth-form-message[hidden] {
    display: none;
}

.phone-login-btn {
    width: 100%;
    min-height: 46px;
    margin-top: 18px;
    border: 0;
    border-radius: 6px;
    color: #ffffff;
    background: #2563eb;
    cursor: pointer;
    font-size: 15px;
    font-weight: 800;
    box-shadow: 0 8px 18px rgba(37, 99, 235, 0.18);
}

.phone-login-btn:hover {
    background: #1d4ed8;
}

.phone-login-btn:disabled {
    cursor: not-allowed;
    background: #98a2b3;
    box-shadow: none;
}

.other-login {
    margin: 20px 0 16px;
    display: flex;
    align-items: center;
    gap: 14px;
    color: #98a3b3;
    font-size: 12px;
}

.other-login::before,
.other-login::after {
    height: 1px;
    flex: 1;
    background: #e3eaf1;
    content: "";
}

.wechat-login-btn {
    width: 100%;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    border: 1px solid #b7e7cd;
    border-radius: 6px;
    color: #078c45;
    background: #f2fff7;
    cursor: pointer;
    font-size: 14px;
    font-weight: 800;
}

.wechat-login-btn:disabled {
    cursor: not-allowed;
    border-color: #d0d5dd;
    color: #98a2b3;
    background: #f2f4f7;
}

.wechat-mark {
    width: 24px;
    height: 24px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: #ffffff;
    background: #07c160;
    font-size: 11px;
    font-weight: 900;
}

.login-error {
    margin-top: 14px;
    padding: 10px 12px;
    border: 1px solid #fecaca;
    border-radius: 8px;
    color: #b42318;
    background: #fff1f1;
    font-size: 13px;
}

.login-tip {
    margin: 15px 0 0;
    color: #7a8798;
    font-size: 11px;
    line-height: 1.7;
    text-align: left;
}

.bind-heading {
    margin-bottom: 18px;
}

.bind-heading h1 {
    margin: 0 0 6px;
    color: #0b1f36;
    font-size: 24px;
    line-height: 1.3;
}

.bind-heading p {
    margin: 0;
    color: #708095;
    font-size: 13px;
}

.bind-form {
    margin-top: 0;
}

.bind-cancel {
    margin-top: 12px;
    display: inline-flex;
    color: #536175;
    font-size: 13px;
    font-weight: 700;
}

.bind-cancel:hover {
    color: var(--brand-strong);
}

.auth-screen .site-footer {
    border-top: 0;
    background: transparent;
}

.auth-screen .footer-inner {
    padding: 12px 20px 18px;
    color: rgba(16, 45, 74, 0.72);
    text-shadow: 0 1px 1px rgba(255, 255, 255, 0.72);
}

.auth-screen .footer-line a {
    color: inherit;
}

.source-panel {
    position: sticky;
    top: 94px;
    overflow: hidden;
    padding: 20px;
    border-color: rgba(14, 165, 233, 0.28);
    background:
        radial-gradient(circle at 88% 0, rgba(91, 43, 224, 0.16), transparent 34%),
        radial-gradient(circle at 8% 12%, rgba(14, 165, 233, 0.22), transparent 30%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(247, 251, 255, 0.94));
    box-shadow: 0 24px 54px rgba(29, 78, 216, 0.12);
}

.source-panel::before {
    position: absolute;
    inset: 0;
    border-radius: inherit;
    padding: 1px;
    background: linear-gradient(135deg, rgba(14, 165, 233, 0.72), rgba(91, 43, 224, 0.2), rgba(18, 185, 129, 0.42));
    content: "";
    pointer-events: none;
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
    mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    mask-composite: exclude;
}

.source-kicker {
    width: fit-content;
    margin-bottom: 10px;
    border-radius: 999px;
    padding: 5px 10px;
    color: #175cd3;
    background: rgba(37, 99, 235, 0.09);
    font-size: 12px;
    font-weight: 900;
}

.source-panel h2 {
    margin: 0;
    font-size: 25px;
    line-height: 1.2;
}

.source-desc {
    margin: 10px 0 16px;
    color: #475467;
    line-height: 1.75;
}

.source-price {
    display: grid;
    gap: 2px;
    margin: 0 0 16px;
    padding: 15px;
    border: 1px solid rgba(37, 99, 235, 0.16);
    border-radius: 8px;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.08), rgba(14, 165, 233, 0.06));
}

.source-price span,
.source-price em {
    color: var(--muted);
    font-size: 12px;
    font-style: normal;
    font-weight: 800;
}

.source-price strong {
    color: var(--brand-strong);
    font-size: 40px;
    line-height: 1.08;
    font-weight: 950;
    letter-spacing: 0;
}

.source-price-pending {
    position: relative;
    overflow: hidden;
    border-style: dashed;
    border-color: rgba(100, 116, 139, 0.28);
    background:
        linear-gradient(135deg, rgba(241, 245, 249, 0.94), rgba(248, 250, 252, 0.86));
}

.source-price-pending::after {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #94a3b8;
    box-shadow: 0 0 0 5px rgba(148, 163, 184, 0.14);
    content: "";
}

.source-price-pending strong {
    margin: 5px 0 3px;
    color: #334155;
    font-size: 25px;
}

.source-price-pending em {
    color: #64748b;
}

.source-list {
    display: grid;
    gap: 9px;
    margin: 0 0 16px;
    padding: 0;
    list-style: none;
}

.source-list li {
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr);
    column-gap: 10px;
    padding: 10px;
    border: 1px solid rgba(217, 231, 242, 0.86);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.76);
}

.source-list li span {
    grid-row: span 2;
    width: 30px;
    height: 30px;
    display: inline-grid;
    place-items: center;
    border-radius: 8px;
    color: #ffffff;
    background: linear-gradient(135deg, var(--brand), var(--brand-strong));
    font-size: 11px;
    font-weight: 900;
}

.source-list li strong {
    min-width: 0;
    color: #101828;
    font-size: 14px;
    line-height: 1.35;
}

.source-list li em {
    min-width: 0;
    color: #667085;
    font-size: 12px;
    font-style: normal;
    line-height: 1.45;
}

.source-cta {
    width: 100%;
    min-height: 48px;
    box-shadow: 0 14px 28px rgba(37, 99, 235, 0.2);
}

.source-download {
    margin-top: 10px;
    border-color: rgba(37, 99, 235, 0.22);
    color: var(--brand-strong);
    background: #ffffff;
    box-shadow: none;
}

.source-quota-download {
    border-color: rgba(18, 185, 129, 0.32);
    color: #047857;
    background: #f0fdf4;
}

.source-cta-disabled {
    cursor: not-allowed;
    color: #ffffff;
    background: linear-gradient(135deg, #94a3b8, #64748b);
    box-shadow: none;
}

.source-note {
    margin-top: 12px;
    padding: 10px 12px;
    border-radius: 8px;
    color: #536175;
    background: rgba(255, 255, 255, 0.68);
    font-size: 12px;
    line-height: 1.6;
}

.source-note-error {
    color: #b42318;
    background: #fff1f1;
}

.order-page {
    max-width: 900px;
    margin: 0 auto;
}

.order-main {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.9);
    padding: 30px;
}

.order-main h1 {
    margin: 0;
    font-size: 36px;
    line-height: 1.18;
}

.order-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 22px;
}

.order-head p {
    margin: 10px 0 0;
    color: #475467;
}

.order-price-box {
    min-width: 170px;
    padding: 16px;
    border: 1px solid rgba(37, 99, 235, 0.16);
    border-radius: 8px;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.08), rgba(14, 165, 233, 0.06));
    text-align: right;
}

.order-price-box span {
    display: block;
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
}

.order-price-box strong {
    display: block;
    color: var(--brand-strong);
    font-size: 34px;
    line-height: 1.15;
    font-weight: 950;
}

.order-product {
    margin-bottom: 16px;
    padding: 18px;
    border: 1px solid #d7e7f5;
    border-radius: 8px;
    background:
        radial-gradient(circle at 100% 0, rgba(91, 43, 224, 0.08), transparent 28%),
        #f8fbff;
}

.order-product > span {
    display: inline-flex;
    margin-bottom: 8px;
    color: var(--brand-strong);
    font-size: 13px;
    font-weight: 900;
}

.order-product h2 {
    margin: 0 0 8px;
    font-size: 24px;
    line-height: 1.25;
}

.order-product p {
    margin: 0;
    color: #475467;
}

.order-product-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 14px;
}

.order-product-meta em {
    border-radius: 999px;
    padding: 5px 10px;
    color: #536175;
    background: #ffffff;
    font-size: 12px;
    font-style: normal;
    font-weight: 800;
}

.order-benefits {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 20px;
}

.order-benefits > div {
    min-width: 0;
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr);
    column-gap: 10px;
    padding: 12px;
    border: 1px solid #d7e7f5;
    border-radius: 8px;
    background: #ffffff;
}

.order-benefits span {
    grid-row: span 2;
    width: 30px;
    height: 30px;
    display: inline-grid;
    place-items: center;
    border-radius: 8px;
    color: #ffffff;
    background: linear-gradient(135deg, var(--brand), var(--brand-strong));
    font-size: 11px;
    font-weight: 900;
}

.order-benefits strong {
    color: #101828;
    font-size: 14px;
    line-height: 1.35;
}

.order-benefits em {
    color: #667085;
    font-size: 12px;
    font-style: normal;
    line-height: 1.45;
}

.pay-section-title {
    margin: 20px 0 12px;
    font-size: 22px;
}

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

.pay-method-card {
    min-height: 118px;
    display: grid;
    grid-template-columns: 48px minmax(0, 1fr);
    grid-template-rows: 1fr 1fr;
    column-gap: 12px;
    align-items: center;
    padding: 16px;
    border: 1px solid rgba(37, 99, 235, 0.16);
    border-radius: 8px;
    background: #ffffff;
    cursor: pointer;
    color: #101828;
    text-align: left;
    font: inherit;
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.pay-method-card:hover {
    transform: translateY(-2px);
    border-color: rgba(37, 99, 235, 0.38);
    box-shadow: 0 16px 34px rgba(29, 78, 216, 0.1);
}

.pay-method-icon {
    grid-row: span 2;
    width: 48px;
    height: 48px;
    display: grid;
    place-items: center;
    border-radius: 12px;
    box-shadow: 0 12px 24px rgba(37, 99, 235, 0.14);
}

.pay-method-icon img {
    width: 48px;
    height: 48px;
    object-fit: contain;
}

.pay-method-card strong {
    align-self: end;
    font-size: 18px;
}

.pay-method-card em {
    align-self: start;
    color: #667085;
    font-size: 13px;
    font-style: normal;
}

.paid-panel {
    margin-top: 16px;
    padding: 13px 14px;
    border-radius: 8px;
    background: #f3fbff;
    color: #475467;
}

.paid-panel strong {
    display: block;
    color: #047857;
    font-size: 20px;
}

.unavailable-panel strong {
    color: #b45309;
}

.paid-panel p {
    margin: 6px 0 14px;
}

.order-back {
    margin-top: 16px;
}

.vip-page {
    max-width: 1080px;
    margin: 0 auto;
}

.vip-page h1 {
    margin: 0;
    font-size: 42px;
    line-height: 1.15;
}

.vip-lead {
    max-width: 680px;
    margin: 12px 0 24px;
    color: #475467;
    font-size: 17px;
}

.vip-plan-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.vip-plan {
    display: grid;
    gap: 12px;
    padding: 22px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #ffffff;
}

.vip-plan.featured {
    border-color: rgba(37, 99, 235, 0.35);
    box-shadow: 0 24px 54px rgba(37, 99, 235, 0.12);
}

.vip-plan > span {
    width: fit-content;
    border-radius: 999px;
    padding: 5px 10px;
    color: var(--brand-strong);
    background: #eff6ff;
    font-size: 12px;
    font-weight: 900;
}

.vip-plan h2 {
    margin: 0;
    font-size: 24px;
}

.vip-plan strong {
    color: var(--brand-strong);
    font-size: 38px;
    line-height: 1;
}

.vip-plan p {
    margin: 0;
    color: #475467;
}

.vip-plan ul {
    display: grid;
    gap: 8px;
    margin: 4px 0;
    padding: 0;
    list-style: none;
    color: #344054;
}

.vip-plan li::before {
    content: "✓";
    margin-right: 8px;
    color: #12b981;
    font-weight: 900;
}

body.modal-open {
    overflow: hidden;
}

.pay-modal,
.preview-modal {
    position: fixed;
    inset: 0;
    z-index: 50;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: rgba(16, 24, 40, 0.56);
}

.pay-modal[hidden],
.preview-modal[hidden] {
    display: none;
}

.pay-dialog {
    position: relative;
    width: min(390px, calc(100vw - 32px));
    padding: 26px 24px 22px;
    border: 1px solid rgba(217, 231, 242, 0.92);
    border-radius: 8px;
    background:
        radial-gradient(circle at 100% 0, rgba(91, 43, 224, 0.16), transparent 34%),
        linear-gradient(180deg, #ffffff, #f8fbff);
    box-shadow: 0 28px 80px rgba(16, 24, 40, 0.28);
    text-align: center;
}

.pay-close {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 32px;
    height: 32px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #ffffff;
    color: #1d2939;
    cursor: pointer;
    font-size: 20px;
    line-height: 1;
}

.pay-label {
    display: inline-flex;
    margin-bottom: 10px;
    border-radius: 999px;
    padding: 5px 10px;
    color: #175cd3;
    background: rgba(37, 99, 235, 0.09);
    font-size: 12px;
    font-weight: 900;
}

.pay-dialog h3 {
    margin: 0;
    font-size: 22px;
    line-height: 1.3;
}

.pay-dialog p {
    margin: 8px 0 16px;
    color: #667085;
}

.pay-qrcode {
    width: 238px;
    height: 238px;
    display: grid;
    place-items: center;
    margin: 0 auto 14px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #ffffff;
}

.pay-qrcode img {
    width: 220px;
    height: 220px;
}

.pay-qrcode img:not([src]),
.pay-qrcode img[src=""] {
    display: none;
}

.pay-amount {
    color: var(--brand-strong);
    font-size: 18px;
    font-weight: 900;
}

.pay-status {
    margin-top: 8px;
    color: #667085;
    font-size: 13px;
    font-weight: 800;
}

.pay-status.success {
    color: #047857;
}

.preview-dialog {
    position: relative;
    display: grid;
    grid-template-columns: minmax(220px, 280px) minmax(0, 1fr);
    width: min(1180px, calc(100vw - 48px));
    height: min(760px, calc(100vh - 48px));
    overflow: hidden;
    border-radius: 8px;
    background: #ffffff;
    border: 1px solid var(--line);
    box-shadow: 0 24px 70px rgba(16, 24, 40, 0.22);
}

.preview-close {
    position: absolute;
    top: 14px;
    right: 14px;
    z-index: 2;
    width: 34px;
    height: 34px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #ffffff;
    color: #1d2939;
    cursor: pointer;
    font-size: 22px;
    line-height: 1;
}

.preview-sidebar {
    min-height: 0;
    overflow: auto;
    padding: 26px 22px;
    border-right: 1px solid var(--line);
    background: linear-gradient(180deg, #f8fbff, #ffffff);
}

.preview-label {
    display: inline-flex;
    margin-bottom: 14px;
    border-radius: 999px;
    padding: 5px 10px;
    color: var(--brand-strong);
    background: rgba(14, 165, 233, 0.1);
    font-size: 13px;
    font-weight: 900;
}

.preview-time {
    color: var(--muted);
    font-weight: 800;
    font-size: 13px;
}

.preview-sidebar h3 {
    margin: 8px 0 12px;
    font-size: 20px;
    line-height: 1.35;
}

.preview-sidebar p {
    margin: 0;
    color: #475467;
    line-height: 1.8;
    word-break: break-word;
}

.preview-main {
    min-width: 0;
    min-height: 0;
    display: grid;
    grid-template-rows: auto minmax(0, 1fr) auto;
    gap: 12px;
    padding: 16px;
    background: #ffffff;
}

.preview-toolbar {
    min-height: 38px;
    padding-right: 48px;
    display: flex;
    align-items: center;
}

.preview-nav {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.preview-nav button {
    width: 38px;
    height: 34px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #ffffff;
    color: #1d2939;
    cursor: pointer;
    font-size: 24px;
    line-height: 1;
}

.preview-nav button:disabled {
    cursor: not-allowed;
    color: #98a2b3;
    background: #f8fafc;
}

.preview-nav span {
    min-width: 44px;
    color: #475467;
    font-weight: 800;
    text-align: center;
}

.preview-content {
    min-height: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #f8fbff;
    padding: 12px;
}

.preview-content .image-tile {
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-rows: minmax(0, 1fr);
}

.preview-content .product-shot {
    width: 100%;
    height: 100%;
    max-height: none;
    min-height: 0;
    aspect-ratio: auto;
    padding: 0;
    border: 0;
    background: transparent;
}

.preview-content img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 8px;
}

.preview-content .image-tile h3 {
    display: none;
}

.preview-caption {
    min-height: 24px;
    color: #1d2939;
    font-weight: 900;
}

.site-footer {
    border-top: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.92);
}

.footer-inner {
    width: min(1180px, calc(100% - 40px));
    margin: 0 auto;
    padding: 18px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #667085;
    font-size: 12px;
}

.footer-line {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-align: center;
}

.footer-line a {
    color: #536175;
}

.footer-line a:hover {
    color: var(--brand-strong);
}

.footer-dot {
    color: #b5c0cc;
}

@media (max-width: 860px) {
    .header-inner,
    .page-wrap,
    .footer-inner {
        width: min(100% - 28px, 1180px);
    }

    .header-inner {
        height: 64px;
        gap: 10px;
    }

    .header-left {
        gap: 12px;
    }

    .brand {
        font-size: 18px;
    }

    .brand span {
        display: none;
    }

    .brand-logo {
        width: 38px;
        height: 38px;
    }

    .site-nav {
        gap: 4px;
    }

    .site-nav a,
    .search-pill {
        padding: 7px 9px;
        font-size: 13px;
    }

    .login-btn {
        min-height: 34px;
        padding: 7px 10px;
        font-size: 13px;
    }

    .user-name {
        display: none;
    }

    .page-wrap {
        padding-top: 26px;
    }

    .hero,
    .detail-layout {
        grid-template-columns: 1fr;
        gap: 22px;
    }

    .hero h1,
    .project-title {
        font-size: 34px;
    }

    .hero-text,
    .detail-summary {
        font-size: 15px;
    }

    .stats {
        grid-template-columns: 1fr;
    }

    .waterfall {
        display: block;
    }

    .project-card.current {
        grid-column: auto !important;
    }

    .project-card.current .card-shot {
        min-height: 230px;
    }

    .project-card {
        margin-bottom: 16px;
    }

    .section-head {
        align-items: flex-start;
        flex-direction: column;
    }

    .image-grid {
        grid-template-columns: 1fr;
    }

    .article-list-head {
        align-items: flex-start;
        flex-direction: column;
    }

    .article-list-head h1,
    .article-detail-head h1 {
        font-size: 32px;
    }

    .article-categories {
        justify-content: flex-start;
    }

    .article-link {
        grid-template-columns: 1fr;
    }

    .article-cover {
        order: -1;
        min-height: 190px;
    }

    .article-hero-cover {
        min-height: 220px;
    }

    .article-inline-image {
        min-height: 190px;
    }

    .article-content {
        font-size: 16px;
    }

    .article-resource-card {
        grid-template-columns: 1fr;
    }

    .article-resource-qr {
        justify-self: start;
    }

    .code-block pre {
        padding: 14px;
    }

    .prompt-row {
        grid-template-columns: 1fr;
    }

    .prompt-list {
        gap: 14px;
        padding-left: 28px;
    }

    .prompt-list::before {
        left: 12px;
    }

    .prompt-item::before {
        left: -30px;
        width: 24px;
        height: 24px;
        font-size: 11px;
    }

    .prompt-unlock-panel {
        margin-left: 28px;
    }

    .prompt-screenshots {
        grid-template-columns: 1fr;
        padding: 0 14px 14px;
    }

    .prompt-actions {
        width: 100%;
    }

    .copy-btn,
    .preview-btn {
        width: 100%;
    }

    .preview-modal {
        align-items: stretch;
        padding: 12px;
    }

    .preview-dialog {
        width: 100%;
        height: 100%;
        grid-template-columns: 1fr;
        grid-template-rows: auto minmax(0, 1fr);
    }

    .preview-sidebar {
        max-height: 34vh;
        border-right: 0;
        border-bottom: 1px solid var(--line);
        padding: 18px;
    }

    .preview-sidebar h3 {
        font-size: 18px;
    }

    .preview-main {
        padding: 12px;
    }

    .preview-toolbar {
        padding-right: 44px;
    }

    .preview-content {
        padding: 8px;
    }

    .card-foot {
        align-items: stretch;
        flex-direction: column;
    }

    .card-foot .btn {
        width: 100%;
    }

    .source-panel {
        position: static;
    }

    .order-main {
        padding: 20px;
    }

    .order-head {
        display: grid;
        gap: 14px;
    }

    .order-main h1 {
        font-size: 30px;
    }

    .order-price-box {
        text-align: left;
    }

    .order-benefits,
    .pay-methods {
        grid-template-columns: 1fr;
    }

    .vip-page h1 {
        font-size: 38px;
    }

    .vip-plan-grid {
        grid-template-columns: 1fr;
    }

    .vip-plan {
        gap: 10px;
        padding: 20px;
    }

    .vip-plan strong {
        font-size: 36px;
    }

    .vip-plan .btn {
        width: 100%;
    }
}

@media (max-width: 700px) {
    .auth-screen .site-shell {
        background-position: center center;
    }

    .auth-page {
        min-height: 0;
        padding: 30px 14px 24px;
    }

    .auth-page-brand {
        margin-bottom: 18px;
        grid-template-columns: 46px auto;
        column-gap: 10px;
    }

    .auth-page-brand img {
        width: 46px;
        height: 46px;
    }

    .auth-page-brand strong {
        font-size: 22px;
    }

    .auth-page-brand span {
        font-size: 12px;
    }

    .login-panel {
        min-height: 0;
    }

    .login-form-panel {
        padding: 28px 22px 26px;
    }

    .login-tabs {
        gap: 24px;
    }

    .country-code {
        margin-right: 12px;
        padding-right: 12px;
    }

    .auth-screen .footer-inner {
        width: calc(100% - 28px);
        padding: 8px 0 18px;
        font-size: 11px;
    }
}
