/* ===== Smartware Shared Styles ===== */
/* 全站 283 页公共 CSS — 浏览器首次加载后缓存 */

body {
    background: #f9f9f9;
    color: #1a1c1c;
    overflow-x: hidden;
}

.material-symbols-outlined {
    font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
}

.glass-card {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.shadow-soft {
    box-shadow: 0px 4px 20px rgba(0, 0, 0, 0.05);
}

/* Scroll animations */
.fade-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s ease-out, transform 0.7s ease-out;
}
.fade-up.animate {
    opacity: 1;
    transform: translateY(0);
}
.scale-in {
    opacity: 0;
    transform: scale(0.9);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}
.scale-in.animate {
    opacity: 1;
    transform: scale(1);
}
.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.35s; }
.delay-4 { transition-delay: 0.5s; }

/* Back to Top */
#back-to-top {
    position: fixed;
    bottom: 32px;
    right: 32px;
    z-index: 999;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: #a33e00;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 16px rgba(0,0,0,0.2);
    cursor: pointer;
    border: none;
    outline: none;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}
#back-to-top.show {
    opacity: 1;
    pointer-events: auto;
}
#back-to-top:hover {
    background: #E65C00;
}

/* Language Switch */
.lang-wrap {
    position: relative;
    display: inline-block;
}
.lang-menu {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 4px;
    background: #fff;
    border: 1px solid #e3bfb1;
    border-radius: 4px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    z-index: 9999;
    min-width: 90px;
    overflow: hidden;
}
.lang-menu button {
    display: block;
    width: 100%;
    padding: 8px 16px;
    text-align: left;
    border: none;
    background: none;
    cursor: pointer;
    font-size: 14px;
    font-family: Inter, sans-serif;
    color: #1a1c1c;
    white-space: nowrap;
}
.lang-menu button:hover {
    background: #f3f3f3;
}

/* Language Visibility */
body:not(.show-zh) [lang="zh"] { display: none !important; }
body.show-zh [lang="zh"].block      { display: block !important; }
body.show-zh [lang="zh"].flex       { display: flex !important; }
body.show-zh [lang="zh"].grid       { display: grid !important; }
body.show-zh [lang="zh"].inline-flex{ display: inline-flex !important; }
body.show-zh [lang="en"]            { display: none !important; }

/* Cookie Banner */
#cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 9999;
    background: rgba(26,28,28,0.97);
    color: #fff;
    padding: 16px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    transform: translateY(100%);
    transition: transform 0.4s ease;
}
#cookie-banner.show {
    transform: translateY(0);
}
#cookie-banner p {
    font-size: 14px;
    line-height: 1.5;
    margin: 0;
    color: rgba(255,255,255,0.8);
    max-width: 700px;
}
#cookie-banner button {
    background: #a33e00;
    color: #fff;
    border: none;
    padding: 10px 24px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.2s;
}
#cookie-banner button:hover {
    background: #E65C00;
}

/* Responsive Utilities */
@media (max-width: 767px) {
    .hero-badge { font-size: 16px !important; }
    .py-section-gap {
        padding-top: 60px !important;
        padding-bottom: 60px !important;
    }
}
.stat-suffix { font-size: 28px; }
@media (min-width: 768px) {
    .stat-suffix { font-size: 50px; }
}
