/* ============ 图灵（重庆）电子有限公司 官网样式 ============ */
:root {
  --primary: #1e6fff;
  --primary-dark: #0b3ea8;
  --accent: #00d4ff;
  --bg-dark: #0a1024;
  --bg-dark-2: #101a36;
  --bg-light: #f5f8ff;
  --text-dark: #1a2233;
  --text-gray: #5a6478;
  --text-light: #eaf1ff;
  --white: #ffffff;
  --radius: 14px;
  --shadow: 0 10px 40px rgba(20, 50, 120, 0.12);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: "PingFang SC", "Microsoft YaHei", "Segoe UI", sans-serif;
  color: var(--text-dark);
  line-height: 1.7;
  background: var(--white);
}

img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

.container { width: min(1180px, 92%); margin: 0 auto; }

/* ---------- 顶部导航 ---------- */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10, 16, 36, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text-light);
  font-weight: 700;
  font-size: 19px;
  letter-spacing: 1px;
}
.logo img { height: 40px; width: auto; display: block; }
.logo small { font-size: 11px; font-weight: 400; opacity: 0.65; display: block; letter-spacing: 2px; }
.nav-links { display: flex; gap: 6px; }
.nav-links a {
  color: rgba(234, 241, 255, 0.78);
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 15px;
  transition: 0.2s;
}
.nav-links a:hover, .nav-links a.active {
  color: #fff;
  background: rgba(30, 111, 255, 0.22);
}
.nav-toggle { display: none; background: none; border: none; color: #fff; font-size: 26px; cursor: pointer; }

/* ---------- Hero ---------- */
.hero {
  background:
    radial-gradient(ellipse 60% 55% at 75% 20%, rgba(0, 212, 255, 0.18), transparent),
    radial-gradient(ellipse 50% 60% at 15% 80%, rgba(30, 111, 255, 0.25), transparent),
    linear-gradient(160deg, var(--bg-dark) 0%, var(--bg-dark-2) 100%);
  color: var(--text-light);
  padding: 110px 0 130px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.035) 1px, transparent 1px);
  background-size: 44px 44px;
  pointer-events: none;
}
.hero .container { position: relative; z-index: 1; }
.hero-logo { height: 96px; width: auto; margin: 0 auto 30px; filter: drop-shadow(0 6px 24px rgba(0, 212, 255, 0.35)); }
.hero-tag {
  display: inline-block;
  padding: 6px 18px;
  border: 1px solid rgba(0, 212, 255, 0.45);
  border-radius: 999px;
  color: var(--accent);
  font-size: 14px;
  letter-spacing: 3px;
  margin-bottom: 26px;
}
.hero h1 {
  font-size: clamp(34px, 5.5vw, 58px);
  line-height: 1.25;
  margin-bottom: 22px;
}
.hero h1 span {
  background: linear-gradient(90deg, var(--accent), var(--primary));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero p {
  max-width: 640px;
  margin: 0 auto 40px;
  font-size: 18px;
  color: rgba(234, 241, 255, 0.75);
}
.btn {
  display: inline-block;
  padding: 13px 34px;
  border-radius: 10px;
  font-size: 16px;
  font-weight: 600;
  transition: 0.25s;
  cursor: pointer;
  border: none;
}
.btn-primary {
  background: linear-gradient(135deg, var(--primary), #3d8bff);
  color: #fff;
  box-shadow: 0 8px 24px rgba(30, 111, 255, 0.4);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 32px rgba(30, 111, 255, 0.55); }
.btn-ghost {
  background: transparent;
  color: var(--text-light);
  border: 1px solid rgba(255, 255, 255, 0.35);
  margin-left: 14px;
}
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }

/* ---------- 通用区块 ---------- */
.section { padding: 90px 0; }
.section.alt { background: var(--bg-light); }
.section-head { text-align: center; margin-bottom: 56px; }
.section-head .kicker {
  color: var(--primary);
  font-size: 14px;
  letter-spacing: 4px;
  font-weight: 600;
}
.section-head h2 { font-size: clamp(26px, 3.6vw, 38px); margin-top: 10px; }
.section-head p { color: var(--text-gray); max-width: 620px; margin: 14px auto 0; }

/* 卡片网格 */
.grid { display: grid; gap: 26px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }

.card {
  background: var(--white);
  border: 1px solid #e8eefc;
  border-radius: var(--radius);
  padding: 34px 28px;
  transition: 0.25s;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: rgba(30, 111, 255, 0.35); }
.card .icon {
  width: 54px; height: 54px;
  border-radius: 13px;
  background: linear-gradient(135deg, rgba(30,111,255,0.12), rgba(0,212,255,0.12));
  display: flex; align-items: center; justify-content: center;
  font-size: 26px;
  margin-bottom: 20px;
}
.card h3 { font-size: 19px; margin-bottom: 10px; }
.card p { color: var(--text-gray); font-size: 15px; }

/* 数据统计 */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; text-align: center; }
.stat-num { font-size: clamp(30px, 4vw, 46px); font-weight: 800; color: var(--primary); }
.stat-label { color: var(--text-gray); font-size: 15px; margin-top: 4px; }

