:root {
  --primary: #ff4d4d;
  --secondary: #1e1e24;
  --bg-dark: #121212;
  --bg-light: #f8f9fa;
  --text-dark: #333333;
  --text-light: #f0f0f0;
  --accent: #ffb703;
  --font-main: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

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

body {
  font-family: var(--font-main);
  line-height: 1.6;
  color: var(--text-dark);
  background-color: var(--bg-dark);
  overflow-x: hidden;
}

a {
  text-decoration: none;
  color: inherit;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

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

/* Header */
.site-header {
  background: var(--bg-dark);
  position: sticky;
  top: 0;
  z-index: 100;
  padding: 12px 0;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

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

.brand-logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.brand-logo img {
  height: 32px;
  width: auto;
  border-radius: 6px;
}

.brand-name {
  font-size: 20px;
  font-weight: bold;
  color: var(--text-light);
  letter-spacing: 1px;
}

.nav-links {
  display: flex;
  gap: 16px;
}

.nav-links a {
  color: rgba(255,255,255,0.7);
  font-size: 14px;
  transition: color 0.2s;
}

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

/* Mobile Menu Toggle */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text-light);
  font-size: 24px;
  cursor: pointer;
}

/* Hero Section */
.hero {
  background: linear-gradient(135deg, #1e1e24 0%, #2a1a20 100%);
  padding: 40px 0;
  color: var(--text-light);
  position: relative;
  overflow: hidden;
}

.hero-content {
  display: flex;
  flex-direction: column;
  gap: 24px;
  text-align: center;
  position: relative;
  z-index: 2;
}

.hero h1 {
  font-size: 32px;
  line-height: 1.3;
  background: linear-gradient(90deg, #ff4d4d, #ffb703);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  font-weight: 800;
}

.hero p {
  font-size: 16px;
  color: rgba(255,255,255,0.7);
  max-width: 600px;
  margin: 0 auto;
}

.hero-downloads {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 16px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  border-radius: 30px;
  font-weight: 600;
  font-size: 15px;
  transition: transform 0.2s, opacity 0.2s;
}

.btn:active {
  transform: scale(0.96);
}

.btn-primary {
  background: var(--primary);
  color: #fff;
}

.btn-secondary {
  background: rgba(255,255,255,0.15);
  color: #fff;
  border: 1px solid rgba(255,255,255,0.2);
}

.marquee-container {
  margin-top: 30px;
  width: 100%;
  overflow: hidden;
  white-space: nowrap;
  background: rgba(0,0,0,0.3);
  padding: 10px 0;
  border-top: 1px solid rgba(255,255,255,0.05);
  border-bottom: 1px solid rgba(255,255,255,0.05);
}

.marquee-text {
  display: inline-block;
  animation: marquee 20s linear infinite;
  font-weight: bold;
  font-size: 16px;
  background: linear-gradient(90deg, #ff4d4d, #ffb703, #ff4d4d);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

@keyframes marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* Sections General */
section {
  padding: 50px 0;
}

.section-title {
  font-size: 24px;
  font-weight: 800;
  margin-bottom: 30px;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.section-title::before,
.section-title::after {
  content: '';
  display: block;
  width: 30px;
  height: 2px;
  background: currentColor;
  opacity: 0.3;
}

/* Section: 达人力荐区 */
.section-talent {
  background: linear-gradient(180deg, #1a0a0a 0%, #121212 100%);
  color: var(--text-light);
}

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

.talent-card {
  background: rgba(255,255,255,0.05);
  border-radius: 12px;
  padding: 16px;
  display: flex;
  gap: 16px;
  border: 1px solid rgba(255,255,255,0.08);
}

.talent-card img {
  width: 100px;
  height: 140px;
  object-fit: cover;
  border-radius: 8px;
  flex-shrink: 0;
}

.talent-info h3 {
  font-size: 16px;
  color: var(--accent);
  margin-bottom: 6px;
}

.talent-info p {
  font-size: 13px;
  color: rgba(255,255,255,0.6);
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Section: 周末解压局 */
.section-weekend {
  background: #fff5f5;
  color: var(--text-dark);
}

.weekend-layout {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.weekend-left {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.weekend-left img {
  width: 100%;
  border-radius: 12px;
  box-shadow: 0 8px 16px rgba(0,0,0,0.1);
}

.weekend-right {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

.weekend-item {
  background: #fff;
  padding: 14px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  border-left: 4px solid var(--accent);
}

.weekend-item h3 {
  font-size: 15px;
  margin-bottom: 4px;
}

.weekend-item p {
  font-size: 13px;
  color: #666;
}

/* Section: 热搜同款库 */
.section-hot {
  background: #0f172a;
  color: var(--text-light);
}

.hot-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 12px;
}

.hot-item {
  background: #1e293b;
  border-radius: 8px;
  padding: 12px;
  text-align: center;
  border: 1px solid #334155;
}

.hot-item img {
  width: 100%;
  aspect-ratio: 3/4;
  object-fit: cover;
  border-radius: 6px;
  margin-bottom: 8px;
}

.hot-item span {
  font-size: 13px;
  font-weight: 600;
  color: #e2e8f0;
}

/* Section: 脑洞二创坊 */
.section-brain {
  background: #1c1c1c;
  color: var(--text-light);
}

.brain-layout {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.brain-text {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.brain-text h3 {
  font-size: 18px;
  color: var(--accent);
}

.brain-text p {
  font-size: 14px;
  color: rgba(255,255,255,0.7);
}

.brain-img {
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(0,0,0,0.3);
}

/* Section: 吐槽发射台 */
.section-roast {
  background: #fff;
  color: var(--text-dark);
}

.roast-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.roast-card {
  background: #f8f9fa;
  padding: 16px;
  border-radius: 12px;
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.roast-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.roast-content h4 {
  font-size: 15px;
  margin-bottom: 4px;
  color: var(--primary);
}

.roast-content p {
  font-size: 14px;
  color: #444;
}

/* Section: 每日金句墙 */
.section-quotes {
  background: #2d2d44;
  color: var(--text-light);
  padding: 60px 0;
}

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

.quote-card {
  background: rgba(255,255,255,0.05);
  padding: 20px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.1);
  position: relative;
}

.quote-card::before {
  content: '“';
  font-size: 40px;
  color: var(--accent);
  position: absolute;
  top: 5px;
  left: 10px;
  opacity: 0.3;
}

.quote-card p {
  font-size: 15px;
  padding-left: 24px;
  font-style: italic;
}

/* Section: 隐私安全 */
.section-privacy {
  background: #f0fdf4;
  color: var(--text-dark);
}

.privacy-content {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.privacy-content h3 {
  font-size: 18px;
  color: #166534;
}

.privacy-content p {
  font-size: 14px;
  color: #333;
}

/* Section: 常见问题 */
.section-faq {
  background: #fff;
  color: var(--text-dark);
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-item {
  background: #f8f9fa;
  border-radius: 8px;
  padding: 16px;
  border-left: 4px solid var(--primary);
}

.faq-item h3 {
  font-size: 15px;
  margin-bottom: 6px;
}

.faq-item p {
  font-size: 14px;
  color: #555;
}

/* Section: 客户端下载 */
.section-download {
  background: linear-gradient(135deg, #1e1e24 0%, #2a1a20 100%);
  color: var(--text-light);
  text-align: center;
}

.download-steps {
  margin-bottom: 30px;
  text-align: left;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.download-steps h3 {
  font-size: 18px;
  margin-bottom: 12px;
  color: var(--accent);
}

.download-steps ol {
  padding-left: 20px;
}

.download-steps li {
  font-size: 14px;
  color: rgba(255,255,255,0.8);
  margin-bottom: 8px;
}

.download-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

/* Floating Download */
.floating-download {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--primary);
  color: #fff;
  padding: 12px 24px;
  border-radius: 30px;
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 4px 12px rgba(255,77,77,0.4);
  z-index: 999;
  font-weight: bold;
  font-size: 15px;
  animation: floatPulse 2s infinite;
}

.floating-download img {
  width: 24px;
  height: 24px;
  border-radius: 4px;
}

@keyframes floatPulse {
  0% { transform: translateX(-50%) scale(1); }
  50% { transform: translateX(-50%) scale(1.05); }
  100% { transform: translateX(-50%) scale(1); }
}

/* Footer */
.site-footer {
  background: #0a0a0a;
  color: rgba(255,255,255,0.4);
  padding: 30px 0;
  font-size: 12px;
  text-align: center;
}

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

.footer-links a {
  color: rgba(255,255,255,0.6);
}

.footer-info {
  margin-bottom: 8px;
}

/* Modal for Baidu App */
.modal {
  display: none;
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.6);
  z-index: 1000;
  align-items: center;
  justify-content: center;
}

.modal.active {
  display: flex;
}

.modal-content {
  background: #fff;
  color: #333;
  padding: 24px;
  border-radius: 12px;
  width: 90%;
  max-width: 320px;
  text-align: center;
}

.modal-content p {
  margin-bottom: 16px;
  font-size: 14px;
}

.modal-content input {
  width: 100%;
  padding: 10px;
  border: 1px solid #ddd;
  border-radius: 6px;
  margin-bottom: 12px;
  font-size: 13px;
}

.modal-content button {
  background: var(--primary);
  color: #fff;
  border: none;
  padding: 10px 20px;
  border-radius: 20px;
  cursor: pointer;
  font-size: 14px;
}

/* Responsive */
@media (min-width: 768px) {
  .hero h1 { font-size: 42px; }
  .hero p { font-size: 18px; }
  .talent-grid { grid-template-columns: repeat(2, 1fr); }
  .weekend-layout { flex-direction: row; align-items: flex-start; }
  .weekend-left { flex: 1; }
  .weekend-right { flex: 1; grid-template-columns: 1fr 1fr; }
  .hot-list { grid-template-columns: repeat(4, 1fr); }
  .brain-layout { flex-direction: row; align-items: center; }
  .brain-text { flex: 1; }
  .brain-img { flex: 1; }
  .roast-list { flex-direction: row; flex-wrap: wrap; }
  .roast-card { width: calc(50% - 8px); }
  .quote-grid { grid-template-columns: repeat(2, 1fr); }
  .privacy-content { flex-direction: row; gap: 30px; }
  .privacy-content > div { flex: 1; }
  .nav-links { display: flex; }
}

@media (min-width: 1024px) {
  .hero h1 { font-size: 56px; }
  .talent-grid { grid-template-columns: repeat(3, 1fr); }
  .hot-list { grid-template-columns: repeat(5, 1fr); }
  .roast-card { width: calc(33.333% - 11px); }
  .quote-grid { grid-template-columns: repeat(3, 1fr); }
  .floating-download { bottom: 40px; padding: 16px 32px; font-size: 16px; }
}

@media (max-width: 767px) {
  .nav-links { display: none; }
  .nav-links.active {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg-dark);
    padding: 16px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
  }
  .menu-toggle { display: block; }
  .hero { padding: 30px 0; }
  .hero h1 { font-size: 24px; }
  .section-title { font-size: 20px; }
  .weekend-right { grid-template-columns: 1fr; }
  .hot-list { grid-template-columns: repeat(2, 1fr); }
  .roast-card { flex-direction: column; }
  .quote-grid { grid-template-columns: 1fr; }
  .privacy-content { flex-direction: column; }
  .floating-download { bottom: 16px; padding: 10px 20px; font-size: 14px; }
}