body {
  font-family: system-ui, sans-serif;
  line-height: 1.6;
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem;
  background-color: #f4f4f4;
}

.container {
  background-color: white;
  padding: 2rem;
  border-radius: 8px;
  position: relative;
}

.header-logo {
  position: absolute;
  top: 1rem;
  right: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  color: #666;
}

.header-logo img {
  width: 20px;
  height: 20px;
  object-fit: contain;
}

.header-logo span {
  font-weight: 500;
}

.video-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 1rem;
}

/* 桌面端隐藏卡片式布局 */
.video-cards {
  display: none;
}

.video-table th, .video-table td {
  border: 1px solid #e0e0e0;
  padding: 0.5rem;
  text-align: left;
}

.video-table th {
  background-color: #f9f9f9;
  font-weight: bold;
}

.video-table th.sortable {
  cursor: pointer;
  text-decoration: underline;
}

.video-table tr:nth-child(even) {
  background-color: #f4f4f4;
}

.video-table a {
  color: #333;
  text-decoration: none;
}

.video-table a:hover {
  color: #666;
  text-decoration: underline;
}

.pagination-top, .pagination-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 1rem 0;
}

.pagination-controls button {
  margin: 0 0.25rem;
  padding: 0.25rem 0.5rem;
  background-color: #f0f0f0;
  border: 1px solid #ccc;
  border-radius: 4px;
  cursor: pointer;
}

.pagination-controls button:hover {
  background-color: #e0e0e0;
}

.pagination-info {
  font-size: 0.9rem;
  color: #666;
}

h1 {
  color: #333;
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 2.5rem;
  font-weight: bold;
  margin: 0;
}

.canvas_container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin: 2rem 0;
}

.canvas_container:has(canvas[ref="kickstarterPledgedRef"]) {
  grid-template-columns: 1fr 1fr 1fr;
}

@supports not selector(:has(*)) {
  .canvas_container.kickstarter-charts {
    grid-template-columns: 1fr 1fr 1fr;
  }
}

.canvas_box {
  background-color: #f8f9fa;
  padding: 1rem;
  border-radius: 8px;
  border: 1px solid #e9ecef;
}

.canvas_box canvas {
  width: 100% !important;
  height: auto !important;
  max-height: 300px;
}

/* Google Trends Section */
.google-trends-section {
  margin: 2rem 0;
  padding: 1rem;
  /* background-color: #f8f9fa; */
  /* border-radius: 8px; */
  /* border: 1px solid #e9ecef; */
}

#google-trends-widget {
  width: 100%;
  min-height: 400px;
  background-color: white;
  border-radius: 4px;
  border: 1px solid #ddd;
}

.google-trends-section iframe {
  border-radius: 4px;
  border: 1px solid #ddd;
  background-color: white;
}

/* Footer */
.footer {
  margin-top: 3rem;
  padding: 2rem 0 1rem 0;
  border-top: 1px solid #e9ecef;
  text-align: center;
}

.footer p {
  margin: 0;
  color: #666;
  font-size: 0.9rem;
  font-style: italic;
}

/* Quick Navigation Styles */
.quick-navigation {
  position: fixed;
  top: 20px;
  right: 20px;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  z-index: 1000;
  transition: all 0.3s ease;
}

.quick-navigation.collapsed {
  padding: 0.5rem;
  width: 48px;
  height: 48px;
}

.quick-navigation.expanded {
  padding: 0.8rem;
  min-width: 140px;
}

.nav-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border: none;
  background: transparent;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.2s ease;
  font-size: 1rem;
  flex-shrink: 0;
}

.nav-toggle:hover {
  background: #f5f5f5;
}

.nav-toggle:active {
  transform: scale(0.95);
}

.toggle-icon {
  color: #666;
  font-weight: bold;
}

.quick-navigation.collapsed .toggle-icon::before {
  content: "☰";
}

