:root {
  --primary-color: #4CAF50;
  --text-color: #e4e4e4;
  --background-color: #1a1a1a;
  --section-padding: 2rem;
  --card-background: #2a2a2a;
  --border-color: #333;
  --hover-color: #3d3d3d;
}

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

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  line-height: 1.6;
  color: var(--text-color);
  background-color: var(--background-color);
}

.tv-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

.main-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 0;
  border-bottom: 1px solid var(--border-color);
}

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

.github-link {
  color: var(--text-color);
  text-decoration: none;
  padding: 0.5rem 1rem;
  border-radius: 4px;
  border: 1px solid var(--border-color);
  transition: all 0.3s ease;
}

.github-link:hover {
  background-color: var(--hover-color);
}

.hero-section {
  text-align: center;
  padding: var(--section-padding);
}

.hero-title {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  color: var(--primary-color);
}

.hero-subtitle {
  font-size: 1.2rem;
  color: #888;
  margin-bottom: 2rem;
}

.cta-buttons {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  align-items: center;
}

.cta-side-links {
  display: flex;
  flex-direction: row;
  gap: 0.5rem;
  justify-content: center;
}

.secondary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.35rem 0.75rem;
  font-size: 0.75rem;
  color: var(--primary-color);
  background: transparent;
  border: 1px solid var(--primary-color);
  border-radius: 6px;
  text-decoration: none;
  white-space: nowrap;
  transition: all 0.3s ease;
}

.secondary-button:hover {
  background: rgba(76, 175, 80, 0.12);
}

.primary-button {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.8rem 1.5rem;
  background-color: var(--primary-color);
  color: white;
  text-decoration: none;
  border-radius: 4px;
  transition: all 0.3s ease;
  border: none;
}

.primary-button:hover {
  background-color: #3d8b40;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(76, 175, 80, 0.2);
}

.features-section {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  padding: var(--section-padding);
}

.feature-card {
  padding: 1.5rem;
  border-radius: 8px;
  background-color: var(--card-background);
  border: 1px solid var(--border-color);
  transition: transform 0.3s ease;
}

.feature-card:hover {
  transform: translateY(-5px);
}

.feature-card h3 {
  color: var(--primary-color);
  margin-bottom: 1rem;
}

.feature-card ul {
  list-style: none;
}

.feature-card li {
  margin-bottom: 0.5rem;
  color: #bbb;
}

.download-section {
  background-color: var(--card-background);
  padding: var(--section-padding);
  border-radius: 8px;
  margin: 2rem 0;
}

.download-options {
  display: flex;
  gap: 1rem;
  justify-content: center;
  margin-top: 1rem;
}

.download-link {
  color: var(--text-color);
  text-decoration: none;
  padding: 0.8rem 1.5rem;
  border-radius: 4px;
  border: 1px solid var(--border-color);
  transition: all 0.3s ease;
}

.download-link:hover {
  background-color: var(--hover-color);
  border-color: var(--primary-color);
}

.preview-images {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1rem;
  padding: var(--section-padding);
}

.preview-images img {
  width: 100%;
  border-radius: 8px;
  transition: transform 0.3s ease;
  border: 1px solid var(--border-color);
}

.preview-images img:hover {
  transform: scale(1.02);
}

.social-links {
  display: flex;
  justify-content: center;
  gap: 2rem;
  padding: var(--section-padding);
}

.social-card {
  text-align: center;
  padding: 1rem;
  background-color: var(--card-background);
  border-radius: 8px;
  border: 1px solid var(--border-color);
}

.social-card img {
  max-width: 200px;
  border-radius: 8px;
  margin-bottom: 1rem;
}

.social-card p {
  color: #888;
}

.main-footer {
  text-align: center;
  padding: 2rem 0;
  margin-top: 2rem;
  border-top: 1px solid var(--border-color);
  color: #888;
}

@media (max-width: 768px) {
  .hero-title {
    font-size: 2rem;
  }

  .features-section {
    grid-template-columns: 1fr;
  }

  .social-links {
    flex-direction: column;
    align-items: center;
  }

  .download-options {
    flex-direction: column;
    align-items: center;
  }

}

html,
body {
  margin: 0;
  background: var(--background-color);
  font-size: 100%;
}

