/* 99Pages — 36氪风格资讯站 */

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

:root {
  --primary: #0078FF;
  --primary-hover: #0066DD;
  --primary-light: rgba(0, 120, 255, 0.08);
  --accent: #FF6B00;
  --accent-light: rgba(255, 107, 0, 0.08);
  --hot: #E74C3C;
  --bg: #F5F7FA;
  --bg-white: #FFFFFF;
  --border: #E8E8E8;
  --text: #333333;
  --text-secondary: #666666;
  --text-muted: #999999;
  --radius: 4px;
  --radius-lg: 8px;
  --shadow: 0 2px 8px rgba(0,0,0,0.08);
  --transition: all 0.2s ease;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 16px;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }

/* ===== Header ===== */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg-white);
  border-bottom: 1px solid var(--border);
}

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

.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 20px;
  font-weight: 700;
  color: var(--text);
}

.nav {
  display: flex;
  gap: 24px;
}

.nav a {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
  padding: 4px 0;
  transition: var(--transition);
}

.nav a:hover { color: var(--primary); }
.nav a.active { color: var(--primary); font-weight: 600; }

.header-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.search-box {
  display: flex;
  align-items: center;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.search-box input {
  padding: 8px 12px;
  border: none;
  background: transparent;
  font-size: 13px;
  width: 200px;
  outline: none;
}

.search-btn {
  padding: 8px 16px;
  background: var(--primary);
  color: #fff;
  border: none;
  font-size: 13px;
  cursor: pointer;
}

/* ===== Buttons ===== */
.btn-ghost {
  padding: 8px 16px;
  background: transparent;
  border: none;
  color: var(--text-secondary);
  font-size: 14px;
  cursor: pointer;
}

.btn-primary {
  display: inline-block;
  padding: 8px 20px;
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}

.btn-primary:hover { background: var(--primary-hover); }

.btn-outline {
  display: inline-block;
  padding: 8px 20px;
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 14px;
  cursor: pointer;
  transition: var(--transition);
}

.btn-outline:hover { border-color: var(--primary); color: var(--primary); }

.btn-lg { padding: 12px 28px; font-size: 16px; }
.btn-block { display: block; text-align: center; width: 100%; }

/* ===== Ticker ===== */
.ticker {
  background: var(--bg-white);
  border-bottom: 1px solid var(--border);
  padding: 8px 0;
}

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

.ticker-label {
  padding: 2px 8px;
  background: var(--hot);
  color: #fff;
  border-radius: var(--radius);
  font-size: 12px;
  font-weight: 600;
}

.ticker-content {
  display: flex;
  gap: 24px;
  overflow: hidden;
}

.ticker-item {
  font-size: 13px;
  color: var(--text-secondary);
  white-space: nowrap;
}

/* ===== Hero ===== */
.hero {
  padding: 16px 0;
}

.hero-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 16px;
}

