/* 基础样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    padding: 40px 20px;
    line-height: 1.6;
}

.container {
    max-width: 900px;
    margin: 0 auto;
}

/* 头部样式 */
header {
    text-align: center;
    color: white;
    margin-bottom: 50px;
}

header h1 {
    font-size: 2.5em;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.2);
}

header p {
    font-size: 1.1em;
    opacity: 0.9;
}

/* 卡片样式 */
.card {
    background: white;
    border-radius: 12px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
}

.card-header {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #f0f0f0;
}

.card-icon {
    font-size: 2em;
    margin-right: 15px;
}

.card-title {
    font-size: 1.5em;
    color: #2d3748;
    font-weight: 600;
}

.card-description {
    color: #718096;
    margin-bottom: 20px;
    font-size: 0.95em;
}

/* 命令区块样式 */
.command-section {
    background: #2d3748;
    border-radius: 8px;
    padding: 20px;
    margin: 15px 0;
    position: relative;
}

.command-label {
    color: #a0aec0;
    font-size: 0.85em;
    margin-bottom: 10px;
    display: block;
}

.command-code {
    background: #1a202c;
    color: #68d391;
    padding: 15px;
    border-radius: 6px;
    font-family: 'Courier New', 'Monaco', monospace;
    font-size: 0.9em;
    overflow-x: auto;
    word-break: break-all;
    line-height: 1.8;
    margin: 0;
}

/* 复制按钮样式 */
.copy-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    background: #667eea;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.85em;
    font-weight: 500;
    transition: all 0.3s ease;
}

.copy-btn:hover {
    background: #5568d3;
    transform: translateY(-2px);
}

.copy-btn.copied {
    background: #48bb78;
}

/* 参数说明样式 */
.params {
    background: #f7fafc;
    border-left: 4px solid #667eea;
    padding: 15px 20px;
    margin: 15px 0;
    border-radius: 4px;
}

.params-title {
    color: #2d3748;
    font-weight: 600;
    margin-bottom: 10px;
}

.param-item {
    margin: 8px 0;
    color: #4a5568;
    font-size: 0.9em;
}

.param-code {
    background: #e2e8f0;
    padding: 2px 8px;
    border-radius: 3px;
    font-family: monospace;
    color: #e53e3e;
}

/* 特性列表样式 */
.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-top: 20px;
}

.feature-item {
    display: flex;
    align-items: center;
    color: #4a5568;
    font-size: 0.9em;
}

.feature-icon {
    margin-right: 10px;
    color: #48bb78;
    font-weight: bold;
}

/* 页脚样式 */
footer {
    text-align: center;
    color: white;
    margin-top: 50px;
    opacity: 0.8;
    font-size: 0.9em;
}

/* 响应式设计 */
@media (max-width: 768px) {
    header h1 {
        font-size: 2em;
    }
    
    .card {
        padding: 20px;
    }
    
    .command-code {
        font-size: 0.8em;
        padding: 10px;
    }
    
    .features {
        grid-template-columns: 1fr;
    }
}