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

:root {
    --primary-color: #4A90E2;
    --primary-light: #7AB3EF;
    --primary-dark: #2E6BB5;
    --secondary-color: #50C878;
    --accent-color: #FF6B9D;
    --bg-color: #F8FAFC;
    --bg-white: #FFFFFF;
    --text-primary: #1A1A2E;
    --text-secondary: #64748B;
    --border-color: #E2E8F0;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.12);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.16);
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
}

body {
    font-family: 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-primary);
    line-height: 1.6;
}

.header {
    background: transparent;
    box-shadow: none;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
}

.header-container {
    /* max-width: 1200px; */
    margin: 0 auto;
    padding: 0 24px;
    height: 72px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo-image {
    height: 48px;
    width: auto;
}

.btn {
    padding: 10px 20px;
    border-radius: var(--radius-md);
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 14px;
    border: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
}

.btn-outline:hover {
    background: var(--primary-color);
    color: white;
}

.btn-large {
    padding: 14px 32px;
    font-size: 16px;
}

.main {
    /* max-width: 1200px; */
    margin: 0 auto;
    /* padding: 0 24px; */
}

.hero {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 120px 0;
    /* background: linear-gradient(135deg, #f8fafc 0%, #e0f2fe 100%); */
    position: relative;
    overflow: hidden;
    text-align: center;
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: 
        radial-gradient(circle at 20% 30%, rgba(74, 144, 226, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(80, 200, 120, 0.1) 0%, transparent 50%);
    z-index: 0;
}

.hero-content {
    position: relative;
    z-index: 1;
    /* max-width: 800px; */
}

.hero-title {
    font-size: 48px;
    font-weight: 700;
    line-height: 1.2;
    margin-top: 50px;
    margin-bottom: 20px;
    color: var(--text-primary);
}

.hero-desc {
    font-size: 18px;
    color: var(--text-secondary);
    margin-bottom: 118px;
    line-height: 1.6;
}

.section-header {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 32px;
}

.section-title {
    font-size: 32px;
    font-weight: 700;
    color: var(--text-primary);
}

.scenarios {
    padding: 80px 0;
    text-align: center;
    background: var(--bg-white);
}

.section-subtitle {
    font-size: 20px;
    color: var(--text-primary);
    text-align: center;
    margin-bottom: 8px;
    font-weight: 500;
}

.section-desc {
    font-size: 16px;
    color: var(--text-secondary);
    text-align: center;
    margin-bottom: 40px;
}

.scenario-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    max-width: 1200px;
    margin: 0 auto;
}

.scenario-card {
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: all 0.3s;
    cursor: pointer;
    border: 1px solid var(--border-color);
}

.scenario-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.scenario-image {
    height: 320px;
    background: linear-gradient(135deg, #f0f4f8 0%, #e8ecf0 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.scenario-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.scenario-card:hover .scenario-img {
    transform: scale(1.05);
}

.scenario-name {
    padding: 20px;
    text-align: center;
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
}

.footer {
    background: #4A4C4E;
    border-top: 1px solid var(--border-color);
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
}

.footer-bottom {
    /* max-width: 1200px; */
    /* margin: 40px auto 0; */
    padding: 24px;
    text-align: center;
    color: #FFFFFF;
    font-size: 14px;
    border-top: 1px solid var(--border-color);
}

@media (max-width: 1024px) {
    .hero {
        padding: 80px 0;
    }

    .hero-title {
        font-size: 36px;
    }

    .footer-container {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .header-container {
        flex-wrap: wrap;
        height: auto;
        padding: 16px;
        gap: 16px;
    }

    .hero {
        padding: 60px 0;
    }

    .hero-title {
        font-size: 28px;
    }

    .hero-desc {
        font-size: 16px;
    }

    .footer-container {
        grid-template-columns: 1fr;
    }

    .video-text {
        font-size: 14px;
        top: 12px;
        left: 12px;
    }
    
    .experience-btn {
        padding: 10px 24px;
        font-size: 14px;
        bottom: 20px;
    }
}

.video-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.video-content {
    background: #1a1a1a;
    border-radius: var(--radius-lg);
    overflow: hidden;
    position: relative;
}

.video-text {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    padding: 10px;
    color: white;
    font-size: 16px;
    font-weight: 500;
    z-index: 10;
    text-align: left;
    background: linear-gradient(180deg,rgba(0,0,0,.64),transparent);
}

.video-player {
    position: relative;
    width: 100%;
    aspect-ratio: 16/9;
    display: flex;
    align-items: center;
    justify-content: center;
}

.video-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.experience-btn {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    /* background: #4A90E2; */
    background: #2463F0;
    color: white;
    border: none;
    padding: 12px 32px;
    border-radius: var(--radius-md);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    z-index: 10;
}

.experience-btn:hover {
    background: var(--primary-dark);
    transform: translateX(-50%) translateY(-2px);
}

.intro-img {
    max-width: 1200px;
    width: 100%;
}

.invite-code-modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 1000;
    animation: fadeIn 0.3s;
}

.invite-code-modal.show {
    display: block;
}

.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
}

.modal-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.9);
    width: 400px;
    max-width: 90%;
    background: white;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    opacity: 0;
    transition: all 0.3s;
}

.invite-code-modal.show .modal-content {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 24px 24px 16px;
    /* border-bottom: 1px solid var(--border-color); */
}

.modal-title {
    font-size: 20px;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
}

.modal-close {
    width: 32px;
    height: 32px;
    border: none;
    background: transparent;
    font-size: 24px;
    color: var(--text-secondary);
    cursor: pointer;
    border-radius: var(--radius-sm);
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-close:hover {
    background: var(--bg-color);
    color: var(--text-primary);
}

.modal-body {
    padding: 24px;
}

.form-group {
    margin-bottom: 20px;
}

.form-input {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    font-size: 16px;
    transition: all 0.3s;
    box-sizing: border-box;
    font-family: inherit;
}

.form-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(74, 144, 226, 0.1);
}

.error-message {
    color: var(--accent-color);
    font-size: 14px;
    margin: 0;
    /* text-align: center; */
    min-height: 20px;
    opacity: 0;
    transition: opacity 0.3s;
}

.error-message.show {
    opacity: 1;
}

.modal-footer {
    display: flex;
    gap: 12px;
    padding: 0 24px 24px;
    justify-content: flex-end;
}

.btn-secondary {
    background: var(--bg-color);
    color: var(--text-secondary);
    border: 1px solid var(--border-color);
}

.btn-secondary:hover {
    background: var(--border-color);
    color: var(--text-primary);
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.qrcode-modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 1000;
    animation: fadeIn 0.3s;
}

.qrcode-modal.show {
    display: block;
}

.qrcode-modal.show .modal-content {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
}

.qrcode-image {
    max-width: 100%;
    max-height: 400px;
}
