/* ========================================
   Young Silicone - Cute Cartoon B2B Website
   Brand colors: Red #E21F26, Green #7CC042
   Style: Friendly, rounded, playful B2B
   ======================================== */

:root {
    --primary: #E21F26;
    --primary-light: #F87171;
    --primary-dark: #B91C1C;
    --secondary: #7CC042;
    --secondary-light: #A7E36D;
    --accent-orange: #FB923C;
    --accent-pink: #F472B6;
    --accent-yellow: #FBBF24;
    --accent-blue: #60A5FA;
    --accent-purple: #A78BFA;
    --bg-cream: #FFF8F0;
    --bg-soft: #FEF3C7;
    --text-dark: #1F2937;
    --text-gray: #6B7280;
    --shadow-soft: 0 4px 20px rgba(226, 31, 38, 0.08);
    --shadow-card: 0 8px 30px rgba(0,0,0,0.06);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    font-family: 'Quicksand', 'Nunito', sans-serif;
    color: var(--text-dark);
    background: #ffffff;
    line-height: 1.7;
    padding-bottom: 70px; /* mobile bottom bar space */
}

@media (min-width: 768px) {
    body { padding-bottom: 0; }
}

/* ===== Navigation Links ===== */
.nav-link {
    position: relative;
    padding: 0.5rem 1rem;
    font-weight: 600;
    color: #374151;
    border-radius: 9999px;
    transition: all 0.3s;
}
.nav-link:hover {
    color: var(--primary);
    background: #FEF2F2;
}
.nav-link.active {
    color: var(--primary);
    background: #FEF2F2;
    font-weight: 700;
}

/* ===== Floating Buttons ===== */
.floating-btn {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    transition: all 0.3s;
    position: relative;
}
.floating-btn:hover {
    transform: scale(1.15);
}

/* ===== Section Titles ===== */
.section-title {
    font-family: 'Fredoka', sans-serif;
    font-size: 2.5rem;
    font-weight: 600;
    color: var(--text-dark);
    text-align: center;
    margin-bottom: 0.5rem;
}
.section-subtitle {
    text-align: center;
    color: var(--text-gray);
    font-size: 1.1rem;
    margin-bottom: 3rem;
}
.title-emoji {
    font-size: 2.5rem;
    display: block;
    margin-bottom: 0.5rem;
}

/* ===== Buttons ===== */
.btn-cute {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.75rem;
    border-radius: 9999px;
    font-weight: 700;
    font-family: 'Nunito', sans-serif;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    cursor: pointer;
    border: none;
    text-decoration: none;
}
.btn-primary {
    background: linear-gradient(135deg, #E21F26, #F87171);
    color: white;
}
.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(226,31,38,0.3);
    color: white;
}
.btn-secondary {
    background: linear-gradient(135deg, #7CC042, #A7E36D);
    color: white;
}
.btn-secondary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(124,192,66,0.3);
    color: white;
}
.btn-outline {
    background: white;
    color: var(--primary);
    border: 2px solid var(--primary);
}
.btn-outline:hover {
    background: var(--primary);
    color: white;
}
.btn-whatsapp {
    background: #25D366;
    color: white;
}
.btn-whatsapp:hover {
    background: #128C7E;
    transform: translateY(-2px);
    color: white;
}

/* ===== Cards ===== */
.cute-card {
    background: white;
    border-radius: 24px;
    padding: 1.5rem;
    box-shadow: var(--shadow-card);
    transition: all 0.4s;
    border: 2px solid transparent;
}
.cute-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
    border-color: #FECACA;
}

