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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
    background: linear-gradient(135deg, #f8fafc 0%, #eff6ff 100%);
    min-height: 100vh;
    color: #374151;
}

.wrapper {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.header {
    background: url('../images/banner.png') no-repeat center center;
    background-size: 100% 100%;
    padding: 20px 0 20px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.header-content {
    display: flex;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.logo-section {
    flex: 0 0 auto;
    margin-top: 0;
}

.logo-box {
    width: auto;
    height: auto;
    min-width: 180px;
    min-height: 60px;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 10px;
}

.logo-img {
    width: 220px;
    height: auto;
    object-fit: contain;
}

.title-section {
    flex: 1;
    text-align: center;
    color: white;
}

.main-title {
    font-size: 48px;
    font-weight: 800;
    margin-top: 50px;
    margin-bottom: 12px;
    letter-spacing: 4px;
    color: #ffffff;
    text-shadow: 0 4px 12px rgba(0, 0, 0, 0.3), 0 2px 4px rgba(0, 0, 0, 0.2);
    font-family: 'PingFang SC', 'Microsoft YaHei', 'SimHei', sans-serif;
}

.subtitle {
    font-size: 18px;
    font-weight: 600;
    letter-spacing: 2px;
    opacity: 1;
    margin: 0;
    display: inline-block;
    padding: 8px 24px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.25) 0%, rgba(255, 255, 255, 0.1) 100%);
    border: 2px solid rgba(255, 255, 255, 0.4);
    border-radius: 25px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15), inset 0 1px 0 rgba(255, 255, 255, 0.3);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(10px);
}

