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

body {
    font-family: "PingFang SC", -apple-system, BlinkMacSystemFont, "Segoe UI",
        "Microsoft YaHei", sans-serif;
    color: #333;
    line-height: 1.6;
}

body.menu-open {
    overflow: hidden;
}

a {
    text-decoration: none;
    color: inherit;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    max-width: 1640px;
    margin: 0 auto;
    padding: 0 40px;
}

/* Section common */
.section-title {
    font-size: clamp(28px, 4vw, 50px);
    font-weight: 600;
    color: #333;
    text-align: center;
}

.section-time {
    font-size: clamp(18px, 4vw, 20px);
    color: #666;
    text-align: center;
}

.section-title--left {
    text-align: left;
}

.section-bar {
    width: 84px;
    height: 6px;
    background-color: #1a3fb7;
    border-radius: 3px;
    margin: 40px 0 0;
}

.section-bar.center,
.section-title.center,
.section-time.center {
    text-align: center;
}

.section-bar.center {
    margin: 40px auto 0;
}

.section-bar--left {
    margin-left: 0;
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 80px;
    background: #fff;
    z-index: 100;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.header.is-menu-open {
    background: #fff;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    position: relative;
}

.header-logo {
    position: absolute;
    left: 40px;
}

.header-logo img {
    height: 35px;
    width: auto;
}

.header-nav {
    display: flex;
    gap: 40px;
}

.header-nav-link {
    position: relative;
    display: flex;
    align-items: center;
    height: 80px;
    font-size: 18px;
    font-weight: 500;
    color: #313131;
    white-space: nowrap;
    transition: color 0.3s;
}

.header-nav-link:hover,
.header-nav-link.active {
    color: #1a3fb7;
    font-weight: 600;
}

.header-nav-link.active::after {
    position: absolute;
    right: 50%;
    bottom: 12px;
    width: 32px;
    height: 3px;
    content: "";
    background: #1a3fb7;
    border-radius: 3px;
    transform: translateX(50%);
}

/* Header Dropdown */
.header-nav-item {
    position: relative;
}

.header-nav-item .header-nav-link {
    cursor: pointer;
}

.header-nav-dropdown {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    padding-top: 12px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
}

.header-nav-item:hover .header-nav-dropdown {
    opacity: 1;
    visibility: visible;
}

.header-nav-dropdown-inner {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    padding: 12px 0;
    white-space: nowrap;
}

.header-nav-dropdown a {
    display: block;
    padding: 10px 24px;
    font-size: 15px;
    font-weight: 400;
    color: #333;
    transition: all 0.2s;
}

.header-nav-dropdown a:hover {
    color: #1a3fb7;
    background: #f5f7fb;
}

.header-menu-btn {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 30px;
    height: 30px;
    position: absolute;
    right: 40px;
    background: none;
    border: none;
    cursor: pointer;
}

.header-menu-btn span {
    display: block;
    width: 100%;
    height: 3px;
    background: #333;
    border-radius: 2px;
    transition: transform 0.25s ease, opacity 0.25s ease;
}

.header-menu-btn.is-active span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.header-menu-btn.is-active span:nth-child(2) {
    opacity: 0;
}

.header-menu-btn.is-active span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

.header-mobile {
    display: none;
}

/* Footer */
.footer {
    background: #f6f6f7;
    padding: 80px 0 0;
}

.footer-inner {
    display: grid;
    grid-template-columns: auto 1fr 1.5fr auto;
    gap: 40px;
    align-items: start;
}

.footer-brand {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

.footer-logo {
    height: 80px;
    width: auto;
}

.footer-company {
    font-size: 20px;
    font-weight: 600;
    white-space: nowrap;
}

.footer-nav {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.footer-nav h4 {
    font-size: 22px;
    font-weight: 500;
    margin-bottom: 8px;
}

.footer-nav a {
    font-size: 18px;
    font-weight: 300;
    color: #0c0c0c;
    transition: color 0.3s;
}

.footer-nav a:hover {
    color: #1a3fb7;
}

.footer-contact {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.footer-contact h4 {
    font-size: 22px;
    font-weight: 500;
    margin-bottom: 8px;
}

.footer-contact p {
    font-size: 18px;
    font-weight: 300;
    color: #0c0c0c;
}

.footer-qrcode {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.footer-qrcode-box {
    width: 120px;
    height: 120px;
    background: #fff url("../images/programme/weima.png") center / contain no-repeat;
    border-radius: 4px;
}

.footer-qrcode span {
    font-size: 14px;
    color: #0c0c0c;
}

.footer-bottom {
    margin-top: 60px;
    padding: 20px 40px;
    text-align: center;
}

.footer-bottom p {
    font-size: 14px;
    font-weight: 300;
    color: #0c0c0c;
}

/* Responsive - Tablet */
@media (max-width: 1024px) {
    .container {
        padding: 0 30px;
    }

    .header-logo {
        left: 30px;
    }

    .header-nav {
        gap: 24px;
    }

    .header-nav-link {
        height: 72px;
        font-size: 16px;
    }

    .footer-inner {
        grid-template-columns: 1fr 1fr;
        gap: 40px;
    }

    .footer-qrcode {
        grid-column: 1 / -1;
        flex-direction: row;
        justify-content: center;
        gap: 20px;
    }

    .footer-qrcode-box {
        width: 80px;
        height: 80px;
    }
}

/* Responsive - Mobile */
@media (max-width: 768px) {
    .container {
        padding: 0 20px;
    }

    .header {
        height: 72px;
    }

    .header-logo {
        left: 20px;
    }

    .header-logo img {
        height: 30px;
    }

    .header-menu-btn {
        right: 20px;
    }

    .header-nav {
        display: none;
    }

    .header-menu-btn {
        display: flex;
    }

    .header-mobile {
        display: block;
        position: fixed;
        inset: 72px 0 0;
        visibility: hidden;
        pointer-events: none;
        z-index: 99;
    }

    .header-mobile.is-open {
        visibility: visible;
        pointer-events: auto;
    }

    .header-mobile-overlay {
        position: absolute;
        inset: 0;
        border: 0;
        background: rgba(10, 18, 34, 0.32);
        opacity: 0;
        transition: opacity 0.25s ease;
    }

    .header-mobile.is-open .header-mobile-overlay {
        opacity: 1;
    }

    .header-mobile-panel {
        width: 100%;
        max-height: calc(100vh - 72px);
        overflow-y: auto;
        padding: 0 20px 20px;
        background: #fff;
        border-top: 1px solid #eef1f5;
        box-shadow: 0 12px 28px rgba(0, 0, 0, 0.08);
        transform: translateY(-12px);
        opacity: 0;
        transition: transform 0.25s ease, opacity 0.25s ease;
    }

    .header-mobile.is-open .header-mobile-panel {
        transform: translateY(0);
        opacity: 1;
    }

    .header-mobile-link,
    .header-mobile-toggle {
        display: flex;
        align-items: center;
        justify-content: space-between;
        width: 100%;
        min-height: 56px;
        padding: 14px 0;
        font-size: 18px;
        font-weight: 600;
        color: #313131;
        border: 0;
        border-bottom: 1px solid #eef1f5;
        background: none;
        text-align: left;
    }

    .header-mobile-group + .header-mobile-link,
    .header-mobile-link + .header-mobile-group {
        margin-top: 4px;
    }

    .header-mobile-toggle-icon {
        width: 10px;
        height: 10px;
        border-right: 2px solid #6d7685;
        border-bottom: 2px solid #6d7685;
        transform: rotate(45deg);
        transition: transform 0.25s ease;
        margin-right: 4px;
        flex-shrink: 0;
    }

    .header-mobile-group.is-open .header-mobile-toggle-icon {
        transform: rotate(-135deg);
        margin-top: 4px;
    }

    .header-mobile-submenu {
        display: none;
        padding: 4px 0 14px 12px;
        border-bottom: 1px solid #eef1f5;
    }

    .header-mobile-group.is-open .header-mobile-submenu {
        display: block;
    }

    .header-mobile-submenu a {
        display: block;
        padding: 10px 0;
        font-size: 15px;
        color: #5c6678;
        line-height: 1.5;
    }

    .footer-inner {
        grid-template-columns: 1fr;
        gap: 30px;
        text-align: center;
    }

    .footer-brand {
        align-items: center;
    }

    .footer-nav,
    .footer-contact {
        align-items: center;
    }

    .footer-bottom p {
        font-size: 12px;
        line-height: 1.8;
        word-break: break-word;
    }

    .section-title--left {
        text-align: center;
    }

    .section-bar--left {
        margin: 40px auto 0;
    }
}
