/* Conference Tablet Styles (768px - 1199px) */
:root {
    --conf-primary: #0a1128;
    --conf-accent: #3498db;
    --conf-bg: #f8f9fa;
    --conf-text: #2c3e50;
    --conf-text-light: #7f8c8d;
    --conf-card-bg: #ffffff;
    --conf-border: #ecf0f1;
}

body {
    background-color: var(--conf-bg);
    color: var(--conf-text);
    font-family: 'Noto Sans SC', sans-serif;
}

/* =========================================
   Hero Section
   ========================================= */
.conf-hero {
    height: 45vh;
    /* Slightly taller than original tablet, closer to desktop ratio */
    min-height: 400px;
    background: linear-gradient(135deg, rgba(10, 17, 40, 0.9) 0%, rgba(20, 30, 48, 0.8) 100%), url('../../assets/images/conference-hero.jpg') no-repeat center center/cover;
    background-attachment: scroll;
    /* Fixed often has issues on mobile/tablet */
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    padding: 0 40px;
    margin-bottom: 60px;
    border-radius: 0 0 40px 40px;
}

.conf-hero-content {
    max-width: 900px;
    animation: fadeInUp 1s ease-out;
}

.conf-hero-content h1 {
    font-family: 'Playfair Display', serif;
    font-size: 3rem;
    /* Between desktop 3.5 and mobile */
    margin-bottom: 20px;
    font-weight: 700;
    letter-spacing: 2px;
    color: #ffffff;
}

.conf-hero-subtitle {
    font-size: 1.2rem;
    opacity: 0.9;
    letter-spacing: 1px;
    font-weight: 300;
    line-height: 1.6;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* =========================================
   Main Container
   ========================================= */
.conf-main {
    max-width: 95%;
    /* Keep tablet width */
    margin: 0 auto;
    padding: 0 20px 80px;
}

.conf-section-title {
    text-align: center;
    margin-bottom: 50px;
}

.conf-section-title h2 {
    font-size: 2.4rem;
    color: var(--conf-primary);
    margin-bottom: 15px;
    font-weight: 700;
}

.conf-section-title p {
    color: var(--conf-text-light);
    font-size: 1.1rem;
}

/* =========================================
   Dimensions Grid
   ========================================= */
/* =========================================
   Dimensions Grid (Atmospheric 5-Column)
   ========================================= */
.conf-dimensions-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 12px;
    margin-bottom: 100px;
    padding: 0 10px;
}

/* Tablet / Laptop Specifics */
@media (max-width: 1200px) {
    .conf-dimensions-grid {
        grid-template-columns: repeat(5, 1fr);
        gap: 10px;
    }

    .conf-dimension-card {
        padding: 20px 12px;
        height: 270px;
        /* Taller for elegance */
        background: linear-gradient(145deg, #ffffff, #fdfdfd);
        border: 1px solid rgba(255, 255, 255, 0.4);
        box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.05), 0 4px 6px -4px rgba(0, 0, 0, 0.02);
        /* Premium soft shadow */
    }

    /* Elegant hover state */
    .conf-dimension-card:hover {
        transform: translateY(-8px);
        box-shadow: 0 20px 40px -12px rgba(0, 10, 30, 0.12);
    }

    /* Refined Watermark Number */
    .conf-card-number {
        font-family: 'Playfair Display', serif;
        font-size: 4.5rem;
        top: -10px;
        right: -8px;
        opacity: 0.06;
        /* More subtle */
        transform: rotate(10deg);
        z-index: 0;
        pointer-events: none;
    }

    .conf-card-content {
        position: relative;
        z-index: 2;
        margin-top: 15px;
    }

    .conf-dimension-name {
        font-size: 1.15rem;
        line-height: 1.3;
        margin-bottom: 8px;
        font-weight: 700;
        color: #2c3e50;
        word-break: break-word;
    }

    .conf-dimension-subtitle {
        font-size: 0.8rem;
        color: #95a5a6;
        line-height: 1.5;
        font-weight: 400;
        margin-top: 4px;
    }

    /* Refined Badge/Footer */
    .conf-card-footer {
        padding-top: 15px;
        border-top: 1px solid rgba(0, 0, 0, 0.03);
        margin-top: auto;
    }

    .conf-topic-badge {
        font-size: 0.7rem;
        padding: 5px 10px;
        background: rgba(0, 0, 0, 0.02);
        color: #7f8c8d;
        border: none;
        border-radius: 4px;
        font-weight: 500;
    }

    /* Reveal arrow on hover */
    .conf-card-arrow {
        width: 24px;
        height: 24px;
        font-size: 12px;
    }
}

