﻿*, body, html, div, p, h1, h2, h3, h4, h5, h6, span, i, strong, small, ul, li, dl, dt, dd, ol, table, tr, td, th, a, input, textarea, label, img, hr,p {
    margin: 0;
    padding: 0
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
    background-color: #f5f5f5;
}
a:focus, a:hover {
    text-decoration: none;
}
.header {
    background: linear-gradient(135deg, #4A90E2 0%, #357ABD 100%);
    position: relative;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
    height: 60px;
}

.logo {
    color: white;
    font-size: 24px;
    font-weight: bold;
    text-decoration: none;
    margin-right: 40px;
    display: flex;
    align-items: center;
}

    /*.logo::before {
        content: "🛒";
        margin-right: 8px;
        font-size: 28px;
    }*/
    .logo img {
        height:55px;
        width: auto;
    }

.nav-menu {
    display: flex;
    list-style: none;
    align-items: center;
    gap: 30px;
}

.nav-item {
    position: relative;
}

.nav-link {
    color: white;
    text-decoration: none;
    font-size: 16px;
    padding: 8px 16px;
    border-radius: 6px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 6px;
}

  .nav-link:hover {
        background-color: rgba(255, 255, 255, 0.1);
        transform: translateY(-2px);
        color: white;
        text-decoration: none;
    }
.nav-menu .active {
    background-color: rgba(255, 255, 255, 0.1);
    /*transform: translateY(-2px);*/
    color: white;
    text-decoration: none;
}

    .nav-link.has-dropdown::after {
        content: "▼";
        font-size: 12px;
        margin-left: 4px;
        transition: transform 0.3s ease;
    }

.nav-item:hover .nav-link.has-dropdown::after {
    transform: rotate(180deg);
}

.dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    background: white;
    border-radius: 8px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    min-width: 200px;
    z-index: 1001;
    transition: max-height 0.3s ease-out;
}

.nav-item:hover .dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-item {
    display: block;
    padding: 12px 20px;
    color: #333;
    text-decoration: none;
    border-bottom: 1px solid #f0f0f0;
    transition: all 0.3s ease;
}

    .dropdown-item:hover {
        background-color: #f8f9fa;
        color: #4A90E2;
        transform: translateX(5px);
    }

    .dropdown-item:last-child {
        border-bottom: none;
    }

    .dropdown-item::before {
        content: "▶";
        margin-right: 8px;
        font-size: 12px;
        color: #4A90E2;
    }

.user-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

.user-btn {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 8px 16px;
    border-radius: 20px;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.3s ease;
}

    .user-btn:hover {
        background: white;
        color: #4A90E2;
        transform: translateY(-2px);
    }

    .user-btn.primary {
        background: #FF6B6B;
        border-color: #FF6B6B;
    }

        .user-btn.primary:hover {
            background: #FF5252;
            border-color: #FF5252;
            color: white;
        }

/* 二级菜单容器 二级 大菜单 */
.submenu-container {
    background-color: white;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    position: absolute;
    left: 0;
    right: 0;
    top: 60px;
    z-index: 999;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
}

    .submenu-container.active {
        max-height: 500px;
        transition: max-height 0.3s ease-in;
    }

.submenu-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 30px 20px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
}

/* 二级菜单项样式 */
.submenu-item {
    text-decoration: none;
    color: #333;
    transition: all 0.2s ease;
    display: block;
}

    .submenu-item:hover {
        transform: translateY(-2px);
        background-color: #f8f9fa;
        border-radius: 8px;
    }



.submenu-title {
    font-size: 16px;
    font-weight: 500;
    margin-bottom: 8px;
    color: #333;
}

.submenu-badge {
    display: inline-block;
    background-color: #ff4444;
    color: white;
    font-size: 12px;
    padding: 2px 6px;
    border-radius: 4px;
    margin-left: 6px;
}

    .submenu-badge.php {
        background-color: #4285f4;
    }

    .submenu-badge.java {
        background-color: #ff9800;
    }

.submenu-desc {
    font-size: 14px;
    color: #666;
    line-height: 1.5;
}




/* Mobile menu Styles */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
}

