* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #0066cc;
    --primary-hover: #0052a3;
    --text-main: #1a1a1a;
    --text-secondary: #666666;
    --text-light: #999999;
    --bg-white: #ffffff;
    --bg-gray: #f8f8f8;
    --border: #e5e5e5;
    --border-hover: #cccccc;
    --nav-height: 72px;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: calc(var(--nav-height) + 20px);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', -apple-system, 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', sans-serif;
    color: var(--text-main);
    background: var(--bg-white);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    padding-top: var(--nav-height);
}

.container {
    max-width: 960px;
    margin: 0 auto;
    padding: 0 32px;
}

.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    z-index: 100;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.header.hidden {
    transform: translateY(-100%);
}

.header.scrolled {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: var(--nav-height);
}

.logo {
    font-size: 18px;
    font-weight: 600;
    letter-spacing: -0.02em;
    color: var(--text-main);
    text-decoration: none;
}

.nav {
    display: flex;
    gap: 32px;
}

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.2s ease;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: width 0.3s ease;
}

.nav-link:hover,
.nav-link.active {
    color: var(--text-main);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 8px;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.bar {
    width: 22px;
    height: 2px;
    background-color: var(--text-main);
    transition: all 0.3s ease;
    border-radius: 2px;
}

.hamburger.active .bar:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active .bar:nth-child(2) {
    opacity: 0;
}

.hamburger.active .bar:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

@media (max-width: 768px) {
    .nav {
        position: fixed;
        top: var(--nav-height);
        left: 0;
        right: 0;
        background: rgba(255, 255, 255, 0.98);
        flex-direction: column;
        gap: 0;
        padding: 0;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
        border-bottom: 1px solid var(--border);
    }

    .nav.open {
        max-height: 300px;
        padding: 24px;
    }

    .nav-link {
        width: 100%;
        text-align: center;
        padding: 16px;
        font-size: 16px;
    }

    .nav-link::after {
        display: none;
    }

    .hamburger {
        display: flex;
    }
}

.hero {
    padding: 120px 0 100px;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 60px;
    align-items: center;
}

.hero-left {
    max-width: 520px;
}

.hero-right {
    display: flex;
    justify-content: flex-end;
    gap: 24px;
}

.hero-qr {
    text-align: center;
}

.qr-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-main);
    margin-bottom: 16px;
    letter-spacing: -0.01em;
}

.hero-qr .qr-wrapper {
    width: 180px;
    height: 180px;
    background: white;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 2px solid white;
    transition: all 0.3s ease;
}

.hero-qr .qr-wrapper:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.qr-text {
    font-size: 13px;
    color: var(--text-secondary);
    margin-top: 12px;
}

.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s cubic-bezier(0.2, 0.8, 0.2, 1), transform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

.hero-tag {
    font-size: 13px;
    color: var(--primary);
    font-weight: 500;
    margin-bottom: 24px;
    letter-spacing: 0.02em;
}

.hero-title {
    font-size: 56px;
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -0.03em;
    margin-bottom: 24px;
}

.hero-desc {
    font-size: 18px;
    color: var(--text-secondary);
    line-height: 1.6;
    max-width: 480px;
    margin-bottom: 40px;
}

.hero-links {
    display: flex;
    gap: 16px;
}

.hero-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 15px;
    font-weight: 500;
    color: var(--primary);
    text-decoration: none;
    transition: opacity 0.2s ease;
}

.hero-link:hover {
    opacity: 0.7;
}

section {
    padding: 100px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-title {
    font-size: 36px;
    font-weight: 600;
    letter-spacing: -0.02em;
    margin-bottom: 12px;
}

.section-desc {
    font-size: 16px;
    color: var(--text-secondary);
}

.services {
    background: var(--bg-gray);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.service-card {
    background: var(--bg-white);
    padding: 32px;
    text-decoration: none;
    color: var(--text-main);
    display: flex;
    align-items: flex-start;
    gap: 20px;
    transition: all 0.2s ease;
    border: 1px solid transparent;
}

.service-card:hover {
    border-color: var(--border);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.service-icon {
    width: 48px;
    height: 48px;
    background: var(--bg-gray);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: var(--text-main);
}

.service-content {
    flex: 1;
}

.service-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 6px;
    letter-spacing: -0.01em;
}

.service-text {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.5;
}

.service-arrow {
    color: var(--text-light);
    font-size: 20px;
    flex-shrink: 0;
    transition: all 0.2s ease;
}

.service-card:hover .service-arrow {
    color: var(--primary);
    transform: translateX(4px);
}

.contact {
    background: var(--bg-gray);
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.contact-card {
    background: var(--bg-white);
    padding: 32px;
    text-decoration: none;
    color: var(--text-main);
    display: flex;
    flex-direction: column;
    gap: 16px;
    transition: all 0.2s ease;
    border: 1px solid transparent;
    text-align: center;
}

.contact-card:hover {
    border-color: var(--border);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.contact-card.contact-link {
    position: relative;
    justify-content: center;
    min-height: 240px;
}

.contact-card.contact-link:hover {
    border-color: var(--primary);
}

.contact-name {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 4px;
    letter-spacing: -0.01em;
}

.contact-desc {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.5;
    margin-bottom: 8px;
}

.qr-wrapper {
    width: 150px;
    height: 150px;
    margin: 0 auto;
    background: var(--bg-gray);
    border-radius: 12px;
    overflow: hidden;
    cursor: zoom-in;
    transition: all 0.3s ease;
    border: 1px solid var(--border);
}

.qr-wrapper:hover {
    transform: scale(1.02);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.qr-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.qr-wrapper.img-error {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: var(--bg-gray);
    color: var(--text-light);
    font-size: 13px;
}

.sponsor {
    background: var(--bg-white);
}

.sponsor-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 260px));
    gap: 24px;
    justify-content: center;
}

.sponsor-card {
    background: var(--bg-white);
    padding: 32px 24px;
    text-align: center;
    border: 1px solid var(--border);
    border-radius: 16px;
    transition: all 0.2s ease;
}

.sponsor-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.sponsor-name {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 16px;
}

.sponsor-card .qr-wrapper {
    width: 180px;
    height: 180px;
}

.lightbox-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.9);
    z-index: 300;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.lightbox-modal.active {
    display: flex;
}

.lightbox-content {
    position: relative;
    max-width: 90%;
    max-height: 90vh;
}

.lightbox-close {
    position: absolute;
    top: -50px;
    right: 0;
    color: white;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 32px;
    line-height: 1;
    transition: all 0.3s ease;
    backdrop-filter: blur(4px);
}

.lightbox-close:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: rotate(90deg);
}

