/**
 * product-page.css
 * Shared styles for all product detail pages.
 * Used by: products/*.html and en/products/*.html
 */

/* ── CSS Variables ── */
:root {
    --pp-blue:   #2563eb;
    --pp-indigo: #4f46e5;
    --pp-dark:   #0f172a;
    --pp-light:  #f8fafc;
    --pp-border: rgba(226, 232, 240, 0.8);
}

/* ── Base ── */
body {
    background-color: var(--pp-light);
    font-family: var(--font-body);
    position: relative;
    overflow-x: hidden;
}

/* Premium Noise Texture Overlay */
body::before {
    content: "";
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3仿真器%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
    opacity: 0.015;
    pointer-events: none;
    z-index: 9999;
}

/* Dynamic Animated Background Orbs */
.pp-bg-glow {
    position: fixed;
    width: 60vw;
    height: 60vw;
    border-radius: 50%;
    filter: blur(120px);
    z-index: -1;
    pointer-events: none;
    opacity: 0.5;
    animation: orbFloat 25s infinite alternate ease-in-out;
}

.pp-bg-glow-1 {
    top: -20%;
    right: -10%;
    background: radial-gradient(circle, rgba(37, 99, 235, 0.15) 0%, transparent 70%);
}

.pp-bg-glow-2 {
    bottom: -10%;
    left: -10%;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.12) 0%, transparent 70%);
    animation-delay: -5s;
}

@keyframes orbFloat {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(-10%, 15%) scale(1.1); }
}

/* ── Hero Banner ── */
.pp-hero {
    background: #060b16; /* Solid dark base */
    background: linear-gradient(160deg, #060b16 0%, #0f172a 40%, #1e3a8a 100%);
    padding: 11rem 0 7rem;
    position: relative;
    overflow: hidden;
}

/* Hero Mesh Gradient Layers */
.pp-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: 
        radial-gradient(circle at 10% 20%, rgba(37, 99, 235, 0.2) 0%, transparent 40%),
        radial-gradient(circle at 90% 80%, rgba(79, 70, 229, 0.15) 0%, transparent 40%);
    z-index: 1;
}

.pp-hero::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 200px;
    background: linear-gradient(to top, var(--pp-light) 0%, transparent 100%);
    z-index: 2;
}

.pp-hero-inner {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 2rem;
    text-align: center;
    position: relative;
    z-index: 3;
}

/* Tags */
.pp-tag-list {
    display: flex;
    gap: 12px;
    margin-bottom: 2.5rem;
    flex-wrap: wrap;
    justify-content: center;
}

.pp-tag {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.85);
    padding: 8px 18px;
    border-radius: 50px;
    font-size: 0.85rem;
    backdrop-filter: blur(12px);
    font-weight: 600;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

/* Hero title - Ultra Premium Gradient */
.pp-hero-title {
    font-family: var(--font-heading);
    font-size: clamp(2.8rem, 6vw, 4.8rem);
    font-weight: 800;
    background: linear-gradient(to bottom, #ffffff 30%, #93c5fd 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 1.8rem;
    line-height: 1.1;
    letter-spacing: -2px;
    filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.3));
}

/* Hero description */
.pp-hero-desc {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.9) !important;
    line-height: 1.8;
    margin-bottom: 2.5rem;
    font-weight: 400;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

/* ── Main Content Layout ── */
.pp-main-wrap {
    width: 100%;
}

.pp-section {
    padding: 4rem 0;
    position: relative;
}

/* Alternating background color - subtle and low contrast */
.pp-section-alt {
    background: rgba(241, 245, 249, 0.5); /* Very light blue-grey */
    border-top: 1px solid rgba(226, 232, 240, 0.4);
    border-bottom: 1px solid rgba(226, 232, 240, 0.4);
}

.pp-container {
    max-width: 1150px; /* Wider for less "stark" margins */
    margin: 0 auto;
    padding: 0 1.5rem; /* Reduced horizontal padding */
}

/* ── Section Cards (Glassmorphism 2.0) ── */
.pp-card {
    background: rgba(255, 255, 255, 0.95); /* Slightly more opaque for readability on alt bgs */
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-radius: 28px;
    padding: 4rem; /* Balanced internal padding */
    box-shadow: 
        0 4px 6px -1px rgba(0, 0, 0, 0.05),
        0 25px 50px -12px rgba(37, 99, 235, 0.08);
    border: 1px solid #ffffff;
    position: relative;
    transition: transform 0.6s cubic-bezier(0.23, 1, 0.32, 1), box-shadow 0.6s cubic-bezier(0.23, 1, 0.32, 1);
}

.pp-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 35px 70px -15px rgba(37, 99, 235, 0.12);
}

@media (max-width: 768px) {
    .pp-container { padding: 0 1rem; }
    .pp-card { padding: 2.5rem 1.5rem; }
}

