/* PC 活动详情页：仅作用于 .act-detail，避免影响复用 index.css 的其他页面 */

/* 页面与页头共用 1200px 对齐基线，卡片靠底色区分层级。 */
body.ui-home.ui-activity-detail { background: #f7f8fa; }
.win-dist.act-detail {
    display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 24px;
    width: calc(100% - 64px); max-width: 1200px; margin: 24px auto 40px;
    align-items: start;

    --ink: #17181c;
    --ink-2: #5b6270;
    --ink-3: #9aa1ad;
    --rule: #e8eaee;
    --brand: #f29600;
    --brand-ink: #a8620a;
    /* 日期、电话等"日程数据"用等宽数字，与正文区分且不必加色或加框 */
    --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;
}
.act-detail > .wt20, .act-detail > .fxclear { display: none; }
/* overflow 让出血海报的圆角裁到卡片轮廓 */
.act-detail > .w-block { grid-column: 1 / -1; border-radius: 8px; overflow: hidden; }

/* ---------- 头部信息 ----------
   主视觉出血占满左侧、与文字列上下齐平。海报列取一半宽度，
   此时列自身比例接近常见的 16:9 与 355/215 海报，出血只裁掉边缘几个百分点。 */
.act-detail .thinfo {
    display: grid; grid-template-columns: minmax(0, 50%) minmax(0, 1fr); gap: 0;
    padding: 0; overflow: visible; align-items: stretch;
}
.act-detail .thinfoimg {
    float: none; width: 100%; height: auto; min-height: 266px; margin: 0;
    background: #eceef1;
}
.act-detail .thinfoimg img {
    display: block; width: 100%; height: 100%; aspect-ratio: auto;
    border-radius: 0; object-fit: cover;
}
.act-detail .thdetails {
    display: flex; flex-direction: column; align-items: flex-start;
    float: none; width: auto; min-width: 0; height: auto; min-height: 0;
    margin: 0; padding: 26px 28px 26px 32px; box-sizing: border-box;
}
.act-detail .thdetails .hdtit {
    margin: 0; font-size: 30px; font-weight: 700; line-height: 1.26;
    letter-spacing: -.01em; color: var(--ink);
}
/* 日期与状态同属"时间"这一层信息，并排一行 */
.act-detail .thdetails .hdtime {
    display: flex; flex-wrap: wrap; align-items: center; gap: 10px;
    margin-top: 12px; line-height: 20px; font-size: 13px; color: var(--ink-3);
}
.act-detail .thdetails .hdtime__range {
    font-family: var(--mono); font-variant-numeric: tabular-nums; letter-spacing: .02em;
}
.act-detail .thdetails .hdother {
    display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 20px;
}
/* 属性标签（分类 / 人数 / 费用）统一成同一种 chip，
   只保留分类一处品牌色作为焦点；覆盖 index.css 的 :first-child / :nth-child(3) 旧规则 */
.act-detail .thdetails .hdother span {
    display: inline-flex; align-items: center; box-sizing: border-box;
    height: 26px; margin: 0; padding: 0 10px;
    border: 1px solid var(--rule); border-radius: 3px;
    background: #fff; color: var(--ink-2); font-size: 13px; line-height: 1;
}
.act-detail .thdetails .hdother span:first-child {
    border-color: #f6e0bd; background: #fff8ec; color: var(--brand-ink);
}
.act-detail .thdetails .hdaddress {
    display: flex; align-items: flex-start; gap: 9px;
    max-width: 100%; margin-top: 22px; line-height: 22px; font-size: 14px; color: var(--ink-2);
}
.act-detail .thdetails .hdphone {
    display: flex; align-items: flex-start; gap: 9px;
    margin-top: 8px; line-height: 22px; font-size: 14px; color: var(--ink-2);
    font-family: var(--mono); font-variant-numeric: tabular-nums; letter-spacing: .02em;
}
/* 无地点（全国且未填地址）时地址行不出，电话行直接接在标签后，沿用地址行与标签的间距 */
.act-detail .thdetails .hdother + .hdphone { margin-top: 22px; }

/* 头部信息行图标（地点 / 电话）统一尺寸、线宽与颜色 */
.act-detail .thdetails .act-meta-icon {
    width: 16px; height: 16px; fill: none;
    color: var(--ink-3); stroke: currentColor;
    stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round;
}
.act-detail .thdetails .hdaddress .act-meta-icon,
.act-detail .thdetails .hdphone .act-meta-icon { flex: 0 0 16px; margin-top: 3px; }

/* 状态（已结束）：2020 年的活动在今天看，"已结束"是背景而非新闻，
   所以做成细竖线分隔的字距标签，而不是又一个填充色块 */
.act-status {
    display: inline-flex; align-items: center; gap: 9px;
    color: var(--ink-3); font-size: 12px; letter-spacing: .08em;
    text-decoration: none; cursor: default;
}
.act-status::before { content: ""; width: 1px; height: 12px; background: var(--rule); }
a.act-status { cursor: pointer; transition: color .15s; }
a.act-status:hover { color: var(--brand-ink); text-decoration: none; }
a.act-status:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; border-radius: 2px; }

