/* 万码先锋官网 - 前台样式 - 科技感设计 */
* { margin: 0; padding: 0; box-sizing: border-box; }
:root {
    --primary: #0b5fff;
    --primary-dark: #0040cc;
    --primary-light: #3d7eff;
    --accent: #00d4ff;
    --dark: #0a1530;
    --dark-2: #141e3a;
    --gray-bg: #f4f7fb;
    --text: #2d3436;
    --text-light: #636e72;
    --radius: 12px;
    --shadow: 0 4px 20px rgba(11,95,255,0.08);
    --shadow-hover: 0 12px 40px rgba(11,95,255,0.15);
    --gradient: linear-gradient(135deg, #0b5fff, #00d4ff);
    --gradient-dark: linear-gradient(135deg, #0a1530, #141e3a);
}
body {
    font-family: "Microsoft YaHei", "PingFang SC", -apple-system, Arial, sans-serif;
    color: var(--text);
    line-height: 1.7;
    background: #fff;
    overflow-x: hidden;
}
a { text-decoration: none; color: var(--primary); transition: color 0.3s; }
a:hover { color: var(--primary-dark); }
img { max-width: 100%; display: block; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* 顶部导航 */
.header {
    background: rgba(10,21,48,0.85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
    z-index: 1000;
    height: 72px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}
.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 72px;
}
.logo a { display: flex; align-items: center; gap: 12px; }
.logo .logo-icon {
    width: 42px; height: 42px;
    background: var(--gradient);
    border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    color: #fff; font-size: 22px; font-weight: 700;
    box-shadow: 0 4px 12px rgba(11,95,255,0.3);
}
.logo .logo-text { display: flex; flex-direction: column; }
.logo h1 { color: #fff; font-size: 20px; line-height: 1.2; }
.logo span { color: rgba(255,255,255,0.5); font-size: 11px; }
.nav ul { display: flex; list-style: none; gap: 4px; }
.nav li a {
    color: rgba(255,255,255,0.75);
    font-size: 15px;
    padding: 8px 16px;
    border-radius: 8px;
    transition: all 0.3s;
}
.nav li.active a, .nav li a:hover {
    color: #fff;
    background: rgba(255,255,255,0.1);
}

/* Banner */
.banner { position: relative; height: 520px; overflow: hidden; }
.banner-slider { position: relative; width: 100%; height: 100%; }
.banner-item {
    width: 100%; height: 520px;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    position: absolute; top: 0; left: 0;
}
.banner-item::before {
    content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(135deg, rgba(10,21,48,0.85), rgba(11,95,255,0.6));
}
.banner-content {
    position: relative;
    z-index: 2;
    max-width: 600px;
    padding-left: 8%;
}
.banner-content h2 { color: #fff; font-size: 44px; line-height: 1.3; margin-bottom: 20px; }
.banner-content p { color: rgba(255,255,255,0.85); font-size: 18px; margin-bottom: 30px; }
.banner-content .btn { font-size: 16px; padding: 14px 40px; }

/* 通用按钮 */
.btn {
    display: inline-block;
    padding: 12px 30px;
    background: var(--gradient);
    color: #fff;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 14px;
    font-weight: 500;
    box-shadow: 0 4px 15px rgba(11,95,255,0.3);
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 8px 25px rgba(11,95,255,0.4); color: #fff; }
.btn-outline {
    background: transparent;
    border: 2px solid rgba(255,255,255,0.5);
    box-shadow: none;
}
.btn-outline:hover { background: rgba(255,255,255,0.1); border-color: #fff; }
.btn-link { color: var(--primary); font-size: 14px; font-weight: 500; }
.btn-link:hover { color: var(--primary-dark); }

/* 区块 */
.section { padding: 80px 0; }
.section:nth-child(even) { background: var(--gray-bg); }
.section-title { text-align: center; margin-bottom: 50px; }
.section-title .label { display: inline-block; padding: 4px 16px; background: rgba(11,95,255,0.1); color: var(--primary); border-radius: 20px; font-size: 13px; margin-bottom: 15px; }
.section-title h2 { font-size: 34px; color: var(--dark); margin-bottom: 12px; font-weight: 700; }
.section-title p { color: var(--text-light); font-size: 16px; }

/* 核心业务 */
.business-list {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}
.business-item {
    background: #fff;
    padding: 40px 24px;
    text-align: center;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    transition: all 0.4s;
    position: relative;
    overflow: hidden;
}
.business-item::before {
    content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 4px;
    background: var(--gradient);
    transform: scaleX(0);
    transition: transform 0.4s;
}
.business-item:hover { transform: translateY(-8px); box-shadow: var(--shadow-hover); }
.business-item:hover::before { transform: scaleX(1); }
.business-item .icon {
    width: 72px; height: 72px;
    margin: 0 auto 20px;
    background: rgba(11,95,255,0.08);
    border-radius: 18px;
    display: flex; align-items: center; justify-content: center;
    font-size: 32px;
    transition: all 0.4s;
}
.business-item:hover .icon { background: var(--gradient); transform: scale(1.1); }
.business-item h3 { color: var(--dark); font-size: 18px; margin-bottom: 10px; }
.business-item p { color: var(--text-light); font-size: 13px; line-height: 1.6; }

/* 数字统计 */
.stats { background: var(--gradient-dark) !important; position: relative; overflow: hidden; }
.stats::before {
    content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: url('https://images.unsplash.com/photo-1451187580459-43490279c0fa?w=1600') center/cover;
    opacity: 0.15;
}
.stats .container { position: relative; z-index: 2; }
.stats-list { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; text-align: center; }
.stat-item { padding: 20px 0; }
.stat-item h3 { color: var(--accent); font-size: 52px; margin-bottom: 8px; font-weight: 700; }
.stat-item p { color: rgba(255,255,255,0.8); font-size: 15px; }

/* 解决方案 */
.solution-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.solution-item {
    background: #fff;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all 0.4s;
}
.solution-item:hover { transform: translateY(-8px); box-shadow: var(--shadow-hover); }
.solution-item .img-wrap { position: relative; overflow: hidden; height: 220px; }
.solution-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s; }
.solution-item:hover img { transform: scale(1.1); }
.solution-info { padding: 24px; }
.solution-info h3 { color: var(--dark); font-size: 20px; margin-bottom: 10px; }
.solution-info p { color: var(--text-light); font-size: 14px; margin-bottom: 15px; line-height: 1.6; }

/* 产品 */
.product-list, .product-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.product-item, .product-card {
    background: #fff;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all 0.4s;
}
.product-item:hover, .product-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-hover); }
.product-item .img-wrap, .product-card .img-wrap { position: relative; overflow: hidden; height: 220px; }
.product-item img, .product-card img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s; }
.product-item:hover img, .product-card:hover img { transform: scale(1.1); }
.product-info, .product-detail { padding: 20px 24px; }
.product-info h3, .product-detail h3 { color: var(--dark); font-size: 18px; margin-bottom: 6px; }
.product-info p, .product-detail p { color: var(--text-light); font-size: 13px; }

/* 案例 */
.case-list, .case-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 30px; }
.case-item, .case-card {
    background: #fff;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all 0.4s;
}
.case-item:hover, .case-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-hover); }
.case-item .img-wrap, .case-card .img-wrap { position: relative; overflow: hidden; height: 240px; }
.case-item img, .case-card img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s; }
.case-item:hover img, .case-card:hover img { transform: scale(1.1); }
.case-info { padding: 20px 24px; }
.case-info h3 { color: var(--dark); font-size: 18px; margin-bottom: 6px; }
.case-info .location { color: var(--primary); font-size: 13px; margin-bottom: 6px; }
.case-info p { color: var(--text-light); font-size: 14px; }

