:root {
    --primary: #c41e3a;
    --primary-dark: #a3182e;
    --secondary: #1a1a2e;
    --text: #222;
    --text-light: #666;
    --bg: #fff;
    --bg-light: #f7f8fa;
    --border: #e8e8e8;
    --radius: 8px;
    --shadow: 0 4px 24px rgba(0,0,0,0.08);
    --shadow-hover: 0 12px 32px rgba(0,0,0,0.12);
    --container: 1280px;
    --transition: all .25s ease;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "PingFang SC", "Microsoft YaHei", sans-serif;
    color: var(--text);
    background: var(--bg);
    line-height: 1.6;
}
a { text-decoration: none; color: inherit; transition: var(--transition); }
img { max-width: 100%; height: auto; display: block; }
.container { width: 92%; max-width: var(--container); margin: 0 auto; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 1000; background: var(--bg); box-shadow: 0 2px 10px rgba(0,0,0,0.05); }
.top-bar { background: var(--secondary); color: rgba(255,255,255,0.85); font-size: 13px; padding: 8px 0; }
.top-bar .container { display: flex; justify-content: space-between; align-items: center; }
.top-info span { margin-right: 20px; }
.lang-switcher { position: relative; }
.lang-current {
    background: transparent; border: none; color: #fff; cursor: pointer;
    display: flex; align-items: center; gap: 6px; font-size: 13px;
}
.lang-list {
    position: absolute; right: 0; top: calc(100% + 8px);
    background: #fff; border-radius: var(--radius); box-shadow: var(--shadow);
    list-style: none; min-width: 150px; overflow: hidden; display: none;
}
.lang-switcher:hover .lang-list { display: block; }
.lang-list a { display: block; padding: 10px 16px; color: var(--text); font-size: 13px; }
.lang-list a:hover, .lang-list a.active { background: var(--bg-light); color: var(--primary); }

.main-nav { padding: 16px 0; }
.nav-inner { display: flex; justify-content: space-between; align-items: center; }
.logo { display: flex; align-items: center; }
.logo img { max-height: 48px; width: auto; }
.logo-text { font-size: 24px; font-weight: 800; color: var(--secondary); letter-spacing: -1px; }
.logo-text span { color: var(--primary); margin-left: 4px; }
.nav-menu { display: flex; gap: 32px; }
.nav-menu a {
    font-size: 15px; font-weight: 500; color: var(--text); position: relative; padding: 6px 0;
}
.nav-menu a::after {
    content: ''; position: absolute; bottom: 0; left: 0; width: 0; height: 2px;
    background: var(--primary); transition: var(--transition);
}
.nav-menu a:hover, .nav-menu a.active { color: var(--primary); }
.nav-menu a:hover::after, .nav-menu a.active::after { width: 100%; }

.mobile-menu-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; }
.mobile-menu-toggle span { width: 26px; height: 2px; background: var(--secondary); }

