:root {
    --idr-bg: #edf3fb;
    --idr-surface: #ffffff;
    --idr-surface-soft: #f7fafe;
    --idr-line: #dbe5f1;
    --idr-text: #162033;
    --idr-text-soft: #64748b;
    --idr-primary: #2563eb;
    --idr-primary-deep: #1d4ed8;
    --idr-success: #22c55e;
    --idr-danger: #ef4444;
    --idr-shadow: 0 20px 60px rgba(15, 23, 42, 0.08);
    --idr-radius-xl: 28px;
    --idr-radius-lg: 20px;
    --idr-radius-md: 16px;
    --idr-radius-sm: 12px;
}

body.idr-body {
    margin: 0;
    color: var(--idr-text);
    background:
        radial-gradient(circle at top left, rgba(37, 99, 235, 0.10), transparent 28%),
        linear-gradient(180deg, #f8fbff 0%, var(--idr-bg) 100%);
}

.idr-shell {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

#pjax-container {
    flex: 1 1 auto;
}

.idr-container {
    width: min(1000px, calc(100% - 32px));
    margin: 0 auto;
}

.idr-card {
    background: var(--idr-surface);
    border: 1px solid var(--idr-line);
    border-radius: var(--idr-radius-xl);
    box-shadow: var(--idr-shadow);
}

.idr-section-title {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--idr-text);
}

.idr-topbar {
    position: sticky;
    top: 0;
    z-index: 40;
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    background: rgba(252, 253, 255, 0.94);
    border-bottom: 1px solid rgba(219, 229, 241, 0.75);
}

.idr-topbar__inner,
.idr-topbar__left,
.idr-topbar__right,
.idr-nav,
.idr-auth-links,
.idr-hero__actions,
.idr-detail__tags,
.idr-option-list {
    display: flex;
    align-items: center;
}

.idr-topbar__inner {
    justify-content: space-between;
    gap: 20px;
    min-height: 78px;
}

.idr-topbar__left,
.idr-topbar__right {
    gap: 18px;
}

.idr-brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-size: 1.7rem;
    font-weight: 800;
    color: var(--idr-text);
}

.idr-brand img {
    width: 28px;
    height: 28px;
    border-radius: 8px;
}

.idr-nav {
    gap: 8px;
}

.idr-nav a {
    padding: 10px 14px;
    border-radius: 999px;
    color: var(--idr-text-soft);
    font-weight: 600;
}

.idr-nav a.is-active,
.idr-nav a:hover {
    color: var(--idr-primary);
    background: rgba(37, 99, 235, 0.08);
}

.idr-topbar__search {
    display: flex;
    align-items: center;
    gap: 10px;
    width: min(320px, 48vw);
    padding: 0 14px;
    border: 1px solid var(--idr-line);
    border-radius: 999px;
    background: var(--idr-surface);
}

.idr-topbar__search i {
    color: var(--idr-text-soft);
}

.idr-topbar__search input {
    width: 100%;
    height: 44px;
    border: 0;
    background: transparent;
    outline: none;
    box-shadow: none;
}

.idr-link-button.idr-topbar__query {
    white-space: nowrap;
    color: #fff;
    background: linear-gradient(135deg, var(--idr-primary), var(--idr-primary-deep));
    border-color: transparent;
    box-shadow: 0 10px 20px rgba(37, 99, 235, 0.18);
}

.idr-link-button.idr-topbar__query:hover {
    color: #fff;
}

.idr-user-link {
    display: inline-flex;
    flex-direction: column;
    align-items: flex-end;
    padding: 10px 14px;
    border-radius: 14px;
    background: var(--idr-surface);
    border: 1px solid var(--idr-line);
    color: var(--idr-text);
}

.idr-user-link__name {
    font-weight: 700;
}

.idr-user-link__meta {
    font-size: 12px;
    color: var(--idr-text-soft);
}

.idr-link-button,
.idr-primary-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0 18px;
    border-radius: 999px;
    font-weight: 700;
}

.idr-link-button {
    color: var(--idr-text);
    background: var(--idr-surface);
    border: 1px solid var(--idr-line);
}

.idr-primary-button {
    color: #fff;
    background: linear-gradient(135deg, var(--idr-primary), var(--idr-primary-deep));
    box-shadow: 0 12px 24px rgba(37, 99, 235, 0.22);
}

.idr-home,
.idr-detail,
.idr-query {
    padding-top: 28px;
    padding-bottom: 48px;
}

.idr-home {
    padding-top: 16px;
}

.idr-hero {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 28px;
    padding: 34px;
}

.idr-eyebrow {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 0 12px;
    border-radius: 999px;
    background: rgba(37, 99, 235, 0.10);
    color: var(--idr-primary);
    font-weight: 700;
}

.idr-hero h1 {
    margin: 18px 0 14px;
    font-size: clamp(2rem, 4vw, 3.5rem);
    line-height: 1.05;
    font-weight: 800;
}

.idr-hero p {
    margin: 0;
    color: var(--idr-text-soft);
    font-size: 1rem;
    line-height: 1.8;
    max-width: 560px;
}

.idr-hero__actions {
    gap: 12px;
    margin-top: 26px;
    flex-wrap: wrap;
}

.idr-hero__media {
    display: flex;
    align-items: stretch;
    justify-content: center;
}

