/* ===== 产品详情页 ===== */
.product-page { padding: 28px 0 80px; }

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 22px;
}

.breadcrumb a:hover { color: var(--primary); }
.breadcrumb em { font-style: normal; color: var(--text); }

.product-hero {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 44px;
    align-items: start;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 30px;
    box-shadow: var(--shadow);
}

/* 图集 */
.gallery-main {
    background: #f4f7fc;
    border: 1px solid var(--border);
    border-radius: 14px;
    overflow: hidden;
    aspect-ratio: 1 / 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.gallery-main img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.gallery-thumbs {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 8px;
    margin-top: 12px;
}

.gallery-thumbs .thumb {
    padding: 0;
    border: 2px solid transparent;
    border-radius: 9px;
    overflow: hidden;
    background: #f4f7fc;
    cursor: pointer;
    aspect-ratio: 1 / 1;
    transition: border-color .15s;
}

.gallery-thumbs .thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.gallery-thumbs .thumb.active,
.gallery-thumbs .thumb:hover { border-color: var(--primary); }

/* 购买面板 */
.brand-row, .meta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

.chip {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 999px;
    background: #eef3fd;
    color: #355c9e;
    font-size: 12px;
    font-weight: 600;
}

.chip-sale { background: #ffe9e3; color: #c0392b; }

.product-title {
    margin: 14px 0 10px;
    font-size: clamp(22px, 2.4vw, 30px);
    line-height: 1.35;
    letter-spacing: -0.2px;
}

.rating-row {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: var(--text-muted);
}

.stars { color: #f5a623; letter-spacing: 2px; font-size: 15px; }
.rating-value { font-weight: 600; color: var(--text); }

.price-row {
    display: flex;
    align-items: baseline;
    gap: 12px;
    margin: 18px 0 6px;
}

.price {
    font-size: 34px;
    font-weight: 800;
    color: #c0392b;
    letter-spacing: -0.5px;
}

.price-regular {
    color: #98a3b6;
    font-size: 17px;
}

.price-range {
    margin: 0 0 6px;
    font-size: 12.5px;
    color: var(--text-muted);
}

.variant-block { margin: 18px 0 6px; }
.variant-block .label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-muted);
    margin-bottom: 8px;
}

.variant-options { display: flex; gap: 10px; flex-wrap: wrap; }

.variant {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
    padding: 9px 16px;
    border: 1.5px solid var(--border);
    border-radius: 10px;
    background: #fff;
    color: var(--text);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: border-color .15s, background .15s;
}

.variant small { font-weight: 500; color: var(--text-muted); font-size: 12px; }

.variant:hover { border-color: #b9c9e6; }
.variant.active {
    border-color: var(--primary);
    background: #f2f6ff;
    color: var(--primary-dark);
}

.meta-row {
    margin: 18px 0;
    font-size: 13px;
    color: var(--text-muted);
    gap: 16px;
}

.availability {
    padding: 3px 12px;
    border-radius: 999px;
    font-weight: 600;
}

.availability.in-stock { background: #e7f8ee; color: #1e8e46; }
.availability.out-stock { background: #fdeceb; color: #c0392b; }

.highlight-list {
    margin: 0 0 24px;
    padding: 18px 20px 18px 38px;
    background: #fafcff;
    border: 1px solid var(--border);
    border-radius: 12px;
    font-size: 14px;
    color: #40506a;
}

.highlight-list li { margin: 7px 0; }
.highlight-list li::marker { color: var(--primary); }

.buy-actions { display: flex; gap: 14px; flex-wrap: wrap; }

.buy-actions .btn {
    padding: 15px 42px;
    font-size: 16px;
    font-weight: 700;
    border-radius: 999px;
    letter-spacing: .01em;
}

.buy-actions .btn-primary {
    border: 0;
    background: linear-gradient(135deg, #5c8dff 0%, #2f6bff 45%, #1f52d0 100%);
    box-shadow: 0 12px 26px rgba(47, 107, 255, 0.38), inset 0 1px 0 rgba(255, 255, 255, 0.28);
}

.buy-actions .btn-primary:hover {
    background: linear-gradient(135deg, #6b98ff 0%, #3a75ff 45%, #1a49bd 100%);
    box-shadow: 0 16px 34px rgba(47, 107, 255, 0.46), inset 0 1px 0 rgba(255, 255, 255, 0.32);
    transform: translateY(-2px);
}

.btn-outline {
    background: #fff;
    border: 1.5px solid var(--primary);
    color: var(--primary);
}

.btn-outline:hover { background: #f2f6ff; transform: translateY(-1px); }

.buy-actions .btn-outline:hover {
    background: #f2f6ff;
    box-shadow: 0 10px 22px rgba(47, 107, 255, 0.16);
    transform: translateY(-2px);
}

.qty-block {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 0 0 20px;
}

.qty-block label {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-muted);
}

.qty-block input {
    width: 92px;
    padding: 9px 12px;
    border: 1px solid var(--border);
    border-radius: 9px;
    font-size: 14px;
    text-align: center;
    background: #fff;
    color: var(--text);
}

.qty-block input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(47, 107, 255, 0.15);
}

.secondary-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
    margin-top: 16px;
}

.link-muted {
    font-size: 13px;
    color: var(--text-muted);
    transition: color .15s;
}

.link-muted:hover { color: var(--primary); }

.data-source {
    margin: 16px 0 0;
    font-size: 12px;
    color: #8b97ab;
    line-height: 1.8;
    word-break: break-all;
}

.data-source a { color: var(--primary); }
.data-source .warn { color: #c0392b; }

/* 规格区 */
.product-section {
    margin-top: 34px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 30px;
}

.product-section h2 {
    margin: 0 0 20px;
    font-size: 22px;
    letter-spacing: -0.2px;
}

.spec-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 26px;
    align-items: start;
}

.spec-grid.single { grid-template-columns: 1fr; }

.spec-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.spec-table th,
.spec-table td {
    padding: 11px 14px;
    border-bottom: 1px solid var(--border);
    text-align: left;
    vertical-align: top;
}

.spec-table th {
    width: 30%;
    color: var(--text-muted);
    font-weight: 600;
    background: #fafcff;
    white-space: nowrap;
}

.spec-table tr:last-child th,
.spec-table tr:last-child td { border-bottom: none; }

.package-card {
    background: #fafcff;
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 22px;
}

.package-card h3 { margin: 0 0 12px; font-size: 16px; }
.package-card ul { margin: 0; padding-left: 20px; font-size: 14px; color: #40506a; }
.package-card li { margin: 6px 0; }
.package-card .note {
    margin: 16px 0 0;
    padding-top: 12px;
    border-top: 1px dashed var(--border);
    font-size: 12.5px;
    color: #c0392b;
}

/* 描述区 */
.product-description {
    font-size: 15px;
    color: #33415c;
    line-height: 1.85;
    overflow-wrap: break-word;
}

.product-description p { margin: 0 0 14px; }
.product-description strong { color: var(--text); }
.product-description h2,
.product-description h3,
.product-description h4 { margin: 26px 0 12px; font-size: 18px; }

.product-description figure,
.product-description div { margin: 0 0 14px; }

.product-description img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    display: block;
    margin: 8px auto;
}

.product-description a { color: var(--primary); text-decoration: underline; }

.product-taxonomy {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.product-taxonomy h3 { margin: 0 0 10px; font-size: 15px; color: var(--text-muted); }
.product-taxonomy p { margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }

.empty-state {
    text-align: center;
    padding: 90px 0;
}

.empty-state h1 { margin: 0 0 10px; font-size: 26px; }
.empty-state p { color: var(--text-muted); margin: 0 0 24px; }

/* 首页产品展示区 */
.product-spotlight { padding: 20px 0 72px; }

.spotlight-card {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 40px;
    align-items: center;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 32px;
    box-shadow: var(--shadow);
}

.spotlight-media {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.spotlight-media img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: 12px;
    background: #f4f7fc;
}

.spotlight-media img:first-child { grid-column: span 2; aspect-ratio: 2 / 1; }

.spotlight-copy h2 { margin: 0 0 10px; font-size: 24px; line-height: 1.4; }
.spotlight-copy p { margin: 0 0 18px; color: var(--text-muted); font-size: 15px; }

.spotlight-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    margin-bottom: 22px;
    font-size: 14px;
}

.spotlight-price { font-size: 24px; font-weight: 800; color: #c0392b; }

/* 首页产品目录 */
.catalog-section { padding: 64px 0 8px; }

.catalog-section:first-of-type { padding-top: 56px; }

.catalog-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
    text-align: left;
    margin-bottom: 26px;
}

.catalog-head h2 { margin: 0 0 4px; font-size: 27px; letter-spacing: -0.3px; }
.catalog-head p { margin: 0; color: var(--text-muted); font-size: 14px; }
.catalog-head .link-muted { flex-shrink: 0; }

.catalog-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
}

.product-card {
    display: flex;
    flex-direction: column;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 14px;
    overflow: hidden;
    transition: transform .2s, box-shadow .2s, border-color .2s;
}

.product-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow);
    border-color: #d3ddf0;
}

.card-media {
    position: relative;
    display: block;
    background: #f4f7fc;
    aspect-ratio: 1 / 1;
}

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

.card-media.img-missing::before {
    content: "Image unavailable";
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #9aa8bd;
    font-size: 13px;
}

.card-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    color: #9aa8bd;
    font-size: 13px;
}