.hero-card {
  background: var(--bg-white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: var(--transition);
}

.hero-card:hover {
  box-shadow: var(--shadow);
}

.hero-card.featured {
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.hero-card-image {
  height: 100%;
  min-height: 300px;
}

.placeholder-img {
  width: 100%;
  height: 100%;
  min-height: 300px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 18px;
  font-weight: 600;
}

.hero-card-content {
  padding: 20px;
}

.card-tag {
  display: inline-block;
  padding: 2px 8px;
  background: var(--primary-light);
  color: var(--primary);
  border-radius: var(--radius);
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 8px;
}

.card-tag.hot {
  background: rgba(231, 76, 60, 0.1);
  color: var(--hot);
}

.hero-card-content h1 {
  font-size: 24px;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 12px;
}

.hero-card-content h3 {
  font-size: 16px;
  font-weight: 600;
  line-height: 1.4;
  margin-bottom: 8px;
}

.hero-card-content p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 12px;
}

.card-meta {
  display: flex;
  gap: 12px;
  font-size: 12px;
  color: var(--text-muted);
}

.hero-sidebar {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.hero-card.small {
  padding: 16px;
}

.hero-card.small h3 {
  font-size: 14px;
  line-height: 1.4;
}

/* ===== Section Header ===== */
.section-header {
  margin-bottom: 24px;
}

.section-header h2 {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 8px;
}

.section-header p {
  font-size: 14px;
  color: var(--text-secondary);
}

/* ===== Products ===== */
.products {
  padding: 32px 0;
  background: var(--bg-white);
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.product-card {
  display: block;
  padding: 20px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: var(--transition);
}

.product-card:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}

.product-card.featured {
  border-color: var(--primary);
  background: var(--primary-light);
}

.product-icon {
  margin-bottom: 12px;
}

.product-card h3 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 8px;
}

.product-card p {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-bottom: 12px;
}

.product-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.product-tag {
  padding: 2px 8px;
  background: var(--bg-white);
  border-radius: var(--radius);
  font-size: 11px;
  font-weight: 500;
  color: var(--text-muted);
}

/* ===== Articles ===== */
.articles {
  padding: 32px 0;
}

.articles-layout {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 24px;
}

.articles-main {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.article-card {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 16px;
  padding: 16px;
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: var(--transition);
}

.article-card:hover {
  box-shadow: var(--shadow);
}

.article-card:nth-child(n+4) {
  grid-template-columns: 1fr;
}

.article-image {
  border-radius: var(--radius);
  overflow: hidden;
}

.article-image .placeholder-img {
  min-height: 120px;
  font-size: 14px;
}

.article-body {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.article-category {
  font-size: 12px;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 6px;
}

.article-card h3 {
  font-size: 16px;
  font-weight: 600;
  line-height: 1.4;
  margin-bottom: 8px;
}

.article-card p {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-bottom: 8px;
}

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

/* Sidebar */
.articles-sidebar {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.sidebar-section {
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 16px;
}

.sidebar-section h4 {
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
}

.tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag {
  padding: 4px 12px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 12px;
  color: var(--text-secondary);
  transition: var(--transition);
}

.tag:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.recommended-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.recommended-item {
  display: flex;
  gap: 8px;
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
}

.recommended-item:last-child {
  border-bottom: none;
}

.recommended-num {
  font-size: 14px;
  font-weight: 700;
  color: var(--primary);
  min-width: 24px;
}

.recommended-title {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.4;
}

.stats-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.stat-item {
  display: flex;
  justify-content: space-between;
  padding: 6px 0;
  font-size: 13px;
}

.stat-label {
  color: var(--text-muted);
}

.stat-value {
  font-weight: 600;
  color: var(--primary);
}

/* ===== Tools ===== */
.tools {
  padding: 32px 0;
  background: var(--bg-white);
}

.tools-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.tool-card {
  padding: 20px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: var(--transition);
}

.tool-card:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow);
}

.tool-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.tool-header h4 {
  font-size: 15px;
  font-weight: 700;
}

.tool-rating {
  font-size: 14px;
  font-weight: 700;
  color: var(--primary);
}

.tool-card p {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-bottom: 12px;
}

.tool-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.tool-tags span {
  padding: 2px 8px;
  background: var(--bg-white);
  border-radius: var(--radius);
  font-size: 11px;
  font-weight: 500;
  color: var(--text-muted);
}

/* ===== Community ===== */
.community {
  padding: 32px 0;
}

.community-stats {
  display: flex;
  justify-content: center;
  gap: 48px;
  padding: 32px;
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}

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

.community-stat .stat-value {
  display: block;
  font-size: 32px;
  font-weight: 800;
  color: var(--primary);
}

.community-stat .stat-label {
  font-size: 13px;
  color: var(--text-muted);
}

/* ===== Pricing ===== */
.pricing {
  padding: 32px 0;
  background: var(--bg-white);
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.pricing-card {
  padding: 24px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  position: relative;
}

.pricing-card.featured {
  border-color: var(--primary);
  box-shadow: var(--shadow);
}

.pricing-badge {
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%);
  padding: 4px 12px;
  background: var(--accent);
  color: #fff;
  border-radius: var(--radius);
  font-size: 11px;
  font-weight: 700;
}

.pricing-card h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 16px;
}

.pricing-price {
  margin-bottom: 12px;
}

.price-amount {
  font-size: 36px;
  font-weight: 900;
}

.price-period {
  font-size: 14px;
  color: var(--text-muted);
}

.pricing-desc {
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: 16px;
  line-height: 1.5;
}

.pricing-features {
  list-style: none;
  margin-bottom: 20px;
}

.pricing-features li {
  padding: 6px 0;
  font-size: 13px;
  color: var(--text-secondary);
  border-bottom: 1px solid var(--border);
}

.pricing-features li::before {
  content: "✓";
  color: var(--primary);
  font-weight: 700;
  margin-right: 8px;
}

/* ===== CTA ===== */
.cta {
  padding: 48px 0;
}

.cta-content {
  text-align: center;
  max-width: 600px;
  margin: 0 auto;
}

.cta-content h2 {
  font-size: 28px;
  font-weight: 800;
  margin-bottom: 12px;
}

.cta-content p {
  font-size: 16px;
  color: var(--text-secondary);
  margin-bottom: 24px;
}

.cta-actions {
  display: flex;
  justify-content: center;
  gap: 12px;
}

/* ===== Footer ===== */
.footer {
  padding: 48px 0 24px;
  background: var(--bg-white);
  border-top: 1px solid var(--border);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 32px;
  margin-bottom: 32px;
}

.footer-brand p {
  font-size: 13px;
  color: var(--text-secondary);
  margin-top: 12px;
  line-height: 1.5;
}

.footer-links h4 {
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 12px;
}

.footer-links a {
  display: block;
  font-size: 13px;
  color: var(--text-secondary);
  padding: 4px 0;
  transition: var(--transition);
}

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

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 16px;
  border-top: 1px solid var(--border);
  font-size: 12px;
  color: var(--text-muted);
}