/* ---------- 按钮（状态按钮 / 添加参会人） ---------- */
.act-btn {
    display: inline-flex; align-items: center; justify-content: center; box-sizing: border-box;
    height: 40px; padding: 0 18px; border: 1px solid transparent; border-radius: 4px;
    font-size: 15px; line-height: 1; white-space: nowrap; text-decoration: none; cursor: pointer;
    transition: background-color .15s, border-color .15s, color .15s;
}
.act-btn .fa { margin-right: 8px; font-size: 16px; }
.act-btn:hover { text-decoration: none; }
.act-btn--primary { background: #fff7e8; border-color: #f7c878; color: #d97e00; }
.act-btn--primary:hover { background: #ffefd2; border-color: #f7c878; color: #d97e00; }
.act-btn--pending { background: #fff7e8; border-color: #f7c878; color: #d97e00; }
.act-btn--pending:hover { background: #ffefd2; color: #d97e00; }
.act-btn--success { background: #1f9d55; border-color: #1f9d55; color: #fff; }
.act-btn--success:hover { background: #1a8a4a; border-color: #1a8a4a; color: #fff; }
.act-btn--danger { background: #fff1f0; border-color: #f4b0ab; color: #e03e36; }
.act-btn--danger:hover { background: #ffe4e1; color: #e03e36; }
.act-btn--ghost { background: #fff; border-color: #f29600; color: #f29600; }
.act-btn--ghost:hover { background: #fff7e8; color: #e08900; }

/* position 需显式复位，index.css 把 .thdetails .bmbtn 定为 absolute 右下角 */
.act-detail .thdetails .bmbtn {
    position: static; display: flex; flex-wrap: wrap; gap: 12px;
    align-self: stretch; width: auto; margin-top: auto; padding-top: 24px;
}
.act-detail .thdetails .bmbtn .act-btn { min-width: 180px; }

/* 栏目链接：不是三个待点的按钮，而是这场会议留下的资料索引。
   贴在文字列底部，一条发丝线之上标注，去掉边框与箭头让它读起来像目录而非工具栏 */
.act-archive {
    align-self: stretch; width: 100%; margin-top: 22px;
    padding-top: 22px; border-top: 1px solid var(--rule);
}
/* 分隔线由列里最先出现的操作组承担，避免画两条 */
.act-detail .thdetails .bmbtn ~ .act-archive {
    margin-top: 18px; padding-top: 0; border-top: 0;
}
.act-archive__label {
    margin-bottom: 12px; color: var(--ink-3);
    font-size: 12px; line-height: 1; letter-spacing: .1em;
}
.act-links {
    display: flex; flex-wrap: wrap; align-items: center; gap: 6px 26px;
    margin: 0; padding: 0; border: 0;
}
.act-resource-link {
    display: inline-flex; align-items: center; box-sizing: border-box;
    flex: 0 0 auto; height: 28px; padding: 0;
    border: 0; background: none;
    color: var(--ink-2); font-size: 14px; line-height: 1; text-decoration: none;
    transition: color .15s;
}
/* 图标走 mask 着色，写法与 pc-sidebar.css 的菜单图标一致；
   每类资源的图形由链接上的修饰类给出，颜色统一由父级继承 */
.act-resource-link__icon {
    display: inline-flex; align-items: center; justify-content: center;
    flex: 0 0 16px; width: 16px; height: 16px; margin-right: 8px;
    color: var(--ink-3); transition: color .15s;
}
.act-resource-link__icon::before {
    content: ""; display: block; width: 16px; height: 16px;
    background-color: currentColor;
    -webkit-mask: var(--link-icon) center / contain no-repeat;
    mask: var(--link-icon) center / contain no-repeat;
}
.act-resource-link__text { flex: 0 0 auto; white-space: nowrap; }
.act-resource-link--photo { --link-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect width='18' height='18' x='3' y='3' rx='2'/%3E%3Ccircle cx='9' cy='9' r='2'/%3E%3Cpath d='m21 15-3.1-3.1a2 2 0 0 0-2.8 0L6 21'/%3E%3C/svg%3E"); }
.act-resource-link--live { --link-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m16 13 5.2 3.5a.5.5 0 0 0 .8-.4V7.9a.5.5 0 0 0-.8-.4L16 11'/%3E%3Crect width='14' height='12' x='2' y='6' rx='2'/%3E%3C/svg%3E"); }
.act-resource-link--topic { --link-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12.8 2.2a2 2 0 0 0-1.6 0L2.6 6.1a1 1 0 0 0 0 1.8l8.6 3.9a2 2 0 0 0 1.6 0l8.6-3.9a1 1 0 0 0 0-1.8z'/%3E%3Cpath d='m22 12.7-9.2 4.1a2 2 0 0 1-1.6 0L2 12.7'/%3E%3Cpath d='m22 17.7-9.2 4.1a2 2 0 0 1-1.6 0L2 17.7'/%3E%3C/svg%3E"); }
.act-resource-link--news { --link-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 22h16a2 2 0 0 0 2-2V4a2 2 0 0 0-2-2H8a2 2 0 0 0-2 2v16a2 2 0 0 1-2 2Zm0 0a2 2 0 0 1-2-2v-9c0-1.1.9-2 2-2h2'/%3E%3Cpath d='M18 14h-8M15 18h-5M10 6h8v4h-8Z'/%3E%3C/svg%3E"); }
.act-resource-link--hall { --link-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 8a2 2 0 0 0-1-1.73l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.73l7 4a2 2 0 0 0 2 0l7-4A2 2 0 0 0 21 16Z'/%3E%3Cpath d='m3.3 7 8.7 5 8.7-5'/%3E%3Cpath d='M12 22V12'/%3E%3C/svg%3E"); }
.act-resource-link--doc { --link-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z'/%3E%3Cpath d='M14 2v5h5'/%3E%3Cpath d='M16 13H8M16 17H8M10 9H8'/%3E%3C/svg%3E"); }
.act-resource-link--theme { --link-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M15 3h6v6'/%3E%3Cpath d='M10 14 21 3'/%3E%3Cpath d='M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6'/%3E%3C/svg%3E"); }
.act-resource-link:hover { color: var(--ink); text-decoration: none; }
.act-resource-link:hover .act-resource-link__icon { color: var(--brand); }
.act-resource-link:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; border-radius: 2px; }

/* 窄屏时海报列会挤压文字列，改为上下堆叠 */
@media (max-width: 1040px) {
    .act-detail .thinfo { grid-template-columns: minmax(0, 1fr); }
    .act-detail .thinfoimg { min-height: 0; max-height: 320px; }
    .act-detail .thdetails { padding: 24px; }
    .act-detail .thdetails .hdtit { font-size: 24px; }
}

/* ---------- 主体两栏：卡片之间露出页面底色 ---------- */
.act-detail .win_lstate, .act-detail .win_rstate {
    float: none; width: auto; min-width: 0; background: transparent;
}
.act-detail .win_lstate > .w-block,
.act-detail .win_rstate > .w-block {
    overflow: hidden; border-radius: 8px; background: #fff;
    box-shadow: none;
}
.act-detail .win_lstate > .w-block:first-child, .act-detail .win_rstate > .w-block:first-child { margin-top: 0; }
.act-detail .win_lstate > .w-block + .w-block,
.act-detail .win_rstate > .w-block + .w-block { margin-top: 24px; }
.act-detail .w-block .wbtitle {
    position: relative; z-index: 0; isolation: isolate;
    border-bottom: 0; color: #1f2329; padding: 24px 24px 0;
    line-height: 28px; font-size: 20px; font-weight: 600;
}
.act-detail .w-block .wbtitle::after {
    content: ""; position: absolute; z-index: -1;
    left: 24px; bottom: 0; width: 44px; height: 7px;
    border-radius: 2px; background: rgba(242, 150, 0, .42); transform: rotate(-1deg);
}
.act-detail .wbtitle--with-action {
    display: flex; align-items: center; justify-content: space-between;
    box-sizing: border-box; gap: 12px;
}
.act-detail .wbtitle__action {
    display: inline-flex; align-items: center;
    color: #86909c; font-size: 13px; font-weight: 400; text-decoration: none;
    flex-shrink: 0; white-space: nowrap;
}
.act-detail .wbtitle__action:hover { color: #f29600; text-decoration: none; }
.act-detail .wbtitle__action .fa { margin-left: 4px; font-size: 15px; }
.act-detail .win-content { padding: 20px 24px 24px; overflow-wrap: anywhere; word-break: normal; }
.act-detail .win-content > :first-child { margin-top: 0; }
.act-detail .win-content > :first-child img:first-child { margin-top: 0; }
.act-detail .win-content img { max-width: 100%; }
.act-detail .win-content table { max-width: 100%; }

/* ---------- 活动地点 ---------- */
.act-map { position: relative; display: block; margin: 20px 24px 0; height: 180px; border-radius: 4px; overflow: hidden; background: #f5f6f8; }
.act-map img { display: block; width: 100%; height: 100%; object-fit: cover; }
.act-map__fallback { display: none; position: absolute; inset: 0; align-items: center; justify-content: center; flex-direction: column; color: #999; font-size: 14px; }
.act-map__fallback .fa { font-size: 30px; color: #f29600; margin-bottom: 8px; }
.act-map--empty img { display: none; }
.act-map--empty .act-map__fallback { display: flex; }
.act-map-address { margin: 12px 24px 0; padding-bottom: 24px; font-size: 14px; line-height: 22px; color: #666; }
.act-map-address a { margin-left: 6px; color: #f29600; white-space: nowrap; }

/* ---------- 主办方 ---------- */
.act-detail .sponsor-card { padding: 20px 24px 24px; }
.act-detail .sponsor-card__profile { display: flex; align-items: flex-start; }
.act-detail .sponsor-card__body { min-width: 0; flex: 1; }
.act-detail .sprimg {
    flex: 0 0 56px; height: 56px; margin: 0 12px 0 0; padding: 6px;
    box-sizing: border-box; border: 1px solid #f0f1f3; border-radius: 8px; background: #fff;
}
.act-detail .sprimg img { display: block; width: 100%; height: 100%; border-radius: 0; object-fit: contain; }
.act-detail .sprname { line-height: 24px; text-align: left; font-size: 16px; font-weight: 600; color: #1d2129; }
.act-detail .sprname i { display: inline-block; margin-left: 6px; vertical-align: -2px; }
.act-detail .sprinfo {
    margin: 8px 0 0; padding: 0; text-align: left; line-height: 22px; font-size: 14px;
    color: #86909c; overflow-wrap: anywhere;
}
.act-detail .sprlist { margin: 18px 0 0; padding-top: 12px; border-top: 1px solid #f2f3f5; }
.act-detail .sprlist ul li { height: auto; min-height: 29px; }
.act-detail .ui-review-block { padding: 20px 24px 24px; }
.activity-codes { display: flex; flex-wrap: wrap; justify-content: center; gap: 16px 0; padding: 20px 20px 24px; }
.activity-code-item { width: 140px; text-align: center; }
.activity-code-label { margin-bottom: 10px; color: #1d2129; font-size: 14px; font-weight: 600; }
.activity-code-tip { margin-top: 8px; color: #86909c; font-size: 12px; line-height: 18px; }
.act-detail .ncode, .mp-activity-code {
    display: flex; align-items: center; justify-content: center; width: 128px; height: 128px; margin: 0 auto;
    padding: 5px; box-sizing: border-box; border: 1px solid #f0f1f3; border-radius: 4px; background: #fff;
}
.act-detail .ncode canvas { display: block; width: 118px; height: 118px; }
.mp-activity-code img { display: block; width: 118px; height: 118px; object-fit: contain; }
.mp-activity-code span { padding: 0 12px; color: #86909c; font-size: 12px; line-height: 18px; }

/* ---------- 联系我们 ---------- */
.mp-contact { color: #1d2129; font-size: 14px; line-height: 22px; }
.mp-contact__hq {
    display: inline-flex; flex-wrap: wrap; align-items: center; gap: 4px 12px;
    margin-bottom: 20px; padding: 10px 16px; border: 1px solid #ffe7ba; border-radius: 8px; background: #fffaf0;
}
.mp-contact__hq .mp-contact__area { color: #4e5969; }
.mp-contact__hq .mp-contact__phone { color: #f29600; font-weight: 600; }
.mp-contact__regions { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.mp-contact__region {
    min-width: 0; padding: 14px 16px; border-radius: 6px; background: #f7f8fa;
}
.act-detail .win-content h3.mp-contact__region-name {
    margin: 0 0 8px; padding: 0 0 8px; border: 0; border-bottom: 1px solid #e8ebf0;
    color: #1d2129; font-size: 15px; font-weight: 600; line-height: 20px;
}
.mp-contact__list { margin: 0; padding: 0; list-style: none; }
.mp-contact__item { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: start; gap: 8px; padding: 4px 0; }
.mp-contact__item .mp-contact__area { min-width: 0; color: #737f8f; font-size: 13px; overflow-wrap: anywhere; }
.mp-contact__phones { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }
.mp-contact__phone { white-space: nowrap; font-variant-numeric: tabular-nums; letter-spacing: .2px; }
.mp-contact__item .mp-contact__phone { color: #1d2129; font-weight: 500; }
.mp-contact__qrcode {
    display: flex; align-items: center; justify-content: center; gap: 20px;
    margin-top: 20px; padding: 16px; border-top: 1px solid #e8ebf0; color: #4e5969; font-size: 14px;
}
.mp-contact__qrcode img { display: block; width: 104px; height: 104px; object-fit: contain; }

@media (max-width: 900px) {
    .mp-contact__regions { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
    .mp-contact__regions { grid-template-columns: minmax(0, 1fr); gap: 12px; }
    .mp-contact__region { padding: 13px 14px; }
    .mp-contact__qrcode { gap: 14px; }
}