@media (max-width: 768px) {
    .user-actions{display:none}
    .nav-container {
        padding: 0 15px;
    }

    .logo {
        font-size: 20px;
        margin-right: 20px;
    }

    .nav-menu {
        position: fixed;
        top: 60px;
        left: 35%;
        width: 100%;
        height: 0;
        overflow:hidden;
        background: linear-gradient(135deg, #4A90E2 0%, #357ABD 100%);
        flex-direction: column;
        justify-content: flex-start;
        align-items: stretch;
        gap: 0;
    }

        .nav-menu.active {
            height: calc(100vh - 60px);
        }

    .nav-item {
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    .nav-link {
        padding: 15px 20px;
        font-size: 18px;
        border-radius: 0;
    }

    .dropdown {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        background: rgba(255, 255, 255, 0.1);
        border-radius: 0;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
    }

    .nav-item .nav-link.has-dropdown::after {
        transform: rotate(0deg);
    }
    .nav-item.active .dropdown {
        max-height: 300px;
    }
    .nav-item.active .nav-link.has-dropdown::after {
        transform: rotate(180deg);
    }

    .dropdown-item {
        color: white;
        padding: 10px 40px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        font-size:14px;
    }

        .dropdown-item:hover {
            background: rgba(255, 255, 255, 0.1);
            color: white;
            transform: none;
        }

    .user-actions {
        position: fixed;
        bottom: 20px;
        left: 20px;
        right: 20px;
        justify-content: center;
        gap: 10px;
    }

    .mobile-menu-toggle {
        display: block;
    }
}


/* 底部栏目样式 */
.footer {
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    color: #ecf0f1;
    padding: 50px 0 0;
    position: relative;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.footer-main {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr 300px;
    gap: 40px;
    margin-bottom: 40px;
}

/* 公司信息区域 */
.footer-company-info {
    padding-right: 20px;
}

.footer-company-logo {
    font-size: 28px;
    font-weight: bold;
    background: linear-gradient(135deg, #3498db, #2980b9);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

/*    .footer-company-logo::before {
        content: "🏢";
        background: none;
        -webkit-text-fill-color: initial;
    }*/

.footer-company-desc {
    color: #bdc3c7;
    line-height: 1.6;
    margin-bottom: 20px;
    font-size: 14px;
}

.footer-company-contact {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.footer-contact-item {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #bdc3c7;
    font-size: 14px;
}

    .footer-contact-item i {
        width: 16px;
        text-align: center;
        color: #3498db;
    }

/* 菜单栏目 */
.footer-menu {
    display: flex;
    flex-direction: column;
}

.footer-menu-title {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 20px;
    color: #ecf0f1;
    position: relative;
}

    .footer-menu-title::after {
        content: '';
        position: absolute;
        bottom: -8px;
        left: 0;
        width: 30px;
        height: 2px;
        background: linear-gradient(135deg, #3498db, #2980b9);
        border-radius: 1px;
    }

.footer-menu-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-menu-item {
    position: relative;
}

.footer-menu-link {
    color: #bdc3c7;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.3s ease;
    display: block;
    padding: 4px 0;
    position: relative;
}

    .footer-menu-link:hover {
        color: #3498db;
        transform: translateX(8px);
    }

    .footer-menu-link::before {
        content: '';
        position: absolute;
        left: -15px;
        top: 50%;
        transform: translateY(-50%);
        width: 6px;
        height: 6px;
        background: #3498db;
        border-radius: 50%;
        opacity: 0;
        transition: opacity 0.3s ease;
    }

    .footer-menu-link:hover::before {
        opacity: 1;
    }

/* 微信公众号区域 */
.footer-wechat-section {
    text-align: center;
    padding: 20px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
}

.footer-wechat-title {
    font-size: 16px;
    font-weight: bold;
    margin-bottom: 15px;
    color: #ecf0f1;
}

.footer-qr-code {
    width: 120px;
    height: 120px;
    background: #fff;
    border-radius: 8px;
    margin: 0 auto 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 60px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    position: relative;
    overflow: hidden;
}



.footer-qr-placeholder {
    position: relative;
    z-index: 1;
    color: #333;
    font-size: 12px;
    font-weight: bold;
}

.footer-wechat-desc {
    color: #bdc3c7;
    font-size: 12px;
}

/* 底部版权区域 */
.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    padding: 25px 0;
    text-align: center;
    background: transparent;
}

.footer-copyright-info {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 30px;
    color: #95a5a6;
    font-size: 13px;
}

.footer-copyright-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

    .footer-copyright-item i {
        color: #3498db;
    }

.footer-icp-link {
    color: #95a5a6;
    text-decoration: none;
    transition: color 0.3s ease;
}

    .footer-icp-link:hover {
        color: #3498db;
    }

/* 响应式设计 */
@media (max-width: 1024px) {
    .footer-main {
        grid-template-columns: 1fr 1fr 1fr 250px;
        gap: 30px;
    }

    .footer-company-info {
        grid-column: 1 / -1;
        margin-bottom: 20px;
    }
}

@media (max-width: 768px) {
    .footer-main {
        grid-template-columns: 1fr 1fr;
        gap: 30px;
    }

    .footer-wechat-section {
        grid-column: 1 / -1;
        max-width: 300px;
        margin: 20px auto 0;
    }

    .footer-company-info {
        grid-column: 1 / -1;
    }

    .footer-copyright-info {
        flex-direction: column;
        gap: 15px;
    }

    .main-content h1 {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .footer-main {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .footer {
        padding: 30px 0 0;
    }

    .footer-container {
        padding: 0 15px;
    }

    .footer-company-logo {
        font-size: 24px;
    }

    .footer-qr-code {
        width: 100px;
        height: 100px;
    }
}

/* 右侧悬浮按钮容器 */
.float-toTop-buttons {
    position: fixed;
    right: 30px;
    bottom: 80px;
    z-index: 999;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

/* 置顶按钮基础样式 */
.back-to-top {
    width: 50px;
    height: 50px;
    background: #4a90ff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    transition: all 0.3s ease;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
}

    /* 置顶按钮显示状态 */
    .back-to-top.showTop {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }

    /* 置顶按钮悬停效果 */
    .back-to-top:hover {
        background: #4a90ff;
        transform: translateY(-3px);
        box-shadow: 0 6px 20px rgba(74, 144, 255, 0.4);
    }

    /* 箭头图标 */
    .back-to-top::before {
        content: '';
        width: 12px;
        height: 12px;
        border-top: 2px solid #ffffff;
        border-right: 2px solid #ffffff;
        transform: rotate(-45deg);
        margin-top: 5px;
        transition: all 0.3s;
    }

    .back-to-top:hover::before {
        border-color: white;
    }

    /* 文字提示 */
    .back-to-top::after {
        content: '置顶';
        position: absolute;
        right: 60px;
        background: #333;
        color: white;
        padding: 5px 12px;
        border-radius: 4px;
        font-size: 12px;
        white-space: nowrap;
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s;
    }

    .back-to-top:hover::after {
        opacity: 1;
        visibility: visible;
        right: 55px;
    }
/* 响应式设计 */
@media (max-width: 768px) {
    .float-toTop-buttons {
        right: 20px;
        bottom: 70px;
    }
    .back-to-top,
    .float-button {
        width: 45px;
        height: 45px;
    }
}

/* 分页样式 */
.yice-pagination-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 20px;
    gap: 5px;
}

.yice-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 5px;
}

.yice-pagination-item {
    min-width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #e5e7eb;
    background: white;
    color: #666;
    text-decoration: none;
    border-radius: 4px;
    font-size: 14px;
    transition: all 0.3s;
    cursor: pointer;
    padding: 0 12px;
}

    .yice-pagination-item:hover {
        background: #3498db;
        color: white;
        border-color: #3498db;
    }

    .yice-pagination-item.active {
        background: #3498db;
        color: white;
        border-color: #3498db;
        font-weight: 600;
    }

    .yice-pagination-item.disabled {
        background: #f5f5f5;
        color: #999;
        cursor: not-allowed;
        border-color: #ddd;
    }

        .yice-pagination-item.disabled:hover {
            background: #f5f5f5;
            color: #999;
            border-color: #ddd;
        }

.yice-pagination-ellipsis {
    padding: 0 10px;
    color: #999;
}


.yice-pagination-total {
    color: #666;
    font-size: 14px;
    padding: 8px 15px;
    display: inline-flex;
    align-items: center;
    margin-left: 10px;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    background: #f9fafb;
    font-weight: 400;
}

    .yice-pagination-total .yice-total-number {
        font-weight: 600;
        color: #3498db;
        margin: 0 3px;
        font-size:14px;
    }

