/* =============================================
   weixin360.top 登哥创业 - 板岩玫瑰风格
   粤ICP备2021053475号-3
   Slate & Rose Theme
   ============================================= */

/* ----- CSS Variables ----- */
:root {
  --primary: #0f172a;
  --primary-light: #1e293b;
  --primary-lighter: #334155;
  --accent: #f43f5e;
  --accent-light: #fb7185;
  --accent-dark: #e11d48;
  --bg: #f8fafc;
  --bg-card: #ffffff;
  --bg-header: rgba(15, 23, 42, 0.95);
  --text: #1e293b;
  --text-light: #64748b;
  --text-muted: #94a3b8;
  --border: #e2e8f0;
  --shadow: 0 6px 24px rgba(15, 23, 42, 0.08);
  --shadow-hover: 0 12px 40px rgba(15, 23, 42, 0.15);
  --radius: 12px;
  --radius-sm: 6px;
  --radius-lg: 16px;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --font: system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', sans-serif;
  --max-width: 1100px;
  --header-height: 66px;
}

/* ----- Reset & Base ----- */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

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

body {
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.7;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

a {
  text-decoration: none;
  color: inherit;
  transition: color var(--transition);
}

img, svg {
  max-width: 100%;
  display: block;
}

ul { list-style: none; }

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 28px;
}

/* ----- Header ----- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg-header);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  height: var(--header-height);
}

.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.logo {
  font-size: 1.2rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: 1px;
  display: flex;
  align-items: baseline;
  gap: 6px;
}

.logo .logo-accent {
  color: var(--accent);
}

.logo .logo-sub {
  font-size: 0.6rem;
  font-weight: 400;
  color: var(--text-muted);
  letter-spacing: 0.5px;
  margin-left: 2px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-links a {
  padding: 8px 16px;
  font-size: 0.85rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.7);
  border-radius: 8px;
  transition: all var(--transition);
  position: relative;
}

.nav-links a:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.06);
}

.nav-links a.active {
  color: #fff;
  background: var(--accent);
  box-shadow: 0 4px 12px rgba(244, 63, 94, 0.35);
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  width: 36px;
  height: 36px;
  padding: 6px;
  border-radius: 8px;
  color: #fff;
  transition: background var(--transition);
}

.menu-toggle:hover {
  background: rgba(255, 255, 255, 0.06);
}

.menu-toggle svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
}

/* ----- Hero Section ----- */
.hero {
  padding: 80px 28px 0;
  position: relative;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 520px;
  background: linear-gradient(160deg, #0f172a 0%, #1e1b4b 40%, #0f172a 100%);
  border-radius: 0 0 40px 40px;
  z-index: 0;
}

.hero-bg::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(ellipse at 70% 30%, rgba(244, 63, 94, 0.10) 0%, transparent 60%),
              radial-gradient(ellipse at 30% 70%, rgba(99, 102, 241, 0.08) 0%, transparent 60%);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 1;
  max-width: 700px;
  margin: 0 auto;
  text-align: center;
  padding-bottom: 80px;
}

.hero-emoji {
  font-size: 3.5rem;
  display: block;
  margin-bottom: 20px;
  line-height: 1;
}

.hero h1 {
  font-size: 2.4rem;
  font-weight: 800;
  color: #fff;
  line-height: 1.2;
  margin-bottom: 16px;
}

.hero h1 span {
  color: var(--accent);
  background: linear-gradient(135deg, var(--accent), var(--accent-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero p {
  font-size: 1.05rem;
  color: rgba(255, 255, 255, 0.65);
  line-height: 1.7;
  max-width: 540px;
  margin: 0 auto;
}

.hero-stats {
  display: flex;
  justify-content: center;
  gap: 32px;
  margin-top: 32px;
}

.hero-stat {
  text-align: center;
}

.hero-stat .num {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--accent);
  display: block;
  line-height: 1;
}

.hero-stat .label {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.5);
  margin-top: 4px;
}

/* ----- Articles Section ----- */
.articles-section {
  position: relative;
  z-index: 1;
  padding: 0 0 80px;
  margin-top: -20px;
}

.articles-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.article-card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: all var(--transition);
  border: 1px solid var(--border);
  position: relative;
}

.article-card:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-6px);
}

.article-card .card-image {
  width: 100%;
  height: 200px;
  overflow: hidden;
  background: var(--primary);
}

.article-card .card-image img,
.article-card .card-image svg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.article-card:hover .card-image img,
.article-card:hover .card-image svg {
  transform: scale(1.05);
}

