/* ============================================================
   style.css – 黑料网 (fenglingnet.com) 完整样式表
   UI风格：渐变Banner、圆角卡片、毛玻璃效果、响应式布局、
           暗色模式支持、滚动动画、hover动画
   ============================================================ */

/* ---------- 全局重置与基础 ---------- */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: 'Segoe UI', 'PingFang SC', Roboto, 'Helvetica Neue', sans-serif;
  line-height: 1.6;
  background: #f5f7fa;
  color: #1e2a3a;
  transition: background 0.3s, color 0.3s;
  overflow-x: hidden;
}

/* ---------- 暗色模式 ---------- */
@media (prefers-color-scheme: dark) {
  body {
    background: #0f172a;
    color: #e2e8f0;
  }
  header, footer, .card, section, nav {
    background: rgba(15, 23, 42, 0.85) !important;
    backdrop-filter: blur(12px) !important;
    border-color: #334155 !important;
  }
  a {
    color: #93c5fd;
  }
  a:hover {
    color: #bfdbfe;
  }
  input, button {
    background: #1e293b;
    color: #f1f5f9;
    border-color: #475569;
  }
  .hero {
    background: linear-gradient(135deg, #0f172a 0%, #1e3a5f 100%) !important;
  }
}

/* ---------- 容器与布局 ---------- */
main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem 3rem;
}

section {
  background: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: 24px;
  padding: 2.5rem 2rem;
  margin: 2rem 0;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  opacity: 0;
  transform: translateY(30px);
  animation: fadeInUp 0.8s forwards;
}

section:hover {
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.08);
  transform: translateY(-4px);
}

@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* 逐段延迟动画 */
#hero { animation-delay: 0.1s; }
#brand { animation-delay: 0.2s; }
#products { animation-delay: 0.3s; }
#solutions { animation-delay: 0.4s; }
#cases { animation-delay: 0.5s; }
#news { animation-delay: 0.6s; }
#faq { animation-delay: 0.7s; }
#howto { animation-delay: 0.8s; }
#contact { animation-delay: 0.9s; }
#sitemap { animation-delay: 1.0s; }
#links { animation-delay: 1.1s; }

/* ---------- 首屏Banner (Hero) ---------- */
#hero {
  background: linear-gradient(135deg, #1a3a5c 0%, #2b5876 40%, #4e8ca3 100%);
  color: #fff;
  padding: 4rem 2.5rem;
  border-radius: 32px;
  text-align: center;
  position: relative;
  overflow: hidden;
  border: none;
  box-shadow: 0 20px 60px rgba(26, 58, 92, 0.3);
}

#hero::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle at 30% 40%, rgba(255,255,255,0.05) 0%, transparent 60%);
  pointer-events: none;
}

#hero h1 {
  font-size: 2.8rem;
  font-weight: 700;
  margin-bottom: 1.2rem;
  letter-spacing: 1px;
  text-shadow: 0 2px 20px rgba(0,0,0,0.2);
}

#hero p {
  font-size: 1.2rem;
  max-width: 800px;
  margin: 0.8rem auto;
  opacity: 0.9;
  line-height: 1.7;
}

/* ---------- 标题 ---------- */
h1, h2, h3 {
  font-weight: 600;
  letter-spacing: 0.3px;
}

h2 {
  font-size: 2rem;
  margin-bottom: 1.5rem;
  position: relative;
  display: inline-block;
}

h2::after {
  content: '';
  display: block;
  width: 60px;
  height: 4px;
  background: linear-gradient(90deg, #1a3a5c, #4e8ca3);
  border-radius: 4px;
  margin-top: 8px;
}

h3 {
  font-size: 1.4rem;
  margin: 1.5rem 0 0.8rem;
  color: inherit;
}

/* ---------- 卡片通用 (圆角毛玻璃) ---------- */
.card, article, li, .faq-item {
  background: rgba(255, 255, 255, 0.5);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-radius: 20px;
  padding: 1.2rem 1.5rem;
  margin: 1rem 0;
  border: 1px solid rgba(255, 255, 255, 0.3);
  transition: all 0.3s ease;
}

.card:hover, article:hover, li:hover {
  background: rgba(255, 255, 255, 0.75);
  transform: translateY(-4px) scale(1.01);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
}

/* ---------- 导航栏 ---------- */
header {
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid rgba(0,0,0,0.05);
  padding: 0.6rem 1.5rem;
  box-shadow: 0 2px 20px rgba(0,0,0,0.03);
}

nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  max-width: 1200px;
  margin: 0 auto;
}