.idr-hero__image {
    width: 100%;
    min-height: 280px;
    border-radius: 24px;
    background:
        radial-gradient(circle at top right, rgba(37, 99, 235, 0.18), transparent 30%),
        linear-gradient(135deg, #eef5ff, #ffffff);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border: 1px solid rgba(219, 229, 241, 0.85);
}

.idr-hero__image img {
    width: min(100%, 320px);
    max-height: 100%;
    object-fit: contain;
}

.idr-notice {
    margin-top: 12px;
    padding: 24px 28px;
    border-radius: 14px;
}

.idr-notice__body {
    margin-top: 12px;
    color: var(--idr-text-soft);
    line-height: 1.8;
}

.idr-categories {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 18px 0 16px;
}

.idr-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 32px;
    padding: 0 12px;
    border-radius: 8px;
    border: 1px solid #1f2937;
    background: #fff;
    color: #1f2937;
    font-size: 12px;
    font-weight: 600;
    line-height: 1;
    box-shadow: none;
}

.idr-chip.is-primary {
    color: #fff;
    background: #111827;
    border-color: #111827;
}

.idr-chip__icon {
    display: none;
}

.idr-products {
    padding: 0;
    margin-top: 4px;
}

.item-list {
    display: block;
}

.idr-home-empty {
    padding: 24px 0;
    color: var(--idr-text-soft);
    text-align: center;
}

.idr-theme2-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.idr-project-details {
    background: #fff;
    border: 1px solid rgba(17, 24, 39, 0.1);
    border-radius: 12px;
}

.idr-project-summary {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 16px;
    color: #111827;
    cursor: default;
}

.idr-project-summary::-webkit-details-marker {
    display: none;
}

.idr-project-summary__info {
    display: flex;
    align-items: center;
    gap: 0;
    min-width: 0;
}

.idr-project-summary__figure {
    width: 40px;
    height: 40px;
    margin: 0;
    overflow: hidden;
    border-radius: 12px;
    flex-shrink: 0;
}

.idr-project-summary__figure img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.idr-project-summary__title {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 600;
    color: #111827;
}

.idr-project-body {
    margin: 0 16px 16px;
    color: #374151;
}

.idr-project-table-wrap {
    overflow-x: auto;
    border: 1px solid #9ca3af;
    border-radius: 10px;
    background: #fff;
}

.idr-project-table {
    width: 100%;
    min-width: 620px;
    table-layout: fixed;
    border-collapse: separate;
    border-spacing: 0;
}

.idr-project-table thead th {
    padding: 14px 16px;
    color: #6b7280;
    font-size: 13px;
    font-weight: 600;
    text-align: left;
    white-space: nowrap;
    border-bottom: 1px solid #9ca3af;
}

.idr-project-table__name {
    text-align: left;
}

.idr-project-table__stock {
    text-align: center;
}

.idr-project-table__price {
    text-align: left;
}

.idr-project-col--stock {
    width: 150px;
}

.idr-project-col--price {
    width: 170px;
}

.idr-project-col--action {
    width: 64px;
}

.idr-project-table tbody td {
    padding: 16px;
    color: #374151;
    font-size: 15px;
    vertical-align: middle;
    border-top: 1px solid #d1d5db;
}

.idr-project-table tbody tr:first-child td {
    border-top: 0;
}

.idr-project-row__name {
    color: #374151;
}

.idr-project-row__price,
.idr-project-row__stock,
.idr-project-row__action {
    white-space: nowrap;
}

.idr-project-row__stock {
    text-align: center;
}

.idr-project-head-wrap,
.idr-project-stock-wrap,
.idr-project-price-wrap {
    display: flex;
    align-items: center;
    margin: 0 auto;
}

.idr-project-head-wrap--stock,
.idr-project-stock-wrap {
    width: 64px;
    justify-content: center;
    transform: translateX(12px);
}

.idr-project-head-wrap--price,
.idr-project-price-wrap {
    width: 92px;
    justify-content: flex-start;
    transform: translateX(12px);
}

.idr-project-price-wrap {
    gap: 4px;
}

.idr-project-row__price {
    text-align: left;
}

.idr-project-stock-text {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2.5em;
    font-weight: 700;
}

.idr-project-stock-text.is-stocked {
    color: #16a34a;
}

.idr-project-stock-text.is-soldout {
    color: #dc2626;
}

.idr-project-row__action {
    width: 54px;
    text-align: center;
}

.idr-project-price {
    color: #2563eb;
    font-size: 1.35rem;
    font-weight: 700;
}

.idr-project-unit {
    margin-left: 2px;
    color: #6b7280;
    font-size: 12px;
}

.idr-cart-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    color: #2563eb;
    cursor: pointer;
}

.idr-cart-action:hover {
    color: #1d4ed8;
}

.idr-cart-action.is-disabled {
    color: #9ca3af;
    cursor: default;
}

.idr-cart-action.is-disabled:hover {
    color: #9ca3af;
}

.idr-cart-action__icon {
    width: 24px;
    height: 24px;
}

.idr-detail__grid {
    display: grid;
    grid-template-columns: minmax(0, 1.6fr) minmax(340px, 0.9fr);
    gap: 24px;
}

.idr-detail__content,
.idr-detail__aside {
    padding: 30px;
}

.idr-order-panel {
    position: sticky;
    top: 102px;
    align-self: start;
}

.idr-detail__project {
    color: var(--idr-text-soft);
    font-size: 15px;
}

.idr-detail__title {
    margin: 12px 0 20px;
    font-size: clamp(2rem, 3.4vw, 2.9rem);
    line-height: 1.12;
    font-weight: 800;
}

.idr-detail__cover {
    border-radius: 22px;
    overflow: hidden;
    background: #f5f8ff;
    border: 1px solid var(--idr-line);
    min-height: 300px;
}

.idr-detail__cover img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.idr-detail__tags {
    gap: 10px;
    flex-wrap: wrap;
    margin: 18px 0 24px;
}

