﻿/* Tablet Common Styles */
.container {
    width: 100%;
    margin: 0 auto;
    padding: 0 30px;
    /* Comfortable padding for tablet */
    box-sizing: border-box;
}

/* Ensure body has flex column for sticky footer */
html,
body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    overflow-x: hidden;
    width: 100%;
}

/* Base resets */
*,
*::before,
*::after {
    box-sizing: border-box;
}

a {
    text-decoration: none;
    color: inherit;
}

/* =========================================
   Premium Visual Styles (Migrated from K12 - Tablet)
   ========================================= */

/* --- Solution Visuals --- */
.solution-visual {
    height: 320px;
    /* Keep consistent height or adjust if needed */
    border-radius: 16px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    justify-content: center;
    align-items: center;
}

.solution-visual::before {
    content: '';
    position: absolute;
    top: 15px;
    left: 15px;
    right: 15px;
    bottom: 15px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    z-index: 2;
    transition: all 0.5s ease;
}

.solution-visual:hover {
    transform: scale(1.02) translateY(-5px);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.15);
}

.solution-visual::after {
    content: '';
    position: absolute;
    top: 30px;
    left: 30px;
    right: 30px;
    bottom: 30px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 12px;
    z-index: 2;
    pointer-events: none;
}

.visual-content {
    position: absolute;
    bottom: 40px;
    /* Slightly adjusted for tablet if needed, but 50px is fine too. Let's use 40px for safety spacing */
    left: 40px;
    font-family: 'Noto Serif SC', serif;
    font-weight: 700;
    font-size: 1.8rem;
    /* Slightly smaller for tablet */
    color: white;
    text-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
    z-index: 3;
    font-style: italic;
    letter-spacing: 1px;
    opacity: 1;
    transform: translateY(0);
}

/* Visual Variants - Premium K12 Style */
.visual-blue {
    background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 50%, #60a5fa 100%);
}

.visual-dark {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #475569 100%);
}

.visual-gold {
    background: linear-gradient(135deg, #b45309 0%, #d97706 50%, #fbbf24 100%);
}

.visual-warm {
    background: linear-gradient(135deg, #d97706 0%, #b45309 100%);
}

.visual-memory {
    background: linear-gradient(135deg, #475569 0%, #1e293b 100%);
}

.visual-recovery {
    background: linear-gradient(135deg, #059669 0%, #047857 100%);
}

.visual-family {
    background: linear-gradient(135deg, #db2777 0%, #be185d 100%);
}

.visual-home {
    background: linear-gradient(135deg, #57534e 0%, #44403c 100%);
}

.visual-hotel {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
}

.visual-iot {
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
}

/* =========================================
   Rich Text Editor Table Default Styles
   ========================================= */
.article-body table,
.jd-article-body table,
.jd-section-content table,
.tab-content table,
.editor-content table,
.rich-text-content table,
.news-detail-content table,
table[data-w-e-type="table"],
.w-e-text table {
    border-collapse: collapse;
    width: 100%;
    margin: 20px 0;
    background-color: #ffffff;
    border: 1px solid #e2e8f0;
    font-size: 0.95rem;
    line-height: 1.6;
    color: #334155;
    border-radius: 4px;
    /* Optional slight rounding if supported by exact table structure */
}

.article-body table th,
.jd-article-body table th,
.jd-section-content table th,
.tab-content table th,
.editor-content table th,
.rich-text-content table th,
.news-detail-content table th,
table[data-w-e-type="table"] th,
.w-e-text table th {
    border: 1px solid #cbd5e1;
    padding: 12px 14px;
    background-color: #f1f5f9;
    font-weight: 600;
    text-align: left;
    color: #0f172a;
}

.article-body table td,
.jd-article-body table td,
.jd-section-content table td,
.tab-content table td,
.editor-content table td,
.rich-text-content table td,
.news-detail-content table td,
table[data-w-e-type="table"] td,
.w-e-text table td {
    border: 1px solid #cbd5e1;
    padding: 12px 14px;
    color: #475569;
    vertical-align: top;
}

/* Zebra striping for readability */
.article-body table tr:nth-child(even) td,
.jd-article-body table tr:nth-child(even) td,
.jd-section-content table tr:nth-child(even) td,
.tab-content table tr:nth-child(even) td,
.editor-content table tr:nth-child(even) td,
.rich-text-content table tr:nth-child(even) td,
.news-detail-content table tr:nth-child(even) td,
table[data-w-e-type="table"] tr:nth-child(even) td,
.w-e-text table tr:nth-child(even) td {
    background-color: #f8fafc;
}