/* 天翼云控制台 · 概览 1:1 视觉还原 */

.ty-console {
  --ty-header-h: 48px;
  --ty-sidebar-w: 220px;
  --ty-aside-w: 200px;
  --ty-blue: #0064c8;
  --ty-blue-light: #e8f3ff;
  --ty-red: #e60012;
  --ty-bg: #eef0f3;
  --ty-border: #e5e6eb;
  --ty-text: #333333;
  --ty-text-2: #666666;
  --ty-text-3: #999999;
  --el-color-primary: #0064c8;
  --el-color-primary-light-3: #4090d9;
  --el-color-primary-light-5: #73a9e3;
  --el-color-primary-light-7: #a6c8ed;
  --el-color-primary-light-9: #e8f3ff;
  --el-color-primary-dark-2: #0050a0;
  font-family: "PingFang SC", "Microsoft YaHei", -apple-system, sans-serif;
}

/* ========== 全局顶栏 ========== */
.ty-console .ty-global-header {
  height: var(--ty-header-h);
  background: #fff;
  border-bottom: 1px solid #ebebeb;
  display: flex;
  align-items: center;
  padding: 0 20px;
  position: sticky;
  top: 0;
  z-index: 200;
  flex-shrink: 0;
  box-shadow: none;
}

.ty-console .ty-global-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  flex-shrink: 0;
  margin-right: 28px;
}

.ty-console .ty-global-logo svg {
  flex-shrink: 0;
}

.ty-console .ty-global-logo .ty-logo-text {
  font-size: 16px;
  font-weight: 600;
  color: #333;
  line-height: 1;
}

.ty-console .ty-global-logo .ty-logo-text span {
  color: #999;
  font-weight: 400;
  margin-left: 6px;
  font-size: 14px;
}

.ty-console .ty-global-search {
  width: 280px;
  flex-shrink: 0;
  margin-right: 24px;
}

.ty-console .ty-global-search .el-input__wrapper {
  border-radius: 2px;
  background: #f5f5f5;
  box-shadow: none !important;
  border: 1px solid transparent;
  height: 32px;
}

.ty-console .ty-global-search .el-input__inner {
  font-size: 13px;
}

.ty-console .ty-global-nav {
  display: flex;
  align-items: center;
  gap: 0;
  margin-right: auto;
}

.ty-console .ty-global-nav button {
  padding: 0 14px;
  height: var(--ty-header-h);
  line-height: var(--ty-header-h);
  font-size: 13px;
  color: #666;
  background: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
}

.ty-console .ty-global-nav button:hover {
  color: var(--ty-blue);
}

.ty-console .ty-global-user {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  font-size: 13px;
  color: #666;
}

.ty-console .ty-global-user .ty-balance {
  color: var(--ty-red);
  font-weight: 500;
  font-size: 13px;
  background: none;
  padding: 0;
  border-radius: 0;
}

.ty-console .ty-global-user .ty-username {
  max-width: 120px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ty-console .ty-global-actions {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-right: 16px;
}

.ty-console .ty-icon-btn {
  width: 32px;
  height: 32px;
  border: none;
  background: none;
  cursor: pointer;
  color: #666;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 2px;
  font-size: 18px;
}

.ty-console .ty-icon-btn:hover {
  color: var(--ty-blue);
  background: #f5f5f5;
}

.ty-console .ty-icon-btn--dot {
  position: relative;
}

.ty-console .ty-icon-btn--dot::after {
  content: "";
  position: absolute;
  top: 6px;
  right: 6px;
  width: 6px;
  height: 6px;
  background: #ff4d4f;
  border-radius: 50%;
}

/* ========== 主体 ========== */
.ty-console .ty-layout {
  display: flex;
  flex: 1;
  min-height: calc(100vh - var(--ty-header-h));
  background: var(--ty-bg);
}

/* ========== 侧栏 el-menu ========== */
.ty-console .ty-sidebar {
  width: var(--ty-sidebar-w);
  background: #fff;
  border-right: 1px solid #ebebeb;
  flex-shrink: 0;
  overflow-y: auto;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
}

.ty-console .ty-sidebar-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px 10px;
  border-bottom: 1px solid #f0f0f0;
  flex-shrink: 0;
}

.ty-console .ty-sidebar-product {
  font-size: 13px;
  font-weight: 600;
  color: #333;
  line-height: 1.3;
}

