/* =========== 蓝格子网络科技 · 品牌样式 =========== */
:root {
    --primary: #2563EB;
    --primary-dark: #1D4ED8;
    --primary-light: #3B82F6;
    --primary-bg: rgba(37, 99, 235, 0.05);
    --grid-color: rgba(37, 99, 235, 0.06);
    --accent: #06B6D4;
    --dark: #0F172A;
    --gray-700: #334155;
    --gray-500: #64748B;
    --gray-300: #CBD5E1;
    --gray-100: #F1F5F9;
    --bg: #F8FAFC;
    --white: #FFFFFF;
    --shadow: 0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
    --shadow-lg: 0 10px 25px -5px rgba(0,0,0,0.08), 0 4px 10px -5px rgba(0,0,0,0.04);
    --radius: 12px;
    --radius-sm: 8px;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "PingFang SC", "Microsoft YaHei", sans-serif;
    color: var(--dark);
    background: var(--bg);
    line-height: 1.7;
}
.grid-bg {
    position: fixed; top: 0; left: 0; right: 0; bottom: 0;
    background-image:
        linear-gradient(var(--grid-color) 1px, transparent 1px),
        linear-gradient(90deg, var(--grid-color) 1px, transparent 1px);
    background-size: 60px 60px;
    pointer-events: none; z-index: 0;
}
.content-wrapper { position: relative; z-index: 1; }

.navbar { background: rgba(255,255,255,0.95) !important; backdrop-filter: blur(12px); border-bottom: 1px solid var(--gray-100); }
.navbar .container { height: 70px; }
.navbar-brand { font-weight: 800; font-size: 1.5rem; color: var(--primary) !important; letter-spacing: -0.5px; }
.navbar-brand small { font-weight: 400; font-size: 0.75rem; color: var(--gray-500); display: block; letter-spacing: 2px; margin-top: -2px; }
.nav-link { font-weight: 500; font-size: 0.9rem; color: var(--gray-700) !important; padding: 0.5rem 1rem !important; transition: color 0.2s; position: relative; }
.nav-link:hover { color: var(--primary) !important; }
.nav-link::after { content: ""; position: absolute; bottom: 0; left: 50%; transform: translateX(-50%); width: 0; height: 2px; background: var(--primary); transition: width 0.3s; }
.nav-link:hover::after { width: 60%; }

.hero-section { padding: 120px 0 80px; background: linear-gradient(135deg, var(--primary-bg) 0%, rgba(6, 182, 212, 0.05) 100%); position: relative; overflow: hidden; }
.hero-section::before { content: ""; position: absolute; top: -50%; right: -20%; width: 600px; height: 600px; background: radial-gradient(circle, rgba(37,99,235,0.06) 0%, transparent 70%); border-radius: 50%; }
.hero-title { font-size: clamp(2rem, 5vw, 3.2rem); font-weight: 800; line-height: 1.2; margin-bottom: 1.5rem; }
.hero-title .highlight { color: var(--primary); position: relative; }
.hero-title .highlight::after { content: ""; position: absolute; bottom: 2px; left: 0; right: 0; height: 4px; background: var(--primary); opacity: 0.2; border-radius: 2px; }
.hero-desc { font-size: 1.1rem; color: var(--gray-500); max-width: 600px; margin-bottom: 2rem; }

.section { padding: 80px 0; }
.section-alt { background: var(--white); }
.section-header { text-align: center; margin-bottom: 50px; }
.section-title { font-size: 2rem; font-weight: 700; margin-bottom: 0.5rem; }
.section-subtitle { color: var(--gray-500); font-size: 1.05rem; max-width: 600px; margin: 0 auto; }
.section-divider { width: 60px; height: 3px; background: var(--primary); margin: 15px auto; border-radius: 2px; }

