/* ==========================================================================
   咖啡云 (kafeiyun.cyou) 官方样式表 - Coffee Cloud Premium Dark Theme
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=Noto+Sans+SC:wght@300;400;500;700;900&display=swap');

:root {
  --primary-gold: #d4a373;
  --gold-glow: #f39c12;
  --gold-light: #e9d8a6;
  --bg-dark: #0f0b0a;
  --bg-card: rgba(26, 18, 15, 0.75);
  --bg-card-hover: rgba(38, 26, 21, 0.85);
  --border-gold: rgba(212, 163, 115, 0.25);
  --border-gold-bright: rgba(243, 156, 18, 0.6);
  --text-main: #f8f1e7;
  --text-muted: #b3a296;
  --text-gold: #e6b88a;
  --accent-red: #e74c3c;
  --accent-green: #2ecc71;
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --shadow-glow: 0 10px 30px rgba(243, 156, 18, 0.15);
  --transition-fast: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
  scroll-behavior: smooth;
  font-family: 'Noto Sans SC', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background-color: #0f0b0a;
  color: var(--text-main);
  line-height: 1.6;
}

body {
  position: relative;
  min-height: 100vh;
  overflow-x: hidden;
  background: transparent;
}

/* Full Page Background Image + Dynamic Ken-Burns Animation */
.global-bg {
  position: fixed;
  top: -5%;
  left: -5%;
  width: 110vw;
  height: 110vh;
  z-index: 1; /* Render above html/body background */
  background: url('../images/bg.jpg') no-repeat center center / cover;
  filter: brightness(0.9) contrast(1.15) saturate(1.2);
  animation: dynamicBgFloat 20s ease-in-out infinite alternate;
}

@keyframes dynamicBgFloat {
  0% {
    transform: scale(1) translate(0, 0);
  }
  50% {
    transform: scale(1.05) translate(-1%, -1%);
  }
  100% {
    transform: scale(1.08) translate(1%, 1%);
  }
}

.global-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 2;
  background: radial-gradient(circle at 50% 30%, rgba(15, 10, 8, 0.15) 0%, rgba(10, 6, 5, 0.6) 100%),
              linear-gradient(to bottom, rgba(15, 11, 10, 0.25) 0%, rgba(15, 11, 10, 0.75) 100%);
  pointer-events: none;
}

/* Ensure all page main content sits above background layers */
header, main, footer {
  position: relative;
  z-index: 10;
}

/* Typography & General Classes */
a {
  color: var(--primary-gold);
  text-decoration: none;
  transition: var(--transition-fast);
}

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

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

.section {
  padding: 80px 0;
  position: relative;
}

.section-title {
  text-align: center;
  font-size: 2.2rem;
  font-weight: 800;
  margin-bottom: 15px;
  background: linear-gradient(135deg, #fff 0%, var(--primary-gold) 60%, var(--gold-light) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.section-subtitle {
  text-align: center;
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 700px;
  margin: 0 auto 50px auto;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 600;
  background: rgba(212, 163, 115, 0.15);
  border: 1px solid var(--border-gold);
  color: var(--primary-gold);
  margin-bottom: 16px;
}

/* Header & Navbar */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 16px 0;
  background: rgba(15, 11, 10, 0.7);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-gold);
  transition: var(--transition-fast);
}

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

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 1.4rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: 0.5px;
}

.logo img {
  width: 40px;
  height: 40px;
}

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

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

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

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: 50px;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  border: none;
  transition: var(--transition-fast);
  text-align: center;
}

.btn-primary {
  background: linear-gradient(135deg, var(--gold-glow) 0%, var(--primary-gold) 100%);
  color: #0f0b0a;
  box-shadow: 0 4px 20px rgba(243, 156, 18, 0.35);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(243, 156, 18, 0.5);
  color: #000;
}

.btn-outline {
  background: transparent;
  border: 1.5px solid var(--primary-gold);
  color: var(--primary-gold);
}

