/* ===================================
   StarFort Play - 公共样式
   品牌色: 深蓝黑 + 电子蓝 + 霓虹橙
   =================================== */

:root {
    /* 品牌主色 */
    --primary: #0B1A35;
    --primary-dark: #050D1F;
    --primary-light: #1A2B4D;
    --secondary: #00B7FF;
    --secondary-dark: #0095D9;
    --secondary-light: #4DCFFF;
    --accent: #FF6B1A;
    --accent-light: #FF8A4D;
    --accent-dark: #D9500A;
    
    /* 文字 */
    --text-dark: #0B1A35;
    --text-base: #2D3748;
    --text-muted: #64748B;
    --text-light: #94A3B8;
    
    /* 背景 */
    --bg-white: #FFFFFF;
    --bg-light: #F8FAFC;
    --bg-gray: #F1F5F9;
    --bg-dark: #0B1A35;
    --bg-darker: #050D1F;
    
    /* 边框 */
    --border-light: #E2E8F0;
    --border-base: #CBD5E1;
    
    /* 阴影 */
    --shadow-sm: 0 1px 3px rgba(11, 26, 53, 0.08);
    --shadow-base: 0 4px 12px rgba(11, 26, 53, 0.08);
    --shadow-lg: 0 10px 30px rgba(11, 26, 53, 0.12);
    --shadow-xl: 0 20px 50px rgba(11, 26, 53, 0.18);
    --shadow-glow: 0 0 30px rgba(0, 183, 255, 0.3);
    
    /* 圆角 */
    --radius-sm: 6px;
    --radius-base: 10px;
    --radius-lg: 14px;
    --radius-xl: 20px;
    --radius-2xl: 28px;
    --radius-full: 9999px;
    
    /* 动画 */
    --transition-fast: 150ms ease;
    --transition-base: 300ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 500ms cubic-bezier(0.4, 0, 0.2, 1);
    
    /* 字体 */
    --font-sans: 'Inter', 'Noto Sans SC', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-heading: 'Plus Jakarta Sans', 'Inter', 'Noto Sans SC', sans-serif;
    
    /* 容器 */
    --container-max: 1320px;
    --header-h: 64px;
    --topbar-h: 32px;
}

/* Reset */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
    font-family: var(--font-sans);
    font-size: 1rem;
    line-height: 1.6;
    color: var(--text-base);
    background: var(--bg-white);
    overflow-x: hidden;
}
html, body {
    overflow-x: hidden;
    max-width: 100vw;
}
body.menu-open {
    overflow: hidden;
    position: fixed;
    width: 100%;
    height: 100%;
}
a { text-decoration: none; color: inherit; transition: color var(--transition-fast); }
img { max-width: 100%; height: auto; display: block; }
ul, ol { list-style: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
input, select, textarea { font-family: inherit; font-size: inherit; }

.container {
    width: 100%;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 24px;
    box-sizing: border-box;
}
@media (max-width: 768px) {
    .container { padding: 0 16px; }
}

/* ============== 顶部公告栏 ============== */
.top-bar {
    background: var(--primary-dark);
    color: rgba(255,255,255,0.9);
    font-size: 0.78rem;
    padding: 6px 0;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}
.top-bar-content {
    display: flex;
    align-items: center;
    gap: 18px;
    flex-wrap: wrap;
}
.top-bar-content > span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.top-bar-content i { color: var(--secondary); }
.top-bar-slogan {
    font-weight: 600;
    color: var(--accent-light);
}
.top-bar-slogan i { color: var(--accent) !important; }
.top-bar-right {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 12px;
}
.top-bar-right a {
    color: rgba(255,255,255,0.85);
    transition: color var(--transition-fast);
}
.top-bar-right a:hover { color: var(--secondary); }
.top-bar-right .divider { color: rgba(255,255,255,0.25); }

/* ============== 头部导航 ============== */
.header {
    background: rgba(255,255,255,0.97);
    backdrop-filter: blur(12px);
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 9999;
    transition: all var(--transition-base);
}
.header.scrolled {
    box-shadow: var(--shadow-base);
}
.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: var(--header-h);
    gap: 16px;
}
.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}
.logo-icon {
    width: 42px;
    height: 42px;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    box-shadow: 0 4px 12px rgba(0, 183, 255, 0.25);
}
.logo-text {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.4rem;
    color: var(--primary);
    letter-spacing: -0.02em;
}
.logo-highlight { color: var(--accent); }

