:root {
    --primary-color: #3498db;
    --secondary-color: #2c3e50;
    --accent-color: #e74c3c;
    --success-color: #2ecc71;
    --warning-color: #f39c12;
    --light-bg: #f8f9fa;
    --dark-bg: #34495e;
    --sidebar-width: 260px;
    --border-radius: 8px;
    --transition-speed: 0.3s;
}
li{
    list-style: none;
}
a{
    text-decoration: none;
    color: inherit;}
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f5f7f9;
    color: #333;
    line-height: 1.6;
}

.container {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 15px;
    margin-top: 10px;
}

/* 导航栏样式 */
nav {
    background: linear-gradient(135deg, var(--secondary-color), var(--dark-bg));
    color: white;
    padding: 15px 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.main-nav {
    display: flex;
    list-style: none;
}

.main-nav li {
    margin-right: 25px;
}

.main-nav a {
    color: white;
    text-decoration: none;
    display: flex;
    align-items: center;
    padding: 8px 15px;
    border-radius: var(--border-radius);
    transition: background-color var(--transition-speed);
}

.main-nav a:hover, .main-nav a.active {
    background-color: rgba(255, 255, 255, 0.1);
}

.main-nav i {
    margin-right: 8px;
    font-size: 1.1rem;
}

.nav-tools {
    display: flex;
    gap: 15px;
}

.nav-tools button {
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: var(--border-radius);
    cursor: pointer;
    display: flex;
    align-items: center;
    transition: background-color var(--transition-speed);
}

.nav-tools button:hover {
    background-color: #2980b9;
}

.nav-tools i {
    margin-right: 8px;
}


.dashboard {
    display: flex;
    gap: 30px;
}

/* 侧边栏样式 */
.sidebar {
    width: var(--sidebar-width);
    flex-shrink: 0;
    background: white;
    border-radius: var(--border-radius);
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.08);
    padding: 25px 0;
    height: fit-content;
}

.sidebar-section {
    margin-bottom: 30px;
}

.sidebar-title {
    font-size: 1.1rem;
    color: var(--secondary-color);
    padding: 0 25px 15px;
    border-bottom: 1px solid #eee;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
}

.sidebar-title i {
    margin-right: 10px;
    color: var(--primary-color);
}

.quick-links {
    list-style: none;
}

.sidebar-link {
    display: flex;
    align-items: center;
    padding: 12px 25px;
    color: #555;
    text-decoration: none;
    transition: all var(--transition-speed);
    border-left: 4px solid transparent;
}

.sidebar-link:hover {
    background-color: #f8f9fa;
    color: var(--primary-color);
}

.sidebar-link.active {
    background-color: #e8f4ff;
    color: var(--primary-color);
    border-left-color: var(--primary-color);
}

.sidebar-link i {
    margin-right: 12px;
    width: 20px;
    text-align: center;
    font-size: 1.1rem;
}

/* 主内容区域样式 */
.main-content {
    flex: 1;
    background: white;
    border-radius: var(--border-radius);
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.08);
    overflow: hidden;
}

.tools-section {
    display: none;
    padding: 25px;
}

.tools-section.active {
    display: block;
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}

.section-title {
    display: flex;
    align-items: center;
}

.section-title i {
    font-size: 1.8rem;
    color: var(--primary-color);
    margin-right: 15px;
}

.section-title h2 {
    font-size: 1.5rem;
    color: var(--secondary-color);
}

.view-all {
    color: var(--primary-color);
    text-decoration: none;
    display: flex;
    align-items: center;
    font-weight: 500;
}

.view-all i {
    margin-left: 5px;
    transition: transform var(--transition-speed);
}

.view-all:hover i {
    transform: translateX(5px);
}

.tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.tool-card {
    background: white;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.08);
    transition: all var(--transition-speed);
    cursor: pointer;
    display: flex;
    border: 1px solid #eee;
}

.tool-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.12);
    border-color: var(--primary-color);
}

