/**
 * 解决方案详情页 — 对齐 demo/src/app/pages/SolutionDetailPage.tsx
 * 与 fangan_*.html 共用
 */

.demo-solution-page {
    width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    box-sizing: border-box;
    background: #fff;
    flex: 1;
    overflow-x: hidden;
}

.demo-solution-page__inner {
    max-width: 1280px;
    width: 100%;
    margin: 0 auto;
    padding-left: 16px;
    padding-right: 16px;
}

@media (min-width: 768px) {
    .demo-solution-page__inner {
        padding-left: 32px;
        padding-right: 32px;
    }
}

/* ========== Hero ========== */
.demo-solution-hero {
    position: relative;
    min-height: 480px;
    display: flex;
    align-items: center;
    overflow: hidden;
    background: linear-gradient(135deg, #f4f7fc 0%, #ffffff 100%);
}

@media (min-width: 1024px) {
    .demo-solution-hero {
        min-height: 520px;
    }
}

.demo-solution-hero__blob {
    position: absolute;
    top: 0;
    right: 0;
    width: 600px;
    height: 600px;
    background: rgba(22, 93, 255, 0.04);
    border-radius: 50%;
    filter: blur(100px);
    transform: translate(33%, -50%);
    pointer-events: none;
}

.demo-solution-hero__row {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 48px;
    padding: 64px 0;
    width: 100%;
}

@media (min-width: 1024px) {
    .demo-solution-hero__row {
        flex-direction: row;
        align-items: center;
        gap: 0;
        padding: 80px 0;
    }
}

.demo-solution-hero__text {
    width: 100%;
    text-align: center;
}

@media (min-width: 1024px) {
    .demo-solution-hero__text {
        width: 42%;
        text-align: left;
        padding-right: 24px;
    }
}

.demo-solution-hero__title {
    font-size: 2.25rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: #1d2129;
    margin: 0 0 24px;
    line-height: 1.2;
}

@media (min-width: 768px) {
    .demo-solution-hero__title {
        font-size: 2.75rem;
    }
}

.demo-solution-hero__desc {
    font-size: 16px;
    color: #4e5969;
    line-height: 1.8;
    font-weight: 300;
    margin: 0 0 40px;
    max-width: 28rem;
    margin-left: auto;
    margin-right: auto;
}

@media (min-width: 1024px) {
    .demo-solution-hero__desc {
        margin-left: 0;
        margin-right: 0;
    }
}

.demo-solution-hero__cta {
    display: inline-block;
    padding: 14px 40px;
    background: #165dff;
    color: #fff !important;
    border-radius: 9999px;
    font-size: 16px;
    font-weight: 500;
    text-decoration: none !important;
    box-shadow: 0 8px 20px rgba(22, 93, 255, 0.2);
    border: none;
    cursor: pointer;
    transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
}

.demo-solution-hero__cta:hover {
    background: #0e42d2 !important;
    box-shadow: 0 12px 24px rgba(22, 93, 255, 0.3);
    transform: translateY(-2px);
}

/* Hero media mockup */
.demo-solution-hero__media {
    position: relative;
    width: 100%;
    min-height: 380px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 0;
}

@media (min-width: 1024px) {
    .demo-solution-hero__media {
        width: 58%;
        min-height: 500px;
        padding-left: 40px;
    }
}

.demo-solution-mock {
    position: relative;
    z-index: 10;
    width: 85%;
    max-width: 560px;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.08);
    border: 1px solid #f3f4f6;
    overflow: hidden;
}

.demo-solution-mock__bar {
    height: 40px;
    background: #f8fafc;
    display: flex;
    align-items: center;
    padding: 0 16px;
    gap: 8px;
    border-bottom: 1px solid #f3f4f6;
}

.demo-solution-mock__dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #d1d5db;
}

.demo-solution-mock__img-wrap {
    position: relative;
    aspect-ratio: 16 / 10;
    background: #f9fafb;
    overflow: hidden;
}

.demo-solution-mock__img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 1s ease;
}

.demo-solution-mock:hover .demo-solution-mock__img-wrap img {
    transform: scale(1.05);
}