.card-custom { background: var(--white); border: 1px solid var(--gray-100); border-radius: var(--radius); padding: 2rem; transition: all 0.3s ease; height: 100%; }
.card-custom:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: var(--primary-light); }
.card-icon { width: 56px; height: 56px; background: var(--primary-bg); border-radius: var(--radius-sm); display: flex; align-items: center; justify-content: center; font-size: 1.5rem; color: var(--primary); margin-bottom: 1.2rem; }
.card-custom h5 { font-weight: 700; font-size: 1.1rem; margin-bottom: 0.8rem; }
.card-custom p { color: var(--gray-500); font-size: 0.95rem; margin-bottom: 0; }

.btn-primary-custom { background: var(--primary); color: white; border: none; padding: 12px 32px; border-radius: var(--radius-sm); font-weight: 600; font-size: 0.95rem; transition: all 0.3s; text-decoration: none; display: inline-flex; align-items: center; gap: 8px; }
.btn-primary-custom:hover { background: var(--primary-dark); color: white; transform: translateY(-1px); box-shadow: 0 4px 12px rgba(37,99,235,0.3); }
.btn-outline-custom { border: 2px solid var(--primary); color: var(--primary); background: transparent; padding: 10px 28px; border-radius: var(--radius-sm); font-weight: 600; font-size: 0.95rem; transition: all 0.3s; text-decoration: none; }
.btn-outline-custom:hover { background: var(--primary); color: white; }

.stats-section { background: var(--primary); color: white; padding: 60px 0; }
.stat-item { text-align: center; }
.stat-number { font-size: 2.8rem; font-weight: 800; line-height: 1; margin-bottom: 0.5rem; }
.stat-label { opacity: 0.85; font-size: 0.95rem; }

.footer { background: var(--dark); color: rgba(255,255,255,0.7); padding: 60px 0 30px; }
.footer h5 { color: white; font-weight: 700; font-size: 1rem; margin-bottom: 1.2rem; }
.footer a { color: rgba(255,255,255,0.6); text-decoration: none; display: block; padding: 3px 0; font-size: 0.9rem; transition: color 0.2s; }
.footer a:hover { color: white; }
.footer .brand { font-size: 1.3rem; font-weight: 800; color: white; margin-bottom: 0.5rem; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); padding-top: 20px; margin-top: 30px; font-size: 0.85rem; text-align: center; }

.tech-tag { display: inline-block; background: var(--gray-100); color: var(--gray-700); padding: 4px 14px; border-radius: 20px; font-size: 0.85rem; margin: 3px; transition: all 0.2s; }
.tech-tag:hover { background: var(--primary); color: white; }

