:root {
    --primary-color: #28a745;
    --primary-hover: #218838;
    --accent-color: #ffc107;
    --text-main: #333;
    --text-sub: #666;
    --bg-light: #f8f9fa;
    --footer-bg: #1a222c;
    --white: #ffffff;
}

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

body {
    font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
    line-height: 1.6;
    color: var(--text-main);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

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

ul {
    list-style: none;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
header {
    height: 80px;
    background: var(--white);
    display: flex;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.logo, .footer-logo {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo-text {
    display: flex;
    flex-direction: column;
}

.logo-title {
    font-size: 24px;
    font-weight: 800;
    color: #0f172a;
    line-height: 1;
    margin-bottom: 4px;
}

.logo-subtitle {
    font-size: 12px;
    color: #64748b;
    letter-spacing: 1px;
    text-transform: uppercase;
    line-height: 1;
}

.logo img {
    height: 50px;
}

.login-btn {
    background: var(--primary-color);
    color: var(--white);
    padding: 8px 35px;
    border-radius: 25px;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s;
}

.login-btn:hover {
    background: var(--primary-hover);
    transform: scale(1.05);
}

/* Navigation */
.desktop-nav {
    display: flex;
    align-items: center;
    gap: 32px;
}

header nav {
    flex-grow: 1;
    display: flex;
    justify-content: center;
}

header nav ul {
    display: flex;
    gap: 40px;
}

header nav ul li a {
    font-size: 15px;
    font-weight: 500;
    color: #444;
    transition: color 0.3s;
}

header nav ul li a:hover {
    color: var(--primary-color);
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 28px;
    color: #374151;
    cursor: pointer;
    padding: 8px;
    line-height: 1;
}

/* Mobile Menu Drawer */
.mobile-drawer {
    position: fixed;
    top: 0;
    right: 0;
    width: 80%;
    max-width: 300px;
    height: 100vh;
    background: #ffffff;
    z-index: 2000;
    transform: translateX(100%);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: -4px 0 15px rgba(0,0,0,0.1);
    display: flex;
    flex-direction: column;
    padding: 20px;
}

.mobile-drawer.active {
    transform: translateX(0);
}

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

.drawer-overlay.active {
    display: block;
}

.mobile-nav-links {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 40px;
}

.mobile-nav-links a {
    font-size: 18px;
    font-weight: 500;
    color: #374151;
    text-decoration: none;
    padding: 10px 0;
    border-bottom: 1px solid #f3f4f6;
}

.mobile-nav-links a.active {
    color: #008802;
}

/* Footer */
footer {
    background: #0f172a;
    color: #94a3b8;
    padding: 100px 0 50px;
}

.footer-top {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 80px;
    margin-bottom: 80px;
}

.footer-logo {
    margin-bottom: 30px;
}

.footer-logo img {
    height: 50px;
    filter: brightness(0) invert(1);
}

.footer-logo .logo-title {
    color: #fff;
}

.footer-logo .logo-subtitle {
    color: rgba(255,255,255,0.6);
}

.footer-info p {
    font-size: 15px;
    line-height: 1.8;
    max-width: 400px;
}

.footer-contact h4 {
    color: #fff;
    margin-bottom: 30px;
    font-size: 20px;
    font-weight: 600;
}

.footer-contact p {
    margin-bottom: 15px;
    font-size: 15px;
    display: flex;
    align-items: flex-start;
    gap: 15px;
}

.footer-contact i {
    font-size: 20px;
    flex-shrink: 0;
    color: var(--primary-color);
}

.qr-code {
    text-align: right;
}

.qr-code-box {
    display: inline-block;
    background: #fff;
    padding: 12px;
    border-radius: 12px;
    margin-bottom: 8px;
}

.qr-code p {
    display: inline-block !important;
    width: 154px; /* 130px img + 24px padding */
    text-align: center !important;
    margin: 0;
}

.qr-code img {
    width: 130px;
    display: block;
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 14px;
}

/* Media Queries */
@media (max-width: 1024px) {
    .desktop-nav, .cta-button {
        display: none !important;
    }
    .mobile-menu-btn {
        display: block !important;
    }
}

@media (max-width: 768px) {
    header {
        height: 70px;
    }
    .footer-top {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 40px;
    }
    .footer-contact p {
        justify-content: center;
    }
    .qr-code {
        text-align: center;
    }
    .qr-code-box, .qr-code p {
        display: block !important;
        margin-left: auto !important;
        margin-right: auto !important;
        width: fit-content !important;
    }
    .footer-bottom {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
}

/* PDF Modal */
.pdf-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 3000;
    display: none;
    align-items: center;
    justify-content: center;
}

.pdf-modal.active {
    display: flex;
}

.pdf-modal-container {
    position: relative;
    width: 90%;
    max-width: 1000px;
    height: 90vh;
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
}

.pdf-modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 40px;
    height: 40px;
    background: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
    z-index: 3001;
    color: #333;
    font-size: 24px;
    transition: all 0.3s;
}

.pdf-modal-close:hover {
    background: #f3f4f6;
    transform: scale(1.1);
}

.pdf-modal-content {
    width: 100%;
    height: 100%;
    border: none;
}
