/* 样式只作用于世界之最容器，不覆盖主题或其他 Elementor 元件。 */
.ida-world-best { --ida-gold: #e3c382; color: #e8e2d5; background: #17130e; font-family: inherit; line-height: 1.7; overflow-wrap: anywhere; }
.ida-world-best *, .ida-world-best *::before, .ida-world-best *::after { box-sizing: border-box; }
.ida-world-best h2, .ida-world-best h3, .ida-world-best p { margin: 0; color: inherit; }
.ida-world-best__header { text-align: center; padding: 64px 24px 42px; background: radial-gradient(ellipse at 30% 0%, #66502c 0%, transparent 65%), #1c1812; background-size: cover; background-position: center; }
.ida-world-best__header h2 { font-size: clamp(28px, 4vw, 54px); color: var(--ida-gold); letter-spacing: .12em; margin-bottom: 24px; }
.ida-world-best__header label { display: inline-flex; align-items: center; gap: 12px; }
.ida-world-best__header select { font: inherit; color: #29231b; background: #fff; border: 1px solid #d6c7a6; border-radius: 4px; padding: 8px 24px 8px 12px; max-width: 100%; }
/* 年度纪录页使用指定默认背景；Elementor 已选图片仍由原有行内样式覆盖。 */
/* 按 1920×614 原型比例铺满容器，不限制超宽屏；窄屏允许内容撑高，避免裁切。 */
:is(.ida-world-best--team-records, .ida-world-best--latest-records, .ida-world-best--personal-records) .ida-world-best__header { position: relative; isolation: isolate; width: 100%; max-width: none; aspect-ratio: 1920 / 614; margin-left: auto; margin-right: auto; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 24px; background-image: url("https://www.ida1998.com/wp-content/uploads/2026/10/恭贺PPT.png"); }
/* 仅遮罩背景，不降低标题／年份控件的透明度，也不拦截点击。 */
:is(.ida-world-best--team-records, .ida-world-best--latest-records, .ida-world-best--personal-records) .ida-world-best__header::before { content: ""; position: absolute; inset: 0; z-index: 0; background: rgba(0, 0, 0, .6); pointer-events: none; }
:is(.ida-world-best--team-records, .ida-world-best--latest-records, .ida-world-best--personal-records) .ida-world-best__header > * { position: relative; z-index: 1; }
/* 年度提示放在原生选择框内，控件整体在 Banner 中居中，窄屏宽度不溢出。 */
:is(.ida-world-best--team-records, .ida-world-best--latest-records, .ida-world-best--personal-records) .ida-world-best__header label { display: block; width: 280px; max-width: 100%; margin-left: auto; margin-right: auto; }
:is(.ida-world-best--team-records, .ida-world-best--latest-records, .ida-world-best--personal-records) .ida-world-best__header select { display: block; width: 100%; text-align: center; text-align-last: center; }
/* 年度纪录页 Banner 标题文字居中，字族继续继承网站设置。 */
:is(.ida-world-best--team-records, .ida-world-best--latest-records, .ida-world-best--personal-records) .ida-world-best__header h2 { width: 520px; max-width: 100%; min-height: 158px; height: auto; margin-left: auto; margin-right: auto; font-family: inherit; font-weight: 800; font-size: 110px; color: #FFFFFF; line-height: 158px; text-align: center; font-style: normal; letter-spacing: normal; }
@supports ((background-clip: text) or (-webkit-background-clip: text)) {
    :is(.ida-world-best--team-records, .ida-world-best--latest-records, .ida-world-best--personal-records) .ida-world-best__header h2 { background: linear-gradient(270deg, #E6BE8B 0%, #FBE1C6 100%); background-clip: text; -webkit-background-clip: text; color: transparent; -webkit-text-fill-color: transparent; }
}
/* 年度纪录卡片采用左文右图；总览保持原布局。 */
:is(.ida-world-best--team-records, .ida-world-best--latest-records, .ida-world-best--personal-records) .ida-world-best__card-content { flex-direction: row-reverse; }
:is(.ida-world-best--team-records, .ida-world-best--latest-records, .ida-world-best--personal-records) .ida-world-best__card h3 { width: 631px; max-width: 100%; height: auto; min-height: 41px; font-family: inherit; font-weight: bold; font-size: 36px; color: #D3A045; line-height: 54px; text-align: left; font-style: normal; background: none; }
@supports ((background-clip: text) or (-webkit-background-clip: text)) {
    :is(.ida-world-best--team-records, .ida-world-best--latest-records, .ida-world-best--personal-records) .ida-world-best__card h3 { background: linear-gradient(269.9706386237465deg, #D3A045 0%, #FFE8BF 100%); background-clip: text; -webkit-background-clip: text; color: transparent; -webkit-text-fill-color: transparent; }
}
/* 团队标签与其他资料采用相同正文样式，长文本自动增高，避免固定高度裁切。 */
:is(.ida-world-best--team-records, .ida-world-best--latest-records, .ida-world-best--personal-records) .ida-world-best__description > .ida-world-best__team-name, :is(.ida-world-best--team-records, .ida-world-best--latest-records, .ida-world-best--personal-records) .ida-world-best__description > .ida-world-best__line { width: 449px; max-width: 100%; height: auto; min-height: 35px; font-family: inherit; font-weight: 400; font-size: 24px; color: rgba(255, 255, 255, .8); line-height: 35px; text-align: left; font-style: normal; }
/* 仅团队名称使用强调样式，标签不继承名称的粗体与纯白色。 */
:is(.ida-world-best--team-records, .ida-world-best--latest-records, .ida-world-best--personal-records) .ida-world-best__team-name > a, :is(.ida-world-best--team-records, .ida-world-best--latest-records, .ida-world-best--personal-records) .ida-world-best__team-name > strong { font-family: inherit; font-weight: bold; font-size: 28px; color: #FFFFFF; line-height: 35px; text-decoration: none; }
/* 最新与个人页名称沿用原有语义，共用名称字级和颜色。 */
:is(.ida-world-best--latest-records, .ida-world-best--personal-records) .ida-world-best__description > a, :is(.ida-world-best--latest-records, .ida-world-best--personal-records) .ida-world-best__description > strong { display: block; max-width: 100%; min-height: 35px; font-family: inherit; font-weight: bold; font-size: 28px; color: #FFFFFF; line-height: 35px; text-align: left; font-style: normal; text-decoration: none; }
.ida-world-best__body { max-width: 1280px; padding: 24px 32px 64px; margin: 0 auto; }
.ida-world-best__body > h2 { text-align: center; font-size: 26px; }
.ida-world-best__status { text-align: center; padding: 16px; }
.ida-world-best__status:empty { display: none; }
.ida-world-best__updated { color: #b7ae9d; font-size: 14px; text-align: center; margin-top: 8px !important; }
.ida-world-best__section { margin-top: 36px; }
.ida-world-best__section > h2 { font-size: 24px; margin-bottom: 24px; text-align: center; }
.ida-world-best__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.ida-world-best__card { border: 1px solid #685637; border-radius: 8px; overflow: hidden; background: linear-gradient(120deg, #302a21, #211d17); }
.ida-world-best__card h3 { padding: 12px 20px; font-size: 20px; color: var(--ida-gold); background: linear-gradient(100deg, #66563b, transparent); }
.ida-world-best__card-content { display: flex; align-items: center; gap: 20px; padding: 20px; }
.ida-world-best__card-content > img { width: 110px; max-height: 170px; object-fit: contain; flex: 0 0 auto; }
.ida-world-best__description { flex: 1; min-width: 0; }
.ida-world-best__description a { color: var(--ida-gold); text-decoration: underline; text-underline-offset: 3px; }
.ida-world-best__line { font-size: 15px; margin-top: 6px !important; }
/* 总览卡片按正式首页原型排列：左侧照片／标志，右侧金色纪录名称与会员／团队名称。 */
/* 同列卡片等高时，内容也须填满卡片，避免标题行数不同导致图片中心错位。 */
.ida-world-best--overview .ida-world-best__card { display: flex; flex-direction: column; border-color: #4e432c; border-radius: 3px; background: linear-gradient(110deg, #14130f, #080807); }
.ida-world-best--overview .ida-world-best__card-content { flex: 1; min-height: 140px; padding: 0 16px 0 0; gap: 16px; }
/* 图像在左侧区域居中，避免方形团队图标贴底；contain 保留照片与标志的完整比例。 */
.ida-world-best--overview .ida-world-best__card-content > img { width: 110px; height: 140px; max-height: none; margin-left: 5px; object-fit: contain; object-position: center; align-self: center; }
.ida-world-best--overview .ida-world-best__description { padding: 14px 0; }
.ida-world-best--overview .ida-world-best__description:first-child { padding-left: 16px; }
/* 字族继承网站设置；高度随换行增长，避免固定高度截断文字。 */
.ida-world-best--overview .ida-world-best__description h3 { width: 444px; max-width: 100%; height: auto; padding: 0; background: none; font-family: inherit; font-weight: bold; font-size: 36px; color: #D3A045; line-height: 54px; text-align: left; font-style: normal; }
/* 整段标题从上浅到下深，换行不重置渐层；不支持文字裁剪时保留可读金色。 */
@supports ((background-clip: text) or (-webkit-background-clip: text)) {
    .ida-world-best--overview .ida-world-best__description h3 { background: linear-gradient(180deg, #FFE8BF 0%, #D3A045 100%); background-clip: text; -webkit-background-clip: text; color: transparent; -webkit-text-fill-color: transparent; }
}
/* 名称按指定字级与行高显示；保留网站字族，长名称不以固定高度裁切。 */
.ida-world-best--overview .ida-world-best__description > a, .ida-world-best--overview .ida-world-best__description > strong { display: block; width: 404px; max-width: 100%; min-height: 30px; height: auto; margin-top: 6px; font-family: inherit; font-weight: 400; font-size: 24px; color: #FFFFFF; line-height: 18px; text-align: left; font-style: normal; text-decoration: none; }
.ida-world-best a:focus-visible, .ida-world-best select:focus-visible { outline: 3px solid #f5cd73; outline-offset: 4px; }
.ida-world-best--team-detail { background: #fff; color: #333; }
.ida-world-best--team-detail .ida-world-best__header { color: #fff; }
.ida-world-best--team-detail .ida-world-best__section > h2 { text-align: left; border-left: 3px solid #29355d; padding-left: 12px; }
.ida-world-best--team-detail .ida-world-best__body > img { max-width: 100%; max-height: 700px; object-fit: contain; display: block; margin: 24px auto; }
.ida-world-best__video { width: 100%; max-height: 600px; }
.ida-world-best__award { padding: 24px; margin-bottom: 16px; background: linear-gradient(105deg, #fff8df, #eacb83); color: #4d3714; }
.ida-world-best__album { display: flex; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 12px; }
.ida-world-best__album img { width: 180px; height: 180px; object-fit: cover; scroll-snap-align: start; }
/* 行动版保持网頁版的全部区块，仅改变排列，不使用其他旧稿删减内容。 */
@media (max-width: 767px) {
    .ida-world-best__body { padding: 20px 16px 40px; }
    .ida-world-best__header { padding: 40px 16px; }
    /* 手机保持原型字级与行高比例，避免 110px 标题挤出窄屏。 */
    :is(.ida-world-best--team-records, .ida-world-best--latest-records, .ida-world-best--personal-records) .ida-world-best__header h2 { min-height: 0; font-size: clamp(40px, 12vw, 72px); line-height: 1.4363636364; }
    .ida-world-best__grid { grid-template-columns: 1fr; gap: 16px; }
    .ida-world-best__card-content { gap: 12px; padding: 16px; }
    .ida-world-best__card-content > img { width: 85px; }
    .ida-world-best--overview .ida-world-best__card-content { gap: 12px; }
    .ida-world-best--overview .ida-world-best__card-content > img { width: 95px; }
}
