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

body {
    background: #ffffff;
    color: #1A2C3E;
    line-height: 1.6;
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.container {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
}

@media (max-width: 1200px) {
    .container {
        padding: 0 24px;
    }
}

@media (max-width: 992px) {
    .container {
        padding: 0 20px;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 16px;
    }
}

.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 9999;
    transition: background 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease;
    background: transparent;
    border-bottom: 1px solid transparent;
    box-shadow: none;
}

.header.scrolled {
    background: #232529;
    border-bottom: 1px solid #2a2d34;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

.header-inner {
    height: 105px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    height: 50px;
    display: block;
}

.logo a {
    border: none;
    text-decoration: none;
}

.main-nav {
    display: flex;
    list-style: none;
    gap: 45px;
    align-items: center;
}

.nav-item {
    position: relative;
}

.nav-item>a {
    display: flex;
    align-items: center;
    gap: 4px;
    color: #fff;
    text-decoration: none;
    font-size: 16px;
    line-height: 80px;
    transition: color 0.2s ease;
}

.nav-item>a:hover {
    color: #fff;
}

.arrow {
    font-size: 12px;
    color: #fff;
    transition: transform 0.2s ease;
    display: inline-block;
    margin-left: 4px;
}

.nav-item:hover .arrow {
    transform: rotate(180deg);
}

.mega-dropdown {
    position: fixed;
    top: 100px;
    left: 0;
    width: 100%;
    background: #f5f5f5;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    padding: 32px 0;
    z-index: 1000;
    border-top: 1px solid #eee;
    display: none;
}

.mega-dropdown.show {
    display: block;
}

.dropdown-content {
    max-width: 1200px;
    padding: 0 60px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 40px;
}

.sub-links {
    width: 100%;
    padding: 0 20px;
}

.sub-links .category-title {
    font-size: 22px;
    color: #222;
    margin: 0 0 20px;
    padding-bottom: 10px;
    position: relative;
    font-weight: 600;
}

.sub-links .category-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 3px;
    background: #0066cc;
}

.sub-links .category-title a {
    color: #222;
    text-decoration: none;
}

.sub-links .sub-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px 40px;
    width: 100%;
}

.sub-links .sub-grid ul {
    list-style: none;
}

.sub-links .sub-grid ul li a {
    color: #555;
    text-decoration: none;
    font-size: 16px;
    padding-left: 16px;
    position: relative;
    display: inline-block;
    line-height: 2.3;
    transition: color 0.2s ease;
}

.sub-links .sub-grid ul li a::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 5px;
    height: 5px;
    background: #0066cc;
    border-radius: 50%;
}

.sub-links .sub-grid ul li a:hover {
    color: #0066cc;
}

.dropdown-image img {
    width: 400px;
    height: 250px;
    border-radius: 8px;
    object-fit: cover;
}

.header-search {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50px;
    padding: 0 16px;
    height: 40px;
    transition: all 0.3s ease;
}

.header-search:hover {
    background: rgba(255, 255, 255, 0.18);
    border-color: rgba(255, 255, 255, 0.35);
}

.header-search input {
    border: none;
    background: transparent;
    color: #fff;
    font-size: 14px;
    width: 180px;
    outline: none;
}

.header-search input::placeholder {
    color: rgba(255, 255, 255, 0.65);
}

.header-search button {
    border: none;
    background: none;
    color: #fff;
    cursor: pointer;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.header-search button img {
    width: 20px;
    height: 20px;
    display: block;
}

.mobile-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    width: 32px;
    height: 32px;
    justify-content: center;
    align-items: center;
}

.mobile-toggle span {
    width: 26px;
    height: 2px;
    background: #fff;
    border-radius: 2px;
    transition: 0.2s ease;
}

.mobile-toggle.active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.mobile-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-toggle.active span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* ===== 通用 ===== */
.bg-gray {
    background-color: #f8f9fc;
}

.bg-white {
    background-color: #ffffff;
}

.section-padding {
    padding: 60px 0;
}

.footer {
    background-color: #232529;
    padding: 60px 0 30px;
    margin-top: auto;
}

.footer-top {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    /* gap: 30px; */
    margin-bottom: 40px;
    border-bottom: 1px solid #888;
    padding-bottom: 40px;
}

.footer-column {
    /* min-width: 130px; */
    /*max-width: 238px;*/
    flex: 1;
}

.footer-column h4 {
    font-size: 18px;
    color: #fff;
    margin-bottom: 16px;
    font-weight: 600;
}

.footer-column p {
    font-size: 15px;
    color: #aaa;
}

.footer-column ul {
    list-style: none;
}

.footer-column ul li {
    margin-bottom: 8px;
    color: #aaa;
    font-size: 15px;
}

.footer-column ul li a {
    color: #aaa;
    text-decoration: none;
    font-size: 15px;
    transition: color 0.2s ease;
}

.footer-column ul li a:hover {
    color: #0066cc;
}

.footer-contact p {
    font-size: 14px;
    color: #aaa;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.footer-contact a {
    color: #aaa;
    text-decoration: none;
}

.footer-bottom-links {
    text-align: center;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 16px;
    padding-bottom: 16px;
    border-bottom: 1px solid #fff;
    justify-content: center;
}

.footer-bottom-links a {
    color: #aaa;
    text-decoration: none;
    font-size: 13px;
}

.footer-bottom-links a:hover {
    color: #0066cc;
}