/* Hero - Customized Homepage */
.hero {
    position: relative; min-height: 700px; display: flex; align-items: center;
    background: linear-gradient(105deg, var(--secondary) 0%, var(--secondary) 55%, transparent 55%),
                url('../images/hero-bg.jpg') center/cover no-repeat;
    color: #fff; overflow: hidden;
}
.hero-overlay { position: absolute; inset: 0; background: rgba(0,0,0,0.35); }
.hero .container { position: relative; z-index: 2; }
.hero-content { max-width: 620px; }
.hero-badge {
    display: inline-block; background: var(--primary); color: #fff; padding: 6px 14px;
    border-radius: 30px; font-size: 13px; font-weight: 600; margin-bottom: 24px; text-transform: uppercase;
}
.hero h1 { font-size: 52px; line-height: 1.15; font-weight: 800; margin-bottom: 20px; }
.hero h1 span { color: var(--primary); }
.hero p { font-size: 18px; color: rgba(255,255,255,0.85); margin-bottom: 32px; line-height: 1.7; }
.hero-buttons { display: flex; gap: 16px; flex-wrap: wrap; }
.btn {
    display: inline-flex; align-items: center; gap: 8px; padding: 14px 28px;
    border-radius: var(--radius); font-weight: 600; font-size: 15px; transition: var(--transition);
}
.btn-primary { background: var(--primary); color: #fff; border: 2px solid var(--primary); }
.btn-primary:hover { background: var(--primary-dark); border-color: var(--primary-dark); }
.btn-outline { background: transparent; color: #fff; border: 2px solid rgba(255,255,255,0.5); }
.btn-outline:hover { border-color: #fff; background: rgba(255,255,255,0.08); }

.hero-stats {
    display: flex; gap: 48px; margin-top: 48px; padding-top: 32px;
    border-top: 1px solid rgba(255,255,255,0.15);
}
.hero-stats .stat strong { display: block; font-size: 36px; font-weight: 800; color: #fff; }
.hero-stats .stat span { font-size: 14px; color: rgba(255,255,255,0.7); }

/* Sections */
.section { padding: 90px 0; }
.section-light { background: var(--bg-light); }
.section-header { text-align: center; max-width: 720px; margin: 0 auto 56px; }
.section-header h2 { font-size: 36px; font-weight: 800; margin-bottom: 12px; color: var(--secondary); }
.section-header h2 span { color: var(--primary); }
.section-header p { color: var(--text-light); font-size: 16px; }

/* Category Cards */
.category-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 24px; }
.category-card {
    background: var(--bg); border-radius: var(--radius); padding: 32px 24px; text-align: center;
    box-shadow: var(--shadow); transition: var(--transition); border-bottom: 3px solid transparent;
}
.category-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-hover); border-bottom-color: var(--primary); }
.category-icon { width: 64px; height: 64px; margin: 0 auto 18px; background: var(--bg-light); border-radius: 50%; display: flex; align-items: center; justify-content: center; color: var(--primary); font-size: 28px; }
.category-card h3 { font-size: 18px; margin-bottom: 8px; }
.category-card p { font-size: 13px; color: var(--text-light); }

/* Products */
.product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 28px; }
.product-card {
    background: var(--bg); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow);
    transition: var(--transition); display: flex; flex-direction: column;
}
.product-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-hover); }
.product-image { height: 220px; background: var(--bg-light); display: flex; align-items: center; justify-content: center; overflow: hidden; position: relative; }
.product-image img { width: 100%; height: 100%; object-fit: cover; }
.product-image .placeholder {
    width: 100%; height: 100%; display: flex; align-items: center; justify-content: center;
    background: linear-gradient(135deg, #e8e8e8 0%, #f0f0f0 100%); color: #999; font-size: 14px;
}
.product-body { padding: 24px; flex: 1; display: flex; flex-direction: column; }
.product-body h3 { font-size: 18px; margin-bottom: 6px; }
.product-body .subtitle { font-size: 13px; color: var(--primary); font-weight: 600; margin-bottom: 12px; }
.product-body p { font-size: 14px; color: var(--text-light); margin-bottom: 18px; flex: 1; }
.product-body .btn { align-self: flex-start; padding: 10px 20px; font-size: 13px; }

/* About preview */
.about-split { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.about-image { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.about-image img { width: 100%; height: 420px; object-fit: cover; }
.about-content h2 { font-size: 36px; margin-bottom: 20px; color: var(--secondary); }
.about-content h2 span { color: var(--primary); }
.about-content p { color: var(--text-light); margin-bottom: 16px; }
.feature-list { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 28px; }
.feature-item { display: flex; gap: 12px; align-items: flex-start; }
.feature-item svg { color: var(--primary); flex-shrink: 0; margin-top: 3px; }
.feature-item strong { display: block; margin-bottom: 2px; }
.feature-item span { font-size: 13px; color: var(--text-light); }

/* Cases */
.case-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(360px, 1fr)); gap: 28px; }
.case-card { position: relative; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.case-card img { width: 100%; height: 280px; object-fit: cover; transition: var(--transition); }
.case-card:hover img { transform: scale(1.05); }
.case-info {
    position: absolute; bottom: 0; left: 0; right: 0; padding: 24px;
    background: linear-gradient(to top, rgba(0,0,0,0.85), transparent); color: #fff;
}
.case-info h3 { font-size: 20px; margin-bottom: 6px; }
.case-info span { font-size: 13px; opacity: 0.85; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 48px; }
.contact-info h3 { font-size: 28px; margin-bottom: 20px; }
.contact-info p { color: var(--text-light); margin-bottom: 12px; display: flex; align-items: center; gap: 10px; }
.contact-form { background: var(--bg-light); padding: 40px; border-radius: var(--radius); }
.form-group { margin-bottom: 20px; }
.form-group label { display: block; margin-bottom: 6px; font-size: 14px; font-weight: 500; }
.form-group input, .form-group textarea, .form-group select {
    width: 100%; padding: 12px 14px; border: 1px solid var(--border); border-radius: var(--radius);
    background: var(--bg); font-size: 14px;
}
.form-group input:focus, .form-group textarea:focus, .form-group select:focus { outline: none; border-color: var(--primary); }
.alert { padding: 14px 18px; border-radius: var(--radius); margin-bottom: 20px; }
.alert-success { background: #d1fae5; color: #065f46; }
.alert-error { background: #fee2e2; color: #991b1b; }

/* Service promise / network */
.promise-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 24px; }
.promise-card { background: var(--bg); padding: 32px; border-radius: var(--radius); box-shadow: var(--shadow); }
.promise-card .num { font-size: 36px; font-weight: 800; color: var(--primary); opacity: 0.3; line-height: 1; margin-bottom: 12px; }
.promise-card h3 { font-size: 18px; margin-bottom: 10px; }
.promise-card p { font-size: 14px; color: var(--text-light); }

/* Footer */
.site-footer { background: var(--secondary); color: rgba(255,255,255,0.7); padding-top: 70px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1.5fr; gap: 40px; padding-bottom: 50px; }
.footer-brand .logo-text { color: #fff; margin-bottom: 16px; display: inline-block; }
.footer-brand p { font-size: 14px; line-height: 1.7; }
.footer-links h4, .footer-contact h4 { color: #fff; font-size: 16px; margin-bottom: 18px; }
.footer-links a { display: block; margin-bottom: 10px; font-size: 14px; }
.footer-links a:hover { color: #fff; }
.footer-contact p { margin-bottom: 10px; font-size: 14px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); padding: 20px 0; text-align: center; font-size: 13px; }

/* Page Banner */
.page-banner {
    background: linear-gradient(rgba(26,26,46,0.85), rgba(26,26,46,0.85)), url('../images/banner.jpg') center/cover no-repeat;
    color: #fff; padding: 90px 0; text-align: center;
}
.page-banner h1 { font-size: 42px; margin-bottom: 10px; }
.page-banner p { color: rgba(255,255,255,0.75); }

/* Breadcrumb */
.breadcrumb { background: var(--bg-light); padding: 16px 0; font-size: 13px; color: var(--text-light); }
.breadcrumb a:hover { color: var(--primary); }

/* Product detail */
.product-detail { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.product-gallery { background: var(--bg-light); border-radius: var(--radius); overflow: hidden; }
.product-gallery img { width: 100%; height: 450px; object-fit: cover; }
.product-meta h1 { font-size: 32px; margin-bottom: 8px; }
.product-meta .subtitle { color: var(--primary); font-weight: 600; margin-bottom: 20px; display: block; }
.product-meta .desc { color: var(--text-light); margin-bottom: 24px; }
.spec-box { background: var(--bg-light); padding: 24px; border-radius: var(--radius); margin-bottom: 16px; }
.spec-box h3 { font-size: 16px; margin-bottom: 12px; }
.spec-box p { white-space: pre-line; color: var(--text-light); font-size: 14px; line-height: 1.8; }

/* Tabs for about page */
.tabs { display: flex; gap: 8px; margin-bottom: 32px; border-bottom: 2px solid var(--border); }
.tab { padding: 12px 24px; font-weight: 600; color: var(--text-light); border-bottom: 2px solid transparent; margin-bottom: -2px; }
.tab.active, .tab:hover { color: var(--primary); border-bottom-color: var(--primary); }
.tab-content { display: none; }
.tab-content.active { display: block; }
.tab-content p { margin-bottom: 14px; color: var(--text-light); line-height: 1.8; }

/* Pagination */
.pagination { display: flex; justify-content: center; gap: 8px; margin-top: 40px; }
.pagination a, .pagination span { padding: 8px 14px; border-radius: var(--radius); border: 1px solid var(--border); font-size: 14px; }
.pagination a:hover { background: var(--primary); color: #fff; border-color: var(--primary); }
.pagination span { background: var(--bg-light); }

/* Admin */
.admin-body { background: var(--bg-light); }
.admin-header { background: var(--secondary); color: #fff; padding: 14px 0; }
.admin-header .container { display: flex; justify-content: space-between; align-items: center; }
.admin-header a { color: #fff; font-weight: 600; }
.admin-header nav a { margin-left: 24px; font-weight: 400; font-size: 14px; opacity: 0.85; }
.admin-header nav a:hover { opacity: 1; }
.admin-main { padding: 40px 0; }
.admin-card { background: var(--bg); border-radius: var(--radius); box-shadow: var(--shadow); padding: 32px; margin-bottom: 24px; }
.admin-card h2 { font-size: 20px; margin-bottom: 24px; padding-bottom: 12px; border-bottom: 2px solid var(--bg-light); }
.admin-table { width: 100%; border-collapse: collapse; }
.admin-table th, .admin-table td { padding: 14px; text-align: left; border-bottom: 1px solid var(--border); font-size: 14px; }
.admin-table th { background: var(--bg-light); font-weight: 600; }
.admin-table tr:hover { background: var(--bg-light); }
.admin-table .thumb { width: 60px; height: 45px; object-fit: cover; border-radius: 4px; }
.admin-btn { display: inline-block; padding: 8px 16px; border-radius: var(--radius); font-size: 13px; font-weight: 600; border: none; cursor: pointer; }
.admin-btn-primary { background: var(--primary); color: #fff; }
.admin-btn-danger { background: #dc2626; color: #fff; }
.admin-btn-secondary { background: var(--bg-light); color: var(--text); }
.lang-tabs { display: flex; gap: 8px; margin-bottom: 20px; }
.lang-tab { padding: 8px 16px; border: 1px solid var(--border); border-radius: var(--radius); cursor: pointer; background: var(--bg); }
.lang-tab.active { background: var(--primary); color: #fff; border-color: var(--primary); }
.lang-panel { display: none; }
.lang-panel.active { display: block; }

.login-page { min-height: 100vh; display: flex; align-items: center; justify-content: center; background: var(--secondary); }
.login-box { background: var(--bg); padding: 48px; border-radius: var(--radius); width: 100%; max-width: 420px; box-shadow: var(--shadow-hover); }
.login-box h1 { text-align: center; margin-bottom: 28px; color: var(--secondary); }

/* Responsive */
@media (max-width: 1024px) {
    .hero { background: linear-gradient(rgba(26,26,46,0.92), rgba(26,26,46,0.85)), url('../images/hero-bg.jpg') center/cover no-repeat; }
    .hero h1 { font-size: 40px; }
    .about-split, .contact-grid, .product-detail { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
    .top-info { display: none; }
    .mobile-menu-toggle { display: flex; }
    .nav-menu {
        position: absolute; top: 100%; left: 0; right: 0; background: var(--bg);
        flex-direction: column; padding: 20px; box-shadow: var(--shadow); display: none;
    }
    .nav-menu.open { display: flex; }
    .hero { min-height: 600px; padding: 60px 0; }
    .hero h1 { font-size: 32px; }
    .hero-stats { flex-direction: column; gap: 20px; }
    .section { padding: 60px 0; }
    .section-header h2 { font-size: 28px; }
    .feature-list { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; }
    .case-grid, .product-grid { grid-template-columns: 1fr; }
    .tabs { flex-wrap: wrap; }
}
