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

:root {
    --primary: #2563eb;
    --primary-dark: #1d4ed8;
    --primary-light: #3b82f6;
    --gradient-start: #4F46E5;
    --gradient-end: #7C3AED;
    --bg-light: #f8fafc;
    --text-dark: #1e293b;
    --text-light: #64748b;
    --shadow: 0 10px 30px rgba(37, 99, 235, 0.15);
    --shadow-hover: 0 15px 35px rgba(37, 99, 235, 0.25);
    
    /* 响应式字体大小变量 */
    --font-xl: clamp(2.5rem, 5vw, 4rem);
    --font-lg: clamp(1.75rem, 3vw, 2.25rem);
    --font-md: clamp(1rem, 2vw, 1.25rem);
    --font-sm: clamp(0.875rem, 1.5vw, 1rem);
    --font-xs: clamp(0.75rem, 1vw, 0.875rem);
    
    /* 响应式间距变量 */
    --space-xl: clamp(3rem, 8vw, 5rem);
    --space-lg: clamp(2rem, 6vw, 3rem);
    --space-md: clamp(1.5rem, 4vw, 2rem);
    --space-sm: clamp(1rem, 2vw, 1.5rem);
    --space-xs: clamp(0.5rem, 1vw, 1rem);
}

html {
    font-size: 16px;
}

body {
    font-family: 'Inter', 'PingFang SC', 'Microsoft YaHei', sans-serif;
    background-color: var(--bg-light);
    min-height: 100vh;
    color: var(--text-dark);
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    overflow-x: hidden;
    margin: 0;
    padding: 0;
}

/* 视频背景样式 */
.video-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
    overflow: hidden;
}

#myVideo {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    z-index: -1;
    object-fit: cover;
    filter: brightness(1.2) contrast(1.1);
}

/* 兼容性样式 */
@media (min-aspect-ratio: 16/9) {
    #myVideo {
        width: 100%;
        height: auto;
    }
}

@media (max-aspect-ratio: 16/9) {
    #myVideo {
        width: auto;
        height: 100%;
    }
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.4), rgba(23, 31, 56, 0.5));
    z-index: 0;
}

/* 视频加载失败时的备用背景 */
body.fallback-bg {
    background: linear-gradient(135deg, #1e1b4b 0%, #231953 100%);
}

.container {
    width: 100%;
    min-height: 100vh;
    max-width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    position: relative;
    overflow: hidden;
    padding: var(--space-md);
    z-index: 1;
}

.container::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.4), rgba(23, 31, 56, 0.5));
    z-index: 0;
}

/* 确保所有内容在背景遮罩之上 */
.container > * {
    position: relative;
    z-index: 1;
}

.logo {
    margin-bottom: var(--space-md);
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: clamp(80px, 15vw, 100px);
    height: clamp(80px, 15vw, 100px);
    border-radius: 50%;
    position: relative;
    animation: pulse 2s infinite ease-in-out;
}

.logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 10px 30px rgba(79, 70, 229, 0.4));
}

@keyframes pulse {
    0% { transform: scale(1); filter: drop-shadow(0 10px 25px rgba(79, 70, 229, 0.4)); }
    50% { transform: scale(1.05); filter: drop-shadow(0 15px 35px rgba(124, 58, 237, 0.6)); }
    100% { transform: scale(1); filter: drop-shadow(0 10px 25px rgba(79, 70, 229, 0.4)); }
}

h1 {
    font-size: var(--font-lg);
    margin-bottom: var(--space-sm);
    color: white;
    font-weight: 700;
    letter-spacing: -0.5px;
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

h2 {
    font-size: var(--font-md);
    margin-bottom: var(--space-md);
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
    line-height: 1.5;
}

.highlight {
    color: white;
    font-weight: 600;
    position: relative;
}

a.highlight {
    font-size: var(--font-md);
    letter-spacing: 0.5px;
    font-weight: 700;
    position: relative;
    display: inline-block;
    color: var(--primary-light);
    animation: highlight-pulse 3s infinite;
}

@keyframes highlight-pulse {
    0% {
        color: var(--primary-light);
        text-shadow: 0 0 5px rgba(79, 70, 229, 0.3);
    }
    25% {
        color: #4338ca;
        text-shadow: 0 0 10px rgba(79, 70, 229, 0.5);
    }
    50% {
        color: #7c3aed;
        text-shadow: 0 0 15px rgba(124, 58, 237, 0.7), 0 0 20px rgba(79, 70, 229, 0.4);
        transform: scale(1.08);
    }
    75% {
        color: #6d28d9;
        text-shadow: 0 0 10px rgba(124, 58, 237, 0.5);
    }
    100% {
        color: var(--primary-light);
        text-shadow: 0 0 5px rgba(79, 70, 229, 0.3);
    }
}

a.highlight::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 90%;
    height: 40%;
    background: radial-gradient(ellipse at center, rgba(124, 58, 237, 0.3) 0%, rgba(79, 70, 229, 0) 70%);
    transform: translate(-50%, -50%);
    z-index: -1;
    border-radius: 50%;
    filter: blur(10px);
    animation: glow 3s infinite;
}

@keyframes glow {
    0% {
        opacity: 0.5;
        width: 90%;
    }
    50% {
        opacity: 0.8;
        width: 110%;
    }
    100% {
        opacity: 0.5;
        width: 90%;
    }
}

.mobile-note {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--space-md);
    color: rgba(255, 255, 255, 0.9);
    font-size: var(--font-sm);
    background-color: rgba(79, 70, 229, 0.2);
    padding: var(--space-xs) var(--space-sm);
    border-radius: 12px;
    border: 1px dashed rgba(124, 58, 237, 0.4);
    max-width: min(600px, 90%);
    width: 90%;
    box-shadow: 0 4px 15px rgba(79, 70, 229, 0.15);
}

