/* =========================
   Product Page Hero / Banner
========================= */
.page-hero {
    position: relative;
    overflow: hidden;
    padding: 90px 0 70px;
    color: #fff;
    background:
        linear-gradient(90deg,
            rgba(6, 12, 24, 0.82) 0%,
            rgba(6, 12, 24, 0.72) 28%,
            rgba(6, 12, 24, 0.48) 48%,
            rgba(6, 12, 24, 0.22) 68%,
            rgba(6, 12, 24, 0.08) 85%,
            rgba(6, 12, 24, 0.03) 100%
        ),
        linear-gradient(180deg,
            rgba(6,12,24,0.35) 0%,
            rgba(6,12,24,0.10) 45%,
            rgba(6,12,24,0.25) 100%
        ),
        url("../../images/product-banner.jpg") center center / cover no-repeat;
}

.page-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 20% 24%, rgba(37, 99, 235, 0.12), transparent 18%),
        radial-gradient(circle at 82% 18%, rgba(6, 182, 212, 0.05), transparent 16%);
    pointer-events: none;
}

.page-hero::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 1px;
    background: rgba(255, 255, 255, 0.08);
}

.page-hero-content {
    position: relative;
    z-index: 1;
    max-width: 760px;
}

.page-hero h1 {
    font-size: 46px;
    line-height: 1.08;
    letter-spacing: -0.8px;
    margin-bottom: 16px;
    text-shadow: 0 6px 18px rgba(0, 0, 0, 0.2);
}

.page-desc {
    font-size: 17px;
    line-height: 1.8;
    color: #dbe7f6;
    max-width: 700px;
}

/* =========================
   Product Intro
========================= */
.product-intro {
    background: linear-gradient(180deg, #edf2f8 0%, #e6ecf4 100%);
    border-top: 1px solid #dde5ef;
    border-bottom: 1px solid #dfe7f0;
}

/* =========================
   Product Tabs Layout
========================= */
.product-tabs-section {
    background: linear-gradient(180deg, #f8fbff 0%, #ffffff 100%);
}

.product-tabs-layout {
    display: grid;
    grid-template-columns: 280px minmax(0, 1fr);
    gap: 28px;
    align-items: start;
}

/* =========================
   Sidebar
========================= */
.product-sidebar {
    position: sticky;
    top: 110px;
    display: grid;
    gap: 14px;
    background: linear-gradient(180deg, #ffffff, #f9fbff);
    border: 1px solid #e6edf6;
    border-radius: 28px;
    padding: 18px;
    box-shadow: 0 14px 30px rgba(15, 23, 42, 0.06);
}

.product-tab-btn {
    width: 100%;
    text-align: left;
    border: 1px solid #e2e8f0;
    background: #ffffff;
    color: var(--dark);
    padding: 16px 18px;
    border-radius: 18px;
    font-size: 15px;
    font-weight: 800;
    line-height: 1.4;
    cursor: pointer;
    transition: all 0.25s ease;
}

.product-tab-btn:hover {
    border-color: #bfdbfe;
    background: #f8fbff;
    color: var(--primary);
    transform: translateX(2px);
}

.product-tab-btn.active {
    color: #ffffff;
    border-color: transparent;
    background: linear-gradient(135deg, var(--primary), var(--primary-2));
    box-shadow: 0 12px 24px rgba(37, 99, 235, 0.2);
}

/* =========================
   Display Area
========================= */
.product-display {
    min-width: 0;
}

.product-panel {
    display: none;
    background: linear-gradient(180deg, #ffffff, #fbfdff);
    border: 1px solid #e8eef6;
    border-radius: 28px;
    padding: 34px;
    box-shadow: 0 14px 30px rgba(15, 23, 42, 0.06);
}

.product-panel.active {
    display: block;
}

.panel-header {
    margin-bottom: 28px;
    padding-bottom: 22px;
    border-bottom: 1px solid #e8eef6;
}

.panel-type {
    display: inline-flex;
    align-items: center;
    align-self: flex-start;
    margin-bottom: 12px;
    padding: 6px 12px;
    border-radius: 999px;
    background: #eff6ff;
    color: var(--primary);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.8px;
    text-transform: uppercase;
}

.panel-type-own {
    background: linear-gradient(135deg, #dbeafe, #bfdbfe);
    color: #1d4ed8;
}

.panel-header h2 {
    font-size: 34px;
    line-height: 1.2;
    color: var(--dark);
    margin-bottom: 10px;
    letter-spacing: -0.6px;
}

.panel-subtitle {
    color: var(--primary);
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 12px;
}

.panel-header p {
    color: #475569;
    font-size: 16px;
    line-height: 1.8;
    max-width: 860px;
}

/* =========================
   Product Link Cards
========================= */
.product-links-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
}

.product-link-card {
    display: flex;
    flex-direction: column;
    background: linear-gradient(180deg, #ffffff, #fbfdff);
    border: 1px solid #e8eef6;
    border-radius: 22px;
    overflow: hidden;
    box-shadow: 0 12px 26px rgba(15, 23, 42, 0.05);
    transition: all 0.28s ease;
    min-height: 100%;
}

.product-link-card:hover {
    transform: translateY(-6px);
    border-color: #c6dafd;
    box-shadow: 0 20px 38px rgba(37, 99, 235, 0.1);
}

.product-link-card img {
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    background: #f8fafc;
    border-bottom: 1px solid #e8eef6;
    transition: transform 0.35s ease, filter 0.3s ease;
}

.product-link-card:hover img {
    transform: scale(1.04);
    filter: brightness(1.02);
}

.product-link-card h3 {
    font-size: 20px;
    color: var(--dark);
    padding: 20px 20px 8px;
}

.product-link-card p {
    color: #475569;
    font-size: 15px;
    line-height: 1.7;
    padding: 0 20px 20px;
    margin-top: auto;
}

/* =========================
   CTA
========================= */
.cta-section {
    background: transparent;
}

/* CTA 樣式由 common.css 控制 */

/* =========================
   Product Responsive
========================= */
@media (max-width: 1100px) {
    .product-tabs-layout {
        grid-template-columns: 240px minmax(0, 1fr);
    }

    .product-links-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 860px) {
    .page-hero {
        padding: 86px 0 70px;
    }

    .page-hero h1 {
        font-size: 42px;
    }

    .product-tabs-layout {
        grid-template-columns: 1fr;
    }

    .product-sidebar {
        position: static;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .product-panel {
        padding: 28px;
    }

    .panel-header h2 {
        font-size: 30px;
    }
}

@media (max-width: 640px) {
    .page-hero h1 {
        font-size: 34px;
        line-height: 1.12;
    }

    .page-desc {
        font-size: 16px;
    }

    .product-sidebar {
        grid-template-columns: 1fr;
        padding: 14px;
        gap: 12px;
    }

    .product-links-grid {
        grid-template-columns: 1fr;
    }

    .product-panel {
        padding: 22px 20px;
    }

    .panel-header {
        margin-bottom: 22px;
        padding-bottom: 18px;
    }

    .panel-header h2 {
        font-size: 28px;
    }

    .product-link-card h3 {
        font-size: 19px;
        padding: 18px 18px 8px;
    }

    .product-link-card p {
        padding: 0 18px 18px;
    }
}