/* ==========================================================================
   饿饭CC云 文章专栏专用原生样式表 (article.css)
   ========================================================================== */

:root {
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;

  --color-primary: #00f2fe;
  --color-secondary: #38bdf8;
  --color-accent: #818cf8;
  --color-purple: #c084fc;
  --color-success: #10b981;
  --color-warning: #fbbf24;

  --bg-dark-900: #040814;
  --bg-dark-800: #091124;
  --bg-dark-700: #0f1c38;
  --bg-card: rgba(15, 28, 56, 0.7);
  --bg-card-hover: rgba(23, 39, 77, 0.85);

  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --text-dim: #64748b;

  --border-light: rgba(255, 255, 255, 0.08);
  --border-card: rgba(56, 189, 248, 0.16);
  --border-glow: rgba(56, 189, 248, 0.35);

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-full: 9999px;

  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.8;
  background-color: var(--bg-dark-900);
  color: var(--text-main);
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  position: relative;
  min-height: 100vh;
  background-color: var(--bg-dark-900);
  color: var(--text-main);
}

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

a:hover {
  color: #fff;
}

.container {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

/* 顶部导航 */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  background-color: rgba(4, 8, 20, 0.85);
  border-bottom: 1px solid var(--border-light);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}

.logo-img {
  height: 44px;
  width: auto;
  transition: transform var(--transition-fast), filter var(--transition-fast);
}

.logo-link:hover .logo-img {
  transform: scale(1.02);
  filter: drop-shadow(0 0 12px rgba(0, 242, 254, 0.45));
}

.header-nav {
  display: flex;
  align-items: center;
  gap: 24px;
}

.header-nav a {
  color: var(--text-muted);
  font-size: 0.95rem;
}

.header-nav a:hover {
  color: #fff;
}

/* 面包屑导航 */
.breadcrumb-wrap {
  padding: 24px 0 10px;
  font-size: 0.88rem;
  color: var(--text-dim);
}

.breadcrumb-wrap a {
  color: var(--text-muted);
}

.breadcrumb-wrap a:hover {
  color: var(--color-primary);
}

.breadcrumb-wrap span {
  margin: 0 8px;
}

/* 文章头部与布局 */
.article-container {
  max-width: 860px;
  margin: 0 auto;
  padding: 30px 0 80px;
  position: relative;
  z-index: 2;
}

.article-header {
  margin-bottom: 40px;
  padding-bottom: 30px;
  border-bottom: 1px solid var(--border-light);
}

.article-badge-group {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}

.article-badge {
  font-size: 0.78rem;
  color: var(--color-primary);
  background: rgba(0, 242, 254, 0.1);
  border: 1px solid rgba(0, 242, 254, 0.25);
  padding: 3px 12px;
  border-radius: var(--radius-full);
}

.article-title {
  font-size: clamp(1.8rem, 3.5vw, 2.5rem);
  font-weight: 900;
  line-height: 1.3;
  color: #fff;
  margin-bottom: 20px;
  letter-spacing: -0.01em;
}

.article-meta-bar {
  display: flex;
  align-items: center;
  gap: 20px;
  font-size: 0.86rem;
  color: var(--text-dim);
  flex-wrap: wrap;
}

.article-meta-bar span strong {
  color: var(--text-muted);
}

/* 文章正文排版 */
.article-content {
  font-size: 1.05rem;
  line-height: 1.85;
  color: #cbd5e1;
}

.article-content h2 {
  font-size: 1.65rem;
  font-weight: 800;
  color: #fff;
  margin: 48px 0 20px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(56, 189, 248, 0.2);
  display: flex;
  align-items: center;
  gap: 10px;
}

.article-content h2::before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 24px;
  background: linear-gradient(180deg, var(--color-primary), var(--color-accent));
  border-radius: 3px;
}

.article-content h3 {
  font-size: 1.3rem;
  font-weight: 700;
  color: #e2e8f0;
  margin: 32px 0 16px;
}

.article-content p {
  margin-bottom: 22px;
}

.article-content strong {
  color: #fff;
  font-weight: 700;
}

.article-content ul, .article-content ol {
  margin: 0 0 24px 28px;
}

.article-content li {
  margin-bottom: 10px;
}

/* 高亮信息卡片 */
.callout-box {
  background: rgba(15, 28, 56, 0.8);
  border-left: 4px solid var(--color-primary);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  padding: 20px 24px;
  margin: 30px 0;
  border-top: 1px solid var(--border-light);
  border-right: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
}

.callout-box.tip {
  border-left-color: var(--color-success);
}

.callout-box.warning {
  border-left-color: var(--color-warning);
}

.callout-title {
  font-weight: 700;
  color: #fff;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* 表格排版 */
.content-table {
  width: 100%;
  border-collapse: collapse;
  margin: 30px 0;
  font-size: 0.95rem;
  background: var(--bg-card);
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border-card);
}