.sale-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    padding: 3px 9px;
    border-radius: 999px;
    background: #c0392b;
    color: #fff;
    font-size: 12px;
    font-weight: 700;
}

.stock-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    padding: 3px 9px;
    border-radius: 999px;
    background: rgba(26, 34, 51, .82);
    color: #fff;
    font-size: 12px;
    font-weight: 700;
}

.price-request {
    font-size: 13px;
    font-weight: 600;
    color: #8b97ab;
}

.card-body {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 14px 15px 16px;
    flex: 1;
}

.card-title {
    margin: 0;
    font-size: 14px;
    line-height: 1.5;
    font-weight: 600;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 42px;
}

.card-title a { color: var(--text); }
.card-title a:hover { color: var(--primary); }

.card-price {
    display: flex;
    align-items: baseline;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: auto;
}

.price-now {
    font-size: 17px;
    font-weight: 800;
    color: #c0392b;
    letter-spacing: -0.2px;
}

.price-old { font-size: 13px; color: #98a3b6; }

.card-cta {
    align-self: flex-start;
    margin-top: 4px;
    padding: 7px 14px;
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    color: var(--text);
    transition: border-color .15s, color .15s, background .15s;
}

.card-cta:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: #f5f8ff;
}

@media (max-width: 1280px) {
    .catalog-grid { grid-template-columns: repeat(4, 1fr); }
}

