/* Realize - 乔布斯风格 CSS */
/* 从想法到现实，只需一步 */

/* 基础重置 */
* { 
    margin: 0; 
    padding: 0; 
    box-sizing: border-box; 
}

/* 苹果系统字体 */
body {
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Helvetica Neue', sans-serif;
    background: #ffffff;
    color: #1d1d1f;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    line-height: 1.47059;
    font-weight: 400;
    letter-spacing: -0.022em;
}

/* 容器 */
.container {
    width: 100%;
    max-width: 680px;
    text-align: center;
    padding: 60px 40px;
}

/* 苹果风格的标题 */
h1 {
    font-size: 80px;
    font-weight: 700;
    margin-bottom: 16px;
    color: #1d1d1f;
    letter-spacing: -0.03em;
    background: linear-gradient(135deg, #1d1d1f 0%, #424245 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.tagline {
    font-size: 28px;
    color: #86868b;
    margin-bottom: 60px;
    font-weight: 400;
    letter-spacing: -0.01em;
}

/* 苹果风格的输入框 */
.input-container {
    position: relative;
    margin-bottom: 24px;
}

textarea {
    width: 100%;
    height: 140px;
    padding: 24px;
    font-size: 20px;
    background: #f5f5f7;
    border: 1px solid #d2d2d7;
    border-radius: 12px;
    color: #1d1d1f;
    resize: none;
    font-family: inherit;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

textarea:focus {
    outline: none;
    border-color: #007aff;
    background: #ffffff;
    box-shadow: 0 0 0 4px rgba(0, 122, 255, 0.1);
}

.hint {
    text-align: center;
    color: #86868b;
    font-size: 17px;
    margin-bottom: 40px;
    font-weight: 400;
}

/* 结果卡片 - 苹果卡片风格 */
.result {
    display: none;
    background: #f5f5f7;
    padding: 40px;
    border-radius: 20px;
    margin-top: 40px;
    border: 1px solid #e5e5e7;
    text-align: left;
    animation: fadeIn 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeOut {
    from { opacity: 1; transform: translateY(0); }
    to { opacity: 0; transform: translateY(20px); }
}

.skill-title {
    font-size: 32px;
    margin-bottom: 12px;
    color: #1d1d1f;
    font-weight: 600;
}

.skill-desc {
    font-size: 20px;
    margin-bottom: 32px;
    color: #515154;
    line-height: 1.4;
}

.features {
    margin: 32px 0;
}

.feature {
    margin-bottom: 16px;
    display: flex;
    align-items: flex-start;
    font-size: 18px;
    color: #1d1d1f;
}

.feature:before {
    content: "✓";
    color: #34c759;
    margin-right: 12px;
    font-weight: 600;
    font-size: 20px;
    flex-shrink: 0;
    margin-top: 2px;
}

.preview {
    background: #ffffff;
    padding: 24px;
    border-radius: 12px;
    margin: 32px 0;
    font-family: 'SF Mono', 'Menlo', monospace;
    white-space: pre;
    border: 1px solid #e5e5e7;
    font-size: 16px;
    line-height: 1.5;
    color: #1d1d1f;
}

.metrics {
    background: #ffffff;
    padding: 24px;
    border-radius: 12px;
    margin: 32px 0;
    border: 1px solid #e5e5e7;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.metric {
    text-align: center;
}

.metric-value {
    font-size: 32px;
    font-weight: 700;
    color: #007aff;
    margin-bottom: 4px;
}

.metric-label {
    font-size: 17px;
    color: #86868b;
}

/* 苹果风格的按钮 */
.actions {
    display: flex;
    gap: 16px;
    margin-top: 32px;
}

button {
    flex: 1;
    padding: 18px 32px;
    border: none;
    border-radius: 12px;
    font-size: 20px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-family: inherit;
}

.think {
    background: #f5f5f7;
    color: #1d1d1f;
    border: 1px solid #d2d2d7;
}

.think:hover {
    background: #e5e5e7;
}

.publish {
    background: #007aff;
    color: white;
}

.publish:hover {
    background: #0056d6;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 122, 255, 0.3);
}

/* 统计信息 */
.stats {
    margin-top: 60px;
    color: #86868b;
    font-size: 17px;
    padding-top: 40px;
    border-top: 1px solid #e5e5e7;
}

.stats span {
    color: #1d1d1f;
    font-weight: 600;
}

/* 加载动画 */
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loading-spinner {
    display: inline-block;
    width: 40px;
    height: 40px;
    border: 3px solid #f5f5f7;
    border-top-color: #007aff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

/* 成功状态 */
.success-icon {
    font-size: 48px;
    margin-bottom: 24px;
}

.success-title {
    font-size: 32px;
    color: #1d1d1f;
    margin-bottom: 16px;
    font-weight: 600;
}

.success-message {
    font-size: 20px;
    color: #515154;
    margin-bottom: 32px;
    line-height: 1.4;
}

.success-url {
    background: #34c759;
    color: white;
    padding: 12px 24px;
    border-radius: 8px;
    display: inline-block;
    font-weight: 600;
    text-decoration: none;
}

.success-url:hover {
    background: #2da84e;
}

/* 响应式设计 */
@media (max-width: 734px) {
    .container {
        padding: 40px 20px;
    }
    
    h1 {
        font-size: 56px;
    }
    
    .tagline {
        font-size: 22px;
    }
    
    textarea {
        height: 120px;
        font-size: 18px;
        padding: 20px;
    }
    
    .result {
        padding: 32px 24px;
    }
    
    .skill-title {
        font-size: 28px;
    }
    
    .skill-desc {
        font-size: 18px;
    }
    
    .actions {
        flex-direction: column;
    }
    
    .metrics {
        grid-template-columns: 1fr;
    }
    
    button {
        padding: 16px 24px;
        font-size: 18px;
    }
}

/* 暗色模式支持 */
@media (prefers-color-scheme: dark) {
    body {
        background: #000000;
        color: #f5f5f7;
    }
    
    h1 {
        background: linear-gradient(135deg, #f5f5f7 0%, #a1a1a6 100%);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        background-clip: text;
    }
    
    textarea {
        background: #1d1d1f;
        border-color: #424245;
        color: #f5f5f7;
    }
    
    textarea:focus {
        background: #2c2c2e;
    }
    
    .result {
        background: #1d1d1f;
        border-color: #424245;
    }
    
    .preview, .metrics {
        background: #2c2c2e;
        border-color: #424245;
        color: #f5f5f7;
    }
    
    .think {
        background: #2c2c2e;
        border-color: #424245;
        color: #f5f5f7;
    }
    
    .think:hover {
        background: #3a3a3c;
    }
}