:root {
    --primary: #006EFF;
    --secondary: #00C4FF;
    --dark: #001529;
    --light: #F5F7FA;
    --accent: #14C9C9;
    --warning: #FFAA00;
    --danger: #FF3B30;
    --text-primary: #1F2329;
    --text-secondary: #646A73;
    --border: #E1E6EB;
    --card-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    --hover-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
    --sidebar-width: 260px;
    --sidebar-collapsed: 70px;
    --header-height: 64px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "PingFang SC", "Microsoft YaHei", sans-serif;
}

body {
    background-color: var(--light);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
}

/* 侧边栏样式 - 默认隐藏 */
.sidebar {
    width: var(--sidebar-width);
    background: var(--dark);
    color: white;
    height: 100vh;
    position: fixed;
    top: 0;
    left: -260px;
    z-index: 1000;
    transition: all 0.3s ease;
    overflow-y: auto;
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
}

.sidebar.show {
    left: 0;
}

.sidebar-header {
    padding: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

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

.logo-container img {
    width: 40px;
    height: 40px;
    margin-right: 12px;
}

.logo-text {
    display: flex;
    flex-direction: column;
}

.logo-text h1 {
    font-size: 18px;
    font-weight: 600;
    line-height: 1.2;
}

.logo-text .project-name {
    font-size: 14px;
    opacity: 0.8;
    margin-top: 4px;
}

.toggle-btn {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.7);
    font-size: 18px;
    cursor: pointer;
    transition: all 0.3s;
    padding: 5px;
    border-radius: 4px;
}

.toggle-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: white;
}

.sidebar-menu {
    padding: 20px 0;
}

.menu-item {
    display: flex;
    align-items: center;
    padding: 12px 20px;
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: all 0.3s;
    position: relative;
}

.menu-item:hover, .menu-item.active {
    background: rgba(255, 255, 255, 0.1);
    color: white;
}

.menu-item.active::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: var(--accent);
}

.menu-icon {
    font-size: 20px;
    width: 24px;
    margin-right: 16px;
    text-align: center;
}

.menu-text {
    font-size: 16px;
    font-weight: 500;
}

/* 主内容区 */
.main-content {
    margin-left: 0;
    transition: margin-left 0.3s ease;
    padding-top: var(--header-height); /* 添加顶部导航栏的高度作为内容区的顶部内边距 */
}

.sidebar.show ~ .main-content {
    margin-left: var(--sidebar-width);
}

/* 顶部导航栏 - 修复字体排版 */
.td-header {
    background: var(--dark);
    color: white;
    height: var(--header-height);
    display: flex;
    align-items: center;
    padding: 0 24px;
    position: fixed; /* 改为fixed定位 */
    top: 0;
    left: 0;
    right: 0;
    z-index: 900;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.menu-toggle {
    background: none;
    border: none;
    color: white;
    font-size: 20px;
    cursor: pointer;
    margin-right: 20px;
}

.header-title {
    font-size: 20px;
    font-weight: 600;
    transition: all 0.3s;
}

.header-title:hover {
    transform: scale(1.05);
}

.td-search {
    width: 320px;
    margin-left: auto;
    position: relative;
}

.search-input {
    width: 100%;
    height: 36px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 4px;
    padding: 0 36px 0 12px;
    color: white;
    font-size: 14px;
    transition: all 0.3s;
}

.search-input:focus {
    outline: none;
    background: rgba(255, 255, 255, 0.2);
    border-color: var(--accent);
}

.search-input::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.search-icon {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: rgba(255, 255, 255, 0.6);
}

.user-actions {
    display: flex;
    align-items: center;
    margin-left: 24px;
}

.action-item {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    color: rgba(255, 255, 255, 0.8);
    cursor: pointer;
    transition: all 0.3s;
    margin-left: 8px;
}

.action-item:hover {
    background: rgba(255, 255, 255, 0.1);
    color: white;
}

/* 用户下拉菜单样式 */
#user-profile {
    position: relative;
    cursor: pointer;
}

.user-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    background: white;
    border-radius: 4px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    width: 160px;
    display: none;
    z-index: 1000;
}

#user-profile:hover .user-dropdown {
    display: block;
}

.dropdown-item {
    padding: 12px 16px;
    color: var(--text-primary);
    font-size: 14px;
    display: flex;
    align-items: center;
    cursor: pointer;
    transition: all 0.2s;
}

.dropdown-item:hover {
    background: rgba(0, 110, 255, 0.05);
}

.dropdown-item i {
    margin-right: 10px;
    width: 16px;
    text-align: center;
}

/* 用户名显示 */
.username-display {
    font-size: 14px;
    color: white;
    margin-right: 10px;
    display: none;
}

/* 主内容区 */
.main-container {
    max-width: 1400px;
    margin: 24px auto;
    padding: 0 24px;
}

/* 欢迎横幅 */
.welcome-banner {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    border-radius: 8px;
    padding: 32px;
    color: white;
    margin-bottom: 24px;
    position: relative;
    overflow: hidden;
}

.banner-content {
    position: relative;
    z-index: 2;
    max-width: 600px;
}

.banner-content h2 {
    font-size: 28px;
    font-weight: 600;
    margin-bottom: 12px;
}

.banner-content p {
    font-size: 16px;
    opacity: 0.9;
    margin-bottom: 24px;
}

