/* ============================================
   全局样式 & 重置
   ============================================ */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    font-family: 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
    font-size: 15px;
    line-height: 1.6;
    color: #333;
    background: #fff;
}
a { color: #e8491d; text-decoration: none; transition: color .2s; }
a:hover { color: #c13a14; }
img { max-width: 100%; height: auto; display: block; }
ul { list-style: none; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 15px; }

/* ============================================
   Top Bar
   ============================================ */
.top-bar {
    background: #222;
    color: #fff;
    font-size: 13px;
    padding: 8px 0;
}
.top-bar-inner { display: flex; justify-content: flex-end; align-items: center; gap: 20px; }
.top-contact a { color: #ccc; margin-left: 20px; }
.top-contact a:hover { color: #e8491d; }
.top-contact i { margin-right: 5px; }

/* ============================================
   Header
   ============================================ */
.site-header {
    background: #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,.08);
    position: sticky;
    top: 0;
    z-index: 1000;
}
.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 0;
}
.logo img { height: 60px; width: auto; }
.main-nav ul { display: flex; align-items: center; gap: 0; }
.main-nav > ul > li { position: relative; }
.main-nav > ul > li > a {
    display: block;
    padding: 12px 16px;
    color: #333;
    font-size: 14px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: .5px;
    transition: color .2s, background .2s;
}
.main-nav > ul > li > a:hover,
.main-nav > ul > li > a.active {
    color: #e8491d;
}
.main-nav > ul > li > a.btn-quote {
    background: #e8491d;
    color: #fff;
    border-radius: 4px;
    padding: 10px 20px;
    margin-left: 8px;
}
.main-nav > ul > li > a.btn-quote:hover {
    background: #c13a14;
    color: #fff;
}

/* Dropdown */
.has-dropdown { position: relative; }
.dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    background: #fff;
    min-width: 240px;
    box-shadow: 0 4px 16px rgba(0,0,0,.12);
    border-radius: 0 0 4px 4px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all .2s;
    z-index: 100;
}
.has-dropdown:hover > .dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.dropdown li a {
    display: block;
    padding: 10px 18px;
    color: #555;
    font-size: 13px;
    border-bottom: 1px solid #f0f0f0;
}
.dropdown li a:hover { color: #e8491d; background: #fafafa; }

/* Mobile Toggle */
.mobile-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #333;
    padding: 8px;
}

/* ============================================
   Banner / Hero
   ============================================ */
.hero-banner { position: relative; overflow: hidden; }
.hero-banner .swiper-slide img {
    width: 100%;
    height: 500px;
    object-fit: cover;
}
.hero-banner .swiper-button-next,
.hero-banner .swiper-button-prev {
    color: #fff;
    background: rgba(0,0,0,.3);
    width: 44px;
    height: 44px;
    border-radius: 50%;
}
.hero-banner .swiper-button-next::after,
.hero-banner .swiper-button-prev::after { font-size: 16px; }

/* ============================================
   Section通用
   ============================================ */
.section { padding: 60px 0; }
.section-title {
    text-align: center;
    margin-bottom: 40px;
}
.section-title h2 {
    font-size: 28px;
    color: #222;
    margin-bottom: 10px;
    position: relative;
    display: inline-block;
}
.section-title h2::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: #e8491d;
    margin: 10px auto 0;
}
.section-title p {
    color: #666;
    max-width: 700px;
    margin: 0 auto;
    font-size: 14px;
}

/* ============================================
   Company Devices (Favored by millions)
   ============================================ */
.devices-section { background: #f8f8f8; }
.devices-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 40px;
}
.device-card {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,.06);
    transition: transform .2s, box-shadow .2s;
    text-align: center;
}
.device-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0,0,0,.1);
}
.device-card .device-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}
.device-card .device-num {
    font-size: 32px;
    font-weight: 700;
    color: #e8491d;
    margin: 10px 0 5px;
}
.device-card .device-title {
    font-size: 14px;
    color: #555;
    padding: 0 12px 15px;
}