.mobile-note i {
    color: var(--primary-light);
    margin-right: 8px;
    font-size: calc(var(--font-sm) + 0.2rem);
}

.btn-group {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
    margin: var(--space-md) 0;
    width: min(500px, 90%);
}

.btn {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(79, 70, 229, 0.95), rgba(124, 58, 237, 0.95));
    color: white;
    padding: var(--space-xs) var(--space-sm);
    text-decoration: none;
    border-radius: 12px;
    font-size: var(--font-sm);
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(79, 70, 229, 0.4);
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
    cursor: pointer;
}

.btn i {
    margin-right: 10px;
    font-size: calc(var(--font-sm) + 0.2rem);
}

.btn::before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.2),
        transparent
    );
    transition: 0.5s;
}

.btn:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(79, 70, 229, 0.4);
}

.btn:hover::before {
    left: 100%;
}

.contact {
    margin-top: var(--space-md);
    color: rgba(255, 255, 255, 0.8);
    font-size: var(--font-xs);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: var(--space-sm);
    width: min(500px, 90%);
    margin-bottom: var(--space-sm);
}

.contact a {
    color: var(--primary-light);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.2s;
}

.contact a:hover {
    color: white;
    text-decoration: underline;
}

.telegram-link {
    display: inline-block;
    padding: 5px 10px;
    margin-left: 5px;
    background-color: rgba(0, 136, 204, 0.15);
    border-radius: 5px;
    border: 1px solid rgba(0, 136, 204, 0.3);
    transition: all 0.3s ease;
    position: relative;
    z-index: 5;
}

.telegram-link:hover {
    background-color: rgba(0, 136, 204, 0.3);
    transform: translateY(-2px);
    box-shadow: 0 3px 10px rgba(0, 136, 204, 0.3);
}

.telegram-link i {
    margin-right: 5px;
    color: #0088cc;
}

.email-link {
    display: none;
}

.site-link {
    color: var(--primary-light);
    font-weight: 600;
    text-decoration: none;
    position: relative;
    transition: all 0.3s ease;
    padding: 0 4px;
}

.site-link:hover {
    color: white;
}

.site-link::after {
    content: "";
    position: absolute;
    width: 100%;
    height: 2px;
    bottom: 0;
    left: 0;
    background: linear-gradient(90deg, var(--gradient-start), var(--gradient-end));
    transform: scaleX(0);
    transform-origin: bottom right;
    transition: transform 0.3s ease;
}

.site-link:hover::after {
    transform: scaleX(1);
    transform-origin: bottom left;
}

.site-link.mobile-glow {
    position: relative;
    display: inline-block;
    font-weight: 700;
    font-size: calc(var(--font-md) * 1.4);
    padding: 2px 6px;
    animation: mobile-pulse 3s infinite;
    cursor: pointer;
}

@keyframes mobile-pulse {
    0% {
        color: var(--primary-light);
        text-shadow: none;
    }
    50% { 
        color: #7C3AED; 
        text-shadow: 0 0 12px rgba(124, 58, 237, 0.7);
        transform: scale(1.08);
    }
    100% {
        color: var(--primary-light);
        text-shadow: none;
    }
}

.site-link.mobile-glow::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 80%;
    height: 30%;
    background: radial-gradient(ellipse at center, rgba(124, 58, 237, 0.2) 0%, rgba(79, 70, 229, 0) 70%);
    transform: translate(-50%, -50%);
    z-index: -1;
    border-radius: 50%;
    filter: blur(8px);
    animation: mobile-glow 3s infinite alternate;
    opacity: 0;
}

@keyframes mobile-glow {
    0% {
        opacity: 0;
    }
    50% {
        opacity: 0.6;
    }
    100% {
        opacity: 0;
    }
}

footer {
    display: none;
}

/* 媒体查询 - 针对不同尺寸设备优化 */
/* 大型桌面屏幕 */
@media (min-width: 1200px) {
    .container {
        padding: var(--space-lg);
    }
    
    .btn-group {
        gap: 20px;
    }
}

/* 平板电脑和小型桌面 */
@media (max-width: 1024px) {
    #myVideo {
        object-fit: cover;
    }
}

/* 平板电脑和大型手机 */
@media (max-width: 768px) {
    .container {
        padding: var(--space-sm);
        padding-top: var(--space-lg);
        justify-content: flex-start;
    }
    
    .logo {
        margin-top: var(--space-md);
    }
    
    .mobile-note {
        flex-direction: column;
        text-align: center;
        padding: var(--space-xs);
    }
    
    .mobile-note i {
        margin-right: 0;
        margin-bottom: 5px;
    }
}

/* 小型手机 */
@media (max-width: 480px) {
    html {
        font-size: 14px;
    }
    
    .container {
        padding: var(--space-xs);
        padding-top: var(--space-md);
    }
    
    .logo {
        margin-top: var(--space-sm);
    }
    
    .btn {
        padding: 12px 15px;
    }
    
    .btn i {
        margin-right: 8px;
    }
}

/* 确保在横屏模式下的正确显示 */
@media (max-height: 500px) and (orientation: landscape) {
    .container {
        padding: var(--space-xs);
        justify-content: flex-start;
    }
    
    .logo {
        width: 60px;
        height: 60px;
        font-size: 30px;
        margin: var(--space-xs) 0;
    }
    
    .btn-group {
        margin: var(--space-xs) 0;
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        max-width: 100%;
    }
    
    .btn {
        width: auto;
        min-width: 200px;
    }
} 