/* ===== Reset & Base ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
    font-family: "PingFang SC","Microsoft YaHei",-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
    color: #333; line-height: 1.7; overflow-x: hidden;
}
a { text-decoration: none; color: inherit; }
img { max-width: 100%; height: auto; }
ul { list-style: none; padding: 0; margin: 0; }

:root {
    --primary: #0071bc;
    --primary-dark: #005a9e;
    --accent: #f7931e;
    --gray-50: #f8f9fa;
    --gray-100: #e9ecef;
    --gray-200: #dee2e6;
    --gray-600: #6c757d;
    --gray-800: #343a40;
    --text-light: #666;
    --border: #e0e0e0;
    --radius: 8px;
    --shadow: 0 2px 8px rgba(0,0,0,0.08);
    --max-width: 1200px;
}
.container { max-width: var(--max-width); margin: 0 auto; padding: 0 15px; }

/* ===== Header ===== */
.top-nav { background: #fff; box-shadow: 0 2px 8px rgba(0,0,0,0.08); position: sticky; top: 0; z-index: 1000; }
.top-nav .container { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.logo { display: flex; align-items: center; }
.logo img { height: 56px; width: auto; }
.nav-right { display: flex; align-items: center; gap: 4px; }
.nav-menu { display: flex; align-items: center; gap: 2px; }
.nav-menu > li > a {
    display: block; padding: 10px 16px; font-size: 16px; font-weight: 500;
    color: #555; border-radius: 4px; transition: all 0.2s;
}
.nav-menu > li > a:hover,
.nav-menu > li > a.active { color: var(--primary); background: rgba(0,113,188,0.06); }
.nav-phone { display: flex; align-items: center; gap: 4px; padding: 8px 12px; color: #555; font-size: 14px; }
.nav-lang { position: relative; cursor: pointer; padding: 6px 10px; font-size: 14px; color: #555; }
.nav-lang-dropdown { display: none; position: absolute; top: 100%; right: 0; background: #fff; border: 1px solid var(--gray-200); border-radius: 4px; box-shadow: var(--shadow); min-width: 120px; z-index: 100; }
.nav-lang:hover .nav-lang-dropdown { display: block; }
.nav-lang-dropdown a { display: block; padding: 8px 16px; font-size: 14px; color: #555; }
.nav-lang-dropdown a:hover { background: var(--gray-50); }
.nav-lang-dropdown a.active { color: var(--primary); font-weight: 600; }
.nav-btn { background: var(--primary); color: #fff !important; padding: 8px 20px !important; border-radius: 4px; font-weight: 600; }
.nav-btn:hover { background: var(--primary-dark) !important; color: #fff !important; }
.nav-btn-outline { border: 1px solid var(--gray-200); padding: 8px 16px !important; border-radius: 4px; color: #555 !important; font-size: 14px; }

.mobile-toggle { display: none; background: none; border: none; font-size: 24px; cursor: pointer; padding: 8px; color: #333; }
.mobile-menu { display: none; position: absolute; top: 72px; left: 0; right: 0; background: #fff; box-shadow: 0 8px 24px rgba(0,0,0,0.1); padding: 16px 0; z-index: 999; border-top: 1px solid var(--gray-100); }
.mobile-menu.open { display: block; }
.mobile-menu a { display: block; padding: 12px 24px; font-size: 15px; color: #333; border-bottom: 1px solid var(--gray-50); }
.mobile-menu a:hover, .mobile-menu a.active { color: var(--primary); background: rgba(0,113,188,0.04); }
.mobile-menu .nav-btn { margin: 12px 24px; text-align: center; }

@media (max-width: 992px) {
    .nav-menu { display: none; }
    .mobile-toggle { display: block; }
    .nav-phone { display: none; }
    .nav-lang { display: none; }
}

/* ===== Page Title ===== */
.page-title-wrap {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    padding: 40px 0; position: relative; overflow: hidden; color: #fff;
}
.page-title-wrap h1 { font-size: 60px; font-weight: 700; position: relative; z-index: 1; }
@media (max-width: 768px) { .page-title-wrap h1 { font-size: 26px; } }

/* ===== Hero ===== */
.hero { position: relative; min-height: 100vh; display: flex; align-items: center; color: #fff; overflow: hidden; }
.hero-bg { position: absolute; inset: 0; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; }
.hero-bg .overlay { position: absolute; inset: 0; background: rgba(0,0,0,0.55); }
.hero .container { position: relative; z-index: 1; text-align: center; padding: 80px 15px; }
.hero h1 { font-size: 60px; font-weight: 800; margin-bottom: 16px; line-height: 1.2; }
.hero .hero-subtitle { font-size: 32px; letter-spacing: 6px; opacity: 0.85; margin: 0 0 12px; max-width: none; text-transform: uppercase; font-weight: 400; }
.hero p { font-size: 18px; opacity: 0.9; max-width: 700px; margin: 0 auto 32px; line-height: 1.8; }
.hero-btns { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

.btn { display: inline-flex; align-items: center; gap: 6px; padding: 12px 28px; border-radius: 4px; font-size: 15px; font-weight: 600; transition: all 0.3s; border: none; cursor: pointer; }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: #e07810; }
.btn-outline { background: transparent; color: #fff; border: 2px solid rgba(255,255,255,0.7); }
.btn-outline:hover { border-color: #fff; background: rgba(255,255,255,0.1); }

/* ===== Home Cards ===== */
.home-cards { padding: 40px 0; }
.home-cards .row { display: flex; gap: 20px; flex-wrap: wrap; }
.home-cards .col { flex: 1; min-width: 280px; }
.home-card { display: block; border-radius: var(--radius); overflow: hidden; height: 260px; transition: all 0.3s; border: 2px solid transparent; }
.home-card img { width: 100%; height: 100%; object-fit: scale-down; padding: 6px; }
.home-card:hover { border-color: var(--primary); box-shadow: var(--shadow); }

/* ===== Three Column ===== */
.three-col { padding: 20px 0 60px; background: var(--gray-50); }
.three-col .row { display: flex; gap: 20px; flex-wrap: wrap; }
.three-col .col { flex: 1; min-width: 280px; }
.content-box { border: 2px solid var(--gray-200); border-radius: var(--radius); padding: 24px; height: 100%; background: #fff; transition: box-shadow 0.3s; }
.content-box:hover { box-shadow: var(--shadow); }
.content-box h3 { font-size: 18px; color: var(--primary); margin-bottom: 12px; }
.content-box h4 { font-size: 15px; color: var(--primary-dark); margin: 12px 0 6px; }
.content-box ul { padding-left: 16px; list-style: disc; }
.content-box ul li { font-size: 14px; color: #555; margin-bottom: 4px; }
.content-box p { font-size: 14px; color: #555; margin-bottom: 6px; }

/* ===== Partners ===== */
.partners { padding: 18px 0; }
.partners h2 { text-align: center; font-size: 48px; font-weight: 800; color: var(--primary); margin-bottom: 12px; }
.partner-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; align-items: center; }
.partner-item {
    width: 370px; height: 220px; background: #fff;
    border: 1px solid var(--gray-200); border-radius: 8px;
    display: flex; align-items: center; justify-content: center;
    padding: 0; transition: all 0.3s;
}
.partner-item img { max-width: 100%; max-height: 100%; object-fit: contain; }
.partner-item:hover { border-color: var(--primary); box-shadow: var(--shadow); }

/* ===== Automation Page ===== */
.auto-grid { display: flex; flex-wrap: wrap; gap: 20px; padding: 40px 0; }
.auto-grid .item { flex: 0 0 calc(33.333% - 14px); min-width: 260px; }
.auto-card { border: 1px solid var(--gray-200); border-radius: var(--radius); overflow: hidden; transition: all 0.3s; background: #fff; }
.auto-card:hover { box-shadow: 0 8px 30px rgba(0,0,0,0.12); transform: translateY(-2px); }
.auto-card .img-wrap { height: 180px; background: var(--gray-100); overflow: hidden; }
.auto-card .img-wrap img { width: 100%; height: 100%; object-fit: cover; }
.auto-card .body { padding: 12px 16px; text-align: center; }
.auto-card .body h5 { font-size: 15px; color: var(--primary); font-weight: 600; }
.auto-banner-wrap { margin-bottom: 20px; background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: 0 2px 8px rgba(0,0,0,0.06); }
.auto-banner-wrap:hover { box-shadow: var(--shadow); }
.auto-banner { border-radius: 0; overflow: hidden; min-height: 200px; margin-bottom: 0; }
.auto-banner img { width: 100%; height: 100%; object-fit: cover; display: block; }
.auto-banner-caption { padding: 12px 16px; text-align: center; background: #fff; border-top: 1px solid var(--gray-200); }
.auto-banner-caption h5 { font-size: 15px; color: var(--primary); font-weight: 600; margin: 0; }

/* ===== Digital Page ===== */
.digital-intro { background: #fff; border-radius: var(--radius); box-shadow: 0 0 0 10px rgba(0,0,0,0.04); padding: 40px 32px; margin: 40px 0; }
.digital-intro p { font-size: 16px; color: #555; margin-bottom: 16px; }
.digital-intro ol { padding-left: 20px; }
.digital-intro ol li { font-size: 15px; color: #555; margin-bottom: 6px; }
.digital-software { padding: 40px 0; }
.digital-software h2 { text-align: center; color: var(--primary); margin-bottom: 40px; font-size: 22px; }
.software-grid { display: flex; flex-wrap: wrap; gap: 20px; }
.software-grid .item { flex: 0 0 calc(25% - 15px); min-width: 200px; }
.software-card { text-align: center; }
.software-card h4 { font-size: 16px; color: var(--primary); margin-bottom: 12px; }
.software-card .img-box { height: 140px; background: var(--gray-100); border-radius: var(--radius); overflow: hidden; }
.software-card .img-box img { width: 100%; height: 100%; object-fit: cover; }

/* ===== About Page ===== */
.about-content { padding: 40px 0; }
.about-content p { font-size: 15px; color: #555; margin-bottom: 16px; line-height: 1.8; }
.about-content h2 { font-size: 22px; color: var(--primary); margin: 24px 0 12px; }
.about-content strong { color: var(--primary-dark); }

/* ===== Products Page ===== */
.prod-grid { display: flex; flex-wrap: wrap; gap: 24px; padding: 40px 0; }
.prod-item { flex: 0 0 calc(33.333% - 16px); min-width: 260px; border: 1px solid var(--gray-200); border-radius: var(--radius); overflow: hidden; background: #fff; transition: all 0.3s; }
.prod-item:hover { box-shadow: 0 8px 30px rgba(0,0,0,0.12); transform: translateY(-2px); }
.prod-item .img-box { height: 160px; background: var(--gray-100); overflow: hidden; }
.prod-item .img-box img { width: 100%; height: 100%; object-fit: cover; }
.prod-item .body { padding: 16px; }
.prod-item .body h4 { color: var(--primary); font-size: 16px; margin-bottom: 6px; }
.prod-item .body p { font-size: 14px; color: #666; line-height: 1.6; }

/* ===== Footer ===== */
footer { background: var(--gray-800); color: rgba(255,255,255,0.85); padding: 40px 0 0; }
.footer-grid { display: flex; flex-wrap: wrap; gap: 30px; }
.footer-grid .col { flex: 1; min-width: 200px; }
.footer-grid h5 { font-size: 15px; color: #fff; margin-bottom: 14px; }
.footer-grid ul li { margin-bottom: 8px; }
.footer-grid ul li a { font-size: 14px; color: rgba(255,255,255,0.7); transition: color 0.2s; }
.footer-grid ul li a:hover { color: var(--accent); }
.footer-grid p { font-size: 14px; color: rgba(255,255,255,0.7); line-height: 1.7; }
.footer-bottom { margin-top: 30px; padding: 16px 0; border-top: 1px solid rgba(255,255,255,0.1); display: flex; justify-content: center; align-items: center; flex-wrap: wrap; gap: 12px; font-size: 13px; color: rgba(255,255,255,0.6); text-align: center; }
.footer-bottom .lang-links a { color: rgba(255,255,255,0.6); margin: 0 4px; }
.footer-bottom .lang-links a:hover { color: #fff; }
.footer-bottom .lang-links span { color: rgba(255,255,255,0.3); }

/* ===== Scroll to Top ===== */
.scroll-top {
    position: fixed;
    bottom: 40px;
    right: 40px;
    z-index: 999;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    background: rgba(0,113,188,0.9);
    color: #fff;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    box-shadow: 0 4px 16px rgba(0,113,188,0.3);
    transition: all 0.3s ease;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
}
.scroll-top.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.scroll-top:hover {
    background: rgba(0,113,188,1);
    box-shadow: 0 6px 24px rgba(0,113,188,0.45);
    transform: translateY(-2px);
}
.scroll-top .arrow {
    font-size: 22px;
    line-height: 1;
    flex-shrink: 0;
}
.scroll-top .label {
    max-width: 0;
    overflow: hidden;
    white-space: nowrap;
    transition: max-width 0.3s ease;
    font-weight: 500;
}
.scroll-top:hover .label {
    max-width: 100px;
}
@media (max-width: 768px) {
    .scroll-top {
        bottom: 20px;
        right: 20px;
        padding: 10px 14px;
    }
}