@media (max-width: 1000px) {
    .catalog-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 760px) {
    .catalog-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
    .catalog-head { flex-direction: column; align-items: flex-start; gap: 8px; }
    .catalog-section { padding-top: 46px; }
}

/* 备用首页（合规信息页） */
.alt-page { padding-bottom: 40px; }

.alt-section,
#categories,
#policies,
#contact { scroll-margin-top: 84px; }

.alt-hero {
    padding: 74px 0 56px;
    background:
        radial-gradient(800px 380px at 85% -10%, rgba(47, 107, 255, 0.12), transparent 60%),
        radial-gradient(600px 320px at 0% 0%, rgba(90, 200, 250, 0.1), transparent 55%);
}

.alt-hero h1 { margin: 16px 0 12px; font-size: clamp(30px, 4vw, 46px); letter-spacing: -0.5px; }
.alt-hero .lead { max-width: 46em; }

.alt-section { padding: 52px 0 6px; }

.alt-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
}

.alt-card,
.policy-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 22px;
    box-shadow: 0 6px 18px rgba(24, 48, 96, 0.04);
}

.alt-card h3,
.policy-card h3 { margin: 0 0 8px; font-size: 16px; }
.alt-card p,
.policy-card p { margin: 0; color: var(--text-muted); font-size: 14px; line-height: 1.75; }