/* 导航菜单 */
.nav-menu {
    display: flex;
    align-items: center;
    gap: 4px;
    flex: 1;
    justify-content: center;
}
.nav-item { position: relative; }
.nav-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 14px;
    color: var(--text-dark);
    font-weight: 600;
    font-size: 0.9rem;
    border-radius: 8px;
    transition: all var(--transition-fast);
    white-space: nowrap;
}
.nav-link:hover, .nav-item:hover > .nav-link {
    color: var(--secondary);
    background: rgba(0, 183, 255, 0.06);
}
.nav-link i.fa-chevron-down {
    font-size: 0.625rem;
    transition: transform var(--transition-fast);
}
.nav-item:hover .nav-link i.fa-chevron-down { transform: rotate(180deg); }

/* 标准下拉 */
.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    transform: translateY(8px);
    min-width: 320px;
    background: white;
    border-radius: 14px;
    box-shadow: var(--shadow-xl);
    border: 1px solid var(--border-light);
    padding: 12px;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-base);
    z-index: 1000;
}
.nav-item:hover > .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.dropdown-menu > ul > li > a {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 10px 14px;
    border-radius: 8px;
    color: var(--text-base);
    font-size: 0.9rem;
    line-height: 1.4;
    transition: all var(--transition-fast);
}
.dropdown-menu > ul > li > a:hover {
    background: var(--bg-light);
    color: var(--secondary);
    transform: translateX(2px);
}
.dropdown-menu > ul > li > a > i {
    color: var(--secondary);
    font-size: 1rem;
    margin-top: 2px;
    width: 18px;
    text-align: center;
}
.dropdown-menu small {
    display: block;
    color: var(--text-muted);
    font-size: 0.75rem;
    font-weight: 400;
    margin-top: 2px;
}
.dropdown-menu strong, .dropdown-menu > ul > li > a {
    font-weight: 600;
}

