/* 全局样式重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
  --theme-main: #0dc2b3;
  --theme-main-dark: #099e8f;
  --theme-main-light: #5ee7d6;
  --theme-main-gradient: linear-gradient(45deg, #0dc2b3, #5ee7d6);
  --theme-main-gradient-h: linear-gradient(90deg, #0dc2b3 0%, #5ee7d6 100%);
  --theme-main-gradient-dark: linear-gradient(45deg, #099e8f, #0dc2b3);
  --theme-main-shadow: 0 4px 20px rgba(13, 194, 179, 0.12);
  --theme-main-border: #0dc2b3;
  --theme-main-hover: #099e8f;
  --theme-main-active: #0dc2b3;
  --theme-main-text: #0dc2b3;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--theme-main-gradient);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
}

/* 容器 */
.container {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
    z-index: 1;
}

/* iPhone 12 手机壳 */
.iphone-frame {
    width: 375px;
    height: 812px;
    background: #1a1a1a;
    border-radius: 50px;
    padding: 8px;
    box-shadow: 
        0 0 0 2px #333,
        0 20px 40px rgba(0, 0, 0, 0.3),
        0 0 100px rgba(0, 0, 0, 0.2);
    position: relative;
    overflow: hidden;
}

/* 屏幕区域 */
.screen {
    width: 100%;
    height: 100%;
    background: #000;
    border-radius: 42px;
    overflow: hidden;
    position: relative;
}

/* iframe 样式 */
.app-iframe {
    width: 100%;
    height: 100%;
    border: none;
    border-radius: 42px;
    background: #fff;
}

/* 顶部刘海 */
.notch {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 126px;
    height: 30px;
    background: #000;
    border-radius: 0 0 20px 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    z-index: 10;
}

.speaker {
    width: 60px;
    height: 6px;
    background: #333;
    border-radius: 3px;
}

.camera {
    width: 12px;
    height: 12px;
    background: #333;
    border-radius: 50%;
}

/* 底部 Home Indicator */
.home-indicator {
    position: absolute;
    bottom: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: 134px;
    height: 5px;
    background: #fff;
    border-radius: 3px;
    z-index: 10;
}

/* 装饰元素 */
.decoration {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
}

.floating-element {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    animation: float 6s ease-in-out infinite;
}

.element-1 {
    width: 80px;
    height: 80px;
    top: 10%;
    left: 10%;
    animation-delay: 0s;
}

.element-2 {
    width: 120px;
    height: 120px;
    top: 60%;
    right: 15%;
    animation-delay: 2s;
}

.element-3 {
    width: 60px;
    height: 60px;
    bottom: 20%;
    left: 20%;
    animation-delay: 4s;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
        opacity: 0.3;
    }
    50% {
        transform: translateY(-20px) rotate(180deg);
        opacity: 0.6;
    }
}

/* 品牌信息 */
.brand-info {
    text-align: center;
    color: white;
    z-index: 1;
}

.brand-info h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    background: var(--theme-main-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.brand-info p {
    font-size: 1rem;
    font-weight: 300;
    opacity: 0.9;
    letter-spacing: 1px;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .iphone-frame {
        width: 320px;
        height: 690px;
        border-radius: 40px;
    }
    
    .screen {
        border-radius: 32px;
    }
    
    .app-iframe {
        border-radius: 32px;
    }
    
    .notch {
        width: 110px;
        height: 25px;
        border-radius: 0 0 15px 15px;
    }
    
    .speaker {
        width: 50px;
        height: 5px;
    }
    
    .camera {
        width: 10px;
        height: 10px;
    }
    
    .home-indicator {
        width: 120px;
        height: 4px;
    }
    
    .brand-info h1 {
        font-size: 2rem;
    }
    
    .brand-info p {
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .iphone-frame {
        width: 280px;
        height: 600px;
        border-radius: 35px;
    }
    
    .screen {
        border-radius: 27px;
    }
    
    .app-iframe {
        border-radius: 27px;
    }
    
    .notch {
        width: 100px;
        height: 22px;
        border-radius: 0 0 12px 12px;
    }
    
    .speaker {
        width: 45px;
        height: 4px;
    }
    
    .camera {
        width: 8px;
        height: 8px;
    }
    
    .home-indicator {
        width: 100px;
        height: 3px;
    }
    
    .brand-info h1 {
        font-size: 1.8rem;
    }
    
    .brand-info p {
        font-size: 0.8rem;
    }
}

/* 加载动画 */
.loading {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 5;
}

.loading::after {
    content: '';
    display: block;
    width: 40px;
    height: 40px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #667eea;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* 悬停效果 */
.iphone-frame:hover {
    transform: translateY(-5px);
    box-shadow: 
        0 0 0 2px #333,
        0 25px 50px rgba(0, 0, 0, 0.4),
        0 0 120px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
}

/* 深色模式支持 */
@media (prefers-color-scheme: dark) {
    body {
        background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    }
    
    .iphone-frame {
        background: #0a0a0a;
        box-shadow: 
            0 0 0 2px #222,
            0 20px 40px rgba(0, 0, 0, 0.5),
            0 0 100px rgba(0, 0, 0, 0.4);
    }
} 