.alt-catalog { grid-template-columns: repeat(3, 1fr); }

.policy-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
}

.contact-card {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 32px;
    align-items: center;
    background: linear-gradient(135deg, #ffffff, #f3f8ff 70%);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 32px;
    box-shadow: var(--shadow);
}

.contact-card h2 { margin: 0 0 8px; font-size: 24px; }
.contact-card > div p { margin: 0; color: var(--text-muted); font-size: 14px; max-width: 38em; }

.contact-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.contact-list li {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    font-size: 13.5px;
    padding-bottom: 10px;
    border-bottom: 1px dashed var(--border);
}
.contact-list li:last-child { border-bottom: none; padding-bottom: 0; }
.contact-list span { color: var(--text-muted); flex-shrink: 0; }
.contact-list em { font-style: normal; text-align: right; }

@media (max-width: 960px) {
    .alt-grid { grid-template-columns: repeat(2, 1fr); }
    .alt-catalog { grid-template-columns: repeat(3, 1fr); }
    .contact-card { grid-template-columns: 1fr; gap: 20px; }
}

@media (max-width: 640px) {
    .alt-grid,
    .policy-grid,
    .alt-catalog { grid-template-columns: 1fr; }
    .alt-hero { padding: 52px 0 40px; }
    .alt-section { padding-top: 40px; }
}

@media (max-width: 420px) {
    .catalog-grid { grid-template-columns: 1fr; }
    .card-title { min-height: 0; }
    .header-inner { gap: 10px; }
}

/* 首页商品区块：两行横向滑动，各断点调整可见列数 */
.home-catalog-grid {
    grid-template-columns: none;
    grid-auto-flow: column;
    grid-template-rows: repeat(2, auto);
    grid-auto-columns: calc(20% - 16px);
    overflow-x: auto;
    overflow-y: hidden;
    padding-bottom: 10px;
    scroll-snap-type: x proximity;
    scroll-behavior: smooth;
    scrollbar-width: thin;
    -webkit-overflow-scrolling: touch;
}

.home-catalog-grid .product-card { scroll-snap-align: start; }

@media (max-width: 1280px) {
    .home-catalog-grid { grid-auto-columns: calc(25% - 15px); }
}

@media (max-width: 1000px) {
    .home-catalog-grid { grid-auto-columns: calc(33.333% - 13.4px); }
}

@media (max-width: 760px) {
    .home-catalog-grid { grid-auto-columns: calc(50% - 7px); }
}

@media (max-width: 420px) {
    .home-catalog-grid { grid-auto-columns: 78%; }
}

/* 左右滑动按钮 */
.carousel-nav {
    display: flex;
    gap: 8px;
    flex-shrink: 0;
}

.carousel-nav button {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 1px solid var(--border);
    background: #fff;
    color: var(--text);
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: border-color .15s, color .15s;
}

.carousel-nav button:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.carousel-nav button:disabled {
    opacity: .35;
    cursor: not-allowed;
}

@media (max-width: 760px) {
    .carousel-nav button { width: 34px; height: 34px; font-size: 18px; }
}


/* 响应式 */
@media (max-width: 960px) {
    .product-hero { grid-template-columns: 1fr; gap: 28px; padding: 20px; }
    .spec-grid { grid-template-columns: 1fr; }
    .product-taxonomy { grid-template-columns: 1fr; }
    .gallery-thumbs { grid-template-columns: repeat(5, 1fr); }
}

@media (max-width: 600px) {
    .product-section { padding: 22px 18px; }
    .price { font-size: 28px; }
    .gallery-thumbs { grid-template-columns: repeat(4, 1fr); }
    .buy-actions { flex-direction: column; }
    .buy-actions .btn { width: 100%; }
}

/* ===== 商品加载骨架 ===== */
.skeleton-progress {
    height: 3px;
    margin-bottom: 16px;
    border-radius: 99px;
    background: #e8eef9;
    overflow: hidden;
}

.skeleton-progress span {
    display: block;
    width: 40%;
    height: 100%;
    border-radius: 99px;
    background: linear-gradient(90deg, #2f6bff, #6f4bff);
    animation: skeleton-progress 1.2s ease-in-out infinite;
}

@keyframes skeleton-progress {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(350%); }
}

.skeleton-block {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    background: #eef2f8;
}

.skeleton-block::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(100deg, transparent 20%, rgba(255, 255, 255, 0.9) 50%, transparent 80%);
    transform: translateX(-100%);
    animation: skeleton-shimmer 1.2s ease-in-out infinite;
}