.idr-badge {
    display: inline-flex;
    align-items: center;
    min-height: 32px;
    padding: 0 12px;
    border-radius: 999px;
    background: rgba(37, 99, 235, 0.08);
    border: 1px solid rgba(37, 99, 235, 0.14);
    color: var(--idr-primary);
    font-size: 13px;
    font-weight: 700;
}

.idr-badge.item-stock.badge-soft-success,
.idr-pill.item-stock.badge-soft-success {
    background: rgba(34, 197, 94, 0.12);
    color: #168348;
    border-color: rgba(34, 197, 94, 0.18);
}

.idr-badge.item-stock.badge-soft-danger,
.idr-pill.item-stock.badge-soft-danger {
    background: rgba(239, 68, 68, 0.10);
    color: var(--idr-danger);
    border-color: rgba(239, 68, 68, 0.16);
}

.idr-detail__summary,
.idr-detail__description {
    margin-top: 24px;
}

.idr-detail__summary h2,
.idr-detail__description h2 {
    margin: 0 0 10px;
    font-size: 1.15rem;
    font-weight: 700;
}

.idr-detail__summary p,
.idr-richtext {
    margin: 0;
    color: var(--idr-text-soft);
    line-height: 1.85;
}

.idr-richtext img {
    max-width: 100%;
}

.idr-price-box {
    margin-bottom: 18px;
    padding: 20px 22px;
    border: 1px solid rgba(37, 99, 235, 0.12);
    border-radius: 20px;
    background:
        radial-gradient(circle at top right, rgba(37, 99, 235, 0.14), transparent 28%),
        linear-gradient(135deg, #f7fbff, #eef5ff);
}

.idr-price-box__label {
    color: var(--idr-text-soft);
    font-size: 14px;
    margin-bottom: 6px;
}

.idr-price-box__main {
    display: flex;
    align-items: baseline;
    gap: 8px;
}

.idr-price-box__unit {
    color: var(--idr-text-soft);
    font-size: 12px;
    font-weight: 700;
}

.idr-detail__aside .price {
    font-size: 2rem;
}

.idr-order-panel__intro {
    margin-bottom: 18px;
}

.idr-order-panel__eyebrow {
    color: var(--idr-text-soft);
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.idr-order-panel__title {
    margin: 8px 0 10px;
    font-size: 1.75rem;
    font-weight: 800;
}

.idr-order-panel__text {
    margin: 0;
    color: var(--idr-text-soft);
    line-height: 1.75;
}

.idr-price-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 18px;
}

.idr-pill {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    padding: 0 12px;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.05);
    color: var(--idr-text);
    font-size: 12px;
    font-weight: 700;
}

.idr-order-form {
    gap: 14px !important;
}

.idr-form-card {
    padding: 16px;
    border: 1px solid var(--idr-line);
    border-radius: 18px;
    background: var(--idr-surface-soft);
}

.idr-field-label {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    font-weight: 700;
}

.idr-field-label small {
    color: var(--idr-text-soft);
    font-size: 12px;
    font-weight: 500;
}

.idr-option-list {
    gap: 10px;
    flex-wrap: wrap;
}

.idr-option {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 40px;
    padding: 0 14px;
    border-radius: 999px;
    background: var(--idr-surface-soft);
    border: 1px solid var(--idr-line);
    color: var(--idr-text);
    font-weight: 600;
    box-shadow: 0 4px 16px rgba(15, 23, 42, 0.04);
}

.idr-option.is-primary {
    color: #fff;
    background: linear-gradient(135deg, var(--idr-primary), var(--idr-primary-deep));
    border-color: transparent;
}

.idr-option__price {
    font-size: 12px;
    font-weight: 700;
}

.idr-ghost-button {
    width: 100%;
    min-height: 44px;
    border-radius: 14px;
    border: 1px dashed var(--idr-line);
    background: var(--idr-surface-soft);
    color: var(--idr-text);
}

.qty-group {
    overflow: hidden;
    border-radius: 16px;
}

.qty-group button {
    min-width: 46px;
    border: 1px solid var(--idr-line);
    background: var(--idr-surface-soft);
    color: var(--idr-text);
}

.cash-pay {
    padding: 18px;
    border-radius: var(--idr-radius-md);
    background:
        linear-gradient(180deg, rgba(248, 250, 252, 0.95), rgba(255, 255, 255, 0.98));
    border: 1px solid var(--idr-line);
}

.idr-pay-actions__head p {
    margin: -4px 0 12px;
    color: var(--idr-text-soft);
    font-size: 12px;
}

.cash-pay .pay-list {
    display: grid;
    gap: 10px;
}

.cash-pay .pay {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-height: 54px;
    width: 100%;
    padding: 0 16px;
    border-radius: 16px;
    background: #fff;
    border: 1px solid var(--idr-line);
    cursor: pointer;
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.cash-pay .pay:hover {
    transform: translateY(-1px);
    border-color: rgba(37, 99, 235, 0.28);
    box-shadow: 0 12px 20px rgba(15, 23, 42, 0.08);
}

.cash-pay .pay span {
    margin-right: auto;
    font-weight: 700;
}

.cash-pay .pay::after {
    content: "提交订单";
    color: var(--idr-text-soft);
    font-size: 12px;
    font-weight: 700;
}

.cash-pay .pay img {
    width: 18px;
    height: 18px;
    object-fit: contain;
}

.idr-query__search,
.idr-query__results {
    padding: 26px;
}

.idr-query__row {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 12px;
    margin-top: 18px;
}

.idr-empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    min-height: 180px;
    padding: 28px;
    color: var(--idr-text-soft);
    text-align: center;
}

.idr-empty-state i {
    font-size: 2rem;
}

.order-item {
    background: #fff;
    border: 0;
    box-shadow: none;
}