/* 新闻 */
.news-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.news-item {
    background: #fff;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all 0.4s;
}
.news-item:hover { transform: translateY(-8px); box-shadow: var(--shadow-hover); }
.news-item .img-wrap { position: relative; overflow: hidden; height: 180px; }
.news-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s; }
.news-item:hover img { transform: scale(1.1); }
.news-item .news-body { padding: 20px; }
.news-item h3 { color: var(--dark); font-size: 17px; margin-bottom: 10px; line-height: 1.5; }
.news-item p { color: var(--text-light); font-size: 13px; margin-bottom: 12px; line-height: 1.6; }
.news-item .date { color: #999; font-size: 13px; }

/* 页面Banner */
.page-banner {
    background: var(--gradient-dark);
    color: #fff;
    text-align: center;
    padding: 100px 0;
    position: relative;
    overflow: hidden;
}
.page-banner::before {
    content: '';
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: url('https://images.unsplash.com/photo-1451187580459-43490279c0fa?w=1600') center/cover;
    opacity: 0.2;
}
.page-banner .container { position: relative; z-index: 2; }
.page-banner h1 { font-size: 38px; margin-bottom: 12px; }
.page-banner p { color: rgba(255,255,255,0.7); font-size: 16px; }

/* 详情页 */
.detail-wrap { max-width: 900px; margin: 0 auto; padding: 50px 0; }
.detail-cover { width: 100%; height: 400px; object-fit: cover; margin-bottom: 30px; border-radius: var(--radius); }
.detail-wrap h1 { color: var(--dark); font-size: 30px; margin-bottom: 15px; }
.detail-wrap .subtitle { color: var(--primary); font-size: 18px; margin-bottom: 15px; }
.detail-wrap .summary { color: var(--text-light); margin-bottom: 20px; padding: 15px 20px; background: var(--gray-bg); border-radius: 8px; border-left: 4px solid var(--primary); }
.detail-content { line-height: 1.9; font-size: 16px; color: var(--text); }
.detail-content img { max-width: 100%; margin: 20px 0; border-radius: 8px; }
.detail-content p { margin-bottom: 15px; }
.news-meta { color: #999; font-size: 14px; margin: 15px 0; padding: 12px 0; border-top: 1px solid #eee; border-bottom: 1px solid #eee; }
.news-meta span { margin-right: 20px; }

/* 新闻列表页 */
.news-wrap { max-width: 1000px; margin: 0 auto; }
.news-categories { margin-bottom: 40px; text-align: center; }
.news-categories a {
    display: inline-block;
    padding: 10px 28px;
    margin: 0 5px;
    border: 2px solid #e8ecf1;
    border-radius: 50px;
    color: var(--text-light);
    transition: all 0.3s;
    font-size: 14px;
}
.news-categories a.active, .news-categories a:hover { background: var(--gradient); color: #fff; border-color: transparent; }
.news-list-page .news-item { display: flex; margin-bottom: 24px; }
.news-list-page .news-item .img-wrap { width: 240px; height: 160px; flex-shrink: 0; }
.news-list-page .news-item .news-body { flex: 1; }
.tag-top { background: #ff6b6b; color: #fff; padding: 3px 10px; border-radius: 4px; font-size: 12px; margin-right: 8px; }

/* 关于我们 */
.about-wrap { max-width: 1000px; margin: 0 auto; }
.about-intro { margin-bottom: 60px; text-align: center; }
.about-intro h2 { color: var(--dark); font-size: 28px; margin-bottom: 20px; }
.about-intro p { color: var(--text-light); font-size: 16px; line-height: 2; max-width: 800px; margin: 0 auto; }
.about-culture { margin-bottom: 60px; }
.about-culture h2 { text-align: center; color: var(--dark); font-size: 28px; margin-bottom: 40px; }
.culture-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.culture-item {
    background: #fff;
    padding: 40px 30px;
    border-radius: var(--radius);
    text-align: center;
    box-shadow: var(--shadow);
    transition: all 0.3s;
}
.culture-item:hover { transform: translateY(-5px); box-shadow: var(--shadow-hover); }
.culture-item .icon { width: 64px; height: 64px; margin: 0 auto 20px; background: var(--gradient); border-radius: 16px; display: flex; align-items: center; justify-content: center; font-size: 28px; color: #fff; }
.culture-item h3 { color: var(--dark); font-size: 20px; margin-bottom: 12px; }
.culture-item p { color: var(--text-light); }

/* 联系我们 */
.contact-wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; }
.contact-info h2, .contact-form h2 { color: var(--dark); font-size: 24px; margin-bottom: 25px; }
.info-list .info-item { margin-bottom: 20px; display: flex; align-items: flex-start; gap: 15px; }
.info-item .icon { width: 44px; height: 44px; background: rgba(11,95,255,0.08); border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 20px; flex-shrink: 0; }
.info-item .text label { display: block; color: var(--text-light); font-size: 13px; margin-bottom: 4px; }
.info-item .text span { color: var(--dark); font-size: 15px; }
.form-group { margin-bottom: 20px; }
.form-group label { display: block; margin-bottom: 8px; color: var(--dark); font-size: 14px; font-weight: 500; }
.form-group .required { color: #f00; }
.form-group input, .form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e8ecf1;
    border-radius: 8px;
    font-size: 14px;
    transition: border-color 0.3s;
    background: #fff;
}
.form-group input:focus, .form-group textarea:focus { border-color: var(--primary); outline: none; }
.form-msg .success { color: #2ed573; padding: 10px 0; font-size: 14px; }
.form-msg .error { color: #ff4757; padding: 10px 0; font-size: 14px; }

/* 分页 */
.pagination { text-align: center; margin-top: 40px; }
.pagination ul { display: inline-block; list-style: none; }
.pagination li { display: inline-block; margin: 0 3px; }
.pagination li a, .pagination li span {
    display: inline-block;
    padding: 10px 16px;
    border: 2px solid #e8ecf1;
    color: var(--text-light);
    border-radius: 8px;
    transition: all 0.3s;
}
.pagination li.active a, .pagination li a:hover { background: var(--gradient); color: #fff; border-color: transparent; }

/* 相关 */
.related { margin-top: 50px; }
.related h2 { color: var(--dark); font-size: 24px; margin-bottom: 20px; }
.news-related { list-style: none; }
.news-related li { padding: 12px 0; border-bottom: 1px solid #eee; }
.news-related li a { color: var(--text); }
.news-related li a:hover { color: var(--primary); }

/* 底部 */
.footer { background: var(--dark); color: rgba(255,255,255,0.6); padding: 60px 0 20px; }
.footer-top { display: grid; grid-template-columns: 2fr 1fr 1fr 1.5fr; gap: 40px; padding-bottom: 40px; border-bottom: 1px solid rgba(255,255,255,0.08); }
.footer-col h3 { color: #fff; font-size: 16px; margin-bottom: 18px; }
.footer-col p { margin-bottom: 8px; font-size: 14px; line-height: 1.8; }
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 10px; }
.footer-col ul li a { color: rgba(255,255,255,0.6); font-size: 14px; }
.footer-col ul li a:hover { color: #fff; }
.footer-bottom { padding-top: 25px; text-align: center; font-size: 13px; }
.footer-bottom a { color: rgba(255,255,255,0.6); }

/* 响应式 */
@media (max-width: 992px) {
    .business-list, .solution-list, .product-list, .product-grid, .news-list, .culture-list { grid-template-columns: repeat(2, 1fr); }
    .stats-list { grid-template-columns: repeat(2, 1fr); }
    .footer-top { grid-template-columns: repeat(2, 1fr); }
    .contact-wrap { grid-template-columns: 1fr; }
    .banner-content h2 { font-size: 32px; }
}
@media (max-width: 768px) {
    .nav ul { flex-wrap: wrap; gap: 4px; }
    .nav li a { padding: 6px 10px; font-size: 13px; }
    .business-list, .solution-list, .product-list, .product-grid, .news-list, .case-list, .case-grid, .culture-list { grid-template-columns: 1fr; }
    .banner-content h2 { font-size: 26px; }
    .section-title h2 { font-size: 26px; }
    .section { padding: 50px 0; }
    .news-list-page .news-item { flex-direction: column; }
    .news-list-page .news-item .img-wrap { width: 100%; height: 200px; }
}
