/* === 全局重置与变量 === */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', -apple-system, BlinkMacSystemFont, Roboto, sans-serif;
}

:root {
    --primary: #6C63FF;
    --primary-dark: #5A52D5;
    --accent: #FF6584;
    --bg: #F8F9FE;
    --bg-card: #FFFFFF;
    --text-dark: #1A1A2E;
    --text-muted: #6B7280;
    --shadow: 0 8px 30px rgba(108, 99, 255, 0.12);
    --radius: 16px;
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

body {
    background: var(--bg);
    color: var(--text-dark);
    line-height: 1.6;
    scroll-behavior: smooth;
}

a { text-decoration: none; color: inherit; }
img { max-width: 100%; }
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* === 导航栏 === */
.navbar {
    background: rgba(255,255,255,0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(108,99,255,0.1);
    position: sticky;
    top: 0;
    z-index: 100;
    padding: 14px 0;
}

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

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.logo i {
    -webkit-text-fill-color: initial;
    color: var(--primary);
}

.nav-links a {
    margin: 0 16px;
    font-weight: 500;
    color: var(--text-muted);
    transition: var(--transition);
    position: relative;
    padding-bottom: 4px;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: var(--transition);
}

.nav-links a:hover, .nav-links a.active {
    color: var(--primary);
}

.nav-links a:hover::after, .nav-links a.active::after {
    width: 100%;
}

.login-btn {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: #fff;
    border: none;
    padding: 10px 24px;
    border-radius: 30px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 4px 15px rgba(108,99,255,0.3);
}

.login-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(108,99,255,0.4);
}

.hamburger {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--text-dark);
    cursor: pointer;
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
        width: 100%;
        flex-direction: column;
        align-items: center;
        padding: 20px 0;
    }
    .nav-links.show {
        display: flex;
    }
    .nav-links a {
        margin: 10px 0;
    }
    .hamburger {
        display: block;
    }
    .login-btn {
        display: none;
    }
}

/* === Hero === */
.hero {
    padding: 80px 0 60px;
    background: linear-gradient(135deg, #F0F0FF 0%, #FFF5F7 100%);
    border-radius: 0 0 40px 40px;
}

.hero-content {
    display: flex;
    align-items: center;
    gap: 40px;
    flex-wrap: wrap;
}

.hero-text {
    flex: 1 1 500px;
}

.hero-text h1 {
    font-size: 2.8rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 16px;
}

.highlight {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-text p {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 30px;
}

.hero-actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: #fff;
    border: none;
    padding: 14px 32px;
    border-radius: 30px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 4px 15px rgba(108,99,255,0.3);
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(108,99,255,0.4);
}

.btn-secondary {
    background: transparent;
    border: 2px solid var(--primary);
    color: var(--primary);
    padding: 12px 28px;
    border-radius: 30px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.btn-secondary:hover {
    background: var(--primary);
    color: #fff;
}

.stats-row {
    display: flex;
    gap: 30px;
    margin-top: 40px;
    flex-wrap: wrap;
}

.stat-item {
    font-size: 0.9rem;
    color: var(--text-muted);
}

.stat-item span {
    display: block;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-dark);
}

.hero-visual {
    flex: 1 1 300px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.chart-placeholder {
    width: 300px;
    height: 220px;
    background: rgba(255,255,255,0.6);
    border-radius: var(--radius);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: var(--primary);
    box-shadow: var(--shadow);
    position: relative;
    overflow: hidden;
}

.chart-placeholder i {
    opacity: 0.4;
}

.mini-chart {
    position: absolute;
    bottom: 20px;
    left: 20px;
    right: 20px;
    height: 60px;
    background: linear-gradient(90deg, var(--primary) 0%, var(--accent) 100%);
    border-radius: 8px;
    opacity: 0.2;
}

/* === 通用section === */
.section {
    padding: 60px 0;
}

.bg-light {
    background: #F1F4FF;
}

.bg-accent {
    background: linear-gradient(135deg, #FCE4EC, #F3E5F5);
}

.section-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 30px;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    border-radius: 4px;
    margin-top: 8px;
}

/* === 卡片网格 === */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 24px;
}

.card {
    background: var(--bg-card);
    border-radius: var(--radius);
    padding: 28px 20px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    text-align: center;
    border: 1px solid rgba(108,99,255,0.06);
}

.card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 40px rgba(108,99,255,0.15);
}

.card-icon {
    font-size: 2.2rem;
    color: var(--primary);
    margin-bottom: 12px;
    background: linear-gradient(135deg, #E8E0FF, #FFE0E8);
    padding: 16px;
    border-radius: 50%;
    display: inline-block;
}

.card h3 {
    font-size: 1.1rem;
    margin-bottom: 8px;
    font-weight: 600;
}

.card-value {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 4px;
}

.card small {
    color: var(--text-muted);
}

/* === 工具栏（搜索+筛选） === */
.toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    align-items: center;
    margin-bottom: 32px;
}