.tool-card.active {
    border-color: var(--primary-color);
    box-shadow: 0 5px 20px rgba(52, 152, 219, 0.2);
}

.tool-icon {
    width: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary-color), #2c79bb);
    color: white;
    font-size: 1.8rem;
}

.tool-info {
    padding: 20px;
    flex: 1;
}

.tool-info h3 {
    color: var(--secondary-color);
    margin-bottom: 10px;
    font-size: 1.2rem;
}

.tool-info p {
    color: #666;
    font-size: 0.95rem;
    line-height: 1.5;
}

/* 响应式设计 */
@media (max-width: 992px) {
    .dashboard {
        flex-direction: column;
    }

    .sidebar {
        width: 100%;
        margin-bottom: 20px;
    }

    .tools-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }
}

@media (max-width: 768px) {
    .nav-container {
        flex-direction: column;
        align-items: flex-start;
    }

    .main-nav {
        margin-bottom: 15px;
        width: 100%;
        overflow-x: auto;
        padding-bottom: 5px;
    }

    .nav-tools {
        width: 100%;
        justify-content: flex-end;
    }

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

/* 新增图标样式 */
.icon-pulse {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

.icon-spin {
    animation: spin 3s infinite linear;
}

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

.badge {
    display: inline-block;
    padding: 3px 8px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    margin-left: 8px;
}

.badge-new {
    background-color: var(--success-color);
    color: white;
}

.badge-hot {
    background-color: var(--accent-color);
    color: white;
}
/* 头部样式 */
header {
    background: linear-gradient(135deg, var(--primary-color) 0%, #2c5282 100%);
    color: white;
    padding: 20px 0;
    box-shadow: var(--shadow);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
}

.logo h1 {
    font-size: 26px;
    font-weight: 700;
    margin-left: 15px;
    letter-spacing: 0.5px;
}

.logo-icon {
    background: var(--accent-color);
    color: var(--primary-color);
    width: 50px;
    height: 50px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: bold;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.user-area {
    display: flex;
    align-items: center;
}

.user-avatar {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: var(--accent-color);
    color: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: bold;
    margin-right: 12px;
}

.user-info {
    text-align: right;
}

.user-name {
    font-weight: 600;
    font-size: 16px;
}

.user-role {
    font-size: 13px;
    color: var(--gray-light);
    opacity: 0.9;
}

/* 导航栏样式 */
nav {
    background: linear-gradient(135deg, var(--secondary-color), var(--dark-bg));
    color: white;
    padding: 15px 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.main-nav {
    display: flex;
    list-style: none;
}

.main-nav li {
    margin-right: 25px;
}

.main-nav a {
    color: white;
    text-decoration: none;
    display: flex;
    align-items: center;
    padding: 8px 15px;
    border-radius: var(--border-radius);
    transition: background-color var(--transition-speed);
}

.main-nav a:hover, .main-nav a.active {
    background-color: rgba(255, 255, 255, 0.1);
}

.main-nav i {
    margin-right: 8px;
    font-size: 1.1rem;
}

.nav-tools {
    display: flex;
    gap: 15px;
}

.nav-tools button {
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: var(--border-radius);
    cursor: pointer;
    display: flex;
    align-items: center;
    transition: background-color var(--transition-speed);
}

.nav-tools button:hover {
    background-color: #2980b9;
}

.nav-tools i {
    margin-right: 8px;
}

.dashboard {
    display: flex;
    gap: 30px;
}

/* 侧边栏样式 */
.sidebar {
    width: var(--sidebar-width);
    flex-shrink: 0;
    background: white;
    border-radius: var(--border-radius);
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.08);
    padding: 25px 0;
    height: fit-content;
}

.sidebar-section {
    margin-bottom: 30px;
}

.sidebar-title {
    font-size: 1.1rem;
    color: var(--secondary-color);
    padding: 0 25px 15px;
    border-bottom: 1px solid #eee;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
}

.sidebar-title i {
    margin-right: 10px;
    color: var(--primary-color);
}

.quick-links {
    list-style: none;
}

.sidebar-link {
    display: flex;
    align-items: center;
    padding: 12px 25px;
    color: #555;
    text-decoration: none;
    transition: all var(--transition-speed);
    border-left: 4px solid transparent;
}

.sidebar-link:hover {
    background-color: #f8f9fa;
    color: var(--primary-color);
}

.sidebar-link.active {
    background-color: #e8f4ff;
    color: var(--primary-color);
    border-left-color: var(--primary-color);
}

.sidebar-link i {
    margin-right: 12px;
    width: 20px;
    text-align: center;
    font-size: 1.1rem;
}

/* 主内容区域样式 */
.main-content {
    flex: 1;
    background: white;
    border-radius: var(--border-radius);
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.08);
    overflow: hidden;
}

.tools-section {
    display: none;
    padding: 25px;
}

.tools-section.active {
    display: block;
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}

.section-title {
    display: flex;
    align-items: center;
}

.section-title i {
    font-size: 1.8rem;
    color: var(--primary-color);
    margin-right: 15px;
}

.section-title h2 {
    font-size: 1.5rem;
    color: var(--secondary-color);
}

.view-all {
    color: var(--primary-color);
    text-decoration: none;
    display: flex;
    align-items: center;
    font-weight: 500;
}

.view-all i {
    margin-left: 5px;
    transition: transform var(--transition-speed);
}

.view-all:hover i {
    transform: translateX(5px);
}

.tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.tool-card {
    background: white;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.08);
    transition: all var(--transition-speed);
    cursor: pointer;
    display: flex;
    border: 1px solid #eee;
}

.tool-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.12);
    border-color: var(--primary-color);
}

