/* ============================================
   Liangcai Creative - Global Stylesheet
   ============================================ */

/* ===== Reset & Base ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
body {
    font-family: 'Inter', sans-serif;
    color: #0f172a;
    background: #ffffff;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}
.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}
a {
    text-decoration: none;
    color: inherit;
}
img {
    max-width: 100%;
    display: block;
}

/* ===== Buttons ===== */
.btn-primary {
    display: inline-block;
    padding: 14px 36px;
    border-radius: 40px;
    font-weight: 600;
    font-size: 0.95rem;
    background: linear-gradient(135deg, #c0392b, #e67e22);
    color: #fff;
    border: none;
    transition: all 0.3s ease;
    cursor: pointer;
}
.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(192, 57, 43, 0.25);
}
.btn-outline {
    display: inline-block;
    padding: 14px 36px;
    border-radius: 40px;
    font-weight: 600;
    font-size: 0.95rem;
    background: transparent;
    color: #c0392b;
    border: 1.5px solid #c0392b;
    transition: all 0.3s ease;
    cursor: pointer;
}
.btn-outline:hover {
    background: #c0392b;
    color: #fff;
}

/* ===== Fade Up ===== */
.fade-up {
    opacity: 0;
    transform: translateY(36px);
    transition: opacity 0.7s cubic-bezier(0.2, 0.9, 0.3, 1),
        transform 0.7s cubic-bezier(0.2, 0.9, 0.3, 1);
}
.fade-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ===== Section Common ===== */
.section-label {
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #c0392b;
    margin-bottom: 8px;
}
.section-title {
    font-size: 2.4rem;
    font-weight: 700;
    color: #0f172a;
    line-height: 1.2;
    margin-bottom: 12px;
}
.text-center {
    text-align: center;
}

/* ===== Header ===== */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(15, 23, 42, 0.92);
    backdrop-filter: blur(12px);
    z-index: 1000;
    padding: 14px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    transition: all 0.3s ease;
}
.site-header.scrolled {
    padding: 8px 0;
    background: rgba(15, 23, 42, 0.96);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.2);
}
.site-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.logo-area {
    display: flex;
    align-items: center;
    gap: 14px;
}
.logo-text {
    font-size: 1.3rem;
    font-weight: 700;
    background: linear-gradient(135deg, #c0392b, #e67e22, #2980b9);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.1;
}
.logo-slogan {
    display: none;
    font-size: 0.55rem;
    font-weight: 400;
    color: #94a3b8;
    letter-spacing: 0.5px;
    line-height: 1.2;
    margin-left: 6px;
    padding-left: 12px;
    border-left: 1px solid rgba(255, 255, 255, 0.15);
}
.logo-slogan span {
    display: block;
}
@media (min-width: 993px) {
    .logo-slogan {
        display: inline-block;
    }
}
.main-nav ul {
    display: flex;
    gap: 32px;
    list-style: none;
    font-weight: 500;
    font-size: 0.95rem;
}
.main-nav a {
    color: #f1f5f9;
    transition: color 0.2s;
}
.main-nav a:hover,
.main-nav a.active {
    color: #e67e22;
}
.header-quote {
    display: block;
}
.header-quote .btn-outline {
    padding: 8px 22px;
    font-size: 0.85rem;
    border-color: #f1f5f9;
    color: #f1f5f9;
}
.header-quote .btn-outline:hover {
    background: #f1f5f9;
    color: #0f172a;
}
.mobile-toggle {
    display: none;
    font-size: 24px;
    cursor: pointer;
    color: #f1f5f9;
}
.nav-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
}

/* ===== Header Mobile ===== */
@media (max-width: 992px) {
    .main-nav {
        position: fixed;
        top: 72px;
        left: -100%;
        width: 76%;
        height: calc(100vh - 72px);
        background: #0f172a;
        transition: left 0.35s cubic-bezier(0.2, 0.9, 0.3, 1);
        padding: 40px 32px;
        z-index: 1000;
        box-shadow: 2px 0 24px rgba(0, 0, 0, 0.3);
        overflow-y: auto;
    }
    .main-nav.active {
        left: 0;
    }
    .main-nav ul {
        flex-direction: column;
        gap: 20px;
        font-size: 1.1rem;
    }
    .main-nav a {
        color: #f1f5f9;
    }
    .mobile-toggle {
        display: block;
    }

    /* Products 子菜单 */
    .main-nav .has-submenu > a {
        display: flex;
        justify-content: space-between;
        align-items: center;
    }
    .main-nav .has-submenu > a .fa-chevron-down {
        font-size: 0.75rem;
        transition: transform 0.3s ease;
        color: #94a3b8;
    }
    .main-nav .has-submenu.active > a .fa-chevron-down {
        transform: rotate(180deg);
        color: #e67e22;
    }
    .main-nav .has-submenu .submenu {
        display: none;
        flex-direction: column;
        gap: 14px;
        margin-top: 14px;
        padding-left: 18px;
        border-left: 2px solid rgba(230, 126, 34, 0.4);
    }
    .main-nav .has-submenu.active .submenu {
        display: flex;
    }
    .main-nav .has-submenu .submenu a {
        font-size: 0.95rem;
        color: #cbd5e1;
        font-weight: 400;
    }
    .main-nav .has-submenu .submenu a:hover {
        color: #e67e22;
    }
}

