/* 清华镜像助手 - 样式表 */

:root {
    --primary-color: #660874;
    --primary-light: #8b2f9e;
    --secondary-color: #2c3e50;
    --accent-color: #27ae60;
    --warning-color: #f39c12;
    --background-color: #f5f6fa;
    --card-background: #ffffff;
    --text-color: #2c3e50;
    --text-light: #7f8c8d;
    --border-color: #dcdde1;
    --code-background: #1e1e1e;
    --code-color: #d4d4d4;
    --shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    --radius: 8px;
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background-color: var(--background-color);
    color: var(--text-color);
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.header {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    color: white;
    padding: 60px 0;
    text-align: center;
}

.header h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.header .subtitle {
    font-size: 1.2rem;
    opacity: 0.9;
}

/* Main Content */
.main {
    padding: 40px 0;
}

.section {
    margin-bottom: 60px;
}

.section h2 {
    font-size: 1.8rem;
    margin-bottom: 20px;
    color: var(--secondary-color);
    border-bottom: 3px solid var(--primary-color);
    padding-bottom: 10px;
    display: inline-block;
}

.description {
    color: var(--text-light);
    margin-bottom: 30px;
    font-size: 1.1rem;
}

/* Command Box */
.command-box {
    background-color: var(--code-background);
    border-radius: var(--radius);
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    overflow-x: auto;
}

.command-box code {
    color: var(--code-color);
    font-family: "SF Mono", Monaco, "Cascadia Code", "Roboto Mono", Consolas, monospace;
    font-size: 1rem;
    white-space: nowrap;
}

.copy-btn {
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.9rem;
    margin-left: 20px;
    transition: background-color 0.2s;
    white-space: nowrap;
}

.copy-btn:hover {
    background-color: var(--primary-light);
}

.copy-btn.copied {
    background-color: var(--accent-color);
}

/* Features */
.features {
    display: flex;
    gap: 30px;
    flex-wrap: wrap;
    justify-content: center;
}

.feature {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-light);
}

.feature .icon {
    font-size: 1.5rem;
}

/* System Grid */
.system-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.system-card {
    background-color: var(--card-background);
    border-radius: var(--radius);
    padding: 30px;
    box-shadow: var(--shadow);
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    text-align: center;
}

.system-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
}

.system-card.coming-soon {
    opacity: 0.7;
    cursor: default;
}

.system-card.coming-soon:hover {
    transform: none;
    box-shadow: var(--shadow);
}

.system-icon {
    font-size: 3rem;
    margin-bottom: 15px;
}

.system-card h3 {
    font-size: 1.3rem;
    margin-bottom: 10px;
    color: var(--secondary-color);
}

.system-card p {
    color: var(--text-light);
    font-size: 0.9rem;
    margin-bottom: 15px;
}

.status {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
}

.status.ready {
    background-color: #e8f5e9;
    color: #2e7d32;
}

.status.pending {
    background-color: #fff3e0;
    color: #ef6c00;
}

/* Command List */
.command-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.command-item h4 {
    margin-bottom: 10px;
    color: var(--secondary-color);
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    overflow: auto;
}

.modal-content {
    background-color: var(--card-background);
    margin: 5% auto;
    padding: 30px;
    border-radius: var(--radius);
    max-width: 800px;
    width: 90%;
    position: relative;
    max-height: 85vh;
    overflow-y: auto;
}

.close {
    position: absolute;
    right: 20px;
    top: 15px;
    font-size: 2rem;
    cursor: pointer;
    color: var(--text-light);
}

.close:hover {
    color: var(--text-color);
}

/* Guide Content */
#guide-content h2 {
    margin-bottom: 20px;
}

#guide-content h3 {
    margin-top: 30px;
    margin-bottom: 15px;
    color: var(--secondary-color);
}

#guide-content p {
    margin-bottom: 15px;
}

#guide-content pre {
    background-color: var(--code-background);
    padding: 15px;
    border-radius: var(--radius);
    overflow-x: auto;
    margin-bottom: 15px;
}

#guide-content code {
    color: var(--code-color);
    font-family: "SF Mono", Monaco, "Cascadia Code", "Roboto Mono", Consolas, monospace;
}

#guide-content .note {
    background-color: #e3f2fd;
    border-left: 4px solid #2196f3;
    padding: 15px;
    margin: 20px 0;
    border-radius: 0 var(--radius) var(--radius) 0;
}

/* Footer */
.footer {
    background-color: var(--secondary-color);
    color: white;
    padding: 30px 0;
    text-align: center;
}

.footer p {
    margin-bottom: 10px;
    opacity: 0.9;
}

.footer a {
    color: #74b9ff;
    text-decoration: none;
}

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

/* Responsive */
@media (max-width: 768px) {
    .header h1 {
        font-size: 1.8rem;
    }

    .header .subtitle {
        font-size: 1rem;
    }

    .section h2 {
        font-size: 1.4rem;
    }

    .command-box {
        flex-direction: column;
        align-items: stretch;
    }

    .command-box code {
        margin-bottom: 15px;
        font-size: 0.85rem;
    }

    .copy-btn {
        margin-left: 0;
        width: 100%;
    }

    .features {
        flex-direction: column;
        align-items: center;
    }

    .system-grid {
        grid-template-columns: 1fr;
    }
}