@keyframes skeleton-shimmer {
    to { transform: translateX(100%); }
}

.skeleton-gallery {
    display: flex;
    align-items: center;
    justify-content: center;
    aspect-ratio: 1 / 1;
    border-radius: 14px;
}

.skeleton-spinner {
    position: relative;
    z-index: 1;
    width: 42px;
    height: 42px;
    border: 4px solid rgba(47, 107, 255, 0.18);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: skeleton-spin 0.8s linear infinite;
}

.skeleton-spinner.small {
    width: 18px;
    height: 18px;
    border-width: 2px;
}

@keyframes skeleton-spin {
    to { transform: rotate(360deg); }
}

.skeleton-thumbs {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 8px;
    margin-top: 12px;
}

.skeleton-thumbs .skeleton-block { aspect-ratio: 1 / 1; border-radius: 9px; }

.skeleton-chip { width: 90px; height: 24px; border-radius: 999px; }
.skeleton-title { width: 92%; height: 30px; margin-top: 14px; }
.skeleton-title.short { width: 64%; margin-top: 10px; }
.skeleton-price { width: 160px; height: 34px; margin: 22px 0 18px; }
.skeleton-line { width: 100%; height: 14px; margin-bottom: 10px; }
.skeleton-line.short { width: 72%; }
.skeleton-cta { display: flex; gap: 10px; margin-top: 24px; }
.skeleton-button { flex: 1; height: 46px; }
.skeleton-button.ghost { background: #f4f7fc; }
.skeleton-note {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 18px 0 0;
    font-size: 13px;
    color: var(--text-muted);
}

.skeleton-dots { display: inline-flex; gap: 3px; }

.skeleton-dots i {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--primary);
    opacity: 0.25;
    animation: skeleton-dot 1.2s ease-in-out infinite;
}

.skeleton-dots i:nth-child(2) { animation-delay: 0.15s; }
.skeleton-dots i:nth-child(3) { animation-delay: 0.3s; }

@keyframes skeleton-dot {
    0%, 80%, 100% { opacity: 0.2; transform: translateY(0); }
    40% { opacity: 1; transform: translateY(-3px); }
}

.skeleton-retry {
    display: inline-block;
    margin-top: 10px;
    font-size: 13.5px;
    font-weight: 600;
    color: var(--primary);
}

.skeleton-retry[hidden] { display: none; }

/* ===== 商品详情 AI 组合推荐 ===== */
.product-ai .ai-pair-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
}

.product-ai .ai-pair-head h2 { margin: 0 0 6px; }

.ai-pair-lead {
    margin: 0;
    max-width: 60ch;
    font-size: 13.5px;
    color: var(--text-muted);
}

.ai-pair-toggle { flex-shrink: 0; }

.ai-pair-panel {
    margin-top: 18px;
    padding-top: 18px;
    border-top: 1px dashed var(--border);
}

.ai-pair-panel[hidden] { display: none; }

.ai-pair-messages {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 14px;
}

.ai-pair-messages:empty { margin-bottom: 0; }

.ai-pair-form { display: flex; align-items: center; gap: 10px; }

.ai-pair-form input {
    flex: 1;
    min-width: 0;
    padding: 11px 16px;
    border: 1px solid var(--border);
    border-radius: 999px;
    background: #fff;
    font-family: inherit;
    font-size: 14px;
    color: var(--text);
}

.ai-pair-form input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(47, 107, 255, 0.15);
}

