/* 基础样式重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #2563eb;
    --primary-hover: #1d4ed8;
    --secondary-color: #0891b2;
    --accent-color: #f59e0b;
    --bg-color: #f8fafc;
    --bg-gradient: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 50%, #f0fdf4 100%);
    --card-bg: rgba(255, 255, 255, 0.95);
    --card-bg-hover: rgba(255, 255, 255, 1);
    --text-primary: #1e293b;
    --text-secondary: #64748b;
    --border-color: rgba(148, 163, 184, 0.2);
    --shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px -1px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
}

body {
    font-family: 'Noto Sans SC', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--bg-gradient);
    background-attachment: fixed;
    color: var(--text-primary);
    min-height: 100vh;
    line-height: 1.6;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 15px 20px;
}

/* 头部样式 */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 0;
    margin-bottom: 20px;
    gap: 24px;
    border-bottom: 1px solid var(--border);
}

.header > .nav {
    display: flex;
    align-items: center;
    gap: 4px;
    flex-wrap: nowrap;
    padding: 6px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

.logo-icon {
    width: 48px;
    height: 48px;
    background: var(--primary);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: 700;
    color: white;
    box-shadow: var(--shadow);
    overflow: hidden;
}

.logo-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.logo-text-wrap {
    display: flex;
    flex-direction: column;
}

.logo-text-wrap {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.logo-text {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-title);
    line-height: 1.2;
    letter-spacing: 0;
}

.logo-subtitle {
    font-size: 12px;
    color: var(--text-secondary);
    font-weight: 400;
    line-height: 1.3;
}

/* 导航 */
.nav-link {
    padding: 8px 14px;
    border-radius: 10px;
    text-decoration: none;
    color: var(--text-body);
    font-weight: 500;
    font-size: 14px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.nav-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.1) 0%, rgba(8, 145, 178, 0.1) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: 10px;
}

.nav-link:hover::before {
    opacity: 1;
}

.nav-link:hover {
    color: var(--primary);
    transform: translateY(-1px);
}

.nav-link.active {
    color: white !important;
    background: linear-gradient(135deg, #2563eb 0%, #0891b2 100%) !important;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3) !important;
    font-weight: 600 !important;
    border-radius: 10px !important;
}

.nav-link.active::before {
    display: none;
}

/* 搜索区域 */
.search-section {
    margin-bottom: 20px;
}

.search-box {
    display: flex;
    align-items: center;
    background: var(--card-bg);
    border: 2px solid var(--border-color);
    border-radius: 10px;
    padding: 6px 6px 6px 20px;
    max-width: 600px;
    margin: 0 auto;
    transition: all 0.3s ease;
}

.search-box:focus-within {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.1);
}

.search-box input {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    color: var(--text-primary);
    font-size: 16px;
    padding: 12px 0;
}

.search-box input::placeholder {
    color: var(--text-secondary);
}

.search-btn {
    width: 44px;
    height: 44px;
    background: var(--primary-color);
    border: none;
    border-radius: 10px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    transition: all 0.3s ease;
}

.search-btn:hover {
    background: var(--primary-hover);
    transform: scale(1.05);
}

/* 主要内容区域 */
.main-content {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

/* 演示区块 */
.demo-section {
    animation: fadeInUp 0.5s ease forwards;
    opacity: 0;
}

.demo-section:nth-child(1) { animation-delay: 0.05s; }
.demo-section:nth-child(2) { animation-delay: 0.1s; }
.demo-section:nth-child(3) { animation-delay: 0.15s; }
.demo-section:nth-child(4) { animation-delay: 0.2s; }
.demo-section:nth-child(5) { animation-delay: 0.25s; }
.demo-section:nth-child(6) { animation-delay: 0.3s; }
.demo-section:nth-child(7) { animation-delay: 0.35s; }
.demo-section:nth-child(8) { animation-delay: 0.4s; }
.demo-section:nth-child(9) { animation-delay: 0.45s; }
.demo-section:nth-child(10) { animation-delay: 0.5s; }
.demo-section:nth-child(11) { animation-delay: 0.55s; }
.demo-section:nth-child(12) { animation-delay: 0.6s; }
.demo-section:nth-child(13) { animation-delay: 0.65s; }
.demo-section:nth-child(14) { animation-delay: 0.7s; }

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(15px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.demo-section.featured {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.08) 0%, rgba(251, 191, 36, 0.05) 100%);
    border-radius: 14px;
    padding: 16px;
    border: 1px solid rgba(245, 158, 11, 0.15);
}