.demo-solution-mock__stand {
    position: absolute;
    bottom: -16px;
    left: 50%;
    transform: translateX(-50%);
    width: 160px;
    height: 16px;
    background: #fff;
    border-radius: 0 0 8px 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    opacity: 0.85;
    z-index: 0;
}

.demo-solution-mock__stand2 {
    position: absolute;
    bottom: -20px;
    left: 50%;
    transform: translateX(-50%);
    width: 300px;
    height: 4px;
    background: #fff;
    border-radius: 999px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
    z-index: 0;
}

.demo-solution-phone {
    position: absolute;
    z-index: 20;
    bottom: 0;
    left: 0;
    width: 32%;
    max-width: 170px;
    border-radius: 32px;
    border: 6px solid #fff;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.2);
    overflow: hidden;
}

@media (min-width: 768px) {
    .demo-solution-phone {
        left: 5%;
    }
}

.demo-solution-phone img {
    width: 100%;
    aspect-ratio: 9 / 19;
    object-fit: cover;
    object-position: top;
    display: block;
}

.demo-solution-float {
    position: absolute;
    z-index: 30;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 12px 16px;
    border-radius: 24px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.6);
    display: flex;
    align-items: center;
    gap: 12px;
    animation: demo-solution-float-y 6s ease-in-out infinite;
}

.demo-solution-float--br {
    bottom: 15%;
    right: -16px;
    flex-direction: row-reverse;
    text-align: right;
    animation-delay: 1s;
    animation-duration: 5s;
}

@media (min-width: 640px) {
    .demo-solution-float--tl {
        left: -48px;
    }
    .demo-solution-float--br {
        right: -48px;
    }
}

.demo-solution-float__icon {
    width: 42px;
    height: 42px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: #fff;
    font-size: 18px;
}

.demo-solution-float__title {
    font-size: 14px;
    font-weight: 700;
    color: #1d2129;
}

.demo-solution-float__sub {
    font-size: 11px;
    color: #86909c;
    margin-top: 2px;
}

@keyframes demo-solution-float-y {
    0%,
    100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

/* ========== Section headings ========== */
.demo-solution-section-head {
    text-align: center;
    max-width: 48rem;
    margin: 0 auto 64px;
}

.demo-solution-section-head__title {
    font-size: 1.875rem;
    font-weight: 700;
    color: #1d2129;
    margin: 0 0 24px;
    letter-spacing: -0.02em;
}

@media (min-width: 768px) {
    .demo-solution-section-head__title {
        font-size: 2.25rem;
    }
}

.demo-solution-section-head__desc {
    font-size: 16px;
    line-height: 1.8;
    color: #4e5969;
    font-weight: 300;
    margin: 0;
}

/* ========== Challenges ========== */
.demo-solution-challenges {
    padding: 64px 0 32px;
    background: #fff;
}

.demo-solution-challenges__box {
    background: #f4f7fc;
    border-radius: 32px;
    padding: 40px 24px;
}

@media (min-width: 768px) {
    .demo-solution-challenges__box {
        padding: 56px;
    }
}

.demo-solution-challenges__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
}

@media (min-width: 768px) {
    .demo-solution-challenges__grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 32px;
        border: none;
    }

    .demo-solution-challenges__grid > * + * {
        border-left: 1px solid #e2e8f0;
        padding-left: 32px;
    }
}

.demo-solution-challenge__head {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 16px;
}

.demo-solution-challenge__head .fa {
    font-size: 26px;
    color: #1d2129;
}

.demo-solution-challenge__title {
    font-size: 20px;
    font-weight: 700;
    color: #1d2129;
    margin: 0;
}

.demo-solution-challenge__text {
    font-size: 14px;
    color: #86909c;
    line-height: 1.8;
    margin: 0;
}

/* ========== Scenarios ========== */
.demo-solution-scenario {
    padding: 80px 0;
    border-top: 1px solid rgba(226, 232, 240, 0.6);
}

.demo-solution-scenario--alt {
    background: #f4f7fc;
}

