/* ============================================
   Program Overview Page Styles
   Import common styles first
   ============================================ */
@import url('style.css');

/* ============================================
   Main Content 美化样式
   ============================================ */
.main-content {
    min-height: calc(100vh - 200px);
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 50%, #f0f7ff 100%);
    padding: 60px 0;
    position: relative;
    overflow-x: hidden;
    overflow-y: visible;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.main-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #18306a 0%, #204198 50%, #2d5bb8 100%);
    z-index: 1;
}

.main-content::after {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(32, 65, 152, 0.05) 0%, transparent 70%);
    border-radius: 50%;
    z-index: 0;
}

/* ============================================
   Program Overview Page Specific Styles
   ============================================ */
.program-section {
    background: #fff;
    padding: 80px 20px;
    position: relative;
    z-index: 1;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    margin: 0 auto;
    max-width: 1200px;
    width: 100%;
    box-sizing: border-box;
    overflow-x: hidden;
}

/* 每天的程序区块 */
.program-day {
    margin-bottom: 60px;
}

.program-day:last-child {
    margin-bottom: 0;
}

/* 日期标题样式 */
.day-title {
    font-size: 28px;
    font-weight: 700;
    color: #204198;
    margin-bottom: 25px;
    padding: 20px 25px;
    background: linear-gradient(135deg, #f0f7ff 0%, #ffffff 100%);
    border-left: 5px solid #204198;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 15px;
    box-shadow: 0 2px 10px rgba(32, 65, 152, 0.1);
    transition: all 0.3s ease;
}

.day-title:hover {
    box-shadow: 0 4px 15px rgba(32, 65, 152, 0.15);
    /* 移除 translateX 避免超出容器 */
}

.day-title .date-main {
    font-size: 28px;
    color: #204198;
    font-weight: 700;
}

.day-title .date-sub {
    font-size: 18px;
    color: #666;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding-left: 15px;
    border-left: 2px solid #e0e0e0;
}

.program-table-wrapper {
    margin-top: 0;
    overflow-x: auto;
    overflow-y: visible;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border-radius: 12px;
    background: #fff;
    -webkit-overflow-scrolling: touch;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    /* 防止 hover 时超出 */
    contain: layout;
}

.program-table {
    width: 100%;
    max-width: 100%;
    border-collapse: collapse;
    background: #fff;
    font-size: 15px;
    min-width: 700px;
    table-layout: auto;
    box-sizing: border-box;
}

/* 防止页面出现横向滚动条 */
.program-section .container {
    width: 100%;
    max-width: 100%;
    padding: 0;
    margin: 0;
    box-sizing: border-box;
    overflow-x: hidden;
    position: relative;
}

.program-day {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
    overflow-y: visible;
    box-sizing: border-box;
    /* 防止子元素 hover 时超出 */
    position: relative;
}

.program-table thead {
    background: linear-gradient(135deg, #204198 0%, #18306a 100%);
    color: #fff;
}

.program-table th {
    padding: 18px 20px;
    text-align: left;
    font-weight: 600;
    font-size: 16px;
    border-bottom: 3px solid #fff;
    white-space: nowrap;
}

.program-table th.col-time {
    width: 150px;
    min-width: 150px;
}

.program-table th.col-venue {
    width: 180px;
    min-width: 180px;
}

.program-table th.col-content {
    min-width: 300px;
}

.program-table th.col-links {
    width: 100px;
    min-width: 100px;
    text-align: center;
}

.program-table tbody tr {
    border-bottom: 1px solid #e0e0e0;
    transition: all 0.3s;
}

.program-table tbody tr:hover {
    background: #f8f9fa;
    /* 移除 scale 避免超出容器 */
    box-shadow: 0 2px 8px rgba(32, 65, 152, 0.1);
}

.program-table tbody tr:last-child {
    border-bottom: none;
}

.program-table td {
    padding: 20px;
    vertical-align: top;
    line-height: 1.6;
}

.program-table td.col-time {
    font-weight: 600;
    color: #333;
    font-size: 15px;
    white-space: nowrap;
}

.program-table td.col-venue {
    color: #555;
    font-size: 15px;
}

.program-table td.col-content {
    color: #333;
}

.program-table th {
    color: #fff !important;
}

.content-title {
    font-size: 16px;
    font-weight: 600;
    color: #204198;
    margin-bottom: 8px;
    line-height: 1.4;
}

.content-desc {
    font-size: 14px;
    color: #666;
    line-height: 1.5;
    font-style: italic;
    display: none; /* 默认隐藏 */
}

.program-table .col-links {
    text-align: center;
}

.program-link {
    display: inline-block;
    padding: 6px 16px;
    background: #204198;
    color: #fff;
    text-decoration: none;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s;
    white-space: nowrap;
    border: none;
    cursor: pointer;
    font-family: inherit;
}

.program-link:hover {
    background: #2d5bb8;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(32, 65, 152, 0.3);
}

.program-link.active {
    background: #18306a;
}

.program-link.active:hover {
    background: #15305a;
}

.program-table .col-links:contains("-") {
    color: #999;
}

/* 详情展开行样式 */
.detail-row {
    background: #f8f9fa;
    border-top: 2px solid #e0e0e0;
}

.detail-content {
    padding: 20px 30px !important;
    background: #f8f9fa;
    border-left: 4px solid #204198;
}

.detail-content .content-desc {
    font-size: 15px;
    color: #555;
    line-height: 1.8;
    font-style: italic;
    margin: 0;
    padding: 10px 0;
    display: block !important; /* 在展开行中显示 */
}

/* Responsive Design for Program Page */
@media (max-width: 1024px) {
    .program-day {
        margin-bottom: 50px;
    }
    
    .day-title {
        font-size: 24px;
        margin-bottom: 20px;
    }
    
    .day-title .date-main {
        font-size: 24px;
    }
    
    .day-title .date-sub {
        font-size: 16px;
    }
    
    .program-table {
        font-size: 14px;
    }
    
    .program-table th {
        padding: 15px 15px;
        font-size: 15px;
    }
    
    .program-table td {
        padding: 15px;
    }
    
    .content-title {
        font-size: 15px;
    }
}

@media (max-width: 768px) {
    .main-content {
        padding: 40px 0;
    }
    
    .main-content::after {
        width: 300px;
        height: 300px;
        top: -30%;
        right: -20%;
    }
    
    .program-section {
        padding: 50px 15px;
        margin: 0 auto;
        border-radius: 8px;
        width: 100%;
        box-sizing: border-box;
    }
    
    .program-day {
        margin-bottom: 40px;
    }
    
    .day-title {
        font-size: 22px;
        margin-bottom: 18px;
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
        padding: 15px 20px;
    }
    
    .day-title .date-main {
        font-size: 22px;
    }
    
    .day-title .date-sub {
        font-size: 14px;
        padding-left: 0;
        border-left: none;
        padding-top: 8px;
        border-top: 1px solid #e0e0e0;
        width: 100%;
    }
    
    .program-table-wrapper {
        margin: 0 -15px;
        border-radius: 0;
        overflow-x: auto;
    }
    
    .program-table {
        font-size: 13px;
        min-width: 650px;
    }
    
    .program-section {
        padding: 50px 15px;
        margin: 0 auto;
        width: 100%;
        box-sizing: border-box;
    }
    
    .program-table th {
        padding: 12px 10px;
        font-size: 14px;
    }
    
    .program-table td {
        padding: 12px 10px;
    }
    
    .content-title {
        font-size: 14px;
    }
    
    .content-desc {
        font-size: 12px;
    }
    
    .program-link {
        padding: 5px 12px;
        font-size: 12px;
    }
}

@media (max-width: 480px) {
    .main-content {
        padding: 30px 0;
    }
    
    .program-section {
        margin: 0 10px;
        padding: 40px 0;
    }
    
    .program-day {
        margin-bottom: 35px;
    }
    
    .day-title {
        font-size: 20px;
        padding: 12px 15px;
    }
    
    .day-title .date-main {
        font-size: 20px;
    }
    
    .day-title .date-sub {
        font-size: 13px;
    }
    
    .program-table {
        min-width: 600px;
    }
    
    .program-section {
        padding: 40px 10px;
        margin: 0 auto;
        width: 100%;
        box-sizing: border-box;
    }
    
    .program-table th {
        padding: 10px 8px;
        font-size: 13px;
    }
    
    .program-table td {
        padding: 10px 8px;
    }
    
    .content-title {
        font-size: 13px;
    }
    
    .program-link {
        padding: 4px 10px;
        font-size: 11px;
    }
    
    .detail-content {
        padding: 15px 20px !important;
    }
    
    .detail-content .content-desc {
        font-size: 13px;
    }
}

