/* ==========================================================
   活动详情 event-detail.css
   - 继承 home.css :root 变量
   ========================================================== */

/* ============ 面包屑 ============ */
.iti-ed-crumbs {
    background: var(--iti-bg);
    padding-bottom: 40px;
}
.iti-ed-crumbs .iti-container {
    padding-top: 14px;
    padding-bottom: 14px;
    font-size: 12px;
    color: var(--iti-text-light);
    padding-left: 0;
}
.iti-ed-crumbs a { color: var(--iti-text-light); text-decoration: none; }
.iti-ed-crumbs a:hover { color: var(--iti-primary); }
.iti-ed-crumbs .sep { margin: 0 8px; color: var(--iti-bg-soft-2); }
.iti-ed-crumbs .cur { color: var(--iti-navy); font-weight: 600; }

/* ============ Hero ============ */
.iti-ed-hero {
    position: relative;
    background: var(--iti-bg);
    overflow: hidden;

}
.iti-ed-hero-text::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 260px;
    background: var(--iti-primary-dark);
    clip-path: polygon(0% 100%, 100% 100%, 0 70%);
    opacity: 0.9;
}

/* 装饰性弧形 - 左下黄绿 */
.iti-ed-hero-text::after {
    content: "";
    position: absolute;
    left: 39%;
    bottom: 0;
    width: 220px;
    height: 100%;
    background: var(--iti-yellow);
    clip-path: polygon(60% 100%, 100% -10%, 100% 100%);
    opacity: 0.7;

}
.iti-ed-hero::after {
    content: "";
    position: absolute;
    left: 35%;
    bottom: 0;
    width: 300px;
    height: 35%;
    background: var(--iti-primary);
    clip-path: polygon(0% 100%, 100% 0%, 100% 100%);
    opacity: 1;
}
.iti-ed-hero-text{
    padding-left: 22%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}
.iti-ed-hero-inner {
    max-width: 100%!important;
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    min-height: 260px;
}

.iti-ed-hero-date {
    display: inline-block;
    background: var(--iti-bg-soft-2);
    color: var(--iti-text);
    font-size: 13px;
    font-weight: 700;
    padding: 5px 14px;
    border-radius: 999px;
    margin-bottom: 18px;
}

.iti-ed-hero-title {
    font-size: 32px;
    font-weight: 800;
    color: var(--iti-navy);
    line-height: 1.3;
    margin: 0 0 12px;
}
.iti-ed-hero-titlezh {
    display: block;
    font-size: 18px;
    font-weight: 700;
    color: var(--iti-text);
    margin-top: 6px;
}

.iti-ed-hero-note {
    font-size: 14px;
    color: var(--iti-text);
    margin: 0;
}

.iti-ed-hero-media {
    z-index: 9;
    overflow: hidden;
    background: linear-gradient(135deg, var(--iti-bg-soft), var(--iti-bg-soft-2));
}
.iti-ed-hero-media img {
    width: 100%;
    object-fit: cover;
    display: block;
}

/* ============ 主讲 + 官方 ============ */
.iti-ed-main {
    background: var(--iti-bg);
    padding: 32px 0 8px;
}

.iti-ed-main-grid {
    display: grid;
    /* 参考图比例：左"主讲讲师"窄、右"会议官方页面"宽（约 2:3） */
    grid-template-columns: 2fr 3fr;
    gap: 24px;
    align-items: start;
}

.iti-ed-card {
    background: #fff;
    border: 1px solid var(--iti-bg-soft-2);
    border-radius: var(--iti-radius-lg);
    padding: 28px 32px;
    box-shadow: 0 1px 2px rgba(15, 31, 61, 0.04);
    min-width: 0;   /* grid 子项：允许内容收缩，配合文字截断 */
}
.iti-ed-card--soft { background: var(--iti-bg-soft); }

/* 左栏（主讲讲师）窄一些，内边距相应收紧 */
.iti-ed-main-grid > .iti-ed-card:first-child { 
    padding: 24px 24px; 
    background: var(--iti-bg-soft);
    max-height: 420px;
    overflow-y: auto;
      /* 1. Firefox 浏览器隐藏滚动条 */

    scrollbar-width: none; 
    -ms-overflow-style: none;
}



.iti-ed-card-title {
    font-size: 18px;
    font-weight: 800;
    color: var(--iti-navy);
    margin: 0 0 10px;
}

.iti-ed-empty {
    font-size: 13px;
    color: var(--iti-text-light);
    margin: 0;
    padding: 12px 0;
}

/* ---- 讲师 ---- */
.iti-ed-speakers {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.iti-ed-speaker {
    display: flex;
    align-items: center;
    gap: 12px;
}

.iti-ed-speaker-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background-size: cover;
    background-position: center;
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 800;
    flex-shrink: 0;
    overflow: hidden;
}

