* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  color: #333;
  background: #fff;
  padding-bottom: 80px;
}

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
}

.container {
  width: min(1200px, calc(100% - 40px));
  margin: 0 auto;
}

/* ---------- 前台导航 ---------- */
.site-header {
  background: #fff;
  border-bottom: 1px solid #e5e5e5;
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 70px;
}

.logo a {
  font-size: 24px;
  font-weight: bold;
  color: #0b3d66;
}

.main-nav ul {
  display: flex;
  gap: 24px;
}

.main-nav a {
  padding: 8px 4px;
  color: #333;
  border-bottom: 2px solid transparent;
  transition: color 0.2s;
}

.main-nav a:hover,
.main-nav li.active a {
  color: #0b3d66;
  border-bottom-color: #0b3d66;
  font-weight: bold;
}

/* ---------- 页脚 ---------- */
.site-footer {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background: #0b3d66;
  color: #fff;
  padding: 30px 0;
  z-index: 999;
}

.site-footer .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.site-footer a {
  color: #9fc5e8;
}

.site-footer .dev-entry a {
  border: 1px solid #9fc5e8;
  padding: 6px 16px;
  border-radius: 4px;
  transition: all 0.2s;
}

.site-footer .dev-entry a:hover {
  background: #9fc5e8;
  color: #0b3d66;
}

/* ---------- 公共区块 ---------- */
.hero {
  background: #0b3d66;
  color: #fff;
  padding: 100px 0;
  text-align: center;
}

.hero h1 {
  font-size: 48px;
  margin-bottom: 20px;
}

.hero p {
  font-size: 18px;
  opacity: 0.8;
}

.hero .btn {
  display: inline-block;
  margin-top: 30px;
  background: #f5a623;
  color: #fff;
  padding: 12px 30px;
  border-radius: 4px;
}

.section {
  padding: 60px 0;
}

.section-title {
  text-align: center;
  margin-bottom: 40px;
}

.section-title h2 {
  font-size: 32px;
  color: #0b3d66;
}

.section-title p {
  color: #888;
  margin-top: 8px;
}

.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.card {
  background: #f7f9fb;
  padding: 30px;
  border-radius: 8px;
  border: 1px solid #eee;
}

.card h3 {
  margin-bottom: 10px;
}

.card p {
  color: #666;
  line-height: 1.6;
}

.placeholder {
  color: #999;
  border: 1px dashed #ccc;
  background: #fafafa;
  padding: 20px;
  text-align: center;
  border-radius: 4px;
}

/* 表格占位 */
.table-placeholder {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
}

.table-placeholder th,
.table-placeholder td {
  border: 1px solid #eee;
  padding: 10px 12px;
  text-align: left;
}

.table-placeholder th {
  background: #f7f9fb;
}

/* ---------- 内部开发门户 ---------- */
/* 布局：侧栏/顶栏固定，内容区独立滚动（员工多时不会看不到下面的行） */
.dev-body {
  display: block;    /* 覆盖官网 body{display:flex}，避免干扰 .dev-layout 的高度计算 */
  height: 100vh;
  overflow: hidden;  /* 外层锁住，滚动交给 .dev-content */
  background: #f0f2f5;
}

.dev-layout {
  display: flex;
  height: 100vh;
  min-height: 0;
}

.dev-sidebar {
  width: 240px;
  background: #0b1f33;
  color: #fff;
  padding-top: 20px;
  flex-shrink: 0;
  overflow-y: auto;  /* 菜单变多时侧栏自身可滚 */
}

.dev-sidebar .dev-logo {
  font-size: 20px;
  padding: 20px;
  font-weight: bold;
  border-bottom: 1px solid #1c3a54;
}

.dev-sidebar ul {
  padding: 10px 0;
}

.dev-sidebar li a {
  display: block;
  padding: 12px 24px;
  color: #cfd8e3;
  border-left: 3px solid transparent;
  transition: all 0.2s;
}

.dev-sidebar li.active a,
.dev-sidebar li a:hover {
  background: #1b3a55;
  color: #fff;
  border-left-color: #f5a623;
}

.dev-main {
  flex: 1;
  min-width: 0;
  min-height: 0;     /* 关键：允许内部 .dev-content 收缩后滚动 */
  display: flex;
  flex-direction: column;
}

