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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', sans-serif;
    background: #1a1a1a;
    color: #ffffff;
    padding: 40px 20px;
    min-height: 100vh;
}

/* 加载动画 */
.loading {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #1a1a1a;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 3px solid #333;
    border-top-color: #D97757;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

.loading p {
    margin-top: 20px;
    color: #D97757;
    font-size: 18px;
}

/* 主容器 */
.container {
    max-width: 1200px;
    margin: 0 auto;
    background: #2d2d2d;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0,0,0,0.5);
    animation: fadeIn 0.5s ease-out;
}

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

/* 头部 */
.header {
    background: linear-gradient(135deg, #D97757 0%, #E69584 100%);
    padding: 40px;
    text-align: center;
}

.header h1 {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.2);
}

.header p {
    font-size: 18px;
    opacity: 0.95;
}

/* 内容区 */
.content {
    padding: 40px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
}

/* 命令区块 */
.section {
    background: #383838;
    border-radius: 12px;
    padding: 25px;
    border: 1px solid #444;
    transition: all 0.3s ease;
    animation: slideUp 0.5s ease-out;
}

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

.section:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(217, 119, 87, 0.3);
    border-color: #D97757;
}

.section-title {
    color: #D97757;
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.icon {
    width: 32px;
    height: 32px;
    background: rgba(217, 119, 87, 0.2);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}

/* 命令项 */
.command-item {
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #444;
    transition: all 0.2s ease;
}

.command-item:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.command-item:hover {
    transform: translateX(5px);
}

.command {
    font-family: 'Fira Code', 'Consolas', 'Courier New', monospace;
    background: #222;
    color: #D97757;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 14px;
    margin-bottom: 8px;
    display: inline-block;
    border: 1px solid #444;
    transition: all 0.2s ease;
}

.command:hover {
    background: #2a2a2a;
    border-color: #D97757;
    box-shadow: 0 2px 8px rgba(217, 119, 87, 0.2);
}

.description {
    color: #ccc;
    font-size: 14px;
    line-height: 1.5;
}

/* 页脚 */
.footer {
    background: #222;
    padding: 30px;
    text-align: center;
    color: #888;
    font-size: 14px;
}

.footer code {
    background: #333;
    padding: 2px 6px;
    border-radius: 4px;
    font-family: 'Fira Code', monospace;
}

.footer a {
    color: #D97757;
    text-decoration: none;
    transition: all 0.2s ease;
}

.footer a:hover {
    color: #E69584;
    text-decoration: underline;
}

/* 公众号二维码样式 */
.qrcode-container {
    margin-top: 30px;
    padding-top: 30px;
    border-top: 1px solid #333;
}

.qrcode {
    width: 150px;
    height: 150px;
    margin: 0 auto;
    display: block;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
}

.qrcode:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(217, 119, 87, 0.3);
}

.qrcode-text {
    margin-top: 15px;
    color: #D97757;
    font-size: 16px;
    font-weight: 500;
}

/* 响应式设计 */
@media (max-width: 768px) {
    body {
        padding: 20px 10px;
    }
    
    .header h1 {
        font-size: 28px;
    }
    
    .header p {
        font-size: 16px;
    }
    
    .content {
        padding: 20px;
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .section {
        padding: 20px;
    }
    
    .command {
        font-size: 12px;
        padding: 6px 10px;
    }
    
    .qrcode {
        width: 120px;
        height: 120px;
    }
    
    .qrcode-text {
        font-size: 14px;
    }
}

/* 暗色模式优化 */
@media (prefers-color-scheme: dark) {
    .command {
        background: #1a1a1a;
    }
    
    .section {
        background: #2a2a2a;
    }
}

/* 打印样式 */
@media print {
    body {
        background: white;
        color: black;
    }
    
    .container {
        box-shadow: none;
    }
    
    .section {
        break-inside: avoid;
        page-break-inside: avoid;
    }
}