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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #333;
    line-height: 1.6;
    position: relative;
    overflow-x: hidden;
}

/* 为宽屏添加动态背景装饰 */
body::before {
    content: '';
    position: fixed;
    top: -10%;
    left: -10%;
    width: 120%;
    height: 120%;
    background: 
        radial-gradient(circle at 20% 30%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(255, 255, 255, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 60% 20%, rgba(118, 75, 162, 0.1) 0%, transparent 50%);
    animation: float 15s ease-in-out infinite;
    pointer-events: none;
    z-index: -1;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px) scale(1);
    }
    50% {
        transform: translateY(-20px) scale(1.02);
    }
}

.container {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    max-width: 500px;
    width: 90%;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.2);
    position: relative;
    overflow: hidden;
}

/* 为宽屏添加装饰性背景元素 */
.container::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(102, 126, 234, 0.1) 0%, transparent 70%);
    animation: rotate 20s linear infinite;
    pointer-events: none;
}

@keyframes rotate {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
    background: linear-gradient(45deg, #667eea, #764ba2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 700;
}

.subtitle {
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 30px;
    font-weight: 300;
}

.friends-list {
    list-style: none;
    padding: 0;
}

.friend-item {
    background: linear-gradient(45deg, #f093fb 0%, #f5576c 100%);
    color: white;
    padding: 15px 25px;
    margin: 10px 0;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 500;
    transform: translateY(0);
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(240, 147, 251, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
}

.friend-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(240, 147, 251, 0.4);
}

.friend-item:nth-child(even) {
    background: linear-gradient(45deg, #a8edea 0%, #fed6e3 100%);
    color: #333;
    box-shadow: 0 5px 15px rgba(168, 237, 234, 0.3);
}

.friend-item:nth-child(even):hover {
    box-shadow: 0 10px 25px rgba(168, 237, 234, 0.4);
}

.emoji {
    font-size: 1.5rem;
    margin-right: 10px;
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    position: absolute;
    left: 20px;
}

.friend-name {
    flex: 1;
    text-align: center;
}

/* 宽屏幕设备适配 (桌面端、大屏幕) */
@media (min-width: 1200px) {
    .container {
        max-width: 600px;
        padding: 60px;
        margin: 40px;
    }
    
    h1 {
        font-size: 3.5rem;
        margin-bottom: 20px;
    }
    
    .subtitle {
        font-size: 1.3rem;
        margin-bottom: 40px;
    }
    
    .friend-item {
        padding: 20px 35px;
        margin: 15px 0;
        font-size: 1.3rem;
        border-radius: 60px;
    }
    
    .emoji {
        font-size: 2rem;
        margin-right: 15px;
    }
}

/* 超宽屏幕适配 (4K、超宽显示器) */
@media (min-width: 1600px) {
    .container {
        max-width: 800px;
        padding: 80px;
        margin: 60px;
    }
    
    h1 {
        font-size: 4rem;
        margin-bottom: 25px;
    }
    
    .subtitle {
        font-size: 1.5rem;
        margin-bottom: 50px;
    }
    
    .friend-item {
        padding: 25px 40px;
        margin: 20px 0;
        font-size: 1.5rem;
        border-radius: 70px;
    }
    
    .emoji {
        font-size: 2.5rem;
        margin-right: 20px;
    }
}

/* 平板设备适配 */
@media (min-width: 768px) and (max-width: 1199px) {
    .container {
        max-width: 550px;
        padding: 50px;
    }
    
    h1 {
        font-size: 3rem;
    }
    
    .subtitle {
        font-size: 1.2rem;
        margin-bottom: 35px;
    }
    
    .friend-item {
        padding: 18px 30px;
        font-size: 1.2rem;
        margin: 12px 0;
    }
    
    .emoji {
        font-size: 1.8rem;
        margin-right: 12px;
    }
}

/* 小屏幕设备适配 */
@media (max-width: 480px) {
    .container {
        padding: 30px 20px;
        margin: 20px;
    }
    
    h1 {
        font-size: 2rem;
    }
    
    .friend-item {
        padding: 12px 20px;
        font-size: 1rem;
    }
}

/* 添加一些动画效果 */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.container {
    animation: fadeInUp 0.6s ease-out;
}

.friend-item {
    animation: fadeInUp 0.6s ease-out;
}

.friend-item:nth-child(1) { animation-delay: 0.1s; }
.friend-item:nth-child(2) { animation-delay: 0.2s; }
.friend-item:nth-child(3) { animation-delay: 0.3s; }
.friend-item:nth-child(4) { animation-delay: 0.4s; }
.friend-item:nth-child(5) { animation-delay: 0.5s; }
