{% extends "base.html" %} {% block title %}电视控制{% endblock %} {% block extra_styles %} .tv-grid { display: flex; flex-wrap: wrap; gap: 15px; margin-bottom: 20px; justify-content: flex-start; } .tv-card { flex: 0 0 auto; width: 140px; background: #f8f9fa; border-radius: 12px; padding: 15px; text-align: center; border: 1px solid #eee; transition: all 0.2s; cursor: pointer; display: flex; flex-direction: column; align-items: center; justify-content: center; } .tv-card:hover { transform: translateY(-5px); box-shadow: 0 8px 15px rgba(0,0,0,0.1); background: white; border-color: var(--primary-color); } .tv-icon { font-size: 3em; margin-bottom: 10px; } .tv-name { font-weight: bold; color: #2c3e50; margin-bottom: 5px; } .tv-index { font-size: 0.8em; color: #999; margin-bottom: 10px; } /* Modal */ .modal { display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%; background-color: rgba(0,0,0,0.5); z-index: 2000; justify-content: center; align-items: center; } .modal-content { background-color: white; padding: 30px; border-radius: 15px; width: 90%; max-width: 500px; max-height: 90vh; overflow-y: auto; position: relative; box-shadow: 0 5px 30px rgba(0,0,0,0.3); } .modal-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; border-bottom: 1px solid #eee; padding-bottom: 10px; } .modal-title { font-size: 1.4em; color: #2c3e50; font-weight: bold; } .close-btn { font-size: 1.5em; cursor: pointer; color: #aaa; line-height: 1; } .close-btn:hover { color: #333; } .config-section { background: #f8f9fa; padding: 15px; border-radius: 8px; margin-bottom: 15px; border: 1px solid #eee; } @media (max-width: 768px) { .tv-grid { justify-content: center; gap: 12px; } .tv-card { width: min(100%, 160px); } .modal { align-items: flex-end; padding: 0; } .modal-content { width: 100%; max-width: none; border-radius: 16px 16px 0 0; max-height: 90vh; padding: 20px 18px 24px; padding-bottom: max(24px, env(safe-area-inset-bottom, 0px)); } .close-btn { min-width: 44px; min-height: 44px; display: inline-flex; align-items: center; justify-content: center; font-size: 1.75rem; } .modal-title { font-size: 1.15rem; } .status-display .btn { min-height: 44px; padding: 0 16px !important; font-size: 14px !important; } .free-time-actions { width: 100%; } .free-time-actions .btn { flex: 1 1 auto; min-width: min(100%, 140px); } } {% endblock %} {% block content %}
点击电视图标进行详细配置
启用后,系统将在 07:30 - 18:00 期间自动循环播放视频。