/* Mega Menu - XL (Amusement Equipment) */
.mega-menu {
    left: 50%;
    transform: translateX(calc(-50% + 200px)) translateY(8px);
    min-width: 1200px;
    max-width: calc(100vw - 40px);
    padding: 28px;
}
.mega-menu-xl { min-width: 1280px; }
.nav-item:hover > .mega-menu {
    transform: translateX(calc(-50% + 200px)) translateY(0);
}
.mega-menu-flex {
    display: flex;
    gap: 24px;
    align-items: flex-start;
}
.mega-menu-grid {
    display: grid;
    gap: 24px;
    flex: 1;
}
.mega-grid-6 {
    grid-template-columns: repeat(6, 1fr);
}
.mega-menu-column {
    display: flex;
    flex-direction: column;
}
.mega-menu-column h4 {
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--border-light);
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--primary);
    white-space: nowrap;
    min-height: 36px;
}
.mega-menu-column h4 i {
    font-size: 0.95rem;
    width: 20px;
    text-align: center;
}
.mega-menu-column ul {
    flex: 1;
}
.mega-menu-column h4 i { font-size: 0.95rem; }
.mega-menu-column h4 a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: inherit;
    transition: opacity var(--transition-fast), letter-spacing var(--transition-fast);
}
.mega-menu-column h4 a::after {
    content: "\f061"; /* fa-arrow-right */
    font-family: "Font Awesome 6 Free", "Font Awesome 5 Free", FontAwesome;
    font-weight: 900;
    font-size: 0.65rem;
    margin-left: 2px;
    opacity: 0;
    transform: translateX(-4px);
    transition: opacity var(--transition-fast), transform var(--transition-fast);
}
.mega-menu-column h4 a:hover { opacity: 0.78; }
.mega-menu-column h4 a:hover::after { opacity: 1; transform: translateX(0); }
.mega-menu-column h4.green, .mega-cat.green { color: #10B981; border-color: #10B981; }
.mega-menu-column h4.purple, .mega-cat.purple { color: #8B5CF6; border-color: #8B5CF6; }
.mega-menu-column h4.orange, .mega-cat.orange { color: #F97316; border-color: #F97316; }
.mega-menu-column h4.yellow, .mega-cat.yellow { color: #EAB308; border-color: #EAB308; }
.mega-menu-column h4.white, .mega-cat.white { color: #475569; border-color: #475569; }
.mega-menu-column h4.brown, .mega-cat.brown { color: #92400E; border-color: #92400E; }
.mega-menu-column ul li a {
    display: block;
    padding: 6px 8px;
    color: var(--text-base);
    font-size: 0.825rem;
    border-radius: 6px;
    transition: all var(--transition-fast);
}
.mega-menu-column ul li a:hover {
    background: var(--bg-light);
    color: var(--secondary);
    padding-left: 12px;
}
.mega-menu-featured {
    background: var(--bg-light);
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    width: 220px;
    flex-shrink: 0;
}
.mega-menu-featured img {
    width: 100%;
    height: 140px;
    object-fit: cover;
}
.mega-menu-featured .featured-content {
    padding: 16px;
    flex: 1;
    display: flex;
    flex-direction: column;
}
.mega-menu-featured .badge {
    display: inline-block;
    background: var(--accent);
    color: white;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 700;
    align-self: flex-start;
    margin-bottom: 8px;
}
.mega-menu-featured h5 {
    font-size: 0.95rem;
    color: var(--primary);
    margin-bottom: 4px;
    font-weight: 700;
}
.mega-menu-featured p {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 12px;
}
.mega-menu-featured .btn {
    margin-top: auto;
    align-self: flex-start;
}

/* CTA in nav */
.nav-cta {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    gap: 10px;
}
.nav-cta .btn {
    padding: 10px 18px;
    font-size: 0.875rem;
}

/* ============== Header icon buttons (search + language) ==============
   Minimalist outlined-pill style: white bg, hairline border, accent-color icon */
.nav-icon-btn {
    appearance: none;
    -webkit-appearance: none;
    border: 1px solid rgba(11, 26, 53, 0.12);
    background: #ffffff;
    color: var(--accent, #FF6B1A);
    height: 38px;
    min-width: 38px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    padding: 0 12px;
    gap: 6px;
    font-family: inherit;
    font-size: 0.92rem;
    line-height: 1;
    text-decoration: none;
    white-space: nowrap;
    transition: border-color 0.18s ease, background 0.18s ease, color 0.18s ease, box-shadow 0.18s ease, transform 0.15s ease;
}
.nav-icon-btn > i { font-size: 0.95rem; }
.nav-icon-btn:hover {
    border-color: var(--accent, #FF6B1A);
    box-shadow: 0 4px 12px -4px rgba(255, 107, 26, 0.35);
}
.nav-icon-btn:active { transform: translateY(1px); }
.nav-icon-btn:focus-visible {
    outline: 2px solid var(--accent, #FF6B1A);
    outline-offset: 2px;
}
.lang-current-code {
    font-weight: 700;
    font-size: 0.78rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: inherit;
}
/* On scrolled white-bg headers keep the same look */
.header.scrolled .nav-icon-btn { background: #ffffff; }

/* ============== Language Modal (fullscreen picker) ==============
   Lives at end of <body> via JS — completely outside header DOM */
.lang-modal {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: block;
}
.lang-modal[hidden] { display: none !important; }

.lang-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(11, 26, 53, 0.6);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    opacity: 0;
    transition: opacity 0.24s ease;
    cursor: pointer;
}
.lang-modal.is-open .lang-modal__backdrop { opacity: 1; }

.lang-modal__panel {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.95);
    width: min(960px, calc(100vw - 32px));
    max-height: calc(100vh - 60px);
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 30px 80px -20px rgba(11, 26, 53, 0.35), 0 8px 20px -4px rgba(11, 26, 53, 0.12);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    opacity: 0;
    transition: opacity 0.24s ease, transform 0.28s cubic-bezier(0.22, 0.65, 0.3, 1);
}
.lang-modal.is-open .lang-modal__panel {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

.lang-modal__header {
    position: relative;
    padding: 32px 40px 24px;
    border-bottom: 1px solid rgba(11, 26, 53, 0.08);
    flex-shrink: 0;
}
.lang-modal__title {
    font-family: var(--font-heading, inherit);
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--primary, #0B1A35);
    margin: 0 0 6px;
    letter-spacing: -0.01em;
    line-height: 1.2;
}
.lang-modal__subtitle {
    margin: 0;
    color: var(--text-muted, #64748B);
    font-size: 0.95rem;
}
.lang-modal__close {
    position: absolute;
    top: 22px;
    right: 22px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 0;
    background: rgba(11, 26, 53, 0.06);
    color: var(--primary, #0B1A35);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    transition: background 0.18s ease, color 0.18s ease, transform 0.18s ease;
}
.lang-modal__close:hover {
    background: var(--accent, #FF6B1A);
    color: #ffffff;
    transform: rotate(90deg);
}

.lang-modal__body {
    padding: 28px 40px 36px;
    overflow-y: auto;
    flex: 1;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 28px 40px;
}

.lang-modal__group { display: flex; flex-direction: column; gap: 10px; }
.lang-modal__region {
    font-family: var(--font-heading, inherit);
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--accent, #FF6B1A);
    text-transform: uppercase;
    letter-spacing: 0.12em;
    margin: 0 0 4px;
    padding-bottom: 8px;
    border-bottom: 2px solid rgba(255, 107, 26, 0.15);
}
.lang-modal__list { display: flex; flex-direction: column; gap: 4px; }

.lang-modal__item {
    appearance: none;
    border: 0;
    background: transparent;
    width: 100%;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 14px;
    padding: 12px 14px;
    border-radius: 10px;
    cursor: pointer;
    font-family: inherit;
    color: var(--primary, #0B1A35);
    text-align: left;
    transition: background 0.18s ease, color 0.18s ease;
}
.lang-modal__item:hover { background: rgba(11, 26, 53, 0.04); }
.lang-modal__item.is-active {
    background: rgba(255, 107, 26, 0.10);
    color: var(--accent, #FF6B1A);
}

.lang-modal__flag {
    flex-shrink: 0;
    width: 36px;
    height: 26px;
    border-radius: 4px;
    background: var(--primary, #0B1A35);
    color: #ffffff;
    font-weight: 700;
    font-size: 0.74rem;
    letter-spacing: 0.04em;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12);
}
.lang-modal__item.is-active .lang-modal__flag { background: var(--accent, #FF6B1A); }

.lang-modal__text {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}
.lang-modal__name { font-weight: 600; font-size: 0.96rem; line-height: 1.2; }
.lang-modal__native { font-size: 0.82rem; color: var(--text-muted, #64748B); line-height: 1.2; }
.lang-modal__item.is-active .lang-modal__native { color: rgba(255, 107, 26, 0.8); }

.lang-modal__check {
    flex-shrink: 0;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--accent, #FF6B1A);
    color: #ffffff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    opacity: 0;
    transform: scale(0.6);
    transition: opacity 0.18s ease, transform 0.18s ease;
}
.lang-modal__item.is-active .lang-modal__check { opacity: 1; transform: scale(1); }

body.lang-modal-open { overflow: hidden; }

/* Hide Google Translate native UI residue */
.goog-te-banner-frame.skiptranslate,
.goog-te-balloon-frame,
#goog-gt-tt,
.goog-tooltip,
.goog-tooltip:hover { display: none !important; }
body.translated-ltr,
body.translated-rtl,
body { top: 0 !important; }
.skiptranslate iframe { display: none !important; }
font[style*="vertical-align"] { background: transparent !important; box-shadow: none !important; }

/* 移动菜单按钮 */
.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 8px;
}
.mobile-menu-btn span {
    width: 24px;
    height: 2px;
    background: var(--primary);
    border-radius: 2px;
    transition: all var(--transition-base);
    transform-origin: center;
}
.mobile-menu-btn.active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}
.mobile-menu-btn.active span:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}
.mobile-menu-btn.active span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* ============== 按钮 ============== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.9375rem;
    line-height: 1.2;
    cursor: pointer;
    transition: all var(--transition-base);
    white-space: nowrap;
    border: 2px solid transparent;
}
.btn-primary {
    background: linear-gradient(135deg, var(--secondary) 0%, var(--accent) 100%);
    color: white;
    box-shadow: 0 4px 14px rgba(0, 183, 255, 0.3);
}
.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 183, 255, 0.4);
    color: white;
}
.btn-outline {
    background: transparent;
    border-color: white;
    color: white;
}
.btn-outline:hover {
    background: white;
    color: var(--primary);
}
.btn-whatsapp {
    background: #25D366;
    color: white;
}
.btn-whatsapp:hover {
    background: #1DA851;
    color: white;
    transform: translateY(-2px);
}
.btn-lg { padding: 14px 32px; font-size: 1rem; }
.btn-sm { padding: 8px 16px; font-size: 0.825rem; }

/* ============== 通用区块 ============== */
.section-header {
    margin-bottom: 48px;
}
.section-header.center {
    text-align: center;
    max-width: 720px;
    margin-left: auto;
    margin-right: auto;
}
.section-tag {
    display: inline-block;
    background: rgba(0, 183, 255, 0.1);
    color: var(--secondary);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    padding: 6px 14px;
    border-radius: 20px;
    margin-bottom: 16px;
    text-transform: uppercase;
}
.section-header h2 {
    font-family: var(--font-heading);
    font-size: clamp(1.75rem, 3vw, 2.5rem);
    font-weight: 800;
    color: var(--primary);
    line-height: 1.2;
    margin-bottom: 16px;
    letter-spacing: -0.02em;
}
.section-header h2 small {
    display: block;
    font-size: 0.55em;
    font-weight: 500;
    color: var(--text-muted);
    margin-top: 8px;
    letter-spacing: 0.02em;
}
.section-header p {
    font-size: 1.0625rem;
    color: var(--text-muted);
    line-height: 1.65;
}
.section-header.light h2,
.section-header.light .section-tag {
    color: white;
}
.section-header.light .section-tag {
    background: rgba(255,255,255,0.15);
}
.section-header.light p {
    color: rgba(255,255,255,0.8);
}

/* ============== 页面英雄 ============== */
.page-hero {
    position: relative;
    min-height: 360px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: white;
    display: flex;
    align-items: center;
    overflow: hidden;
}
.page-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle at 20% 50%, rgba(255, 107, 26, 0.2) 0%, transparent 50%),
                      radial-gradient(circle at 80% 80%, rgba(0, 183, 255, 0.3) 0%, transparent 50%);
    pointer-events: none;
}
.page-hero-content {
    position: relative;
    text-align: center;
    padding: 80px 0;
    width: 100%;
}
.page-hero-tag {
    display: inline-block;
    background: rgba(255, 107, 26, 0.2);
    color: var(--accent-light);
    border: 1px solid rgba(255, 107, 26, 0.4);
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 20px;
}
.page-hero h1 {
    font-family: var(--font-heading);
    font-size: clamp(2.25rem, 4vw, 3.5rem);
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 16px;
    letter-spacing: -0.02em;
}
.page-hero h1 small {
    display: block;
    font-size: 0.42em;
    font-weight: 500;
    color: rgba(255,255,255,0.75);
    margin-top: 12px;
    letter-spacing: 0.05em;
}
.page-hero p {
    font-size: 1.125rem;
    color: rgba(255,255,255,0.85);
    max-width: 720px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Breadcrumb base styles moved to category.css for site-wide consistency.
   The .breadcrumb-section wrapper class can still be applied on standalone
   breadcrumb strips above content (light background, full-width strip). */
.breadcrumb-section {
    background: var(--bg-light);
    padding: 14px 0;
    border-bottom: 1px solid var(--border-light);
}

/* ============== Footer ============== */
.footer {
    background: var(--bg-darker);
    color: rgba(255,255,255,0.75);
    padding: 64px 0 0;
    margin-top: 80px;
}
.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr repeat(5, 1fr);
    gap: 36px;
    margin-bottom: 48px;
}
@media (max-width: 1100px) {
    .footer-grid {
        grid-template-columns: 1.4fr repeat(3, 1fr);
        gap: 32px;
    }
    .footer-brand { grid-column: 1 / -1; }
    .footer-brand p { max-width: 720px; }
}
.footer-brand .logo { margin-bottom: 16px; }
.footer-brand .logo-text { color: white; }
.footer-brand p {
    font-size: 0.925rem;
    line-height: 1.7;
    margin-bottom: 20px;
    color: rgba(255,255,255,0.7);
}
.footer-social {
    display: flex;
    gap: 10px;
}
.footer-social a {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    background: rgba(255,255,255,0.08);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-base);
}
.footer-social a:hover {
    background: var(--secondary);
    transform: translateY(-2px);
    color: white;
}
.footer-col h4 {
    font-family: var(--font-heading);
    color: white;
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 18px;
    letter-spacing: 0.02em;
}
.footer-col ul li {
    margin-bottom: 10px;
}
.footer-col ul li a {
    color: rgba(255,255,255,0.7);
    font-size: 0.9rem;
    transition: all var(--transition-fast);
}
.footer-col ul li a:hover {
    color: var(--secondary);
    padding-left: 4px;
}
.footer-contact li {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
    font-size: 0.9rem;
}
.footer-contact i {
    color: var(--secondary);
    width: 16px;
}
.footer-bottom {
    padding: 24px 0;
    border-top: 1px solid rgba(255,255,255,0.08);
    text-align: center;
    font-size: 0.825rem;
    color: rgba(255,255,255,0.5);
}
.footer-bottom a { color: rgba(255,255,255,0.7); }
.footer-bottom a:hover { color: var(--secondary); }

/* ============== 浮动联系 ============== */
.floating-contact {
    position: fixed;
    right: 20px;
    bottom: 24px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    z-index: 90;
}
.float-btn {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: white;
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-lg);
    font-size: 1.1rem;
    transition: all var(--transition-base);
    border: none;
    cursor: pointer;
}
.float-btn:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: var(--shadow-xl);
}
.float-btn.phone { background: var(--secondary); color: white; }
.float-btn.whatsapp { background: #25D366; color: white; }
.float-btn.email { background: var(--accent); color: white; }
.float-btn.quote { background: var(--primary); color: white; }
.float-btn.back-top { background: white; color: var(--primary); display: none; }
.float-btn.back-top.visible { display: flex; }

/* ============== Responsive ============== */
@media (max-width: 1280px) {
    .nav-menu { gap: 0; }
    .nav-link { padding: 8px 10px; font-size: 0.85rem; }
}

@media (max-width: 1024px) {
    .mobile-menu-btn { display: flex; }
    .nav-menu {
        position: fixed;
        top: var(--header-h, 64px);
        left: 0;
        right: 0;
        bottom: 0;
        width: 100vw;
        max-width: 100vw;
        height: calc(100vh - var(--header-h, 64px));
        height: calc(100dvh - var(--header-h, 64px));
        background: white;
        flex-direction: column;
        align-items: stretch;
        padding: 16px;
        gap: 0;
        overflow-y: auto;
        overflow-x: hidden;
        transform: translateX(100%);
        transition: transform 0.3s ease;
        z-index: 9998;
        display: flex;
        justify-content: flex-start;
        -webkit-overflow-scrolling: touch;
        box-sizing: border-box;
    }
    .nav-menu.active { 
        transform: translateX(0); 
    }
    .nav-menu * {
        max-width: 100%;
        box-sizing: border-box;
    }
    .nav-item { border-bottom: 1px solid var(--border-light); }
    .nav-item:last-child { border-bottom: none; }
    .nav-link { 
        padding: 14px 16px; 
        font-size: 1rem; 
        justify-content: space-between;
        width: 100%;
    }
    .nav-link i.fa-chevron-down {
        transition: transform 0.3s ease;
    }
    .nav-item.active .nav-link i.fa-chevron-down {
        transform: rotate(180deg);
    }
    .dropdown-menu, .mega-menu {
        position: static !important;
        transform: none !important;
        opacity: 1 !important;
        visibility: visible !important;
        box-shadow: none !important;
        border: none !important;
        min-width: 100% !important;
        width: 100% !important;
        max-width: 100% !important;
        padding: 8px 0 !important;
        display: none;
        background: var(--bg-light) !important;
        border-radius: 8px;
        margin: 8px 0 12px;
        left: 0 !important;
        right: 0 !important;
    }
    .nav-item.active .dropdown-menu,
    .nav-item.active .mega-menu { 
        display: block !important; 
    }
    /* Dropdown menu items */
    .dropdown-menu ul,
    .mega-menu ul {
        list-style: none;
        padding: 0;
        margin: 0;
    }
    .dropdown-menu ul li a,
    .dropdown-menu > ul > li > a {
        display: block;
        padding: 12px 16px;
        font-size: 0.9rem;
        color: var(--text-base);
        text-decoration: none;
        border-bottom: 1px solid rgba(0,0,0,0.05);
    }
    .dropdown-menu ul li a small {
        display: block;
        font-size: 0.75rem;
        color: var(--text-muted);
        margin-top: 2px;
    }
    .dropdown-menu ul li a i {
        margin-right: 10px;
        width: 20px;
        text-align: center;
        color: var(--secondary);
    }
    /* Mega menu mobile */
    .mega-menu-grid {
        display: block !important;
        grid-template-columns: none !important;
    }
    .mega-menu-col,
    .mega-menu-column { 
        padding: 8px 0;
        border-bottom: 1px solid rgba(0,0,0,0.05);
    }
    .mega-menu-col:last-child,
    .mega-menu-column:last-child {
        border-bottom: none;
    }
    .mega-menu-col h4,
    .mega-menu-column h4 { 
        font-size: 0.8rem; 
        font-weight: 700;
        padding: 10px 16px;
        margin-bottom: 0;
        border-left: none;
        color: var(--primary);
        text-transform: uppercase;
        letter-spacing: 0.05em;
    }
    .mega-menu-col h4 a,
    .mega-menu-column h4 a {
        color: inherit;
        text-decoration: none;
    }
    .mega-menu-col h4 a::after,
    .mega-menu-column h4 a::after { display: none !important; }
    .mega-menu-col ul,
    .mega-menu-column ul {
        padding-left: 0;
    }
    .mega-menu-col ul li a,
    .mega-menu-column ul li a {
        padding: 10px 16px 10px 32px;
        font-size: 0.85rem;
        display: block;
        color: var(--text-base);
        text-decoration: none;
    }
    .mega-menu-featured { display: none !important; }
    /* Compact mobile header: logo | search + lang | hamburger */
    .nav { gap: 8px; }
    .logo-text { font-size: 1.1rem; }
    .logo-icon { width: 36px; height: 36px; font-size: 1.05rem; }
    .nav-cta { 
        gap: 6px; 
        margin-left: auto;
    }
    .nav-cta .nav-cta-quote,
    .nav-cta .btn { display: none; }
    .nav-icon-btn { 
        height: 36px; 
        min-width: 36px; 
        width: 36px;
        padding: 0; 
        font-size: 0.85rem; 
    }
    /* Hide "EN" text on mobile, keep only globe icon */
    .nav-icon-btn .lang-current-code { display: none; }
    .mobile-menu-btn { 
        order: 99; 
        margin-left: 4px;
    }
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }

    .lang-modal__panel { width: calc(100vw - 16px); max-height: calc(100vh - 32px); border-radius: 14px; }
    .lang-modal__header { padding: 22px 22px 18px; }
    .lang-modal__title { font-size: 1.3rem; }
    .lang-modal__close { top: 16px; right: 16px; width: 36px; height: 36px; }
    .lang-modal__body { padding: 20px 22px 28px; grid-template-columns: 1fr; gap: 22px; }
}

@media (max-width: 640px) {
    :root { --header-h: 56px; }
    .container { padding: 0 16px; }
    .footer-grid { grid-template-columns: 1fr; }
    .floating-contact { right: 12px; bottom: 16px; }
    .float-btn { width: 44px; height: 44px; font-size: 1rem; }
    .page-hero h1 { font-size: 1.875rem; }
}

/* Related Articles */
.related-articles-section { padding: 60px 0; background: #f8f9fb; }
.related-articles-section .section-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 32px; }
.related-articles-section .section-header h2 { font-size: 1.5rem; margin: 0; }
.related-articles-section .section-link { color: var(--accent); text-decoration: none; font-weight: 600; }
.related-articles-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 24px; }
.related-article-card { background: #fff; border-radius: 12px; overflow: hidden; text-decoration: none; color: inherit; transition: transform .2s, box-shadow .2s; }
.related-article-card:hover { transform: translateY(-4px); box-shadow: 0 8px 24px rgba(0,0,0,.1); }
.related-article-img { height: 180px; background-size: cover; background-position: center; }
.related-article-body { padding: 16px 20px; }
.related-article-type { font-size: .75rem; text-transform: uppercase; color: var(--accent); font-weight: 600; }
.related-article-body h3 { font-size: 1rem; margin: 8px 0; line-height: 1.4; }
.related-article-body p { font-size: .875rem; color: #666; margin: 0; line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