.quick-navigation.expanded .toggle-icon::before {
  content: "−";
}

.nav-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 0.6rem;
}

.nav-title {
  font-size: 0.75rem;
  font-weight: 600;
  color: #666;
  flex: 1;
}

.nav-items {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 0.6rem;
  border: none;
  background: transparent;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: left;
  font-size: 0.8rem;
}

.nav-item:hover {
  background: #f5f5f5;
}

.nav-item.active {
  background: #e3f2fd;
  color: #1976d2;
  font-weight: 500;
}

.nav-icon {
  font-size: 1rem;
}

/* .nav-label {
  flex: 1;
} */

.nav-footer {
  margin-top: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  justify-content: flex-end;
}

.nav-logo {
  width: 20px;
  height: 20px;
  object-fit: contain;
}

.nav-brand {
  font-size: 0.7rem;
  color: #666;
  font-weight: 500;
}

/* News Section Styles */
.news-section {
  margin: 2rem 0;
}

.news-section h2 {
  margin-bottom: 1.5rem;
  color: #333;
}

.news-loading {
  text-align: center;
  padding: 2rem;
  color: #666;
}

.news-list {
  display: flex;
  flex-direction: column;
}

.news-item {
  padding: 0.75rem;
  border-bottom: 1px solid #e0e0e0;
  transition: background-color 0.2s ease;
}

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

.news-item:hover {
  background-color: #f5f5f5;
}

.news-content {
  flex: 1;
  min-width: 0;
}

.news-content h3 {
  margin: 0 0 0.5rem 0;
  font-size: 1rem;
  line-height: 1.4;
}

.news-content h3 a {
  color: #333;
  text-decoration: none;
  transition: color 0.2s ease;
}

.news-content h3 a:hover {
  color: #1976d2;
  text-decoration: underline;
}

.news-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
  color: #666;
}