.search-box {
    display: flex;
    align-items: center;
    background: #fff;
    border-radius: 30px;
    padding: 8px 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.04);
    flex: 1 1 280px;
}

.search-box i {
    color: var(--text-muted);
    margin-right: 10px;
}

.search-box input {
    border: none;
    outline: none;
    background: transparent;
    width: 100%;
    font-size: 1rem;
}

.filter-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.filter-btn {
    background: #fff;
    border: 1px solid #E5E7EB;
    padding: 8px 20px;
    border-radius: 30px;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    color: var(--text-muted);
}

.filter-btn.active, .filter-btn:hover {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
}

/* === 行业洞察布局 === */
.insights-layout {
    display: flex;
    gap: 40px;
    flex-wrap: wrap;
}

.insights-list {
    flex: 2 1 500px;
}

.insight-item {
    background: var(--bg-card);
    border-radius: var(--radius);
    padding: 20px 24px;
    margin-bottom: 16px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border-left: 4px solid var(--primary);
}

.insight-item:hover {
    transform: translateX(6px);
}

.insight-item h4 {
    font-size: 1.1rem;
    margin-bottom: 6px;
}

.insight-item p {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.insight-item .tag {
    display: inline-block;
    background: #E8E0FF;
    color: var(--primary);
    padding: 2px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    margin-top: 8px;
}

.insights-sidebar {
    flex: 1 1 260px;
}

.insights-sidebar h3 {
    font-size: 1.2rem;
    margin: 20px 0 12px;
}

.tags-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tag-chip {
    background: #fff;
    padding: 6px 16px;
    border-radius: 30px;
    border: 1px solid #E5E7EB;
    font-size: 0.85rem;
    cursor: pointer;
    transition: var(--transition);
}

.tag-chip:hover {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
}

.trend-list {
    list-style: none;
}

.trend-list li {
    padding: 8px 0;
    border-bottom: 1px solid #eee;
    font-size: 0.95rem;
}

/* === 社群卡片 === */
.community-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 24px;
}

.community-card {
    background: var(--bg-card);
    border-radius: var(--radius);
    padding: 30px 20px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.community-card:hover {
    transform: scale(1.02);
}

.community-card i {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 12px;
}

.community-card h3 {
    margin-bottom: 6px;
}

.community-card p {
    color: var(--text-muted);
    margin-bottom: 16px;
}

.btn-small {
    background: var(--primary);
    color: #fff;
    border: none;
    padding: 8px 24px;
    border-radius: 30px;
    cursor: pointer;
    transition: var(--transition);
}

.btn-small:hover {
    background: var(--primary-dark);
}

/* === 页脚 === */
.footer {
    background: #1A1A2E;
    color: #ccc;
    padding: 40px 0;
    margin-top: 40px;
}

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

.footer-brand h3 {
    color: #fff;
    font-size: 1.5rem;
}

.footer-links a {
    color: #aaa;
    margin: 0 12px;
    transition: var(--transition);
}

.footer-links a:hover {
    color: #fff;
}

.footer-copy {
    font-size: 0.85rem;
    color: #666;
}

/* === 弹窗 === */
.modal {
    display: none;
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0,0,0,0.5);
    backdrop-filter: blur(4px);
    z-index: 200;
    align-items: center;
    justify-content: center;
}

.modal.show {
    display: flex;
}

.modal-content {
    background: #fff;
    border-radius: var(--radius);
    padding: 40px;
    max-width: 400px;
    width: 90%;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    position: relative;
    animation: modalIn 0.3s ease;
}

@keyframes modalIn {
    from { transform: scale(0.9); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

.close-modal {
    position: absolute;
    top: 12px;
    right: 20px;
    font-size: 1.8rem;
    cursor: pointer;
    color: var(--text-muted);
}

.modal-content h2 {
    margin-bottom: 20px;
}

.modal-content form {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.modal-content input {
    padding: 12px 16px;
    border: 1px solid #ddd;
    border-radius: 10px;
    font-size: 1rem;
}

.admin-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin: 16px 0;
}

.admin-actions button {
    background: var(--primary);
    color: #fff;
    border: none;
    padding: 10px 18px;
    border-radius: 10px;
    cursor: pointer;
    transition: var(--transition);
}

.admin-actions button:hover {
    background: var(--primary-dark);
}

/* === 响应式 === */
@media (max-width: 768px) {
    .hero-text h1 { font-size: 2rem; }
    .section-title { font-size: 1.5rem; }
    .stats-row { gap: 16px; }
    .stat-item span { font-size: 1.2rem; }
}

@media (max-width: 375px) {
    .container { padding: 0 12px; }
    .hero-text h1 { font-size: 1.6rem; }
    .card-value { font-size: 1.5rem; }
    .filter-btn { padding: 6px 14px; font-size: 0.85rem; }
}