*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #0A4D8C;
    --primary-light: #1565C0;
    --primary-dark: #063A6B;
    --accent: #FF6B35;
    --accent-light: #FF8C42;
    --dark: #1a1a2e;
    --gray-dark: #333;
    --gray: #666;
    --gray-light: #f5f5f5;
    --gray-border: #e0e0e0;
    --white: #ffffff;
    --text: #2c2c2c;
    --shadow: 0 4px 20px rgba(0,0,0,0.08);
    --shadow-hover: 0 8px 30px rgba(0,0,0,0.15);
    --transition: all 0.3s ease;
    --radius: 8px;
}

html { scroll-behavior: smooth; font-size: 16px; }

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
    color: var(--text);
    background: var(--white);
    line-height: 1.6;
    overflow-x: hidden;
}

a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { max-width: 100%; display: block; }

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ========== Top Bar ========== */
.top-bar {
    background: var(--dark);
    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;
    flex-wrap: wrap;
    gap: 10px;
}
.top-bar-left { display: flex; gap: 20px; align-items: center; }
.top-bar-left span { display: flex; align-items: center; gap: 6px; }
.top-bar-right { display: flex; gap: 12px; }
.top-bar-right a {
    width: 28px; height: 28px;
    display: flex; align-items: center; justify-content: center;
    border-radius: 50%; background: rgba(255,255,255,0.1);
    transition: var(--transition); font-size: 14px;
}
.top-bar-right a:hover { background: var(--accent); transform: translateY(-2px); }

/* ========== Header / Navigation ========== */
.header {
    position: sticky; top: 0; z-index: 1000;
    background: var(--white);
    box-shadow: 0 2px 10px rgba(0,0,0,0.06);
    transition: var(--transition);
}
.nav {
    display: flex; justify-content: space-between; align-items: center; height: 72px;
}
.logo { display: flex; align-items: center; gap: 10px; font-size: 20px; font-weight: 700; color: var(--primary); }
.logo-icon {
    width: 42px; height: 42px;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    color: white; font-size: 22px; font-weight: 800; flex-shrink: 0;
}
.logo-text { display: flex; flex-direction: column; line-height: 1.2; }
.logo-text .en { font-size: 11px; color: var(--gray); font-weight: 400; letter-spacing: 1px; }

.nav-menu { display: flex; gap: 5px; align-items: center; }
.nav-menu > li > a {
    padding: 10px 5px; font-size: 15px; font-weight: 500;
    color: var(--gray-dark); border-radius: 6px;
    transition: var(--transition); display: block;
}
.nav-menu > li > a:hover, .nav-menu > li > a.active {
    color: var(--primary); background: rgba(10,77,140,0.06);
}
.nav-menu > li { position: relative; }

.dropdown {
    position: absolute; top: 100%; left: 0;
    background: white; min-width: 200px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.12);
    border-radius: var(--radius); padding: 8px 0;
    margin: 0; list-style: none;
    opacity: 0; visibility: hidden; transform: translateY(10px);
    transition: var(--transition); z-index: 100;
}
.nav-menu > li:hover .dropdown { opacity: 1; visibility: visible; transform: translateY(0); }
.dropdown li a {
    padding: 10px 20px; font-size: 14px; color: var(--gray-dark);
    transition: var(--transition); display: block;
}
.dropdown li a:hover { background: var(--gray-light); color: var(--primary); padding-left: 26px; }
.dropdown .dropdown-title {
    font-weight: 600; color: var(--primary); font-size: 13px;
    padding: 10px 20px 4px;
    border-bottom: 1px solid var(--gray-border); margin-bottom: 4px;
}
.mobile-toggle { display: none; font-size: 24px; background: none; border: none; cursor: pointer; color: var(--primary); }