.btn-outline:hover {
  background: rgba(212, 163, 115, 0.15);
  color: var(--gold-light);
  transform: translateY(-2px);
}

/* Hero Section & Coffee Steam */
.hero {
  padding: 160px 0 90px 0;
  text-align: center;
  position: relative;
}

#steam-canvas {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -60%);
  width: 600px;
  height: 500px;
  pointer-events: none;
  z-index: 1;
  opacity: 0.85;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 850px;
  margin: 0 auto;
}

.hero-title {
  font-size: 3.5rem;
  font-weight: 900;
  line-height: 1.2;
  margin-bottom: 24px;
  background: linear-gradient(135deg, #ffffff 0%, #f1d3b2 40%, var(--primary-gold) 80%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-desc {
  font-size: 1.2rem;
  color: var(--text-muted);
  margin-bottom: 36px;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

/* Feature Grid Cards */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  margin-top: 40px;
}

.glass-card {
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-md);
  padding: 30px;
  transition: var(--transition-fast);
  position: relative;
  overflow: hidden;
}

.glass-card:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-gold-bright);
  transform: translateY(-5px);
  box-shadow: var(--shadow-glow);
}

.glass-card .icon {
  font-size: 2.2rem;
  margin-bottom: 16px;
  display: inline-block;
}

.glass-card h3 {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 10px;
  color: #fff;
}

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

/* ==========================================================================
   直排自动上下展示 (Vertical Ticker System)
   ========================================================================== */
.vertical-ticker-wrapper {
  background: rgba(20, 14, 12, 0.85);
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-md);
  padding: 20px;
  overflow: hidden;
  position: relative;
  box-shadow: inset 0 0 20px rgba(0,0,0,0.5);
}

.ticker-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--primary-gold);
  margin-bottom: 15px;
  border-bottom: 1px solid rgba(212, 163, 115, 0.15);
  padding-bottom: 10px;
}

.ticker-container {
  height: 220px;
  overflow: hidden;
  position: relative;
}

.ticker-track {
  display: flex;
  flex-direction: column;
  gap: 12px;
  animation: verticalScroll 24s linear infinite;
}

.ticker-track:hover {
  animation-play-state: paused;
}

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

.ticker-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(35, 24, 20, 0.6);
  border: 1px solid rgba(212, 163, 115, 0.15);
  border-radius: var(--radius-sm);
  padding: 12px 18px;
  font-size: 0.9rem;
}

.ticker-item .left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.ticker-item .tag {
  background: rgba(243, 156, 18, 0.2);
  color: var(--gold-glow);
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 700;
}

.ticker-item .val {
  font-weight: 700;
  color: var(--accent-green);
}

/* Pricing Section */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
  margin-top: 40px;
}

.price-card {
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-md);
  padding: 36px 28px;
  text-align: center;
  transition: var(--transition-fast);
  position: relative;
  display: flex;
  flex-direction: column;
}

.price-card.popular {
  border-color: var(--gold-glow);
  background: rgba(36, 24, 18, 0.9);
  box-shadow: 0 10px 40px rgba(243, 156, 18, 0.25);
  transform: scale(1.03);
}

.price-card.popular::before {
  content: '🔥 热门推荐';
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, var(--gold-glow), var(--primary-gold));
  color: #0f0b0a;
  padding: 4px 16px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 800;
}

.price-name {
  font-size: 1.4rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 10px;
}

.price-val {
  font-size: 2.8rem;
  font-weight: 900;
  color: var(--gold-glow);
  margin-bottom: 6px;
}

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

.price-features {
  list-style: none;
  margin: 24px 0;
  text-align: left;
  flex-grow: 1;
}

.price-features li {
  padding: 8px 0;
  color: var(--text-muted);
  font-size: 0.92rem;
  display: flex;
  align-items: center;
  gap: 10px;
  border-bottom: 1px dashed rgba(212, 163, 115, 0.1);
}

