* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: url('/static/images/bg/background.jpg') center/cover fixed,
                linear-gradient(135deg, rgba(15, 15, 15, 0.8) 0%, rgba(26, 26, 46, 0.8) 50%, rgba(22, 33, 62, 0.8) 100%);
    color: #ffffff;
    overflow-x: hidden;
    min-height: 100vh;
    position: relative;
}

/* 动态背景粒子效果 */
.background-particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: radial-gradient(circle at 20% 80%, rgba(120, 119, 198, 0.3) 0%, transparent 50%),
                radial-gradient(circle at 80% 20%, rgba(255, 119, 198, 0.3) 0%, transparent 50%),
                radial-gradient(circle at 40% 40%, rgba(120, 219, 255, 0.2) 0%, transparent 50%);
    animation: backgroundShift 20s ease-in-out infinite;
}

.background-particles::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(2px 2px at 20px 30px, rgba(255, 255, 255, 0.2), transparent),
        radial-gradient(2px 2px at 40px 70px, rgba(255, 255, 255, 0.1), transparent),
        radial-gradient(1px 1px at 90px 40px, rgba(255, 255, 255, 0.3), transparent),
        radial-gradient(1px 1px at 130px 80px, rgba(255, 255, 255, 0.2), transparent),
        radial-gradient(2px 2px at 160px 30px, rgba(255, 255, 255, 0.1), transparent);
    background-repeat: repeat;
    background-size: 200px 100px;
    animation: starMove 50s linear infinite;
}

@keyframes backgroundShift {
    0%, 100% { transform: rotate(0deg) scale(1); }
    50% { transform: rotate(180deg) scale(1.1); }
}

@keyframes starMove {
    from { transform: translateY(0px); }
    to { transform: translateY(-100px); }
}

/* 主容器 */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
    position: relative;
    z-index: 1;
    display: flex;
    min-height: 100vh;
    align-items: center;
    flex-direction: row;
}

/* 左侧内容区域 */
.left-content {
    flex: 1;
    padding-right: 2rem;
}

/* 右侧标题区域 */
.right-hero {
    flex: 0 0 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 60vh;
}

/* 英雄区域 */
.hero-section {
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 3rem 2.5rem;
    position: relative;
    width: 100%;
    max-width: 350px;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: -1px;
    left: -1px;
    right: -1px;
    bottom: -1px;
    border-radius: 20px;
    background: linear-gradient(135deg, rgba(120, 219, 255, 0.3), rgba(255, 119, 198, 0.3));
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.hero-section:hover::before {
    opacity: 1;
}

.title-container {
    text-align: left;
}

.hero-title {
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 0;
    background: linear-gradient(135deg, #78dbff 0%, #ff77c6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.3;
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
    letter-spacing: 0.02em;
}

.separator-line {
    height: 2px;
    background: linear-gradient(90deg, #ffffff 0%, transparent 100%);
    margin: 1.5rem 0;
    width: 0;
    animation: drawLine 2s ease-out 4s forwards;
}

.hero-subtitle {
    font-size: 1rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.9);
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
    letter-spacing: 0.02em;
}

/* 打字机效果 */
.typewriter {
    display: inline;
}

.typewriter::after {
    content: '|';
    color: #78dbff;
    font-weight: normal;
    animation: blink 1s infinite;
}

.typed-complete::after {
    display: none;
}

@keyframes blink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0; }
}

@keyframes drawLine {
    from { width: 0; }
    to { width: 100%; }
}

/* 功能网格 */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 0;
}

.feature-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 2.5rem 2rem;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    opacity: 0;
    transform: translateY(50px);
    animation: slideInUp 0.8s ease-out forwards;
}

.feature-card:nth-child(1) { animation-delay: 1s; }
.feature-card:nth-child(2) { animation-delay: 1.2s; }
.feature-card:nth-child(3) { animation-delay: 1.4s; }

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.8s;
}

.feature-card:hover::before {
    left: 100%;
}

.feature-card:hover {
    transform: translateY(-10px) scale(1.02);
    border-color: rgba(120, 219, 255, 0.3);
    box-shadow: 
        0 20px 40px rgba(0, 0, 0, 0.3),
        0 0 30px rgba(120, 219, 255, 0.2);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, #78dbff 0%, #ff77c6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: inline-block;
    transition: transform 0.3s ease;
}

.feature-card:hover .feature-icon {
    transform: scale(1.1) rotate(5deg);
}

.feature-title {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #ffffff;
}

.feature-desc {
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.6;
}

/* 动画关键帧 */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {
    0%, 100% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.3;
    }
    50% {
        transform: translate(-50%, -50%) scale(1.2);
        opacity: 0.1;
    }
}

/* 装饰性几何元素 */
.geometric-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
}

.geometric-shape {
    position: absolute;
    border: 1px solid rgba(120, 219, 255, 0.1);
}

.shape-1 {
    width: 100px;
    height: 100px;
    top: 10%;
    right: 10%;
    transform: rotate(45deg);
    animation: float 6s ease-in-out infinite;
}

.shape-2 {
    width: 60px;
    height: 60px;
    bottom: 20%;
    left: 15%;
    border-radius: 50%;
    animation: float 8s ease-in-out infinite reverse;
}

.shape-3 {
    width: 80px;
    height: 80px;
    top: 60%;
    right: 20%;
    clip-path: polygon(50% 0%, 0% 100%, 100% 100%);
    animation: float 7s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(180deg); }
}

/* 响应式媒体查询 */