.conf-dimension-card {
    background: #fff;
    border-radius: 12px;
    padding: 24px;
    position: relative;
    overflow: hidden;
    border: 1px solid #f0f0f0;
    transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 240px;
    cursor: pointer;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.02);
}

.conf-dimension-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--accent-color, #3498db);
    opacity: 0;
    transition: opacity 0.3s;
}

.conf-dimension-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
    border-color: transparent;
}

.conf-dimension-card:hover::before {
    opacity: 1;
}

.conf-card-number {
    position: absolute;
    top: 0px;
    right: 15px;
    font-size: 5rem;
    /* Slightly smaller than desktop 6rem */
    font-weight: 800;
    color: var(--accent-color, #3498db);
    opacity: 0.15;
    line-height: 1;
    pointer-events: none;
    font-family: 'Arial', sans-serif;
    transition: all 0.3s;
}

.conf-dimension-card:hover .conf-card-number {
    opacity: 0.1;
    transform: scale(1.1) rotate(5deg);
}

.conf-card-content {
    position: relative;
    z-index: 1;
    margin-top: 10px;
}

.conf-dimension-name {
    font-size: 1.4rem;
    font-weight: 800;
    color: #2c3e50;
    margin-bottom: 10px;
    letter-spacing: -0.5px;
    position: relative;
    word-break: break-word;
}

.conf-dimension-subtitle {
    font-size: 0.95rem;
    color: #7f8c8d;
    line-height: 1.5;
    font-weight: 500;
}

.conf-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
    padding-top: 20px;
}

.conf-topic-badge {
    background: #f8f9fa;
    color: #7f8c8d;
    font-size: 0.75rem;
    padding: 6px 12px;
    border-radius: 20px;
    font-weight: 600;
    border: 1px solid #eee;
    transition: all 0.3s;
    white-space: nowrap;
}

.conf-dimension-card:hover .conf-topic-badge {
    background: white;
    color: var(--accent-color);
    border-color: var(--accent-color);
}

.conf-card-arrow {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--accent-color, #3498db);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    opacity: 0;
    transform: translateX(-20px);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.conf-card-arrow i {
    font-style: normal;
}

/* Completely remove arrow on tablet */
.conf-dimension-card:hover .conf-card-arrow {
    background: var(--accent-color, #3498db);
    transform: none;
    display: none !important;
    /* Force hide on hover */
}

/* Accent Colors (Copied from Desktop) */
.conf-dimension-card:nth-child(1) {
    --accent-color: #e74c3c;
}

.conf-dimension-card:nth-child(2) {
    --accent-color: #3498db;
}

.conf-dimension-card:nth-child(3) {
    --accent-color: #9b59b6;
}

.conf-dimension-card:nth-child(4) {
    --accent-color: #1abc9c;
}

.conf-dimension-card:nth-child(5) {
    --accent-color: #f39c12;
}

.conf-dimension-card:nth-child(6) {
    --accent-color: #2ecc71;
}

.conf-dimension-card:nth-child(7) {
    --accent-color: #34495e;
}

.conf-dimension-card:nth-child(8) {
    --accent-color: #d35400;
}

.conf-dimension-card:nth-child(9) {
    --accent-color: #16a085;
}

.conf-dimension-card:nth-child(10) {
    --accent-color: #c0392b;
}

/* =========================================
   Timeline
   ========================================= */
.conf-timeline-section {
    padding: 80px 0;
    background: #fff;
    position: relative;
}

.conf-timeline-container {
    max-width: 100%;
    margin: 0 auto;
    position: relative;
    padding: 0 20px;
}

.conf-timeline-container::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 4px;
    background: linear-gradient(to bottom, #3498db, #9b59b6);
    transform: translateX(-50%);
    border-radius: 2px;
}

.conf-timeline-item {
    width: 50%;
    display: flex;
    position: relative;
    padding-bottom: 50px;
}

.conf-timeline-item:nth-child(odd) {
    justify-content: flex-end;
    text-align: right;
    padding-right: 40px;
    left: 0;
}

.conf-timeline-item:nth-child(even) {
    justify-content: flex-start;
    text-align: left;
    padding-left: 40px;
    left: 50%;
}

.conf-timeline-dot {
    position: absolute;
    top: 0;
    right: -11px;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #fff;
    border: 4px solid #3498db;
    z-index: 2;
    transition: transform 0.3s;
}

.conf-timeline-item:hover .conf-timeline-dot {
    transform: scale(1.2);
    background: #3498db;
}

.conf-timeline-item:nth-child(even) .conf-timeline-dot {
    right: auto;
    left: -11px;
    border-color: #9b59b6;
}

.conf-timeline-content {
    background: #fff;
    padding: 24px;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    width: 100%;
    border-top: 4px solid #3498db;
}

.conf-timeline-content:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.12);
}

