:root {
  --td-brand-color: #0052D9;
  --td-brand-color-hover: #266FE8;
  --td-brand-color-active: #003CAB;
  --td-brand-color-light: #ECF2FE;
  --td-brand-color-light-hover: #D9E8FF;
  --td-success-color: #00A870;
  --td-success-color-light: #E8F8F2;
  --td-warning-color: #E37318;
  --td-warning-color-light: #FCF1E5;
  --td-error-color: #E34D59;
  --td-error-color-light: #FDECEE;
  --td-info-color: #0052D9;
  --td-info-color-light: #ECF2FE;
  --td-text-primary: rgba(0, 0, 0, 0.9);
  --td-text-secondary: rgba(0, 0, 0, 0.6);
  --td-text-placeholder: rgba(0, 0, 0, 0.38);
  --td-text-disabled: rgba(0, 0, 0, 0.26);
  --td-bg-color-page: #F3F3F3;
  --td-bg-color-container: #FFFFFF;
  --td-bg-color-component: #F5F5F5;
  --td-bg-color-component-hover: #E7E7E7;
  --td-border-color: #DCDCDC;
  --td-border-color-light: #E7E7E7;
  --td-font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "微软雅黑", -apple-system, BlinkMacSystemFont, sans-serif;
}

body {
  font-family: var(--td-font-family);
  color: var(--td-text-primary);
  background: var(--td-bg-color-page);
}

body.platform-shell {
  background: #f6f7fb;
}

body.platform-shell > main {
  margin-left: 237px;
  max-width: none !important;
  padding: 24px 28px 28px;
}

.platform-sidebar {
  position: fixed;
  left: 0;
  top: 0;
  width: 237px;
  height: 100vh;
  background: #fff;
  border-right: 1px solid var(--td-border-color-light);
  box-shadow: 8px 0 28px rgba(0, 0, 0, 0.04);
  z-index: 60;
  display: flex;
  flex-direction: column;
}

.platform-sidebar .brand {
  padding: 20px 18px 18px;
  border-bottom: 1px solid var(--td-border-color-light);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.platform-sidebar .brand-logo {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: #0052D9;
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 10px;
}

.platform-sidebar .brand-name {
  font-size: 20px;
  font-weight: 700;
  line-height: 1.2;
}

.platform-sidebar .brand-action {
  margin-top: 14px;
  width: 200px;
  max-width: 100%;
  height: 40px;
  border-radius: 999px;
  background: #0052D9;
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

.platform-sidebar .menu {
  padding: 14px 12px 12px;
  overflow: auto;
  flex: 1;
}

.platform-sidebar .menu-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 12px;
  color: #111827;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
}

.platform-sidebar .menu-item:hover {
  background: #f5f7fb;
}

.platform-sidebar .menu-item .icon {
  width: 30px;
  height: 30px;
  border-radius: 10px;
  background: #f2f3f7;
  display: grid;
  place-items: center;
  color: #8f96a3;
  flex-shrink: 0;
}

.platform-sidebar .menu-item.active {
  background: #ECF2FE;
  color: #0052D9;
}

.platform-sidebar .menu-item.active .icon {
  background: #0052D9;
  color: #fff;
}

.platform-sidebar .footer {
  padding: 12px 16px 16px;
  border-top: 1px solid var(--td-border-color-light);
}

.platform-shell .td-card {
  background: #fff;
}

.shadow-td-sm { box-shadow: 0 1px 2px rgba(0,0,0,0.04); }
.shadow-td-md { box-shadow: 0 2px 8px rgba(0,0,0,0.06); }
.shadow-td-lg { box-shadow: 0 4px 16px rgba(0,0,0,0.08); }
.shadow-td-xl { box-shadow: 0 8px 24px rgba(0,0,0,0.12); }

.td-card {
  background: var(--td-bg-color-container);
  border: 1px solid var(--td-border-color-light);
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.td-tab-active {
  color: #0052D9;
  border-color: #BBD3FB;
  background: #ECF2FE;
}

.iphone-frame {
  width: 420px;
  height: 820px;
  padding: 18px;
  border-radius: 36px;
  background: #111;
  position: relative;
}

.iphone-frame::before {
  content: "";
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  width: 112px;
  height: 24px;
  border-radius: 0 0 16px 16px;
  background: #111;
  z-index: 2;
}

.iphone-screen {
  width: 100%;
  height: 100%;
  overflow: hidden;
  border-radius: 26px;
  background: #fff;
}

@media (max-width: 1100px) {
  body.platform-shell > main {
    margin-left: 0;
    padding: 20px;
  }

  .platform-sidebar {
    position: static;
    width: auto;
    height: auto;
    box-shadow: none;
  }
}