.news-source {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.source-icon {
  width: 16px;
  height: 16px;
  border-radius: 2px;
}

.author {
  color: #888;
  font-style: italic;
}

.news-date {
  color: #888;
  font-size: 0.75rem;
}

@media (max-width: 768px) {
  body {
    background-color: transparent;
  }

  .canvas_container {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .canvas_container.kickstarter-charts {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  /* YouTube视频图表移动端优化 */
  .chart-container {
    width: 100%;
    overflow-x: auto;
    margin-bottom: 1rem;
    padding: 0.5rem;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  }
  
  .chart-container canvas {
    min-width: 300px;
    max-width: 100%;
    height: auto !important;
  }
  
  /* 图表标题移动端优化 */
  .chart-title {
    font-size: 1rem;
    margin-bottom: 0.5rem;
    text-align: center;
    font-weight: 600;
  }
  
  h1 {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }
  
  .pagination-top, .pagination-bottom {
    flex-direction: column;
    gap: 0.5rem;
  }
  
  .quick-navigation {
    top: 10px;
    right: 10px;
  }
  
  .quick-navigation.collapsed {
    width: 40px;
    height: 40px;
    padding: 0.4rem;
  }
  
  .quick-navigation.expanded {
    min-width: 120px;
    padding: 0.6rem;
  }
  
  .nav-toggle {
    width: 20px;
    height: 20px;
    font-size: 0.9rem;
  }
  
  .nav-header {
    gap: 6px;
    margin-bottom: 0.5rem;
  }
  
  .nav-title {
    font-size: 0.7rem;
  }
  
  .nav-toggle {
    width: 28px;
    height: 28px;
    font-size: 1rem;
  }
  
  .nav-items {
    flex-direction: column;
  }
  
  .nav-item {
    font-size: 0.75rem;
    padding: 0.4rem 0.5rem;
  }
  
  .nav-footer {
    margin-top: 0.6rem;
  }
  
  .nav-brand {
    font-size: 0.65rem;
  }
  
  .news-item {
    flex-direction: column;
    gap: 0.8rem;
  }
  
  .news-thumbnail {
    width: 100%;
    height: 120px;
  }
  
  .news-meta {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.3rem;
  }
  
  /* 移动端视频表格优化 - 改为卡片式布局 */
  .video-table {
    display: none;
  }
  
  .video-cards {
    display: block;
  }
  
  .video-card {
    padding: 0.75rem;
    border-bottom: 1px solid #e0e0e0;
    transition: background-color 0.2s ease;
    background: white;
  }
  
  .video-card:last-child {
    border-bottom: none;
  }
  
  .video-card:hover {
    background-color: #f5f5f5;
  }
  
  .video-card-title {
    margin: 0;
    font-size: 1rem;
    line-height: 1.4;
    font-weight: 500;
  }
  
  .video-card-title a {
    color: #333;
    text-decoration: none;
    transition: color 0.2s ease;
  }
  
  .video-card-title a:hover {
    color: #1976d2;
    text-decoration: underline;
  }
  
  .video-card-author {
     margin-bottom: 0rem;
     font-size: 0.85rem;
     color: #666;
   }
  
  .video-card-author a {
    color: #666;
    text-decoration: none;
    transition: color 0.2s ease;
  }
  
  .video-card-author a:hover {
    color: #1976d2;
    text-decoration: underline;
  }
  
  .video-card-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.8rem;
    color: #888;
    flex-wrap: wrap;
    gap: 0.5rem;
  }
  
  .video-card-meta-left {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
  }
  
  .video-card-meta-item {
    display: flex;
    align-items: center;
    gap: 0.3rem;
  }
  
  .video-card-meta-label {
    font-weight: 500;
    color: #666;
  }
  
  .video-card-date {
    color: #888;
    font-size: 0.75rem;
  }
  
  /* 整体移动端体验优化 */
  .container {
    padding: 0.5rem;
  }
  
  /* 按钮和控件移动端优化 */
  button, select {
    min-height: 44px;
    font-size: 1rem;
    padding: 0.75rem 1rem;
    border-radius: 6px;
  }
  
  /* 分页控件移动端优化 */
  .pagination button {
    min-width: 44px;
    margin: 0.2rem;
  }
  
  /* 排序控件移动端优化 */
  .sort-controls {
    flex-direction: column;
    gap: 0.5rem;
  }
  
  .sort-controls select {
    width: 100%;
  }
  
  /* 标题和文本移动端优化 */
  h1 {
    font-size: 1.5rem;
  }
  
  h2 {
    font-size: 1.3rem;
    margin: 1rem 0 0.5rem 0;
  }
  
  /* 链接点击区域优化 */
  a {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
  }
  
  /* 表单元素间距优化 */
  .form-group {
    margin-bottom: 1rem;
  }
  
  /* 滚动条优化 */
  .chart-container::-webkit-scrollbar {
    height: 8px;
  }
  
  .chart-container::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
  }
  
  .chart-container::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 4px;
  }
  
  .chart-container::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
  }
}

/* Kickstarter Project Styles */
.kickstarter-section {
  color: #333;
  padding: 1.5rem 0;
  margin-bottom: 2rem;
  border-bottom: 1px solid #e0e0e0;
}

h2 {
  margin: 0 0 1rem 0;
  font-size: 2rem;
  font-weight: bold;
  text-align: left;
  color: #333;
  display: flex;
  align-items: center;
  gap: 1rem;
}

h2 span {
  font-size: 0.7rem;
  color: #666;
  font-weight: normal;
}

.title-content {
  display: flex;
  gap: 2rem;
  align-items: flex-start;
  margin: 1rem 0 1.5rem 0;
}

.title-left {
  flex: 1;
}

.product-description {
  font-size: 1.05rem;
  color: #444;
  line-height: 1.7;
  margin: 1.2rem 0 0 0;
  padding: 0;
  background: none;
  border: none;
  font-weight: 400;
  text-align: justify;
}