.section-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--text-primary);
    padding-left: 4px;
}

.demo-section.featured .section-title {
    font-size: 17px;
    color: #d97706;
}

.title-icon {
    font-size: 17px;
}

/* 演示网格 */
.demo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 10px;
}

/* 演示卡片 */
.demo-card {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    text-decoration: none;
    color: var(--text-primary);
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(10px);
}

.demo-card:hover {
    background: var(--card-bg-hover);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(37, 99, 235, 0.2);
}

.demo-card.official {
    border-left: 4px solid var(--primary-color);
}

.card-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-weight: 700;
    color: white;
    transition: transform 0.3s ease;
    flex-shrink: 0;
}

.demo-card:hover .card-icon {
    transform: scale(1.08);
}

.card-info {
    display: flex;
    flex-direction: column;
    gap: 3px;
    flex: 1;
    min-width: 0;
}

.card-name {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.card-desc {
    font-size: 12px;
    color: var(--text-secondary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.access-btn {
    padding: 6px 12px;
    background: var(--primary-color);
    color: white;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 500;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.demo-card:hover .access-btn {
    background: var(--primary-hover);
}

/* 各系列图标颜�?*/
.official-icon { background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%); }
.caimao { background: linear-gradient(135deg, #059669 0%, #047857 100%); }
.huihuang { background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%); }
.fenxiao { background: linear-gradient(135deg, #7c3aed 0%, #6d28d9 100%); }
.qianfang { background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%); }
.fuzhuang { background: linear-gradient(135deg, #ec4899 0%, #db2777 100%); }
.wulian { background: linear-gradient(135deg, #0891b2 0%, #0e7490 100%); }
.smart { background: linear-gradient(135deg, #f97316 0%, #ea580c 100%); }
.fubei { background: linear-gradient(135deg, #10b981 0%, #059669 100%); }
.yiding { background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%); }
.ishop { background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%); }
.huiyuan { background: linear-gradient(135deg, #14b8a6 0%, #0d9488 100%); }
.kaipiao { background: linear-gradient(135deg, #06b6d4 0%, #0891b2 100%); }
.kaipiaobao { background: linear-gradient(135deg, #84cc16 0%, #65a30d 100%); }

/* 页脚 */
.footer {
    margin-top: 30px;
    padding: 20px 0;
    border-top: 1px solid var(--border-color);
}

.footer-content {
    text-align: center;
}

.footer-links {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 12px;
}

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 12px;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--primary-color);
}

.footer-links .divider {
    color: var(--border-color);
    font-size: 12px;
}

.copyright {
    color: var(--text-secondary);
    font-size: 12px;
}

/* 搜索高亮 */
.demo-card.hidden {
    display: none;
}

.demo-card.highlight {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

/* 响应式设�?*/
@media (max-width: 1024px) {
    .demo-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    }
}

@media (max-width: 768px) {
    .container {
        padding: 15px;
    }
    
    .header {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 12px;
    }
    
    .nav {
        width: 100%;
        justify-content: center;
        flex-wrap: wrap;
        gap: 6px;
    }
    
    .nav-link {
        padding: 6px 10px;
        font-size: 13px;
        border-radius: 8px;
    }
    
    .search-box {
        max-width: 100%;
    }
    
    .demo-grid {
        grid-template-columns: 1fr;
    }
    
    .demo-card {
        padding: 14px 16px;
    }
    
    .card-icon {
        width: 44px;
        height: 44px;
        font-size: 14px;
    }
    
    .section-title {
        font-size: 16px;
    }
    
    .footer-links {
        flex-direction: column;
        gap: 6px;
    }
    
    .footer-links .divider {
        display: none;
    }
}

@media (max-width: 480px) {
    .logo-text {
        font-size: 22px;
    }
    
    .logo-subtitle {
        font-size: 12px;
    }
    
    .logo-icon {
        width: 48px;
        height: 48px;
        font-size: 16px;
    }
    

}

/* 滚动条美�?*/
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: rgba(148, 163, 184, 0.3);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(148, 163, 184, 0.5);
}