.content-table th, .content-table td {
  padding: 14px 18px;
  text-align: left;
  border-bottom: 1px solid var(--border-light);
}

.content-table th {
  background: rgba(56, 189, 248, 0.1);
  color: #fff;
  font-weight: 700;
}

.content-table tr:hover {
  background: rgba(255, 255, 255, 0.03);
}

/* CTA行动框 (规范：rel="nofollow" target="_blank") */
.article-cta-box {
  background: linear-gradient(135deg, rgba(15, 28, 56, 0.95), rgba(9, 17, 36, 0.95));
  border: 2px solid var(--color-primary);
  border-radius: var(--radius-lg);
  padding: 36px 30px;
  text-align: center;
  margin: 50px 0;
  box-shadow: 0 10px 30px rgba(0, 242, 254, 0.2);
}

.article-cta-box h3 {
  font-size: 1.5rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 12px;
}

.article-cta-box p {
  color: var(--text-muted);
  font-size: 0.96rem;
  margin-bottom: 24px;
}

.btn-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 32px;
  font-size: 1.02rem;
  font-weight: 700;
  border-radius: var(--radius-full);
  background: linear-gradient(135deg, #00f2fe 0%, #38bdf8 50%, #6366f1 100%);
  color: #040814;
  box-shadow: 0 4px 18px rgba(0, 242, 254, 0.35);
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
  cursor: pointer;
}

.btn-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 242, 254, 0.55);
  color: #000;
}

/* 内部文章推荐轮播/网格 */
.related-articles {
  margin-top: 60px;
  padding-top: 40px;
  border-top: 1px solid var(--border-light);
}

.related-articles h3 {
  font-size: 1.35rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 24px;
}

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

.related-card {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-md);
  padding: 20px;
  transition: all var(--transition-fast);
}

.related-card:hover {
  border-color: var(--border-glow);
  transform: translateY(-3px);
}

.related-card h4 {
  font-size: 1rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 8px;
  line-height: 1.45;
}

.related-card p {
  font-size: 0.84rem;
  color: var(--text-dim);
  line-height: 1.5;
  margin-bottom: 0;
}

/* 页脚 */
.site-footer {
  background-color: #030611;
  padding: 50px 0 30px;
  border-top: 1px solid var(--border-light);
  font-size: 0.86rem;
  color: var(--text-dim);
  text-align: center;
}

.site-footer a {
  color: var(--text-muted);
}

.site-footer a:hover {
  color: var(--color-primary);
}

@media (max-width: 768px) {
  .header-nav {
    display: none;
  }
  .article-container {
    padding: 20px 0 50px;
  }
  .related-grid {
    grid-template-columns: 1fr;
  }
}


/* ==========================================================================
   饿饭品牌定制：动态悬浮餐具背景系统 (Floating Bowls, Spoons & Forks)
   ========================================================================== */