.ty-console .ty-sidebar-search {
  font-size: 14px;
  color: #999;
  cursor: pointer;
}

.ty-console .ty-sidebar-search:hover {
  color: var(--ty-blue);
}

.ty-console .ty-el-menu {
  border-right: none !important;
  --el-menu-bg-color: #fff;
  --el-menu-hover-bg-color: #f5f8fc;
  --el-menu-active-color: var(--ty-blue);
  --el-menu-text-color: #666;
  --el-menu-item-height: 40px;
  --el-menu-sub-item-height: 36px;
  --el-menu-item-font-size: 13px;
}

.ty-console .ty-el-menu .el-menu-item.is-active {
  background: transparent !important;
  color: var(--ty-blue) !important;
  font-weight: 500;
  border-right: none;
  position: relative;
}

.ty-console .ty-el-menu .el-menu-item.is-active::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  bottom: 8px;
  width: 3px;
  background: var(--ty-blue);
  border-radius: 0 2px 2px 0;
}

.ty-console .ty-el-menu .el-sub-menu__title {
  font-size: 13px;
  color: #666 !important;
  height: 40px;
  line-height: 40px;
  padding-right: 36px !important;
}

.ty-console .ty-el-menu .el-sub-menu__icon-arrow {
  right: 16px;
  color: #999;
}

.ty-console .ty-el-menu .el-sub-menu .el-menu-item {
  padding-left: 48px !important;
  min-width: 0;
  font-size: 13px;
}

/* ========== 主内容 ========== */
.ty-console .ty-main {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  background: var(--ty-bg);
}

.ty-console .ty-content-toolbar,
.ty-console .ty-overview-toolbar {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  flex-wrap: wrap;
}

.ty-console .ty-content-toolbar {
  padding: 10px 20px;
  background: #fff;
  border-bottom: 1px solid #f0f0f0;
}

.ty-console .ty-content-toolbar .ty-toolbar-link,
.ty-console .ty-overview-toolbar .ty-toolbar-link {
  font-size: 13px;
  color: #666;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  font-family: inherit;
  white-space: nowrap;
}

.ty-console .ty-content-toolbar .ty-toolbar-link:hover,
.ty-console .ty-overview-toolbar .ty-toolbar-link:hover {
  color: var(--ty-blue);
}

.ty-console .ty-content-toolbar .el-button--primary,
.ty-console .ty-overview-toolbar .el-button--primary {
  --el-button-bg-color: var(--ty-blue);
  --el-button-border-color: var(--ty-blue);
  border-radius: 2px;
  font-size: 13px;
  height: 32px;
  padding: 0 16px;
}

.ty-console .ty-overview-toolbar .ty-btn-survey,
.ty-console .ty-content-toolbar .ty-btn-survey,
.ty-console .ty-btn-survey {
  --el-button-bg-color: #faad14;
  --el-button-border-color: #faad14;
  --el-button-text-color: #fff;
  border-radius: 2px;
  font-size: 13px;
  height: 32px;
}

.ty-console .ty-btn-survey:hover {
  --el-button-bg-color: #d48806;
  --el-button-border-color: #d48806;
}

.ty-console .ty-btn-addon {
  border-radius: 2px;
  font-size: 13px;
  height: 32px;
  color: #666;
  border-color: #d9d9d9;
  background: #fff;
}

.ty-console .ty-content-body {
  flex: 1;
  padding: 0;
  overflow-y: auto;
  background: var(--ty-bg);
}

/* 概览双栏 */
.ty-console .ty-dashboard-wrap {
  display: flex;
  align-items: stretch;
  gap: 0;
  min-height: 100%;
  background: #fff;
}

.ty-console .ty-dashboard-main {
  flex: 1;
  min-width: 0;
  padding: 20px 20px 24px;
  background: #fff;
}

.ty-console .ty-page-title {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
  color: #333;
  line-height: 1.4;
  flex-shrink: 0;
}

.ty-console .ty-overview-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.ty-console .ty-overview-head .ty-overview-toolbar {
  flex: 1 1 520px;
  min-width: 0;
  max-width: 100%;
  justify-content: flex-end;
  gap: 8px;
  row-gap: 8px;
}

.ty-console .ty-overview-toolbar .el-button {
  margin-left: 0 !important;
}

.ty-console .ty-announce-panel {
  width: var(--ty-aside-w);
  flex-shrink: 0;
  background: #fff;
  border-left: 1px solid #ebebeb;
  align-self: stretch;
}