.dev-topbar {
  background: #fff;
  height: 60px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 30px;
  border-bottom: 1px solid #e5e5e5;
}

.dev-topbar a {
  color: #0b3d66;
}

.dev-content {
  flex: 1;
  min-height: 0;
  overflow-y: auto;                    /* 内容区自己滚，滚动条常驻可见 */
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: #c3ccd8 #f0f2f5;
  padding: 30px;
}

/* 内容区 / 表格的滚动条样式（Windows 默认滚动条太粗，这里统一） */
.dev-content::-webkit-scrollbar,
.dev-table-wrap::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

.dev-content::-webkit-scrollbar-track,
.dev-table-wrap::-webkit-scrollbar-track {
  background: #f0f2f5;
}

.dev-content::-webkit-scrollbar-thumb,
.dev-table-wrap::-webkit-scrollbar-thumb {
  background: #c3ccd8;
  border-radius: 6px;
}

.dev-content::-webkit-scrollbar-thumb:hover,
.dev-table-wrap::-webkit-scrollbar-thumb:hover {
  background: #a9b6c6;
}

/* 表格横向兜底：列多屏窄时可左右滚，不挤压页面 */
.dev-table-wrap {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.dev-card {
  background: #fff;
  border-radius: 8px;
  padding: 24px;
  margin-bottom: 20px;
  border: 1px solid #e8e8e8;
}

.dev-card h3 {
  margin-bottom: 10px;
  color: #0b3d66;
}

/* 登录页 */
.login-body {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  background: #0b1f33;
}

.login-box {
  background: #fff;
  width: 400px;
  padding: 40px;
  border-radius: 8px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.login-box h2 {
  text-align: center;
  margin-bottom: 24px;
  color: #0b3d66;
}

.login-box label {
  display: block;
  margin: 12px 0 6px;
  font-weight: bold;
}

.login-box input {
  width: 100%;
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 4px;
}

.login-box button {
  width: 100%;
  padding: 12px;
  margin-top: 20px;
  background: #f5a623;
  color: #fff;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 16px;
}

.login-box p {
  margin-top: 16px;
  text-align: center;
}

.login-box p a {
  color: #0b3d66;
}

/* 表单占位 */
.form-placeholder {
  background: #fafafa;
  border: 1px dashed #ccc;
  padding: 30px;
  border-radius: 8px;
  color: #999;
  text-align: center;
}

/* 开发人员平台 - 卡片跳转样式 */
.dev-welcome {
    text-align: center;
    margin-bottom: 30px;
}

.dev-welcome h2 {
    color: #0b3d66;
    font-size: 28px;
    margin-bottom: 10px;
}

.dev-welcome p {
    color: #888;
}

.card-link {
    display: block;
    text-decoration: none;
    color: inherit;
    transition: all 0.2s;
    border: 1px solid #eee;
}

.card-link:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    border-color: #0b3d66;
}

.card-tag {
    display: inline-block;
    margin-top: 12px;
    color: #0b3d66;
    font-weight: bold;
}

.card-link:hover .card-tag {
    color: #f5a623;
}

.login-info {
    font-size: 12px;
    color: #888;
    margin-top: 8px;
}

.card-disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.dev-sidebar li a.disabled {
    cursor: not-allowed;
    opacity: 0.5;
}

/* 内部平台 - 顶栏账号区 */
.dev-topbar-actions {
    display: flex;
    align-items: center;
    gap: 16px;
    font-size: 14px;
}

.dev-user-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #0b3d66;
    font-weight: bold;
}

.dev-user-chip em {
    font-style: normal;
    font-size: 11px;
    font-weight: normal;
    background: #f5a623;
    color: #fff;
    padding: 2px 7px;
    border-radius: 10px;
}

.dev-topbar-actions a:hover {
    color: #f5a623;
}

/* 内部平台 - 操作提示条 */
.flash-list {
    margin-bottom: 16px;
}

.flash {
    padding: 10px 14px;
    margin: 0 0 8px;
    border: 1px solid transparent;
    border-radius: 6px;
    font-size: 14px;
    line-height: 1.6;
    text-align: left;
}

.flash-success {
    background: #eaf7ee;
    border-color: #bfe3c8;
    color: #1d6b34;
}

.flash-error,
.login-box .flash-error {
    background: #fdecec;
    border-color: #f5c2c2;
    color: #a32020;
}