.dynamic-background {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
  background: radial-gradient(circle at 50% 0%, #0d1e45 0%, #050a18 60%, #02050e 100%);
}

.aurora-glow {
  position: absolute;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.28;
  mix-blend-mode: screen;
  will-change: transform;
}

.glow-1 {
  top: -150px;
  left: -100px;
  background: linear-gradient(135deg, #00f2fe, #3b82f6);
  animation: float-orb-1 18s ease-in-out infinite alternate;
}

.glow-2 {
  top: 30%;
  right: -150px;
  background: linear-gradient(135deg, #818cf8, #c084fc);
  animation: float-orb-2 22s ease-in-out infinite alternate;
}

.glow-3 {
  bottom: 5%;
  left: 20%;
  width: 500px;
  height: 500px;
  background: linear-gradient(135deg, #0284c7, #6366f1);
  animation: float-orb-3 26s ease-in-out infinite alternate;
}

.grid-mesh {
  position: absolute;
  inset: 0;
  background-size: 60px 60px;
  background-image: 
    linear-gradient(to right, rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, #000 60%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, #000 60%, transparent 100%);
}

@keyframes float-orb-1 {
  0% { transform: translate3d(0, 0, 0) scale(1); }
  50% { transform: translate3d(120px, 80px, 0) scale(1.15); }
  100% { transform: translate3d(40px, 160px, 0) scale(0.95); }
}

@keyframes float-orb-2 {
  0% { transform: translate3d(0, 0, 0) scale(1.1); }
  50% { transform: translate3d(-140px, -60px, 0) scale(0.9); }
  100% { transform: translate3d(-60px, 120px, 0) scale(1.2); }
}

@keyframes float-orb-3 {
  0% { transform: translate3d(0, 0, 0) scale(0.9); }
  50% { transform: translate3d(100px, -100px, 0) scale(1.2); }
  100% { transform: translate3d(-50px, -50px, 0) scale(1); }
}

.cutlery-layer {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  pointer-events: none;
  z-index: 1;
}

.cutlery-item {
  position: absolute;
  display: flex;
  align-items: center;
  justify-content: center;
  user-select: none;
  pointer-events: none;
  opacity: 0.26;
  will-change: transform;
}

.cutlery-sm {
  font-size: 1.4rem;
  width: 32px;
  height: 32px;
  filter: drop-shadow(0 0 10px rgba(0, 242, 254, 0.35));
}

.cutlery-md {
  font-size: 2.2rem;
  width: 48px;
  height: 48px;
  filter: drop-shadow(0 0 16px rgba(129, 140, 248, 0.45));
}

.cutlery-lg {
  font-size: 3.2rem;
  width: 64px;
  height: 64px;
  filter: drop-shadow(0 0 22px rgba(0, 242, 254, 0.55));
}

.cutlery-svg {
  stroke: var(--color-primary);
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  filter: drop-shadow(0 0 12px rgba(0, 242, 254, 0.5));
}
.cutlery-svg.purple {
  stroke: #c084fc;
  filter: drop-shadow(0 0 12px rgba(192, 132, 252, 0.5));
}
.cutlery-svg.blue {
  stroke: #38bdf8;
  filter: drop-shadow(0 0 12px rgba(56, 189, 248, 0.5));
}

@keyframes float-drift-1 {
  0% { transform: translate3d(0, 0, 0) rotate(0deg) scale(1); }
  33% { transform: translate3d(30px, -60px, 0) rotate(15deg) scale(1.08); }
  66% { transform: translate3d(-25px, -120px, 0) rotate(-12deg) scale(0.95); }
  100% { transform: translate3d(0, -180px, 0) rotate(20deg) scale(1); }
}

@keyframes float-drift-2 {
  0% { transform: translate3d(0, 0, 0) rotate(0deg) scale(0.95); }
  40% { transform: translate3d(-40px, 70px, 0) rotate(-25deg) scale(1.1); }
  80% { transform: translate3d(35px, 130px, 0) rotate(18deg) scale(0.9); }
  100% { transform: translate3d(0, 0, 0) rotate(0deg) scale(0.95); }
}

@keyframes float-sway-1 {
  0% { transform: translate3d(0, 0, 0) rotate(10deg); }
  50% { transform: translate3d(50px, -45px, 0) rotate(-20deg) scale(1.15); }
  100% { transform: translate3d(0, 0, 0) rotate(10deg); }
}

@keyframes float-sway-2 {
  0% { transform: translate3d(0, 0, 0) rotate(-15deg); }
  50% { transform: translate3d(-35px, -70px, 0) rotate(25deg) scale(0.9); }
  100% { transform: translate3d(0, 0, 0) rotate(-15deg); }
}

@keyframes float-orbit-1 {
  0% { transform: translate3d(0, 0, 0) rotate(0deg); }
  25% { transform: translate3d(40px, 40px, 0) rotate(45deg); }
  50% { transform: translate3d(0, 80px, 0) rotate(90deg); }
  75% { transform: translate3d(-40px, 40px, 0) rotate(45deg); }
  100% { transform: translate3d(0, 0, 0) rotate(0deg); }
}

.item-c1 { top: 8%; left: 5%; animation: float-drift-1 22s ease-in-out infinite alternate; }
.item-c2 { top: 15%; right: 10%; animation: float-sway-1 26s ease-in-out infinite alternate -5s; }
.item-c3 { top: 28%; left: 12%; animation: float-drift-2 30s ease-in-out infinite alternate -8s; }
.item-c4 { top: 36%; right: 7%; animation: float-orbit-1 24s linear infinite; }
.item-c5 { top: 48%; left: 4%; animation: float-sway-2 28s ease-in-out infinite alternate -12s; }
.item-c6 { top: 58%; right: 16%; animation: float-drift-1 32s ease-in-out infinite alternate -15s; }
.item-c7 { top: 68%; left: 8%; animation: float-sway-1 25s ease-in-out infinite alternate -3s; }
.item-c8 { top: 78%; right: 5%; animation: float-drift-2 29s ease-in-out infinite alternate -10s; }
.item-c9 { top: 88%; left: 16%; animation: float-orbit-1 35s linear infinite -18s; }
.item-c10 { top: 20%; left: 48%; animation: float-drift-1 34s ease-in-out infinite alternate -7s; opacity: 0.16; }
.item-c11 { top: 60%; left: 45%; animation: float-sway-2 27s ease-in-out infinite alternate -14s; opacity: 0.14; }
.item-c12 { top: 80%; left: 52%; animation: float-drift-2 31s ease-in-out infinite alternate -9s; opacity: 0.18; }
.item-c13 { top: 10%; left: 78%; animation: float-sway-1 23s ease-in-out infinite alternate -11s; }
.item-c14 { top: 46%; right: 28%; animation: float-drift-1 29s ease-in-out infinite alternate -4s; opacity: 0.18; }
.item-c15 { top: 90%; right: 26%; animation: float-sway-2 33s ease-in-out infinite alternate -16s; }