nav ul {
  display: flex;
  list-style: none;
  gap: 1.2rem;
  flex-wrap: wrap;
}

nav ul li a {
  text-decoration: none;
  color: #1e2a3a;
  font-weight: 500;
  padding: 0.4rem 0.8rem;
  border-radius: 40px;
  transition: background 0.2s, color 0.2s;
}

nav ul li a:hover {
  background: rgba(26, 58, 92, 0.08);
  color: #1a3a5c;
}

/* 搜索框 */
nav form {
  display: flex;
  gap: 0.3rem;
}

nav input[type="search"] {
  padding: 0.5rem 1rem;
  border-radius: 40px;
  border: 1px solid #d1d5db;
  background: rgba(255,255,255,0.6);
  backdrop-filter: blur(4px);
  font-size: 0.95rem;
  min-width: 180px;
  transition: border 0.2s;
}

nav input[type="search"]:focus {
  outline: none;
  border-color: #1a3a5c;
}

nav button[type="submit"] {
  padding: 0.5rem 1.2rem;
  border-radius: 40px;
  border: none;
  background: #1a3a5c;
  color: #fff;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.2s;
}

nav button[type="submit"]:hover {
  background: #2b5876;
}

/* ---------- 面包屑 ---------- */
nav[aria-label="面包屑导航"] {
  background: none;
  backdrop-filter: none;
  padding: 0.5rem 0;
  margin-top: -0.5rem;
}

nav[aria-label="面包屑导航"] ol {
  display: flex;
  list-style: none;
  gap: 0.5rem;
  font-size: 0.9rem;
  color: #64748b;
}

nav[aria-label="面包屑导航"] a {
  color: #1a3a5c;
  text-decoration: none;
}

nav[aria-label="面包屑导航"] a:hover {
  text-decoration: underline;
}

/* ---------- 列表与文章 ---------- */
ul, ol {
  padding-left: 1.2rem;
}

li {
  margin: 0.6rem 0;
  list-style-position: inside;
}

article {
  padding: 1.2rem 1.5rem;
}

article h4 {
  font-size: 1.2rem;
  margin-bottom: 0.3rem;
}

article time {
  display: block;
  font-size: 0.85rem;
  color: #64748b;
  margin-bottom: 0.4rem;
}

article a {
  display: inline-block;
  margin-top: 0.5rem;
  font-weight: 500;
  color: #1a3a5c;
  text-decoration: none;
  border-bottom: 2px solid transparent;
  transition: border-color 0.2s;
}

article a:hover {
  border-bottom-color: #1a3a5c;
}

/* ---------- FAQ 列表 ---------- */
#faq ol {
  list-style: none;
  padding: 0;
}

#faq ol li {
  background: rgba(255,255,255,0.4);
  backdrop-filter: blur(6px);
  border-radius: 16px;
  padding: 1.2rem 1.5rem;
  margin: 1rem 0;
  border: 1px solid rgba(255,255,255,0.2);
  transition: all 0.3s;
}

#faq ol li:hover {
  background: rgba(255,255,255,0.7);
  transform: translateX(6px);
}

#faq ol li h3 {
  font-size: 1.2rem;
  margin-bottom: 0.3rem;
}

/* ---------- 联系我们 ---------- */
#contact p {
  margin: 0.4rem 0;
  font-size: 1.05rem;
}

/* ---------- 网站地图 & 友情链接 ---------- */
#sitemap ul, #links ul {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 2rem;
  list-style: none;
  padding: 0;
}

