/* ============================================
   CANN 主页门户样式
   ============================================ */

/* ---- 横幅区 ---- */
.cann-banner {
    background: linear-gradient(135deg, #0a1a3a 0%, #0e42d2 50%, #1677ff 100%);
    color: #fff;
    padding: 60px 0;
    position: relative;
    overflow: hidden;
}

.cann-banner::before {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    width: 50%;
    height: 100%;
    background: radial-gradient(circle at 70% 30%, rgba(255,255,255,.08), transparent 60%);
}

.cann-banner-inner {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
}

.cann-banner-text {
    flex: 1;
}

.cann-banner-text .banner-tag {
    display: inline-block;
    padding: 4px 12px;
    background: rgba(255,255,255,.15);
    border-radius: 20px;
    font-size: 13px;
    margin-bottom: 16px;
    backdrop-filter: blur(4px);
}

.cann-banner-text h1 {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 8px;
    letter-spacing: 1px;
}

.cann-banner-text .banner-subtitle {
    font-size: 18px;
    color: rgba(255,255,255,.8);
    margin-bottom: 20px;
}

.cann-banner-text .banner-desc {
    font-size: 15px;
    line-height: 1.8;
    color: rgba(255,255,255,.7);
    max-width: 560px;
    margin-bottom: 28px;
}

.cann-banner-btns {
    display: flex;
    gap: 12px;
}

/* ---- 主体布局 ---- */
.cann-body {
    display: flex;
    gap: 32px;
    max-width: var(--content-max);
    margin: 32px auto;
    padding: 0 20px;
}

/* ---- 左侧导航 ---- */
.cann-sidebar {
    width: var(--sidebar-width);
    flex-shrink: 0;
    position: sticky;
    top: calc(var(--header-height) + 24px);
    align-self: flex-start;
}

.sidebar-group {
    margin-bottom: 24px;
}

.sidebar-group-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    padding: 8px 0;
    margin-bottom: 4px;
    border-bottom: 2px solid var(--brand-red);
}

.sidebar-group li {
    margin: 0;
}

.sidebar-link {
    display: block;
    padding: 8px 12px;
    font-size: 13px;
    color: var(--text-secondary);
    border-radius: var(--radius-sm);
    transition: var(--transition);
}

.sidebar-link:hover {
    color: var(--brand-blue-light);
    background: var(--bg-hover);
}

.sidebar-link.highlight {
    color: var(--brand-red);
    font-weight: 600;
}

/* ---- 右侧内容 ---- */
.cann-content {
    flex: 1;
    min-width: 0;
}

/* 特性卡片 */
.cann-features {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 40px;
}

.feature-card {
    background: #fff;
    border-radius: var(--radius-lg);
    padding: 28px 24px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    border-top: 3px solid transparent;
}

.feature-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-2px);
    border-top-color: var(--brand-blue-light);
}

.feature-card .feature-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: linear-gradient(135deg, #e8f0ff, #d4e4ff);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    margin-bottom: 16px;
}

.feature-card h3 {
    font-size: 17px;
    font-weight: 600;
    margin-bottom: 10px;
}

.feature-card .feature-desc {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 12px;
}

