/* ============================================================
   weixin365.com 新媒体运营资讯展示网站 全局样式
   宁波邦逸科技有限公司
   ============================================================ */

:root {
  --primary: #2563eb;
  --primary-dark: #1d4ed8;
  --primary-light: #dbeafe;
  --accent: #06b6d4;
  --gradient: linear-gradient(135deg, #2563eb 0%, #06b6d4 100%);
  --dark: #0f172a;
  --dark-soft: #1e293b;
  --text: #334155;
  --text-light: #64748b;
  --border: #e2e8f0;
  --bg: #f8fafc;
  --card-bg: #ffffff;
  --radius: 12px;
  --shadow: 0 4px 20px rgba(15, 23, 42, 0.06);
  --shadow-lg: 0 12px 40px rgba(37, 99, 235, 0.12);
  --max-w: 1200px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Source Han Sans SC", "Noto Sans SC", sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--primary-dark);
}

img {
  max-width: 100%;
  display: block;
}

.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- 顶部导航 ---------- */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 20px;
  font-weight: 700;
  color: var(--dark);
}

.logo .logo-mark {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 18px;
  font-weight: 800;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.35);
}

.logo span b {
  color: var(--primary);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
  list-style: none;
}

.nav-links a {
  display: block;
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 15px;
  color: var(--text);
  font-weight: 500;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--primary);
  background: var(--primary-light);
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  color: var(--dark);
}

.nav-toggle svg {
  width: 26px;
  height: 26px;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background: var(--gradient);
  color: #fff;
  overflow: hidden;
}

.hero::before,
.hero::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
}

.hero::before {
  width: 480px;
  height: 480px;
  top: -160px;
  right: -120px;
}

.hero::after {
  width: 320px;
  height: 320px;
  bottom: -140px;
  left: -80px;
}

.hero-inner {
  position: relative;
  z-index: 1;
  padding: 96px 0 84px;
  text-align: center;
  max-width: 760px;
  margin: 0 auto;
}

.hero-tag {
  display: inline-block;
  padding: 6px 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.3);
  font-size: 13px;
  letter-spacing: 1px;
  margin-bottom: 24px;
}

.hero h1 {
  font-size: 44px;
  font-weight: 800;
  line-height: 1.3;
  margin-bottom: 20px;
  letter-spacing: 1px;
}

.hero p {
  font-size: 17px;
  opacity: 0.92;
  margin-bottom: 36px;
}

.hero-btns {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

.btn {
  display: inline-block;
  padding: 12px 28px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 600;
  transition: all 0.25s ease;
  border: 2px solid transparent;
  cursor: pointer;
}

.btn-white {
  background: #fff;
  color: var(--primary);
}

.btn-white:hover {
  background: var(--primary-light);
  color: var(--primary-dark);
  transform: translateY(-2px);
}

.btn-ghost {
  border-color: rgba(255, 255, 255, 0.7);
  color: #fff;
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.12);
  transform: translateY(-2px);
}

.btn-primary {
  background: var(--primary);
  color: #fff;
}

.btn-primary:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  color: #fff;
}

.btn-outline {
  border-color: var(--primary);
  color: var(--primary);
}

.btn-outline:hover {
  background: var(--primary-light);
  color: var(--primary-dark);
}

/* ---------- 通用区块 ---------- */
.section {
  padding: 72px 0;
}

.section-alt {
  background: #fff;
}

.section-head {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 48px;
}

.section-head .subtitle {
  color: var(--primary);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.section-head h2 {
  font-size: 32px;
  font-weight: 800;
  color: var(--dark);
  margin-bottom: 14px;
}

.section-head p {
  color: var(--text-light);
  font-size: 15px;
}

.section-head.mb32 {
  margin-bottom: 32px;
}

/* ---------- 卡片网格 ---------- */
.grid {
  display: grid;
  gap: 24px;
}

.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: var(--card-bg);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  padding: 28px;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.card-icon {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  background: var(--primary-light);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  margin-bottom: 18px;
}

.card h3 {
  font-size: 18px;
  color: var(--dark);
  margin-bottom: 10px;
}

.card p {
  font-size: 14px;
  color: var(--text-light);
}

/* ---------- 文章卡片 ---------- */
.article-card {
  display: flex;
  flex-direction: column;
  background: var(--card-bg);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.article-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.article-cover {
  height: 180px;
  background: var(--gradient);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.9);
  font-size: 42px;
}

.article-cover .cover-icon {
  width: 72px;
  height: 72px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.28);
  display: flex;
  align-items: center;
  justify-content: center;
}