.ty-console .ty-announce-head {
  padding: 12px 14px;
  font-size: 13px;
  font-weight: 600;
  color: #333;
  border-bottom: 1px solid #f0f0f0;
}

.ty-console .ty-announce-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding: 32px 12px;
  color: #ccc;
}

.ty-console .ty-announce-empty svg {
  width: 72px;
  height: 48px;
  margin-bottom: 8px;
  opacity: 0.45;
}

.ty-console .ty-announce-empty p {
  margin: 0;
  font-size: 12px;
  color: #bbb;
}

/* ========== 概览内容 ========== */
.ty-console .ty-overview-summary {
  background: transparent;
  border: none;
  padding: 0 0 20px;
  margin-bottom: 0;
  font-size: 13px;
  color: #666;
  line-height: 1.8;
}

.ty-console .ty-overview-summary strong {
  color: var(--ty-blue);
  font-weight: 600;
}

.ty-console .ty-summary-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}

.ty-console .ty-summary-row .ty-overview-summary {
  padding: 0;
  margin: 0;
}

.ty-console .ty-pool-page-nav {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  font-size: 13px;
  color: #666;
}

.ty-console .ty-pool-page-nav button {
  width: 24px;
  height: 24px;
  border: 1px solid #dcdfe6;
  background: #fff;
  border-radius: 2px;
  cursor: pointer;
  color: #666;
  font-size: 12px;
  line-height: 1;
  padding: 0;
}

.ty-console .ty-pool-page-nav button:disabled {
  color: #ccc;
  cursor: not-allowed;
  background: #fafafa;
}

.ty-console .ty-pool-page-nav button:not(:disabled):hover {
  color: var(--ty-blue);
  border-color: var(--ty-blue);
}

.ty-console .ty-pool-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 0;
}

.ty-console .ty-pool-card {
  background: #fff;
  border: 1px solid #dcdfe6;
  border-radius: 2px;
  padding: 16px 14px;
  cursor: pointer;
  transition: border-color 0.15s;
  min-height: 96px;
}

.ty-console .ty-pool-card:hover {
  border-color: var(--ty-blue);
}

.ty-console .ty-pool-card.selected {
  border: 1px solid #dcdfe6;
  background: #f5f7fa;
  padding: 16px 14px;
}

.ty-console .ty-pool-card-name {
  font-size: 14px;
  font-weight: 500;
  color: #333;
  margin-bottom: 14px;
}

.ty-console .ty-pool-card-metrics {
  display: flex;
  gap: 8px;
}

.ty-console .ty-pool-metric {
  flex: 1;
  min-width: 0;
}

.ty-console .ty-pool-metric-label {
  display: block;
  font-size: 12px;
  color: #999;
  margin-bottom: 6px;
  white-space: nowrap;
}

.ty-console .ty-pool-metric-val {
  font-size: 20px;
  color: var(--ty-blue);
  font-family: Arial, Helvetica, sans-serif;
  font-weight: 400;
  line-height: 1;
}

.ty-console .ty-pool-metric-val em {
  font-style: normal;
  font-size: 12px;
  color: #999;
  margin-left: 2px;
}

.ty-console .ty-pool-pagination {
  display: none;
}

/* 区域 tabs */
.ty-console .ty-region-tabs {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 16px;
  padding: 0;
  border-bottom: 1px solid #e8e8e8;
}

.ty-console .ty-region-tab-list {
  display: flex;
  flex-wrap: nowrap;
  gap: 0;
  min-width: 0;
  flex: 1;
  overflow-x: auto;
  scrollbar-width: thin;
}

.ty-console .ty-region-tab {
  padding: 10px 16px;
  border: none;
  background: transparent;
  font-size: 13px;
  color: #666;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  font-family: inherit;
  white-space: nowrap;
}

.ty-console .ty-region-tab:hover {
  color: var(--ty-blue);
}

.ty-console .ty-region-tab.active {
  color: var(--ty-blue);
  background: #f5f7fa;
  border-bottom-color: var(--ty-blue);
  font-weight: 500;
}

.ty-console .ty-region-account {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: #666;
  flex-shrink: 0;
  padding-bottom: 8px;
}

.ty-console .ty-region-account .el-icon {
  color: #999;
  cursor: pointer;
  font-size: 14px;
}