.demo-solution-scenario__row {
    display: flex;
    flex-direction: column;
    gap: 48px;
    align-items: center;
}

@media (min-width: 1024px) {
    .demo-solution-scenario__row {
        flex-direction: row;
        gap: 96px;
    }

    .demo-solution-scenario__row--reverse {
        flex-direction: row-reverse;
    }
}

.demo-solution-scenario__text {
    width: 100%;
}

@media (min-width: 1024px) {
    .demo-solution-scenario__text {
        width: 45%;
    }
}

.demo-solution-scenario__num-row {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
}

.demo-solution-scenario__num {
    font-size: 64px;
    font-weight: 900;
    line-height: 1;
    background: linear-gradient(135deg, #2563eb, #67e8f9);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    opacity: 0.2;
}

.demo-solution-scenario__line {
    height: 3px;
    width: 48px;
    background: linear-gradient(90deg, #2563eb, transparent);
    border-radius: 999px;
}

.demo-solution-scenario__title {
    font-size: 1.75rem;
    font-weight: 700;
    color: #1d2129;
    margin: 0 0 24px;
    line-height: 1.25;
}

@media (min-width: 768px) {
    .demo-solution-scenario__title {
        font-size: 2.25rem;
    }
}

.demo-solution-scenario__desc {
    font-size: 16px;
    color: #4e5969;
    line-height: 1.8;
    font-weight: 300;
    margin: 0 0 40px;
}

.demo-solution-tags {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
}

@media (min-width: 640px) {
    .demo-solution-tags {
        grid-template-columns: repeat(2, 1fr);
    }
}

.demo-solution-tag {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    background: #fff;
    border-radius: 12px;
    border: 1px solid #f3f4f6;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.02);
    transition: box-shadow 0.3s, transform 0.3s, border-color 0.3s;
}

.demo-solution-scenario--alt .demo-solution-tag {
    background: #fff;
}

.demo-solution-tag:hover {
    box-shadow: 0 15px 30px rgba(22, 93, 255, 0.06);
    transform: translateY(-4px);
    border-color: #dbeafe;
}

.demo-solution-tag__icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: rgba(22, 93, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: #165dff;
    font-size: 14px;
}

.demo-solution-tag__label {
    font-size: 15px;
    font-weight: 700;
    color: #1d2129;
}

/* Scenario media column */
.demo-solution-scenario__media {
    position: relative;
    width: 100%;
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 0;
}

@media (min-width: 1024px) {
    .demo-solution-scenario__media {
        width: 55%;
        min-height: 550px;
    }
}

.demo-solution-scenario__glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 350px;
    height: 350px;
    border-radius: 50%;
    background: #165dff;
    opacity: 0.15;
    filter: blur(120px);
    z-index: 0;
}

.demo-solution-scenario .demo-solution-mock {
    z-index: 10;
}

.demo-solution-scenario .demo-solution-mock--push-l {
    margin-right: auto;
}

.demo-solution-scenario .demo-solution-mock--push-r {
    margin-left: auto;
}

.demo-solution-phone--scenario {
    bottom: 16px;
}

.demo-solution-phone--right {
    left: auto;
    right: 0;
}

.demo-solution-phone--left {
    left: 0;
    right: auto;
}

/* ========== Recommended features ========== */
.demo-solution-reco {
    padding: 96px 0;
    background: #fff;
}

.demo-solution-reco__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
}

@media (min-width: 768px) {
    .demo-solution-reco__grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .demo-solution-reco__grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.demo-solution-reco-card {
    padding: 32px;
    border-radius: 24px;
    border: 1px solid rgba(243, 244, 246, 0.8);
    background: #fff;
    transition: box-shadow 0.3s, border-color 0.3s;
}

.demo-solution-reco-card:hover {
    box-shadow: 0 20px 40px rgba(22, 93, 255, 0.06);
    border-color: #eff6ff;
}

.demo-solution-reco-card__head {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
}

.demo-solution-reco-card__icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
}

.demo-solution-reco-card__icon--blue {
    background: rgba(22, 93, 255, 0.1);
    color: #165dff;
}

