/* =====================================================
   梦不落科技 · 官方站
   纯静态 · 无依赖 · 响应式
   ===================================================== */

/* ===== Reset ===== */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei",
               "Helvetica Neue", Arial, "Hiragino Sans GB", sans-serif;
  color: #333; line-height: 1.6; background: #f5f6f8; -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; transition: color .2s; }
a:hover { color: #0d6efd; }
img { max-width: 100%; display: block; }
ul, ol { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
input, textarea, select { font-family: inherit; }

/* ===== 主题色 ===== */
:root {
  --primary: #0d6efd;
  --primary-dark: #0a58ca;
  --dark: #0e1c2e;
  --text: #333;
  --text-light: #666;
  --border: #e5e7eb;
  --bg-soft: #f8f9fa;
  --max: 1200px;
  --radius: 8px;
  --shadow: 0 2px 12px rgba(0,0,0,.08);
  --shadow-lg: 0 8px 32px rgba(0,0,0,.12);
}

/* ===== 通用容器 ===== */
.container { max-width: var(--max); margin: 0 auto; padding: 0 20px; }
.clearfix::after { content: ""; display: block; clear: both; }

/* ===== 顶栏 ===== */
.topbar {
  background: #f0f2f5; border-bottom: 1px solid var(--border);
  font-size: 13px; color: #666; padding: 8px 0;
}
.topbar .container { display: flex; justify-content: space-between; align-items: center; }
.topbar .contact a { margin-left: 18px; }
.topbar .contact strong { color: var(--primary); font-weight: 600; }

/* ===== 导航栏 ===== */
.navbar {
  background: #fff; border-bottom: 1px solid var(--border);
  position: sticky; top: 0; z-index: 100; box-shadow: 0 1px 3px rgba(0,0,0,.04);
}
.navbar .container { display: flex; justify-content: space-between; align-items: center; height: 70px; }
.navbar .logo { display: flex; align-items: center; gap: 10px; font-size: 20px; font-weight: 700; color: var(--dark); }
.navbar .logo .logo-mark {
  width: 40px; height: 40px; border-radius: 8px;
  background: linear-gradient(135deg, var(--primary), #4dabf7);
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-weight: 800; font-size: 18px;
}
.navbar .logo .logo-text small { display: block; font-size: 11px; color: #999; font-weight: 400; margin-top: -2px; }

.nav-menu { display: flex; gap: 4px; }
.nav-menu a {
  display: block; padding: 0 20px; height: 70px; line-height: 70px;
  color: var(--dark); font-weight: 500; position: relative;
}
.nav-menu a:hover, .nav-menu a.active { color: var(--primary); }
.nav-menu a.active::after, .nav-menu a:hover::after {
  content: ""; position: absolute; bottom: 0; left: 20px; right: 20px;
  height: 3px; background: var(--primary); border-radius: 2px 2px 0 0;
}

.nav-toggle { display: none; font-size: 24px; padding: 8px; }

/* ===== 按钮 ===== */
.btn {
  display: inline-block; padding: 10px 24px; border-radius: 4px;
  font-weight: 500; transition: all .2s; cursor: pointer; text-align: center;
}
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-dark); color: #fff; }
.btn-outline { border: 1px solid var(--primary); color: var(--primary); }
.btn-outline:hover { background: var(--primary); color: #fff; }
.btn-lg { padding: 14px 36px; font-size: 16px; }
.btn-sm { padding: 6px 14px; font-size: 13px; }

/* ===== Banner ===== */
.banner {
  position: relative; height: 480px; overflow: hidden;
  background: linear-gradient(135deg, #0a2540 0%, #0d6efd 100%);
  color: #fff;
}
.banner .bg {
  position: absolute; inset: 0;
  background-image: url('../images/banner.svg');
  background-size: cover; background-position: center; opacity: .35;
}
.banner .container { position: relative; z-index: 2; height: 100%; display: flex; align-items: center; }
.banner h1 { font-size: 48px; line-height: 1.2; margin-bottom: 20px; max-width: 700px; }
.banner p { font-size: 18px; opacity: .92; margin-bottom: 32px; max-width: 620px; }
.banner .actions { display: flex; gap: 12px; }
.banner .btn-primary { background: #fff; color: var(--primary); }
.banner .btn-primary:hover { background: #f0f0f0; color: var(--primary-dark); }
.banner .btn-outline { border-color: #fff; color: #fff; }
.banner .btn-outline:hover { background: #fff; color: var(--primary); }

/* ===== 区块 ===== */
.section { padding: 70px 0; }
.section-light { background: #fff; }
.section-soft { background: var(--bg-soft); }
.section-title { text-align: center; margin-bottom: 50px; }
.section-title h2 { font-size: 34px; color: var(--dark); margin-bottom: 10px; font-weight: 700; }
.section-title .sub {
  display: inline-block; color: #999; letter-spacing: 2px;
  font-size: 13px; text-transform: uppercase; margin-bottom: 8px;
}
.section-title .desc { color: #777; font-size: 15px; max-width: 720px; margin: 0 auto; }
.section-title::after {
  content: ""; display: block; width: 50px; height: 3px;
  background: var(--primary); margin: 18px auto 0; border-radius: 2px;
}

/* ===== 数据条 ===== */
.stats {
  display: grid; grid-template-columns: repeat(5, 1fr); gap: 1px;
  background: var(--border); margin: -50px 0 50px; position: relative; z-index: 5;
  box-shadow: var(--shadow);
}
.stats .item { background: #fff; text-align: center; padding: 30px 16px; }
.stats .item .num {
  font-size: 38px; font-weight: 800; color: var(--primary);
  line-height: 1; margin-bottom: 8px;
}
.stats .item .label { color: #666; font-size: 14px; }

/* ===== 产品中心 ===== */
.product-tabs {
  display: flex; justify-content: center; gap: 6px; flex-wrap: wrap; margin-bottom: 36px;
}
.product-tabs .tab {
  padding: 10px 22px; border-radius: 30px; background: #fff; color: #666;
  border: 1px solid var(--border); cursor: pointer; transition: all .2s;
  font-size: 14px; font-weight: 500;
}
.product-tabs .tab.active, .product-tabs .tab:hover {
  background: var(--primary); color: #fff; border-color: var(--primary);
}

.product-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.product-card {
  background: #fff; border-radius: var(--radius); overflow: hidden;
  transition: all .3s; box-shadow: var(--shadow);
  display: block;
}
.product-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.product-card .thumb {
  aspect-ratio: 4/3; background: #f0f2f5;
  background-size: cover; background-position: center;
  position: relative; overflow: hidden;
}
.product-card .thumb::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(to bottom, transparent 60%, rgba(0,0,0,.05));
}
.product-card .body { padding: 16px; }
.product-card .title { font-size: 15px; color: var(--dark); font-weight: 600; margin-bottom: 4px; }
.product-card .meta { font-size: 12px; color: #999; }

/* ===== 5 大优势 ===== */
.advantages { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }
.advantage {
  background: #fff; padding: 30px 20px; text-align: center;
  border-radius: var(--radius); transition: all .3s;
  border: 1px solid var(--border);
}
.advantage:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--primary); }
.advantage .num { font-size: 36px; font-weight: 800; color: var(--primary); line-height: 1; margin-bottom: 10px; }
.advantage .title { font-size: 15px; font-weight: 600; color: var(--dark); margin-bottom: 6px; }
.advantage .desc { font-size: 13px; color: #888; line-height: 1.5; }

/* ===== 视频演示 ===== */
.video-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.video-card {
  background: #fff; border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow); transition: all .3s; cursor: pointer;
}
.video-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.video-card .thumb {
  aspect-ratio: 16/9; background: #1a1a1a; position: relative;
  display: flex; align-items: center; justify-content: center;
  background-size: cover; background-position: center;
}
.video-card .thumb::before {
  content: "▶"; position: absolute; z-index: 2; color: #fff; font-size: 18px;
  width: 48px; height: 48px; border-radius: 50%; background: rgba(13,110,253,.85);
  display: flex; align-items: center; justify-content: center;
  padding-left: 4px; transition: all .2s;
}
.video-card:hover .thumb::before { background: var(--primary); transform: scale(1.08); }
.video-card .body { padding: 12px 14px; font-size: 13px; color: #555; }

/* ===== 案例 ===== */
.case-tabs { display: flex; gap: 6px; margin-bottom: 30px; justify-content: center; }
.case-tabs .tab {
  padding: 8px 18px; border-radius: 4px; background: #fff; color: #666;
  border: 1px solid var(--border); cursor: pointer; font-size: 14px;
}
.case-tabs .tab.active { background: var(--primary); color: #fff; border-color: var(--primary); }

.case-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.case-card { background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); transition: all .3s; }
.case-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.case-card .thumb { aspect-ratio: 16/10; background: #e9ecef; background-size: cover; background-position: center; }
.case-card .body { padding: 18px; }
.case-card .tag { display: inline-block; font-size: 11px; color: var(--primary); background: #e7f1ff; padding: 2px 8px; border-radius: 3px; margin-bottom: 8px; }
.case-card h4 { font-size: 16px; color: var(--dark); margin-bottom: 8px; line-height: 1.4; }
.case-card p { font-size: 13px; color: #888; line-height: 1.6; }

/* ===== 合作客户 ===== */
.client-logos {
  display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px;
}
.client-logos .logo-item {
  aspect-ratio: 16/9; background: #fff; border: 1px solid var(--border);
  border-radius: var(--radius); display: flex; align-items: center; justify-content: center;
  font-size: 14px; color: #999; font-weight: 500;
}

/* ===== 解决方案 ===== */
.solution-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.solution-card {
  background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow);
  transition: all .3s; position: relative;
}
.solution-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.solution-card .thumb { aspect-ratio: 4/3; background: linear-gradient(135deg, #0d6efd, #4dabf7); position: relative; }
.solution-card .thumb::after {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(circle at 30% 40%, rgba(255,255,255,.25), transparent);
}
.solution-card .body { padding: 20px; }
.solution-card h4 { font-size: 17px; color: var(--dark); margin-bottom: 8px; }
.solution-card p { font-size: 13px; color: #888; line-height: 1.6; }

/* ===== 资讯 ===== */
.news-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 30px; }
.news-block { background: #fff; border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); }
.news-block h3 { font-size: 18px; color: var(--dark); margin-bottom: 18px; padding-bottom: 12px; border-bottom: 2px solid var(--primary); }
.news-block .news-item { display: flex; gap: 16px; padding: 14px 0; border-bottom: 1px dashed var(--border); }
.news-block .news-item:last-child { border-bottom: none; }
.news-block .news-item .date { flex-shrink: 0; width: 56px; text-align: center; color: #999; }
.news-block .news-item .date strong { display: block; font-size: 22px; color: var(--primary); font-weight: 700; line-height: 1; }
.news-block .news-item .date span { font-size: 11px; }
.news-block .news-item .content { flex: 1; }
.news-block .news-item .content h5 { font-size: 14px; color: var(--dark); margin-bottom: 4px; font-weight: 500; line-height: 1.4; }
.news-block .news-item .content h5:hover { color: var(--primary); }
.news-block .news-item .content p { font-size: 12px; color: #999; line-height: 1.5; }
.news-block .news-list { list-style: none; }
.news-block .news-list li { padding: 9px 0; border-bottom: 1px dashed var(--border); font-size: 13px; color: #555; display: flex; justify-content: space-between; }
.news-block .news-list li:hover a { color: var(--primary); }
.news-block .news-list li time { color: #999; flex-shrink: 0; }

/* ===== 关于我们 ===== */
.about-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 40px; align-items: center; }
.about-grid .text h3 { font-size: 28px; color: var(--dark); margin-bottom: 18px; }
.about-grid .text p { color: #666; line-height: 1.9; margin-bottom: 14px; }
.about-grid .image { aspect-ratio: 4/3; background: linear-gradient(135deg, #e3f2fd, #bbdefb); border-radius: var(--radius); }

/* ===== 4 大服务 ===== */
.service-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.service-item {
  background: #fff; border-radius: var(--radius); padding: 30px 24px; text-align: center;
  border-top: 3px solid var(--primary); transition: all .3s;
}
.service-item:hover { box-shadow: var(--shadow-lg); transform: translateY(-3px); }
.service-item .icon { font-size: 36px; margin-bottom: 12px; }
.service-item h4 { font-size: 17px; color: var(--dark); margin-bottom: 8px; }
.service-item p { font-size: 13px; color: #888; line-height: 1.6; }

/* ===== 联系我们 ===== */
.contact-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 30px; }
.contact-info { background: linear-gradient(135deg, #0a2540, #0d6efd); color: #fff; padding: 36px; border-radius: var(--radius); }
.contact-info h3 { font-size: 22px; margin-bottom: 24px; }
.contact-info .item { display: flex; align-items: flex-start; gap: 14px; margin-bottom: 20px; }
.contact-info .item .ic { font-size: 22px; opacity: .9; }
.contact-info .item .txt strong { display: block; margin-bottom: 2px; }
.contact-info .item .txt span { opacity: .85; font-size: 14px; }

.contact-form { background: #fff; padding: 36px; border-radius: var(--radius); box-shadow: var(--shadow); }
.contact-form h3 { font-size: 22px; color: var(--dark); margin-bottom: 24px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 14px; }
.form-row.single { grid-template-columns: 1fr; }
.form-row label { display: block; font-size: 13px; color: #555; margin-bottom: 4px; }
.form-row input, .form-row textarea, .form-row select {
  width: 100%; padding: 10px 12px; border: 1px solid var(--border);
  border-radius: 4px; font-size: 14px; transition: border .2s;
}
.form-row input:focus, .form-row textarea:focus, .form-row select:focus {
  outline: none; border-color: var(--primary);
}
.form-row textarea { resize: vertical; min-height: 100px; }
.form-actions { margin-top: 16px; }
.form-actions .btn { width: 100%; }

/* ===== 页脚 ===== */
.footer {
  background: #0a1420; color: #b8c0cc; padding: 50px 0 0;
  font-size: 13px;
}
.footer .footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr 1fr; gap: 30px; margin-bottom: 40px; }
.footer h5 { color: #fff; margin-bottom: 16px; font-size: 15px; }
.footer ul li { margin-bottom: 8px; }
.footer ul li a { color: #b8c0cc; transition: color .2s; }
.footer ul li a:hover { color: #fff; }
.footer .contact-item { display: flex; gap: 10px; margin-bottom: 10px; align-items: flex-start; }
.footer .qr { width: 100px; height: 100px; background: #fff; border-radius: 4px; display: flex; align-items: center; justify-content: center; color: #666; font-size: 12px; }
.footer-bottom { border-top: 1px solid #1a2940; padding: 20px 0; text-align: center; color: #6b7785; font-size: 12px; }
.footer-bottom a { color: #6b7785; margin: 0 8px; }
.footer-bottom a:hover { color: #fff; }

/* ===== 子页面通用 ===== */
.page-banner {
  background: linear-gradient(135deg, #0a2540, #0d6efd);
  color: #fff; padding: 60px 0; text-align: center;
}
.page-banner h1 { font-size: 36px; margin-bottom: 8px; }
.page-banner .breadcrumb { color: rgba(255,255,255,.85); font-size: 14px; }
.page-banner .breadcrumb a { color: rgba(255,255,255,.85); }
.page-banner .breadcrumb a:hover { color: #fff; }

.sidebar { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 18px; }
.sidebar h4 { font-size: 16px; color: var(--dark); margin-bottom: 14px; padding-bottom: 10px; border-bottom: 1px solid var(--border); }
.sidebar .side-menu li a {
  display: block; padding: 10px 14px; border-radius: 4px; color: #555;
  font-size: 14px; margin-bottom: 4px; transition: all .2s;
}
.sidebar .side-menu li a:hover, .sidebar .side-menu li a.active {
  background: #e7f1ff; color: var(--primary);
}
.layout-2col { display: grid; grid-template-columns: 220px 1fr; gap: 24px; }
.main-content { background: #fff; border-radius: var(--radius); padding: 30px; box-shadow: var(--shadow); min-height: 500px; }

/* ===== 表格 ===== */
table.data-table { width: 100%; border-collapse: collapse; font-size: 14px; }
table.data-table th, table.data-table td { padding: 12px 14px; border-bottom: 1px solid var(--border); text-align: left; }
table.data-table th { background: #f8f9fa; color: var(--dark); font-weight: 600; }
table.data-table tr:hover { background: #fafbfc; }

/* ===== 回到顶部 ===== */
.back-top {
  position: fixed; right: 24px; bottom: 24px; width: 44px; height: 44px;
  background: var(--primary); color: #fff; border-radius: 50%;
  display: flex; align-items: center; justify-content: center; font-size: 18px;
  box-shadow: var(--shadow); cursor: pointer; opacity: 0; visibility: hidden;
  transition: all .3s; z-index: 99;
}
.back-top.show { opacity: 1; visibility: visible; }
.back-top:hover { background: var(--primary-dark); transform: translateY(-2px); }

/* ===== 响应式 ===== */
@media (max-width: 1024px) {
  .stats { grid-template-columns: repeat(3, 1fr); }
  .product-grid, .case-grid, .video-grid, .solution-grid { grid-template-columns: repeat(2, 1fr); }
  .service-grid, .advantages { grid-template-columns: repeat(2, 1fr); }
  .footer .footer-grid { grid-template-columns: repeat(3, 1fr); }
  .client-logos { grid-template-columns: repeat(4, 1fr); }
  .news-grid, .about-grid, .contact-grid, .layout-2col { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
  .topbar { display: none; }
  .navbar .logo .logo-text small { display: none; }
  .nav-menu {
    position: fixed; top: 70px; left: 0; right: 0; background: #fff;
    flex-direction: column; padding: 10px 0; border-bottom: 1px solid var(--border);
    transform: translateY(-200%); transition: transform .3s; box-shadow: var(--shadow);
  }
  .nav-menu.open { transform: translateY(0); }
  .nav-menu a { height: 48px; line-height: 48px; }
  .nav-toggle { display: block; }
  .banner { height: 360px; }
  .banner h1 { font-size: 28px; }
  .banner p { font-size: 14px; }
  .section { padding: 50px 0; }
  .section-title h2 { font-size: 26px; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .product-grid, .case-grid, .video-grid, .solution-grid { grid-template-columns: 1fr; }
  .service-grid, .advantages { grid-template-columns: 1fr; }
  .footer .footer-grid { grid-template-columns: 1fr 1fr; gap: 24px; }
  .client-logos { grid-template-columns: repeat(3, 1fr); }
  .form-row { grid-template-columns: 1fr; }
  .page-banner h1 { font-size: 26px; }
  .container { padding: 0 16px; }
}