/* ========== Breadcrumb ========== */
.breadcrumb {
    background: var(--gray-light);
    padding: 14px 0;
    border-bottom: 1px solid var(--gray-border);
}
.breadcrumb ul { display: flex; gap: 8px; align-items: center; font-size: 14px; color: var(--gray); flex-wrap: wrap; }
.breadcrumb ul li a { color: var(--gray); transition: var(--transition); }
.breadcrumb ul li a:hover { color: var(--primary); }
.breadcrumb ul li:last-child { color: var(--primary); font-weight: 600; }
.breadcrumb-separator { color: var(--gray-border); }

/* ========== Product Detail Section ========== */
.product-detail {
    padding: 40px 0 60px;
}

.detail-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    margin-bottom: 50px;
}

/* Product Gallery */
.product-gallery {
    position: sticky;
    top: 90px;
    align-self: start;
}

.gallery-main {
    width: 100%;
    height: 420px;
    border-radius: var(--radius);
    overflow: hidden;
    background: linear-gradient(135deg, #FF6B35, #F7931E);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    box-shadow: var(--shadow);
    margin-bottom: 16px;
}

.gallery-main svg {
    width: 180px;
    height: 180px;
    opacity: 0.9;
    transition: var(--transition);
}

.gallery-main:hover svg {
    transform: scale(1.05);
}

.gallery-badge {
    position: absolute;
    top: 16px;
    left: 16px;
    padding: 6px 16px;
    background: rgba(255,255,255,0.95);
    border-radius: 20px;
    font-size: 13px;
    font-weight: 700;
    color: var(--accent);
}

.gallery-thumbs {
    display: flex;
    gap: 12px;
}

.gallery-thumb {
    width: 90px;
    height: 90px;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    border: 3px solid transparent;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.gallery-thumb:nth-child(1) { background: linear-gradient(135deg, #FF6B35, #F7931E); }
.gallery-thumb:nth-child(2) { background: linear-gradient(135deg, #0A4D8C, #1565C0); }
.gallery-thumb:nth-child(3) { background: linear-gradient(135deg, #1a1a2e, #16213e); }
.gallery-thumb:nth-child(4) { background: linear-gradient(135deg, #2c5364, #203a43); }

.gallery-thumb:hover,
.gallery-thumb.active {
    border-color: var(--primary);
    transform: translateY(-2px);
}

.gallery-thumb svg {
    width: 40px;
    height: 40px;
    opacity: 0.8;
}

/* Product Info */
.product-info-detail {
    min-width: 0;
}

.product-info-detail .category-tag {
    display: inline-block;
    padding: 4px 14px;
    background: rgba(255,107,53,0.1);
    color: var(--accent);
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 12px;
}

.product-info-detail h1 {
    font-size: 28px;
    font-weight: 800;
    color: var(--dark);
    margin-bottom: 12px;
    line-height: 1.3;
}

.product-info-detail .subtitle {
    font-size: 15px;
    color: var(--gray);
    margin-bottom: 20px;
    line-height: 1.7;
}

.product-highlights {
    background: var(--gray-light);
    border-radius: var(--radius);
    padding: 20px;
    margin-bottom: 24px;
}

.product-highlights h4 {
    font-size: 14px;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.product-highlights ul li {
    font-size: 14px;
    color: var(--gray-dark);
    padding: 6px 0;
    padding-left: 20px;
    position: relative;
}

.product-highlights ul li::before {
    content: '\2713';
    position: absolute;
    left: 0;
    color: var(--accent);
    font-weight: 700;
}

/* Quick specs */
.quick-specs {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-bottom: 24px;
}

.quick-spec-item {
    background: white;
    border: 1px solid var(--gray-border);
    border-radius: 8px;
    padding: 14px 16px;
    transition: var(--transition);
}

.quick-spec-item:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow);
}

.quick-spec-item .label {
    font-size: 12px;
    color: var(--gray);
    margin-bottom: 4px;
}

.quick-spec-item .value {
    font-size: 16px;
    font-weight: 700;
    color: var(--primary);
}

/* Action buttons */
.product-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 24px;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 32px;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    border: none;
}

.btn-primary {
    background: var(--accent);
    color: white;
}

.btn-primary:hover {
    background: var(--accent-light);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255,107,53,0.4);
}

.btn-outline {
    background: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
}

.btn-outline:hover {
    background: var(--primary);
    color: white;
}

/* Share */
.product-share {
    display: flex;
    align-items: center;
    gap: 12px;
    padding-top: 20px;
    border-top: 1px solid var(--gray-border);
}

.product-share span {
    font-size: 14px;
    color: var(--gray);
}

.product-share a {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gray-light);
    transition: var(--transition);
    font-size: 16px;
}

.product-share a:hover {
    background: var(--primary);
    transform: translateY(-2px);
}

/* ========== Tabs Section ========== */
.detail-tabs {
    margin-bottom: 50px;
}

.tab-nav {
    display: flex;
    gap: 4px;
    border-bottom: 2px solid var(--gray-border);
    margin-bottom: 30px;
    overflow-x: auto;
}

.tab-nav button {
    padding: 14px 28px;
    font-size: 15px;
    font-weight: 600;
    color: var(--gray);
    background: none;
    border: none;
    cursor: pointer;
    transition: var(--transition);
    border-bottom: 3px solid transparent;
    margin-bottom: -2px;
    white-space: nowrap;
}

.tab-nav button:hover {
    color: var(--primary);
}

.tab-nav button.active {
    color: var(--primary);
    border-bottom-color: var(--accent);
}

.tab-content {
    display: none;
    animation: fadeIn 0.4s ease;
}

.tab-content.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Description content */
.desc-content h3 {
    font-size: 18px;
    font-weight: 700;
    color: var(--dark);
    margin: 24px 0 12px;
    padding-left: 12px;
    border-left: 4px solid var(--accent);
}

.desc-content h3:first-child {
    margin-top: 0;
}

.desc-content p {
    font-size: 15px;
    color: var(--gray-dark);
    line-height: 1.9;
    margin-bottom: 16px;
}

.desc-content ul {
    margin: 12px 0 20px 20px;
}

.desc-content ul li {
    font-size: 15px;
    color: var(--gray-dark);
    line-height: 2;
    list-style: disc;
}

/* Specs table */
.specs-table {
    width: 100%;
    border-collapse: collapse;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
}

.specs-table tr {
    transition: var(--transition);
}

.specs-table tr:hover {
    background: rgba(10,77,140,0.02);
}

.specs-table th {
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: white;
    padding: 14px 20px;
    text-align: left;
    font-size: 15px;
    font-weight: 600;
}

.specs-table th:first-child {
    width: 30%;
}

.specs-table td {
    padding: 14px 20px;
    font-size: 14px;
    color: var(--gray-dark);
    border-bottom: 1px solid var(--gray-border);
}

.specs-table td:first-child {
    font-weight: 600;
    color: var(--dark);
    background: var(--gray-light);
}

.specs-table tr:last-child td {
    border-bottom: none;
}

/* Application list */
.app-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.app-list-item {
    background: var(--gray-light);
    border-radius: var(--radius);
    padding: 24px;
    text-align: center;
    transition: var(--transition);
    border: 2px solid transparent;
}

.app-list-item:hover {
    background: white;
    border-color: var(--primary);
    box-shadow: var(--shadow-hover);
    transform: translateY(-4px);
}

.app-list-item .icon {
    width: 56px;
    height: 56px;
    margin: 0 auto 12px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: white;
}

.app-list-item:nth-child(even) .icon {
    background: linear-gradient(135deg, var(--accent), var(--accent-light));
}

.app-list-item h4 {
    font-size: 15px;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 6px;
}

.app-list-item p {
    font-size: 13px;
    color: var(--gray);
    line-height: 1.6;
}

/* Download area */
.download-area {
    background: var(--gray-light);
    border-radius: var(--radius);
    padding: 30px;
    text-align: center;
}

.download-area h4 {
    font-size: 18px;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 8px;
}

.download-area p {
    font-size: 14px;
    color: var(--gray);
    margin-bottom: 20px;
}

.download-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 28px;
    background: var(--primary);
    color: white;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    transition: var(--transition);
}

.download-btn:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(10,77,140,0.3);
}

/* ========== Related Products ========== */
.related-products {
    background: var(--gray-light);
    padding: 60px 0;
}

.related-products .section-header {
    text-align: center;
    margin-bottom: 40px;
}

.related-products .section-tag {
    display: inline-block;
    padding: 4px 16px;
    background: rgba(10,77,140,0.08);
    color: var(--primary);
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 12px;
    letter-spacing: 1px;
}

.related-products .section-title {
    font-size: 28px;
    font-weight: 800;
    color: var(--dark);
    margin-bottom: 12px;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.related-card {
    background: white;
    border: 1px solid var(--gray-border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: var(--transition);
    cursor: pointer;
}

.related-card:hover {
    border-color: transparent;
    box-shadow: var(--shadow-hover);
    transform: translateY(-6px);
}

.related-card-image {
    height: 220px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.related-card:nth-child(1) .related-card-image { background: linear-gradient(135deg, #FF6B35, #F7931E); }
.related-card:nth-child(2) .related-card-image { background: linear-gradient(135deg, #0A4D8C, #1565C0); }
.related-card:nth-child(3) .related-card-image { background: linear-gradient(135deg, #1a1a2e, #16213e); }
.related-card:nth-child(4) .related-card-image { background: linear-gradient(135deg, #2c5364, #203a43); }

.related-card-image svg {
    width: 60px;
    height: 60px;
    opacity: 0.9;
    transition: var(--transition);
}

.related-card:hover .related-card-image svg {
    transform: scale(1.15);
}

.related-card-info {
    padding: 16px 18px;
}

.related-card-info .cat {
    font-size: 12px;
    color: var(--accent);
    font-weight: 600;
    margin-bottom: 4px;
}

.related-card-info h4 {
    font-size: 15px;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 6px;
}

.related-card-info p {
    font-size: 13px;
    color: var(--gray);
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ========== CTA Section ========== */
.cta-section {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary));
    color: white;
    text-align: center;
    position: relative;
    overflow: hidden;
    padding: 60px 0;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: -50%; right: -10%;
    width: 400px; height: 400px;
    background: radial-gradient(circle, rgba(255,107,53,0.2), transparent);
    border-radius: 50%;
}

.cta-content { position: relative; z-index: 2; }
.cta-content h2 { font-size: 28px; font-weight: 800; margin-bottom: 12px; }
.cta-content p { font-size: 16px; opacity: 0.85; margin-bottom: 30px; }
.cta-btns { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

.cta-section .btn-outline {
    background: transparent;
    color: white;
    border: 2px solid rgba(255,255,255,0.4);
}

.cta-section .btn-outline:hover {
    background: white;
    color: var(--primary);
    border-color: white;
}

/* ========== Footer ========== */
.footer {
    background: var(--dark);
    color: rgba(255,255,255,0.7);
    padding: 60px 0 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 3fr  1fr 1.5fr;
    gap: 40px;
    margin-bottom: 40px;
}
.footer-brand .logo { color: white; margin-bottom: 16px; }
.footer-brand .logo .en { color: rgba(255,255,255,0.5); }
.footer-brand p { font-size: 14px; line-height: 1.8; margin-bottom: 20px; }

.footer-social { display: flex; gap: 10px; }
.footer-social a {
    width: 36px; height: 36px;
    border-radius: 50%; background: rgba(255,255,255,0.1);
    display: flex; align-items: center; justify-content: center;
    transition: var(--transition); font-size: 16px;
}
.footer-social a:hover { background: var(--accent); transform: translateY(-3px); }

.footer-col h4 { color: white; font-size: 16px; font-weight: 600; margin-bottom: 18px; }
.footer-col ul li { margin-bottom: 10px; }
.footer-col ul li a {
    font-size: 14px; color: rgba(255,255,255,0.6);
    transition: var(--transition); display: inline-flex; align-items: center; gap: 6px;
}
.footer-col ul li a:hover { color: var(--accent); padding-left: 4px; }

.footer-contact li { display: flex; gap: 10px; margin-bottom: 14px; font-size: 14px; align-items: flex-start; }
.footer-contact li .icon { color: var(--accent); font-size: 16px; flex-shrink: 0; margin-top: 2px; }

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding: 20px 0; text-align: center;
    font-size: 13px; color: rgba(255,255,255,0.4);
}

/* ========== Back to Top ========== */
.back-top {
    position: fixed; bottom: 30px; right: 30px;
    width: 48px; height: 48px; border-radius: 50%;
    background: var(--primary); color: white;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer; box-shadow: 0 4px 15px rgba(10,77,140,0.4);
    transition: var(--transition); z-index: 999;
    opacity: 0; visibility: hidden; border: none; font-size: 20px;
}
.back-top.show { opacity: 1; visibility: visible; }
.back-top:hover { background: var(--accent); transform: translateY(-4px); }

/* ========== Floating Contact ========== */
.float-contact {
    position: fixed; right: 20px; bottom: 100px;
    display: flex; flex-direction: column; gap: 10px; z-index: 999;
}

.float-btn {
    width: 52px; height: 52px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer; transition: var(--transition);
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
    color: white; font-size: 22px; border: none; position: relative;
}
.float-btn.whatsapp { background: #25D366; }
.float-btn.phone { background: var(--primary); }
.float-btn.email { background: var(--accent); }
.float-btn:hover { transform: scale(1.1); }
.float-btn .tooltip {
    position: absolute; right: 62px; top: 50%;
    transform: translateY(-50%);
    background: var(--dark); color: white;
    padding: 6px 14px; border-radius: 6px;
    font-size: 13px; white-space: nowrap;
    opacity: 0; visibility: hidden;
    transition: var(--transition); pointer-events: none;
}
.float-btn:hover .tooltip { opacity: 1; visibility: visible; }

/* ========== Responsive ========== */
@media (max-width: 1024px) {
    .related-grid { grid-template-columns: repeat(2, 1fr); }
    .app-list { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    .nav-menu {
        display: none; position: fixed; top: 72px; left: 0; width: 100%;
        background: white; flex-direction: column; padding: 20px;
        box-shadow: 0 10px 30px rgba(0,0,0,0.1);
        max-height: calc(100vh - 72px); overflow-y: auto;
    }
    .nav-menu.show { display: flex; }
    .nav-menu > li { width: 100%; }
    .nav-menu > li > a { padding: 12px 16px; width: 100%; }
    .dropdown {
        position: static; opacity: 1; visibility: visible; transform: none;
        box-shadow: none; padding: 0 0 0 20px; display: none;
    }
    .nav-menu > li:hover .dropdown { display: block; }
    .mobile-toggle { display: block; }
    .top-bar-right { display: none; }
    .top-bar-left { font-size: 12px; }

    .detail-layout { grid-template-columns: 1fr; gap: 30px; }
    .product-gallery { position: static; }
    .gallery-main { height: 300px; }

    .quick-specs { grid-template-columns: 1fr; }
    .app-list { grid-template-columns: 1fr; }
    .related-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; gap: 30px; }
    .float-contact { display: none; }

    .product-info-detail h1 { font-size: 22px; }
    .tab-nav button { padding: 12px 18px; font-size: 14px; }
}
/* ========== Page Banner ========== */
.page-banner {
    height: 280px;
    background: linear-gradient(135deg, #0a2a4a 0%, #0A4D8C 50%, #1565C0 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    position: relative;
    overflow: hidden;
}

.page-banner::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(255,107,53,0.15), transparent);
    border-radius: 50%;
}

.page-banner::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -10%;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(255,255,255,0.05), transparent);
    border-radius: 50%;
}

.page-banner-content {
    position: relative;
    z-index: 2;
}

.page-banner h1 {
    font-size: 36px;
    font-weight: 800;
    margin-bottom: 10px;
    text-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.page-banner p {
    font-size: 16px;
    opacity: 0.85;
}