.price-features li::before {
  content: '✓';
  color: var(--accent-green);
  font-weight: bold;
}

/* Founder / Author Section */
.founder-card {
  display: flex;
  align-items: center;
  gap: 40px;
  background: var(--bg-card);
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-lg);
  padding: 40px;
  max-width: 960px;
  margin: 0 auto;
}

.founder-avatar {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  border: 3px solid var(--primary-gold);
  box-shadow: 0 0 25px rgba(243, 156, 18, 0.3);
  object-fit: cover;
  flex-shrink: 0;
}

.founder-info h3 {
  font-size: 1.6rem;
  color: #fff;
  font-weight: 800;
  margin-bottom: 4px;
}

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

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

/* Articles Section */
.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-gold);
  border-radius: var(--radius-md);
  padding: 24px;
  transition: var(--transition-fast);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.article-card:hover {
  border-color: var(--gold-glow);
  transform: translateY(-4px);
  background: var(--bg-card-hover);
}

.article-card .tag {
  color: var(--primary-gold);
  font-size: 0.8rem;
  font-weight: 700;
  margin-bottom: 10px;

}

.article-card h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 12px;
  line-height: 1.4;
}

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

.article-card .read-more {
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--gold-glow);
  display: flex;
  align-items: center;
  gap: 6px;
}

/* FAQ Accordion */
.faq-grid {
  max-width: 860px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

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

.faq-question {
  padding: 20px 24px;
  font-size: 1.05rem;
  font-weight: 700;
  color: #fff;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  user-select: none;
}

.faq-question::after {
  content: '+';
  font-size: 1.4rem;
  color: var(--primary-gold);
  transition: transform 0.3s ease;
}

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

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s cubic-bezier(0, 1, 0, 1);
  background: rgba(15, 10, 8, 0.4);
}

.faq-answer p {
  padding: 0 24px 20px 24px;
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.7;
}

/* ==========================================================================
   【核心任务 2：页脚 PBN 输血管道 Footer Styles】
   ========================================================================== */
footer {
  background: rgba(10, 6, 5, 0.95);
  border-top: 1px solid rgba(212, 163, 115, 0.2);
  padding: 50px 0 25px 0;
  color: var(--text-muted);
  font-size: 0.9rem;
  text-align: center;
}

.footer-top {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  margin-bottom: 30px;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.3rem;
  font-weight: 800;
  color: #fff;
}

.footer-links {
  display: flex;
  gap: 24px;
  list-style: none;
  flex-wrap: wrap;
  justify-content: center;
}

.footer-links a {
  color: var(--text-muted);
  font-size: 0.9rem;
}

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

/* Low-key, subtle, elegant PBN Friend Links sub-footer */
.pbn-footer-links {
  margin-top: 30px;
  padding-top: 20px;
  border-top: 1px stroke rgba(255, 255, 255, 0.06);
  font-size: 0.78rem;
  color: rgba(179, 162, 150, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

.pbn-footer-links span {
  opacity: 0.5;
}

/* Strict PBN Link Requirements: target="_blank", DOFOLLOW, small font, blended style */
.pbn-footer-links a {
  color: rgba(212, 163, 115, 0.65);
  font-size: 0.78rem;
  text-decoration: none;
  transition: opacity 0.2s ease;
}

.pbn-footer-links a:hover {
  color: var(--primary-gold);
  opacity: 1;
  text-decoration: underline;
}

.copyright {
  margin-top: 15px;
  font-size: 0.8rem;
  color: rgba(179, 162, 150, 0.5);
}

/* Responsive Adjustments */
@media (max-width: 768px) {
  .hero-title {
    font-size: 2.2rem;
  }
  .nav-links {
    display: none;
  }
  .founder-card {
    flex-direction: column;
    text-align: center;
    padding: 25px;
  }
  .price-card.popular {
    transform: none;
  }
  .ticker-container {
    height: 260px;
  }
}