.feature-card .feature-scenes {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.feature-card .scene-tag {
    padding: 3px 10px;
    background: var(--bg-page);
    border-radius: 12px;
    font-size: 12px;
    color: var(--text-tertiary);
}

/* 版本特性 */
.cann-version {
    background: linear-gradient(135deg, #f0f4ff, #e8f0ff);
    border-radius: var(--radius-lg);
    padding: 28px;
    margin-bottom: 40px;
    border: 1px solid #d4e4ff;
}

.cann-version .version-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.cann-version .version-badge {
    padding: 4px 12px;
    background: var(--brand-blue);
    color: #fff;
    border-radius: var(--radius-sm);
    font-size: 13px;
    font-weight: 600;
}

.cann-version h3 {
    font-size: 18px;
    font-weight: 600;
}

.cann-version ul {
    list-style: disc;
    padding-left: 20px;
}

.cann-version li {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 2;
}

/* 文档导航区 */
.cann-docs {
    margin-bottom: 40px;
}

.cann-docs-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.doc-section {
    background: #fff;
    border-radius: var(--radius-md);
    padding: 20px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.doc-section:hover {
    box-shadow: var(--shadow-md);
}

.doc-section h4 {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 14px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border-light);
    color: var(--text-primary);
}

.doc-section li {
    padding: 5px 0;
}

.doc-section a {
    font-size: 13px;
    color: var(--text-secondary);
}

.doc-section a:hover {
    color: var(--brand-blue-light);
}

/* ---- CANN 开发者日历 ---- */
.cann-body { display: block; max-width: 1280px; margin-top: 28px; }
.cann-content { width: 100%; }
.developer-calendar { background: #fff; border: 1px solid #e8edf4; border-radius: 3px; box-shadow: 0 2px 12px rgba(24, 45, 77, .04); padding: 24px 28px 20px; }
.calendar-heading, .calendar-toolbar, .calendar-month-control { display: flex; align-items: center; }
.calendar-heading, .calendar-toolbar { justify-content: space-between; }
.calendar-eyebrow { color: #8392a8; letter-spacing: 1.5px; font-weight: 650; font-size: 10px; }
.calendar-heading h1 { font-size: 24px; letter-spacing: .2px; margin-top: 3px; color: #172b4d; }
.calendar-heading p { color: #8792a4; font-size: 13px; margin-top: 3px; }
.calendar-create { display: inline-flex; gap: 6px; align-items: center; padding: 8px 13px; color: #145bd7; border: 1px solid #d8e4f6; border-radius: 5px; font-size: 13px; }
.calendar-create:hover { background: #f4f8ff; }
.calendar-toolbar { margin: 18px 0 12px; gap: 16px; }
.calendar-month-control { gap: 10px; }
.calendar-month-control h2 { margin: 0 7px; font-size: 17px; min-width: 112px; color: #243651; text-align: center; }
.calendar-arrow { height: 32px; background: #fff; border: 1px solid #e4e9f0; border-radius: 4px; color: #566780; cursor: pointer; }
.calendar-arrow { width: 32px; font-size: 21px; line-height: 1; }
.calendar-arrow:hover { border-color: #76a0ec; color: #145bd7; }
.calendar-latest { display: flex; align-items: center; gap: 8px; color: #7d8999; font-size: 12px; }
.calendar-latest strong { color: #435773; font-weight: 500; }
.filter-chip { display: inline-flex; align-items: center; gap: 6px; height: 29px; padding: 0 10px; border: 1px solid transparent; border-radius: 16px; color: #7b8797; background: transparent; font-size: 12px; cursor: pointer; }
.filter-chip:hover, .filter-chip.active { color: #285db3; background: #f1f6ff; border-color: #dfeaff; }
.calendar-layout { display: grid; grid-template-columns: minmax(0, 1fr) 276px; border: 1px solid #e9edf3; border-radius: 2px; overflow: hidden; }
.calendar-grid-wrap { min-width: 0; }
.calendar-weekdays, .calendar-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); }
.calendar-weekdays { height: 35px; align-items: center; color: #8793a3; background: #fafbfd; border-bottom: 1px solid #e9edf3; }
.calendar-weekdays span { text-align: center; font-size: 11px; }
.calendar-grid { grid-auto-rows: 74px; }
.calendar-day { position: relative; min-width: 0; padding: 7px 6px 5px; border: 0; border-right: 1px solid #edf0f4; border-bottom: 1px solid #edf0f4; color: #35445b; background: #fff; cursor: pointer; text-align: left; }
.calendar-day:nth-child(7n) { border-right: 0; }
.calendar-day:hover { background: #f8faff; }
.calendar-day.outside-month { background: #fcfcfd; color: #bec5cf; }
.calendar-day.is-selected { background: #f2f7ff; box-shadow: inset 0 0 0 1px #a7c4fa; }
.calendar-day.is-today .day-number { color: #fff; background: #2868df; }
.day-number { display: inline-flex; align-items: center; justify-content: center; min-width: 23px; height: 23px; border-radius: 50%; font-size: 12px; }
.day-events { display: flex; flex-direction: column; gap: 3px; margin-top: 2px; }
.calendar-event-dot { display: inline-block; width: 6px; height: 6px; margin: 1px 2px; border-radius: 50%; }
.calendar-event-dot.course { background: #4b82e8; }
.calendar-event-dot.live { background: #32ac8d; }
.calendar-event-dot.activity { background: #e6a24e; }
.legend-dot.event { background: #4b82e8; }
.calendar-legend { display: flex; gap: 17px; padding: 12px 13px; color: #788597; font-size: 11px; }
.calendar-legend span { display: inline-flex; align-items: center; gap: 6px; }
.calendar-agenda { border-left: 1px solid #e9edf3; background: #fcfdff; min-height: 100%; }
.agenda-date { display: flex; flex-direction: column; gap: 2px; padding: 17px 18px 14px; border-bottom: 1px solid #e9edf3; }
.agenda-date span { font-size: 11px; color: #8b97a8; }
.agenda-date strong { color: #253854; font-size: 17px; font-weight: 600; }
.agenda-events { padding: 12px; }
.agenda-card { position: relative; margin-bottom: 9px; padding: 12px 12px 11px; border: 1px solid #e6ebf2; border-left: 3px solid #4b82e8; border-radius: 5px; background: #fff; }
.agenda-card.live { border-left-color: #32ac8d; }
.agenda-card.activity { border-left-color: #e6a24e; }
.agenda-type, .upcoming-type { color: #3672d6; font-size: 10px; }
.agenda-card.live .agenda-type, .upcoming-type.live { color: #188a75; }
.agenda-card.activity .agenda-type, .upcoming-type.activity { color: #bb7629; }
.agenda-card h3 { margin: 3px 0 6px; color: #263954; font-size: 13px; line-height: 1.5; }
.agenda-time { color: #68778b; font-size: 11px; }
.agenda-card p { margin-top: 6px; color: #8792a2; font-size: 11px; line-height: 1.6; }
.agenda-card > a { display: flex; justify-content: space-between; margin-top: 8px; font-size: 11px; }
.agenda-empty { display: flex; flex-direction: column; align-items: center; padding: 40px 7px; color: #939eac; text-align: center; }
.agenda-empty-icon { margin-bottom: 10px; color: #c1ccda; font-size: 31px; }
.agenda-empty strong { color: #637188; font-size: 12px; font-weight: 500; }
.agenda-empty p { margin-top: 4px; font-size: 11px; }
.calendar-loading { grid-column: 1/-1; display: flex; align-items: center; justify-content: center; min-height: 220px; color: #929eae; font-size: 13px; }
.upcoming-empty { grid-column: 1/-1; padding: 30px; color: #929eae; text-align: center; font-size: 13px; }
.calendar-upcoming { margin-top: 20px; padding: 19px 22px 20px; }
.upcoming-heading { margin-bottom: 13px; }
.upcoming-heading h2 { margin-top: 1px; color: #243651; font-size: 19px; }
.upcoming-heading > span { color: #98a2b0; font-size: 11px; }
.upcoming-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.upcoming-card { display: flex; align-items: center; gap: 12px; min-width: 0; padding: 12px; border: 1px solid #e9edf3; border-radius: 5px; transition: var(--transition); }
.upcoming-card:hover { border-color: #ccdaf2; box-shadow: 0 3px 12px rgba(30, 61, 105, .06); }
.upcoming-date { display: flex; flex-direction: column; align-items: center; justify-content: center; flex: 0 0 47px; height: 49px; border-radius: 4px; background: #f1f6ff; color: #3271d5; }
.upcoming-date strong { font-size: 20px; line-height: 1.1; }
.upcoming-date span { font-size: 10px; }
.upcoming-info { min-width: 0; flex: 1; }
.upcoming-info h3 { overflow: hidden; margin: 2px 0; color: #34445e; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.upcoming-info p { overflow: hidden; color: #939eac; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.upcoming-link { color: #8a9ab1; font-size: 18px; }

@media (max-width: 1000px) {
    .calendar-layout { grid-template-columns: minmax(0, 1fr) 238px; }
    .calendar-grid { grid-auto-rows: 66px; }
    .calendar-day { padding: 5px 4px; }
}
@media (max-width: 760px) {
    .cann-body { display: block; margin: 18px auto; padding: 0 12px; }
    .cann-sidebar { display: none; }
    .developer-calendar { padding: 19px 13px 15px; }
    .calendar-heading h1 { font-size: 21px; }
    .calendar-heading p { max-width: 260px; font-size: 11px; }
    .calendar-create { padding: 7px 9px; }
    .calendar-create span { display: none; }
    .calendar-toolbar { align-items: flex-start; flex-direction: column; gap: 10px; }
    .calendar-month-control { flex-wrap: wrap; }
    .calendar-month-control h2 { min-width: auto; font-size: 15px; }
    .calendar-layout { display: flex; flex-direction: column; }
    .calendar-agenda { border-left: 0; border-top: 1px solid #e9edf3; }
    .calendar-grid { grid-auto-rows: 48px; }
    .calendar-day { padding: 3px 2px; }
    .day-number { min-width: 20px; height: 20px; font-size: 11px; }
    .calendar-event-dot { width: 4px; height: 4px; margin: 0 1px; }
    .calendar-grid-wrap { overflow: hidden; }
    .calendar-legend { padding: 8px; }
    .agenda-events { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); }
}

/* 完整 CANN 门户版块 */
.cann-body { display: flex; align-items: flex-start; gap: 30px; max-width: 1280px; margin: 28px auto 48px; padding: 0 20px; }
.cann-sidebar { display: block; width: 205px; flex: 0 0 205px; position: sticky; top: calc(var(--header-height) + 20px); }
.cann-content { flex: 1; min-width: 0; }
.portal-section { margin-bottom: 34px; }
.portal-section-heading { margin-bottom: 16px; }
.portal-section-heading h2 { margin-top: 2px; font-size: 23px; color: #172b4d; }
.cann-features { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 15px; margin: 0; }
.feature-card { padding: 22px 20px; border: 1px solid #e8edf4; border-radius: 4px; box-shadow: none; }
.feature-card:hover { box-shadow: var(--shadow-md); }
.portal-version .cann-version { margin: 0; }
.developer-calendar { margin: 0; }
.cann-docs { padding-top: 2px; }
.cann-docs .section-title { margin-bottom: 17px; }
.cann-docs-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.calendar-admin { max-width: 1050px; margin: 40px auto; padding: 0 22px 60px; }
.admin-heading { display:flex; justify-content:space-between; align-items:flex-end; margin-bottom:25px; }
.admin-heading h1 { color:#172b4d; font-size:28px; }
.admin-heading p { margin-top:6px; color:#79869a; }
.event-form { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:16px; padding:22px; background:#fff; border:1px solid var(--border-color); border-radius:6px; }
.event-form label { display:flex; flex-direction:column; gap:6px; color:#46566e; font-size:13px; }
.event-form input,.event-form select,.event-form textarea { width:100%; padding:10px 11px; border:1px solid #dfe5ed; border-radius:4px; font:inherit; color:#243651; background:#fff; }
.event-form textarea { resize:vertical; }
.wide-field,.form-actions { grid-column:1/-1; }
.form-actions { display:flex; align-items:center; gap:10px; }
.form-actions #form-message { color:#52816e; font-size:12px; }
.admin-events { margin-top:30px; }
.admin-events h2 { margin-bottom:14px; color:#243651; font-size:20px; }
.admin-event-row { display:flex; justify-content:space-between; align-items:center; gap:20px; padding:15px 17px; border:1px solid #e7ebf1; border-bottom:0; background:#fff; }
.admin-event-row:first-of-type { border-radius:5px 5px 0 0; }
.admin-event-row:last-of-type { border-bottom:1px solid #e7ebf1; border-radius:0 0 5px 5px; }
.admin-event-row h3 { margin:4px 0; color:#253854; font-size:15px; }
.admin-event-row p { color:#8792a2; font-size:12px; }
.admin-row-actions { display:flex; gap:8px; }
.admin-row-actions button { padding:6px 12px; border:1px solid #dfe5ed; border-radius:4px; background:#fff; color:#47617f; cursor:pointer; }
.admin-row-actions button:last-child { color:#b14049; }
@media (max-width: 1000px) {
    .cann-body { gap:20px; }
    .cann-sidebar { width:175px; flex-basis:175px; }
    .cann-docs-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
}
@media (max-width: 760px) {
    .cann-body { display:block; margin:18px auto; padding:0 12px; }
    .cann-sidebar { display:none; }
    .cann-features { grid-template-columns:1fr; }
    .cann-docs-grid { grid-template-columns:1fr; }
    .developer-calendar { padding:19px 13px 15px; }
    .calendar-heading h1 { font-size:21px; }
    .calendar-toolbar { align-items:flex-start; flex-direction:column; gap:10px; }
    .calendar-month-control h2 { min-width:auto; font-size:15px; }
    .calendar-latest { align-items:flex-start; }
    .calendar-layout { display:flex; flex-direction:column; }
    .calendar-agenda { border-left:0; border-top:1px solid #e9edf3; }
    .calendar-grid { grid-auto-rows:48px; }
    .calendar-day { padding:3px 2px; }
    .day-number { min-width:20px; height:20px; font-size:11px; }
    .calendar-event-dot { width:4px; height:4px; margin:0 1px; }
    .calendar-grid-wrap { overflow:hidden; }
    .calendar-legend { padding:8px; }
    .agenda-events { display:grid; grid-template-columns:repeat(auto-fit,minmax(190px,1fr)); }
    .calendar-admin { margin:24px auto; padding:0 12px 40px; }
    .event-form { grid-template-columns:1fr; padding:16px; }
    .wide-field,.form-actions { grid-column:auto; }
    .admin-heading { align-items:flex-start; gap:12px; }
    .admin-event-row { align-items:flex-start; }
}
.cann-banner { min-height: 390px; display:flex; align-items:center; padding:62px 0; background:linear-gradient(110deg,rgba(3,20,53,.88),rgba(8,52,126,.64)),url('https://www.hiascend.com/_static3/banner-pc.D2BmWxAr.jpg') center/cover no-repeat; }
.cann-banner-inner { width:100%; }
.cann-banner-text h1 { font-size:56px; letter-spacing:1.5px; }
.cann-banner-text .banner-desc { max-width:700px; }
@media(max-width:760px) { .cann-banner { min-height:300px; padding:40px 0; } .cann-banner-text h1 { font-size:42px; } }

/* 品牌主页：首页精简浅色横幅与三大业务入口 */
.cann-banner {
    min-height: 0;
    height: 300px;
    display: flex;
    align-items: center;
    padding: 0;
    color: #162c4b;
    background:
        radial-gradient(circle at 82% 45%, rgba(102, 169, 255, .20), transparent 27%),
        linear-gradient(112deg, #f6f9ff 0%, #eaf2ff 58%, #dceaff 100%);
    overflow: hidden;
}
.cann-banner::before {
    width: 38%;
    background: radial-gradient(circle at 70% 45%, rgba(58, 128, 224, .14), transparent 68%);
}
.cann-banner-inner { width: 100%; }
.cann-banner-text { max-width: 700px; }
.cann-banner-text h1 { margin: 0; color: #163b70; font-size: 48px; font-weight: 700; letter-spacing: 1px; }
.cann-banner-text .banner-desc { max-width: 590px; margin: 15px 0 21px; color: #526984; font-size: 17px; line-height: 1.8; }
.cann-banner-btns { display: flex; gap: 12px; }
.cann-banner .btn-primary { padding: 10px 26px; color: #fff; background: #1768c4; border-color: #1768c4; }
.cann-banner .btn-primary:hover { background: #0f55a6; }
.cann-banner .btn-secondary { color: #1768c4; border-color: #a8bfdf; }
.cann-banner .btn-secondary:hover { color: #0f55a6; background: rgba(255,255,255,.55); border-color: #1768c4; }
.cann-body { display: block; max-width: 1280px; margin: 36px auto 52px; padding: 0 24px; }
.cann-sidebar { display: none !important; }
.cann-content { width: 100%; }
.portal-section { margin-bottom: 38px; }
.business-section { margin-bottom: 42px; }
.business-heading { margin-bottom: 19px; }
.business-heading > span { color: #7992b1; font-size: 10px; font-weight: 700; letter-spacing: 2px; }
.business-heading h2 { margin-top: 3px; color: #203955; font-size: 25px; font-weight: 650; }
.business-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.business-card {
    position: relative;
    min-height: 218px;
    padding: 21px 23px 19px;
    overflow: hidden;
    border: 1px solid #e5ebf3;
    border-radius: 5px;
    background: #fff;
    box-shadow: 0 3px 12px rgba(35, 67, 105, .035);
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.business-card:hover { transform: translateY(-3px); border-color: #c9d9ed; box-shadow: 0 10px 25px rgba(35, 67, 105, .09); }
.business-card::after { position: absolute; top: 0; right: 0; width: 115px; height: 115px; border-radius: 0 0 0 100%; background: #eef5ff; content: ""; }
.business-2::after { background: #eef7f6; }
.business-3::after { background: #f3f0fb; }
.business-card-top { position: relative; z-index: 1; display: flex; align-items: center; justify-content: space-between; }
.business-icon { display: inline-flex; align-items: center; justify-content: center; width: 43px; height: 43px; color: #276bc0; border-radius: 10px; background: #e8f1ff; font-size: 23px; }
.business-2 .business-icon { color: #25877e; background: #e8f5f2; }
.business-3 .business-icon { color: #7451b7; background: #f0ebfa; }
.business-number { color: #9aacc2; font-size: 11px; letter-spacing: 1px; }
.business-subtitle { display: block; margin-top: 17px; color: #8a9cb2; font-size: 10px; font-weight: 600; letter-spacing: 1px; text-transform: uppercase; }
.business-card h3 { position: relative; z-index: 1; margin: 2px 0 8px; color: #243b58; font-size: 19px; }
.business-card p { max-width: 340px; min-height: 43px; color: #75859a; font-size: 12px; line-height: 1.75; }
.business-card > a { display: inline-flex; align-items: center; gap: 18px; margin-top: 10px; color: #2369bc; font-size: 12px; font-weight: 600; }
.business-card > a span { transition: transform .2s ease; }
.business-card > a:hover span { transform: translateX(4px); }
@media (max-width: 900px) {
    .cann-banner { height: 270px; }
    .business-grid { gap: 12px; }
    .business-card { padding: 18px; }
}
@media (max-width: 680px) {
    .cann-banner { height: 245px; }
    .cann-banner-text h1 { font-size: 38px; }
    .cann-banner-text .banner-desc { max-width: 450px; font-size: 14px; }
    .cann-body { margin: 25px auto 38px; padding: 0 14px; }
    .business-grid { grid-template-columns: 1fr; }
    .business-card { min-height: 200px; }
}

/* Embedded editable diagram section */
.physical-stack-section { margin: 0 0 38px; }
.stack-section-heading { margin: 0 0 14px; }
.stack-section-heading > span { color:#7992b1; font-size:10px; font-weight:700; letter-spacing:2px; }
.stack-section-heading h2 { margin-top:3px; color:#203955; font-size:25px; font-weight:650; }
.stack-load-error { padding:20px; color:#718198; background:#fff; border:1px solid #e5ebf3; }
@media(max-width:680px) { .stack-section-heading h2 { font-size:22px; } }

/* 科技感品牌横幅：沿用昇腾门户浅蓝光场和粒子氛围。 */
.cann-banner {
    height: 300px;
    min-height: 300px;
    padding: 0;
    color: #102b4f;
    background:
        radial-gradient(ellipse at 80% 42%, rgba(79, 188, 255, .31), transparent 24%),
        radial-gradient(ellipse at 65% 105%, rgba(105, 148, 255, .22), transparent 38%),
        linear-gradient(105deg, #f2f7ff 0%, #e5f0ff 47%, #cfe4ff 100%);
}
.cann-banner::before {
    width: 52%;
    opacity: .85;
    background:
        radial-gradient(circle at 68% 35%, rgba(40, 114, 215, .18) 0 2px, transparent 3px),
        radial-gradient(circle at 73% 44%, rgba(43, 166, 238, .32) 0 3px, transparent 4px),
        radial-gradient(circle at 80% 30%, rgba(101, 118, 255, .26) 0 2px, transparent 3px),
        radial-gradient(circle at 88% 55%, rgba(35, 175, 239, .22) 0 2px, transparent 3px),
        radial-gradient(ellipse at 78% 45%, rgba(89, 166, 250, .16), transparent 46%);
    background-size: 62px 54px, 87px 73px, 103px 69px, 72px 61px, auto;
}
.cann-banner-inner { justify-content:center; }
.cann-banner-text { width:100%; max-width:none; text-align:center; }
.cann-banner-text h1 { color: #102f58; font-size: 48px; letter-spacing: 1.4px; text-shadow: 0 2px 16px rgba(255,255,255,.5); }
.cann-banner-text .banner-subtitle { margin:9px 0 6px; color:#2462a5; font-size:18px; font-weight:650; line-height:1.5; }
.cann-banner-text .banner-desc { max-width: 760px; margin: 0 auto 16px; color: #294d75; font-size: 16px; line-height: 1.65; }
.cann-banner-btns { justify-content:center; }
.cann-banner .btn-primary { background: #152b46; border-color: #152b46; border-radius: 20px; }
.cann-banner .btn-primary:hover { background: #214c7b; }
.cann-banner .btn-secondary { border-radius:20px; }
.cann-banner-btns button.btn { font:inherit; cursor:pointer; }
@media(max-width:680px) {
    .cann-banner { height:auto; min-height:290px; padding:30px 0; }
    .cann-banner-text h1 { font-size: 38px; }
    .cann-banner-text .banner-subtitle { font-size:15px; }
    .cann-banner-text .banner-desc { font-size: 14px; }
    .cann-banner-btns { flex-wrap:wrap; }
}

/* Business and stack headings follow the compact centered portal hierarchy. */
.business-heading { margin-bottom: 19px; text-align: center; }
.business-heading > span { display:none; }
.business-heading h2 { max-width: 920px; margin: 0 auto; color:#203955; font-size:25px; font-weight:650; line-height:1.45; }
.stack-section-heading { margin: 0 auto 14px; text-align:center; }
.stack-section-heading > span { display:none; }
.stack-section-heading h2 { max-width: 1000px; margin:0 auto; color:#203955; font-size:25px; font-weight:650; line-height:1.45; }
.calendar-heading { position:relative; justify-content:center; text-align:center; }
.calendar-heading > div { width:100%; }
.calendar-heading .calendar-create { position:absolute; right:0; top:50%; transform:translateY(-50%); }
.portal-floor-heading { display:flex; align-items:center; justify-content:space-between; gap:16px; margin-bottom:18px; }
.portal-floor-heading h2 { margin:0; color:#203955; font-size:25px; font-weight:650; }
.news-section > .portal-floor-heading,
.community-section > .portal-floor-heading { justify-content:center; }
.news-section > .portal-floor-heading h2,
.community-section > .portal-floor-heading h2 { text-align:center; }
.news-section > .portal-floor-heading > a,
.community-section > .portal-floor-heading > a { position:absolute; right:24px; }
.news-section > .portal-floor-heading,
.community-section > .portal-floor-heading { position:relative; }
.portal-floor-heading > a { display:inline-flex; align-items:center; gap:10px; color:#2469bb; font-size:13px; }
.news-section,.community-section,.reward-section { margin-top:36px; }
.reward-heading { position:relative; justify-content:center; margin-bottom:18px; }
.reward-heading::before,.reward-heading::after { width:66px; height:8px; border-radius:8px; background:linear-gradient(90deg,transparent,#b5c9f5); content:""; }
.reward-heading::after { transform:scaleX(-1); }
.reward-panel { position:relative; overflow:hidden; padding:25px 30px 18px; border:1px solid #e3eafa; border-radius:16px; background:linear-gradient(135deg,#fff 0%,#f4f7ff 58%,#fff 100%); box-shadow:0 10px 30px rgba(30,75,140,.06); }
.reward-helper-wrap { position:absolute; z-index:5; top:0; right:0; }
.reward-helper { display:inline-flex; align-items:center; padding:9px 17px; border:0; border-radius:0 15px 0 16px; color:#174f9f; background:#e4edff; font:inherit; font-size:13px; font-weight:700; cursor:pointer; text-shadow:0 1px 0 rgba(255,255,255,.85); }
.reward-helper:hover,.reward-helper:focus-visible { background:#d6e4ff; }
.reward-qr-popover { position:absolute; top:calc(100% + 8px); right:10px; width:210px; padding:10px; border:1px solid #e4eaf2; border-radius:12px; background:#fff; box-shadow:0 12px 32px rgba(22,45,78,.2); opacity:0; visibility:hidden; transform:translateY(-5px); transition:opacity .16s ease,transform .16s ease,visibility .16s; }
.reward-helper-wrap:hover .reward-qr-popover,.reward-helper-wrap:focus-within .reward-qr-popover { opacity:1; visibility:visible; transform:translateY(0); }
.reward-qr-popover img { display:block; width:100%; height:auto; border-radius:6px; }
.reward-panel-intro { text-align:center; }
.reward-panel-intro h3 { margin:0 0 9px; color:#172d4b; font-size:27px; font-weight:750; }
.reward-panel-intro h3 span { color:#6254eb; }
.reward-panel-intro p { max-width:850px; margin:0 auto 12px; color:#596d87; font-size:13px; line-height:1.8; }
.reward-cta { display:inline-flex; min-width:96px; min-height:34px; align-items:center; justify-content:center; padding:6px 18px; border-radius:20px; color:#fff; background:#192439; font-size:12px; }
.reward-cta:hover { background:#28599e; }
.reward-panel-content { display:grid; grid-template-columns:.8fr 1.2fr; align-items:center; gap:30px; max-width:1020px; margin:25px auto 3px; }
.reward-benefits { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:23px 12px; }
.reward-benefit { display:flex; min-height:74px; flex-direction:column; align-items:center; justify-content:center; gap:8px; color:#34445b; font-size:12px; text-align:center; }
.reward-benefit-icon { display:grid; width:34px; height:34px; place-items:center; border:1px solid #dfe6f1; border-radius:9px; color:#4069a7; background:rgba(255,255,255,.88); font-size:22px; line-height:1; }
.reward-gift-image { display:block; width:100%; max-width:490px; height:auto; justify-self:end; border-radius:8px; }
.news-layout { display:grid; grid-template-columns:1fr; gap:16px; }
.news-feature { overflow:hidden; border:1px solid #e3eaf2; border-radius:6px; background:#fff; }
.training-group-photo { display:block; width:100%; max-height:360px; object-fit:contain; object-position:center; border-radius:5px; background:#edf1f5; }
.training-story-body { display:grid; grid-template-columns:minmax(0,.9fr) minmax(0,1.1fr); gap:28px; align-items:center; padding:22px; }
.training-story-copy { padding:10px 12px; }
.training-story-meta { display:flex; align-items:center; gap:12px; }
.news-category { display:inline-flex; padding:4px 9px; border-radius:3px; color:#2165b1; background:#edf5ff; font-size:11px; }
.training-story-meta time { color:#91a0b1; font-size:11px; }
.training-story-copy h3 { margin-top:13px; color:#263d59; font-size:23px; line-height:1.5; }
.training-story-copy p { margin-top:13px; color:#79899d; font-size:14px; line-height:2; }
.training-story-tags { display:flex; flex-wrap:wrap; gap:8px; margin-top:11px; }
.training-story-tags span { padding:4px 10px; border-radius:15px; color:#376b9f; background:#f0f6fc; font-size:12px; }
.news-more { display:inline-flex; align-items:center; gap:18px; margin-top:18px; color:#2469bb; font-size:12px; }
.news-list { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:12px; }
.news-row { position:relative; display:block; min-height:83px; padding:13px 40px 12px 16px; border:1px solid #e5ebf2; border-radius:6px; background:#fff; color:inherit; transition:background .16s; }
.news-row:hover { background:#f9fbfe; }
.news-row-meta { display:flex; justify-content:space-between; gap:12px; color:#8293a8; font-size:10px; }
.news-row-meta span { color:#3475bb; }
.news-row h3 { margin-top:4px; color:#2c4059; font-size:13px; font-weight:600; }
.news-row p { overflow:hidden; margin-top:3px; color:#8492a4; font-size:11px; text-overflow:ellipsis; white-space:nowrap; }
.news-row-arrow { position:absolute; top:50%; right:17px; color:#7591ad; font-size:17px; transform:translateY(-50%); }
.community-grid { display:grid; grid-template-columns:repeat(5,minmax(0,1fr)); gap:15px; }
.community-card { position:relative; min-height:190px; padding:16px; overflow:hidden; border:1px solid #e4eaf2; border-radius:6px; background:#fff; transition:transform .18s,box-shadow .18s; }
.community-card:hover { transform:translateY(-2px); box-shadow:0 8px 20px rgba(35,66,105,.075); }
.community-resource { display:flex; height:100%; min-height:156px; flex-direction:column; align-items:flex-start; color:inherit; }
.community-logo-wrap { display:flex; width:42px; height:42px; align-items:center; justify-content:center; overflow:hidden; border:1px solid #edf0f4; border-radius:9px; background:#fff; }
.community-logo-wrap img { width:28px; height:28px; object-fit:contain; }
.community-resource h3 { margin-top:10px; color:#283e58; font-size:14px; line-height:1.45; }
.community-resource p { margin-top:5px; color:#7d8b9d; font-size:11px; line-height:1.7; }
.community-resource-url { display:block; width:100%; margin-top:auto; padding-top:10px; overflow-wrap:anywhere; color:#276db8; font-size:10px; line-height:1.45; }
.community-resource:hover .community-resource-url { color:#145bd7; text-decoration:underline; }
@media(max-width:680px) {
    .business-heading h2,.stack-section-heading h2,.portal-floor-heading h2 { font-size:20px; }
    .calendar-heading { padding-bottom:35px; }
    .calendar-heading .calendar-create { top:auto; right:0; bottom:0; transform:none; }
    .training-story-body { grid-template-columns:1fr; gap:12px; padding:16px; }
    .training-group-photo { max-height:300px; }
    .reward-panel { padding:54px 18px 16px; }
    .reward-panel-intro h3 { font-size:23px; }
    .reward-panel-content { grid-template-columns:1fr; gap:15px; margin-top:20px; }
    .reward-benefits { grid-template-columns:repeat(2,minmax(0,1fr)); gap:14px 8px; }
    .reward-gift-image { justify-self:center; max-width:420px; }
    .training-story-copy { padding:12px 2px 3px; }
    .training-story-copy h3 { font-size:18px; }
    .training-story-copy p { font-size:13px; }
    .news-list { grid-template-columns:1fr; }
    .community-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
    .community-card { min-height:150px; }
    .news-section > .portal-floor-heading > a,
    .community-section > .portal-floor-heading > a { right:0; font-size:11px; }
}
@media(min-width:681px) and (max-width:1000px) {
    .community-grid { grid-template-columns:repeat(3,minmax(0,1fr)); }
}
