/* /css/pages/solution.css */

.page-main-content {
    background:
        linear-gradient(rgba(148, 163, 184, 0.035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(148, 163, 184, 0.035) 1px, transparent 1px),
        #111827;
    background-size: 52px 52px;
}

.solution-hero {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 0.92fr) minmax(460px, 0.88fr);
    gap: 3rem;
    align-items: center;
    min-height: 640px;
    max-width: 1280px;
    margin: 0 auto;
    padding: 7.5rem 2rem 4rem;
    text-align: left;
    background: transparent;
}

.solution-hero::before {
    content: '';
    position: absolute;
    inset: 5.5rem 1rem 2rem;
    border: 1px solid rgba(148, 163, 184, 0.13);
    pointer-events: none;
}

.solution-hero-inner {
    position: relative;
    z-index: 1;
    padding-left: 1.25rem;
    border-left: 1px solid rgba(77, 192, 181, 0.34);
}

.solution-kicker,
.category-index {
    display: inline-block;
    margin-bottom: 1rem;
    color: #8fb9d8;
    font-size: 0.78rem;
    font-weight: 650;
    letter-spacing: 0;
    text-transform: uppercase;
}

.solution-hero h1 {
    font-size: clamp(2.65rem, 5vw, 5.25rem);
    font-weight: 650;
    line-height: 1.05;
    letter-spacing: 0;
    margin: 0 0 1.35rem;
    color: var(--dark-color);
}

.solution-hero .subtitle {
    font-size: 1.08rem;
    color: var(--subText-color);
    max-width: 700px;
    margin: 0;
    line-height: 1.82;
}

.solution-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    margin-top: 2rem;
}

.solution-primary-link,
.solution-secondary-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0 1rem;
    border-radius: 4px;
    text-decoration: none;
    font-size: 0.92rem;
    font-weight: 700;
}

.solution-primary-link {
    color: #fff;
    background: var(--theme-color);
    border: 1px solid var(--theme-color);
}

.solution-secondary-link {
    color: #dbeafe;
    border: 1px solid rgba(148, 163, 184, 0.28);
    background: rgba(15, 23, 42, 0.55);
}

.solution-hero-panel {
    position: relative;
    z-index: 1;
    overflow: hidden;
    border: 1px solid rgba(77, 192, 181, 0.28);
    border-radius: 8px;
    background: rgba(15, 23, 42, 0.86);
}

.solution-hero-panel::before,
.solution-hero-panel::after {
    content: '';
    position: absolute;
    width: 30px;
    height: 30px;
    border-color: rgba(77, 192, 181, 0.7);
    pointer-events: none;
    z-index: 2;
}

.solution-hero-panel::before {
    top: 10px;
    left: 10px;
    border-top: 2px solid;
    border-left: 2px solid;
}

.solution-hero-panel::after {
    right: 10px;
    bottom: 10px;
    border-right: 2px solid;
    border-bottom: 2px solid;
    opacity: 0.55;
}

.panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem 1.1rem;
    border-bottom: 1px solid rgba(148, 163, 184, 0.16);
    color: #cbd5e1;
    font-size: 0.78rem;
    font-weight: 750;
}

.panel-header i {
    font-style: normal;
    color: #4dc0b5;
}

.panel-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.75rem;
    padding: 1rem;
}

.panel-grid div {
    min-height: 94px;
    padding: 0.9rem;
    border: 1px solid rgba(148, 163, 184, 0.16);
    border-radius: 6px;
    background: rgba(31, 41, 55, 0.72);
}

.panel-grid strong,
.panel-grid span {
    display: block;
}

.panel-grid strong {
    color: #fff;
    font-size: 0.98rem;
    margin-bottom: 0.5rem;
}

.panel-grid span {
    color: var(--subText-color);
    font-size: 0.75rem;
    line-height: 1.45;
}

.solution-hero-panel video {
    display: block;
    width: 100%;
    height: 260px;
    object-fit: cover;
    opacity: 0.88;
    border-top: 1px solid rgba(148, 163, 184, 0.16);
}

.solution-index {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1px;
    max-width: 1200px;
    margin: 0 auto 2rem;
    padding: 0 2rem;
}

.solution-index a {
    min-height: 130px;
    padding: 1.2rem;
    color: inherit;
    text-decoration: none;
    background: rgba(31, 41, 55, 0.8);
    border: 1px solid rgba(148, 163, 184, 0.16);
}

