/* 导航栏和底部通用样式 */
:root {
    --nav-bg: #1e293b;
    --nav-text: #f8fafc;
    --hover: #3b82f6;
    --border-color: #475569;
    --solution-card: #f1f5f9;
}

      body {
        font-size: 0.9375rem !important; /* 14px */
        line-height: 1.5 !important;
      }

      /* 针对移动端进一步调整 */
      @media (max-width: 768px) {
        html {
          font-size: 12px !important;
        }

        body {
          font-size: 0.75rem !important; /* 11px */
        }
      }

.nav-shadow {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.search-transition {
    transition: max-height 0.3s ease, opacity 0.3s ease, padding 0.3s ease;
}

.logo-glow {
    filter: drop-shadow(0 0 8px rgba(59, 130, 246, 0.3));
}

.nav-link {
    position: relative;
    transition: all 0.3s ease;
}

.nav-link::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--hover);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.nav-link:hover::after {
    width: 80%;
}

.fullscreen-dropdown {
    position: fixed;
    left: 0;
    right: 0;
    top: 72px;
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    border-top: 3px solid var(--hover);
    opacity: 0;
    visibility: hidden;
    transform: scaleY(0);
    transform-origin: top;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 40;
    max-height: 75vh;
    height: auto;
    overflow: hidden;
    backdrop-filter: blur(10px);
}

.dropdown:hover .fullscreen-dropdown {
    opacity: 1;
    visibility: visible;
    transform: scaleY(1);
}

.category-card {
    transition: all 0.3s ease;
    border-radius: 8px;
    padding: 12px;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.3s ease 0.1s;
}

.dropdown:hover .category-card {
    opacity: 1;
    transform: translateY(0);
}

.category-card:hover {
    background: rgba(59, 130, 246, 0.05);
    transform: translateY(-2px);
}

.category-card:hover h3 {
    color: var(--hover);
}

.product-item {
    position: relative;
    padding-left: 12px;
    transition: all 0.2s ease;
    opacity: 0;
    transform: translateX(-10px);
    transition: all 0.3s ease;
}

.dropdown:hover .product-item {
    opacity: 1;
    transform: translateX(0);
}

.product-item::before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 4px;
    background: var(--hover);
    border-radius: 50%;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.product-item:hover::before {
    opacity: 1;
}

.product-item:hover {
    color: var(--hover);
    padding-left: 16px;
}

.solution-card {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    background-color: var(--solution-card);
    border-radius: 8px;
    color: #4b5563;
    font-size: 14px;
    transition: all 0.3s ease;
    margin-bottom: 8px;
    height: 60px;
    width: 100%;
}

.solution-card i {
    color: var(--hover);
    margin-right: 12px;
    font-size: 16px;
    min-width: 20px;
}

.solution-card:hover {
    color: var(--hover);
    background-color: white;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.15);
    transform: translateY(-1px);
}

