/* ============================================
   页面特定样式 - 轮播图、电视机、关于我们、动态网格、联系我们
   以及资讯列表、资讯详情、服务详情等页面样式
   ============================================ */

/* 电视机样式 */
.tv-container {
    max-width: 1000px;
    margin: 0 auto;
    position: relative;
}

.tv-set {
    background: linear-gradient(135deg, #1a3a5c, #0f2a45);
    border-radius: 35px 35px 25px 25px;
    padding: 25px 25px 35px 25px;
    box-shadow: 0 25px 45px rgba(0, 0, 0, 0.25), inset 0 1px 0 rgba(255,255,255,0.08);
    position: relative;
    border-bottom: 3px solid #ff6600;
}

.tv-screen-frame {
    background: linear-gradient(135deg, #2a2a2a, #1a1a1a);
    border-radius: 18px;
    padding: 12px;
    box-shadow: inset 0 0 0 2px #4a6a8a, 0 0 0 3px #0a1a2a;
}

.tv-screen {
    background: linear-gradient(135deg, #0066cc, #003d77);
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    height: 350px;
    box-shadow: inset 0 0 30px rgba(0,0,0,0.4);
}

.tv-slider-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
}

.tv-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.tv-slide.active {
    opacity: 1;
    z-index: 1;
}

.tv-slide img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: linear-gradient(135deg, #0a0a0a, #1a1a2e);
}

/* 轮播图标题样式 - 显示在图片底部（不遮挡图片主体） */
.tv-slide-title {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.8), rgba(0,0,0,0.4));
    color: white;
    padding: 15px 20px;
    font-size: 18px;
    font-weight: 500;
    text-align: center;
    z-index: 10;
    backdrop-filter: blur(4px);
    pointer-events: none;
}

.tv-controls {
    position: absolute;
    bottom: -22px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 20px;
    z-index: 10;
}

.tv-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: linear-gradient(135deg, #0066cc, #004d99);
    border: none;
    color: white;
    font-size: 18px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    display: flex;
    align-items: center;
    justify-content: center;
}

.tv-btn:hover {
    background: #ff6600;
    transform: scale(1.08);
}

.tv-power {
    position: absolute;
    bottom: 12px;
    right: 18px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #00ff88;
    box-shadow: 0 0 6px #00ff88;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 0.4; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.2); }
}