/* ===== Product Card ===== */
.product-card {
    background: white;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: var(--shadow-card);
    transition: all 0.4s;
    position: relative;
    border: 2px solid #FEF3C7;
}
.product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 50px rgba(0,0,0,0.12);
    border-color: #F87171;
}
.product-img-wrap {
    position: relative;
    aspect-ratio: 1/1;
    overflow: hidden;
    background: var(--bg-cream);
}
.product-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}
.product-card:hover .product-img-wrap img {
    transform: scale(1.08);
}
.custom-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: linear-gradient(135deg, #7CC042, #A7E36D);
    color: white;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 9999px;
    box-shadow: 0 2px 8px rgba(124,192,66,0.3);
}
.sample-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: white;
    color: var(--primary);
    font-size: 0.7rem;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 9999px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    z-index: 2;
}
.hot-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: linear-gradient(135deg, #E21F26, #FB923C);
    color: white;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 9999px;
    box-shadow: 0 2px 8px rgba(226,31,38,0.3);
    z-index: 2;
    animation: pulse 2s infinite;
}
.new-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: linear-gradient(135deg, #60A5FA, #A78BFA);
    color: white;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 9999px;
    box-shadow: 0 2px 8px rgba(96,165,250,0.3);
    z-index: 2;
}
/* Custom Available top-right ribbon */
.ribbon {
    position: absolute;
    top: 10px;
    right: -30px;
    transform: rotate(45deg);
    background: var(--primary);
    color: white;
    font-size: 0.65rem;
    font-weight: 700;
    padding: 2px 30px;
    z-index: 2;
}

/* ===== Category Chip ===== */
.cat-chip {
    display: inline-flex;
    align-items: center;
    padding: 0.5rem 1.25rem;
    border-radius: 9999px;
    font-weight: 600;
    background: white;
    color: var(--text-dark);
    border: 2px solid #F3F4F6;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 0.9rem;
}
.cat-chip:hover {
    border-color: var(--primary-light);
    color: var(--primary);
}
.cat-chip.active {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
    box-shadow: 0 4px 15px rgba(226,31,38,0.2);
}

/* ===== Feature Icon Box ===== */
.feature-icon {
    width: 72px;
    height: 72px;
    border-radius: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    margin: 0 auto 1rem;
    position: relative;
    box-shadow: 0 8px 20px rgba(0,0,0,0.08);
}

/* ===== Step Flow ===== */
.step-circle {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: white;
    margin: 0 auto 1rem;
    font-family: 'Fredoka', sans-serif;
    font-weight: 600;
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
    position: relative;
    z-index: 2;
}
.step-connector {
    position: absolute;
    top: 40px;
    left: 50%;
    width: 100%;
    height: 4px;
    background: repeating-linear-gradient(90deg, #FECACA 0, #FECACA 10px, transparent 10px, transparent 20px);
    z-index: 1;
}

/* ===== Form Styles ===== */
.form-input {
    width: 100%;
    padding: 0.85rem 1.25rem;
    border-radius: 16px;
    border: 2px solid #E5E7EB;
    background: white;
    transition: all 0.3s;
    font-family: inherit;
    font-size: 0.95rem;
}
.form-input:focus {
    outline: none;
    border-color: var(--primary-light);
    box-shadow: 0 0 0 4px rgba(248,113,113,0.15);
}

/* ===== Animations ===== */
@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-15px); }
}
.float {
    animation: float 4s ease-in-out infinite;
}
@keyframes bounce-soft {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}
.bounce-soft {
    animation: bounce-soft 2s ease-in-out infinite;
}
@keyframes wiggle {
    0%, 100% { transform: rotate(-3deg); }
    50% { transform: rotate(3deg); }
}
.wiggle:hover {
    animation: wiggle 0.5s ease-in-out infinite;
}