.blog-card { background: var(--white); border: 1px solid var(--gray-100); border-radius: var(--radius); overflow: hidden; transition: all 0.3s; }
.blog-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.blog-card-body { padding: 1.5rem; }
.blog-card .category-badge { background: var(--primary-bg); color: var(--primary); font-size: 0.8rem; padding: 3px 12px; border-radius: 20px; display: inline-block; margin-bottom: 0.8rem; }
.blog-card h5 { font-weight: 700; font-size: 1.05rem; margin-bottom: 0.5rem; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.blog-card p { color: var(--gray-500); font-size: 0.9rem; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.blog-card .meta { font-size: 0.8rem; color: var(--gray-500); }

.case-card { background: var(--white); border: 1px solid var(--gray-100); border-radius: var(--radius); overflow: hidden; transition: all 0.3s; }
.case-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.case-card-body { padding: 1.5rem; }
.case-card .case-industry { color: var(--primary); font-size: 0.8rem; font-weight: 600; text-transform: uppercase; letter-spacing: 1px; }
.case-card h5 { font-weight: 700; margin: 8px 0; }
.case-card p { color: var(--gray-500); font-size: 0.9rem; }
.case-result { background: var(--primary-bg); padding: 10px 14px; border-radius: var(--radius-sm); font-size: 0.9rem; color: var(--primary); font-weight: 600; }

.form-control-custom { border: 1px solid var(--gray-300); border-radius: var(--radius-sm); padding: 12px 16px; font-size: 0.95rem; transition: all 0.2s; }
.form-control-custom:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(37,99,235,0.1); }
.alert-success { background: #ECFDF5; color: #065F46; border-left: 4px solid #10B981; border-radius: var(--radius-sm); border: none; padding: 16px 20px; }
.alert-danger { background: #FEF2F2; color: #991B1B; border-left: 4px solid #EF4444; border-radius: var(--radius-sm); border: none; padding: 16px 20px; }

.page-header { padding: 100px 0 50px; background: linear-gradient(135deg, var(--primary-bg) 0%, rgba(6,182,212,0.03) 100%); }
.page-header h1 { font-weight: 800; font-size: 2.5rem; }
.page-header p { color: var(--gray-500); max-width: 600px; }

.feature-list { list-style: none; padding: 0; }
.feature-list li { padding: 8px 0 8px 28px; position: relative; color: var(--gray-700); }
.feature-list li::before { content: "\2713"; position: absolute; left: 0; color: var(--primary); font-weight: 700; }

.timeline { position: relative; padding-left: 30px; }
.timeline::before { content: ""; position: absolute; left: 8px; top: 0; bottom: 0; width: 2px; background: var(--gray-300); }
.timeline-item { position: relative; margin-bottom: 30px; }
.timeline-item::before { content: ""; position: absolute; left: -26px; top: 5px; width: 12px; height: 12px; background: var(--primary); border-radius: 50%; border: 3px solid var(--white); box-shadow: 0 0 0 2px var(--primary); }
.timeline-year { font-weight: 700; color: var(--primary); font-size: 0.9rem; }
.timeline-text { color: var(--gray-500); font-size: 0.95rem; }

@keyframes fadeInUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
.animate-in { animation: fadeInUp 0.6s ease forwards; }
.animate-in-delay-1 { animation-delay: 0.1s; }
.animate-in-delay-2 { animation-delay: 0.2s; }
.animate-in-delay-3 { animation-delay: 0.3s; }

.back-to-top { position: fixed; bottom: 30px; right: 30px; width: 44px; height: 44px; background: var(--primary); color: white; border: none; border-radius: 50%; font-size: 1.2rem; cursor: pointer; box-shadow: var(--shadow-lg); opacity: 0; transform: translateY(10px); transition: all 0.3s; z-index: 999; }
.back-to-top.show { opacity: 1; transform: translateY(0); }
.back-to-top:hover { background: var(--primary-dark); transform: translateY(-2px); }

@media (max-width: 768px) {
    .hero-section { padding: 90px 0 50px; }
    .section { padding: 50px 0; }
    .section-title { font-size: 1.6rem; }
    .stat-number { font-size: 2rem; }
    .page-header { padding: 80px 0 30px; }
    .page-header h1 { font-size: 1.8rem; }
    .navbar .container { height: 60px; }
}

.pagination-custom .page-link { border: 1px solid var(--gray-100); color: var(--gray-700); padding: 8px 16px; margin: 0 3px; border-radius: var(--radius-sm) !important; }
.pagination-custom .page-link:hover { background: var(--primary-bg); color: var(--primary); border-color: var(--primary-light); }
.pagination-custom .page-item.active .page-link { background: var(--primary); border-color: var(--primary); }

.admin-layout { display: flex; min-height: 100vh; }
.admin-sidebar { width: 240px; background: var(--dark); color: white; padding: 20px 0; flex-shrink: 0; }
.admin-sidebar .brand { padding: 0 20px 20px; border-bottom: 1px solid rgba(255,255,255,0.1); margin-bottom: 20px; font-weight: 700; font-size: 1.1rem; }
.admin-sidebar .nav-link { color: rgba(255,255,255,0.7) !important; padding: 10px 20px !important; border-radius: 0; }
.admin-sidebar .nav-link:hover, .admin-sidebar .nav-link.active { color: white !important; background: rgba(255,255,255,0.1); }
.admin-content { flex: 1; padding: 30px; background: var(--bg); }
.admin-card { background: white; border-radius: var(--radius); border: 1px solid var(--gray-100); padding: 20px; }
.stat-card { background: white; border-radius: var(--radius); padding: 20px; border: 1px solid var(--gray-100); text-align: center; }
.stat-card .number { font-size: 2rem; font-weight: 800; color: var(--primary); }
.stat-card .label { color: var(--gray-500); font-size: 0.9rem; }