﻿:root {
    --primary: #4361ee;
    --secondary: #3f37c9;
    --accent: #4cc9f0;
    --success: #4ade80;
    --warning: #f59e0b;
    --danger: #ef4444;
    --dark: #0f172a;
    --light: #f8fafc;
    --gray: #94a3b8;
    --mycolor:#9E9E9E;
    --card-bg: rgba(255, 255, 255, 0.08);
    --glass: rgba(255, 255, 255, 0.1);
    --border: rgba(255, 255, 255, 0.18);
    --shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Roboto', sans-serif;
}

body {
    background: linear-gradient(135deg, #0f172a, #1e293b);
    color: var(--light);
    min-height: 100vh;
    padding: 20px;
    position: relative;
    overflow-x: hidden;
}

    body::before {
        content: "";
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: radial-gradient(circle at 10% 20%, rgba(67, 97, 238, 0.1) 0%, rgba(31, 41, 55, 0) 40%), radial-gradient(circle at 90% 80%, rgba(76, 201, 240, 0.1) 0%, rgba(31, 41, 55, 0) 40%);
        z-index: -1;
    }

.container {
    max-width: 1200px;
    margin: 0 auto;
}

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
    border-bottom: 1px solid var(--border);
    margin-bottom: 40px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.8rem;
    font-weight: 700;
    background: linear-gradient(90deg, var(--accent), var(--primary));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

    .logo i {
        font-size: 2.2rem;
    }

nav ul {
    display: flex;
    gap: 30px;
    list-style: none;
}

nav a {
    color: var(--gray);
    text-decoration: none;
    font-weight: 500;
    font-size: 1.1rem;
    padding: 8px 15px;
    border-radius: 30px;
    transition: all 0.3s ease;
    position: relative;
}

    nav a.active, nav a:hover {
        color: var(--light);
        background: var(--glass);
    }

        nav a.active::after, nav a:hover::after {
            content: "";
            position: absolute;
            bottom: -5px;
            left: 15px;
            right: 15px;
            height: 3px;
            background: linear-gradient(90deg, var(--accent), var(--primary));
            border-radius: 3px;
        }

.page-title {
    font-size: 2.5rem;
    margin-bottom: 30px;
    position: relative;
    display: inline-block;
}

    .page-title::after {
        content: "";
        position: absolute;
        bottom: -10px;
        left: 0;
        width: 70px;
        height: 4px;
        background: linear-gradient(90deg, var(--accent), var(--primary));
        border-radius: 2px;
    }

.card {
    background: var(--card-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 30px;
    box-shadow: var(--shadow);
    margin-bottom: 30px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

    .card:hover {
        transform: translateY(-5px);
        box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
    }

.form-group {
    margin-bottom: 25px;
}

label {
    display: block;
    margin-bottom: 10px;
    font-weight: 500;
    font-size: 1.1rem;
}

.input-container {
    position: relative;
}

input[type="file"] {
    width: 100%;
    padding: 15px 20px;
    background: var(--glass);
    border: 1px solid var(--border);
    border-radius: 12px;
    color: var(--light);
    font-size: 1rem;
    transition: all 0.3s ease;
}

    input[type="file"]:hover {
        border-color: var(--accent);
    }

    input[type="file"]::file-selector-button {
        background: linear-gradient(90deg, var(--primary), var(--secondary));
        color: white;
        border: none;
        padding: 10px 20px;
        border-radius: 8px;
        margin-right: 15px;
        cursor: pointer;
        transition: all 0.3s ease;
    }

        input[type="file"]::file-selector-button:hover {
            transform: translateY(-2px);
            box-shadow: 0 5px 15px rgba(67, 97, 238, 0.4);
        }

.btn {
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    color: white;
    border: none;
    padding: 14px 30px;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

    .btn:hover {
        transform: translateY(-3px);
        box-shadow: 0 7px 20px rgba(67, 97, 238, 0.4);
    }

.btn-success {
    background: linear-gradient(90deg, var(--success), #22c55e);
}

    .btn-success:hover {
        box-shadow: 0 7px 20px rgba(74, 222, 128, 0.4);
    }

.btn-warning {
    background: linear-gradient(90deg, var(--warning), #f59e0b);
}

    .btn-warning:hover {
        box-shadow: 0 7px 20px rgba(245, 158, 11, 0.4);
    }

.alert {
    padding: 20px;
    border-radius: 12px;
    margin: 25px 0;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.alert-success {
    background: linear-gradient(90deg, rgba(74, 222, 128, 0.15), rgba(34, 197, 94, 0.15));
    border: 1px solid rgba(74, 222, 128, 0.3);
}

.alert-danger {
    background: linear-gradient(90deg, rgba(239, 68, 68, 0.15), rgba(220, 38, 38, 0.15));
    border: 1px solid rgba(239, 68, 68, 0.3);
}

.alert-warning {
    background: linear-gradient(90deg, rgba(245, 158, 11, 0.15), rgba(217, 119, 6, 0.15));
    border: 1px solid rgba(245, 158, 11, 0.3);
}

.btn-link {
    background: transparent;
    color: var(--accent);
    padding: 10px 20px;
    border: 1px solid var(--accent);
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.3s ease;
    width: fit-content;
}

    .btn-link:hover {
        background: rgba(76, 201, 240, 0.1);
        transform: translateY(-2px);
    }

.row {
    display: flex;
    gap: 30px;
    margin: 40px 0;
}

.col {
    flex: 1;
}

.border-end {
    border-right: 1px solid var(--border);
    padding-right: 30px;
}

.example-section {
    padding: 25px;
    background: var(--card-bg);
    border-radius: 16px;
    border: 1px solid var(--border);
}

    .example-section h3 {
        margin-bottom: 20px;
        font-size: 1.5rem;
        display: flex;
        align-items: center;
        gap: 10px;
    }

.example-image {
    width: 100%;
    height: 300px;
    background: linear-gradient(45deg, #1e3a8a, #3b82f6);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
}

    .example-image::before {
        content: "";
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: linear-gradient(135deg, transparent 0%, rgba(255, 255, 255, 0.1) 100%);
    }

    .example-image i {
        font-size: 5rem;
        color: rgba(255, 255, 255, 0.2);
    }

.list-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 20px;
}

.list-group-item {
    padding: 15px 20px;
    background: var(--glass);
    border: 1px solid var(--border);
    border-radius: 12px;
    text-decoration: none;
    color: var(--light);
    display: flex;
    align-items: center;
    gap: 12px;
    transition: all 0.3s ease;
}

    .list-group-item:hover {
        background: rgba(67, 97, 238, 0.1);
        border-color: var(--primary);
        color:aqua;
        transform: translateX(5px);
        
    }

    .list-group-item i {
        color: var(--accent);
        font-size: 1.2rem;
    }

.stats {
    display: flex;
    gap: 20px;
    margin: 30px 0;
}

.stat-card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 20px;
    flex: 1;
    text-align: center;
    transition: all 0.3s ease;
}

    .stat-card:hover {
        border-color: var(--accent);
        transform: translateY(-5px);
    }

.stat-value {
    font-size: 2.5rem;
    font-weight: 700;
    background: linear-gradient(90deg, var(--accent), var(--primary));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin: 10px 0;
}

.stat-label {
    color: var(--gray);
    font-size: 1.1rem;
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 25px;
    margin: 30px 0;
}

.feature-card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 25px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: all 0.3s ease;
}

    .feature-card:hover {
        border-color: var(--accent);
        transform: translateY(-8px);
    }

.feature-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    font-size: 1.8rem;
}

.feature-card h3 {
    margin-bottom: 15px;
    font-size: 1.4rem;
}

.feature-card p {
    color: var(--gray);
    line-height: 1.6;
}

.tech-pattern {
    position: absolute;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(67, 97, 238, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    z-index: -1;
}

.pattern-1 {
    top: 10%;
    left: 5%;
}

.pattern-2 {
    bottom: 10%;
    right: 5%;
}

footer {
    text-align: center;
    padding: 30px 0;
    margin-top: 50px;
    border-top: 1px solid var(--border);
    color: var(--gray);
}

.progress-container {
    margin: 20px 0;
    display: none;
}

.progress-bar {
    height: 10px;
    background: var(--glass);
    border-radius: 5px;
    overflow: hidden;
    margin-top: 10px;
}

.progress {
    height: 100%;
    background: linear-gradient(90deg, var(--accent), var(--primary));
    width: 0%;
    transition: width 0.5s ease;
}

select {
    width: 100%;
    padding: 15px;
    background: var(--glass);
    border: 1px solid var(--border);
    border-radius: 12px;
    color: var(--mycolor);
    font-size: 1rem;
}

.tool-card {
    text-align: center;
    padding: 30px;
    background: var(--card-bg);
    border-radius: 16px;
    border: 1px solid var(--border);
    transition: all 0.3s ease;
    cursor: pointer;
}

    .tool-card:hover {
        border-color: var(--accent);
        transform: translateY(-8px);
    }

    .tool-card i {
        font-size: 3rem;
        margin-bottom: 20px;
        color: var(--accent);
    }

    .tool-card h3 {
        font-size: 1.5rem;
        margin-bottom: 15px;
    }

    .tool-card p {
        color: var(--gray);
        line-height: 1.6;
    }

@media (max-width: 768px) {
    .row {
        flex-direction: column;
    }

    .border-end {
        border-right: none;
        border-bottom: 1px solid var(--border);
        padding-right: 0;
        padding-bottom: 30px;
        margin-bottom: 30px;
    }

    nav ul {
        gap: 10px;
    }

    .stats {
        flex-direction: column;
    }

   
}
/* 在现有CSS基础上添加以下内容 */

/* 汉堡菜单按钮 */
.menu-toggle {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--gray);
    padding: 10px;
}

/* 二级菜单容器 */
.has-submenu {
    position: relative;
}

/* 二级菜单样式 */
.submenu {
    display: none;
    position: absolute;
    background: var(--card-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border);
    border-radius: 12px;
    box-shadow: var(--shadow);
    z-index: 100;
    min-width: 200px;
    padding: 10px 0;
    top: 100%;
    left: 0;
    margin-top: 5px;
}

.has-submenu.submenu-open .submenu {
    display: block;
}

.submenu li {
    list-style: none;
}

.submenu a {
    display: block;
    padding: 10px 20px;
    color: var(--gray);
    text-decoration: none;
    transition: all 0.3s ease;
    border-radius: 0;
}

    .submenu a:hover,
    .submenu a.active {
        background: var(--glass);
        color: var(--light);
        transform: none;
    }

    .submenu a::after {
        display: none;
    }

/* 移动端菜单样式 */
@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }

    nav {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: var(--dark);
        z-index: 1000;
        display: none;
        padding-top: 70px; /* 为菜单按钮留出空间 */
        overflow-y: auto;
    }

        nav.active {
            display: block;
        }

        nav ul {
            flex-direction: column;
            gap: 0;
            padding:0 20px;
        }

            nav ul li {
                width: 100%;
                text-align: left;
            }

                nav ul li a {
                    display: flex;
                    justify-content: space-between;
                    align-items: center;
                    padding: 15px 20px;
                    border-bottom: 1px solid var(--border);
                    border-radius: 0;
                }

                    nav ul li a::after {
                        display: none;
                    }



    .submenu {
        position: static;
        background: rgba(0, 0, 0, 0.2);
        border: none;
        box-shadow: none;
        margin-top: 0;
        display: none;
    }

    .has-submenu.submenu-open .submenu {
        display: block;
    }


    .submenu a {
        padding-left: 40px;
    }

    .row {
        flex-direction: column;
    }

    .border-end {
        border-right: none;
        border-bottom: 1px solid var(--border);
        padding-right: 0;
        padding-bottom: 30px;
        margin-bottom: 30px;
    }

    .stats {
        flex-direction: column;
    }
}

/* 桌面端菜单箭头动画 */
.has-submenu i {
    transition: transform 0.3s ease;
    margin-left: 8px;
    font-size: 0.9em;
}

.has-submenu.submenu-open i {
    transform: rotate(180deg);
}

/* 防止一级菜单点击跳转 */
.has-submenu > a[href="javascript:void(0);"] {
    cursor: pointer;
}
/* 新增关闭按钮样式 */
.close-menu {
    position: absolute;
    top: 20px;
    right: 20px;
    color: var(--gray);
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 1001;
    display: none;
}

@media (max-width: 768px) {
    .close-menu {
        display: block;
    }
}