/* ===== Pattern backgrounds ===== */
.bg-dots {
    background-image: radial-gradient(#FECACA 1px, transparent 1px);
    background-size: 20px 20px;
}
.bg-grid-cute {
    background-image:
        linear-gradient(#FEF3C7 1px, transparent 1px),
        linear-gradient(90deg, #FEF3C7 1px, transparent 1px);
    background-size: 40px 40px;
}

/* ===== Breadcrumb ===== */
.breadcrumb {
    background: var(--bg-cream);
    padding: 1rem 0;
    border-bottom: 1px solid #FED7AA;
}
.breadcrumb a {
    color: var(--text-gray);
    transition: color 0.3s;
}
.breadcrumb a:hover { color: var(--primary); }

/* ===== Specs Table ===== */
.spec-table td, .spec-table th {
    padding: 0.75rem 1rem;
    border-bottom: 1px dashed #F3F4F6;
}
.spec-table th {
    color: var(--text-gray);
    font-weight: 600;
    width: 40%;
    background: #FAFAFA;
}
.spec-table td { color: var(--text-dark); font-weight: 500; }

/* ===== Lightbox custom ===== */
.lb-data .lb-caption {
    font-family: 'Fredoka', sans-serif;
    font-size: 1rem;
    font-weight: 600;
}

/* ===== Hero decorations ===== */
.blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    opacity: 0.4;
    z-index: 0;
}

/* ===== Utility ===== */
.text-primary { color: var(--primary) !important; }
.text-secondary { color: var(--secondary) !important; }
.bg-primary { background: var(--primary) !important; }
.bg-secondary { background: var(--secondary) !important; }
.rounded-cute { border-radius: 24px; }
.rounded-soft { border-radius: 16px; }

/* ===== Page Hero ===== */
.page-hero {
    background: linear-gradient(135deg, #FFF8F0 0%, #FEF3C7 100%);
    position: relative;
    padding: 4rem 0;
    overflow: hidden;
}

/* ===== Mobile bottom bar spacing ===== */
@media (max-width: 767px) {
    .section-title { font-size: 2rem; }
    .section-title-sm { font-size: 1.6rem; }
}

/* ===== Page Hero ===== */
.page-hero {
    position: relative;
    background: linear-gradient(135deg, #FEF3C7 0%, #FECACA 50%, #FBCFE8 100%);
    overflow: hidden;
    padding: 3rem 0;
}
.page-hero .blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    opacity: 0.5;
}

/* ===== Breadcrumb ===== */
.breadcrumb {
    background: #f9fafb;
    padding: 0.75rem 0;
    border-bottom: 1px solid #f3f4f6;
}
.breadcrumb a { color: #6B7280; transition: color .2s; }
.breadcrumb a:hover { color: var(--primary); }

/* ===== Section Title ===== */
.section-title {
    text-align: center;
    font-family: 'Fredoka', sans-serif;
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}
.section-title-sm { font-size: 1.5rem; text-align: left; }
.section-subtitle {
    text-align: center;
    color: var(--text-gray);
    font-size: 1.05rem;
    margin-bottom: 0;
}
.title-emoji { margin-right: 0.5rem; }

/* ===== Product Card (catalog) ===== */
.product-card {
    background: #fff;
    border-radius: 1.25rem;
    overflow: hidden;
    box-shadow: var(--shadow-card);
    transition: all .3s ease;
    border: 1px solid #f3f4f6;
}
.product-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 40px rgba(226,31,38,0.12);
}
.product-img-wrap {
    position: relative;
    aspect-ratio: 1;
    overflow: hidden;
    background: #fafafa;
}
.product-img-wrap img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform .4s ease;
}
.product-card:hover .product-img-wrap img { transform: scale(1.06); }
.custom-badge {
    position: absolute; top: 10px; left: 10px;
    background: var(--secondary); color: #fff;
    font-size: 0.7rem; font-weight: 700;
    padding: 4px 10px; border-radius: 999px;
    z-index: 2;
}
.sample-badge {
    position: absolute; top: 10px; right: 10px;
    background: var(--primary); color: #fff;
    font-size: 0.75rem; font-weight: 700;
    padding: 4px 10px; border-radius: 999px;
    z-index: 2;
}
.line-clamp-2 {
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ===== Category Sidebar / Chips ===== */
.cat-btn:hover { background: #fef2f2; }
.cat-chip {
    padding: 0.4rem 0.9rem;
    border-radius: 999px;
    background: #fff;
    border: 2px solid #e5e7eb;
    font-size: 0.85rem;
    font-weight: 600;
    white-space: nowrap;
    transition: all .2s;
    color: #4b5563;
}
.cat-chip.active, .cat-chip:hover {
    background: var(--primary); color: #fff; border-color: var(--primary);
}

/* ===== Specification Table ===== */
.spec-table th {
    text-align: left;
    padding: 0.6rem 0.5rem;
    color: #374151;
    font-weight: 700;
    width: 40%;
    border-bottom: 1px dashed #f3f4f6;
    vertical-align: top;
}
.spec-table td {
    padding: 0.6rem 0.5rem;
    color: #4b5563;
    border-bottom: 1px dashed #f3f4f6;
}

/* ===== Thumbnail ===== */
.thumb img { transition: transform .3s; }
.thumb:hover img { transform: scale(1.08); }

/* ===== Step Cards (Custom page) ===== */
.step-card { border: 2px solid #fef3c7; }
.step-number {
    position: absolute; top: -12px; right: -12px;
    width: 36px; height: 36px; border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--accent-pink));
    color: #fff; font-weight: 800; font-family: 'Fredoka';
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 4px 12px rgba(226,31,38,0.25);
}

/* ===== Category Item Cards ===== */
.cat-item {
    background: #fff; border: 2px solid #fef3c7;
    border-radius: 1.25rem; padding: 1.25rem 0.75rem;
    text-align: center; font-weight: 700; color: #374151;
    transition: all .25s;
}
.cat-item:hover {
    transform: translateY(-4px);
    border-color: var(--primary);
    color: var(--primary);
    box-shadow: var(--shadow-card);
}

/* ===== Platform Cards ===== */
.platform-card {
    background: #fff; border-radius: 1.25rem;
    padding: 1.5rem 1rem; text-align: center;
    box-shadow: var(--shadow-card);
    transition: all .3s; border: 2px solid #f3f4f6;
}
.platform-card:hover {
    transform: translateY(-4px);
    border-color: var(--primary);
}

/* ===== Stat Card ===== */
.stat-card {
    text-align: center;
    background: #fff;
    padding: 1.5rem 1rem;
    border-radius: 1.25rem;
    box-shadow: var(--shadow-card);
    border: 2px solid #fef3c7;
}

/* ===== Process Step (factory) ===== */
.process-step {
    background: #fff; padding: 1.5rem;
    border-radius: 1.5rem; text-align: center;
    box-shadow: var(--shadow-card);
    border: 2px solid #f3f4f6;
    position: relative;
    transition: all .25s;
}
.process-step:hover {
    transform: translateY(-4px);
    border-color: var(--primary);
}
.process-step .icon {
    position: absolute; top: -15px; left: 50%; transform: translateX(-50%);
    width: 36px; height: 36px; border-radius: 50%;
    background: var(--primary); color: #fff;
    display: flex; align-items: center; justify-content: center;
    font-weight: 800; font-family: 'Fredoka'; font-size: 0.9rem;
}
.process-step .emoji { font-size: 2.5rem; margin: 0.5rem 0 0.75rem; }
.process-step h4 { font-family: 'Fredoka'; font-weight: 700; margin-bottom: 0.5rem; color: #1f2937; }
.process-step p { font-size: 0.85rem; color: #6b7280; }

/* ===== Certificate Badge ===== */
.cert-badge {
    background: #fff; padding: 1.25rem 0.75rem;
    border-radius: 1.25rem; text-align: center;
    box-shadow: var(--shadow-card);
    transition: all .25s;
}
.cert-badge:hover { transform: translateY(-4px); }
.cert-badge h4 { font-weight: 700; font-family: 'Fredoka'; color: #1f2937; }

/* ===== Contact Card ===== */
.contact-card {
    display: block;
    background: #fff; padding: 1.5rem 1rem;
    border-radius: 1.5rem; text-align: center;
    box-shadow: var(--shadow-card);
    border: 2px solid #f3f4f6;
    transition: all .25s; color: inherit;
}
.contact-card:hover {
    transform: translateY(-4px);
    border-color: var(--primary);
    color: inherit;
}

/* ===== FAQ ===== */
.faq-item { transition: all .25s; border: 2px solid transparent; }
.faq-item:hover { border-color: #fecaca; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item[open] summary i { transform: rotate(180deg); }
.faq-item summary i { transition: transform .3s; }

/* ===== Animation - float ===== */
@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}
.float { animation: float 6s ease-in-out infinite; }

/* ===== Product Card Enhancements ===== */
.product-card {
    background: #fff;
    border-radius: 1.25rem;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,.04);
    border: 1px solid #f3f4f6;
    transition: all .3s ease;
    display: flex;
    flex-direction: column;
}
.product-card:hover {
    box-shadow: 0 12px 30px rgba(226,31,38,.12);
    transform: translateY(-4px);
    border-color: rgba(226,31,38,.15);
}
.product-img-wrap {
    position: relative;
    overflow: hidden;
    aspect-ratio: 1/1;
    background: linear-gradient(135deg,#fff8f0,#fef3c7);
}
.product-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .5s ease;
}
.product-card:hover .product-img-wrap img { transform: scale(1.08); }
.product-title {
    font-family: 'Fredoka', sans-serif;
    font-weight: 600;
    font-size: .92rem;
    line-height: 1.4;
    color: #1f2937;
    margin-top: .35rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.product-title a { color: inherit; transition: color .2s; }
.product-card:hover .product-title a { color: #E21F26; }
.price-tag {
    background: linear-gradient(135deg,#fee2e2,#fecaca);
    color: #b91c1c;
    padding: .25rem .6rem;
    border-radius: .6rem;
    font-size: .7rem;
    font-weight: 700;
}
.price-tag span { font-size: 1.05rem; }
.quick-actions {
    position: absolute;
    top: .6rem;
    right: .6rem;
    display: flex;
    flex-direction: column;
    gap: .4rem;
    opacity: 0;
    transform: translateX(10px);
    transition: all .3s;
}
.product-card:hover .quick-actions { opacity: 1; transform: translateX(0); }
.quick-actions a {
    width: 34px; height: 34px;
    border-radius: 50%;
    background: #fff;
    color: #E21F26;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0,0,0,.1);
    transition: all .2s;
    font-size: .85rem;
}
.quick-actions a:hover {
    background: #E21F26;
    color: #fff;
    transform: scale(1.1);
}
.badge {
    position: absolute;
    top: .6rem;
    left: .6rem;
    z-index: 2;
    padding: .25rem .6rem;
    border-radius: .6rem;
    font-size: .65rem;
    font-weight: 800;
    letter-spacing: .3px;
}
.badge-hot { background: linear-gradient(135deg,#ef4444,#f97316); color:#fff; }
.badge-new { background: linear-gradient(135deg,#22c55e,#84cc16); color:#fff; }
.badge-sale { background: linear-gradient(135deg,#3b82f6,#8b5cf6); color:#fff; }
.badge-custom { background: linear-gradient(135deg,#f59e0b,#eab308); color:#fff; }

/* ===== Category Tab ===== */
.cat-tab.active {
    background: linear-gradient(135deg,#E21F26,#f87171);
    color: #fff !important;
    box-shadow: 0 4px 12px rgba(226,31,38,.25);
}

/* ===== Sub-filter link ===== */
.sub-filter-link.active-sub {
    background: #fee2e2 !important;
    color: #E21F26 !important;
    font-weight: 700;
}


img.site-logo { mix-blend-mode: multiply; background: transparent; }
.dark-bg img.site-logo { mix-blend-mode: screen; filter: brightness(2); }

/* Toast & Modal 动画 */
@keyframes slideUp {
  from { transform: translate(-50%, 100%); opacity:0; }
  to   { transform: translate(-50%, 0); opacity:1; }
}
@keyframes popIn {
  from { transform: scale(0.9); opacity:0; }
  to   { transform: scale(1); opacity:1; }
}
@keyframes fadeIn { from{opacity:0} to{opacity:1} }