/* About section within devices */
.about-inline {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
    margin-top: 40px;
}
.about-inline h2 { font-size: 24px; color: #222; margin-bottom: 15px; }
.about-inline p { color: #666; margin-bottom: 15px; font-size: 14px; line-height: 1.8; }
.about-highlights { display: flex; flex-direction: column; gap: 10px; margin-bottom: 20px; }
.about-highlights li {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #444;
}
.about-highlights li i { color: #e8491d; font-size: 16px; }
.btn-read-more {
    display: inline-block;
    background: #e8491d;
    color: #fff;
    padding: 10px 28px;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 500;
}
.btn-read-more:hover { background: #c13a14; color: #fff; }

/* ============================================
   Latest Products Swiper
   ============================================ */
.latest-products { background: #fff; }
.products-swiper { padding: 0 40px; }
.product-card {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,.06);
    transition: transform .2s, box-shadow .2s;
}
.product-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0,0,0,.1);
}
.product-card .product-img {
    width: 100%;
    height: 220px;
    object-fit: cover;
}
.product-card .product-info { padding: 15px; }
.product-card .product-info h3 {
    font-size: 14px;
    color: #222;
    margin-bottom: 8px;
    line-height: 1.4;
    height: 40px;
    overflow: hidden;
}
.product-card .product-info h3 a { color: #222; }
.product-card .product-info h3 a:hover { color: #e8491d; }
.product-card .product-info p {
    font-size: 13px;
    color: #888;
    line-height: 1.5;
    height: 40px;
    overflow: hidden;
}
.product-card .product-info .read-more {
    display: inline-block;
    margin-top: 10px;
    color: #e8491d;
    font-size: 13px;
    font-weight: 500;
}
.link-all-products {
    text-align: center;
    margin-top: 30px;
}
.link-all-products a {
    display: inline-block;
    border: 2px solid #e8491d;
    color: #e8491d;
    padding: 10px 32px;
    border-radius: 4px;
    font-weight: 500;
    transition: all .2s;
}
.link-all-products a:hover {
    background: #e8491d;
    color: #fff;
}

/* ============================================
   Video Section
   ============================================ */
.video-section { background: #f8f8f8; }
.video-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}
.video-card {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,.06);
}
.video-card .video-wrapper {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
}
.video-card .video-wrapper iframe {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    border: none;
}

/* ============================================
   Hot Products
   ============================================ */
.hot-products { background: #fff; }
.hot-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}
.hot-card {
    background: #f8f8f8;
    border-radius: 8px;
    overflow: hidden;
    text-align: center;
    transition: transform .2s, box-shadow .2s;
}
.hot-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0,0,0,.1);
}
.hot-card .hot-img {
    width: 100%;
    height: 220px;
    object-fit: cover;
}
.hot-card .hot-info { padding: 15px; }
.hot-card .hot-info h3 {
    font-size: 14px;
    color: #222;
}
.hot-card .hot-info h3 a { color: #222; }
.hot-card .hot-info h3 a:hover { color: #e8491d; }

/* ============================================
   Hot News
   ============================================ */
.hot-news { background: #f8f8f8; }
.news-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}
.news-card {
    display: flex;
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,.06);
    transition: transform .2s, box-shadow .2s;
}
.news-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(0,0,0,.1);
}
.news-card .news-date {
    min-width: 80px;
    background: #e8491d;
    color: #fff;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 15px 10px;
}
.news-card .news-date .date-day { font-size: 28px; font-weight: 700; line-height: 1; }
.news-card .news-date .date-month { font-size: 14px; margin-top: 4px; }
.news-card .news-info { padding: 15px 20px; flex: 1; }
.news-card .news-info h3 {
    font-size: 14px;
    color: #222;
    margin-bottom: 8px;
    line-height: 1.4;
}
.news-card .news-info h3 a { color: #222; }
.news-card .news-info h3 a:hover { color: #e8491d; }
.news-card .news-info p {
    font-size: 13px;
    color: #888;
    line-height: 1.5;
}
.news-card .news-info .read-more {
    display: inline-block;
    margin-top: 8px;
    color: #e8491d;
    font-size: 13px;
    font-weight: 500;
}

/* ============================================
   Page Banner (内页顶部)
   ============================================ */
.page-banner {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    padding: 60px 0;
    text-align: center;
    color: #fff;
}
.page-banner h1 { font-size: 32px; margin-bottom: 10px; }
.page-banner .breadcrumb {
    font-size: 14px;
    color: #aaa;
}
.page-banner .breadcrumb a { color: #e8491d; }
.page-banner .breadcrumb a:hover { text-decoration: underline; }

/* ============================================
   Products List Page
   ============================================ */
.products-page { padding: 40px 0; }
.products-layout { display: grid; grid-template-columns: 250px 1fr; gap: 30px; }
.sidebar-cats {
    background: #f8f8f8;
    border-radius: 8px;
    padding: 20px;
}
.sidebar-cats h3 {
    font-size: 16px;
    color: #222;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid #e8491d;
}
.sidebar-cats li a {
    display: block;
    padding: 8px 0;
    color: #555;
    font-size: 14px;
    border-bottom: 1px solid #eee;
}
.sidebar-cats li a:hover,
.sidebar-cats li a.active { color: #e8491d; font-weight: 500; }

.products-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

/* ============================================
   Product Detail Page
   ============================================ */
.product-detail { padding: 40px 0; }
.product-detail-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.product-detail-img {
    border-radius: 8px;
    overflow: hidden;
}
.product-detail-img img {
    width: 100%;
    height: auto;
    border-radius: 8px;
}
.product-detail-info h1 {
    font-size: 24px;
    color: #222;
    margin-bottom: 15px;
}
.product-detail-info .category-tag {
    display: inline-block;
    background: #f0f0f0;
    color: #666;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    margin-bottom: 15px;
}
.product-detail-info .desc {
    color: #666;
    line-height: 1.8;
    margin-bottom: 20px;
}
.product-detail-content {
    margin-top: 40px;
    padding: 30px;
    background: #f8f8f8;
    border-radius: 8px;
    line-height: 1.8;
}
.product-detail-content h2, .product-detail-content h3 { margin: 20px 0 10px; color: #222; }
.product-detail-content p { margin-bottom: 15px; }
.product-detail-content ul, .product-detail-content ol { padding-left: 20px; margin-bottom: 15px; }

/* ============================================
   About Page
   ============================================ */
.about-page { padding: 40px 0; }
.about-page .about-content {
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.8;
    color: #555;
}
.about-page .about-content h2 { color: #222; margin: 25px 0 10px; }
.about-page .about-content p { margin-bottom: 15px; }

/* ============================================
   Contact Page
   ============================================ */
.contact-page { padding: 40px 0; }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.contact-info-block h3 { font-size: 20px; color: #222; margin-bottom: 20px; }
.contact-info-block p {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 15px;
    font-size: 14px;
    color: #555;
}
.contact-info-block p i { color: #e8491d; margin-top: 3px; }
.contact-form { background: #f8f8f8; padding: 30px; border-radius: 8px; }
.contact-form h3 { font-size: 20px; color: #222; margin-bottom: 20px; }
.form-group { margin-bottom: 15px; }
.form-group label { display: block; font-size: 13px; color: #555; margin-bottom: 5px; font-weight: 500; }
.form-group input, .form-group textarea, .form-group select {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    transition: border-color .2s;
}
.form-group input:focus, .form-group textarea:focus, .form-group select:focus {
    border-color: #e8491d;
    outline: none;
}
.form-group textarea { min-height: 120px; resize: vertical; }
.btn-submit {
    background: #e8491d;
    color: #fff;
    border: none;
    padding: 12px 32px;
    border-radius: 4px;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: background .2s;
}
.btn-submit:hover { background: #c13a14; }

/* ============================================
   FAQ Page
   ============================================ */
.faq-page { padding: 40px 0; }
.faq-list { max-width: 800px; margin: 0 auto; }
.faq-item {
    border: 1px solid #eee;
    border-radius: 8px;
    margin-bottom: 12px;
    overflow: hidden;
}
.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    background: #fafafa;
    cursor: pointer;
    font-weight: 500;
    color: #333;
    transition: background .2s;
}
.faq-question:hover { background: #f0f0f0; }
.faq-question i { transition: transform .2s; color: #e8491d; }
.faq-question.active i { transform: rotate(180deg); }
.faq-answer {
    padding: 0 20px;
    max-height: 0;
    overflow: hidden;
    transition: max-height .3s, padding .3s;
    color: #666;
    line-height: 1.7;
}
.faq-answer.active {
    max-height: 500px;
    padding: 15px 20px;
}

/* ============================================
   Inquiry Page
   ============================================ */
.inquiry-page { padding: 40px 0; }
.inquiry-form { max-width: 700px; margin: 0 auto; background: #f8f8f8; padding: 30px; border-radius: 8px; }

/* ============================================
   Pagination
   ============================================ */
.pagination {
    display: flex;
    justify-content: center;
    gap: 5px;
    margin-top: 30px;
}
.pagination a {
    display: inline-block;
    padding: 8px 14px;
    border: 1px solid #ddd;
    border-radius: 4px;
    color: #555;
    font-size: 13px;
}
.pagination a:hover { border-color: #e8491d; color: #e8491d; }
.pagination a.active { background: #e8491d; color: #fff; border-color: #e8491d; }

/* ============================================
   Floating Contact
   ============================================ */
.floating-contact {
    position: fixed;
    right: 20px;
    bottom: 30px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    z-index: 999;
}
.float-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    color: #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,.2);
    transition: transform .2s;
}
.float-btn:hover { transform: scale(1.1); color: #fff; }
.float-btn.whatsapp { background: #25D366; }
.float-btn.phone { background: #e8491d; }
.float-btn.email { background: #555; }
.float-btn.inquiry { background: #2196F3; }

/* ============================================
   Footer
   ============================================ */
.site-footer {
    background: #1a1a2e;
    color: #ccc;
    padding: 50px 0 0;
}
.footer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}
.footer-col h4 {
    color: #fff;
    font-size: 16px;
    margin-bottom: 18px;
    padding-bottom: 10px;
    border-bottom: 2px solid #e8491d;
    display: inline-block;
}
.footer-col .footer-qr img { width: 120px; border-radius: 4px; }
.footer-links li { margin-bottom: 6px; }
.footer-links li a { color: #aaa; font-size: 13px; }
.footer-links li a:hover { color: #e8491d; }
.footer-links li a i { margin-right: 6px; color: #e8491d; font-size: 11px; }
.footer-contact p { font-size: 13px; margin-bottom: 10px; line-height: 1.6; }
.footer-contact p i { color: #e8491d; margin-right: 8px; width: 16px; }
.footer-contact a { color: #ccc; }
.footer-contact a:hover { color: #e8491d; }
.footer-bottom {
    margin-top: 30px;
    padding: 18px 0;
    border-top: 1px solid #2a2a3e;
    text-align: center;
    font-size: 13px;
    color: #888;
}

/* ============================================
   Alert / Flash
   ============================================ */
.alert {
    padding: 12px 20px;
    border-radius: 4px;
    margin-bottom: 20px;
    font-size: 14px;
}
.alert-success { background: #d4edda; color: #155724; border: 1px solid #c3e6cb; }
.alert-error { background: #f8d7da; color: #721c24; border: 1px solid #f5c6cb; }
.alert-info { background: #d1ecf1; color: #0c5460; border: 1px solid #bee5eb; }

/* ============================================
   Responsive
   ============================================ */
@media (max-width: 992px) {
    .devices-grid { grid-template-columns: repeat(2, 1fr); }
    .video-grid { grid-template-columns: repeat(2, 1fr); }
    .hot-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: repeat(2, 1fr); }
    .products-layout { grid-template-columns: 1fr; }
    .sidebar-cats { display: none; }
    .products-grid { grid-template-columns: repeat(2, 1fr); }
    .about-inline { grid-template-columns: 1fr; }
    .contact-grid { grid-template-columns: 1fr; }
    .product-detail-layout { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
    .mobile-toggle { display: block; }
    .main-nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: #fff;
        box-shadow: 0 4px 12px rgba(0,0,0,.1);
        z-index: 100;
    }
    .main-nav.open { display: block; }
    .main-nav ul { flex-direction: column; }
    .main-nav > ul > li > a { padding: 12px 20px; border-bottom: 1px solid #f0f0f0; }
    .dropdown {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        display: none;
    }
    .has-dropdown.open .dropdown { display: block; }
    .hero-banner .swiper-slide img { height: 300px; }
    .news-grid { grid-template-columns: 1fr; }
    .devices-grid { grid-template-columns: 1fr; }
    .video-grid { grid-template-columns: 1fr; }
    .hot-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; }
    .products-grid { grid-template-columns: 1fr; }
}