/* =========================================
   Calendar (Spacious Mode for Tablet)
   ========================================= */
.conf-calendar-container {
    width: 100%;
    padding: 30px;
    background: white;
    border-radius: 20px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.05);
    margin: 0 auto;
    box-sizing: border-box;
    display: block;
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 10px;
    margin-bottom: 25px;
}

.calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
}

.calendar-current-month {
    font-size: 1.5rem;
    font-weight: 700;
}

.calendar-day-cell {
    min-height: 100px;
    height: auto;
    padding: 8px;
    border-radius: 12px;
    background: white;
    border: 1px solid #f0f0f0;
    transition: all 0.3s;
    display: flex;
    flex-direction: column;
    cursor: pointer;
}

.calendar-day-cell:hover {
    border-color: var(--conf-accent);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transform: translateY(-2px);
}

.calendar-day-number {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.calendar-day-cell.today {
    background: #fff;
    border: 2px solid #3b82f6;
    position: relative;
}

.calendar-day-cell.today .calendar-day-number {
    color: #3b82f6;
}

.calendar-day-cell.today .calendar-day-number::after {
    content: '今天';
    font-size: 0.65rem;
    background: #eff6ff;
    color: #3b82f6;
    padding: 2px 6px;
    border-radius: 100px;
    font-weight: 600;
    text-transform: uppercase;
}

.calendar-day-cell.other-month {
    background: #f8fafc;
    border-color: transparent;
    opacity: 0.6;
    pointer-events: none;
}

.calendar-week-header {
    text-align: center;
    font-weight: 600;
    color: #94a3b8;
    padding: 10px 0;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Event Dots */
.calendar-events {
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex: 1;
}

.calendar-event-dot {
    font-size: 0.75rem;
    padding: 4px 8px;
    margin-bottom: 4px;
    border-radius: 6px;
    background: #e0f2fe;
    color: #0369a1;
    white-space: normal;
    /* Allow wrapping on tablet */
    word-break: break-word;
    display: block;
    font-weight: 500;
    transition: all 0.2s;
    border-left: 3px solid #0ea5e9;
    line-height: 1.3;
}

/* Event Types */
.calendar-event-dot.type-1 {
    background: #e0f2fe;
    color: #0369a1;
    border-left: 3px solid #0ea5e9;
}

.calendar-event-dot.type-2 {
    background: #f0fdf4;
    color: #15803d;
    border-left: 3px solid #22c55e;
}

.calendar-event-dot.type-3 {
    background: #fefce8;
    color: #a16207;
    border-left: 3px solid #eab308;
}

.calendar-event-dot.type-4 {
    background: #fef2f2;
    color: #b91c1c;
    border-left: 3px solid #ef4444;
}

.calendar-event-dot.type-5 {
    background: #f3e8ff;
    color: #7e22ce;
    border-left: 3px solid #a855f7;
}

/* Timeline Header */
.conf-timeline-header {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 30px;
    position: relative;
    text-align: center;
}

.conf-timeline-header h2 {
    font-size: 2.5rem;
    color: #0a1128;
    margin-bottom: 15px;
    font-weight: 700;
}

.conf-timeline-header p {
    font-size: 1.1rem;
    color: #7f8c8d;
}

/* Nav Btn */
.calendar-nav-btn {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    color: #64748b;
    font-size: 1.2rem;
}

.calendar-nav-btn:hover {
    background: #fff;
    border-color: #cbd5e1;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
    color: #334155;
    transform: scale(1.05);
}

/* =========================================
   Popover Styles (Imported from Desktop)
   ========================================= */

@keyframes popoverFadeIn {
    from {
        opacity: 0;
        transform: translateY(8px) scale(0.98);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.calendar-popover {
    position: fixed;
    z-index: 100000;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(12px);
    border-radius: 12px;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.3), 0 0 0 1px rgba(0, 0, 0, 0.05);

    /* Layout Fixes */
    width: 320px;
    /* Wider to prevent header break */
    min-width: 300px;
    max-width: 90vw;

    display: none;
    flex-direction: column;
    padding: 16px;
    /* More padding */
    animation: popoverFadeIn 0.2s cubic-bezier(0.165, 0.84, 0.44, 1);

    /* Force Centered Positioning (Override JS) */
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;

    /* Ensure it doesn't get covered by nav, but keep centered */
    margin-top: 40px;
    /* Slight offset down */
    max-height: 80vh;
    /* Prevent overflow */
}

.popover-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    padding-right: 35px;
    /* Space for close btn */
    padding-bottom: 12px;
    margin-bottom: 15px;
    flex-wrap: wrap;
    /* Allow wrapping if needed */
    gap: 8px;
}

.popover-title {
    font-size: 1.1rem;
    /* Slightly larger */
    color: #2c3e50;
    font-weight: 700;
    line-height: 1.4;
}

.popover-header span:last-child {
    font-size: 0.75rem;
    background: #f1f5f9;
    color: #64748b;
    padding: 4px 10px;
    border-radius: 20px;
    font-weight: 600;
    white-space: nowrap;
    /* Keep badge intact */
    margin-left: auto;
    /* Push to right if wrapped */
}

.popover-timeline-item {
    position: relative;
    padding: 8px;
    margin-bottom: 6px;
    border-left: 2px solid #e2e8f0;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s;
}

.popover-timeline-item:last-child {
    margin-bottom: 0;
    border-left-color: transparent;
}

.popover-time {
    font-size: 0.6rem;
    color: #94a3b8;
    font-weight: 600;
    line-height: 1;
    margin-bottom: 2px;
}

.popover-timeline-item:hover {
    filter: brightness(0.97);
    transform: translateX(2px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

/* Popover Item Variants */
.popover-timeline-item.type-1 {
    background: #f0f9ff;
    border-left-color: #0ea5e9;
}

.popover-timeline-item.type-2 {
    background: #f0fdf4;
    border-left-color: #22c55e;
}

.popover-timeline-item.type-3 {
    background: #fefce8;
    border-left-color: #eab308;
}

.popover-timeline-item.type-4 {
    background: #fef2f2;
    border-left-color: #ef4444;
}

.popover-timeline-item.type-5 {
    background: #faf5ff;
    border-left-color: #a855f7;
}

.popover-body {
    overflow-y: auto;
    flex: 1;
    max-height: 50vh;
    /* Interactable scroll */
    padding-right: 5px;
    display: grid;
    gap: 12px;
    grid-template-columns: 1fr;
}

.popover-close-btn {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #f1f5f9;
    border: none;
    color: #64748b;
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    z-index: 20;
}

.popover-close-btn:hover {
    background: #ef4444;
    color: white;
}

/* =========================================
   Modals
   ========================================= */
.topic-modal-content {
    max-width: 90%;
    margin: 0 auto;
}

.topic-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

.meeting-form-content {
    max-width: 80%;
}