: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;
}

.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);
}