:root {
  --brand-purple: #8b5cf6;
  --brand-purple-dark: #2e1065;
  --brand-yellow: #fde047;
  --bg-light: #faf8ff;
  --text-main: #4b5563;
  --text-muted: #9ca3af;
  --border-purple: #ddd6fe;
  --white: #ffffff;
  --shadow-purple: rgba(139, 92, 246, 0.15);
  --radius-md: 12px;
  --radius-lg: 20px;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background-color: var(--bg-light);
  color: var(--text-main);
  line-height: 1.6;
  overflow-x: hidden;
}
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { max-width: 100%; display: block; object-fit: cover; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* Typography */
h1, h2, h3, h4 { color: var(--brand-purple-dark); font-weight: 700; line-height: 1.3; }
h1 { font-size: 2.5rem; margin-bottom: 16px; }
h2 { font-size: 1.8rem; margin-bottom: 24px; position: relative; display: inline-block; }
h2::after {
  content: ''; position: absolute; left: 0; bottom: -8px;
  width: 40px; height: 4px; background: var(--brand-purple); border-radius: 2px;
}
h3 { font-size: 1.2rem; margin-bottom: 12px; }
p { margin-bottom: 12px; font-size: 0.95rem; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 12px 28px; border-radius: 30px; font-weight: 600; font-size: 1rem;
  transition: all 0.3s ease; cursor: pointer; border: none;
}
.btn-primary { background: var(--brand-purple); color: var(--white); box-shadow: 0 4px 14px var(--shadow-purple); }
.btn-primary:hover { background: #7c3aed; transform: translateY(-2px); box-shadow: 0 6px 20px var(--shadow-purple); }
.btn-secondary { background: var(--white); color: var(--brand-purple); border: 2px solid var(--brand-purple); }
.btn-secondary:hover { background: #f3f0ff; }
.btn-yellow { background: var(--brand-yellow); color: var(--brand-purple-dark); }
.btn-yellow:hover { background: #fcd34d; transform: translateY(-2px); }

/* Header */
header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 255, 255, 0.95); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-purple);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 70px; }
.logo { display: flex; align-items: center; gap: 10px; font-weight: 700; color: var(--brand-purple-dark); font-size: 1.2rem; }
.logo img { height: 32px; width: auto; }
.nav-links { display: flex; gap: 24px; }
.nav-links a { font-weight: 500; font-size: 0.95rem; position: relative; padding-bottom: 4px; transition: color 0.3s; }
.nav-links a:hover, .nav-links a.active { color: var(--brand-purple); }
.nav-links a.active::after {
  content: ''; position: absolute; bottom: 0; left: 0; width: 100%; height: 2px; background: var(--brand-purple); border-radius: 1px;
}
.header-cta { display: none; }
@media (min-width: 1024px) { .header-cta { display: block; } }

/* Hero Banner */
.hero {
  background: linear-gradient(135deg, #f3e8ff 0%, #fef08a 100%);
  padding: 60px 0; border-radius: 0 0 30px 30px; margin-bottom: 40px;
}
.hero-content { display: flex; flex-direction: column; gap: 30px; align-items: center; text-align: center; }
@media (min-width: 768px) {
  .hero-content { flex-direction: row; text-align: left; justify-content: space-between; }
}
.hero-text { max-width: 500px; }
.hero-text h1 { font-size: 2.8rem; letter-spacing: -0.5px; }
.hero-text p { font-size: 1.1rem; color: var(--text-main); margin-bottom: 24px; }
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; justify-content: center; }
@media (min-width: 768px) { .hero-actions { justify-content: flex-start; } }
.hero-img {
  width: 100%; max-width: 400px; border-radius: var(--radius-lg);
  box-shadow: 0 10px 30px rgba(139, 92, 246, 0.2); border: 4px solid var(--white);
}

/* Sections Common */
section { padding: 40px 0; }
.section-header { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 30px; }
.section-header a { color: var(--brand-purple); font-weight: 500; font-size: 0.9rem; }
.section-header a:hover { text-decoration: underline; }

/* Grid Layouts */
.grid-3 { display: grid; grid-template-columns: 1fr; gap: 24px; }
.grid-2 { display: grid; grid-template-columns: 1fr; gap: 24px; }
.grid-4 { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
@media (min-width: 768px) {
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .grid-2 { grid-template-columns: repeat(2, 1fr); }
  .grid-4 { grid-template-columns: repeat(4, 1fr); }
}
@media (min-width: 1024px) {
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
}

/* Cards */
.card {
  background: var(--white); border: 1px solid var(--border-purple); border-radius: var(--radius-md);
  overflow: hidden; transition: all 0.3s ease; display: flex; flex-direction: column;
}
.card:hover {
  border-color: var(--brand-purple); transform: translateY(-4px); box-shadow: 0 12px 24px rgba(139, 92, 246, 0.1);
}
.card-img-wrap { position: relative; width: 100%; padding-top: 130%; overflow: hidden; }
.card-img-wrap img { position: absolute; top: 0; left: 0; width: 100%; height: 100%; transition: transform 0.5s ease; }
.card:hover .card-img-wrap img { transform: scale(1.05); }
.tag {
  position: absolute; top: 10px; left: 10px; background: var(--brand-purple-dark); color: var(--white);
  font-size: 0.75rem; padding: 4px 10px; border-radius: 20px; font-weight: 500; backdrop-filter: blur(4px);
}
.card-info { padding: 16px; flex: 1; display: flex; flex-direction: column; }
.card-info h3 { margin-bottom: 8px; font-size: 1.1rem; }
.card-info p { color: var(--text-muted); font-size: 0.85rem; margin-bottom: 12px; flex-grow: 1; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card-meta { display: flex; justify-content: space-between; align-items: center; font-size: 0.85rem; color: var(--brand-purple); font-weight: 600; }

/* Radar Section */
.radar-section { background: #f8f5ff; border-radius: var(--radius-lg); padding: 40px 20px; }
.radar-grid { display: grid; grid-template-columns: 1fr; gap: 40px; }
@media (min-width: 768px) { .radar-grid { grid-template-columns: 1fr 1fr; } }
.radar-chart { display: flex; flex-direction: column; gap: 20px; }
.bar-item { display: flex; align-items: center; gap: 12px; }
.bar-label { width: 80px; font-weight: 600; font-size: 0.9rem; color: var(--brand-purple-dark); }
.bar-track { flex: 1; height: 12px; background: var(--border-purple); border-radius: 6px; overflow: hidden; }
.bar-fill { height: 100%; border-radius: 6px; background: linear-gradient(90deg, var(--brand-purple), var(--brand-yellow)); position: relative; transition: width 1s ease; }
.bar-fill::after { content: ''; position: absolute; right: 0; top: 0; bottom: 0; width: 20px; background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4)); }
.hot-list { display: flex; flex-direction: column; gap: 16px; }
.hot-item {
  background: var(--white); padding: 16px; border-radius: var(--radius-md); border-left: 4px solid var(--brand-purple);
  box-shadow: 0 2px 10px rgba(0,0,0,0.03); transition: all 0.2s;
}
.hot-item:hover { transform: translateX(4px); box-shadow: 0 4px 15px var(--shadow-purple); border-left-color: var(--brand-yellow); }
.hot-item h4 { font-size: 1rem; margin-bottom: 4px; display: flex; align-items: center; gap: 8px; }
.hot-item h4 span { font-size: 0.8rem; background: #fef08a; color: #854d0e; padding: 2px 8px; border-radius: 4px; }
.hot-item p { font-size: 0.85rem; color: var(--text-muted); margin: 0; }

/* Barrage / Comment Section */
.barrage-section { background: var(--white); border-radius: var(--radius-lg); padding: 40px 20px; }
.word-cloud { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-bottom: 40px; }
.word-tag {
  padding: 8px 16px; border-radius: 30px; font-weight: 600; font-size: 0.9rem; cursor: pointer; transition: all 0.3s;
  background: #f3f0ff; color: var(--brand-purple); border: 1px dashed var(--border-purple);
}
.word-tag:nth-child(even) { background: #fefce8; color: #a16207; border-color: #fde047; }
.word-tag:hover { transform: scale(1.05); border-style: solid; box-shadow: 0 4px 10px var(--shadow-purple); }
.comments-grid { display: grid; grid-template-columns: 1fr; gap: 20px; }
@media (min-width: 768px) { .comments-grid { grid-template-columns: repeat(2, 1fr); } }
.comment-card {
  background: var(--bg-light); padding: 20px; border-radius: var(--radius-md); border: 1px dashed var(--border-purple);
  display: flex; gap: 16px; position: relative;
}
.comment-avatar { width: 48px; height: 48px; border-radius: 50%; background: linear-gradient(135deg, var(--brand-purple), #c084fc); display: flex; align-items: center; justify-content: center; color: white; font-weight: bold; font-size: 1.2rem; flex-shrink: 0; }
.comment-content p { font-size: 0.95rem; color: var(--text-main); margin-bottom: 8px; font-style: italic; }
.comment-meta { display: flex; justify-content: space-between; align-items: center; font-size: 0.8rem; color: var(--text-muted); }
.likes { color: var(--brand-purple); font-weight: 600; display: flex; align-items: center; gap: 4px; }
.likes::before { content: '👍'; font-size: 0.9rem; }

/* Image Split Sections */
.split-section { display: flex; flex-direction: column; gap: 30px; align-items: center; }
@media (min-width: 768px) { .split-section { flex-direction: row; } }
.split-img { flex: 1; border-radius: var(--radius-lg); overflow: hidden; box-shadow: 0 10px 30px rgba(0,0,0,0.05); }
.split-text { flex: 1; }
.split-text ul { margin-top: 20px; display: flex; flex-direction: column; gap: 12px; }
.split-text li { display: flex; align-items: center; gap: 10px; font-weight: 500; }
.split-text li::before { content: '✔'; color: var(--brand-yellow); background: var(--brand-purple); width: 24px; height: 24px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 0.8rem; }

/* Image Wall */
.image-wall { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
@media (min-width: 768px) { .image-wall { grid-template-columns: repeat(4, 1fr); } }
.image-wall img { width: 100%; height: 200px; object-fit: cover; border-radius: var(--radius-md); transition: transform 0.3s; }
.image-wall img:hover { transform: scale(1.02); }

/* Review Section */
.review-grid { display: grid; grid-template-columns: 1fr; gap: 20px; }
@media (min-width: 768px) { .review-grid { grid-template-columns: repeat(3, 1fr); } }
.review-card { background: var(--white); padding: 24px; border-radius: var(--radius-md); border-left: 4px solid var(--brand-purple); box-shadow: 0 4px 15px rgba(0,0,0,0.02); }
.review-stars { color: #fbbf24; font-size: 1.1rem; margin-bottom: 12px; }
.review-text { font-size: 0.9rem; color: var(--text-main); margin-bottom: 16px; }
.review-user { font-size: 0.8rem; color: var(--text-muted); font-weight: 600; }

/* Download Section */
.download-section {
  background: linear-gradient(135deg, var(--brand-purple-dark) 0%, var(--brand-purple) 100%);
  border-radius: var(--radius-lg); padding: 60px 20px; text-align: center; color: var(--white);
}
.download-section h2 { color: var(--white); }
.download-section h2::after { background: var(--brand-yellow); }
.download-section p { color: #e9d5ff; font-size: 1.1rem; margin-bottom: 30px; max-width: 600px; margin-left: auto; margin-right: auto; }
.download-actions { display: flex; justify-content: center; gap: 16px; flex-wrap: wrap; }

/* Footer */
footer {
  background: var(--white); padding: 30px 0; border-top: 1px solid var(--border-purple);
  text-align: center; font-size: 0.85rem; color: var(--text-muted);
}
.footer-content { display: flex; flex-direction: column; align-items: center; gap: 12px; }
footer a { color: var(--text-muted); transition: color 0.3s; }
footer a:hover { color: var(--brand-purple); }

/* Floating Button */
.float-btn {
  position: fixed; bottom: 30px; right: 30px; z-index: 99;
  background: var(--brand-purple); color: var(--brand-yellow);
  padding: 14px 24px; border-radius: 30px; font-weight: 700; font-size: 1rem;
  box-shadow: 0 8px 25px rgba(139, 92, 246, 0.4); display: flex; align-items: center; gap: 8px;
  transition: all 0.3s ease; animation: pulse 2s infinite;
}
.float-btn:hover { background: var(--brand-purple-dark); color: var(--brand-yellow); transform: translateY(-3px); }
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(139, 92, 246, 0.4); }
  70% { box-shadow: 0 0 0 15px rgba(139, 92, 246, 0); }
  100% { box-shadow: 0 0 0 0 rgba(139, 92, 246, 0); }
}

/* Helpers */
@media (max-width: 767px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.5rem; }
  .hero-content { padding: 0 10px; }
  .float-btn { bottom: 20px; right: 20px; padding: 12px 20px; font-size: 0.9rem; }
  .nav-links { display: none; }
}