/* Installer 项目页面样式 - 基于 huidoudour.github.io 设计风格 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', 'Microsoft YaHei', sans-serif;
}

:root {
    --primary-color: #4a85bd;
    --secondary-color: #e28aa6;
    --accent-color: #f2b3c3;
    --dark-color: #2d3436;
    --light-color: #f5f6fa;
    --glass-color: rgba(255, 255, 255, 0.15);
    --text-color: #2d3436;
    --text-light: #636e72;
    --card-bg: #ffffff;
    --shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    --transition: all 0.3s ease;
}

body {
    font-family: 'Poppins', 'Segoe UI', 'Microsoft YaHei', sans-serif;
    background:
        radial-gradient(1100px 520px at 8% -5%, rgba(165, 211, 240, 0.30), transparent 60%),
        radial-gradient(900px 480px at 95% 5%, rgba(242, 179, 195, 0.30), transparent 60%),
        linear-gradient(160deg, #f8fbff 0%, #eef6fc 50%, #fdf1f5 100%);
    background:
        -webkit-radial-gradient(1100px 520px at 8% -5%, rgba(165, 211, 240, 0.30), transparent 60%),
        -webkit-radial-gradient(900px 480px at 95% 5%, rgba(242, 179, 195, 0.30), transparent 60%),
        -webkit-linear-gradient(160deg, #f8fbff 0%, #eef6fc 50%, #fdf1f5 100%);
    color: var(--text-color);
    line-height: 1.6;
    min-height: 100vh;
    padding: 20px;
    position: relative;
    overflow-x: hidden;
}

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

header {
    text-align: center;
    margin-bottom: 40px;
    padding: 40px 30px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.88);
    border: 1px solid rgba(255, 255, 255, 0.95);
    color: var(--dark-color);
    box-shadow: var(--shadow);
    position: relative;
    overflow: hidden;
}

header::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: #a5d3f0;
}

header h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
    font-weight: 700;
    color: #4a85bd;
}

header p {
    font-size: 1.15rem;
    color: #6b7b8c;
    max-width: 600px;
    margin: 0 auto;
    letter-spacing: 0.5px;
}

.badges {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 25px;
}

.badges img {
    height: 22px;
    transition: var(--transition);
    filter: drop-shadow(0 2px 4px rgba(74, 133, 189, 0.15));
}

.badges img:hover {
    transform: scale(1.1) translateY(-2px);
}

.section {
    background: #ffffff;
    border: 1px solid rgba(74, 133, 189, 0.1);
    border-radius: 16px;
    padding: 35px;
    margin-bottom: 30px;
    box-shadow: 0 1px 3px rgba(45, 52, 54, 0.04), 0 8px 24px rgba(74, 133, 189, 0.08);
    position: relative;
    overflow: hidden;
}

.section h2 {
    color: #4a85bd;
    font-size: 1.6rem;
    margin-bottom: 25px;
    font-weight: 600;
    position: relative;
    padding-bottom: 12px;
}

.section h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 4px;
    background: #a5d3f0;
    border-radius: 2px;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.feature-card {
    background: #f8fbff;
    border: 1px solid rgba(74, 133, 189, 0.12);
    border-left: 4px solid #a5d3f0;
    padding: 28px;
    border-radius: 12px;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.feature-card:hover {
    border-left-color: #4a85bd;
    border-color: rgba(74, 133, 189, 0.25);
    transform: translateY(-4px);
    box-shadow: 0 10px 30px rgba(74, 133, 189, 0.15);
}

.feature-card h3 {
    color: #2d3436;
    margin-bottom: 15px;
    font-size: 1.4rem;
    font-weight: 600;
    position: relative;
    z-index: 1;
}

.feature-card h3 i {
    color: #4a85bd;
}

.feature-card ul {
    list-style: none;
    padding-left: 0;
}

.feature-card li {
    padding: 8px 0;
    color: #5a6b7a;
    position: relative;
    padding-left: 28px;
    font-weight: 400;
}

.feature-card li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #4a85bd;
    font-weight: bold;
    font-size: 1.1em;
}

.tech-stack {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-top: 20px;
}

.tech-tag {
    background: #b9dff7;
    color: #3b76b6;
    padding: 12px 22px;
    border-radius: 30px;
    font-size: 0.95em;
    font-weight: 500;
    box-shadow: 0 4px 12px rgba(122, 162, 216, 0.35);
    transition: var(--transition);
}

.tech-tag:hover {
    background: #9ed2f2;
    color: #2d6098;
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(122, 162, 216, 0.45);
}

.reference-list {
    list-style: none;
    padding: 0;
}

.reference-list li {
    padding: 12px 0;
    border-bottom: 1px solid rgba(74, 133, 189, 0.12);
}

.reference-list a {
    color: #4a85bd;
    text-decoration: none;
    transition: var(--transition);
    font-weight: 500;
}

.reference-list a:hover {
    color: #e28aa6;
    text-decoration: underline;
}

footer {
    text-align: center;
    padding: 30px;
    margin-top: 40px;
    color: #7a8a99;
    border-top: 1px solid rgba(74, 133, 189, 0.12);
    font-size: 0.95rem;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.footer-links {
    display: flex;
    gap: 20px;
    margin: 15px 0;
    flex-wrap: wrap;
    justify-content: center;
}

.footer-link {
    color: #4a85bd;
    text-decoration: none;
    font-size: 1rem;
    transition: var(--transition);
    padding: 10px 18px;
    border-radius: 20px;
    font-weight: 500;
    background: #f0f4f8;
}

.footer-link:hover {
    background: #4a85bd;
    color: white;
    transform: translateY(-2px);
}

.footer-author {
    font-size: 1.2em;
    margin: 10px 0;
}

.footer-copyright {
    color: #7a8a99;
    font-size: 0.9em;
    margin-top: 10px;
}

.version-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
    margin-top: 20px;
}

.version-card {
    background: #ffffff;
    border: 1px solid rgba(74, 133, 189, 0.1);
    padding: 20px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 1px 3px rgba(45, 52, 54, 0.04), 0 8px 24px rgba(74, 133, 189, 0.08);
    transition: var(--transition);
}

.version-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(74, 133, 189, 0.18);
    border-color: rgba(74, 133, 189, 0.25);
}

.version-card h4 {
    color: #2d3436;
    margin-bottom: 10px;
    font-size: 1em;
    font-weight: 600;
}

.version-card h4 i {
    color: #4a85bd;
}

.version-card p {
    color: var(--primary-color);
    font-size: 1.3em;
    font-weight: 700;
}

.code-block {
    background: #2d2d2d;
    color: #f8f8f2;
    padding: 15px;
    border-radius: 8px;
    overflow-x: auto;
    margin-top: 20px;
}

.code-block code {
    color: #f8f8f2;
    font-family: 'Courier New', monospace;
    font-size: 0.95em;
    line-height: 1.8;
}

.highlight {
    color: #4a85bd;
    font-weight: bold;
}

/* 滚动条样式 */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #a5d3f0;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #8ec0e8;
}

/* 返回顶部按钮 */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: #b9dff7;
    color: #3b76b6;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    transform: translateY(20px);
    transition: var(--transition);
    z-index: 1000;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.back-to-top.show {
    opacity: 1;
    transform: translateY(0);
}

.back-to-top:hover {
    background: #9ed2f2;
    color: #2d6098;
    transform: translateY(-2px);
}

@media (max-width: 768px) {
    header h1 {
        font-size: 2rem;
    }

    header p {
        font-size: 1rem;
    }

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

    .section {
        padding: 20px;
    }

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

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