.footer-social {
  display: flex;
  gap: 16px;
}

.footer-social a {
  font-size: 12px;
  color: var(--text-muted);
  transition: var(--transition);
}

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

/* ===== Responsive ===== */
@media (max-width: 1024px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-card.featured { grid-template-columns: 1fr; }
  .articles-layout { grid-template-columns: 1fr; }
  .products-grid { grid-template-columns: repeat(2, 1fr); }
  .tools-grid { grid-template-columns: repeat(2, 1fr); }
  .pricing-grid { grid-template-columns: 1fr; max-width: 400px; margin: 0 auto; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .header-right { display: none; }
  .nav { display: none; }
  .hero-card.featured { grid-template-columns: 1fr; }
  .article-card { grid-template-columns: 1fr; }
  .article-card:nth-child(n+4) { grid-template-columns: 1fr; }
  .products-grid { grid-template-columns: 1fr; }
  .tools-grid { grid-template-columns: 1fr; }
  .community-stats { flex-wrap: wrap; gap: 24px; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: 12px; }
}
/* ===== Poster & Infographic Styles ===== */
.poster-style {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 400px;
}

.poster-content {
  text-align: center;
  color: #fff;
  padding: 40px;
}

.poster-content h2 {
  font-size: 36px;
  font-weight: 900;
  margin-bottom: 12px;
  text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.poster-content p {
  font-size: 18px;
  margin-bottom: 24px;
  opacity: 0.9;
}

.poster-stats {
  display: flex;
  justify-content: center;
  gap: 24px;
}

.poster-stats span {
  padding: 8px 16px;
  background: rgba(255,255,255,0.2);
  border-radius: 20px;
  font-size: 14px;
  font-weight: 600;
}

/* Infographic Styles */
.infographic {
  padding: 80px 0;
  background: var(--bg-white);
}

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

.infographic-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: var(--transition);
}

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

.infographic-image {
  height: 250px;
  overflow: hidden;
}

.infographic-style {
  background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 250px;
}

.infographic-content {
  text-align: center;
  color: #fff;
  padding: 24px;
  width: 100%;
}

.infographic-content h3 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 20px;
}

/* Skill Map */
.skill-map {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.skill-category {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 16px;
  background: rgba(255,255,255,0.2);
  border-radius: 8px;
}

.category-name {
  font-size: 14px;
  font-weight: 600;
}

.skill-count {
  font-size: 18px;
  font-weight: 800;
}

/* Org Chart */
.org-chart {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.org-level {
  display: flex;
  justify-content: center;
  gap: 12px;
}

.org-role {
  padding: 8px 16px;
  background: rgba(255,255,255,0.2);
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
}

/* Workflow Diagram */
.workflow-diagram {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.workflow-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.step-icon {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,0.3);
  border-radius: 50%;
  font-size: 18px;
  font-weight: 700;
}

.step-name {
  font-size: 12px;
  font-weight: 600;
}

.workflow-arrow {
  font-size: 24px;
  font-weight: 700;
}

.infographic-body {
  padding: 20px;
}

.infographic-tag {
  display: inline-block;
  padding: 4px 10px;
  background: var(--primary-light);
  color: var(--primary);
  border-radius: var(--radius);
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 12px;
}

.infographic-card h3 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 8px;
  line-height: 1.4;
}

.infographic-card p {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-bottom: 12px;
}

.infographic-link {
  font-size: 13px;
  font-weight: 600;
  color: var(--primary);
}

/* Blog Grid */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.blog-card {
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: var(--transition);
}

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

.blog-image {
  height: 180px;
  overflow: hidden;
}

.blog-body {
  padding: 20px;
}

.blog-category {
  display: inline-block;
  padding: 4px 10px;
  background: var(--primary-light);
  color: var(--primary);
  border-radius: var(--radius);
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 12px;
}

.blog-card h3 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 8px;
  line-height: 1.4;
}

.blog-card p {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-bottom: 12px;
}

.blog-meta {
  display: flex;
  gap: 12px;
  font-size: 12px;
  color: var(--text-muted);
}

/* Responsive */
@media (max-width: 1024px) {
  .infographic-grid { grid-template-columns: repeat(2, 1fr); }
  .blog-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .infographic-grid { grid-template-columns: 1fr; }
  .blog-grid { grid-template-columns: 1fr; }
  .poster-content h2 { font-size: 28px; }
  .poster-stats { flex-wrap: wrap; }
}