.tv-antenna {
    position: absolute;
    top: -28px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 28px;
    background: linear-gradient(135deg, #888, #666);
    border-radius: 2px;
}

.tv-antenna::before,
.tv-antenna::after {
    content: "";
    position: absolute;
    width: 3px;
    height: 22px;
    background: linear-gradient(135deg, #888, #666);
    top: 0;
    border-radius: 2px;
}

.tv-antenna::before {
    left: -14px;
    transform: rotate(-35deg);
}

.tv-antenna::after {
    right: -14px;
    transform: rotate(35deg);
}

.tv-legs {
    display: flex;
    justify-content: center;
    gap: 100px;
    margin-top: -8px;
}

.tv-leg {
    width: 28px;
    height: 18px;
    background: linear-gradient(135deg, #1a3a5c, #0f2a45);
    border-radius: 0 0 8px 8px;
}

.tv-channel {
    position: absolute;
    bottom: 12px;
    left: 15px;
    background: rgba(0,0,0,0.65);
    color: #ff6600;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 13px;
    font-family: monospace;
    z-index: 10;
    backdrop-filter: blur(4px);
    font-weight: 600;
    border-left: 2px solid #ff6600;
}

.tv-brand {
    position: absolute;
    bottom: 8px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 10px;
    color: rgba(255,255,255,0.35);
    letter-spacing: 3px;
    font-weight: 500;
    text-transform: uppercase;
}

.tv-top-bar {
    position: absolute;
    top: -3px;
    left: 20%;
    width: 60%;
    height: 4px;
    background: #ff6600;
    border-radius: 2px;
    opacity: 0.6;
}

/* Hero 文字区域 */
.hero-text {
    text-align: center;
    padding: 10px 0 30px;
    background: linear-gradient(135deg, var(--primary-light), var(--light-color));
}

.hero-text h1 {
    font-size: 48px;
    color: var(--primary-color);
    margin-bottom: 20px;
    font-weight: 700;
}

.hero-text p {
    font-size: 18px;
    color: var(--dark-color);
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.8;
}

/* 资讯列表页样式 */
.news-list {
    background-color: var(--light-color);
    padding: 40px 0 80px;
}

.news-sidebar {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 40px;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 30px;
}

/* 侧边栏 */
.sidebar {
    position: sticky;
    top: 100px;
    height: fit-content;
}

.sidebar-card {
    background: var(--gray-color);
    border-radius: var(--radius-md);
    padding: 25px;
    margin-bottom: 30px;
}

.sidebar-card h3 {
    font-size: 18px;
    color: var(--primary-color);
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--secondary-color);
    display: inline-block;
}

.category-list {
    list-style: none;
}

.category-list li {
    margin-bottom: 12px;
}

.category-list a {
    display: flex;
    justify-content: space-between;
    color: var(--dark-color);
    transition: color 0.2s;
}

.category-list a:hover {
    color: var(--primary-color);
}

/* 分页样式 */
.pagination {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 40px;
}

.pagination a, .pagination span {
    display: inline-block;
    padding: 8px 16px;
    background: var(--light-color);
    border: 1px solid var(--gray-dark);
    border-radius: var(--radius-sm);
    color: var(--dark-color);
    transition: all 0.2s;
}

.pagination a:hover {
    background: var(--primary-color);
    color: var(--light-color);
    border-color: var(--primary-color);
}

.pagination .current {
    background: var(--primary-color);
    color: var(--light-color);
    border-color: var(--primary-color);
}

/* 资讯详情页样式 */
.article-detail {
    background-color: var(--light-color);
    padding: 40px 0 80px;
}

.detail-sidebar {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 40px;
}

.article-header {
    text-align: center;
    margin-bottom: 40px;
}

.article-title {
    font-size: 36px;
    color: var(--primary-color);
    margin-bottom: 20px;
    line-height: 1.3;
}

.article-meta {
    display: flex;
    justify-content: center;
    gap: 25px;
    color: #999;
    font-size: 14px;
    flex-wrap: wrap;
}

.article-category {
    display: inline-block;
    padding: 4px 12px;
    background: var(--primary-light);
    color: var(--primary-color);
    border-radius: 20px;
    font-size: 13px;
}

.article-content {
    font-size: 16px;
    line-height: 1.9;
    color: #555;
    margin-bottom: 40px;
}

.article-content h3 {
    font-size: 24px;
    color: var(--primary-color);
    margin: 30px 0 15px;
}

.article-content img {
    max-width: 100%;
    height: auto;
    border-radius: var(--radius-sm);
    margin: 20px 0;
}

.article-content ul, .article-content ol {
    margin: 15px 0 15px 30px;
}

.article-nav {
    display: flex;
    justify-content: space-between;
    padding: 20px 0;
    border-top: 1px solid var(--gray-dark);
    border-bottom: 1px solid var(--gray-dark);
    margin-bottom: 40px;
}

.article-nav a {
    color: var(--primary-color);
}

.article-nav a:hover {
    text-decoration: underline;
}

.back-link {
    display: inline-block;
    margin-top: 20px;
    color: var(--primary-color);
}

.back-link:hover {
    text-decoration: underline;
}

.related-list {
    list-style: none;
}

.related-list li {
    margin-bottom: 12px;
    padding-bottom: 12px;
    border-bottom: 1px dashed var(--gray-dark);
}

.related-list a {
    color: var(--dark-color);
}

.related-list a:hover {
    color: var(--primary-color);
}

/* 服务详情页样式 */
.service-detail {
    background-color: var(--light-color);
    padding: 40px 0 80px;
}

.service-header {
    text-align: center;
    margin-bottom: 40px;
}

.service-icon {
    font-size: 80px;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.service-title {
    font-size: 42px;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.service-summary {
    background: var(--primary-light);
    padding: 30px;
    border-radius: var(--radius-md);
    margin-bottom: 40px;
    border-left: 4px solid var(--secondary-color);
    font-size: 18px;
    color: var(--dark-color);
    line-height: 1.8;
}

.service-content {
    font-size: 16px;
    line-height: 1.9;
    color: #555;
}

.service-content h3 {
    font-size: 24px;
    color: var(--primary-color);
    margin: 30px 0 15px;
}

.service-content p {
    margin-bottom: 20px;
}

.service-content ul, .service-content ol {
    margin: 15px 0 15px 30px;
}

.service-detail .back-link {
    display: inline-block;
    margin-top: 40px;
    color: var(--primary-color);
    font-weight: 600;
}

.service-detail .back-link:hover {
    text-decoration: underline;
}

/* 相关服务 */
.related-services {
    background-color: var(--gray-color);
    padding: 60px 0;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.related-card {
    background: var(--light-color);
    padding: 30px;
    border-radius: var(--radius-md);
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid var(--gray-dark);
}

.related-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary-color);
}

.related-card .service-icon {
    font-size: 48px;
    margin-bottom: 15px;
}

.related-card h4 {
    font-size: 20px;
    color: var(--primary-color);
    margin: 15px 0 10px;
}

.related-card p {
    color: #666;
    font-size: 14px;
    margin-bottom: 15px;
}

.btn-sm {
    padding: 8px 20px;
    font-size: 14px;
}

/* 关于我们样式 */
.about-full {
    background: var(--gray-color);
    padding: 80px 0;
    scroll-margin-top: 80px;
}

.about-wrapper {
    display: flex;
    align-items: flex-start;
    gap: 60px;
    flex-wrap: wrap;
}

.about-carousel {
    flex: 1;
    min-width: 300px;
    position: relative;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    aspect-ratio: 4 / 3;
    background: #1a1a2e;
}

.about-carousel-inner {
    position: relative;
    width: 100%;
    height: 100%;
}

.about-carousel-item {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.about-carousel-item.active {
    opacity: 1;
    z-index: 1;
}

.about-carousel-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.about-carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 36px;
    height: 36px;
    background: rgba(0,0,0,0.5);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s ease;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.about-carousel-btn:hover {
    background: var(--primary-color);
}

.about-carousel-prev {
    left: 10px;
}

.about-carousel-next {
    right: 10px;
}

.about-carousel-dots {
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 10;
}

.about-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255,255,255,0.5);
    cursor: pointer;
    transition: all 0.3s ease;
}

.about-dot.active {
    background: var(--secondary-color);
    width: 20px;
    border-radius: 4px;
}

.about-text {
    flex: 1;
    min-width: 300px;
}

.about-text h3 {
    font-size: 32px;
    color: var(--primary-color);
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 15px;
}

.about-text h3::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background-color: var(--secondary-color);
    border-radius: 2px;
}

.about-content-full {
    margin-bottom: 20px;
    line-height: 1.8;
    font-size: 16px;
    color: #666;
    overflow: visible;
    max-height: none;
}

/* 动态网格布局 */
.services {
    background-color: var(--gray-color);
    scroll-margin-top: 80px;
}

.latest-news {
    background-color: var(--gray-color);
    scroll-margin-top: 80px;
}

.dynamic-grid {
    width: 100%;
}

.grid-row {
    display: flex;
    flex-wrap: wrap;
    margin-bottom: 30px;
    align-items: stretch;
}

.row-1 .grid-item { width: 100%; }
.row-2 .grid-item { width: 50%; }
.row-3 .grid-item { width: 33.333%; }
.row-4 .grid-item { width: 25%; }
.row-5 .grid-item { width: 20%; }

.grid-item {
    padding: 0 15px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
}

/* 统计卡片区域 */
.stats-section {
    background-color: var(--primary-color);
    color: var(--light-color);
    padding: 50px 0;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    text-align: center;
}

/* 联系我们区域 */
.contact {
    background: linear-gradient(135deg, var(--primary-color), #0077dd);
    color: var(--light-color);
    padding: 80px 0;
    scroll-margin-top: 80px;
}

.contact .section-title {
    color: var(--light-color);
}

.contact .section-title::after {
    background-color: var(--light-color);
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 40px;
}

/* 响应式 */
@media (max-width: 992px) {
    .news-sidebar {
        grid-template-columns: 1fr;
    }
    .detail-sidebar {
        grid-template-columns: 1fr;
    }
    .sidebar {
        position: static;
    }
    .row-3 .grid-item { width: 50%; }
    .row-4 .grid-item { width: 50%; }
    .row-5 .grid-item { width: 33.333%; }
    .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 20px; }
}

@media (max-width: 768px) {
    .tv-screen {
        height: 250px;
    }
    .tv-slide-title {
        font-size: 14px;
        padding: 8px 12px;
    }
    .tv-set { padding: 15px 15px 25px 15px; border-radius: 25px; }
    .tv-btn { width: 36px; height: 36px; font-size: 14px; }
    .tv-legs { gap: 60px; }
    .hero-text h1 {
        font-size: 32px;
    }
    .hero-text p {
        font-size: 16px;
    }
    .section-title {
        font-size: 28px;
    }
    .stats-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 15px;
    }
    .contact-grid {
        grid-template-columns: 1fr !important;
        gap: 15px;
    }
    .about-wrapper {
        flex-direction: column;
        text-align: center;
    }
    .about-text h3::after {
        left: 50%;
        transform: translateX(-50%);
    }
    .about-carousel {
        min-width: 100%;
    }
    .grid-row {
        margin-bottom: 20px;
    }
    .row-1 .grid-item,
    .row-2 .grid-item,
    .row-3 .grid-item,
    .row-4 .grid-item,
    .row-5 .grid-item {
        width: 100%;
    }
    .grid-item {
        padding: 0 10px;
        margin-bottom: 20px;
    }
    .news-grid {
        grid-template-columns: 1fr;
    }
    .article-title {
        font-size: 26px;
    }
    .article-nav {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
    .service-title {
        font-size: 28px;
    }
    .service-icon {
        font-size: 60px;
    }
}

@media (max-width: 480px) {
    .tv-screen {
        height: 200px;
    }
    .tv-slide-title {
        font-size: 12px;
        padding: 6px 10px;
    }
    .tv-set { padding: 12px 12px 20px 12px; border-radius: 20px; }
    .tv-btn { width: 30px; height: 30px; font-size: 12px; }
    .stats-grid {
        grid-template-columns: 1fr !important;
    }
    .stat-number {
        font-size: 32px;
    }
    .hero-text {
        padding: 40px 0 20px;
    }
    .hero-text h1 {
        font-size: 24px;
    }
    .hero-text p {
        font-size: 14px;
    }
    .service-card {
        padding: 30px 20px;
    }
    .about-img {
        height: 250px;
    }
    .contact-item {
        padding: 30px 20px;
    }
    .contact-item-icon {
        font-size: 36px;
    }
    .article-title {
        font-size: 22px;
    }
    .service-title {
        font-size: 24px;
    }
    .service-summary {
        font-size: 15px;
        padding: 20px;
    }
    .related-grid {
        grid-template-columns: 1fr;
    }
}