.solution-index span {
    display: block;
    color: #8fb9d8;
    font-size: 0.75rem;
    font-weight: 700;
    margin-bottom: 0.8rem;
}

.solution-index strong {
    display: block;
    color: #fff;
    font-size: 1.05rem;
    margin-bottom: 0.45rem;
}

.solution-index p {
    color: var(--subText-color);
    font-size: 0.9rem;
    line-height: 1.6;
    margin: 0;
}

.product-category-section {
    width: 100%;
    padding: 4.5rem 0;
    overflow: hidden;
}

.product-category-section.software-section {
    background:
        linear-gradient(90deg, rgba(107, 120, 154, 0.12), rgba(77, 192, 181, 0.05)),
        rgba(31, 41, 55, 0.82);
}

.category-title-wrap {
    max-width: 1200px;
    margin: 0 auto 2rem auto;
    padding: 0 2rem;
}

.category-title-wrap h2 {
    font-size: 2.2rem;
    font-weight: 650;
    color: var(--dark-color);
    padding-left: 0;
    border-left: 0;
    line-height: 1.35;
    letter-spacing: 0;
}

.category-title-wrap p {
    max-width: 760px;
    margin-top: 0.75rem;
    color: var(--subText-color);
    font-size: 1rem;
    line-height: 1.75;
}

.product-carousel {
    padding: 0 calc((100vw - 1200px) / 2 + 2rem);
    max-width: 100%;
}

.product-list {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.5rem;
}

.product-card {
    display: flex;
    flex-direction: column;
    background: rgba(31, 41, 55, 0.88);
    border-radius: 8px;
    text-decoration: none;
    transition: border-color 0.25s ease, transform 0.25s ease, background-color 0.25s ease;
    border: 1px solid rgba(148, 163, 184, 0.18);
    overflow: hidden;
}

.product-card:hover {
    transform: translateY(-3px);
    box-shadow: none;
    border-color: rgba(77, 192, 181, 0.48);
    background: rgba(31, 41, 55, 0.96);
}

.software-section .product-card {
    background: rgba(17, 24, 39, 0.72);
}

.service-section .product-card {
    background: rgba(31, 41, 55, 0.88);
}