.project-link {
  color: #007bff;
  text-decoration: none;
  transition: color 0.2s ease;
}

.project-link:hover {
  color: #0056b3;
  text-decoration: underline;
}

.kickstarter-content {
  max-width: 100%;
}

.project-info {
  margin: 1rem 0;
}

.project-info h3 {
  font-size: 1.3rem;
  margin: 0 0 0.5rem 0;
  color: #333;
}

.project-image {
  flex-shrink: 0;
  width: 280px;
}

.project-image img {
  width: 100%;
  height: auto;
  border-radius: 8px;
}

.project-blurb {
  font-size: 1rem;
  margin: 0 0 1.5rem 0;
  color: #666;
  line-height: 1.5;
}

.project-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 1rem;
  margin: 1rem 0;
}

.stat-item {
  text-align: center;
  padding: 1rem;
  background-color: #f9f9f9;
  border-radius: 8px;
  border: 1px solid #e0e0e0;
}

.stat-value {
  font-size: 1.8rem;
  font-weight: bold;
  margin-bottom: 0.25rem;
  color: #333;
}

.stat-label {
  font-size: 0.85rem;
  color: #666;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.loading, .error {
  text-align: center;
  padding: 2rem;
  font-size: 1.1rem;
}

.error {
  color: #ff6b6b;
}

/* Kickstarter Charts Styles */
.kickstarter-charts-container {
  display: flex;
  justify-content: space-around;
  flex-wrap: wrap;
  margin: 2rem 0;
  gap: 1rem;
}

.chart-wrapper {
  flex: 1;
  min-width: 300px;
  max-width: 400px;
  background-color: #f8f9fa;
  padding: 1rem;
  border-radius: 8px;
  border: 1px solid #e9ecef;
}

.chart-wrapper canvas {
  width: 100% !important;
  height: auto !important;
  max-height: 300px;
}

@media (max-width: 768px) {
  .kickstarter-charts-container {
    flex-direction: column;
    align-items: center;
  }
  
  .chart-wrapper {
    width: 100%;
    max-width: 600px;
  }

  .kickstarter-section {
    padding: 1rem 0;
  }
  
  .kickstarter-section h2 {
    font-size: 1.5rem;
  }
  
  .product-description {
    font-size: 1rem;
    margin: 1rem 0 0 0;
  }
  
  .title-content {
    flex-direction: column;
    gap: 1rem;
  }
  
  .project-image {
    width: 100%;
    max-width: 350px;
    align-self: center;
  }
  
  .project-stats {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
  }
  
  .stat-value {
    font-size: 1.4rem;
  }
  
  .stat-item {
    padding: 0.75rem;
  }
  
  .chart-wrapper {
    min-width: 280px;
  }
}

/* User Comments Section Styles */
.user-comments-section {
  padding: 2rem 0;
}

.header-section {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.date-info {
  text-align: right;
  flex-shrink: 0;
}

.date-label {
  font-size: 0.9rem;
  color: #666;
  margin: 0 0 0.25rem 0;
}

.date-value {
  font-size: 1.2rem;
  font-weight: 600;
  color: #333;
  margin: 0;
}

/* Comments Charts Grid */
.comments-charts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
  margin: 2rem 0;
}

@media (min-width: 1024px) {
  .comments-charts-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.chart-card {
  background-color: #ffffff;
  padding: 10px;
  height: 250px;
  display: flex;
  flex-direction: column;
}

.chart-card h3 {
  font-size: 1.1rem;
  font-weight: 600;
  color: #374151;
  margin: 0 0 1rem 0;
  text-align: center;
}

.chart-wrapper {
  height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.chart-wrapper canvas {
  max-width: 100%;
  max-height: 100%;
  width: auto !important;
  height: auto !important;
}

.chart-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  color: #9ca3af;
  font-style: italic;
  background-color: #f9fafb;
  border: 2px dashed #e5e7eb;
  border-radius: 4px;
}

.loading-placeholder {
  color: #9ca3af;
  font-style: italic;
  background-color: #f9fafb;
  animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes pulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.5;
  }
}

