:root {
    --hk-primary: #1e88e5;
    --hk-secondary: #ff7a00;
    --hk-bg-soft: #f6f9fc;
    --hk-text-main: #1f2937;
    --hk-text-muted: #6b7280;
    --hk-radius-lg: 24px;
    --hk-radius-md: 16px;
    --hk-shadow-soft: 0 20px 50px rgba(0,0,0,0.08);
}

section {
    position: relative;
    overflow: hidden;
}

.section-title {
    text-align: center;
    font-size: clamp(26px, 3vw, 36px);
    font-weight: 800;
    margin-bottom: 48px;
    color: var(--hk-primary);
}

/* ======================
   SECTION 1 – SG HERO IMAGE ONLY
====================== */

.sg-hero {
    width: 100%;
    overflow: hidden;
}

.sg-hero-bg {
    width: 100%;
    aspect-ratio: 1920 / 560; /* 桌面设计比例，可调 */
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

/* Tablet */
@media (max-width: 1024px) {
    .sg-hero-bg {
        aspect-ratio: 4 / 3;
    }
}

/* Mobile */
@media (max-width: 768px) {
    .sg-hero-bg {
        aspect-ratio: 15 / 4;
    }
}

/* ======================
   SECTION 2 – LINK RESET
====================== */

.products-loop a.product-loop-item {
    text-decoration: none;
    color: inherit;
}

.products-loop a.product-loop-item:hover {
    text-decoration: none;
}

.products-loop a.product-loop-item {
    display: block;
    transition: transform 0.25s ease, opacity 0.25s ease;
}

.products-loop a.product-loop-item:hover {
    transform: translateY(-4px);
    opacity: 0.95;
}

/* ======================
   SECTION 2 – PRODUCTS LOOP (SG)
   iOS / Safari SAFE VERSION
====================== */

.products-loop {
    padding: 80px 0;
    overflow: hidden;
}

.products-loop-viewport {
    width: 100%;
    overflow: hidden;
    position: relative;
}

/* Track */
.products-loop-track {
    display: flex;
    align-items: stretch;
    gap: 32px;
    will-change: transform;
    transform: translateZ(0); /* ⭐ Safari 强制 GPU */
}

/* Item */
.product-loop-item {
    flex: 0 0 auto;
    width: 220px;
    text-align: center;
}

/* ⭐ 关键：图片容器，先给高度 */
.product-loop-image {
    width: 100%;
    aspect-ratio: 1 / 1; /* Safari 必吃 */
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Image 本体 */
.product-loop-image img {
    width: 100%;
    height: 100%;
    max-width: 180px;
    object-fit: contain;
    display: block;
    transform: translateZ(0); /* Safari layer fix */
    pointer-events: none;
}

/* Title */
.product-loop-item h3 {
    margin-top: 12px;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.4;
}

/* Slight fade on edges for premium feel */
.products-loop-viewport::before,
.products-loop-viewport::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: 80px;
    z-index: 2;
    pointer-events: none;
}

.products-loop-viewport::before {
    left: 0;
    background: linear-gradient(to right, #fff, rgba(255,255,255,0));
}

.products-loop-viewport::after {
    right: 0;
    background: linear-gradient(to left, #fff, rgba(255,255,255,0));
}

/* Mobile tuning */
@media (max-width: 768px) {
    .products-loop {
        padding: 60px 0;
    }

    .product-loop-item {
        width: 160px;
    }

    .product-loop-item h3 {
        font-size: 14px;
    }

    .products-loop-track {
        gap: 20px;
    }
}


/* ======================
   SECTION – BRAND INTRO (IMAGE BG)
====================== */

.sg-brand-intro {
    position: relative;
    width: 100%;
    overflow: hidden;
}

.sg-brand-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 1;
}

/* 内容层 */
.sg-brand-content {
    position: relative;
    z-index: 2;
    min-height: 420px;
    padding: 50px 20px;
    text-align: center;
    color: #fff;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.sg-brand-logo {
    max-width: 260px;
    width: 100%;
    height: auto;
    margin-bottom: 24px;
}

.sg-brand-text {
    max-width: 820px;
    font-size: 16px;
    line-height: 1.8;
    opacity: 0.95;
}

/* Tablet */
@media (max-width: 1024px) {
    .sg-brand-content {
        padding: 80px 20px;
    }

    .sg-brand-logo {
        max-width: 220px;
    }
}

/* Mobile */
@media (max-width: 768px) {
    .sg-brand-content {
        padding: 64px 16px;
        min-height: 360px;
    }

    .sg-brand-text {
        font-size: 15px;
        line-height: 1.7;
    }
}

.sg-faq{
    padding:100px 0;
}


/* ======================
   FEATURED PRODUCT SECTION
====================== */

.sg-featured-product {
    padding: 100px 0;
    background: linear-gradient(135deg, #daedf9, #ffffff);
    overflow: hidden;
}


.featured-inner {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    align-items: center;
    gap: 60px;
}

/* LEFT CONTENT */
.featured-title {
    font-size: clamp(32px, 4.5vw, 44px);
    font-weight: 800;
    line-height: 1.15;
    color: #0a4fa3;
    margin-bottom: 20px;
}

.featured-title span {
    color: #e63946;
}

.featured-desc {
    font-size: 17px;
    line-height: 1.7;
    max-width: 520px;
    color: #333;
}

/* RIGHT VISUAL */
.featured-visual {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.featured-product-img {
    max-width: 360px;
    width: 100%;
    z-index: 2;
}

/* FLOATING GUMMY SHAPES */
.gummy-float {
    position: absolute;
    width: 60px;
    height: 60px;
    background: radial-gradient(circle at top left, #ff6b6b, #ffb703);
    border-radius: 18px;
    opacity: 0.85;
    filter: blur(0.2px);
    z-index: 1;
}

.float-1 {
    top: 10%;
    left: 15%;
    animation: gummyFloat1 6s ease-in-out infinite;
}

.float-2 {
    bottom: 15%;
    right: 8%;
    background: radial-gradient(circle at top left, #4dabf7, #38bdf8);
    animation: gummyFloat2 7s ease-in-out infinite;
}

/* ANIMATIONS */
@keyframes productFloat {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-14px);
    }
}

@keyframes gummyFloat1 {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }
    50% {
        transform: translateY(-18px) rotate(8deg);
    }
}

@keyframes gummyFloat2 {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }
    50% {
        transform: translateY(16px) rotate(-10deg);
    }
}

/* MOBILE */
@media (max-width: 768px) {
    .featured-inner {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 40px;
    }

    .featured-desc {
        margin: 0 auto;
    }
}

/* ======================
   GUMMY SCATTER DIVIDER
====================== */

.section-divider.gummy-scatter {
    height: 80px;
    background:
        radial-gradient(circle at 15% 50%, #ffb703 6px, transparent 7px),
        radial-gradient(circle at 35% 60%, #4dabf7 5px, transparent 6px),
        radial-gradient(circle at 55% 45%, #ff6b6b 7px, transparent 8px),
        radial-gradient(circle at 75% 55%, #4dabf7 5px, transparent 6px),
        radial-gradient(circle at 90% 50%, #ffb703 6px, transparent 7px);
    background-repeat: no-repeat;
    background-color: #ffffff;
}



/* ======================
   SECTION 4 – BENEFITS (KIDS STYLE)
====================== */

.sg-benefits {
    padding: 100px 0;
    background: linear-gradient(180deg, #ffffff, #f4faff);
    overflow: hidden;
}

.benefits-inner {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    align-items: center;
    gap: 64px;
}
.benefits-title {
    font-size: clamp(30px, 4vw, 42px);
    font-weight: 800;
    color: #0a4fa3;
    margin-bottom: 16px;
}

.benefits-desc {
    font-size: 17px;
    line-height: 1.7;
    color: #333;
    max-width: 520px;
    margin-bottom: 32px;
}

.benefits-accordion {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.benefit-item {
    background: #fff;
    border-radius: 18px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.06);
    overflow: hidden;
}

/* Header */
.benefit-header {
    width: 100%;
    padding: 18px 22px;
    background: none;
    border: none;
    font-size: 16px;
    font-weight: 600;
    color: #0a4fa3;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
}

/* Plus icon */
.benefit-icon {
    font-style: normal;
    font-size: 22px;
    transition: transform .3s ease;
}

/* Body */
.benefit-body {
    max-height: 0;
    overflow: hidden;
    transition: max-height .35s ease;
}

.benefit-body p {
    padding: 0 22px 22px;
    font-size: 15px;
    line-height: 1.6;
    color: #444;
}

/* Active state */
.benefit-item.active .benefit-body {
    max-height: 200px;
}

.benefit-item.active .benefit-icon {
    transform: rotate(45deg);
}

.benefits-visual {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.benefits-img {
    max-width: 380px;
    width: 100%;
    z-index: 2;
}

/* Floating bubbles */
.bubble {
    position: absolute;
    border-radius: 50%;
    opacity: 0.35;
    z-index: 1;
}

.bubble-1 {
    width: 120px;
    height: 120px;
    background: #4dabf7;
    top: 10%;
    left: 5%;
    animation: bubbleFloat 7s ease-in-out infinite;
}

.bubble-2 {
    width: 80px;
    height: 80px;
    background: #ffb703;
    bottom: 15%;
    right: 10%;
    animation: bubbleFloat 6s ease-in-out infinite reverse;
}

@keyframes floatImg {
    0%,100% { transform: translateY(0); }
    50% { transform: translateY(-14px); }
}

@keyframes bubbleFloat {
    0%,100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}

@media (max-width: 768px) {
    .benefits-inner {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .benefits-title,
    .benefits-desc {
        text-align: center;
        margin-left: auto;
        margin-right: auto;
    }

    .benefits-img {
        max-width: 300px;
    }
}



.accordion {
    margin-top: 32px;
}

.accordion-item {
    background: #fff;
    border-radius: var(--hk-radius-md);
    margin-bottom: 12px;
    box-shadow: var(--hk-shadow-soft);
    overflow: hidden;
}

.accordion-header {
    width: 100%;
    padding: 18px 20px;
    background: none;
    border: none;
    font-size: 16px;
    font-weight: 600;
    text-align: left;
    display: flex;
    justify-content: space-between;
    cursor: pointer;
}

.accordion-header span {
    width: 18px;
    height: 18px;
    position: relative;
}

.accordion-header span::before,
.accordion-header span::after {
    content: '';
    position: absolute;
    background: var(--hk-primary);
}

.accordion-header span::before {
    width: 18px;
    height: 2px;
    top: 8px;
}

.accordion-header span::after {
    width: 2px;
    height: 18px;
    left: 8px;
}

.accordion-item.open .accordion-header span::after {
    opacity: 0;
}

.accordion-body {
    max-height: 0;
    overflow: hidden;
    padding: 0 20px;
    transition: max-height 0.4s ease, padding 0.3s ease;
}

.accordion-item.open .accordion-body {
    max-height: 200px;
    padding: 16px 20px 20px;
}

/* ======================
   PRODUCT HIGHLIGHT SECTION
====================== */

.sg-product-highlight {
    position: relative;
    padding: 120px 0;
    overflow: hidden;
}

/* Background layer */
.highlight-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;

    opacity: 0;
    transform: scale(1.05);
    transition: opacity 1.2s ease, transform 1.6s ease;
}

/* When in view */
.sg-product-highlight.in-view .highlight-bg {
    opacity: 1;
    transform: scale(1);
}

/* Content */
.highlight-inner {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 0.9fr .6fr;
    align-items: center;
    gap: 80px;
}

/* LEFT: PRODUCT */
.highlight-product img {
    max-width: 360px;
    width: 100%;
    display: block;
    margin: 0 auto;
}

/* RIGHT: CONTENT */
.highlight-title {
    font-size: clamp(32px, 4.5vw, 44px);
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 20px;
}

.highlight-desc {
    font-size: 17px;
    line-height: 1.7;
    max-width: 520px;
    color: #ffffff;
}

/* Float animation */
@keyframes productFloat {
    0%,100% { transform: translateY(0); }
    50% { transform: translateY(-14px); }
}

/* MOBILE */
@media (max-width: 900px) {
    .highlight-inner {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }

    .highlight-desc {
        margin: 0 auto;
    }
}


/* ======================
   HK – HOT PRODUCTS
====================== */
.hk-hot-products {
    padding: 90px 0;
    background: linear-gradient(180deg, #f4f8ff 0%, #ffffff 100%);
    position: relative;
    overflow: hidden;
}

/* subtle background bubbles */
.hk-hot-products::before,
.hk-hot-products::after {
    content: "";
    position: absolute;
    border-radius: 50%;
    opacity: 0.15;
    filter: blur(40px);
}

.hk-hot-products::before {
    width: 260px;
    height: 260px;
    background: #c7ddff;
    top: -80px;
    left: -80px;
}

.hk-hot-products::after {
    width: 300px;
    height: 300px;
    background: #ffd6e8;
    bottom: -100px;
    right: -100px;
}

/* TITLE */
.hk-hot-products .section-title {
    text-align: center;
    font-size: clamp(26px, 3.5vw, 36px);
    font-weight: 800;
    color: #1e3a8a;
    margin-bottom: 50px;
    letter-spacing: 0.08em;
}

/* GRID */
.hot-products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 28px;
    max-width: 1100px;
    margin: 0 auto;
}

/* CARD */
.hot-product-card {
    position: relative;
    background: #ffffff;
    border-radius: 28px;
    padding: 28px 22px 32px;
    text-align: center;
    text-decoration: none;
    box-shadow: 0 18px 40px rgba(0,0,0,0.08);
    transition: 
        transform 0.35s ease,
        box-shadow 0.35s ease;
    overflow: hidden;
}

/* soft gradient glow */
.hot-product-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(59,130,246,.12), rgba(236,72,153,.12));
    opacity: 0;
    transition: opacity 0.35s ease;
    z-index: 0;
}

.hot-product-card:hover::before {
    opacity: 1;
}

/* hover lift */
.hot-product-card:hover {
    transform: translateY(-12px);
    box-shadow: 0 30px 70px rgba(0,0,0,.14);
}

/* IMAGE */
.hot-product-card img {
    position: relative;
    z-index: 1;
    max-width: 180px;
    margin: 0 auto 18px;
    transition: transform 0.35s ease;
}

/* float image on hover */
.hot-product-card:hover img {
    transform: translateY(-8px) scale(1.04);
}

/* TITLE */
.hot-product-card h3 {
    position: relative;
    z-index: 1;
    font-size: 17px;
    font-weight: 700;
    color: #111827;
    line-height: 1.45;
}

/* ======================
   MOBILE – SLIDE STYLE
====================== */
@media (max-width: 768px) {

    .hot-products-grid {
        display: flex;
        gap: 20px;
        overflow-x: auto;
        padding-bottom: 20px;
        scroll-snap-type: x mandatory;
    }

    .hot-products-grid::-webkit-scrollbar {
        display: none;
    }

    .hot-product-card {
        flex: 0 0 240px;
        scroll-snap-align: center;
    }
}


/* ======================
   SG FOOTER
====================== */
.sg-footer {
    background: linear-gradient(180deg, #0b3a6f, #081f3a);
    color: #e5eef9;
    padding: 70px 0 30px;
}

.sg-footer-inner {
    display: grid;
    grid-template-columns: 1.2fr 1fr 1.2fr;
    gap: 60px;
}

/* TITLES */
.sg-footer h4 {
    font-size: 16px;
    color: #ffffff;
    margin-bottom: 16px;
    font-weight: 600;
}

/* FOLLOW US */
.sg-footer .social-icons {
    display: flex;
    gap: 14px;
    margin-bottom: 24px;
}

.sg-footer .social-icons img {
    width: 32px;
    height: 32px;
    transition: transform .3s ease, opacity .3s ease;
}

.sg-footer .social-icons a:hover img {
    transform: translateY(-4px) scale(1.05);
    opacity: 0.85;
}

/* RETAILER */
.sg-footer .retailer p {
    font-size: 13px;
    margin-bottom: 8px;
    opacity: 0.85;
}

.sg-footer .retailer img {
    max-width: 120px;
    filter: brightness(1.05);
}

/* FOOTER MENU */
.sg-footer .footer-menu a {
    display: block;
    color: #dbeafe;
    text-decoration: none;
    margin-bottom: 12px;
    font-size: 14px;
    transition: color .25s ease, transform .25s ease;
}

.sg-footer .footer-menu a:hover {
    color: #93c5fd;
    transform: translateX(4px);
}

/* SUBSCRIBE */
.sg-footer .footer-subscribe p {
    font-size: 14px;
    margin-bottom: 14px;
    opacity: 0.95;
}

.sg-footer .subscribe-form {
    display: flex;
    gap: 10px;
    margin-bottom: 10px;
}

.sg-footer .subscribe-form input {
    flex: 1;
    padding: 12px 14px;
    border-radius: 10px;
    border: none;
    outline: none;
    font-size: 14px;
}

.sg-footer .subscribe-form button {
    padding: 12px 20px;
    border-radius: 10px;
    border: none;
    background: linear-gradient(135deg, #60a5fa, #38bdf8);
    color: #fff;
    font-size: 14px;
    cursor: pointer;
    transition: transform .25s ease, box-shadow .25s ease;
}

.sg-footer .subscribe-form button:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(56,189,248,.4);
}

.sg-footer .footer-subscribe small {
    font-size: 12px;
    opacity: 0.75;
}

/* BOTTOM */
.sg-footer-bottom {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,.15);
    text-align: center;
    font-size: 13px;
    opacity: 0.8;
}

/* MOBILE */
@media (max-width: 900px) {
    .sg-footer-inner {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }

    .sg-footer .social-icons {
        justify-content: center;
    }

    .sg-footer .subscribe-form {
        flex-direction: column;
    }

    .sg-footer .footer-menu a:hover {
        transform: none;
    }
}