.ai-pair-note { margin: 10px 0 0; font-size: 12px; color: var(--text-muted); }

.ai-pair-error { font-size: 13px; color: #b03a2e; }

.product-ai .ai-msg.typing .ai-bubble { display: flex; align-items: center; gap: 8px; }

.ai-typing-label { font-size: 13px; color: var(--text-muted); }

.product-ai .ai-results { margin-top: 10px; }

.product-ai .ai-result-badge {
    align-self: flex-start;
    margin-top: 2px;
    padding: 2px 8px;
    border-radius: 999px;
    background: #fdf0ef;
    color: #b03a2e;
    font-size: 11px;
    font-weight: 700;
}

.product-ai .ai-result.is-unavailable { border-color: #f3cfcb; }

.product-ai .ai-result-link {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
    min-width: 0;
}

.ai-buy {
    flex-shrink: 0;
    padding: 7px 10px;
    border: 1px solid var(--primary);
    border-radius: 8px;
    background: var(--primary);
    color: #fff;
    font-family: inherit;
    font-size: 11.5px;
    font-weight: 700;
    cursor: pointer;
    transition: background .15s;
}

.ai-buy:hover { background: var(--primary-dark); }
.ai-buy:disabled { cursor: default; opacity: 0.85; }
.ai-buy.is-added { background: #22a35a; border-color: #22a35a; }
.ai-buy.is-failed { background: #b03a2e; border-color: #b03a2e; }

/* ===== 突出 AI Advisor ===== */
.product-ai {
    position: relative;
    overflow: hidden;
    padding: clamp(24px, 3vw, 36px);
    background:
        radial-gradient(560px 220px at 100% 0%, rgba(47, 107, 255, 0.18), transparent 65%),
        linear-gradient(135deg, #f8fbff 0%, #eef4ff 100%);
    border: 1px solid rgba(47, 107, 255, 0.22);
    box-shadow: 0 22px 48px -34px rgba(16, 38, 90, 0.45);
}

.product-ai::after {
    content: "";
    position: absolute;
    right: -90px;
    bottom: -120px;
    width: 280px;
    height: 280px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(47, 107, 255, 0.14), transparent 70%);
    pointer-events: none;
}

.product-ai .ai-pair-head {
    position: relative;
    z-index: 1;
    align-items: center;
}

.ai-pair-title { max-width: 640px; }

.ai-pair-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    border: 1px solid rgba(47, 107, 255, 0.24);
    border-radius: 999px;
    background: #fff;
    color: var(--primary);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.product-ai .ai-pair-head h2 {
    margin: 12px 0 8px;
    font-size: clamp(24px, 2.6vw, 32px);
    letter-spacing: -0.03em;
}

.ai-pair-lead {
    max-width: 58ch;
    font-size: 14px;
}

.ai-pair-orb {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    border-radius: 20px;
    color: #fff;
    background: linear-gradient(135deg, #5a9bff, #2f6bff 60%, #10265a);
    box-shadow: 0 14px 30px -14px rgba(47, 107, 255, 0.7);
    flex-shrink: 0;
}

.ai-pair-panel {
    position: relative;
    z-index: 1;
    margin-top: 20px;
    padding-top: 0;
    border-top: 0;
}

.ai-pair-chiprow {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 14px;
}

.ai-chip {
    padding: 6px 12px;
    border: 1px solid rgba(47, 107, 255, 0.25);
    border-radius: 999px;
    background: #fff;
    color: #24406f;
    font-family: inherit;
    font-size: 12.5px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.15s, border-color 0.15s, color 0.15s;
}

.ai-chip:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
}

.ai-pair-form {
    padding: 5px;
    background: #fff;
    border: 1px solid rgba(47, 107, 255, 0.22);
    border-radius: 999px;
    box-shadow: 0 10px 26px -20px rgba(16, 38, 90, 0.5);
}

.ai-pair-form input {
    border: 0;
    border-radius: 999px;
    padding: 10px 16px;
    box-shadow: none;
}

.ai-pair-form input:focus { box-shadow: none; }

.ai-pair-form .search-submit { padding: 10px 22px; }

.ai-quick-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-top: 14px;
    padding: 11px 16px;
    border: 1px solid rgba(47, 107, 255, 0.22);
    border-radius: 12px;
    background: linear-gradient(135deg, #f4f8ff, #e9f1ff);
    color: #1f4fa8;
    font-size: 13.5px;
    font-weight: 600;
    text-decoration: none;
    transition: border-color 0.15s, transform 0.15s;
}

.ai-quick-link:hover {
    border-color: rgba(47, 107, 255, 0.5);
    transform: translateY(-1px);
}

/* ===== 商品评价 ===== */
.reviews-section { scroll-margin-top: 90px; }

.reviews-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 18px;
}

.reviews-eyebrow {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--primary);
}

.reviews-head h2 { margin: 6px 0 0; }

.reviews-score {
    display: flex;
    align-items: center;
    gap: 12px;
}

.reviews-score strong {
    font-size: 36px;
    line-height: 1;
    letter-spacing: -0.04em;
}

.reviews-score small {
    display: block;
    margin-top: 2px;
    color: var(--text-muted);
    font-size: 12px;
}

.review-notice {
    margin: 0 0 16px;
    padding: 10px 14px;
    border-radius: 10px;
    font-size: 13.5px;
}

.review-notice.is-success {
    background: #eaf8ef;
    border: 1px solid #bfe7cc;
    color: #1e6b3a;
}

.review-notice.is-error {
    background: #fdf0ef;
    border: 1px solid #f2c8c4;
    color: #a23a31;
}

.review-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.review-item {
    padding: 16px 18px;
    background: #fbfcff;
    border: 1px solid var(--border);
    border-radius: 14px;
}

.review-item-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    color: var(--text-muted);
    font-size: 13px;
}

.review-item-head strong {
    margin-right: 8px;
    color: var(--text);
    font-size: 14px;
}

.review-item-head time { font-size: 12px; }

.review-item h3 {
    margin: 10px 0 6px;
    font-size: 15px;
}

.review-item p {
    margin: 0;
    color: #33405a;
    font-size: 14px;
    line-height: 1.65;
}

.reviews-empty {
    margin: 0 0 16px;
    padding: 16px;
    border: 1px dashed var(--border);
    border-radius: 12px;
    color: var(--text-muted);
    font-size: 14px;
}

.review-form {
    margin-top: 22px;
    padding-top: 22px;
    border-top: 1px solid var(--border);
}

.review-form h3 {
    margin: 0 0 14px;
    font-size: 17px;
}

.review-form-grid {
    display: grid;
    grid-template-columns: 1fr 220px;
    gap: 14px;
}

.review-form label {
    display: block;
    margin-bottom: 14px;
    color: #2c3b55;
    font-size: 13px;
    font-weight: 600;
}

.review-form input,
.review-form select,
.review-form textarea {
    width: 100%;
    margin-top: 6px;
    padding: 10px 12px;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: #fff;
    color: var(--text);
    font-family: inherit;
    font-size: 14px;
    font-weight: 400;
}

.review-form textarea { resize: vertical; }

.review-form input:focus,
.review-form select:focus,
.review-form textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(47, 107, 255, 0.13);
}

.review-optional {
    color: var(--text-muted);
    font-weight: 400;
}

.review-form-foot {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
}

.review-form-note {
    margin: 0;
    color: var(--text-muted);
    font-size: 12px;
}

.review-hp {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.rating-row .review-count {
    color: var(--text-muted);
    text-decoration: none;
}

.rating-row .review-count:hover {
    color: var(--primary);
    text-decoration: underline;
}

@media (max-width: 760px) {
    .ai-pair-orb { display: none; }
    .ai-pair-form {
        border-radius: 18px;
        flex-wrap: wrap;
    }
    .ai-pair-form .search-submit { width: 100%; }
}

@media (max-width: 640px) {
    .review-form-grid { grid-template-columns: 1fr; }
    .reviews-score strong { font-size: 30px; }
}
