/* 咖啡云 (kafeiyun.cfd) - 全站设计系统与主样式表 */
:root {
  --bg-primary: #0f0d0c;
  --bg-secondary: #181412;
  --bg-card: rgba(28, 23, 20, 0.75);
  --bg-card-hover: rgba(42, 34, 29, 0.85);
  --border-color: rgba(212, 142, 89, 0.18);
  --border-glow: rgba(212, 142, 89, 0.4);
  
  --primary-accent: #d48e59;
  --primary-gradient: linear-gradient(135deg, #e59b64 0%, #b86e39 100%);
  --accent-gold: #f3c285;
  --accent-coffee: #8c532b;
  
  --text-main: #f5eedc;
  --text-muted: #a69888;
  --text-dim: #736658;
  
  --shadow-sm: 0 4px 12px rgba(0, 0, 0, 0.3);
  --shadow-lg: 0 12px 32px rgba(0, 0, 0, 0.6);
  --shadow-glow: 0 0 25px rgba(212, 142, 89, 0.25);
  
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --radius-full: 9999px;
  
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "PingFang SC", "Microsoft YaHei", sans-serif;
}

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

html {
  scroll-behavior: smooth;
  font-family: var(--font-family);
  background-color: var(--bg-primary);
  color: var(--text-main);
  line-height: 1.6;
}

body {
  overflow-x: hidden;
  background: linear-gradient(180deg, rgba(15, 13, 12, 0.82) 0%, rgba(10, 8, 7, 0.93) 100%), url('assets/hero-bg.jpg') no-repeat center top / cover fixed;
  min-height: 100vh;
}

body.article-page-body {
  background: linear-gradient(180deg, rgba(15, 13, 12, 0.82) 0%, rgba(10, 8, 7, 0.93) 100%), url('../assets/hero-bg.jpg') no-repeat center top / cover fixed;
}

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

a:hover {
  color: var(--accent-gold);
}

/* 统一容器 */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* 头部导航 */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(15, 13, 12, 0.85);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-color);
  padding: 16px 0;
}

.nav-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo-group {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-main);
  letter-spacing: -0.5px;
}

.logo-icon {
  width: 40px;
  height: 40px;
  background: var(--primary-gradient);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-glow);
}

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

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
}

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

.nav-links a:hover {
  color: var(--primary-accent);
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--primary-gradient);
  color: #14110f !important;
  font-weight: 700;
  padding: 12px 28px;
  border-radius: var(--radius-full);
  box-shadow: var(--shadow-glow);
  transition: var(--transition);
  border: none;
  cursor: pointer;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 35px rgba(229, 155, 100, 0.45);
  color: #000 !important;
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(212, 142, 89, 0.1);
  color: var(--primary-accent);
  border: 1px solid var(--border-color);
  font-weight: 600;
  padding: 12px 28px;
  border-radius: var(--radius-full);
  transition: var(--transition);
}

.btn-secondary:hover {
  background: rgba(212, 142, 89, 0.2);
  border-color: var(--primary-accent);
  color: var(--accent-gold);
}

/* Hero Section 区域 - 融合全页咖啡与咖啡豆背景图 */
.hero {
  padding: 180px 0 100px;
  position: relative;
  text-align: center;
  background: transparent;
  border-bottom: 1px solid var(--border-color);
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at 50% 30%, rgba(212, 142, 89, 0.25) 0%, rgba(15, 13, 12, 0.85) 75%);
  pointer-events: none;
}