/* ===== PC 端 Products 下拉菜单 ===== */
@media (min-width: 993px) {
    .main-nav > ul > li.has-submenu {
        position: relative;
    }
    .main-nav > ul > li.has-submenu > a {
        display: inline-flex;
        align-items: center;
        gap: 6px;
    }
    .main-nav > ul > li.has-submenu > a .fa-chevron-down {
        font-size: 0.7rem;
        transition: transform 0.3s ease;
    }
    .main-nav > ul > li.has-submenu:hover > a {
        color: #e67e22;
    }
    .main-nav > ul > li.has-submenu:hover > a .fa-chevron-down {
        transform: rotate(180deg);
    }
    .main-nav > ul > li.has-submenu::after {
        content: '';
        position: absolute;
        left: -12px;
        right: -12px;
        top: 100%;
        height: 18px;
    }
    .main-nav > ul > li.has-submenu .submenu {
        position: absolute;
        top: 100%;
        left: 50%;
        margin-top: 16px;
        transform: translateX(-50%) translateY(-6px);
        display: block;
        min-width: 200px;
        padding: 10px 0;
        list-style: none;
        background: #0f172a;
        border: 1px solid rgba(255, 255, 255, 0.08);
        border-radius: 12px;
        box-shadow: 0 16px 40px rgba(0, 0, 0, 0.4);
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transition: opacity 0.22s ease, transform 0.22s ease, visibility 0.22s;
        z-index: 1200;
    }
    .main-nav > ul > li.has-submenu:hover .submenu,
    .main-nav > ul > li.has-submenu:focus-within .submenu {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
        transform: translateX(-50%) translateY(0);
    }
    .main-nav > ul > li.has-submenu .submenu li {
        display: block;
        margin: 0;
        padding: 0;
    }
    .main-nav > ul > li.has-submenu .submenu a {
        display: block;
        padding: 10px 22px;
        font-size: 0.9rem;
        color: #cbd5e1;
        white-space: nowrap;
        transition: background 0.2s, color 0.2s;
    }
    .main-nav > ul > li.has-submenu .submenu a:hover {
        background: rgba(230, 126, 34, 0.12);
        color: #e67e22;
    }
}