/* ── Section Heading Full-Width Capsule ── */
.pp-section-title {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--pp-dark);
    margin-bottom: 3.5rem;
    display: flex; /* Full width */
    align-items: center;
    gap: 1.5rem;
    position: relative;
    padding: 0.8rem 1.5rem;
    background: rgba(219, 234, 254, 0.95); /* Deeper blue tint */
    border-radius: 20px;
    border: 1px solid #ffffff; /* Crisp white border */
    box-shadow: 
        0 4px 15px rgba(0, 0, 0, 0.03),
        inset 0 0 0 1px rgba(255, 255, 255, 0.5);
}

/* Underline removed per user request */
.pp-section-title::after {
    display: none;
}

.pp-icon-box {
    width: 42px; height: 42px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.pp-icon-blue   { background: rgba(37,99,235,0.1);  color: var(--pp-blue); }
.pp-icon-green  { background: rgba(16,185,129,0.1);  color: #10b981; }
.pp-icon-purple { background: rgba(139,92,246,0.1);  color: #8b5cf6; }
.pp-icon-amber  { background: rgba(245,158,11,0.1);  color: #f59e0b; }

/* ── Body Text ── */
.pp-body {
    color: #475569;
    line-height: 1.85;
    font-size: 1.05rem;
}

.pp-body p + p { margin-top: 1rem; }

/* ── Split Layout (text + image) ── */
.pp-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
    align-items: center;
}

@media (max-width: 768px) {
    .pp-split { grid-template-columns: 1fr; }
}

/* ── Product Image Frame (in overview) ── */
.pp-product-img-wrap {
    background: #ffffff;
    border-radius: 16px;
    padding: 1.5rem;
    border: 1px solid #f1f5f9;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    display: inline-block;
    width: 100%;
}

.pp-product-img-wrap img {
    mix-blend-mode: multiply;
    max-width: 100%;
    display: block;
    transition: transform 0.5s ease;
}

.pp-product-img-wrap:hover img {
    transform: scale(1.04) translateY(-4px);
}

/* ── Feature Grid ── */
.pp-features {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

@media (max-width: 600px) {
    .pp-features { grid-template-columns: 1fr; }
}

.pp-feature {
    position: relative;
    background: rgba(255,255,255,0.6);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255,255,255,0.8);
    border-radius: 20px;
    padding: 2.5rem;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    overflow: hidden;
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.02);
}

.pp-feature::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(37,99,235,0.03) 0%, transparent 100%);
    opacity: 0;
    transition: opacity 0.5s ease;
}

.pp-feature:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 30px 40px -10px rgba(37,99,235,0.1);
    border-color: rgba(37,99,235,0.2);
}

.pp-feature:hover::before { opacity: 1; }

.pp-feature i {
    font-size: 2.5rem;
    background: linear-gradient(135deg, var(--pp-blue), var(--pp-indigo));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    flex-shrink: 0;
}

.pp-feature:hover i { transform: scale(1.15) rotate(5deg); }

.pp-feature span {
    font-weight: 600;
    color: var(--pp-dark);
    font-size: 1.05rem;
    line-height: 1.5;
}

/* ── Image Frame (charts/graphs) ── */
.pp-img-frame {
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid #e2e8f0;
    background: #f8fafc;
    padding: 1.2rem;
    text-align: center;
}

.pp-img-frame img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    display: block;
}

.pp-img-caption {
    font-size: 0.85rem;
    color: #94a3b8;
    margin-top: 0.8rem;
    font-weight: 500;
}

/* ── Check List ── */
.pp-checklist {
    list-style: none;
    padding: 0;
    margin: 1.2rem 0 0;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.pp-checklist li {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--pp-dark);
    font-weight: 500;
    font-size: 0.95rem;
    background: var(--pp-light);
    padding: 10px 14px;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
}

.pp-checklist li i { color: #10b981; font-size: 1rem; }

/* ── Documentation Section ── */
.pp-docs {
    background: #f1f5f9;
    padding: 6rem 0;
}

.pp-docs-inner {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 2rem;
}

.pp-docs-title {
    text-align: center;
    color: var(--pp-dark);
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 4rem;
}

.pp-docs-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

@media (max-width: 768px) {
    .pp-docs-grid { grid-template-columns: 1fr; }
}

/* Doc card — entire card is a link */
.pp-doc-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.05);
    text-decoration: none;
    color: inherit;
}

.pp-doc-card:hover {
    transform: translateY(-8px);
    border-color: var(--pp-blue);
    box-shadow: 0 20px 25px -5px rgba(0,0,0,0.1), 0 10px 10px -5px rgba(0,0,0,0.04);
}

.pp-doc-header {
    display: flex;
    align-items: center;
    gap: 1.2rem;
}

.pp-doc-icon {
    font-size: 2.2rem;
    color: var(--pp-blue);
    flex-shrink: 0;
}

.pp-doc-card h3 {
    font-size: 1.1rem;
    color: var(--pp-dark) !important;
    margin: 0 !important;
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.4;
    transition: color 0.3s;
}

.pp-doc-card:hover h3 { color: var(--pp-blue) !important; }

.pp-doc-sub {
    font-size: 0.9rem;
    color: #94a3b8;
    margin-top: 4px;
    font-weight: 500;
}