/* 区域详情 */
.ty-console .ty-region-detail {
  background: #fff;
  border: 1px solid #e0e0e0;
  border-top: none;
  border-radius: 0 0 2px 2px;
  margin-bottom: 16px;
}

.ty-console .ty-region-detail-head,
.ty-console .ty-region-meta {
  display: none;
}

.ty-console .ty-region-bandwidth {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  padding: 16px 20px 20px;
  border-top: 1px solid #f0f0f0;
  max-width: 180px;
}

.ty-console .ty-region-stat-value--sm {
  font-size: 24px;
}

.ty-console .ty-region-stats {
  display: flex;
  border-bottom: 1px solid #f0f0f0;
}

.ty-console .ty-region-stat {
  flex: 1;
  padding: 20px 12px;
  text-align: center;
  border-right: 1px solid #f0f0f0;
  min-width: 0;
}

.ty-console .ty-region-stat:last-child {
  border-right: none;
}

.ty-console .ty-region-stat-label {
  font-size: 12px;
  color: #999;
  margin-bottom: 10px;
  white-space: nowrap;
}

.ty-console .ty-region-stat-value {
  font-size: 28px;
  font-weight: 400;
  color: #333;
  font-family: Arial, sans-serif;
  line-height: 1;
}

/* 活跃趋势 */
.ty-console .ty-trend-panel {
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 2px;
}

.ty-console .ty-trend-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  border-bottom: 1px solid #f0f0f0;
}

.ty-console .ty-trend-head .title {
  font-size: 14px;
  font-weight: 600;
  color: #333;
}

.ty-console .ty-trend-head .el-radio-button__inner {
  font-size: 12px;
  padding: 6px 12px;
}

.ty-console .ty-trend-head .el-radio-button__original-radio:checked + .el-radio-button__inner {
  background-color: var(--ty-blue);
  border-color: var(--ty-blue);
}

.ty-console .ty-trend-chart {
  width: 100%;
  height: 300px;
  padding: 12px 16px 20px;
  box-sizing: border-box;
}

/* 子页面 */
.ty-console .ty-page-inner {
  padding: 16px 20px 24px;
  background: var(--ty-bg);
  min-height: 100%;
}

.ty-console .ty-page-card {
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 2px;
  padding: 16px 20px;
  margin-bottom: 12px;
}

/* 壳层 */
.user-shell.ty-console {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.user-shell.ty-console .user-main,
.user-shell.ty-console .ty-content-body.user-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 0 !important;
  background: #fff !important;
  min-width: 0;
  width: 100%;
  max-width: none;
  box-sizing: border-box;
}

.user-shell.ty-console .ty-overview-head {
  align-items: center;
}

@media (max-width: 1100px) {
  .ty-console .ty-overview-head {
    flex-direction: column;
    align-items: stretch;
  }
  .ty-console .ty-overview-toolbar {
    justify-content: flex-start;
  }
}

@media (max-width: 1400px) {
  .ty-console .ty-pool-grid { grid-template-columns: repeat(4, 1fr); }
}

@media (max-width: 1200px) {
  .ty-console .ty-pool-grid { grid-template-columns: repeat(3, 1fr); }
  .ty-console .ty-announce-panel { display: none; }
}

@media (max-width: 900px) {
  .ty-console .ty-pool-grid { grid-template-columns: repeat(2, 1fr); }
  .ty-console .ty-region-stats { flex-wrap: wrap; }
  .ty-console .ty-region-stat { flex: 1 1 33%; border-bottom: 1px solid #f0f0f0; }
}

@media (max-width: 768px) {
  .ty-console .ty-sidebar { display: none; }
  .ty-console .ty-global-nav { display: none; }
  .ty-console .ty-global-search { width: 160px; }
  .ty-console .ty-pool-grid { grid-template-columns: 1fr; }
}

/* ========== 桌面管理 ========== */
.ty-console .ty-desktop-page {
  padding: 16px 20px 24px;
  background: #fff;
  min-height: 100%;
  box-sizing: border-box;
}

.ty-console .ty-desktop-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.ty-console .ty-desktop-title-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
}

.ty-console .ty-title-icon {
  border: none;
  background: none;
  color: #999;
  cursor: pointer;
  padding: 0;
  font-size: 16px;
  line-height: 1;
}

.ty-console .ty-title-icon:hover {
  color: var(--ty-blue);
}