:root {
  font-size: 100%;
}

.tv-body {
  width: 100%;
  background: var(--background-color);
  display: flex;
  flex-direction: column;
  visibility: visible;
  height: 100%;
}

.tv-header {
  /*  overflow-x: hidden;  justify-content: space-around;*/
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  margin-top: 3vh;
  justify-content: space-around
}

.tv-footer {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: space-around
}

.tv-text {
  text-align: center;
  font-size: 4vh;
  color: var(--text-color);
}

.tv-content {
  flex: 1;
  overflow-y: auto;
  display: grid;
  grid-template-columns: repeat(5, 20%);
}

.tv-item {
  padding: 0.5vw;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-around;
  font-size: 1.3vw;
}

.tv-channel {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  flex-grow: 1;
  justify-content: space-around
}

.tv-tab-flex {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  flex-grow: 1;
  justify-content: space-around
}

.tv-tab-grid {
  flex: 1;
  overflow-y: auto;
  display: grid;
  grid-template-columns: repeat(6, 16.6%);
}

.tv-grid-6 {
  grid-template-columns: repeat(6, 16.6%);
}

.tv-grid-4 {
  grid-template-columns: repeat(4, 25%);
}

.tab-grid-item {
  white-space: normal;
  /* 或者 pre-wrap，根据需求选择 */
  word-break: break-all;
  /* 允许在任何字符之后断行 */
}

.tv-hide {
  display: none;
}

.tv-flex-around {
  justify-content: space-around;
}

.tv-menu {
  overflow-x: hidden;
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: space-around
}

.tv-btn {
  font-size: 3rem;
  padding: 0.25rem 0.5rem;
  line-height: 4rem;
  border-radius: 1rem;
  text-decoration: none;
  align-content: center;
  vertical-align: middle;
  /* width: fit-content;*/
  white-space: normal;
  text-align: center;
  color: var(--text-color);
  cursor: pointer;
  word-spacing: normal;
  background-color: var(--card-background);
  flex-shrink: 0;
  border: 1px solid var(--border-color);
  transition: all 0.3s ease;
}

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

.tv-btn-vw {
  padding: 0.5vw 1vw;
  font-size: 2.5vw;
  margin: 0.5vw 0.3vw;
  border-radius: 2vw;
}

.tv-font-bold {
  font-weight: bold;
}

.tv-btn-choose {
  background-color: var(--primary-color);
  color: white;
}

.tv-bg-yellow {
  background-color: #E3EDCD;
}

.tv-front {
  font-size: 2vw;
}

.tv-btn-warm {
  background-color: #ffb800;
}

.tv-active {
  background-color: #71b371;
}

.install-guide a {
  color: var(--text-color);
  text-decoration: none;
  padding: 0.5rem 1rem;
  border-radius: 4px;
  border: 1px solid var(--border-color);
  transition: all 0.3s ease;
  display: inline-block;
  margin-top: 1rem;
}

.install-guide a:hover {
  background-color: var(--hover-color);
  border-color: var(--primary-color);
  color: var(--primary-color);
}

/* 顶部推荐链接样式 - 极致醒目方案：橘色背景 + 绿色按钮 */
.recommend-banner {
  background: linear-gradient(90deg, #ffb800, #ff8c00);
  /* 恢复橘色背景 */
  text-align: center;
  padding: 10px 0;
  font-weight: bold;
  font-size: 1.1rem;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
  position: relative;
  z-index: 100;
}

.recommend-banner a {
  color: #ffffff;
  /* 白色字体 */
  background-color: #2e7d32;
  /* 绿色按钮背景 */
  text-decoration: none;
  display: inline-block;
  padding: 6px 24px;
  border-radius: 50px;
  border: 2px solid #ffffff;
  /* 白色边框增加对比度 */
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.recommend-banner a:hover {
  background-color: #1b5e20;
  /* 悬停时深绿色 */
  transform: scale(1.05) translateY(-2px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
}

.recommend-banner .new-tag {
  background-color: #ffffff;
  color: #ff5252;
  font-size: 0.75rem;
  padding: 2px 8px;
  border-radius: 4px;
  margin-right: 10px;
  vertical-align: middle;
}