.login-box .flash {
    text-align: center;
}

/* 内部平台 - 用户管理表单与表格 */
.dev-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 14px;
}

.dev-card .dev-toolbar h3 {
    margin: 0;
}

.dev-search {
    display: flex;
    align-items: center;
    gap: 8px;
}

.dev-search input {
    width: 180px;
    padding: 8px 10px;
    border: 1px solid #ccd4dd;
    border-radius: 4px;
    font-size: 14px;
    font-family: inherit;
}

.dev-form-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr)) auto;
    gap: 12px;
    align-items: end;
}

.dev-form-stack {
    display: grid;
    gap: 14px;
    max-width: 420px;
}

.dev-field {
    display: flex;
    flex-direction: column;
    min-width: 0;
    gap: 6px;
}

.dev-field label {
    font-size: 13px;
    font-weight: bold;
    color: #55606b;
}

.dev-field input,
.dev-field select,
.dev-details input,
.dev-details select {
    width: 100%;
    padding: 9px 10px;
    border: 1px solid #ccd4dd;
    border-radius: 4px;
    background: #fff;
    font-size: 14px;
    font-family: inherit;
    color: #333;
}

.dev-field input:focus,
.dev-field select:focus,
.dev-details input:focus,
.dev-details select:focus,
.dev-search input:focus {
    outline: none;
    border-color: #0b3d66;
    box-shadow: 0 0 0 3px rgba(11, 61, 102, 0.12);
}

.dev-btn {
    display: inline-block;
    padding: 9px 14px;
    border: 1px solid transparent;
    border-radius: 4px;
    background: #eef2f6;
    color: #0b3d66;
    font-size: 14px;
    font-family: inherit;
    line-height: 1.2;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    white-space: nowrap;
}

.dev-btn-primary {
    background: #0b3d66;
    color: #fff;
}

.dev-btn-primary:hover {
    background: #0f5490;
}

.dev-btn-plain {
    background: #f2f5f8;
    border-color: #d5dee7;
    color: #0b3d66;
}

.dev-btn-plain:hover {
    background: #e6edf4;
}

.dev-btn-danger {
    background: #fff;
    border-color: #e6b8b2;
    color: #c0392b;
}

.dev-btn-danger:hover {
    background: #fdecec;
}

.dev-hint {
    margin-top: 10px;
    font-size: 12px;
    line-height: 1.7;
    color: #8a94a0;
}

.dev-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.dev-table th,
.dev-table td {
    padding: 10px 12px;
    border-bottom: 1px solid #eef1f4;
    text-align: left;
    vertical-align: top;
}

.dev-table th {
    background: #f7f9fb;
    color: #55606b;
    font-weight: bold;
    white-space: nowrap;
}

.dev-table tbody tr:hover {
    background: #fafcfe;
}

.dev-table strong {
    color: #0b3d66;
}

.dev-badge {
    display: inline-block;
    margin-left: 6px;
    padding: 1px 7px;
    border-radius: 10px;
    background: #f5a623;
    color: #fff;
    font-size: 11px;
    vertical-align: middle;
}

.dev-row-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 8px;
}

.dev-details summary {
    padding: 7px 10px;
    border: 1px solid #d5dee7;
    border-radius: 4px;
    background: #f2f5f8;
    color: #0b3d66;
    font-size: 13px;
    cursor: pointer;
    list-style: none;
    white-space: nowrap;
}

.dev-details summary::-webkit-details-marker {
    display: none;
}

.dev-details[open] summary {
    background: #e6edf4;
    border-color: #b9c9d8;
}

.dev-details form {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    margin-top: 8px;
}

.dev-details input,
.dev-details select {
    width: 140px;
    padding: 7px 8px;
    font-size: 13px;
}

.dev-details .dev-btn {
    padding: 7px 10px;
    font-size: 13px;
}

.dev-empty {
    padding: 16px 0;
    color: #8a94a0;
    font-size: 14px;
}

.dev-empty-card {
    text-align: center;
}

.dev-empty-card p {
    margin: 12px 0;
    color: #55606b;
}

.dev-empty-card .dev-btn {
    margin-top: 8px;
}

/* 顶部导航下拉菜单 */
.main-nav li {
    position: relative;
}