.ty-console .ty-desktop-head .el-button--primary {
  --el-button-bg-color: var(--ty-blue);
  --el-button-border-color: var(--ty-blue);
  border-radius: 2px;
  height: 32px;
  padding: 0 16px;
}

.ty-console .ty-desktop-panel {
  border: 1px solid #ebeef5;
  border-radius: 2px;
  background: #fff;
}

.ty-console .ty-desktop-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 16px;
  border-bottom: 1px solid #ebeef5;
  flex-wrap: wrap;
}

.ty-console .ty-desktop-toolbar-left,
.ty-console .ty-desktop-toolbar-right {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.ty-console .ty-desktop-toolbar-left .el-button {
  border-radius: 2px;
  min-width: 56px;
}

.ty-console .ty-desktop-search-input {
  width: 200px;
}

.ty-console .ty-desktop-search-input .el-input__wrapper,
.ty-console .ty-desktop-search-type .el-input__wrapper {
  border-radius: 2px;
}

.ty-console .ty-desktop-icon-btn {
  padding: 8px !important;
  min-width: 32px;
}

.ty-console .ty-link-btn {
  border: none;
  background: none;
  color: var(--ty-blue);
  cursor: pointer;
  font-size: 13px;
  padding: 0 4px;
  font-family: inherit;
}

.ty-console .ty-link-btn:hover {
  opacity: 0.85;
}

.ty-console .ty-desktop-table {
  width: 100%;
}

.ty-console .ty-desktop-table .el-table__header th {
  background: #f5f7fa !important;
  color: #606266;
  font-weight: 500;
  font-size: 13px;
}

.ty-console .ty-desktop-table .el-table__body td {
  font-size: 13px;
  color: #606266;
}

.ty-console .ty-desktop-table .el-table__empty-text {
  color: #909399;
}

.ty-console .ty-desktop-name .ty-desktop-id {
  color: #303133;
  line-height: 1.4;
}

.ty-console .ty-desktop-name .ty-desktop-alias {
  color: #909399;
  font-size: 12px;
  line-height: 1.4;
}

.ty-console .ty-status-cell {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.ty-console .ty-status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  display: inline-block;
  flex-shrink: 0;
}

.ty-console .ty-dot-run { background: #52c41a; }
.ty-console .ty-dot-stop { background: #bfbfbf; }
.ty-console .ty-dot-warn { background: #faad14; }
.ty-console .ty-dot-danger { background: #ff4d4f; }

/* 创建页全宽（隐藏侧栏，与官方一致） */
.ty-console .ty-layout--full .ty-sidebar {
  display: none !important;
}

.ty-console .ty-layout--full .ty-main {
  width: 100%;
}

.ty-console .ty-layout--full .ty-content-body {
  background: #eff1f4 !important;
}

/* ========== 创建桌面 ========== */
.ty-console {
  --ty-create-blue: #3d73f5;
  --ty-create-blue-light: #bad6ff;
  --ty-create-bg: #eff1f4;
}

.ty-console .ty-create-page {
  display: flex;
  flex-direction: column;
  min-height: calc(100vh - var(--ty-header-h));
  background: var(--ty-create-bg);
  padding-bottom: 72px;
  box-sizing: border-box;
}

.ty-console .ty-create-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 24px;
  background: #fff;
  border-bottom: 1px solid #ebeef5;
}

.ty-console .ty-create-back {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  color: #333;
}

.ty-console .ty-create-back .el-icon {
  font-size: 18px;
  color: #606266;
}

.ty-console .ty-create-back:hover {
  color: var(--ty-create-blue);
}

.ty-console .ty-create-back:hover .el-icon {
  color: var(--ty-create-blue);
}

.ty-console .ty-create-head .ty-page-title {
  font-size: 16px;
  font-weight: 600;
}

.ty-console .ty-create-body {
  flex: 1;
  padding: 16px 24px 24px;
}

.ty-console .ty-create-card {
  background: #fff;
  border: 1px solid #e4e7ed;
  border-radius: 2px;
  padding: 24px 28px 20px;
}

.ty-console .ty-create-form {
  max-width: none;
}

.ty-console .ty-help-icon {
  font-size: 14px;
  color: #c0c4cc;
  vertical-align: -2px;
  margin-left: 2px;
}

.ty-console .ty-help-icon--inline {
  margin-left: 4px;
}

.ty-console .ty-create-row {
  display: flex;
  gap: 48px;
  flex-wrap: wrap;
  margin-bottom: 28px;
  padding-bottom: 24px;
  border-bottom: 1px solid #f0f2f5;
}

.ty-console .ty-create-field label,
.ty-console .ty-create-section-label,
.ty-console .ty-create-field-block label {
  display: block;
  font-size: 13px;
  color: #606266;
  margin-bottom: 10px;
  line-height: 1.4;
}

.ty-console .ty-create-section {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 28px;
  padding-bottom: 24px;
  border-bottom: 1px solid #f0f2f5;
}

.ty-console .ty-create-section:last-of-type {
  border-bottom: none;
  padding-bottom: 0;
}

.ty-console .ty-create-section-label {
  width: 96px;
  flex-shrink: 0;
  margin-bottom: 0;
  padding-top: 8px;
  text-align: left;
}

.ty-console .ty-create-section-body {
  flex: 1;
  min-width: 0;
}

.ty-console .ty-create-section--inline {
  display: flex;
}

.ty-console .ty-create-vpc-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px 32px;
}

.ty-console .ty-create-vpc-grid .ty-create-field-block label {
  margin-bottom: 8px;
}

.ty-console .ty-create-section-title {
  width: 96px;
  flex-shrink: 0;
  font-size: 13px;
  font-weight: 600;
  color: #303133;
  padding-top: 8px;
}

.ty-console .ty-create-section-label .req,
.ty-console .ty-create-field-block label .req {
  color: #ff4d4f;
  margin-right: 2px;
}

.ty-console .ty-spec-category {
  margin-bottom: 14px;
}

.ty-console .ty-spec-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 14px;
}

.ty-console .ty-spec-card {
  border: 1px solid #dcdfe6;
  background: #fff;
  border-radius: 2px;
  padding: 14px 8px 12px;
  cursor: pointer;
  text-align: center;
  font-family: inherit;
  transition: all .15s;
  min-height: 72px;
}

.ty-console .ty-spec-card:hover {
  border-color: var(--ty-create-blue);
}

.ty-console .ty-spec-card.active {
  border-color: var(--ty-create-blue);
  background: var(--ty-create-blue);
  box-shadow: 0 2px 6px rgba(61, 115, 245, .25);
}

.ty-console .ty-spec-card-title {
  font-size: 12px;
  color: #909399;
  line-height: 1.3;
}

.ty-console .ty-spec-card-divider {
  height: 1px;
  background: #ebeef5;
  margin: 10px 8px;
}

.ty-console .ty-spec-card-spec {
  font-size: 14px;
  color: #303133;
  font-weight: 500;
  line-height: 1.3;
}

.ty-console .ty-spec-card.active .ty-spec-card-title,
.ty-console .ty-spec-card.active .ty-spec-card-spec {
  color: #fff;
}

.ty-console .ty-spec-card.active .ty-spec-card-divider {
  background: rgba(255, 255, 255, .35);
}

.ty-console .ty-spec-selected {
  font-size: 13px;
  color: #909399;
}

.ty-console .ty-spec-selected strong {
  color: #606266;
  font-weight: 500;
}

.ty-console .ty-mirror-type {
  margin-bottom: 14px;
}

.ty-console .ty-mirror-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  width: 100%;
}

.ty-console .ty-mirror-card {
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid #dcdfe6;
  background: #fff;
  border-radius: 2px;
  padding: 12px 14px;
  font-size: 13px;
  color: #606266;
  cursor: pointer;
  font-family: inherit;
  line-height: 1.4;
  min-width: 0;
  width: 100%;
  box-sizing: border-box;
  text-align: left;
  overflow: hidden;
}

.ty-console .ty-mirror-card span,
.ty-console .ty-mirror-card-text {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ty-console .ty-mirror-card.active {
  border-color: var(--ty-create-blue);
  color: var(--ty-create-blue);
  background: #f0f5ff;
}

.ty-console .ty-mirror-os-icon {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.ty-console .ty-mirror-card-text {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ty-console .ty-disk-alert {
  margin-bottom: 14px;
  background: #f4f4f5;
  border: none;
}

.ty-console .ty-disk-row,
.ty-console .ty-data-disk-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}

.ty-console .ty-disk-label {
  width: 56px;
  font-size: 13px;
  color: #606266;
  flex-shrink: 0;
}

.ty-console .ty-disk-unit,
.ty-console .ty-data-disk-tip {
  font-size: 13px;
  color: #909399;
}

.ty-console .ty-pack-info {
  margin-top: 12px;
  font-size: 13px;
  color: #606266;
  line-height: 1.8;
}

.ty-console .ty-pack-info p {
  margin: 0;
}

.ty-console .ty-pack-info em,
.ty-console .ty-pack-info .ty-pack-highlight {
  color: #ff6a00;
  font-style: normal;
  font-weight: 600;
}

.ty-console .ty-pack-expire {
  color: #909399;
  font-size: 12px;
}

.ty-console .ty-assign-mode {
  font-size: 13px;
  color: #606266;
  margin-bottom: 12px;
  padding: 8px 12px;
  background: #f5f7fa;
  border: 1px solid #ebeef5;
  border-radius: 2px;
  display: inline-block;
}

.ty-console .ty-assign-grid {
  max-width: 560px;
  margin-top: 4px;
}

.ty-console .ty-duration-wrap {
  padding: 4px 12px 32px;
  min-width: 520px;
  max-width: 720px;
}

.ty-console .ty-config-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  table-layout: fixed;
}

.ty-console .ty-config-table td {
  border: 1px solid #ebeef5;
  padding: 14px 16px;
  color: #606266;
  vertical-align: top;
}

.ty-console .ty-config-table td span {
  display: block;
  color: #909399;
  font-size: 12px;
  margin-bottom: 6px;
}

.ty-console .ty-create-agreement {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: #606266;
  padding: 20px 0 0;
  margin-top: 8px;
  border-top: 1px solid #f0f2f5;
}

.ty-console .ty-create-agreement a {
  color: var(--ty-create-blue);
  text-decoration: none;
}

.ty-console .ty-create-footer {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 12px 32px;
  background: #fff;
  border-top: 1px solid #ebeef5;
  box-shadow: 0 -1px 4px rgba(0, 0, 0, .06);
}

.ty-console .ty-create-price-main {
  font-size: 14px;
  color: #606266;
}

.ty-console .ty-create-price-main em {
  font-style: normal;
  color: #ff6a00;
  font-size: 22px;
  font-weight: 600;
  margin-left: 6px;
}

.ty-console .ty-create-price-tip {
  font-size: 12px;
  color: #909399;
  margin-top: 2px;
}

.ty-console .ty-create-price-warn {
  font-size: 12px;
  color: #e6a23c;
  margin-top: 2px;
}

.ty-console .ty-create-submit {
  min-width: 108px;
  height: 36px;
  border-radius: 2px;
}

.ty-console .ty-create-submit.el-button--primary {
  --el-button-bg-color: var(--ty-create-blue);
  --el-button-border-color: var(--ty-create-blue);
}

.ty-console .ty-create-submit.is-disabled {
  --el-button-bg-color: var(--ty-create-blue-light);
  --el-button-border-color: var(--ty-create-blue-light);
  --el-button-text-color: #fff;
}

/* 创建页 radio 按钮 · 官方蓝底白字 */
.ty-console .ty-create-page .el-radio-button__inner {
  border-radius: 2px !important;
  padding: 7px 15px;
  font-size: 13px;
  border-color: #dcdfe6;
  color: #606266;
  box-shadow: none !important;
}

.ty-console .ty-create-page .el-radio-button:first-child .el-radio-button__inner {
  border-radius: 2px 0 0 2px !important;
}

.ty-console .ty-create-page .el-radio-button:last-child .el-radio-button__inner {
  border-radius: 0 2px 2px 0 !important;
}

.ty-console .ty-create-page .el-radio-button__original-radio:checked + .el-radio-button__inner {
  background-color: var(--ty-create-blue) !important;
  border-color: var(--ty-create-blue) !important;
  color: #fff !important;
  box-shadow: -1px 0 0 0 var(--ty-create-blue) !important;
}

.ty-console .ty-create-page .el-radio-button.is-disabled .el-radio-button__inner {
  background: #f5f7fa;
  color: #c0c4cc;
}

@media (max-width: 1100px) {
  .ty-console .ty-spec-grid { grid-template-columns: repeat(3, 1fr); }
  .ty-console .ty-mirror-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ty-console .ty-create-vpc-grid { grid-template-columns: 1fr; }
  .ty-console .ty-create-section { flex-direction: column; }
  .ty-console .ty-create-section-label { width: auto; padding-top: 0; }
}

@media (max-width: 768px) {
  .ty-console .ty-mirror-grid { grid-template-columns: 1fr; }
}