.demo-solution-reco-card__icon--green {
    background: rgba(0, 180, 42, 0.1);
    color: #00b42a;
}

.demo-solution-reco-card__icon--orange {
    background: rgba(255, 125, 0, 0.1);
    color: #ff7d00;
}

.demo-solution-reco-card__title {
    font-size: 20px;
    font-weight: 700;
    color: #1d2129;
    margin: 0;
}

.demo-solution-reco-card__text {
    font-size: 14px;
    color: #4e5969;
    line-height: 1.6;
    margin: 0;
    min-height: 60px;
}

/* ========== Cases ========== */
.demo-solution-cases {
    padding: 96px 0;
    background: #f4f7fc;
}

.demo-solution-cases__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
}

@media (min-width: 768px) {
    .demo-solution-cases__grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .demo-solution-cases__grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.demo-solution-case {
    text-decoration: none !important;
    color: inherit !important;
    display: block;
}

.demo-solution-case__img-wrap {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    aspect-ratio: 4 / 3;
    margin-bottom: 20px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.02);
    transition: box-shadow 0.5s;
}

.demo-solution-case:hover .demo-solution-case__img-wrap {
    box-shadow: 0 15px 30px rgba(22, 93, 255, 0.08);
}

.demo-solution-case__img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.7s;
}

.demo-solution-case:hover .demo-solution-case__img-wrap img {
    transform: scale(1.05);
}

.demo-solution-case__badge {
    position: absolute;
    top: 16px;
    left: 16px;
    z-index: 2;
    padding: 4px 12px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(4px);
    color: #165dff;
    font-size: 12px;
    font-weight: 700;
    border-radius: 6px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.demo-solution-case__title {
    font-size: 18px;
    font-weight: 700;
    color: #1d2129;
    margin: 0 0 8px;
    transition: color 0.2s;
}

.demo-solution-case:hover .demo-solution-case__title {
    color: #165dff;
}

.demo-solution-case__more {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 14px;
    font-weight: 500;
    color: #86909c;
    transition: color 0.2s;
}

.demo-solution-case:hover .demo-solution-case__more {
    color: #165dff;
}

/* ========== CTA ========== */
.demo-solution-cta {
    position: relative;
    padding: 112px 0;
    overflow: hidden;
    background: linear-gradient(135deg, #165dff 0%, #0e42d2 100%);
}

.demo-solution-cta__bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0.05;
    mix-blend-mode: overlay;
    z-index: 0;
}

.demo-solution-cta__inner {
    position: relative;
    z-index: 10;
    max-width: 48rem;
    margin: 0 auto;
    text-align: center;
    padding: 0 16px;
}

.demo-solution-cta__icon {
    font-size: 48px;
    color: rgba(191, 219, 254, 0.9);
    margin-bottom: 24px;
}

.demo-solution-cta__title {
    font-size: 2.25rem;
    font-weight: 700;
    color: #fff;
    margin: 0 0 24px;
    line-height: 1.2;
}

@media (min-width: 768px) {
    .demo-solution-cta__title {
        font-size: 2.75rem;
    }
}

.demo-solution-cta__desc {
    font-size: 17px;
    color: rgba(191, 219, 254, 0.9);
    line-height: 1.8;
    font-weight: 300;
    margin: 0 0 40px;
}

.demo-solution-cta__actions {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
}

@media (min-width: 640px) {
    .demo-solution-cta__actions {
        flex-direction: row;
    }
}

.demo-solution-cta__btn {
    display: inline-block;
    padding: 14px 40px;
    border-radius: 9999px;
    font-size: 16px;
    font-weight: 500;
    text-decoration: none !important;
    transition: transform 0.3s, box-shadow 0.3s, background 0.3s;
}

.demo-solution-cta__btn--light {
    background: #fff;
    color: #165dff !important;
    box-shadow: 0 8px 20px rgba(255, 255, 255, 0.2);
}

.demo-solution-cta__btn--light:hover {
    transform: translateY(-2px);
}

.demo-solution-cta__btn--ghost {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff !important;
    backdrop-filter: blur(4px);
}

.demo-solution-cta__btn--ghost:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}