/* ===== Footer ===== */
.site-footer {
    background: #0f172a;
    color: #94a3b8;
    padding: 60px 0 24px;
}
.footer-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.6fr 0.7fr 1.2fr 1.2fr;
    gap: 32px;
    margin-bottom: 40px;
}
.footer-col h4 {
    color: #ffffff;
    font-weight: 600;
    font-size: 1rem;
    margin-bottom: 18px;
}
.footer-col ul {
    list-style: none;
}
.footer-col li {
    margin-bottom: 10px;
    font-size: 0.9rem;
}
.footer-col a:hover {
    color: #ffffff;
}
.social-icons {
    display: flex;
    gap: 14px;
    margin-top: 16px;
}
.social-icons a {
    background: rgba(255, 255, 255, 0.06);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: 0.2s;
    color: #94a3b8;
}
.social-icons a:hover {
    background: rgba(192, 57, 43, 0.3);
    color: #fff;
}
.newsletter-form {
    display: flex;
    margin-top: 12px;
}
.newsletter-form input {
    flex: 1;
    padding: 10px 16px;
    border: none;
    border-radius: 40px 0 0 40px;
    outline: none;
    font-size: 0.9rem;
    background: #1e293b;
    color: #fff;
}
.newsletter-form input::placeholder {
    color: #64748b;
}
.newsletter-form button {
    background: linear-gradient(135deg, #c0392b, #e67e22);
    border: none;
    padding: 0 18px;
    border-radius: 0 40px 40px 0;
    color: #fff;
    cursor: pointer;
    font-size: 1rem;
}
.footer-brand {
    margin-bottom: 12px;
}
.footer-brand .brand-name {
    font-size: 1.4rem;
    font-weight: 700;
    background: linear-gradient(135deg, #c0392b, #e67e22, #2980b9);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: 1px;
    display: inline-block;
}
.footer-brand .brand-tagline {
    display: inline-block;
    margin-top: 6px;
    background: #c0392b;
    color: #ffffff;
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.5px;
    padding: 4px 18px;
    border-radius: 0;
}
.footer-bottom {
    text-align: center;
    padding-top: 24px;
    border-top: 1px solid #1e293b;
    font-size: 0.8rem;
    color: #64748b;
}
.footer-bottom a {
    color: #94a3b8;
}
.footer-bottom a:hover {
    color: #ffffff;
}

/* ===== Footer Collapsible (Mobile) ===== */
@media (min-width: 769px) {
    .footer-col.collapsible .footer-toggle i {
        display: none !important;
    }
    .footer-col.collapsible h4 {
        display: block !important;
    }
}

/* ===== Mobile Bottom Bar ===== */
.mobile-bottom-bar {
    display: none;
}

/* ===== Responsive (Header & Footer) ===== */
@media (max-width: 768px) {
    
    .container {
        padding: 0 18px;
    }
    .header-quote {
        display: none;
    }
    .logo-slogan {
        display: none !important;
    }

    .footer-grid {
        display: flex;
        flex-direction: column;
        gap: 20px;
    }
    .footer-grid > .footer-col:nth-child(2),
    .footer-grid > .footer-col:nth-child(3),
    .footer-grid > .footer-col:nth-child(4) {
        display: none !important;
    }
    .footer-col:first-child {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
    }
    .footer-col:first-child .footer-brand .brand-name {
        font-size: 1.2rem;
    }
    .footer-col:first-child .footer-brand .brand-tagline {
        font-size: 0.7rem;
        padding: 3px 14px;
        margin-top: 4px;
    }
    .footer-col:first-child > p {
        font-size: 0.8rem;
        margin-top: 4px;
        text-align: left;
    }
    .footer-col:first-child .social-icons {
        width: 100%;
        justify-content: flex-start;
        margin-top: 8px;
    }
    .footer-col.collapsible {
        border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    }
    .footer-col.collapsible .footer-toggle {
        display: flex;
        justify-content: space-between;
        align-items: center;
        cursor: pointer;
        padding: 12px 0;
    }
    .footer-col.collapsible .footer-toggle h4 {
        margin: 0;
        font-size: 1rem;
        color: #ffffff;
    }
    .footer-col.collapsible .footer-toggle i {
        color: #94a3b8;
        transition: 0.3s;
    }
    .footer-col.collapsible .footer-toggle.active i {
        transform: rotate(180deg);
    }
    .footer-col.collapsible .footer-collapse-content {
        display: none;
        padding-bottom: 16px;
    }
    .footer-col.collapsible .footer-collapse-content.show {
        display: block;
    }
    .footer-col:not(:first-child):not(.collapsible) {
        margin-top: 0;
    }
    .footer-bottom {
        font-size: 0.7rem;
    }
    .footer-bottom .copyright-text,
    .footer-bottom .policy-links {
        display: block;
        margin-bottom: 4px;
    }

    .mobile-bottom-bar {
        display: flex;
        position: fixed;
        bottom: 0;
        left: 0;
        width: 100%;
        background: #ffffff;
        justify-content: space-around;
        padding: 10px 0 8px;
        border-top: 1px solid #eef2f6;
        z-index: 1000;
        box-shadow: 0 -2px 12px rgba(0, 0, 0, 0.04);
    }
    .mobile-bottom-bar a {
        display: flex;
        flex-direction: column;
        align-items: center;
        font-size: 11px;
        color: #64748b;
    }
    .mobile-bottom-bar a i {
        font-size: 20px;
        margin-bottom: 2px;
    }
    .site-footer {
        padding-bottom: 80px;
    }
}
/* ===== Footer CTA 列 ===== */
.footer-cta p {
    font-size: 0.9rem;
    color: #94a3b8;
    margin-bottom: 16px;
    line-height: 1.6;
}
.footer-cta .footer-cta-btn {
    display: inline-block;
    padding: 10px 24px;
    border-radius: 40px;
    font-weight: 600;
    font-size: 0.85rem;
    background: linear-gradient(135deg, #c0392b, #e67e22);
    color: #ffffff;
    transition: all 0.3s ease;
}
.footer-cta .footer-cta-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(192, 57, 43, 0.35);
    color: #ffffff;
}