.product-image {
    width: 100%;
    height: 180px;
    overflow: hidden;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.product-image video {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.product-video {
    background-color: #0b1220;
}

.product-card:hover .product-image img,
.product-card:hover .product-image video {
    transform: scale(1.05);
}

.product-content {
    padding: 1.3rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.product-title {
    font-size: 1.22rem;
    font-weight: 650;
    color: var(--dark-color);
    white-space: normal;
    margin-bottom: 0.75rem;
    line-height: 1.4;
}

.software-section .product-title {
    color: var(--dark-color);
}

.product-description {
    font-size: 0.95rem;
    color: var(--subText-color);
    line-height: 1.72;
    white-space: normal;
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.status-badge {
    display: inline-block;
    padding: 0.3rem 0.7rem;
    border-radius: 4px;
    background-color: rgba(107, 120, 154, 0.12);
    border: 1px solid rgba(107, 120, 154, 0.22);
    color: var(--subText-color);
    font-size: 0.8rem;
    font-weight: 600;
    align-self: flex-start;
}

.solution-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--theme-color);
    text-decoration: none;
    font-weight: 650;
    align-self: flex-start;
}

.solution-link svg {
    width: 1rem;
    height: 1rem;
    transition: transform 0.2s;
}

.solution-link:hover svg {
    transform: translateX(3px) translateY(-3px);
}

@media (max-width: 1200px) {
    .solution-hero {
        grid-template-columns: 1fr;
    }
    .product-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .product-carousel {
        padding: 0 2rem;
    }
}

@media (max-width: 768px) {
    .solution-hero {
        min-height: auto;
        padding: 6rem 1rem 3rem;
    }
    .solution-hero::before {
        inset: 5rem 0.75rem 1.5rem;
    }
    .solution-hero h1 {
        font-size: 2.35rem;
    }
    .solution-index {
        grid-template-columns: 1fr;
        padding: 0 1rem;
    }
    .panel-grid {
        grid-template-columns: 1fr;
    }
    .category-title-wrap {
        padding: 0 1rem;
    }
    .category-title-wrap h2 {
        font-size: 1.75rem;
    }
    .product-carousel {
        padding: 0 1rem;
    }
    .product-list {
        grid-template-columns: 1fr;
    }
}

/* Han-mech inspired industrial catalog direction */
.page-main-content {
    background: #f3f5f8;
}

.solution-hero {
    max-width: none;
    min-height: calc(100vh - 60px);
    padding: 7rem max(2rem, calc((100vw - 1280px) / 2 + 2rem)) 5rem;
    background:
        linear-gradient(90deg, rgba(9, 16, 30, 0.88) 0%, rgba(9, 16, 30, 0.72) 44%, rgba(9, 16, 30, 0.18) 100%),
        url('/files/imgs/common/gigaflops_background.png') center / cover no-repeat;
    border-bottom: 1px solid #d8dee8;
}

.solution-hero::before {
    inset: 6rem max(1rem, calc((100vw - 1280px) / 2 + 1rem)) 3rem;
    border-color: rgba(255, 255, 255, 0.2);
}

.solution-hero-inner {
    border-left: 0;
    padding-left: 0;
}

.solution-kicker {
    color: #d3deea;
    padding-left: 3.25rem;
    position: relative;
}

.solution-kicker::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    width: 2.4rem;
    height: 1px;
    background: #d3deea;
}

.solution-hero h1 {
    color: #fff;
    max-width: 840px;
    font-size: clamp(3rem, 5.8vw, 6rem);
    font-weight: 700;
}

.solution-hero .subtitle {
    color: rgba(255, 255, 255, 0.78);
    max-width: 760px;
}

.solution-primary-link {
    background: #fff;
    color: #111827;
    border-color: #fff;
}

.solution-secondary-link {
    color: #fff;
    border-color: rgba(255, 255, 255, 0.45);
    background: rgba(255, 255, 255, 0.08);
}

.solution-hero-panel {
    align-self: end;
    border-color: rgba(255, 255, 255, 0.35);
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(8px);
}

.solution-hero-panel::before,
.solution-hero-panel::after {
    border-color: rgba(107, 120, 154, 0.72);
}

.panel-header {
    color: #111827;
    border-bottom-color: #d8dee8;
}

.panel-header i {
    color: #5b6684;
}

.panel-grid div {
    background: #f6f8fb;
    border-color: #d8dee8;
}

.panel-grid strong {
    color: #111827;
}

.panel-grid span {
    color: #667085;
}

.solution-index {
    max-width: 1280px;
    margin: 0 auto;
    padding: 2rem;
    gap: 0;
}

.solution-index a {
    min-height: 150px;
    background: #fff;
    border-color: #d8dee8;
}

.solution-index a + a {
    border-left: 0;
}

.solution-index span,
.category-index {
    color: #5b6684;
}

.solution-index strong,
.category-title-wrap h2,
.product-title {
    color: #111827;
}

.solution-index p,
.category-title-wrap p,
.product-description {
    color: #667085;
}

.product-category-section {
    padding: 5.5rem 0;
    background: #f3f5f8;
}

.product-category-section.software-section {
    background: #e9eef5;
}

.category-title-wrap {
    display: grid;
    grid-template-columns: 220px minmax(0, 1fr);
    column-gap: 2rem;
    align-items: start;
    max-width: 1280px;
}

.category-index {
    margin-top: 0.65rem;
}

.category-title-wrap h2 {
    font-size: clamp(2rem, 3.4vw, 3.3rem);
    font-weight: 700;
}

.category-title-wrap p {
    grid-column: 2;
}

.product-carousel {
    padding: 0 max(2rem, calc((100vw - 1280px) / 2 + 2rem));
}

.product-card,
.software-section .product-card,
.service-section .product-card {
    background: #fff;
    border-color: #d8dee8;
    border-radius: 0;
}

.product-card:hover {
    background: #fff;
    border-color: #6b789a;
    transform: translateY(-4px);
}

.product-image {
    height: 220px;
    background: #dfe5ee;
}

.product-content {
    min-height: 210px;
    padding: 1.45rem;
}

.status-badge {
    background: #f1f3f7;
    border-color: #c9dcff;
    color: #5b6684;
}

.solution-link {
    color: #5b6684;
}

@media (max-width: 1200px) {
    .category-title-wrap {
        grid-template-columns: 1fr;
    }

    .category-title-wrap p {
        grid-column: auto;
    }

    .solution-index a + a {
        border-left: 1px solid #d8dee8;
    }
}

@media (max-width: 768px) {
    .solution-hero {
        padding: 6rem 1rem 3rem;
    }

    .solution-index {
        padding: 1rem;
    }

    .solution-index a + a {
        border-top: 0;
    }
}