#lightbox-img {
    max-width: 100%;
    max-height: 80vh;
    border-radius: 12px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    background: white;
}

#lightbox-caption {
    color: white;
    text-align: center;
    margin-top: 16px;
    font-weight: 600;
    font-size: 16px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.footer {
    background: var(--bg-gray);
    padding: 40px 0;
    border-top: 1px solid var(--border);
}

.footer-copyright {
    font-size: 14px;
    color: var(--text-light);
    text-align: center;
    line-height: 1.8;
}

.footer-link {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-link:hover {
    color: var(--primary);
}

.footer-divider {
    margin: 0 12px;
    opacity: 0.5;
}

.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 200;
    align-items: center;
    justify-content: center;
}

.modal.active {
    display: flex;
}

.modal-content {
    background: white;
    padding: 48px;
    border-radius: 16px;
    text-align: center;
    max-width: 400px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.modal-text {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-main);
}

.modal-url {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 32px;
    word-break: break-all;
}

.modal-buttons {
    display: flex;
    gap: 12px;
    justify-content: center;
    margin-bottom: 20px;
}

.btn-modal {
    padding: 12px 28px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    border: 1px solid var(--border);
    background: white;
}

.btn-cancel:hover {
    background: var(--bg-gray);
}

.btn-confirm {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
}

.btn-confirm:hover {
    background: var(--primary-hover);
}

.modal-countdown {
    font-size: 13px;
    color: var(--text-light);
}

#countdown {
    font-weight: 600;
    color: var(--primary);
}

@media (max-width: 768px) {
    .container {
        padding: 0 24px;
    }

    .hero {
        padding: 140px 0 100px;
    }

    .hero-content {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }

    .hero-right {
        justify-content: center;
        gap: 20px;
    }

    .hero-title {
        font-size: 36px;
    }

    .hero-desc {
        font-size: 16px;
    }

    .hero-links {
        justify-content: center;
    }

    .nav {
        display: none;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .section-title,
    .contact-title {
        font-size: 28px;
    }

    section {
        padding: 80px 0;
    }

    .footer-copyright {
        font-size: 12px;
        line-height: 2;
    }

    .footer-divider {
        margin: 0 8px;
    }
}

.error-page {
    min-height: calc(100vh - var(--nav-height) - 140px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px 0;
}

.error-content {
    text-align: center;
    max-width: 500px;
}

.error-illustration {
    margin-bottom: 40px;
    position: relative;
}

.error-svg {
    margin: 0 auto;
    display: block;
}

.error-circle {
    animation: dash 2s ease-in-out infinite;
}

@keyframes dash {
    0% {
        stroke-dashoffset: 502;
    }
    50% {
        stroke-dashoffset: 100;
    }
    100% {
        stroke-dashoffset: 502;
    }
}

.error-line-1 {
    animation: pulse 2s ease-in-out infinite;
}

.error-line-2 {
    animation: pulse 2s ease-in-out infinite 1s;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.3;
    }
}

.error-code {
    font-size: 120px;
    font-weight: 700;
    color: var(--primary);
    line-height: 1;
    margin-bottom: 16px;
    letter-spacing: -0.05em;
}

.error-title {
    font-size: 28px;
    font-weight: 600;
    color: var(--text-main);
    margin-bottom: 16px;
    letter-spacing: -0.02em;
}

.error-desc {
    font-size: 16px;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 40px;
}

.error-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 32px;
    background: var(--primary);
    color: white;
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.btn-primary:hover {
    background: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 102, 204, 0.3);
}

.btn-secondary {
    display: inline-block;
    padding: 14px 32px;
    background: white;
    color: var(--text-main);
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    border: 1px solid var(--border);
    border-radius: 8px;
    transition: all 0.2s ease;
}

.btn-secondary:hover {
    border-color: var(--border-hover);
    background: var(--bg-gray);
}

@media (max-width: 768px) {
    .error-code {
        font-size: 80px;
    }

    .error-title {
        font-size: 24px;
    }

    .error-desc {
        font-size: 14px;
    }

    .error-actions {
        flex-direction: column;
        width: 100%;
    }

    .btn-primary,
    .btn-secondary {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .footer-copyright {
        line-height: 2.2;
    }

    .footer-divider {
        display: block;
        margin: 4px 0;
    }

    .footer-copyright span {
        display: block;
    }
}
