/* 全局样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
}

/* 容器样式 */
.container {
    width: 90%;
    max-width: 1400px;
    margin: 0 auto;
}

/* 顶部导航栏 */
.top-header {
    background: white;
    color: #333;
    padding: 0.5rem 0;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    width: 100%;
    margin: 0;
}
.top-header .container {
    width: 100%;
    max-width: 1040px;
    margin: 0 auto;
    padding: 0;
}
.header-top {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: nowrap;
    gap: 1rem;
}
.logo-container {
    flex-shrink: 0;
}
.logo {
    text-decoration: none;
    position: relative;
    display: inline-block;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.logo img {
    width: 150px;
    height: auto;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.logo:hover img {
    transform: scale(1.05) rotate(-2deg);
}

/* 主导航栏 */
.main-nav {
    background: transparent;
    box-shadow: none;
    position: relative;
    z-index: 999;
}
.nav-menu {
    display: flex;
    list-style: none;
    gap: 0.3rem;
    flex-wrap: nowrap;
    align-items: center;
    margin: 0;
    padding: 0;
}
.nav-item {
    position: relative;
}
.nav-item a {
    display: block;
    padding: 0.6rem 0.8rem;
    color: #333;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.85rem;
    transition: all 0.3s ease;
    position: relative;
    white-space: nowrap;
}
.nav-item a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 3px;
    background: linear-gradient(90deg, #ff6b6b, #667eea);
    transition: width 0.3s ease;
}
.nav-item:hover a::after {
    width: 100%;
}
.nav-item.active a {
    color: #ff6b6b;
}
.nav-item.active a::after {
    width: 100%;
}

/* 底部区域 */
footer {
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    color: white;
    padding: 1rem 0;
    margin-top: 1rem;
    border-top: none;
}
.copyright {
    text-align: center;
    padding-top: 0.5rem;
    border-top: none;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
    margin-top: 0;
}

/* 动画效果 */
@keyframes rainbowText {
    0% { background-position: 0% center; }
    100% { background-position: 200% center; }
}

/* 响应式设计 */
@media (max-width: 1200px) {
    .nav-menu {
        gap: 0.5rem;
    }
    .nav-item a {
        padding: 1rem 1.2rem;
    }
}

@media (max-width: 992px) {
    .header-top {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 768px) {
    .nav-menu {
        flex-direction: column;
    }
    .nav-item {
        border-bottom: 1px solid #e0e0e0;
    }
    .nav-item a {
        padding: 1rem;
    }
}

@media (max-width: 480px) {
    .logo {
        font-size: 1.8rem;
    }
}

/* 复制按钮和打开按钮样式 */
.btn {
    display: inline-block;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    margin-right: 0.5rem;
    cursor: pointer;
    border: none;
    pointer-events: auto;
    position: relative;
    overflow: hidden;
}
.btn-copy {
    background: linear-gradient(135deg, #ff6b6b, #ee5a52);
    color: white;
}
.btn-copy:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 107, 107, 0.4);
}
.btn-open {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
}
.btn-open:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}
.btn-live {
    background: linear-gradient(135deg, #ff6b6b, #ee5a52);
    color: white;
}
.btn-live:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 107, 107, 0.4);
}
.btn-vod {
    background: linear-gradient(135deg, #4ecdc4, #45b7d1);
    color: white;
}
.btn-vod:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(78, 205, 196, 0.4);
}
.btn-epg {
    background: linear-gradient(135deg, #44a08d, #093637);
    color: white;
}
.btn-epg:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(68, 160, 141, 0.4);
}
.btn-tv {
    background: linear-gradient(135deg, #ffd93d, #ff9a3c);
    color: white;
}
.btn-tv:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 217, 61, 0.4);
}

/* 链接输入框样式 */
.link-input {
    width: 100%;
    padding: 0.5rem;
    border: 1px solid #e0e0e0;
    border-radius: 5px;
    background: white;
    color: #333;
    font-size: 1rem;
}
.link-input:focus {
    outline: none;
    border-color: #ff6b6b;
    box-shadow: 0 0 10px rgba(255, 107, 107, 0.3);
}

/* 表格样式 */
.table-container {
    max-width: 1040px;
    margin: 0 auto;
}
table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    color: #333;
    border: 2px solid #1e3c72;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(30, 60, 114, 0.15);
}
th, td {
    padding: 1rem;
    text-align: center;
    border-bottom: 1px solid #e0e0e0;
}
th {
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    font-weight: 700;
    font-size: 1.1rem;
    color: white;
}
tr:hover {
    background: #f5f7fa;
}
tr:last-child td {
    border-bottom: none;
}

/* 表格单元格样式 */
table td:nth-child(3) {
    white-space: normal;
}
table td input {
    width: 100%;
}
table td:last-child {
    white-space: nowrap;
}

/* 文章标题居中 */
.category-item h2 {
    text-align: center;
    margin-bottom: 2rem;
    margin-top: 2rem;
    color: #1e3c72;
    font-size: 1.8rem;
    position: relative;
    padding-bottom: 0.5rem;
    width: 100%;
    display: block;
}

.category-item h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 3px;
    background: linear-gradient(90deg, #ff6b6b, #667eea);
}

/* 导航星星样式 */
.nav-star {
    color: #ffd700;
    font-size: 1.2em;
    animation: rainbowText 3s linear infinite;
}

/* 主表格样式 */
.main-table {
    margin-top: 2rem;
    display: flex;
    justify-content: center;
}

.main-table table {
    width: 90%;
}