.article-card .card-body {
  padding: 24px 24px 28px;
  position: relative;
}

.article-card .card-body::before {
  content: '';
  position: absolute;
  top: 0;
  left: 24px;
  right: 24px;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--accent-light));
  border-radius: 2px;
  opacity: 0.6;
}

.article-card .card-meta {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.article-card .card-meta .tag {
  background: rgba(244, 63, 94, 0.08);
  color: var(--accent-dark);
  padding: 2px 10px;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 600;
}

.article-card h2 {
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1.4;
  margin-bottom: 10px;
  color: var(--primary);
}

.article-card h2 a {
  color: inherit;
}

.article-card h2 a:hover {
  color: var(--accent);
}

.article-card .card-excerpt {
  font-size: 0.9rem;
  color: var(--text-light);
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.article-card .read-more {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: 14px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--accent);
  transition: gap var(--transition);
}

.article-card .read-more:hover {
  gap: 8px;
}

/* ----- Article Page ----- */
.article-header {
  padding: 60px 0 40px;
  text-align: center;
  background: linear-gradient(180deg, var(--primary) 0%, var(--primary-light) 100%);
  color: #fff;
}

.article-header .container {
  max-width: 720px;
}

.article-header .back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: 20px;
  transition: color var(--transition);
}

.article-header .back-link:hover {
  color: var(--accent-light);
}

.article-header h1 {
  font-size: 1.8rem;
  font-weight: 800;
  color: #fff;
  line-height: 1.3;
  margin-bottom: 12px;
}

.article-header .article-meta {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

.article-header .article-meta .tag {
  background: rgba(244, 63, 94, 0.2);
  color: var(--accent-light);
  padding: 2px 12px;
  border-radius: 4px;
  font-size: 0.78rem;
  font-weight: 600;
}

.article-cover {
  max-width: 720px;
  margin: 0 auto 40px;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.article-cover img,
.article-cover svg {
  width: 100%;
  height: auto;
  display: block;
}

.article-body {
  max-width: 680px;
  margin: 0 auto 60px;
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: 40px 44px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}

.article-body h2 {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--primary);
  margin: 40px 0 14px;
  padding-left: 14px;
  border-left: 4px solid var(--accent);
}

.article-body h3 {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--primary-lighter);
  margin: 24px 0 10px;
}

.article-body p {
  margin-bottom: 16px;
  line-height: 1.85;
  color: var(--text);
}

.article-body p:first-of-type::first-letter {
  font-size: 3.2em;
  font-weight: 800;
  float: left;
  line-height: 0.85;
  margin-right: 8px;
  color: var(--accent);
}

.article-body ul,
.article-body ol {
  margin: 12px 0 18px;
  padding-left: 24px;
}

.article-body li {
  margin-bottom: 8px;
  line-height: 1.7;
  color: var(--text);
}

.article-body ul li {
  list-style: disc;
}

.article-body ul li::marker {
  color: var(--accent);
}

.article-body ol li {
  list-style: decimal;
}

.article-body blockquote {
  margin: 20px 0;
  padding: 16px 20px;
  border-left: 4px solid var(--accent);
  background: rgba(244, 63, 94, 0.04);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  color: var(--text-light);
  font-style: italic;
}

.article-body .inline-image {
  margin: 28px 0;
  border-radius: var(--radius-sm);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.article-body .inline-image svg {
  width: 100%;
  height: auto;
  display: block;
}

.article-body .highlight-box {
  background: rgba(244, 63, 94, 0.06);
  border: 1px solid rgba(244, 63, 94, 0.15);
  border-radius: var(--radius-sm);
  padding: 16px 20px;
  margin: 20px 0;
}

.article-body .highlight-box strong {
  color: var(--accent-dark);
}

.article-nav {
  max-width: 680px;
  margin: -30px auto 60px;
  display: flex;
  justify-content: space-between;
  gap: 20px;
}

.article-nav a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  color: var(--text-light);
  transition: all var(--transition);
  padding: 8px 16px;
  border-radius: 8px;
  background: var(--bg-card);
  border: 1px solid var(--border);
}

.article-nav a:hover {
  color: var(--accent);
  border-color: var(--accent);
}

/* ----- About Page ----- */
.about-page {
  padding: 60px 0 80px;
}

.about-header {
  text-align: center;
  margin-bottom: 48px;
}