/* 深色区块 */
.section-dark {
  background: linear-gradient(160deg, var(--bg-dark), var(--bg-dark-2));
  color: var(--text-light);
}
.section-dark .section-head h2 { color: #fff; }
.section-dark .section-head p { color: rgba(234,241,255,0.65); }
.section-dark .card {
  background: rgba(255,255,255,0.05);
  border-color: rgba(255,255,255,0.1);
}
.section-dark .card:hover { border-color: rgba(0,212,255,0.45); }
.section-dark .card p { color: rgba(234,241,255,0.7); }

/* 新闻列表 */
.news-item {
  display: flex;
  gap: 24px;
  padding: 26px;
  background: var(--white);
  border: 1px solid #e8eefc;
  border-radius: var(--radius);
  transition: 0.25s;
  margin-bottom: 18px;
}
.news-item:hover { box-shadow: var(--shadow); border-color: rgba(30,111,255,0.35); }
.news-date {
  flex-shrink: 0;
  width: 76px;
  text-align: center;
  background: var(--bg-light);
  border-radius: 10px;
  padding: 12px 6px;
  align-self: flex-start;
}
.news-date .d { font-size: 26px; font-weight: 800; color: var(--primary); line-height: 1.1; }
.news-date .m { font-size: 12px; color: var(--text-gray); }
.news-item h3 { font-size: 18px; margin-bottom: 6px; }
.news-item .badge {
  display: inline-block;
  font-size: 12px;
  padding: 2px 10px;
  border-radius: 999px;
  background: rgba(30,111,255,0.1);
  color: var(--primary);
  margin-bottom: 8px;
}
.news-item p { color: var(--text-gray); font-size: 14.5px; }

/* 页脚 */
footer {
  background: var(--bg-dark);
  color: rgba(234,241,255,0.65);
  padding: 60px 0 30px;
  font-size: 14.5px;
}
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1.4fr; gap: 40px; margin-bottom: 44px; }
.footer-grid h4 { color: #fff; font-size: 16px; margin-bottom: 16px; }
.footer-grid li { margin-bottom: 10px; }
.footer-grid a:hover { color: var(--accent); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 24px;
  text-align: center;
  font-size: 13px;
  color: rgba(234,241,255,0.4);
}
.footer-bottom a { color: rgba(234,241,255,0.65); transition: 0.2s; }
.footer-bottom a:hover { color: var(--accent); }
.footer-bottom .sep { margin: 0 8px; opacity: 0.4; }

/* 联系页 */
.contact-card {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  background: var(--white);
  border: 1px solid #e8eefc;
  border-radius: var(--radius);
  padding: 30px;
}
.contact-card .icon {
  width: 50px; height: 50px; flex-shrink: 0;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  display: flex; align-items: center; justify-content: center;
  font-size: 22px;
  color: #fff;
}
.contact-card h3 { font-size: 17px; margin-bottom: 4px; }
.contact-card p { color: var(--text-gray); font-size: 15px; }

/* 时间线（关于我们） */
.timeline { position: relative; padding-left: 30px; }
.timeline::before {
  content: "";
  position: absolute;
  left: 8px; top: 6px; bottom: 6px;
  width: 2px;
  background: linear-gradient(var(--primary), var(--accent));
}
.timeline-item { position: relative; padding-bottom: 34px; }
.timeline-item::before {
  content: "";
  position: absolute;
  left: -28px; top: 8px;
  width: 12px; height: 12px;
  border-radius: 50%;
  background: var(--primary);
  box-shadow: 0 0 0 4px rgba(30,111,255,0.18);
}
.timeline-item .year { font-weight: 800; color: var(--primary); font-size: 17px; }
.timeline-item p { color: var(--text-gray); font-size: 15px; }

/* 关于我们 Hero（内页） */
.page-hero {
  background:
    radial-gradient(ellipse 55% 60% at 80% 30%, rgba(0,212,255,0.16), transparent),
    linear-gradient(160deg, var(--bg-dark) 0%, var(--bg-dark-2) 100%);
  color: var(--text-light);
  padding: 80px 0;
  text-align: center;
}
.page-hero h1 { font-size: clamp(30px, 4.5vw, 46px); }
.page-hero p { color: rgba(234,241,255,0.7); margin-top: 14px; font-size: 17px; }

/* 响应式 */
@media (max-width: 900px) {
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .stats { grid-template-columns: repeat(2, 1fr); row-gap: 34px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .nav-toggle { display: block; }
  .nav-links {
    display: none;
    position: absolute;
    top: 68px; left: 0; right: 0;
    flex-direction: column;
    background: var(--bg-dark-2);
    padding: 14px 5%;
    gap: 4px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
  }
  .nav-links.open { display: flex; }
}
@media (max-width: 600px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .news-item { flex-direction: column; }
  .btn-ghost { margin-left: 0; margin-top: 12px; }
}