/* Comments Filters */
.comments-filters {
  background-color: #f9fafb;
  padding: 1.5rem;
  border-radius: 8px;
  border: 1px solid #e5e7eb;
  margin-bottom: 2rem;
}

.filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1rem;
}

.filter-row:last-child {
  margin-bottom: 0;
}

.filter-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  min-width: 200px;
}

.filter-group label {
  font-weight: 600;
  color: #374151;
  font-size: 0.9rem;
}

.filter-group select {
  padding: 0.5rem;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  background-color: white;
  font-size: 0.9rem;
}

.sentiment-range {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.sentiment-range input[type="range"] {
  flex: 1;
  min-width: 100px;
}

.sentiment-range span {
  font-size: 0.9rem;
  color: #6b7280;
  min-width: 40px;
}

.sentiment-select {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.sentiment-select select {
  padding: 0.5rem;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  background-color: white;
  font-size: 0.9rem;
  min-width: 180px;
}

.sentiment-select span {
  font-size: 0.9rem;
  color: #6b7280;
  font-weight: 500;
}

.tag-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.tag-filter {
  padding: 0.4rem 0.8rem;
  border: 1px solid #d1d5db;
  border-radius: 20px;
  background-color: white;
  cursor: pointer;
  font-size: 0.85rem;
  transition: all 0.2s ease;
}

.tag-filter:hover {
  background-color: #f3f4f6;
}

.tag-filter.active {
  background-color: #3b82f6;
  color: white;
  border-color: #3b82f6;
}

/* Comments Table */
.comments-table {
  width: 100%;
  border-collapse: collapse;
  margin: 1rem 0;
  background-color: white;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.comments-table th,
.comments-table td {
  padding: 0.75rem;
  text-align: left;
  border-bottom: 1px solid #e5e7eb;
}

.comments-table th {
  background-color: #f9fafb;
  font-weight: 600;
  color: #374151;
  font-size: 0.9rem;
}

.comments-table tr:hover {
  background-color: #f9fafb;
}

.comment-text {
  max-width: 300px;
}

.comment-content {
  line-height: 1.4;
  color: #374151;
}

/* Comments Cards (Mobile) */
.comments-cards {
  display: none;
}

.comment-card {
  background-color: white;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 1rem;
  margin-bottom: 1rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.comment-card-content {
  font-size: 0.95rem;
  line-height: 1.5;
  color: #374151;
  margin-bottom: 0.75rem;
}

.comment-card-author {
  font-size: 0.85rem;
  color: #6b7280;
  margin-bottom: 0.5rem;
}

.comment-card-video {
  font-size: 0.85rem;
  color: #6b7280;
  margin-bottom: 0.75rem;
}

.comment-card-video a {
  color: #3b82f6;
  text-decoration: none;
}

.comment-card-video a:hover {
  text-decoration: underline;
}

.comment-card-meta {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
}

.comment-card-meta-left {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.comment-card-meta-item {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.8rem;
}

.comment-card-meta-label {
  font-size: 0.9rem;
}

.comment-card-date {
  font-size: 0.8rem;
  color: #6b7280;
}

/* Mobile Responsive */
@media (max-width: 768px) {
  .header-section {
    flex-direction: column;
    gap: 1rem;
  }
  
  .date-info {
    text-align: left;
  }
  
  .comments-charts-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  
  .filter-row {
    flex-direction: column;
  }
  
  .filter-group {
    min-width: auto;
  }
  
  .comments-table {
    display: none;
  }
  
  .comments-cards {
    display: block;
  }
  
  .comment-card-meta-left {
    flex-direction: column;
    gap: 0.5rem;
    align-items: flex-start;
  }
}