.mobile-menu-container {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.mobile-menu-container.open {
    max-height: 85vh;
    overflow-y: auto;
}

.mobile-menu-item {
    border-radius: 8px;
    margin: 2px 0;
    transition: all 0.2s ease;
    font-size: 14px;
}

.mobile-menu-item:hover {
    background: rgba(59, 130, 246, 0.1);
}

.mobile-product-menu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.mobile-product-menu.open {
    max-height: none;
}

.product-submenu {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 6px;
    margin: 4px 0;
}

.product-category {
    padding: 8px 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.product-category:last-child {
    border-bottom: none;
}

@media (min-width: 1024px) {
    .nav-break\:flex {
        display: flex !important;
    }
    .nav-break\:hidden {
        display: none !important;
    }
}

/* 底部样式 */
.site-footer {
    background-color: #2d3748;
    color: #fff;
    padding: 30px 0 20px;
    margin-top: 0;
}

.footer-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 16px;
}

.footer-top {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    margin-bottom: 24px;
}

.footer-logo {
    flex: 1;
    min-width: 120px;
    display: flex;
    align-items: center;
}

.footer-logo img {
    height: 36px;
}

.footer-column {
    flex: 1;
    min-width: 140px;
}

.footer-title {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 16px;
    color: #f1f5f9;
    cursor: default;
}

.footer-collapsible-title {
    cursor: pointer;
}

.footer-list li {
    font-size: 13px;
    margin-bottom: 10px;
    color: #e2e8f0;
    cursor: pointer;
    transition: color 0.2s;
}

.footer-list li:hover {
    color: #93c5fd;
}

.footer-hotline {
    flex: 1;
    min-width: 200px;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.footer-hotline-number {
    font-size: 22px;
    font-weight: 700;
    margin: 8px 0;
    color: #fff;
}

.footer-hotline-time {
    font-size: 12px;
    color: #94a3b8;
    margin-bottom: 12px;
}

.footer-hotline-btn {
    background-color: #3b82f6;
    color: white;
    border: none;
    padding: 6px 16px;
    font-size: 13px;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.2s;
}

.footer-hotline-btn:hover {
    background-color: #2563eb;
}

.footer-bottom {
    border-top: 1px solid #475569;
    padding-top: 16px;
    text-align: center;
    font-size: 12px;
    color: #94a3b8;
    line-height: 1.6;
}

.beian-link {
    color: #93c5fd !important;
    text-decoration: none;
    transition: all 0.2s ease;
    margin-left: 4px;
}

.beian-link:hover {
    color: #60a5fa !important;
    text-decoration: underline;
}

.beian-link:active {
    color: #3b82f6 !important;
}

@media (max-width: 1024px) {
    .footer-top {
        gap: 18px;
    }
    .footer-column, .footer-hotline {
        min-width: 120px;
    }
    .footer-hotline-number {
        font-size: 20px;
    }
}

@media (max-width: 768px) {
    .site-footer {
        padding: 20px 0 16px;
    }
    .footer-top {
        flex-direction: column;
        gap: 0;
    }
    .footer-logo {
        justify-content: center;
        margin-bottom: 16px;
    }
    .footer-column {
        border-bottom: 1px solid #475569;
        padding: 12px 0;
        min-width: auto;
    }
    .footer-title {
        font-size: 16px;
        margin: 0;
        position: relative;
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 8px 0;
    }
    .footer-collapsible-title {
        padding-right: 24px;
        cursor: pointer;
    }
    .footer-collapsible-title::after {
        content: "▼";
        font-size: 12px;
        color: #94a3b8;
        position: absolute;
        right: 0;
        top: 50%;
        transform: translateY(-50%);
        transition: transform 0.3s ease;
    }
    .footer-collapsible-title.expanded::after {
        transform: translateY(-50%) rotate(180deg);
    }
    .footer-list {
        max-height: 0;
        overflow: hidden;
        opacity: 0;
        transition: max-height 0.3s ease, opacity 0.3s ease;
        margin-top: 0;
    }
    .footer-collapsible-title.expanded + .footer-list {
        max-height: 300px;
        opacity: 1;
        margin-top: 8px;
    }
    .footer-list li {
        font-size: 13px;
        margin: 0 0 10px 0;
        padding: 4px 0;
    }
    .footer-hotline {
        align-items: center;
        text-align: center;
        padding: 16px 0 8px;
        border-bottom: none;
    }
    .footer-hotline .footer-title {
        padding-right: 0;
        cursor: default;
    }
    .footer-hotline .footer-title::after {
        display: none;
    }
    .footer-bottom {
        font-size: 11px;
        padding-top: 12px;
        margin-top: 8px;
    }
}

@media (max-width: 480px) {
    .footer-hotline-btn {
        padding: 5px 14px;
        font-size: 12px;
    }
}

/* 下拉菜单解决方案样式 */
.solution-dropdown-container {
    max-height: calc(75vh - 80px);
    overflow-y: auto;
}

.compact-grid {
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: 20px;
    height: 100%;
}

.category-list {
    max-height: 100%;
    overflow-y: auto;
}

.content-area {
    max-height: 100%;
    overflow-y: auto;
    padding-right: 8px;
}

.solution-content {
    display: none;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.solution-content.active {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.solution-category {
    display: block;
    padding: 10px 14px;
    border-radius: 6px;
    margin-bottom: 4px;
    transition: all 0.3s ease;
    color: #4b5563;
    font-weight: 500;
    cursor: pointer;
    font-size: 14px;
}

.solution-category:hover,
.solution-category.active {
    background-color: rgba(59, 130, 246, 0.1);
    color: var(--hover);
}

.solution-dropdown-container::-webkit-scrollbar {
    width: 6px;
}

.solution-dropdown-container::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

.solution-dropdown-container::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 3px;
}