#sitemap ul li a, #links ul li a {
  text-decoration: none;
  color: #1a3a5c;
  font-weight: 500;
  padding: 0.3rem 0.6rem;
  border-radius: 30px;
  transition: background 0.2s;
}

#sitemap ul li a:hover, #links ul li a:hover {
  background: rgba(26,58,92,0.08);
}

/* ---------- 页脚 ---------- */
footer {
  background: rgba(255, 255, 255, 0.5);
  backdrop-filter: blur(12px);
  border-radius: 24px;
  padding: 2rem 2rem;
  margin: 2rem 0 1rem;
  text-align: center;
  border: 1px solid rgba(255,255,255,0.2);
  font-size: 0.95rem;
  line-height: 1.8;
}

footer a {
  color: #1a3a5c;
  text-decoration: underline;
}

footer a:hover {
  color: #2b5876;
}

/* ---------- 按钮通用 ---------- */
button, .btn {
  background: #1a3a5c;
  color: #fff;
  border: none;
  padding: 0.6rem 1.6rem;
  border-radius: 40px;
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
  display: inline-block;
}

button:hover, .btn:hover {
  background: #2b5876;
  transform: scale(1.02);
  box-shadow: 0 6px 20px rgba(26,58,92,0.2);
}

/* ---------- 响应式布局 (PC + 手机) ---------- */
@media (max-width: 1024px) {
  main {
    padding: 0 1rem 2rem;
  }
  section {
    padding: 2rem 1.5rem;
    margin: 1.5rem 0;
  }
  #hero h1 {
    font-size: 2.2rem;
  }
  #hero p {
    font-size: 1.05rem;
  }
  h2 {
    font-size: 1.7rem;
  }
}

@media (max-width: 768px) {
  nav {
    flex-direction: column;
    align-items: stretch;
    gap: 0.8rem;
  }
  nav ul {
    justify-content: center;
    gap: 0.6rem;
  }
  nav ul li a {
    font-size: 0.9rem;
    padding: 0.3rem 0.6rem;
  }
  nav form {
    justify-content: center;
    width: 100%;
  }
  nav input[type="search"] {
    min-width: 140px;
    flex: 1;
  }
  #hero {
    padding: 3rem 1.5rem;
  }
  #hero h1 {
    font-size: 1.8rem;
  }
  #hero p {
    font-size: 1rem;
  }
  h2 {
    font-size: 1.5rem;
  }
  h3 {
    font-size: 1.2rem;
  }
  section {
    padding: 1.5rem 1rem;
    border-radius: 20px;
  }
  article, li, .card {
    padding: 1rem 1.2rem;
  }
  #sitemap ul, #links ul {
    flex-direction: column;
    gap: 0.5rem;
  }
  footer {
    padding: 1.5rem 1rem;
  }
}

@media (max-width: 480px) {
  html {
    font-size: 15px;
  }
  #hero h1 {
    font-size: 1.5rem;
  }
  #hero p {
    font-size: 0.95rem;
  }
  nav ul {
    gap: 0.3rem;
  }
  nav ul li a {
    font-size: 0.8rem;
    padding: 0.2rem 0.5rem;
  }
  nav input[type="search"] {
    min-width: 100px;
    font-size: 0.85rem;
  }
  nav button[type="submit"] {
    padding: 0.4rem 0.8rem;
    font-size: 0.85rem;
  }
  section {
    padding: 1.2rem 0.8rem;
    margin: 1rem 0;
  }
  h2 {
    font-size: 1.3rem;
  }
  h3 {
    font-size: 1.1rem;
  }
}

/* ---------- 其他细节 ---------- */
/* 链接平滑 */
a {
  transition: color 0.2s;
}

/* 图片自适应 (如果有) */
img {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
}

/* SVG 图标 */
svg {
  vertical-align: middle;
}

/* 滚动条美化 (可选) */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: #e2e8f0;
  border-radius: 10px;
}
::-webkit-scrollbar-thumb {
  background: #94a3b8;
  border-radius: 10px;
}
::-webkit-scrollbar-thumb:hover {
  background: #64748b;
}