.main-nav .dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 170px;
    background: #fff;
    border: 1px solid #eee;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    padding: 8px 0;
    border-radius: 4px;
    z-index: 1000;
}

.main-nav li:hover .dropdown-menu {
    display: block;
}

.main-nav .dropdown-menu li {
    display: block;
}

.main-nav .dropdown-menu li a {
    display: block;
    padding: 8px 20px;
    color: #333;
    white-space: nowrap;
    border-bottom: none;
}

.main-nav .dropdown-menu li a:hover {
    color: #0b3d66;
    background: #f7f9fb;
}

/* 网站整体改为：头部固定、内容区独立滚动、底部固定 */
html,
body {
    height: 100%;
    margin: 0;
}

body {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    padding-bottom: 0;
}

.site-header {
    flex-shrink: 0;
    position: static;
}

.site-footer {
    flex-shrink: 0;
    position: static;
    margin-top: 0;
}

main {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    scroll-behavior: smooth;
    /* proximity：内容比可视区略高时不会把底部内容"跳过"，仍保留整屏吸附手感 */
    scroll-snap-type: y proximity;
}

/* 顶部导航栏品牌动态效果 */
.site-header.is-home .brand-wrap {
    margin-left: auto;
}

.site-header.is-home .brand-text {
    font-size: 28px;
    font-weight: bold;
    color: #0b3d66;
    transition: all 0.3s;
}

.site-header.is-home .page-title {
    display: none;
}

.site-header.is-page .brand-wrap {
    order: -1;
}

.site-header.is-page .brand-text {
    font-size: 14px;
    color: #0b3d66;
    opacity: 0.5;
    transform: translate(-4px, -3px);
    transition: all 0.3s;
}

.site-header.is-page .page-title {
    font-size: 20px;
    font-weight: bold;
    color: #0b3d66;
}

/* 页脚排版 */
.site-footer {
    flex-shrink: 0;
    padding: 0;
}

.footer-inner {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 40px;
    padding: 40px 20px;
}

.footer-col h4 {
    font-size: 18px;
    margin-bottom: 12px;
    color: #f5a623;
}

.footer-col p {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 6px;
    line-height: 1.6;
}

.footer-col a {
    color: #9fc5e8;
    text-decoration: none;
}

.footer-col a:hover {
    color: #fff;
}

.footer-copy {
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    padding: 16px 0;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.6);
}

/* 底部宽度 */
.site-footer {
    flex-shrink: 0;
    padding: 0;
}

.site-footer .container.footer-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
}

.footer-bar p {
    color: rgba(255, 255, 255, 0.85);
}

.footer-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

.footer-right a {
    color: #9fc5e8;
    text-decoration: none;
}

.footer-right a:hover {
    color: #fff;
}

/* 备案号 */
.footer-beian {
    margin-top: 6px;
    font-size: 12px;
    line-height: 1.4;
}

.footer-beian a {
    color: rgba(255, 255, 255, 0.62);
    text-decoration: none;
}

.footer-beian a:hover {
    color: #ffffff;
    text-decoration: underline;
}

/* 联系我们按钮 */
.contact-toggle {
    background: transparent;
    border: 1px solid #9fc5e8;
    color: #fff;
    padding: 6px 16px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s;
}

.contact-toggle:hover {
    background: rgba(255, 255, 255, 0.1);
}

.contact-toggle.active {
    background: #f5a623;
    border-color: #f5a623;
    color: #0b3d66;
    font-weight: bold;
}

/* 联系方式面板 */
.contact-panel {
    max-height: 0;
    overflow: hidden;
    background: #0b2f52;
    transition: max-height 0.4s ease, padding 0.4s ease;
}

.contact-panel.open {
    max-height: 320px;
}

.contact-panel-inner {
    padding: 20px;
    display: flex;
    gap: 40px;
    flex-wrap: wrap;
}

.contact-panel-inner p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 14px;
    overflow-wrap: anywhere;   /* 邮箱较长时窄屏不撑破布局 */
}

.contact-panel-inner a {
    color: #9fc5e8;
    text-decoration: none;
    border-bottom: 1px dashed rgba(159, 197, 232, 0.5);
}

.contact-panel-inner a:hover {
    color: #fff;
    border-bottom-color: #fff;
}