.footer-copyright {
    color: #aaa;
    font-size: 13px;
    line-height: 1.6;
    display: flex;
}

.copy {
    width: 100%;
    display: flex;
    justify-content: center;
}

.footer-copyright a {
    color: #aaa;
    text-decoration: none;
}

.footer-copyright a:hover {
    color: #0066cc;
}

@media (max-width: 768px) {
    .footer {
        padding: 24px 0;
    }

    .footer-top,
    .footer-bottom-links {
        display: none !important;
    }

    .footer-copyright {
        padding: 0 16px;
        font-size: 12px;
        display: block;
        text-align: center;
    }

    .footer-copyright p {
        width: 100%;
        margin: 4px 0;
    }

    .copy {
        display: block;
        text-align: center;
    }
}

.back-top {
    position: fixed;
    right: 30px;
    bottom: 40px;
    width: 48px;
    height: 48px;
    background: #0066cc;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 20px;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 99999;
}

.back-top.show {
    opacity: 1;
    visibility: visible;
}

.back-top:hover {
    background: #0066cc;
    transform: translateY(-4px);
}

@media (max-width: 768px) {
    .back-top {
        right: 16px;
        bottom: 24px;
        width: 40px;
        height: 40px;
        font-size: 16px;
    }
}

.nav-item>a.active {
    color: #0066cc !important;
    position: relative;
}

.nav-item>a.active::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 10px;
    width: 100%;
    height: 2px;
    background-color: #0066cc;
    opacity: 1;
}

.header.scrolled .nav-item>a {
    color: #ccc;
}

.header.scrolled .nav-item>a.active {
    color: #0066cc !important;
}

@media (max-width: 991px) {
    .mobile-toggle {
        display: flex;
    }

    .main-nav {
        position: fixed;
        top: 70px;
        left: 0;
        width: 100%;
        height: calc(100vh - 70px);
        background: #fff;
        flex-direction: column;
        padding: 0;
        margin: 0;
        z-index: 99999;
        overflow-y: auto;
        transform: translateX(-100%);
        transition: transform 0.3s ease;
    }

    .main-nav.show {
        transform: translateX(0);
    }

    .nav-item {
        margin: 0;
        padding: 0 20px;
        border-bottom: 1px solid #f0f0f0;
        width: 100%;
    }

    .nav-item>a {
        line-height: 55px;
        font-size: 16px;
        padding: 0;
        justify-content: space-between;
        color: #1A2C3E;
    }

    .arrow {
        color: #1A2C3E;
        display: inline-block !important;
        transition: transform 0.2s ease;
        font-size: 12px;
    }

    #productMenu.open .arrow {
        transform: rotate(180deg);
    }

    .mega-dropdown {
        position: static !important;
        width: 100% !important;
        background: #fafafa !important;
        box-shadow: none !important;
        padding: 0 0 12px 0 !important;
        border-top: 1px solid #eee !important;
        display: none !important;
        visibility: visible !important;
        opacity: 1 !important;
        top: auto !important;
        left: auto !important;
        transition: none !important;
    }

    .mega-dropdown.show {
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
    }

    .sub-links .sub-grid {
        display: grid !important;
        grid-template-columns: 1fr 1fr !important;
        gap: 4px 12px !important;
        padding: 8px 0 4px 0 !important;
        width: 100% !important;
    }

    .sub-links .sub-grid ul {
        list-style: none;
        padding: 0;
        margin: 0;
    }

    .sub-links .sub-grid ul li {
        padding: 2px 0;
    }

    .sub-links .sub-grid ul li a {
        color: #333 !important;
        font-size: 14px !important;
        padding-left: 14px !important;
        line-height: 2.0 !important;
        display: inline-block !important;
        text-decoration: none !important;
    }

    .sub-links .sub-grid ul li a::before {
        width: 4px !important;
        height: 4px !important;
        background: #0066cc !important;
    }

    .sub-links .category-title {
        display: block !important;
        font-size: 16px !important;
        color: #222 !important;
        margin: 0 !important;
        padding: 12px 0 4px 0 !important;
        font-weight: 600 !important;
        border-bottom: none !important;
    }

    .sub-links .category-title::after {
        display: none !important;
    }

    .sub-links .category-title a {
        color: #0066cc !important;
        text-decoration: none !important;
        font-size: 16px !important;
        display: block !important;
    }

    .dropdown-content {
        flex-direction: column !important;
        align-items: flex-start !important;
        padding: 0 16px !important;
        gap: 0 !important;
        max-width: 100% !important;
    }

    .dropdown-image {
        display: none !important;
    }

    .sub-links {
        width: 100% !important;
        padding: 0 !important;
    }

    #productMenu:hover .mega-dropdown {
        display: none !important;
    }

    #productMenu.open:hover .mega-dropdown {
        display: block !important;
    }

    #productMenu>a {
        color: #1A2C3E !important;
    }

    .header-search {
        display: none !important;
    }

    .header-inner {
        height: 70px;
    }

    .logo img {
        height: 40px;
    }

    .main-nav {
        top: 70px;
        height: calc(100vh - 70px);
    }
}

@media (max-width: 480px) {
    .sub-links .sub-grid {
        grid-template-columns: 1fr 1fr !important;
        gap: 2px 8px !important;
    }

    .sub-links .sub-grid ul li a {
        font-size: 13px !important;
        padding-left: 12px !important;
    }
}