.qr-section {
    flex: 0 0 auto;
    text-align: center;
    color: white;
    margin-top: 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.qr-code {
    width: 100px;
    height: 100px;
    background: url('../images/pxjh.png') no-repeat center center;
    background-size: contain;
    margin-bottom: 8px;
}

.qr-text {
    font-size: 12px;
    margin: 0;
    opacity: 0.9;
}

.hexagon-nav {
    padding: 25px 0;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.nav-items {
    display: flex;
    justify-content: space-between;
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 25px 40px;
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    transition: transform 0.3s ease;
    text-decoration: none;
    color: inherit;
}

.nav-item:hover {
    transform: translateY(-5px);
}

.hexagon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #1e40af 0%, #3b82f6 100%);
    clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 12px;
    box-shadow: 0 12px 24px -4px rgba(0, 0, 0, 0.5), 0 6px 12px -2px rgba(0, 0, 0, 0.4);
    transition: all 0.3s ease;
    position: relative;
}

.nav-item:hover .hexagon {
    background: linear-gradient(135deg, #1e3a8a 0%, #2563eb 100%);
    box-shadow: 0 16px 32px -4px rgba(0, 0, 0, 0.6), 0 8px 16px -2px rgba(0, 0, 0, 0.5);
}

.nav-item[data-target="offline"]:hover .hexagon,
.nav-item[data-target="live"]:hover .hexagon,
.nav-item[data-target="online"]:hover .hexagon,
.nav-item[data-target="review"]:hover .hexagon {
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
}

.nav-item[data-target="offline"]:hover .nav-icon,
.nav-item[data-target="live"]:hover .nav-icon,
.nav-item[data-target="online"]:hover .nav-icon,
.nav-item[data-target="review"]:hover .nav-icon {
    color: white;
    opacity: 1;
}

.qr-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 50px;
    height: 50px;
    background-size: contain;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 10;
}

.nav-item[data-target="focus"] .qr-overlay {
    background: url('../images/zdgz.png') no-repeat center center;
   background-size: contain; /* 完整显示图片，自适应容器 */
   background-position: center center;
   background-repeat: no-repeat;
   min-height: 100vh;
   margin: 0;
   padding: 0;
}


.nav-item[data-target="offline"] .qr-overlay {
    background: url('../images/zdgz.png') no-repeat center center;
   background-size: contain; /* 完整显示图片，自适应容器 */
  background-position: center center;
  background-repeat: no-repeat;
  min-height: 100vh;
  margin: 0;
  padding: 0;
}



.nav-item[data-target="digital"] .qr-overlay {
    background: url('../images/szcb.png') no-repeat center center;
   background-size: contain; /* 完整显示图片，自适应容器 */
  background-position: center center;
  background-repeat: no-repeat;
  min-height: 100vh;
  margin: 0;
  padding: 0;
}

.nav-item:hover .qr-overlay {
    opacity: 1;
}

.nav-item:hover .nav-icon {
    opacity: 0;
}

.nav-icon {
    width: 36px;
    height: 36px;
    color: white;
    transition: opacity 0.3s ease;
}

.nav-label {
    color: #1f2937;
    font-size: 14px;
    font-weight: 500;
}

.main-content {
    flex: 1;
    padding: 30px 0;
}

.content-wrapper {
    display: flex;
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.sidebar {
    flex: 0 0 280px;
    position: sticky;
    top: 20px;
    align-self: flex-start;
    max-height: calc(100vh - 40px);
    overflow-y: auto;
}

.sidebar-menu {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.sidebar-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    background: linear-gradient(135deg, #1e40af 0%, #3b82f6 100%);
    color: white;
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
    transition: all 0.3s ease;
    position: relative;
}

.sidebar-item:last-child {
    border-bottom: none;
}

.sidebar-item:hover {
    background: linear-gradient(135deg, #2563eb 0%, #3b82f6 100%);
    padding-left: 24px;
}

.sidebar-item::after {
    content: '';
    position: absolute;
    right: 20px;
    width: 8px;
    height: 8px;
    border-top: 2px solid white;
    border-right: 2px solid white;
    transform: rotate(45deg);
    transition: all 0.3s ease;
}

.sidebar-item:hover::after {
    right: 16px;
}

.sidebar-icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.content-area {
    flex: 1;
    background: white;
    padding: 30px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.training-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.training-item {
    display: flex;
    gap: 20px;
    padding: 20px;
    background: #f8fafc;
    border-radius: 10px;
    transition: all 0.3s ease;
}

.training-item:hover {
    background: #f1f5f9;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.training-thumb {
    flex: 0 0 160px;
    height: 120px;
    border-radius: 8px;
   object-fit: cover;
}

.training-info {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.training-title {
    font-size: 18px;
    font-weight: 600;
    color: #000000;
    margin-bottom: 8px;
    text-decoration: none;
    transition: color 0.3s ease;
}

.training-title:hover {
    color: #1e40af;
}

.training-desc {
    font-size: 14px;
    color: #6b7280;
    line-height: 1.6;
    margin-bottom: 12px;
    flex: 1;
}

.training-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.training-price {
    font-size: 14px;
    font-weight: 700;
    color: #dc2626;
}

.btn-detail {
    display: inline-block;
    padding: 8px 24px;
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

.btn-detail:hover {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 6px -1px rgba(37, 99, 235, 0.3);
}

.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid #e5e7eb;
}

.pagination-item {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    background: white;
    color: #374151;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    border: 1px solid #d1d5db;
    transition: all 0.3s ease;
}

.pagination-item:hover:not(.disabled):not(.active) {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: white;
    border-color: #2563eb;
}

.pagination-item.active {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: white;
    border-color: #2563eb;
}

.pagination-item.disabled {
    color: #9ca3af;
    cursor: not-allowed;
    pointer-events: none;
}

.footer {
    background: linear-gradient(135deg, #1e40af 0%, #3b82f6 100%);
    padding: 40px 0 30px;
    margin-top: auto;
}

.qr-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto 30px;
    padding: 0 20px;
}

.qr-item {
    text-align: center;
    color: white;
}

.qr-code-box {
    width: 120px;
    height: 120px;
    background: white;
    margin: 0 auto 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.footer-qr-img {
    width: 110px;
    height: 110px;
    object-fit: contain;
}

.qr-desc {
    font-size: 12px;
    line-height: 1.6;
    margin: 0;
    opacity: 0.95;
}

.contact-info {
    text-align: center;
    color: white;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    max-width: 1200px;
    margin: 0 auto;
    padding: 30px 20px 0;
}

.contact-info p {
    font-size: 14px;
    margin-bottom: 8px;
    opacity: 0.95;
}

.contact-info strong {
    font-weight: 600;
}

@media (max-width: 1200px) {
    .header-content {
        flex-direction: column;
        gap: 20px;
    }

    .logo-box {
        width: 150px;
        height: 50px;
    }

    .main-title {
        font-size: 38px;
        letter-spacing: 3px;
    }

    .subtitle {
        font-size: 17px;
        padding: 7px 22px;
        letter-spacing: 1px;
    }

    .nav-items {
        gap: 20px;
    }

    .hexagon {
        width: 70px;
        height: 70px;
    }

    .nav-icon {
        width: 30px;
        height: 30px;
    }

    .nav-label {
        font-size: 12px;
    }

    .content-wrapper {
        flex-direction: column;
    }

    .sidebar {
        flex: 0 0 auto;
    }
}

@media (max-width: 768px) {
    .main-title {
        font-size: 32px;
        letter-spacing: 2px;
    }

    .subtitle {
        font-size: 16px;
        padding: 6px 20px;
        letter-spacing: 1px;
    }

    .qr-section {
        display: flex;
    }


    .nav-items {
        gap: 10px;
        flex-wrap: wrap;
        justify-content: center;
    }

    .hexagon {
        width: 60px;
        height: 60px;
    }

    .nav-icon {
        width: 26px;
        height: 26px;
    }

    .nav-label {
        font-size: 11px;
    }

    .training-item {
        flex-direction: column;
    }

    .training-thumb {
        flex: 0 0 auto;
        width: 100%;
        height: 150px;
    }

    .qr-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 15px;
    }

    .qr-code-box {
        width: 100px;
        height: 100px;
    }

    .qr-desc {
        font-size: 10px;
    }

    .contact-info p {
        font-size: 12px;
    }

    .sidebar {
        position: fixed;
        top: 0;
        left: 0;
        max-height: 100vh;
    }
}

@media (max-width: 480px) {
    .header {
        padding: 15px 0;
    }

    .main-title {
        font-size: 26px;
        letter-spacing: 1px;
    }

    .subtitle {
        font-size: 14px;
        padding: 5px 16px;
        letter-spacing: 1px;
    }

    .logo-box {
        width: 120px;
        height: 40px;
        font-size: 14px;
    }

    .hexagon-nav {
        padding: 15px 0;
    }

    .nav-items {
        gap: 5px;
    }

    .hexagon {
        width: 45px;
        height: 45px;
    }

    .nav-icon {
        width: 20px;
        height: 20px;
    }

    .nav-label {
        font-size: 9px;
    }

    .main-content {
        padding: 20px 0;
    }

    .content-area {
        padding: 20px 15px;
    }

    .training-title {
        font-size: 16px;
    }

    .training-desc {
        font-size: 13px;
    }

    .training-price {
        font-size: 18px;
    }

    .btn-detail {
        padding: 6px 16px;
        font-size: 13px;
    }

    .qr-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .qr-code-box {
        width: 90px;
        height: 90px;
    }

    .footer {
        padding: 30px 0 20px;
    }
}

.mobile-menu-toggle {
    display: none;
    width: 44px;
    height: 44px;
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    border: none;
    border-radius: 8px;
    cursor: pointer;
    margin-bottom: 15px;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.mobile-menu-toggle svg {
    width: 24px;
    height: 24px;
    color: white;
}

.mobile-menu-toggle.active {
    background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
}

.sidebar.mobile-sidebar {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 280px;
    height: 100vh;
    z-index: 2000;
    overflow-y: auto;
    background: white;
}

.sidebar.mobile-sidebar.show {
    display: block;
}

.mobile-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1999;
}

.mobile-overlay.show {
    display: block;
}

body.menu-open {
    overflow: hidden;
}

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

    .sidebar {
        display: none;
    }

    .sidebar.mobile-sidebar.show {
        display: block;
    }
}