.about-avatar {
  width: 120px;
  height: 120px;
  border-radius: 30px;
  background: linear-gradient(135deg, var(--primary), #1e1b4b);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  margin: 0 auto 20px;
  border: 4px solid var(--bg-card);
  box-shadow: 0 8px 30px rgba(15, 23, 42, 0.15);
}

.about-header h1 {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 8px;
}

.about-header p {
  color: var(--text-light);
  max-width: 500px;
  margin: 0 auto;
}

.about-section {
  max-width: 680px;
  margin: 0 auto 32px;
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: 32px 36px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}

.about-section h2 {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.about-section p {
  color: var(--text-light);
  line-height: 1.8;
  margin-bottom: 12px;
}

.about-section p:last-child {
  margin-bottom: 0;
}

.about-timeline {
  max-width: 680px;
  margin: 0 auto;
}

.about-timeline-item {
  display: flex;
  gap: 16px;
  margin-bottom: 20px;
  background: var(--bg-card);
  border-radius: var(--radius);
  padding: 20px 24px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  align-items: flex-start;
}

.about-timeline-item .tl-icon {
  width: 44px;
  height: 44px;
  min-width: 44px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--primary), #1e1b4b);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
}

.about-timeline-item h3 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 4px;
}

.about-timeline-item p {
  font-size: 0.88rem;
  color: var(--text-light);
  line-height: 1.6;
}

/* ----- Footer ----- */
.site-footer {
  background: var(--primary);
  color: rgba(255, 255, 255, 0.7);
  padding: 40px 0 32px;
  text-align: center;
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 28px;
}

.footer-brand {
  font-size: 1.1rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 4px;
}

.footer-brand .logo-accent {
  color: var(--accent);
}

.footer-icp {
  font-size: 0.8rem;
  margin-bottom: 12px;
  opacity: 0.7;
}

.footer-icp a {
  color: inherit;
}

.footer-icp a:hover {
  color: var(--accent-light);
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

.footer-links a {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.6);
  transition: color var(--transition);
}

.footer-links a:hover {
  color: var(--accent-light);
}

/* ----- Back to Top ----- */
.back-to-top {
  position: fixed;
  bottom: 28px;
  right: 28px;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--primary);
  color: #fff;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.3);
  opacity: 0;
  transform: translateY(16px);
  transition: all var(--transition);
  z-index: 90;
}

.back-to-top.visible {
  opacity: 1;
  transform: translateY(0);
}

.back-to-top:hover {
  background: var(--accent);
  transform: translateY(-3px) scale(1.05);
}

.back-to-top.visible:hover {
  transform: translateY(-3px) scale(1.05);
}

/* ----- Toast Notification ----- */
.toast {
  position: fixed;
  bottom: 84px;
  right: 28px;
  background: var(--primary);
  color: #fff;
  padding: 12px 20px;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
  opacity: 0;
  transform: translateY(12px);
  transition: all 0.35s ease;
  z-index: 200;
  pointer-events: none;
}

.toast.show {
  opacity: 1;
  transform: translateY(0);
}

/* ----- Responsive ----- */
@media (max-width: 768px) {
  .menu-toggle {
    display: block;
  }

  .nav-links {
    position: absolute;
    top: var(--header-height);
    left: 0;
    right: 0;
    background: var(--primary);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    flex-direction: column;
    padding: 12px 28px;
    gap: 4px;
    display: none;
  }

  .nav-links.open {
    display: flex;
  }

  .nav-links a {
    padding: 10px 14px;
    width: 100%;
    border-radius: 8px;
  }

  .hero {
    padding: 56px 20px 0;
  }

  .hero h1 {
    font-size: 1.6rem;
  }

  .hero p {
    font-size: 0.95rem;
  }

  .hero-stats {
    gap: 20px;
    flex-wrap: wrap;
  }

  .hero-stat .num {
    font-size: 1.3rem;
  }

  .articles-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .article-card .card-image {
    height: 180px;
  }

  .article-body {
    padding: 24px 20px;
  }

  .article-nav {
    flex-direction: column;
    align-items: center;
  }

  .article-header h1 {
    font-size: 1.4rem;
  }

  .article-body p:first-of-type::first-letter {
    font-size: 2.4em;
  }

  .about-timeline-item {
    padding: 16px 18px;
  }

  .back-to-top {
    bottom: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
  }
}

@media (max-width: 480px) {
  .container,
  .header-inner,
  .footer-inner {
    padding-left: 16px;
    padding-right: 16px;
  }

  .hero h1 {
    font-size: 1.3rem;
  }

  .article-header h1 {
    font-size: 1.2rem;
  }

  .article-body {
    padding: 20px 16px;
  }
}