/* 平板设备 (768px 及以下) */
@media (max-width: 768px) {
    .container {
        flex-direction: column;
        padding: 1rem;
        justify-content: flex-start;
        gap: 2rem;
    }
    
    .left-content {
        padding-right: 0;
        width: 100%;
    }
    
    .right-hero {
        flex: none;
        width: 100%;
        min-height: auto;
        padding: 1rem 0;
        order: -1; /* 移到最顶部 */
    }
    
    .hero-section {
        max-width: 100%;
        padding: 2rem 1.5rem;
    }
    
    .hero-title {
        font-size: 1.8rem;
        text-align: center;
    }
    
    .title-container {
        text-align: center;
    }
    
    .hero-subtitle {
        font-size: 0.9rem;
        text-align: center;
    }
    
    .feature-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .feature-card {
        padding: 1.8rem 1.5rem;
        max-width: 100%;
        margin: 0 auto;
    }
    
    .feature-icon {
        font-size: 2.5rem;
        margin-bottom: 1rem;
    }
    
    .feature-title {
        font-size: 1.2rem;
    }
    
    /* 调整几何装饰元素 */
    .shape-1 {
        width: 60px;
        height: 60px;
        top: 5%;
        right: 5%;
    }
    
    .shape-2 {
        width: 40px;
        height: 40px;
        bottom: 10%;
        left: 5%;
    }
    
    .shape-3 {
        width: 50px;
        height: 50px;
        top: 50%;
        right: 10%;
    }
}

/* 手机设备 (480px 及以下) */
@media (max-width: 480px) {
    body {
        background-attachment: scroll; /* 修复移动设备背景固定问题 */
    }
    
    .container {
        padding: 0.8rem;
        gap: 1.5rem;
    }
    
    .hero-section {
        padding: 1.5rem 1rem;
    }
    
    .hero-title {
        font-size: 1.5rem;
        line-height: 1.2;
    }
    
    .hero-subtitle {
        font-size: 0.8rem;
        line-height: 1.5;
    }

    .right-hero {
        padding: 0.5rem 0;
    }
    
    .separator-line {
        margin: 1rem 0;
    }
    
    .feature-grid {
        gap: 1rem;
    }
    
    .feature-card {
        padding: 1.5rem 1rem;
    }
    
    .feature-icon {
        font-size: 2rem;
        margin-bottom: 0.8rem;
    }
    
    .feature-title {
        font-size: 1.1rem;
        margin-bottom: 0.8rem;
    }
    
    .feature-desc {
        font-size: 0.9rem;
        line-height: 1.5;
    }
    
    /* 隐藏部分装饰元素以减少视觉干扰 */
    .shape-2,
    .shape-3 {
        display: none;
    }
    
    .shape-1 {
        width: 40px;
        height: 40px;
        top: 2%;
        right: 2%;
        opacity: 0.3;
    }
    
    /* 优化背景粒子效果 */
    .background-particles::before {
        background-size: 150px 75px;
        animation-duration: 30s;
    }
}

/* 添加中等屏幕尺寸的优化 */
@media (min-width: 481px) and (max-width: 768px) {
    .feature-card {
        max-width: 500px; /* 限制卡片最大宽度 */
        margin: 0 auto;
    }
    
    .hero-section {
        max-width: 600px;
        margin: 0 auto;
    }
}

/* 优化横屏显示 */
@media (max-height: 600px) and (orientation: landscape) {
    .container {
        padding: 1rem;
    }
    
    .right-hero {
        padding: 0.5rem 0;
    }
    
    .feature-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }
}

/* 超小屏幕设备 (320px 及以下) */
@media (max-width: 320px) {
    .container {
        padding: 0.5rem;
    }
    
    .hero-section {
        padding: 1rem 0.8rem;
    }
    
    .hero-title {
        font-size: 1.3rem;
    }
    
    .hero-subtitle {
        font-size: 0.75rem;
    }
    
    .feature-card {
        padding: 1.2rem 0.8rem;
    }
    
    .feature-icon {
        font-size: 1.8rem;
    }
    
    .feature-title {
        font-size: 1rem;
    }
    
    .feature-desc {
        font-size: 0.85rem;
    }
}

/* 横屏手机优化 */
@media (max-height: 600px) and (orientation: landscape) {
    .container {
        flex-direction: row;
        align-items: flex-start;
        padding-top: 1rem;
        padding-bottom: 1rem;
    }
    
    .right-hero {
        flex: 0 0 300px;
        min-height: auto;
        order: 1;
    }
    
    .left-content {
        order: 2;
        padding-left: 1rem;
        padding-right: 0;
    }
    
    .hero-section {
        padding: 1.5rem 1rem;
        max-width: 280px;
    }
    
    .hero-title {
        font-size: 1.4rem;
    }
    
    .hero-subtitle {
        font-size: 0.8rem;
    }
    
    .feature-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 1rem;
    }
    
    .feature-card {
        padding: 1.5rem 1rem;
    }
}

/* 触摸设备优化 */
@media (hover: none) and (pointer: coarse) {
    .feature-card:hover {
        transform: none;
        border-color: rgba(255, 255, 255, 0.1);
        box-shadow: none;
    }
    
    .feature-card:active {
        transform: scale(0.98);
        transition: transform 0.1s ease;
    }
    
    .feature-card:hover .feature-icon {
        transform: none;
    }
    
    .feature-card:hover::before {
        left: -100%;
    }
    
    .hero-section:hover::before {
        opacity: 0;
    }
}