.iti-ed-speaker-body { display: flex; flex-direction: column; min-width: 0; }
/* 窄栏下长名字/地点单行截断，避免撑破布局 */
.iti-ed-speaker-name,
.iti-ed-speaker-role,
.iti-ed-speaker-loc {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.iti-ed-speaker-name { font-size: 14px; font-weight: 800; color: var(--iti-navy); }
.iti-ed-speaker-role { font-size: 11px; color: var(--iti-primary); }
.iti-ed-speaker-loc {
    font-size: 12px;
    font-weight: 600;
    color: var(--iti-text-light);
    position: relative;
    padding-left: 16px; /* 给图标留空间 */
}
.iti-ed-speaker-loc {
    margin-top: 8px;
}
.iti-ed-speaker-loc::before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 10px;
    height: 10px;
    background: url('/assets/images/event/weizhi.png') no-repeat center;
    background-size: contain;
}
/* ---- 官方链接 ---- */
.iti-ed-official {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 14px;
    font-size: 13px;
    word-break: break-all;
}
.iti-ed-official-icon { color: var(--iti-primary); flex-shrink: 0; }
.iti-ed-official-icon svg { width: 18px; height: 18px; display: block; }
.iti-ed-official a { color: var(--iti-text); text-decoration: none; }
.iti-ed-official a:hover { text-decoration: underline; }

.iti-ed-subtitle {
    font-size: 18px;
    font-weight: 800;
    color: var(--iti-navy);
    margin: 24px 0 4px;
}

/* ---- 核心亮点 ---- */
.iti-ed-highlights {
    list-style: none;
    padding: 0;
    margin: 0 0 8px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.iti-ed-highlights li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    line-height: 1.3;
    color: var(--iti-navy);
}
.iti-ed-hl-mark {
    flex-shrink: 0;
    width: 14px;
    height: 14px;
    background: var(--iti-primary);
    border-radius: 2px;
    margin-top: 3px;
    font-size: 8px;
    color: #fff;
    text-align: center;
    line-height: 13px;
}

/* ---- 报名 ---- */
.iti-ed-reg {
    display: grid;


    font-size: 13px;
}
.iti-ed-reg dt { color: var(--iti-text-light); font-weight: 600; }
.iti-ed-reg dd { margin: 0; color: var(--iti-navy); }

.iti-ed-reg-package {
    font-size: 13px;
    line-height: 1.7;
    color: var(--iti-text);
    margin: 0 0 20px;
}

/* ============ 日程安排 ============ */
.iti-ed-agenda {
    background: var(--iti-bg);
    padding: 32px 0 64px;
}

.iti-ed-section-title {
    font-size: 22px;
    font-weight: 800;
    color: var(--iti-navy);
    margin: 0 0 20px;
}

.iti-ed-agenda-tabs {
    display: flex;
    gap: 28px;
    margin-bottom: 24px;

}

.iti-ed-agenda-tab {
    position: relative;
    padding: 12px 2px;
    font-size: 16px;
    font-weight: 600;
    color: var(--iti-text-light);
    background: transparent;
    border: 0;
    cursor: pointer;
    white-space: nowrap;
    transition: color var(--iti-transition);
    font-family: inherit;
}
.iti-ed-agenda-tab:hover { color: var(--iti-primary); }
/* 激活日：深色加粗 + 文字下方一小段青色短线（参考图样式） */
.iti-ed-agenda-tab.is-active {
    color: var(--iti-navy);
    font-weight: 800;
}
.iti-ed-agenda-tab.is-active::after {
    content: '';
    position: absolute;
    left: 0;
    width: 34px;
    bottom: -1px;
    height: 3px;
    background: var(--iti-primary);
    border-radius: 2px 2px 0 0;
}

/* 面板切换 */
.iti-ed-agenda-panel { display: none; }
.iti-ed-agenda-panel.is-active { display: block; }

/* ============ 日程表格（参考图：左侧竖排时段 + 右侧 3 列） ============ */
.iti-ed-agenda-table {
    
}

/* 每行 = 4 列：52px 标签列 + 3 个 track 列
   行 / 列之间都留出白缝，形成参考图那种「色块拼版」效果 */
.iti-ed-agenda-row {
    display: grid;
    grid-template-columns: 52px repeat(3, 1fr);
    column-gap: 8px;
    row-gap: 5px;
    align-items: stretch;
    padding: 0;
    margin-top: 10px;
}

.iti-ed-agenda-row--head {
    padding: 0 0 5px;
    align-items: center;
}
.iti-ed-agenda-row--head .iti-ed-agenda-col-title {
    text-align: center;
    background-color: var(--iti-primary-dark);
    color: #fff;
    font-size: 12.5px;
    font-weight: 400;
    /* 参考图是 "Main Sessions" 首字母大写，这里取消基础样式的全大写 */
    text-transform: none;
    letter-spacing: 0;
    margin: 0;
    border-bottom: 0;
    padding: 8px 0;
}

/* 左侧标签列：竖排文字，深蓝色块（与表头同色，参考图） */
.iti-ed-agenda-gutter { display: block; }

.iti-ed-agenda-label {
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--iti-primary-dark);
    min-height: 120px;
    padding: 10px 0;
}