.article-body {
  padding: 22px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.article-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 13px;
  color: var(--text-light);
  margin-bottom: 10px;
}

.article-tag {
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--primary-light);
  color: var(--primary);
  font-size: 12px;
  font-weight: 600;
}

.article-tag.orange {
  background: #fef3c7;
  color: #b45309;
}

.article-tag.green {
  background: #dcfce7;
  color: #15803d;
}

.article-tag.purple {
  background: #ede9fe;
  color: #6d28d9;
}

.article-body h3 {
  font-size: 17px;
  line-height: 1.5;
  color: var(--dark);
  margin-bottom: 10px;
}

.article-body h3 a {
  color: var(--dark);
}

.article-body h3 a:hover {
  color: var(--primary);
}

.article-body p {
  font-size: 14px;
  color: var(--text-light);
  flex: 1;
  margin-bottom: 16px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.article-link {
  font-size: 14px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.article-link::after {
  content: "→";
  transition: transform 0.2s ease;
}

.article-link:hover::after {
  transform: translateX(4px);
}

/* ---------- 特点区块 ---------- */
.features {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 56px;
}

.feature {
  text-align: center;
  padding: 32px 20px;
}

.feature .num {
  font-size: 40px;
  font-weight: 800;
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 8px;
}

.feature h4 {
  color: var(--dark);
  margin-bottom: 6px;
  font-size: 16px;
}

.feature p {
  font-size: 13px;
  color: var(--text-light);
}

/* ---------- 栏目入口 ---------- */
.cat-card {
  position: relative;
  padding: 36px 32px;
  color: #fff;
  border-radius: var(--radius);
  overflow: hidden;
}

.cat-card.blue { background: var(--gradient); }
.cat-card.dark { background: linear-gradient(135deg, #0f172a, #334155); }
.cat-card.cyan { background: linear-gradient(135deg, #0e7490, #06b6d4); }

.cat-card::after {
  content: "";
  position: absolute;
  right: -40px;
  top: -40px;
  width: 140px;
  height: 140px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
}

.cat-card h3 {
  font-size: 22px;
  margin-bottom: 10px;
  position: relative;
  z-index: 1;
}

.cat-card p {
  font-size: 14px;
  opacity: 0.9;
  margin-bottom: 20px;
  position: relative;
  z-index: 1;
}

.cat-card .more {
  color: #fff;
  font-weight: 600;
  font-size: 14px;
  position: relative;
  z-index: 1;
  border-bottom: 2px solid rgba(255, 255, 255, 0.5);
  padding-bottom: 2px;
}

/* ---------- 页内横幅 ---------- */
.page-hero {
  background: var(--gradient);
  color: #fff;
  padding: 72px 0 64px;
  position: relative;
  overflow: hidden;
}

.page-hero::after {
  content: "";
  position: absolute;
  right: -80px;
  top: -80px;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
}

.page-hero h1 {
  font-size: 36px;
  font-weight: 800;
  margin-bottom: 12px;
  position: relative;
  z-index: 1;
}

.page-hero p {
  font-size: 16px;
  opacity: 0.92;
  position: relative;
  z-index: 1;
}

/* ---------- 面包屑 ---------- */
.breadcrumb {
  padding: 20px 0 0;
  font-size: 14px;
  color: var(--text-light);
}

.breadcrumb a {
  color: var(--text-light);
}

.breadcrumb a:hover {
  color: var(--primary);
}

/* ---------- 文章列表 ---------- */
.news-list {
  display: grid;
  gap: 20px;
}

.news-item {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px 28px;
  display: flex;
  align-items: center;
  gap: 20px;
  box-shadow: var(--shadow);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.news-item:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}

.news-item .rank {
  flex-shrink: 0;
  width: 52px;
  height: 52px;
  border-radius: 12px;
  background: var(--primary-light);
  color: var(--primary);
  font-size: 20px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

.news-item .rank.r1 { background: #fef3c7; color: #b45309; }
.news-item .rank.r2 { background: #e2e8f0; color: #475569; }
.news-item .rank.r3 { background: #fed7aa; color: #c2410c; }

.news-item .info {
  flex: 1;
}

.news-item .info h3 {
  font-size: 16px;
  color: var(--dark);
  margin-bottom: 4px;
}

.news-item .info h3 a {
  color: var(--dark);
}

.news-item .info h3 a:hover {
  color: var(--primary);
}

.news-item .info p {
  font-size: 13px;
  color: var(--text-light);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.news-item .date {
  flex-shrink: 0;
  text-align: right;
  font-size: 13px;
  color: var(--text-light);
  white-space: nowrap;
}

/* ---------- 文章详情 ---------- */
.article-page {
  max-width: 820px;
  margin: 0 auto;
}

.article-header {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 36px 40px;
  margin-top: 24px;
}

.article-header h1 {
  font-size: 28px;
  color: var(--dark);
  line-height: 1.45;
  margin-bottom: 16px;
}

.article-header .meta {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 13px;
  color: var(--text-light);
}

.article-content {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 40px;
  margin-top: 24px;
  font-size: 15.5px;
}

.article-content h2 {
  font-size: 22px;
  color: var(--dark);
  margin: 32px 0 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
}

.article-content h3 {
  font-size: 18px;
  color: var(--dark);
  margin: 24px 0 10px;
}

.article-content p {
  margin-bottom: 16px;
}

.article-content ul,
.article-content ol {
  margin: 0 0 16px 22px;
}

.article-content li {
  margin-bottom: 8px;
}

.article-content blockquote {
  border-left: 4px solid var(--primary);
  background: var(--primary-light);
  padding: 14px 20px;
  border-radius: 0 8px 8px 0;
  margin: 20px 0;
  color: var(--dark-soft);
  font-size: 14.5px;
}

.article-content .article-note {
  background: #fffbeb;
  border: 1px solid #fde68a;
  border-radius: 10px;
  padding: 16px 20px;
  font-size: 14px;
  color: #92400e;
  margin: 20px 0;
}

/* ---------- 关于我们 ---------- */
.about-intro {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 48px;
  align-items: center;
}

.about-intro h2 {
  font-size: 26px;
  color: var(--dark);
  margin-bottom: 16px;
}

.about-intro p {
  margin-bottom: 16px;
  font-size: 15px;
}

.about-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
}

.about-card h3 {
  font-size: 17px;
  color: var(--dark);
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
}

.about-card ul {
  list-style: none;
}

.about-card ul li {
  padding: 8px 0;
  font-size: 14px;
  display: flex;
  gap: 10px;
  align-items: flex-start;
}

.about-card ul li::before {
  content: "✓";
  color: var(--primary);
  font-weight: 700;
}

.team-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 48px;
}

.team-member {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px;
  text-align: center;
  box-shadow: var(--shadow);
}

.team-avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: var(--gradient);
  color: #fff;
  font-size: 26px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
}

.team-member h4 {
  color: var(--dark);
  font-size: 16px;
  margin-bottom: 4px;
}

.team-member p {
  font-size: 13px;
  color: var(--text-light);
}

/* ---------- 联系我们 ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}

.contact-info .contact-item {
  display: flex;
  gap: 18px;
  margin-bottom: 26px;
  align-items: flex-start;
}

.contact-icon {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--primary-light);
  color: var(--primary);
  font-size: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.contact-item h4 {
  color: var(--dark);
  font-size: 16px;
  margin-bottom: 4px;
}

.contact-item p {
  font-size: 14px;
  color: var(--text-light);
}

.contact-item a {
  font-size: 14px;
  color: var(--primary);
}

/* ---------- 隐私政策 / 用户协议 ---------- */
.doc-content {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 44px 48px;
  max-width: 820px;
  margin: 0 auto;
}

.doc-content h2 {
  font-size: 20px;
  color: var(--dark);
  margin: 30px 0 12px;
}

.doc-content h2:first-child {
  margin-top: 0;
}

.doc-content p {
  font-size: 14.5px;
  margin-bottom: 14px;
  color: var(--text);
}

.doc-content .doc-date {
  text-align: right;
  color: var(--text-light);
  font-size: 14px;
  margin-top: 24px;
}

/* ---------- CTA ---------- */
.cta {
  background: var(--gradient);
  border-radius: 20px;
  padding: 56px 48px;
  text-align: center;
  color: #fff;
  position: relative;
  overflow: hidden;
}

.cta::after {
  content: "";
  position: absolute;
  right: -60px;
  bottom: -60px;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
}

.cta h2 {
  font-size: 28px;
  margin-bottom: 14px;
  position: relative;
  z-index: 1;
}

.cta p {
  font-size: 15px;
  opacity: 0.92;
  margin-bottom: 28px;
  position: relative;
  z-index: 1;
}

/* ---------- 页脚 ---------- */
.footer {
  background: var(--dark);
  color: #94a3b8;
  padding: 56px 0 0;
  margin-top: 72px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 40px;
  padding-bottom: 40px;
}

.footer h4 {
  color: #fff;
  font-size: 16px;
  margin-bottom: 16px;
}

.footer .footer-logo {
  color: #fff;
  font-size: 20px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}

.footer .footer-logo .logo-mark {
  background: var(--gradient);
  width: 34px;
  height: 34px;
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
}

.footer p {
  font-size: 13.5px;
  line-height: 1.8;
}

.footer ul {
  list-style: none;
}

.footer ul li {
  margin-bottom: 10px;
}

.footer ul a {
  color: #94a3b8;
  font-size: 14px;
}

.footer ul a:hover {
  color: #fff;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 18px 0;
  text-align: center;
  font-size: 13px;
}

.footer-bottom a {
  color: #94a3b8;
}

/* ---------- 回到顶部 ---------- */
.back-top {
  position: fixed;
  right: 28px;
  bottom: 28px;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--primary);
  color: #fff;
  border: none;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(37, 99, 235, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: all 0.3s ease;
  z-index: 90;
}

.back-top.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-top svg {
  width: 20px;
  height: 20px;
}

/* ---------- 空状态 / 加载 ---------- */
.empty {
  text-align: center;
  padding: 60px 0;
  color: var(--text-light);
}

.loading {
  text-align: center;
  padding: 40px 0;
  color: var(--text-light);
}

/* ---------- 响应式 ---------- */
@media (max-width: 992px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .features { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .about-intro { grid-template-columns: 1fr; }
  .team-list { grid-template-columns: repeat(2, 1fr); }
  .hero h1 { font-size: 36px; }
}

@media (max-width: 768px) {
  .nav-toggle { display: block; }

  .nav-links {
    position: absolute;
    top: 68px;
    left: 0;
    right: 0;
    background: #fff;
    flex-direction: column;
    align-items: stretch;
    padding: 12px 16px 20px;
    gap: 4px;
    border-bottom: 1px solid var(--border);
    box-shadow: 0 12px 24px rgba(15, 23, 42, 0.08);
    display: none;
  }

  .nav-links.open { display: flex; }

  .nav-links a {
    padding: 12px 16px;
  }

  .hero-inner { padding: 64px 0 56px; }
  .hero h1 { font-size: 30px; }
  .hero p { font-size: 15px; }

  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .features { grid-template-columns: 1fr 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .news-item { flex-direction: column; align-items: flex-start; gap: 10px; }
  .news-item .date { text-align: left; }
  .section { padding: 52px 0; }
  .article-content { padding: 28px 24px; }
  .article-header { padding: 28px 24px; }
  .doc-content { padding: 32px 24px; }
  .cta { padding: 40px 28px; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
}