.banner-bg {
    position: absolute;
    right: 0;
    top: 0;
    height: 100%;
    opacity: 0.1;
}

/* 核心功能区 */
.section-title {
    font-size: 20px;
    font-weight: 600;
    color: var(--text-primary);
    margin: 32px 0 24px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border);
}

.category-title {
    font-size: 18px;
    font-weight: 500;
    color: var(--text-primary);
    margin: 20px 0 16px;
    padding-left: 12px;
    border-left: 4px solid var(--primary);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
    margin-bottom: 40px;
}

.feature-card {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--card-shadow);
    transition: all 0.3s;
    border: 1px solid var(--border);
    cursor: pointer;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--hover-shadow);
}

.card-header {
    padding: 20px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    color: white;
    display: flex;
    align-items: center;
}

.card-icon {
    width: 48px;
    height: 48px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 16px;
    font-size: 24px;
}

.card-title {
    font-size: 18px;
    font-weight: 600;
}

.card-body {
    padding: 20px;
}

.card-description {
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 16px;
    min-height: 70px;
}

.card-stats {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
    color: var(--text-secondary);
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.stat-value {
    font-size: 20px;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 4px;
}

.stat-label {
    font-size: 12px;
}

/* 网站优势展示 */
.advantages-section {
    background: white;
    border-radius: 8px;
    padding: 32px;
    box-shadow: var(--card-shadow);
    margin-bottom: 40px;
}

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

.advantage-item {
    display: flex;
    align-items: flex-start;
    padding: 16px;
    background: rgba(0, 110, 255, 0.05);
    border-radius: 8px;
    transition: all 0.3s;
}

.advantage-item:hover {
    transform: translateY(-3px);
    box-shadow: var(--hover-shadow);
}

.advantage-number {
    width: 36px;
    height: 36px;
    background: var(--primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    margin-right: 16px;
    flex-shrink: 0;
}

.advantage-content h4 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.advantage-content p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* 招商导航模块 */
.navigation-module {
    background: white;
    border-radius: 8px;
    padding: 32px;
    box-shadow: var(--card-shadow);
    margin-bottom: 40px;
    cursor: pointer;
}

.navigation-module:hover {
    box-shadow: var(--hover-shadow);
}

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

.nav-category {
    background: rgba(0, 110, 255, 0.05);
    border-radius: 8px;
    padding: 20px;
    transition: all 0.3s;
}

.nav-category:hover {
    transform: translateY(-3px);
    box-shadow: var(--hover-shadow);
}

.nav-header {
    display: flex;
    align-items: center;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.nav-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 18px;
    margin-right: 12px;
}

.nav-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
}

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

.nav-link-item {
    margin-bottom: 12px;
    padding: 8px;
    border-radius: 4px;
    transition: all 0.3s;
}

.nav-link-item:hover {
    background: rgba(0, 110, 255, 0.1);
}

.nav-link {
    display: flex;
    align-items: center;
    color: var(--text-primary);
    text-decoration: none;
    font-size: 14px;
}

.nav-link i {
    margin-right: 8px;
    color: var(--primary);
    width: 20px;
    text-align: center;
}

.nav-link span {
    flex: 1;
}

.nav-url {
    font-size: 12px;
    color: var(--text-secondary);
    margin-left: 28px;
    word-break: break-all;
}

/* 页脚 */
.td-footer {
    background: var(--dark);
    color: rgba(255, 255, 255, 0.7);
    padding: 40px 0 30px;
}

.footer-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 24px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
}

.footer-col h3 {
    color: white;
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.footer-col h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 2px;
    background: var(--accent);
}

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

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

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: all 0.3s;
    font-size: 14px;
}

.footer-links a:hover {
    color: white;
}

.contact-info {
    font-size: 14px;
    line-height: 1.8;
}

.contact-info p {
    margin-bottom: 10px;
    display: flex;
    align-items: center;
}

.contact-info i {
    width: 20px;
    margin-right: 10px;
    text-align: center;
}

.copyright {
    text-align: center;
    padding-top: 30px;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.5);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 30px;
}

/* 响应式设计 */
@media (max-width: 1024px) {
    .td-search {
        width: 200px;
    }
    
    .advantages-grid,
    .nav-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }
}

@media (max-width: 768px) {
    .td-header {
        padding: 0 16px;
    }
    
    .header-title {
        font-size: 16px;
    }
    
    .td-search {
        width: 150px;
    }
    
    .welcome-banner {
        padding: 24px;
    }
    
    .banner-content h2 {
        font-size: 22px;
    }
    
    .features-grid,
    .advantages-grid,
    .nav-grid {
        grid-template-columns: repeat(auto-fill, minmax(100%, 1fr));
    }
    
    .footer-container {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

@media (max-width: 480px) {
    .td-header {
        flex-wrap: wrap;
        height: auto;
        padding: 10px;
    }
    
    .menu-toggle {
        margin-right: 10px;
    }
    
    .header-title {
        font-size: 14px;
        margin-right: 10px;
    }
    
    .td-search {
        width: 100%;
        order: 3;
        margin-top: 10px;
    }
    
    .user-actions {
        margin-left: auto;
    }
    
    .welcome-banner {
        padding: 20px;
    }
    
    .banner-content h2 {
        font-size: 20px;
    }
    
    .section-title {
        font-size: 18px;
    }
}