.iti-ed-agenda-label-inner {
    /* 竖排：text-orientation: mixed（默认）
       - 中文字符保持正立，从上往下排列
       - 英文/拉丁字母侧躺 90°（符合西文竖排规范）
       不要加 rotate(180deg)，否则中文会被整体翻转成上下颠倒。 */
    writing-mode: vertical-rl;
    text-orientation: mixed;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: #fff;
    white-space: nowrap;
}

/* 时段标签（name 是中文，如「上午」「下午」）
   —— 不再有 .en，中文是唯一标签，故用较大字号 + 字间距（竖排时更好读） */
.iti-ed-agenda-label-inner .zh {
    font-size: 14px;
    font-weight: 800;
    letter-spacing: 2px;
    opacity: 1;
}

.iti-ed-agenda-col-title {
    font-size: 13px;
    font-weight: 800;
    color: var(--iti-navy);
    text-transform: uppercase;
    letter-spacing: 0.3px;
    margin: 0 0 14px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--iti-bg-soft-2);
}

.iti-ed-agenda-none {
    font-size: 12px;
    color: var(--iti-text-light);
    margin: 0;
    padding: 8px 0;
}

/* ---- track 列：卡片纵向排列，互相之间留白缝（参考图效果） ---- */
.iti-ed-agenda-col {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

/* ---- 时段卡片：直角纯色块，时间在左上、正文块垂直居中 ---- */
.iti-ed-session {
    flex: 1;
    min-height: 140px;
    display: flex;
    flex-direction: column;
    padding: 14px 18px;
    transition: transform var(--iti-transition), box-shadow var(--iti-transition);
}
.iti-ed-session:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(15, 31, 61, 0.1);
}

.iti-ed-session--primary { background: var(--iti-primary);  color: var(--iti-navy); }
.iti-ed-session--yellow  { background: var(--iti-yellow);   color: var(--iti-navy); }
.iti-ed-session--soft    { background: var(--iti-bg-soft-2);color: var(--iti-navy); }
.iti-ed-session--gray    { background: #C9CFD4;             color: var(--iti-navy); }

.iti-ed-session-time {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 600;
    margin: 0;
    opacity: 0.9;
}
.iti-ed-session-time svg { width: 13px; height: 13px; flex-shrink: 0; }

/* 正文块（机构 + 标题）在剩余空间里垂直居中 */
.iti-ed-session-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding-top: 10px;
    overflow-y: auto;
    scrollbar-width: none; 
    
    /* 2. IE 10+ 隐藏滚动条 */
    -ms-overflow-style: none; 
}

/* 主办 / 机构名：灰色小字 */
.iti-ed-session-brand {
    margin: 0;
    font-size: 12.5px;
    font-weight: 400;
    line-height: 1.5;
    color: var(--iti-text);
}

.iti-ed-session-title {
    text-align: center;
    color: #000;
    font-size: 14px;
    font-weight: 400;
    line-height: 1.45;
    margin: 0;
    /* 标题可能多行（后台 textarea），保留换行符；内容仍经 esc() 转义 */
    white-space: pre-line;
}

/* ============ 按钮 ============ */
.iti-btn-pill { border-radius: 999px; }

/* ============ 响应式 ============ */
@media (max-width: 1023px) {
    .iti-ed-hero-inner { grid-template-columns: 1fr; min-height: 0; }
    .iti-ed-hero-title { font-size: 24px; }
    .iti-ed-hero-media { height: 220px; }
    .iti-ed-hero-deco-left,
    .iti-ed-hero-deco-right { display: none; }

    .iti-ed-main-grid    { grid-template-columns: 1fr; }
    .iti-ed-card         { padding: 20px 22px; }
    .iti-ed-agenda-tabs  { gap: 18px; }

    /* 窄屏：竖排标签列太挤 → 每行改为「横向标签 + 3 列堆叠」 */
    .iti-ed-agenda-row--head { display: none; }        /* 隐藏表头（标签列已无意义） */
    .iti-ed-agenda-row {
        grid-template-columns: 1fr;
        gap: 12px;
        padding: 16px 0;
    }
    .iti-ed-agenda-label {
        min-height: 0;
        justify-content: flex-start;
        padding: 6px 14px;
        border-radius: 999px;
    }
    .iti-ed-agenda-label-inner {
        writing-mode: horizontal-tb;
        transform: none;
        gap: 8px;
    }
    /* 每个 track 列加小标题（桌面靠表头，移动端没有表头） */
    .iti-ed-agenda-col::before {
        content: attr(data-col);
        display: block;
        font-size: 11px;
        font-weight: 800;
        text-transform: uppercase;
        letter-spacing: 0.3px;
        color: var(--iti-text-light);
        margin-bottom: 6px;
    }
}

@media (max-width: 640px) {
    .iti-ed-reg { grid-template-columns: 1fr; gap: 2px 0; }
    .iti-ed-reg dd { margin-bottom: 10px; }
}