.hero-bg-beans {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
  max-width: 1100px;
  height: 500px;
  pointer-events: none;
  opacity: 0.25;
  background: radial-gradient(ellipse at center, #e59b64 0%, transparent 70%);
  filter: blur(80px);
}

.logo-img {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  object-fit: cover;
  box-shadow: var(--shadow-glow);
  border: 1px solid var(--border-color);
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  border-radius: var(--radius-full);
  background: rgba(212, 142, 89, 0.12);
  border: 1px solid var(--border-color);
  color: var(--primary-accent);
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 24px;
}

.hero h1 {
  font-size: 3.5rem;
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 20px;
  background: linear-gradient(180deg, #ffffff 0%, #d4c2b2 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero h1 span {
  background: var(--primary-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero p {
  font-size: 1.2rem;
  color: var(--text-muted);
  max-width: 720px;
  margin: 0 auto 40px;
}

.hero-ctas {
  display: flex;
  gap: 16px;
  justify-content: center;
}

/* 核心通用 Section 样式 */
.section {
  padding: 90px 0;
  position: relative;
}

.section-header {
  text-align: center;
  margin-bottom: 50px;
}

.section-header h2 {
  font-size: 2.3rem;
  font-weight: 800;
  margin-bottom: 12px;
  color: var(--text-main);
}

.section-header p {
  color: var(--text-muted);
  font-size: 1.05rem;
}

/* H2 页面：价格表与实时节点速度 - 直排上下展示 */
.stacked-vertical {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.card-block {
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 36px;
  box-shadow: var(--shadow-lg);
}

/* 价格卡片网格 */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
  margin-top: 20px;
}

.pricing-card {
  background: rgba(15, 13, 12, 0.6);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 28px;
  text-align: center;
  position: relative;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}

.pricing-card:hover {
  border-color: var(--border-glow);
  transform: translateY(-5px);
  box-shadow: var(--shadow-glow);
}

.pricing-card.featured {
  border-color: var(--primary-accent);
  background: linear-gradient(180deg, rgba(212, 142, 89, 0.12) 0%, rgba(15, 13, 12, 0.8) 100%);
}

.popular-tag {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--primary-gradient);
  color: #14110f;
  font-size: 0.75rem;
  font-weight: 800;
  padding: 2px 14px;
  border-radius: var(--radius-full);
}

.plan-name {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.plan-price {
  font-size: 2.4rem;
  font-weight: 800;
  color: var(--primary-accent);
  margin-bottom: 20px;
}

.plan-price span {
  font-size: 0.9rem;
  color: var(--text-muted);
  font-weight: 400;
}

.plan-features {
  list-style: none;
  text-align: left;
  margin-bottom: 28px;
  flex-grow: 1;
}

.plan-features li {
  padding: 8px 0;
  color: var(--text-muted);
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  gap: 10px;
}

.plan-features li::before {
  content: "✓";
  color: var(--primary-accent);
  font-weight: bold;
}

/* 实时节点速度面板 */
.node-speed-panel {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.node-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(15, 13, 12, 0.7);
  border: 1px solid rgba(212, 142, 89, 0.12);
  padding: 16px 24px;
  border-radius: var(--radius-md);
}

.node-info {
  display: flex;
  align-items: center;
  gap: 14px;
}

.node-flag {
  font-size: 1.4rem;
}

.node-title {
  font-weight: 600;
  font-size: 1rem;
}

.node-stats {
  display: flex;
  align-items: center;
  gap: 32px;
}

.ping-badge {
  background: rgba(46, 204, 113, 0.15);
  color: #2ecc71;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 6px;
}

.speed-meter {
  width: 140px;
  height: 8px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 4px;
  overflow: hidden;
}

.speed-fill {
  height: 100%;
  background: var(--primary-gradient);
  border-radius: 4px;
}

/* 教学直排上下展示 */
.tutorial-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.tutorial-card {
  display: flex;
  gap: 24px;
  align-items: flex-start;
  background: rgba(15, 13, 12, 0.6);
  border: 1px solid var(--border-color);
  padding: 24px;
  border-radius: var(--radius-md);
  transition: var(--transition);
}

.tutorial-card:hover {
  border-color: var(--primary-accent);
}

.step-number {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(212, 142, 89, 0.15);
  color: var(--primary-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.2rem;
  flex-shrink: 0;
}

.tutorial-content h3 {
  font-size: 1.15rem;
  margin-bottom: 8px;
  color: var(--text-main);
}

.tutorial-content p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* 创始人板块 */
.founder-section {
  background: linear-gradient(135deg, rgba(35, 27, 23, 0.9) 0%, rgba(15, 13, 12, 0.9) 100%);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 48px;
  display: flex;
  align-items: center;
  gap: 40px;
}

.founder-avatar {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: var(--primary-gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  flex-shrink: 0;
  box-shadow: var(--shadow-glow);
}

.founder-info h3 {
  font-size: 1.5rem;
  margin-bottom: 4px;
  color: var(--text-main);
}

.founder-title {
  color: var(--primary-accent);
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 16px;
}

.founder-bio {
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.7;
}

/* 客户评论：直排自动上下展示 */
.reviews-ticker-wrapper {
  height: 380px;
  overflow: hidden;
  position: relative;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
  background: var(--bg-card);
  padding: 20px;
}

.reviews-ticker-wrapper::before,
.reviews-ticker-wrapper::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 40px;
  z-index: 2;
  pointer-events: none;
}

.reviews-ticker-wrapper::before {
  top: 0;
  background: linear-gradient(to bottom, var(--bg-primary) 0%, transparent 100%);
}

.reviews-ticker-wrapper::after {
  bottom: 0;
  background: linear-gradient(to top, var(--bg-primary) 0%, transparent 100%);
}

.reviews-scroll-container {
  display: flex;
  flex-direction: column;
  gap: 16px;
  animation: scrollVertical 22s linear infinite;
}

.reviews-scroll-container:hover {
  animation-play-state: paused;
}

@keyframes scrollVertical {
  0% { transform: translateY(0); }
  100% { transform: translateY(-50%); }
}

.review-item {
  background: rgba(15, 13, 12, 0.8);
  border: 1px solid rgba(212, 142, 89, 0.15);
  border-radius: var(--radius-md);
  padding: 20px 24px;
}

.review-user {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.user-name {
  font-weight: 700;
  color: var(--text-main);
}

.review-stars {
  color: #f1c40f;
  font-size: 0.9rem;
}

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

/* FAQ 常见问题手风琴 */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: 900px;
  margin: 0 auto;
}

.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: var(--transition);
}

.faq-question {
  padding: 20px 24px;
  font-weight: 700;
  font-size: 1.05rem;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--text-main);
}

.faq-question::after {
  content: "+";
  font-size: 1.4rem;
  color: var(--primary-accent);
  transition: var(--transition);
}

.faq-item.active .faq-question::after {
  transform: rotate(45deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 24px;
  color: var(--text-muted);
  font-size: 0.95rem;
  transition: max-height 0.3s cubic-bezier(0, 1, 0, 1), padding 0.3s ease;
}

.faq-item.active .faq-answer {
  max-height: 300px;
  padding: 0 24px 20px;
}

/* SEO 文章专栏网格 */
.articles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
}

.article-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 24px;
  display: flex;
  flex-direction: column;
  transition: var(--transition);
}

.article-card:hover {
  border-color: var(--primary-accent);
  transform: translateY(-4px);
}

.article-tag {
  color: var(--primary-accent);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.article-card h3 {
  font-size: 1.15rem;
  margin-bottom: 12px;
}

.article-card h3 a {
  color: var(--text-main);
}

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

.article-card p {
  color: var(--text-muted);
  font-size: 0.9rem;
  flex-grow: 1;
  margin-bottom: 16px;
}

.read-more {
  font-size: 0.85rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

/* 文章详情页专用样式 */
.article-page {
  padding-top: 140px;
  padding-bottom: 90px;
}

.article-container {
  max-width: 860px;
  margin: 0 auto;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 48px;
}

.article-header {
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 28px;
  margin-bottom: 36px;
}

.article-header h1 {
  font-size: 2.2rem;
  font-weight: 800;
  margin-bottom: 16px;
  line-height: 1.3;
}

.article-meta {
  display: flex;
  gap: 20px;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.article-body {
  color: var(--text-muted);
  font-size: 1.05rem;
  line-height: 1.85;
}

.article-body h2 {
  color: var(--text-main);
  font-size: 1.5rem;
  margin: 36px 0 16px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(212, 142, 89, 0.15);
}

.article-body h3 {
  color: var(--text-main);
  font-size: 1.25rem;
  margin: 24px 0 12px;
}

.article-body p {
  margin-bottom: 20px;
}

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

.article-body li {
  margin-bottom: 8px;
}

.article-cta-box {
  background: linear-gradient(135deg, rgba(212, 142, 89, 0.15) 0%, rgba(15, 13, 12, 0.8) 100%);
  border: 1px solid var(--primary-accent);
  border-radius: var(--radius-md);
  padding: 28px;
  text-align: center;
  margin: 40px 0;
}

.article-cta-box h3 {
  margin-top: 0;
  font-size: 1.3rem;
  color: var(--text-main);
}

.article-cta-box p {
  margin-bottom: 20px;
}

.related-articles {
  margin-top: 50px;
  border-top: 1px solid var(--border-color);
  padding-top: 36px;
}

.related-articles h3 {
  font-size: 1.2rem;
  margin-bottom: 20px;
  color: var(--text-main);
}

.related-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  list-style: none;
  padding: 0;
}

/* 页脚与 PBN 外链管道 */
footer {
  background: #090807;
  border-top: 1px solid var(--border-color);
  padding: 50px 0 30px;
  text-align: center;
}

.footer-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.footer-copy {
  color: var(--text-dim);
  font-size: 0.85rem;
}

/* 低调、美观、小字号友情链接区 */
.friend-links-pbn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  font-size: 0.82rem;
  color: var(--text-dim);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 16px;
  width: 100%;
  max-width: 600px;
}

.friend-links-pbn span {
  color: var(--text-dim);
}

.friend-links-pbn a {
  color: #8c7b6c;
  transition: var(--transition);
}

.friend-links-pbn a:hover {
  color: var(--primary-accent);
}

/* 响应式适配 */
@media (max-width: 768px) {
  .hero h1 {
    font-size: 2.2rem;
  }
  .founder-section {
    flex-direction: column;
    text-align: center;
    padding: 28px;
  }
  .node-row {
    flex-direction: column;
    gap: 12px;
    align-items: flex-start;
  }
  .node-stats {
    width: 100%;
    justify-content: space-between;
  }
  .article-container {
    padding: 24px;
  }
  .nav-links {
    display: none;
  }
}