/* ---------- 页头品牌 LOGO ---------- */
.brand-wrap {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

.brand-logo {
    display: block;
    width: 40px;
    height: 40px;
    object-fit: contain;
    transition: width 0.3s, height 0.3s;
}

.site-header.is-home .brand-logo {
    width: 52px;
    height: 52px;
}

.site-header.is-page .brand-logo {
    width: 32px;
    height: 32px;
}

.site-header.is-page .brand-wrap {
    gap: 8px;
}

.site-header.is-page .brand-text {
    transform: none;
}

/* ==================== 移动端自适应（2026-10-27） ==================== */
html {
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

img {
    max-width: 100%;
}

/* 汉堡按钮：桌面隐藏 */
.nav-toggle {
    display: none;
}

@media (max-width: 900px) {
    /* 页面骨架：把「整屏吸附 + main 内滚动」降级为自然文档流 */
    html,
    body {
        height: auto;
        scroll-padding-top: 64px;
    }

    body {
        display: block;
        overflow: visible;
        padding-bottom: 0;
    }

    main {
        flex: none;
        min-height: 0;
        overflow: visible;
        scroll-behavior: auto;
        scroll-snap-type: none;
    }

    /* 顶部导航：品牌 + 汉堡按钮 + 折叠菜单 */
    .site-header {
        position: sticky;
        top: 0;
        z-index: 100;
    }

    .header-inner {
        height: auto;
        min-height: 56px;
        flex-wrap: wrap;
        gap: 4px 8px;
        padding: 8px 0;
    }

    .brand-wrap {
        order: 1;
        margin-right: auto;
    }

    .site-header.is-home .brand-wrap {
        margin-left: 0;
    }

    .site-header.is-home .brand-text {
        font-size: 22px;
    }

    .brand-logo,
    .site-header.is-home .brand-logo,
    .site-header.is-page .brand-logo {
        width: 34px;
        height: 34px;
    }

    .site-header.is-page .page-title {
        font-size: 16px;
    }

    .nav-toggle {
        order: 2;
        display: inline-flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 5px;
        width: 40px;
        height: 40px;
        padding: 8px;
        background: none;
        border: 0;
        border-radius: 4px;
        cursor: pointer;
    }

    .nav-toggle span {
        display: block;
        width: 22px;
        height: 2px;
        border-radius: 2px;
        background: #0b3d66;
        transition: transform 0.2s ease, opacity 0.2s ease;
    }

    .nav-toggle[aria-expanded="true"] span:nth-child(1) {
        transform: translateY(7px) rotate(45deg);
    }

    .nav-toggle[aria-expanded="true"] span:nth-child(2) {
        opacity: 0;
    }

    .nav-toggle[aria-expanded="true"] span:nth-child(3) {
        transform: translateY(-7px) rotate(-45deg);
    }

    .main-nav {
        order: 3;
        flex-basis: 100%;
        display: none;
    }

    .main-nav.open {
        display: block;
    }

    .main-nav ul {
        flex-direction: column;
        gap: 0;
        padding: 4px 0 8px;
    }

    .main-nav a {
        display: block;
        padding: 12px 4px;
        border-bottom: 1px solid #f0f0f0;
    }

    .main-nav li.active a {
        border-bottom-color: #f0f0f0;
        color: #0b3d66;
    }

    .main-nav .dropdown-menu {
        position: static;
        display: block;
        border: 0;
        box-shadow: none;
        padding: 0 0 6px 12px;
    }

    /* 页脚：竖排 */
    .site-footer .container.footer-bar {
        flex-direction: column;
        gap: 12px;
        padding: 16px 20px;
        text-align: center;
    }

    .footer-left p {
        font-size: 13px;
        line-height: 1.7;
    }

    .footer-right {
        gap: 14px;
        flex-wrap: wrap;
        justify-content: center;
    }

    .contact-panel-inner {
        flex-direction: column;
        gap: 10px;
        padding: 16px 20px;
    }

    .contact-panel-inner p {
        font-size: 13px;
        line-height: 1.7;
    }

    /* 通用区块 */
    .section {
        padding: 40px 0;
    }

    .section-title {
        margin-bottom: 24px;
        padding: 0 20px;
    }

    .section-title h2 {
        font-size: 24px;
    }

    .section-title p {
        font-size: 14px;
        line-height: 1.7;
    }

    .grid,
    .grid-2 {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .card {
        padding: 20px;
    }

    .table-placeholder {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
    }

    /* 内部平台：小屏改回「整页滚动」（内容区不再单独滚） */
    .dev-body,
    .login-body {
        height: auto;
        min-height: 100vh;
        overflow: auto;
    }

    .dev-layout {
        flex-direction: column;
        height: auto;
        min-height: 100vh;
    }

    .dev-sidebar {
        width: 100%;
        padding-top: 0;
    }

    .dev-sidebar .dev-logo {
        padding: 14px 16px;
        font-size: 17px;
    }

    .dev-sidebar ul {
        display: flex;
        overflow-x: auto;
        padding: 0;
        -webkit-overflow-scrolling: touch;
    }

    .dev-sidebar li a {
        white-space: nowrap;
        padding: 12px 16px;
        border-left: 0;
        border-bottom: 3px solid transparent;
    }

    .dev-sidebar li.active a,
    .dev-sidebar li a:hover {
        border-left-color: transparent;
        border-bottom-color: #f5a623;
    }

    .dev-main {
        min-width: 0;
        min-height: auto;
    }

    .dev-topbar {
        padding: 0 16px;
        font-size: 14px;
    }

    .dev-content {
        flex: none;
        overflow: visible;
        padding: 16px;
    }

    /* 卡片式布局下不需要横向滚动 */
    .dev-table-wrap {
        overflow-x: visible;
    }

    .dev-card {
        padding: 18px;
    }

    .dev-welcome h2 {
        font-size: 22px;
    }

    /* 登录页 */
    .login-body {
        display: flex;
        align-items: center;
        justify-content: center;
        min-height: 100vh;
        padding: 24px 0;
    }

    .login-box {
        width: min(400px, calc(100% - 32px));
        padding: 28px 20px;
    }

    .login-box input {
        padding: 12px;
        font-size: 16px;
    }

    .login-box button {
        padding: 14px;
    }

    /* 用户管理：顶栏换行、表单两列、表格转卡片 */
    .dev-topbar {
        height: auto;
        flex-wrap: wrap;
        gap: 6px;
        padding: 10px 16px;
    }

    .dev-topbar-actions {
        flex-wrap: wrap;
        gap: 12px;
        font-size: 13px;
    }

    .dev-form-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .dev-form-grid .dev-field-submit {
        grid-column: 1 / -1;
    }

    .dev-form-grid .dev-btn,
    .dev-form-stack .dev-btn {
        width: 100%;
    }

    .dev-field input,
    .dev-field select {
        font-size: 16px;
    }

    .dev-toolbar {
        flex-direction: column;
        align-items: stretch;
    }

    .dev-search {
        width: 100%;
    }

    .dev-search input {
        flex: 1;
        width: auto;
        font-size: 16px;
    }

    .dev-table,
    .dev-table tbody,
    .dev-table tr,
    .dev-table td {
        display: block;
        width: 100%;
    }

    .dev-table thead {
        display: none;
    }

    .dev-table tr {
        margin-bottom: 12px;
        padding: 12px 14px;
        border: 1px solid #e8ecf1;
        border-radius: 8px;
        background: #fff;
    }

    .dev-table tbody tr:hover {
        background: #fff;
    }

    .dev-table td {
        display: flex;
        gap: 10px;
        padding: 6px 0;
        border: none;
    }

    .dev-table td::before {
        content: attr(data-label);
        flex: 0 0 68px;
        color: #8a94a0;
        font-size: 13px;
    }

    .dev-table td[data-label="操作"] {
        flex-direction: column;
        padding-top: 10px;
        border-top: 1px dashed #e8ecf1;
        margin-top: 6px;
    }

    .dev-table td[data-label="操作"]::before {
        flex: 0 0 auto;
        margin-bottom: 8px;
    }

    .dev-row-actions {
        gap: 8px;
        width: 100%;
    }

    .dev-row-actions > * {
        flex: 1 1 100%;
    }

    .dev-details summary {
        display: block;
        text-align: center;
    }

    .dev-details form {
        width: 100%;
    }

    .dev-details input,
    .dev-details select {
        width: 100%;
        min-width: 0;
        flex: 1 1 120px;
        font-size: 16px;
    }

    .dev-row-actions .dev-btn {
        width: 100%;
    }
}

@media (hover: none) {
    .card-link:hover {
        transform: none;
        box-shadow: none;
    }
}


