.admin-sider {
  position: fixed;
  height: 100vh;
  left: 0;
  top: 0;
  z-index: 100;
  overflow: auto;
}

.admin-sider .logo {
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.05);
  margin: 16px;
  border-radius: 6px;
  overflow: hidden;
}

.admin-header {
  background: #fff;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 1px 4px rgba(0, 21, 41, 0.08);
  position: fixed;
  width: 100%;
  z-index: 99;
  height: 64px;
}

.header-left {
  display: flex;
  align-items: center;
}

.header-right {
  margin-right: 24px;
  display: flex;
  align-items: center;
}

.mobile-menu-button {
  display: none;
  font-size: 16px;
  width: 64px;
  height: 64px;
}

.desktop-menu-button {
  display: block;
  font-size: 16px;
  width: 64px;
  height: 64px;
}

.user-dropdown {
  display: flex;
  align-items: center;
  cursor: pointer;
}

.user-avatar {
  cursor: pointer;
}

.user-name {
  margin-left: 8px;
  font-weight: 500;
  color: #333;
}

.admin-content {
  margin: 64px 16px 16px 256px;
  padding: 24px;
  background: #fff;
  min-height: calc(100vh - 80px);
  border-radius: 6px;
  overflow: auto;
}

/* 移动端菜单抽屉样式 */
.mobile-menu-drawer .ant-drawer-body {
  padding: 0;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.mobile-logo {
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f0f2f5;
  margin-bottom: 16px;
  border-bottom: 1px solid #e8e8e8;
}

.mobile-user-info {
  margin-top: auto;
  padding: 16px;
  border-top: 1px solid #e8e8e8;
  background: #f0f2f5;
}

.user-avatar-wrapper {
  display: flex;
  justify-content: center;
  margin-bottom: 12px;
}

.user-details {
  text-align: center;
}

.user-name {
  font-weight: 500;
  color: #333;
  margin-bottom: 4px;
}

.user-role {
  font-size: 12px;
  color: #666;
}

/* 平板端适配 */
@media (max-width: 1024px) and (min-width: 769px) {
  .admin-content {
    margin: 64px 16px 16px 256px;
    padding: 16px;
  }
  
  .admin-sider {
    width: 200px;
  }
}

/* 响应式设计 */
@media (max-width: 768px) {
  .admin-sider {
    display: none;
  }
  
  .mobile-menu-button {
    display: block;
  }
  
  .desktop-menu-button {
    display: none;
  }
  
  .admin-content {
    margin: 64px 12px 12px 12px;
    padding: 16px;
    border-radius: 4px;
  }
  
  .admin-header {
    height: 56px;
  }
  
  .mobile-menu-button,
  .desktop-menu-button {
    width: 56px;
    height: 56px;
  }
  
  .header-right {
    margin-right: 16px;
  }
  
  .user-avatar {
    width: 32px;
    height: 32px;
    line-height: 32px;
  }
  
  .user-name {
    display: none;
  }
  
  .mobile-logo {
    height: 56px;
  }
}

/* 小屏幕手机适配 */
@media (max-width: 480px) {
  .admin-content {
    margin: 56px 8px 8px 8px;
    padding: 12px;
  }
  
  .mobile-menu-button,
  .desktop-menu-button {
    width: 56px;
    height: 56px;
  }
}/* stylelint-disable */
html,
body {
  width: 100%;
  height: 100%;
}
input::-ms-clear,
input::-ms-reveal {
  display: none;
}
*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  font-family: sans-serif;
  line-height: 1.15;
  -webkit-text-size-adjust: 100%;
  -ms-text-size-adjust: 100%;
  -ms-overflow-style: scrollbar;
  -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
}
@-ms-viewport {
  width: device-width;
}
body {
  margin: 0;
}
[tabindex='-1']:focus {
  outline: none;
}
hr {
  box-sizing: content-box;
  height: 0;
  overflow: visible;
}
h1,
h2,
h3,
h4,
h5,
h6 {
  margin-top: 0;
  margin-bottom: 0.5em;
  font-weight: 500;
}
p {
  margin-top: 0;
  margin-bottom: 1em;
}
abbr[title],
abbr[data-original-title] {
  -webkit-text-decoration: underline dotted;
  text-decoration: underline dotted;
  border-bottom: 0;
  cursor: help;
}
address {
  margin-bottom: 1em;
  font-style: normal;
  line-height: inherit;
}
input[type='text'],
input[type='password'],
input[type='number'],
textarea {
  -webkit-appearance: none;
}
ol,
ul,
dl {
  margin-top: 0;
  margin-bottom: 1em;
}
ol ol,
ul ul,
ol ul,
ul ol {
  margin-bottom: 0;
}
dt {
  font-weight: 500;
}
dd {
  margin-bottom: 0.5em;
  margin-left: 0;
}
blockquote {
  margin: 0 0 1em;
}
dfn {
  font-style: italic;
}
b,
strong {
  font-weight: bolder;
}
small {
  font-size: 80%;
}
sub,
sup {
  position: relative;
  font-size: 75%;
  line-height: 0;
  vertical-align: baseline;
}
sub {
  bottom: -0.25em;
}
sup {
  top: -0.5em;
}
pre,
code,
kbd,
samp {
  font-size: 1em;
  font-family: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, Courier, monospace;
}
pre {
  margin-top: 0;
  margin-bottom: 1em;
  overflow: auto;
}
figure {
  margin: 0 0 1em;
}
img {
  vertical-align: middle;
  border-style: none;
}
a,
area,
button,
[role='button'],
input:not([type='range']),
label,
select,
summary,
textarea {
  touch-action: manipulation;
}
table {
  border-collapse: collapse;
}
caption {
  padding-top: 0.75em;
  padding-bottom: 0.3em;
  text-align: left;
  caption-side: bottom;
}
input,
button,
select,
optgroup,
textarea {
  margin: 0;
  color: inherit;
  font-size: inherit;
  font-family: inherit;
  line-height: inherit;
}
button,
input {
  overflow: visible;
}
button,
select {
  text-transform: none;
}
button,
html [type='button'],
[type='reset'],
[type='submit'] {
  -webkit-appearance: button;
}
button::-moz-focus-inner,
[type='button']::-moz-focus-inner,
[type='reset']::-moz-focus-inner,
[type='submit']::-moz-focus-inner {
  padding: 0;
  border-style: none;
}
input[type='radio'],
input[type='checkbox'] {
  box-sizing: border-box;
  padding: 0;
}
input[type='date'],
input[type='time'],
input[type='datetime-local'],
input[type='month'] {
  -webkit-appearance: listbox;
}
textarea {
  overflow: auto;
  resize: vertical;
}
fieldset {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}
legend {
  display: block;
  width: 100%;
  max-width: 100%;
  margin-bottom: 0.5em;
  padding: 0;
  color: inherit;
  font-size: 1.5em;
  line-height: inherit;
  white-space: normal;
}
progress {
  vertical-align: baseline;
}
[type='number']::-webkit-inner-spin-button,
[type='number']::-webkit-outer-spin-button {
  height: auto;
}
[type='search'] {
  outline-offset: -2px;
  -webkit-appearance: none;
}
[type='search']::-webkit-search-cancel-button,
[type='search']::-webkit-search-decoration {
  -webkit-appearance: none;
}
::-webkit-file-upload-button {
  font: inherit;
  -webkit-appearance: button;
}
output {
  display: inline-block;
}
summary {
  display: list-item;
}
template {
  display: none;
}
[hidden] {
  display: none !important;
}
mark {
  padding: 0.2em;
  background-color: #feffe6;
}
/* 东方易筑主题样式 */
:root {
  --primary-color: #d32f2f;
  --secondary-color: #ffd700;
  --accent-color: #ff6b6b;
  --dark-color: #b71c1c;
  --light-color: #fff8f8;
}
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen',
    'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue',
    sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background-color: #f5f5f5;
}
#root {
  min-height: 100vh;
}
/* 减少初始白屏 */
body {
  background-color: #d32f2f;
  transition: background-color 0.3s ease;
}
body.loaded {
  background-color: #f5f5f5;
}
/* 东方易筑品牌样式 */
.brand-title {
  color: var(--primary-color) !important;
  font-weight: bold;
}
.hero-section {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--dark-color) 100%);
}
.service-card {
  border-top: 4px solid var(--primary-color);
  transition: all 0.3s ease;
}
.service-card:hover {
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
  transform: translateY(-4px);
}
.contact-button {
  background: var(--secondary-color) !important;
  border-color: var(--secondary-color) !important;
  color: var(--primary-color) !important;
  font-weight: bold;
}
/* 案例内容样式 */
.case-content img {
  max-width: 100%;
  height: auto;
  margin: 16px 0;
  border-radius: 8px;
}
.case-content p {
  margin-bottom: 16px;
  line-height: 1.8;
}
.case-content h1,
.case-content h2,
.case-content h3,
.case-content h4,
.case-content h5,
.case-content h6 {
  margin: 24px 0 16px 0;
  font-weight: 600;
}
/* 移动端底部导航 */
.mobile-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(211, 47, 47, 0.95);
  backdrop-filter: blur(8px);
  color: white;
  padding: 12px 0;
  z-index: 999;
}
.mobile-nav a {
  color: white;
  text-decoration: none;
  text-align: center;
  display: block;
}
.mobile-nav a:hover {
  opacity: 0.8;
}
/* 响应式样式 */
@media screen and (max-width: 768px) {
  .ant-layout-header {
    padding: 0 16px !important;
  }
  
  .ant-card {
    margin-bottom: 16px;
  }
  
  .mobile-nav {
    display: block !important;
  }
  
  .hero-section {
    padding: 60px 0 !important;
  }
}
@media screen and (min-width: 769px) {
  .mobile-nav {
    display: none !important;
  }
}