/* 頁面底色（無全版漸層）；卡片／標題區塊內漸層保留於下方規則 */
body.page-tv {
  margin: 0;
  font-family: 'Microsoft JhengHei', Arial, sans-serif;
  background: #ececec;
  min-height: 100vh;
}
body.page-tv * {
  box-sizing: border-box;
}

/* Main Content */
        .container {
            max-width: 900px;
            margin: 0 auto;
            padding: 1.5rem 1rem;
        }
        
        .card {
            background: white;
            border-radius: 1rem;
            box-shadow: 0 10px 25px rgba(0,0,0,0.1);
            padding: 2rem;
            margin-bottom: 1.5rem;
        }
        
        .card-title {
            font-size: 1.75rem;
            font-weight: bold;
            text-align: center;
            margin-bottom: 1.5rem;
            color: #667eea;
        }
        
        .input-section {
            background: #f8f9fa;
            border-radius: 0.75rem;
            padding: 1.5rem;
            margin-bottom: 1.5rem;
        }
        
        .input-group {
            margin-bottom: 1.25rem;
        }
        
        .input-group:last-child {
            margin-bottom: 0;
        }
        
        .input-group label {
            display: block;
            font-size: 1rem;
            font-weight: 600;
            color: #374151;
            margin-bottom: 0.5rem;
        }
        
        .input-group input[type="number"] {
            width: 100%;
            padding: 0.75rem;
            font-size: 1rem;
            border: 2px solid #d1d5db;
            border-radius: 0.5rem;
            transition: border-color 0.3s;
        }
        
        .input-group input:focus {
            outline: none;
            border-color: #667eea;
        }
        
        .radio-group {
            display: flex;
            gap: 1rem;
            flex-wrap: wrap;
        }
        
        .radio-option {
            display: flex;
            align-items: center;
            gap: 0.5rem;
        }
        
        .radio-option input[type="radio"] {
            width: 1.25rem;
            height: 1.25rem;
            cursor: pointer;
        }
        
        .radio-option label {
            margin: 0;
            cursor: pointer;
            font-weight: 500;
        }
        
        .calculate-btn {
            width: 100%;
            padding: 1rem;
            font-size: 1.125rem;
            font-weight: bold;
            color: white;
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            border: none;
            border-radius: 0.5rem;
            cursor: pointer;
            transition: transform 0.2s, box-shadow 0.2s;
            margin-top: 1rem;
        }
        
        .calculate-btn:hover {
            transform: translateY(-2px);
            box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
        }
        
        .calculate-btn:active {
            transform: translateY(0);
        }
        
        /* Results */
        .results-container {
            display: none;
        }
        
        .results-container.active {
            display: block;
        }
        
        .result-card {
            background: linear-gradient(135deg, #667eea15 0%, #764ba215 100%);
            border-radius: 0.75rem;
            padding: 1.5rem;
            margin-bottom: 1rem;
        }
        
        .result-card h3 {
            font-size: 1.25rem;
            color: #667eea;
            margin-bottom: 1rem;
            display: flex;
            align-items: center;
            gap: 0.5rem;
        }
        
        .result-item {
            background: white;
            padding: 1rem;
            border-radius: 0.5rem;
            margin-bottom: 0.75rem;
            display: flex;
            justify-content: space-between;
            align-items: center;
            border-left: 4px solid #667eea;
        }
        
        .result-item:last-child {
            margin-bottom: 0;
        }
        
        .result-label {
            font-size: 0.95rem;
            color: #374151;
            flex: 1;
        }
        
        .result-value {
            font-size: 1.25rem;
            font-weight: bold;
            color: #667eea;
        }
        
        .highlight-result {
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            color: white;
            padding: 1.25rem;
            border-radius: 0.75rem;
            text-align: center;
            margin-bottom: 1.5rem;
        }
        
        .highlight-result .label {
            font-size: 1rem;
            opacity: 0.9;
            margin-bottom: 0.5rem;
        }
        
        .highlight-result .value {
            font-size: 2rem;
            font-weight: bold;
        }
        
        /* Info Box */
        .info-box {
            background: white;
            border-radius: 1rem;
            padding: 2rem;
            margin-bottom: 1.5rem;
            box-shadow: 0 10px 25px rgba(0,0,0,0.1);
        }
        
        .info-box h3 {
            font-size: 1.5rem;
            color: #667eea;
            margin-bottom: 1rem;
            display: flex;
            align-items: center;
            gap: 0.5rem;
        }
        
        .info-box h4 {
            font-size: 1.25rem;
            color: #374151;
            margin: 1.5rem 0 0.75rem 0;
        }
        
        .info-box ul {
            list-style: none;
            padding-left: 0;
        }
        
        .info-box li {
            padding: 0.75rem 0;
            border-bottom: 1px solid #e5e7eb;
            line-height: 1.6;
        }
        
        .info-box li:last-child {
            border-bottom: none;
        }
        
        .info-box strong {
            color: #667eea;
        }
        
        .tip-box {
            background: #fef3c7;
            border-left: 4px solid #f59e0b;
            padding: 1rem;
            border-radius: 0.5rem;
            margin: 1rem 0;
        }
        
        .tip-box p {
            margin: 0.5rem 0;
        }
        @media (min-width: 768px) {
            .desktop-nav {
                display: flex;
            }
            
            .menu-btn {
                display: none;
            }
            
            .container {
                padding: 2.5rem 1.5rem;
            }
            
            .card {
                padding: 2.5rem;
            }
            
            .radio-group {
                gap: 2rem;
            }
        }