.tool-card.active {
    border-color: var(--primary-color);
    box-shadow: 0 5px 20px rgba(52, 152, 219, 0.2);
}

.tool-icon {
    width: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary-color), #2c79bb);
    color: white;
    font-size: 1.8rem;
}

.tool-info {
    padding: 20px;
    flex: 1;
}

.tool-info h3 {
    color: var(--secondary-color);
    margin-bottom: 10px;
    font-size: 1.2rem;
}

.tool-info p {
    color: #666;
    font-size: 0.95rem;
    line-height: 1.5;
}

/* 响应式设计 */
@media (max-width: 992px) {
    .dashboard {
        flex-direction: column;
    }

    .sidebar {
        width: 100%;
        margin-bottom: 20px;
    }

    .tools-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }
}

@media (max-width: 768px) {
    .nav-container {
        flex-direction: column;
        align-items: flex-start;
    }

    .main-nav {
        margin-bottom: 15px;
        width: 100%;
        overflow-x: auto;
        padding-bottom: 5px;
    }

    .nav-tools {
        width: 100%;
        justify-content: flex-end;
    }

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

/* 新增图标样式 */
.icon-pulse {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

.icon-spin {
    animation: spin 3s infinite linear;
}

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

.badge {
    display: inline-block;
    padding: 3px 8px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    margin-left: 8px;
}

.badge-new {
    background-color: var(--success-color);
    color: white;
}

.badge-hot {
    background-color: var(--accent-color);
    color: white;
}

/* 底部样式 */
footer {
    background: var(--secondary-color);
    color: white;
    padding: 40px 0 20px;
    margin-top: 50px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 30px;
}

.footer-column h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 20px;
    color: var(--accent-color);
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: var(--gray-light);
    text-decoration: none;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--accent-color);
    padding-left: 5px;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 14px;
    color: var(--gray-light);
}

/* 响应式设计 */
@media (max-width: 992px) {
    .dashboard {
        grid-template-columns: 1fr;
    }

    .sidebar {
        order: 2;
    }
}

@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        text-align: center;
    }

    .logo {
        margin-bottom: 15px;
    }

    .nav-container {
        flex-direction: column;
    }

    .main-nav {
        flex-wrap: wrap;
        justify-content: center;
    }

    .nav-tools {
        justify-content: center;
        margin-top: 15px;
    }

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