.order-item::before {
    background: linear-gradient(90deg, var(--idr-primary), #60a5fa);
}

.idr-query .order-item::before {
    top: 10px;
    left: 24px;
    right: 24px;
    height: 3px;
    border-radius: 0;
}

.idr-query .order-item:hover {
    background: #fff;
    border-color: transparent;
    box-shadow: none;
    transform: none;
}

.idr-query .order-left {
    flex-direction: column;
    gap: 10px;
    min-width: 0;
}

.idr-query .order-status {
    display: flex;
    align-items: center;
}

.idr-query .status-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.idr-query .order-basic {
    min-width: 0;
}

.idr-query .goods-section {
    gap: 0;
    padding: 0;
    background: transparent;
    border: 0;
    border-radius: 0;
    backdrop-filter: none;
}

.idr-footer {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 56px;
    color: var(--idr-text-soft);
}

@media (max-width: 992px) {
    .idr-topbar__inner,
    .idr-topbar__left,
    .idr-topbar__right {
        flex-wrap: wrap;
    }

    .idr-topbar__inner {
        padding: 14px 0;
    }

    .idr-topbar__search {
        width: 100%;
    }

    .idr-hero,
    .idr-detail__grid {
        grid-template-columns: 1fr;
    }

    .idr-order-panel {
        position: static;
    }

    .idr-hero__image {
        min-height: 220px;
    }
}

@media (max-width: 768px) {
    .idr-container {
        width: min(100% - 20px, 100%);
    }

    .idr-notice,
    .idr-detail__content,
    .idr-detail__aside,
    .idr-query__search,
    .idr-query__results,
    .idr-empty-state {
        padding: 20px;
    }

    .idr-query__row {
        grid-template-columns: 1fr;
    }

    .idr-brand {
        font-size: 1.4rem;
    }

    .idr-nav {
        flex-wrap: wrap;
    }

    .idr-project-summary {
        padding: 14px;
    }

    .idr-project-body {
        margin: 0 12px 12px;
    }

    .idr-project-table {
        min-width: 540px;
    }

    .idr-field-label {
        flex-direction: column;
        align-items: flex-start;
    }
}

.idr-detail__grid {
    display: grid;
    grid-template-columns: minmax(0, 1.36fr) minmax(300px, 0.64fr);
    gap: 18px;
    align-items: start;
}

.idr-detail__content,
.idr-detail__aside {
    background: #fff;
    min-width: 0;
}

.idr-detail__content {
    padding: 24px 20px 26px;
}

.idr-detail__aside {
    padding: 18px;
}

.idr-order-panel {
    position: sticky;
    top: 98px;
    align-self: start;
}

.idr-detail__eyebrow {
    display: block;
    min-height: 0;
    padding: 0;
    border-radius: 0;
    background: transparent;
    color: #6b7280;
    font-size: 12px;
    font-weight: 700;
}

.idr-detail__headline {
    margin: 14px 0 20px;
    min-width: 0;
}

.idr-detail__title {
    margin: 0;
    max-width: 520px;
    font-size: clamp(2.7rem, 4.6vw, 4rem);
    line-height: 1.02;
    font-weight: 800;
    letter-spacing: -0.03em;
    word-break: break-word;
    overflow-wrap: anywhere;
}

.idr-detail__subtitle {
    display: none;
}

.idr-detail__media {
    margin-bottom: 16px;
}

.idr-detail__cover {
    border-radius: 22px;
    overflow: hidden;
    background: #fb8698;
    border: 1px solid #f0d9e2;
    aspect-ratio: 1 / 1;
    min-height: 0;
}

.idr-detail__cover img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.idr-detail__meta {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 18px;
}

.idr-badge {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 0 11px;
    border-radius: 999px;
    background: #eef3ff;
    border: 1px solid #dde7ff;
    color: #3f62e2;
    font-size: 11px;
    font-weight: 700;
}

.idr-badge.shared-button {
    cursor: pointer;
}

.idr-badge.item-stock.badge-soft-success,
.idr-pill.item-stock.badge-soft-success {
    background: #ecf8f0;
    border-color: #d5eedc;
    color: #2f8f52;
}

.idr-badge.item-stock.badge-soft-danger,
.idr-pill.item-stock.badge-soft-danger {
    background: #fff1f2;
    border-color: #ffd7dc;
    color: #e11d48;
}

.idr-detail__section {
    margin-top: 16px;
}

.idr-detail__section h2 {
    margin: 0 0 8px;
    font-size: 14px;
    font-weight: 800;
    color: var(--idr-text);
}

.idr-detail__section p,
.idr-richtext {
    margin: 0;
    color: #5b6778;
    font-size: 13px;
    line-height: 1.82;
}

.idr-richtext img {
    max-width: 100%;
}

.idr-order-panel__intro {
    margin-bottom: 14px;
}

.idr-order-panel__eyebrow {
    color: var(--idr-text-soft);
    font-size: 12px;
    font-weight: 700;
}

.idr-order-panel__title {
    margin: 6px 0 10px;
    font-size: 1.95rem;
    line-height: 1.05;
    font-weight: 800;
}

.idr-order-panel__text {
    margin: 0;
    color: var(--idr-text-soft);
    font-size: 12px;
    line-height: 1.8;
}

.idr-order-panel__price-card,
.idr-price-box {
    margin-bottom: 12px;
    padding: 16px 16px 18px;
    border: 1px solid #d7e4fb;
    border-radius: 16px;
    background: linear-gradient(180deg, #f5f8ff 0%, #edf3ff 100%);
}

.idr-price-box__label {
    color: var(--idr-text-soft);
    font-size: 12px;
    font-weight: 700;
    margin-bottom: 8px;
}

.idr-price-box__main {
    display: flex;
    align-items: flex-end;
    gap: 8px;
}

.idr-detail__aside .price {
    font-size: 2.5rem;
    line-height: 1;
    color: #ff4f87;
    font-weight: 800;
}

.idr-detail__aside .price .unit {
    margin-right: 2px;
    font-size: .9em;
}

.idr-price-box__unit {
    color: var(--idr-text-soft);
    font-size: 13px;
    font-weight: 700;
}

.idr-order-panel__status,
.idr-price-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin-bottom: 12px;
}

.idr-pill {
    display: inline-flex;
    align-items: center;
    min-height: 27px;
    padding: 0 10px;
    border-radius: 999px;
    background: #f6f8fb;
    color: #334155;
    font-size: 11px;
    font-weight: 700;
}

.idr-order-form {
    gap: 10px !important;
}

.idr-order-form__group,
.idr-form-card {
    padding: 12px;
    border: 1px solid var(--idr-line);
    border-radius: 16px;
    background: #fff;
}

.idr-field-label {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    font-weight: 700;
    color: var(--idr-text);
    font-size: 12px;
}

.idr-field-label small {
    color: var(--idr-text-soft);
    font-size: 11px;
    font-weight: 500;
}

.idr-option-list {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.idr-option {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 42px;
    padding: 0 14px;
    border-radius: 14px;
    background: #f8fafc;
    border: 1px solid var(--idr-line);
    color: var(--idr-text);
    font-weight: 600;
    transition: border-color .18s ease, transform .18s ease, box-shadow .18s ease;
}

.idr-option:hover {
    border-color: #c8d8f0;
    transform: translateY(-1px);
}

.idr-option.is-primary {
    color: #fff;
    background: linear-gradient(135deg, #ff78ad, #ff5b90);
    border-color: transparent;
    box-shadow: 0 12px 24px rgba(255, 91, 144, 0.18);
}

.idr-option__price {
    font-size: 12px;
    font-weight: 700;
}

.idr-ghost-button {
    width: 100%;
    min-height: 44px;
    border-radius: 14px;
    border: 1px dashed #d7e3f2;
    background: #f8fafc;
    color: var(--idr-text);
}

.idr-order-form .form-control {
    min-height: 36px;
    border-radius: 10px;
    border: 1px solid var(--idr-line);
    background: #f8fafc;
    box-shadow: none;
    font-size: 13px;
}

.idr-order-form .form-control:focus {
    background: #fff;
    border-color: #c8d8f0;
    box-shadow: none;
}

.idr-order-form .input-group {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 108px;
    gap: 10px;
}

.idr-order-form .input-group-append {
    display: block;
}

.idr-order-form .input-group-text {
    width: 100%;
    height: 40px;
    padding: 0;
    border: 0;
    background: transparent;
}

.qty-group {
    display: inline-grid;
    grid-template-columns: 38px 44px 38px;
    gap: 6px;
    width: 132px;
    overflow: visible;
    border-radius: 0;
}

.qty-group button {
    min-width: 38px;
    min-height: 34px;
    border: 0;
    border-radius: 12px;
    background: linear-gradient(135deg, #ff78ad, #ff5b90);
    color: #fff;
    font-size: 15px;
    font-weight: 700;
    box-shadow: 0 8px 16px rgba(255, 91, 144, 0.2);
}

.qty-group input {
    min-height: 34px;
    padding: 0;
    border-radius: 10px !important;
    border: 1px solid var(--idr-line) !important;
    background: #fff;
    font-size: 13px;
}

.captcha-img {
    width: 100%;
    height: 40px;
    display: block;
    object-fit: cover;
    border: 1px solid var(--idr-line);
    border-radius: 12px;
    cursor: pointer;
}

.idr-pay-list-shell,
.cash-pay {
    padding: 14px;
    border-radius: 16px;
    background: linear-gradient(180deg, #fbfcfe 0%, #ffffff 100%);
    border: 1px solid var(--idr-line);
}

.idr-pay-actions__head label {
    font-weight: 700;
}

.idr-pay-actions__head p {
    margin: -4px 0 12px;
    color: var(--idr-text-soft);
    font-size: 12px;
}

.cash-pay .pay-list {
    display: grid;
    gap: 10px;
}

.cash-pay .pay {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    min-height: 46px;
    padding: 0 12px;
    border-radius: 12px;
    background: #fff;
    border: 1px solid #e7edf5;
    cursor: pointer;
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.cash-pay .pay:hover {
    transform: translateY(-1px);
    border-color: #d4dff0;
    box-shadow: 0 12px 18px rgba(15, 23, 42, 0.08);
}

.cash-pay .pay span {
    margin-right: auto;
    font-weight: 700;
}

.cash-pay .pay::after {
    content: "提交订单";
    color: var(--idr-text-soft);
    font-size: 11px;
    font-weight: 700;
}

.cash-pay .pay img {
    width: 18px;
    height: 18px;
    object-fit: contain;
}

.wholesale-table {
    margin-top: 10px !important;
    overflow: hidden;
    border-radius: 14px;
    border: 1px solid var(--idr-line);
    background: #fff;
}

.wholesale-table th,
.wholesale-table td {
    padding: 10px 12px;
    font-size: 12px;
    color: var(--idr-text);
    border-color: #edf2f7;
    background: #fff;
}

@media (max-width: 992px) {
    .idr-detail__grid {
        grid-template-columns: 1fr;
    }

    .idr-order-panel {
        position: static;
    }

    .idr-detail__cover {
        min-height: 0;
    }
}

@media (max-width: 768px) {
    .idr-detail__title {
        font-size: clamp(1.9rem, 8vw, 2.8rem);
    }

    .idr-detail__cover {
        min-height: 0;
    }

    .idr-order-form .input-group {
        grid-template-columns: 1fr;
    }

    .qty-group {
        grid-template-columns: 36px 42px 36px;
        width: 126px;
    }

    .qty-group button {
        min-width: 36px;
    }

    .idr-field-label {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* Item detail replica reset: align to theme-basic place-order structure. */
.idr-detail__grid {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(300px, 0.9fr);
    gap: 18px;
    align-items: start;
}

.idr-detail .idr-card {
    min-width: 0;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 22px;
    box-shadow: 0 18px 36px rgba(15, 23, 42, 0.08);
}

.idr-hook-only {
    display: none !important;
}

.idr-detail__content {
    padding: 18px 18px 22px;
}

.idr-detail__content.is-height-synced {
    min-height: 0;
}

.idr-detail__aside {
    padding: 16px;
}

.idr-order-panel {
    position: sticky;
    top: 98px;
    align-self: start;
}

.idr-detail__eyebrow {
    display: block;
    padding: 0;
    color: #6b7280;
    font-size: 13px;
    font-weight: 500;
}

.idr-detail__headline {
    min-width: 0;
    margin: 0 0 20px;
    padding-bottom: 18px;
    border-bottom: 1px solid #e5e7eb;
}

.idr-detail__title {
    margin: 0;
    color: #1f2937;
    font-size: clamp(1.35rem, 1.9vw, 1.72rem);
    line-height: 1.24;
    font-weight: 700;
    letter-spacing: 0;
    word-break: break-word;
    overflow-wrap: anywhere;
}

.idr-detail__subtitle {
    display: none;
}

.idr-detail__meta {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 20px;
    padding-top: 14px;
    border-top: 1px solid #f1f5f9;
}

.idr-badge,
.idr-detail__share {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 28px;
    padding: 0 10px;
    border: 1px solid #d1d5db;
    border-radius: 999px;
    background: #fff;
    color: #4b5563;
    font-size: 12px;
    font-weight: 500;
}

.idr-detail__share {
    cursor: pointer;
}

.idr-badge.item-stock.badge-soft-success,
.idr-pill.item-stock.badge-soft-success {
    border-color: #b7dec2;
    background: #f0fdf4;
    color: #15803d;
}

.idr-badge.item-stock.badge-soft-danger,
.idr-pill.item-stock.badge-soft-danger {
    border-color: #fecdd3;
    background: #fff1f2;
    color: #e11d48;
}

.idr-detail__section {
    margin-top: 0;
}

.idr-detail__section + .idr-detail__section {
    margin-top: 26px;
}

.idr-detail__section h2 {
    margin: 0 0 10px;
    color: #6b7280;
    font-size: 16px;
    font-weight: 700;
}

.idr-detail__section p,
.idr-richtext {
    margin: 0;
    color: #4b5563;
    font-size: 14px;
    line-height: 1.85;
}

.idr-richtext img {
    max-width: 100%;
}

.idr-order-panel__intro {
    margin-bottom: 14px;
}

.idr-order-panel__eyebrow {
    color: #6b7280;
    font-size: 13px;
    font-weight: 600;
}

.idr-order-panel__title {
    margin: 4px 0 0;
    color: #111827;
    font-size: 1.05rem;
    line-height: 1.2;
    font-weight: 800;
}

.idr-order-panel__text {
    display: none;
}

.idr-order-panel__price-card,
.idr-price-box {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 16px;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
}

.idr-detail__aside .price {
    color: inherit;
    font-size: .95rem;
    line-height: 1;
    font-weight: 700;
}

.idr-detail__aside .price .unit {
    margin-right: 2px;
    font-size: .9em;
}

.idr-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 30px;
    padding: 0 12px;
    border: 1px solid #d1d5db;
    border-radius: 999px;
    background: #fff;
    color: #374151;
    font-size: 12px;
    font-weight: 600;
}

.idr-pill--price {
    border-color: #3b82f6;
    background: #3b82f6;
    color: #fff;
}

.idr-pill--price .price,
.idr-pill--price .price .unit,
.idr-pill--price .idr-price-box__unit {
    color: #fff;
}

.idr-pill--delivery {
    border-color: #b7dec2;
    background: #f0fdf4;
    color: #15803d;
}

.idr-price-box__unit {
    font-size: 11px;
    font-weight: 600;
}

.idr-order-form {
    gap: 16px !important;
}

.idr-order-form__group,
.idr-form-card {
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
}

.idr-field-label {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 8px;
    color: #374151;
    font-size: 14px;
    font-weight: 600;
}

.idr-field-label small {
    color: #6b7280;
    font-size: 12px;
    font-weight: 400;
}

.idr-option-list {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.idr-option {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 34px;
    padding: 0 10px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    background: #fff;
    color: #374151;
    font-weight: 500;
    transition: border-color .18s ease, background-color .18s ease, color .18s ease;
}

.idr-option:hover {
    border-color: #9ca3af;
    transform: none;
}

.idr-option.is-primary {
    border-color: #111827;
    background: #111827;
    color: #fff;
    box-shadow: none;
}

.idr-option__price {
    font-size: 11px;
    font-weight: 600;
}

.idr-ghost-button {
    width: 100%;
    min-height: 38px;
    border: 1px solid #d1d5db;
    border-radius: 4px;
    background: #fff;
    color: #4b5563;
}

.idr-order-form .form-control {
    min-height: 38px;
    border: 1px solid #d1d5db;
    border-radius: 2px;
    background: #fff;
    box-shadow: none;
    color: #1f2937;
    font-size: 14px;
}

.idr-order-form .form-control:focus {
    border-color: #111827;
    box-shadow: none;
    background: #fff;
}

.idr-order-form .input-group {
    display: flex;
    gap: 8px;
}

.idr-order-form .input-group-append {
    display: block;
    flex: 0 0 116px;
}

.idr-order-form .input-group-text {
    width: 100%;
    height: 38px;
    padding: 0;
    border: 0;
    background: transparent;
}

.qty-group {
    display: flex;
    align-items: center;
    width: 100%;
    gap: 8px;
}

.qty-group input {
    flex: 1 1 auto;
    min-width: 0;
    min-height: 38px;
    padding: 0 12px;
    border: 1px solid #d1d5db !important;
    border-radius: 2px !important;
    background: #fff;
    font-size: 14px;
    text-align: left !important;
}

.qty-group__actions {
    display: flex;
    gap: 8px;
}

.qty-group button {
    width: 38px;
    min-width: 38px;
    height: 38px;
    min-height: 38px;
    border: 1px solid #d1d5db;
    border-radius: 2px;
    background: #fff;
    color: #111827;
    font-size: 18px;
    font-weight: 500;
    box-shadow: none;
}

.qty-group button:hover {
    background: #f9fafb;
}

.captcha-img {
    width: 100%;
    height: 38px;
    display: block;
    object-fit: cover;
    border: 1px solid #d1d5db;
    border-radius: 2px;
    cursor: pointer;
}

.idr-pay-list-shell,
.cash-pay {
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
}

.idr-pay-actions__head label {
    color: #374151;
    font-size: 14px;
    font-weight: 600;
}

.idr-pay-actions__head p {
    margin: 6px 0 12px;
    color: #6b7280;
    font-size: 12px;
    line-height: 1.6;
}

.cash-pay .pay-list {
    display: grid;
    gap: 10px;
}

.cash-pay .pay {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    min-height: 42px;
    padding: 0 14px;
    border: 1px solid #111827;
    border-radius: 6px;
    background: #111827;
    cursor: pointer;
    transition: background-color .18s ease, border-color .18s ease;
}

.cash-pay .pay:hover {
    transform: none;
    background: #0f172a;
    border-color: #0f172a;
    box-shadow: none;
}

.cash-pay .pay span {
    margin: 0;
    color: #fff;
    font-weight: 600;
}

.cash-pay .pay::after {
    content: none;
}

.cash-pay .pay img {
    width: 16px;
    height: 16px;
    object-fit: contain;
    filter: brightness(0) invert(1);
}

.wholesale-table {
    margin-top: 10px !important;
    overflow: hidden;
    border: 1px solid #e5e7eb;
    border-radius: 0;
    background: #fff;
}

.wholesale-table th,
.wholesale-table td {
    padding: 8px 10px;
    color: #4b5563;
    font-size: 12px;
    border-color: #e5e7eb;
    background: #fff;
}

@media (max-width: 992px) {
    .idr-detail__grid {
        grid-template-columns: 1fr;
    }

    .idr-order-panel {
        position: static;
    }
}

@media (max-width: 768px) {
    .idr-detail__content,
    .idr-detail__aside {
        padding: 16px;
    }

    .idr-detail__title {
        font-size: clamp(1.45rem, 7vw, 1.9rem);
    }

    .idr-field-label {
        flex-direction: column;
        align-items: flex-start;
    }

    .qty-group {
        flex-direction: column;
        align-items: stretch;
    }

    .qty-group__actions {
        justify-content: flex-end;
    }

    .idr-order-form .input-group {
        flex-direction: column;
    }

    .idr-order-form .input-group-append {
        flex-basis: auto;
    }
}

.idr-detail .input-group.qty-group {
    display: flex;
    align-items: center;
    flex-direction: row;
    flex-wrap: nowrap;
    width: 100%;
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
    gap: 8px;
}

.idr-detail .input-group.qty-group > input[type=number] {
    flex: 1 1 auto;
    min-width: 0;
    min-height: 38px;
    padding: 0 12px;
    border: 1px solid #d1d5db !important;
    border-radius: 2px !important;
    background: #fff;
    color: #1f2937;
    font-size: 14px;
    font-weight: 500;
    text-align: left !important;
}

.idr-detail .input-group.qty-group > .qty-group__actions {
    display: flex;
    gap: 8px;
}

.idr-detail .input-group.qty-group > .qty-group__actions > button {
    width: 38px;
    min-width: 38px;
    height: 38px;
    border: 1px solid #d1d5db;
    border-radius: 2px;
    background: #fff;
    color: #111827;
    font-size: 18px;
    font-weight: 500;
    box-shadow: none;
}

.idr-detail .input-group.qty-group > .qty-group__actions > button:hover {
    background: #f9fafb;
}

.idr-detail .cash-pay {
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

.idr-detail .cash-pay .form-label {
    margin: 0;
    color: #374151;
    font-size: 14px;
    font-weight: 600;
}

.idr-detail .cash-pay .pay-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    padding-top: 0;
    border-top: 0;
}

.idr-detail .cash-pay .pay-list .pay,
.idr-detail .cash-pay .pay-list .pay.active,
.idr-detail .cash-pay .pay-list .pay.is-primary,
.idr-detail .cash-pay .pay-list .pay.selected {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    min-height: 40px;
    padding: 0 14px;
    border: 1px solid #f1e8ef;
    border-radius: 12px;
    background: linear-gradient(180deg, #ffffff 0%, #f8f5f8 100%);
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.08);
}

.idr-detail .cash-pay .pay-list .pay span,
.idr-detail .cash-pay .pay-list .pay.active span,
.idr-detail .cash-pay .pay-list .pay.is-primary span,
.idr-detail .cash-pay .pay-list .pay.selected span {
    margin: 0;
    color: #a1a1aa;
    font-size: 14px;
    font-weight: 700;
}

.idr-detail .cash-pay .pay-list .pay img {
    width: 18px;
    height: 18px;
    border-radius: 4px;
    object-fit: contain;
    filter: none;
    box-shadow: none;
}

.idr-detail .cash-pay .pay-list .pay::after {
    content: none;
}

.idr-detail .cash-pay .pay-list .pay:hover,
.idr-detail .cash-pay .pay-list .pay.active:hover,
.idr-detail .cash-pay .pay-list .pay.is-primary:hover,
.idr-detail .cash-pay .pay-list .pay.selected:hover {
    background: linear-gradient(180deg, #ffffff 0%, #f5f1f5 100%);
    border-color: #ebdfe7;
    box-shadow: 0 10px 20px rgba(15, 23, 42, 0.1);
}

@media (max-width: 768px) {
    .idr-detail .cash-pay .pay-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
    }

    .idr-detail .cash-pay .pay-list .pay,
    .idr-detail .cash-pay .pay-list .pay.active,
    .idr-detail .cash-pay .pay-list .pay.is-primary,
    .idr-detail .cash-pay .pay-list .pay.selected {
        min-height: 38px;
        padding: 0 10px;
    }

    .idr-detail .cash-pay .pay-list .pay span,
    .idr-detail .cash-pay .pay-list .pay.active span,
    .idr-detail .cash-pay .pay-list .pay.is-primary span,
    .idr-detail .cash-pay .pay-list .pay.selected span {
        font-size: 13px;
    }

    .idr-detail .input-group.qty-group {
        flex-direction: row;
        align-items: center;
    }

    .idr-detail .input-group.qty-group > .qty-group__actions {
        justify-content: flex-start;
        flex: 0 0 auto;
    }
}

@media (max-width: 768px) {
    .idr-home {
        padding-top: 14px;
        padding-bottom: 28px;
    }

    .idr-topbar__inner {
        flex-wrap: nowrap;
        gap: 12px;
        min-height: 64px;
        padding: 10px 0;
    }

    .idr-topbar__left,
    .idr-topbar__right {
        flex-wrap: nowrap;
        gap: 10px;
        min-width: 0;
    }

    .idr-brand {
        gap: 10px;
        min-width: 0;
        font-size: 1.2rem;
    }

    .idr-brand span {
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .idr-link-button.idr-topbar__query {
        min-height: 38px;
        padding: 0 14px;
        font-size: 13px;
        box-shadow: 0 8px 18px rgba(37, 99, 235, 0.16);
    }

    .idr-notice {
        margin-top: 10px;
        border-radius: 18px;
    }

    .idr-categories {
        gap: 10px 8px;
        margin: 16px 0 14px;
    }

    .idr-theme2-list {
        gap: 14px;
    }

    .idr-project-details {
        border-radius: 18px;
    }

    .idr-project-summary {
        padding: 12px 14px;
    }

    .idr-project-summary__title {
        font-size: 0.95rem;
        line-height: 1.4;
    }

    .idr-project-body {
        margin: 0 10px 10px;
    }

    .idr-project-table-wrap {
        overflow: hidden;
        border-radius: 12px;
    }

    .idr-project-table {
        min-width: 0;
        display: block;
        width: 100%;
        table-layout: fixed;
    }

    .idr-project-table thead,
    .idr-project-table tbody {
        display: block;
    }

    .idr-project-table thead tr,
    .idr-project-table tbody tr {
        display: grid;
        grid-template-columns: minmax(0, 1fr) 52px 58px 28px;
        align-items: stretch;
    }

    .idr-project-col--stock,
    .idr-project-col--price,
    .idr-project-col--action {
        width: auto;
    }

    .idr-project-table thead th {
        display: flex;
        align-items: center;
        box-sizing: border-box;
        height: 100%;
        min-width: 0;
        padding: 12px 10px;
        font-size: 12px;
    }

    .idr-project-table tbody td {
        display: flex;
        align-items: center;
        box-sizing: border-box;
        height: 100%;
        min-width: 0;
        padding: 12px 10px;
        font-size: 13px;
    }

    .idr-project-table thead th:nth-child(2),
    .idr-project-table tbody td:nth-child(2) {
        justify-content: center;
    }

    .idr-project-table thead th:nth-child(3),
    .idr-project-table tbody td:nth-child(3) {
        justify-content: center;
    }

    .idr-project-table thead th:nth-child(4),
    .idr-project-table tbody td:nth-child(4) {
        justify-content: flex-end;
    }

    .idr-project-row__name {
        font-size: 12px;
        line-height: 1.55;
        word-break: break-word;
    }

    .idr-project-row__stock,
    .idr-project-row__price,
    .idr-project-row__action {
        width: auto;
        text-align: center;
    }

    .idr-project-head-wrap--stock,
    .idr-project-stock-wrap,
    .idr-project-head-wrap--price,
    .idr-project-price-wrap {
        width: auto;
        justify-content: center;
        transform: none;
    }

    .idr-project-price-wrap {
        flex-direction: column;
        gap: 2px;
        align-items: center;
    }

    .idr-project-price {
        font-size: 1.05rem;
        line-height: 1;
    }

    .idr-project-unit {
        margin-left: 0;
        line-height: 1;
    }

    .idr-project-stock-text {
        min-width: 0;
        font-size: 13px;
        line-height: 1.2;
    }

    .idr-cart-action {
        width: 28px;
        height: 28px;
    }

    .idr-cart-action__icon {
        width: 20px;
        height: 20px;
    }
}

@media (max-width: 768px) {
    .idr-detail__headline {
        margin-bottom: 16px;
        padding-bottom: 14px;
    }

    .idr-detail__title {
        font-size: clamp(1.15rem, 5.1vw, 1.35rem);
        line-height: 1.18;
    }
}
