body {
  background: #f0f2f5;
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji";
}

.layout {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.site-header {
  background: #001529;
  color: #fff;
  padding: 0 24px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.header-inner {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.brand {
  display: flex;
  align-items: center;
  font-size: 18px;
  font-weight: 600;
  color: #fff;
  text-decoration: none;
}

.brand:hover {
  color: #fff;
}

.brand-logo {
  height: 36px;
  width: auto;
  margin-right: 12px;
  object-fit: contain;
}

.brand-icon {
  font-size: 24px;
  margin-right: 12px;
}

.brand-title {
  white-space: nowrap;
}

.header-nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-link {
  color: rgba(255,255,255,0.85);
  text-decoration: none;
  padding: 6px 12px;
  border-radius: 4px;
  transition: all 0.2s;
}

.nav-link:hover {
  color: #fff;
  background: rgba(255,255,255,0.1);
}

.site-main {
  flex: 1;
  max-width: 1400px;
  width: 100%;
  margin: 0 auto;
}

.site-footer {
  background: #fff;
  text-align: center;
  padding: 24px;
  color: rgba(0,0,0,0.45);
  font-size: 14px;
  border-top: 1px solid #f0f0f0;
}

.footer-note {
  margin-top: 8px;
  font-size: 12px;
}

/* Login page */
.login-page {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: calc(100vh - 64px - 80px);
  padding: 24px;
}

.login-card {
  background: #fff;
  padding: 40px;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.08);
  width: 100%;
  max-width: 440px;
  text-align: center;
}

.login-logo {
  font-size: 56px;
  margin-bottom: 16px;
}

.login-logo-img {
  max-height: 64px;
  max-width: 100%;
  margin-bottom: 20px;
  object-fit: contain;
}

.login-title {
  font-size: 26px;
  margin-bottom: 8px;
  font-weight: 600;
}

.login-subtitle {
  color: rgba(0,0,0,0.45);
  margin-bottom: 32px;
  font-size: 15px;
}

.login-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  text-align: center;
}

.login-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 44px;
  padding: 0 24px;
  border-radius: 6px;
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.2s;
  border: 1px solid transparent;
  cursor: pointer;
}

.login-btn-primary {
  background: #1677ff;
  color: #fff;
  border-color: #1677ff;
}

.login-btn-primary:hover {
  background: #4096ff;
  color: #fff;
}

.login-btn-default {
  background: #fff;
  color: rgba(0,0,0,0.88);
  border-color: #d9d9d9;
}

.login-btn-default:hover {
  color: #1677ff;
  border-color: #1677ff;
}

.feishu-dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #3370ff;
  margin-right: 8px;
}

.login-notice {
  display: flex;
  align-items: flex-start;
  margin-top: 24px;
  padding: 12px 16px;
  background: #fffbe6;
  border: 1px solid #ffe58f;
  border-radius: 8px;
  text-align: left;
}

.login-notice-icon {
  font-size: 18px;
  margin-right: 10px;
  flex-shrink: 0;
}

.login-notice-title {
  font-weight: 600;
  color: #d48806;
  margin-bottom: 4px;
}

.login-notice-desc {
  color: rgba(0,0,0,0.65);
  font-size: 13px;
  line-height: 1.6;
}

/* Guide page */
.guide-container {
  max-width: 960px;
  margin: 0 auto;
  padding: 32px 24px;
}

.guide-hero {
  text-align: center;
  margin-bottom: 32px;
}

.guide-hero h1 {
  font-size: 28px;
  margin: 16px 0 8px;
}

.guide-hero p {
  color: rgba(0,0,0,0.55);
  font-size: 15px;
}

.guide-logo {
  max-height: 56px;
  object-fit: contain;
}

.guide-section {
  background: #fff;
  border-radius: 12px;
  padding: 24px;
  margin-bottom: 24px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.guide-section h2 {
  font-size: 20px;
  margin-bottom: 16px;
  border-left: 4px solid #1677ff;
  padding-left: 12px;
}

.guide-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
}

.guide-card {
  border: 1px solid #f0f0f0;
  border-radius: 8px;
  padding: 16px;
}

.guide-card-title {
  font-weight: 600;
  margin-bottom: 8px;
  font-size: 15px;
}

.guide-link {
  color: #1677ff;
  text-decoration: none;
  font-size: 14px;
}

.guide-link:hover {
  text-decoration: underline;
}

.guide-steps {
  margin: 0;
  padding-left: 20px;
  color: rgba(0,0,0,0.75);
  line-height: 2;
}

.guide-steps code {
  background: #f5f5f5;
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 13px;
}

.guide-faq {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.guide-faq-q {
  font-weight: 600;
  margin-bottom: 6px;
}

.guide-faq-a {
  color: rgba(0,0,0,0.65);
  line-height: 1.7;
}

.guide-notice {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 16px;
  background: #fffbe6;
  border: 1px solid #ffe58f;
  border-radius: 8px;
  color: rgba(0,0,0,0.65);
  line-height: 1.6;
}

.guide-notice-icon {
  font-size: 20px;
  flex-shrink: 0;
}

pre {
  background: #f6f8fa;
  padding: 16px;
  border-radius: 6px;
  overflow: auto;
}

code {
  background: #f0f0f0;
  padding: 2px 6px;
  border-radius: 4px;
}

/* Ant Design overrides */
.ant-card {
  border-radius: 8px;
}

.ant-alert {
  border-radius: 8px;
}
