wireframes.css 16 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123
  1. * { box-sizing: border-box; }
  2. .login-layout { min-height: 75vh; display: flex; justify-content: center; align-items: center; gap: 70px; padding: 35px 20px; }
  3. .login-intro { max-width: 330px; }.login-intro h1 { font-size: 30px; margin-bottom: 25px; }
  4. .login-panel { width: 390px; min-height: auto !important; }.login-panel form > button { width: 100%; }
  5. .admin-session { display: flex; justify-content: flex-end; align-items: center; gap: 12px; padding: 6px 24px; background: #fff; border-bottom: 1px solid #ccc; font-size: 12px; }
  6. @media(max-width:760px) { .login-layout { flex-direction: column; gap: 20px; padding: 20px 12px; }.login-panel { width: 100%; }.login-intro h1 { margin-bottom: 8px; }.admin-session { flex-wrap: wrap; padding: 6px; } }
  7. :root { color-scheme: light; font-family: "Microsoft YaHei", sans-serif; color: #222; background: #ededed; font-size: 14px; line-height: 1.6; }
  8. body { margin: 0; }
  9. button, input, select, textarea { font: inherit; color: inherit; }
  10. button, .button { background: #fff; border: 1px solid #777; padding: 7px 12px; cursor: pointer; text-decoration: none; display: inline-block; text-align: center; }
  11. button:hover, .button:hover { background: #e9e9e9; }
  12. button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 3px solid #222; outline-offset: 2px; }
  13. button:disabled { cursor: not-allowed; color: #777; border-color: #bbb; background: #eee; }
  14. .primary, button[aria-current="page"] { color: white; background: #333; border-color: #333; }
  15. .primary:hover { background: #555; }
  16. a { color: #222; text-underline-offset: 3px; }
  17. h1 { font-size: 23px; margin: 0; } h2 { font-size: 17px; margin: 0 0 12px; } h3 { font-size: 15px; margin: 0 0 8px; }
  18. p { margin: 7px 0 13px; } ul, ol { padding-left: 23px; }
  19. .review-header { background: #fafafa; border-bottom: 2px solid #555; padding: 14px 24px; }
  20. .review-header strong { font-size: 19px; }.review-header span { margin-left: 20px; }
  21. .review-header p, .muted { color: #626262; font-size: 12px; }
  22. #role-nav { display: flex; gap: 8px; flex-wrap: wrap; }
  23. .review-layout { display: block; width: 100%; }
  24. .review-sidebar { padding: 22px 16px; border-right: 1px solid #bbb; }
  25. .review-sidebar nav { display: grid; gap: 4px; margin-bottom: 22px; }
  26. .review-sidebar nav button { text-align: left; border-color: transparent; }
  27. .review-sidebar details { border-top: 1px solid #aaa; padding: 14px 0; }
  28. #scenario-nav { display: grid; gap: 6px; margin-top: 12px; }
  29. #scenario-nav button { text-align: left; font-size: 12px; }
  30. main { padding: 0 0 20px; min-width: 0; }
  31. .page-heading { display: none; }
  32. #page-code { margin: 0; color: #666; font-size: 12px; }
  33. #screen-scope { font-size: 12px; text-align: right; }
  34. #notice:not(:empty) { padding: 12px; border: 2px solid #555; background: white; margin-bottom: 16px; }
  35. .surface { background: #fff; border: 1px solid #888; padding: 20px; min-height: 470px; }
  36. .mobile { max-width: 414px; margin: 22px auto; padding: 0; min-height: 780px; display: flex; flex-direction: column; position: relative; }
  37. .mobile header { border-bottom: 1px solid #999; padding: 14px 16px; }
  38. .mobile header strong { display: block; font-size: 17px; }
  39. .mobile .content { padding: 16px; flex: 1; }
  40. .mobile footer { border-top: 1px solid #999; padding: 12px; display: flex; gap: 8px; }
  41. .mobile footer button { flex: 1; padding: 6px; }
  42. .box { border: 1px solid #aaa; padding: 14px; margin-bottom: 14px; background: #fff; }
  43. .box p:last-child { margin-bottom: 0; }
  44. .placeholder { border: 1px dashed #888; background: #f5f5f5; padding: 22px; text-align: center; margin-bottom: 14px; }
  45. .hint { padding: 10px 12px; border: 1px dashed #888; background: #f6f6f6; font-size: 13px; margin-bottom: 14px; }
  46. .tag { display: inline-block; border: 1px solid #888; padding: 1px 7px; margin: 0 5px 4px 0; font-size: 12px; }
  47. .actions, .tabs, .toolbar { display: flex; gap: 8px; flex-wrap: wrap; margin: 12px 0; align-items: center; }
  48. .actions:last-child { margin-bottom: 0; }
  49. .grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
  50. .workspace { display: grid; grid-template-columns: 235px minmax(260px, 1fr) 270px; gap: 0; min-height: 620px; }
  51. .workspace section { min-width: 0; }
  52. .workspace .box { padding: 12px; }
  53. label { display: block; margin-bottom: 13px; } label input, label select, label textarea { display: block; width: 100%; margin-top: 5px; }
  54. input, select, textarea { padding: 8px; background: #fff; border: 1px solid #999; min-width: 0; }
  55. textarea { resize: vertical; min-height: 85px; }
  56. input[type="checkbox"], input[type="radio"] { display: inline-block; width: auto; margin-right: 7px; }
  57. .check { display: flex; align-items: flex-start; gap: 5px; }
  58. .check input { margin-top: 6px; }
  59. .table-wrap { overflow-x: auto; }
  60. table { border-collapse: collapse; width: 100%; margin: 14px 0; font-size: 13px; }
  61. th, td { text-align: left; border: 1px solid #aaa; padding: 10px; vertical-align: top; }
  62. th { background: #eee; font-weight: normal; white-space: nowrap; }
  63. td button { padding: 4px 9px; }
  64. .message { padding: 12px; border: 1px solid #aaa; margin: 12px 25px 12px 0; }
  65. .message.customer { margin: 12px 0 12px 25px; background: #eee; }
  66. .message small { display: block; color: #666; margin-bottom: 4px; }
  67. .timeline li { padding-bottom: 12px; }
  68. .annotation { border-top: 1px dashed #aaa; margin: 25px auto 0; padding-top: 14px; max-width: 1060px; color: #555; }
  69. .annotation ul { margin-bottom: 0; }
  70. summary { cursor: pointer; }
  71. .empty { padding: 42px 18px; text-align: center; border: 1px dashed #aaa; }
  72. dialog { max-width: 460px; width: calc(100% - 32px); border: 2px solid #555; padding: 24px; }
  73. dialog::backdrop { background: #0005; }
  74. .steps { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 18px; }
  75. .steps span { border-bottom: 2px solid #aaa; padding: 5px 8px; }
  76. @media (max-width: 1150px) { .workspace { grid-template-columns: 1fr 1fr; }.workspace > section:first-child { grid-column: 1 / -1; }.workspace > section:first-child .box { display: inline-block; margin-right: 10px; } }
  77. @media (max-width: 760px) { .review-layout { display: block; }.review-sidebar { border-right: 0; border-bottom: 1px solid #aaa; padding: 12px; }.review-sidebar nav { display: flex; flex-wrap: wrap; margin: 0; }.review-sidebar h2, .review-sidebar > .muted { display: none; }.review-sidebar details { margin: 8px 0; padding: 8px 0; }#scenario-nav { grid-template-columns: repeat(2, minmax(0, 1fr)); }main { padding: 16px 10px; }.review-header { padding: 12px; }.grid, .workspace { display: block; }.mobile { width: 100%; }.page-heading { align-items: flex-start; }.surface { padding: 14px; }.mobile { padding: 0; } }
  78. @media print { .review-header, .review-sidebar, #notice { display: none; }.review-layout { display: block; }main { padding: 0; }body { background: white; }.surface { min-height: auto; }.annotation { break-inside: avoid; } }
  79. /* 顶部只保留轻量的原型切换;页面内部使用产品自己的导航。 */
  80. .review-header { padding: 8px 16px; border-bottom: 1px solid #aaa; display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
  81. .review-header strong { font-size: 13px; }.review-header span { font-size: 11px; margin: 0 10px; }
  82. .review-header button { padding: 4px 9px; font-size: 12px; }
  83. .review-sidebar { position: fixed; z-index: 20; width: 260px; max-height: calc(100vh - 65px); overflow: auto; right: 12px; top: 62px; background: white; border: 1px solid #888; }
  84. [hidden] { display: none !important; }
  85. .admin-shell { display: grid; grid-template-columns: 188px minmax(0, 1fr); min-height: calc(100vh - 66px); background: #f1f2f3; }
  86. .admin-sidebar { background: #26292c; color: #e3e3e3; }
  87. .admin-brand { padding: 20px 18px; font-size: 20px; border-bottom: 1px solid #555; }.admin-brand small { display: block; font-size: 11px; color: #bbb; }
  88. .nav-group { margin: 16px 0; }.nav-group p { font-size: 11px; margin: 0; padding: 0 18px 6px; color: #aaa; }
  89. .nav-group button { display: block; border: 0; background: transparent; color: #ddd; width: 100%; text-align: left; padding: 10px 20px; }
  90. .nav-group button[aria-current="page"] { background: #4d5257; color: #fff; border-left: 3px solid #eee; padding-left: 17px; }
  91. .nav-group button:hover { background: #41464b; }
  92. .admin-main { min-width: 0; }.admin-topbar { height: 58px; background: white; border-bottom: 1px solid #ddd; padding: 0 24px; display: flex; align-items: center; justify-content: space-between; }
  93. .admin-topbar > div { display: flex; gap: 22px; align-items: center; }.admin-topbar span { font-size: 12px; }
  94. .admin-breadcrumb { font-size: 12px; padding: 12px 24px; color: #666; }
  95. .admin-tabs { background: #fff; border-block: 1px solid #ddd; padding: 7px 24px; }.admin-tabs span { padding: 6px 14px; border: 1px solid #bbb; display: inline-block; font-size: 12px; }
  96. .admin-content { padding: 20px 24px; }.admin-title { display: flex; justify-content: space-between; gap: 12px; align-items: center; margin-bottom: 16px; }.admin-title h2 { margin: 0; font-size: 19px; }.admin-title > span { font-size: 12px; color: #666; }
  97. .admin-content > .surface { border: 1px solid #d0d0d0; padding: 20px; min-height: 560px; }
  98. .workspace > section { padding: 15px; border-right: 1px solid #ccc; }.workspace > section:last-child { border-right: 0; background: #f8f8f8; }
  99. .workspace > section:first-child { background: #f5f5f5; }.workspace > section:nth-child(2) { display: flex; flex-direction: column; }.workspace > section:nth-child(2) > form { margin-top: auto; border-top: 1px solid #ddd; padding-top: 14px; }
  100. .session-row { border: 0; border-bottom: 1px solid #ccc; padding: 14px 8px; background: #fff; text-align: left; width: 100%; }.session-row strong, .session-row small { display: block; }.session-row small { color: #666; }.session-row.active { background: #ddd; }
  101. .chat-empty { display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 490px; }
  102. .metric-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 16px; margin-bottom: 20px; }.metric { background: #f6f6f6; border: 1px solid #ccc; padding: 16px; }.metric strong { display: block; font-size: 27px; margin: 8px 0; }.metric small { color: #777; }
  103. .chart-placeholder { min-height: 170px; display: grid; place-items: center; background: repeating-linear-gradient(0deg,#fff,#fff 33px,#ddd 34px); border: 1px solid #bbb; color: #666; }
  104. .device-status { display: flex; justify-content: space-between; padding: 5px 16px; font-size: 10px; background: #fafafa; }
  105. .mobile .mobile-header { padding: 12px; display: flex; align-items: center; justify-content: space-between; gap: 8px; }.mobile-header button { border: 0; padding: 3px; font-size: 12px; }.mobile .mobile-header strong { font-size: 15px; }
  106. .mobile .content { background: #f5f5f5; padding: 14px; padding-bottom: 75px; }.mobile .shop-tabs { background: #fff; position: sticky; bottom: 0; padding: 8px; }.shop-tabs button { border: 0; font-size: 12px; }.shop-tabs button[aria-current="page"] { background: #ddd; color: #111; }
  107. .shop-search { display: block; width: 100%; background: #fff; color: #777; border: 1px solid #bbb; border-radius: 20px; text-align: left; margin-bottom: 14px; }
  108. .shop-banner { padding: 24px 18px; background: #dedede; margin-bottom: 15px; min-height: 150px; }.shop-banner h2 { font-size: 22px; margin: 6px 0; }
  109. .shortcut-grid { display: grid; grid-template-columns: repeat(4,1fr); margin-bottom: 16px; }.shortcut { border: 0; background: transparent; font-size: 12px; padding: 8px 2px; }.shortcut-icon { display: block; border: 1px solid #999; background: #e5e5e5; width: 25px; height: 25px; margin: 0 auto 6px; border-radius: 6px; }
  110. .ai-entry { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px; width: 100%; padding: 15px; border: 1px solid #888; background: #fff; text-align: left; margin-bottom: 18px; }.ai-entry strong { width: 100%; }.ai-entry span { font-size: 12px; }
  111. .ai-float { position: absolute; right: 12px; bottom: 90px; border-radius: 24px; padding: 8px; width: 64px; background: #333; color: white; z-index: 2; }.ai-float strong, .ai-float span { display: block; }.ai-float span { font-size: 10px; }.ai-float:hover { color: #222; }
  112. .section-heading { display: flex; justify-content: space-between; align-items: center; margin: 15px 0; }.section-heading h2 { margin: 0; }.section-heading button { border: 0; background: transparent; font-size: 11px; }
  113. .goods-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }.goods-card { display: block; padding: 0; border: 1px solid #ccc; text-align: left; width: 100%; }.goods-card > div:last-child { padding: 10px; }.goods-card p, .goods-card span { font-size: 11px; color: #666; }
  114. .goods-image { height: 125px; background: #e5e5e5; color: #777; display: flex; align-items: center; justify-content: center; flex-direction: column; border-bottom: 1px solid #ccc; }.goods-image small { font-size: 10px; }.product-hero { height: 240px; margin-bottom: 18px; }
  115. .catalog { display: grid; grid-template-columns: 82px minmax(0,1fr); gap: 12px; }.catalog nav button { display: block; width: 100%; padding: 14px 0; border: 0; border-bottom: 1px solid #ccc; background: #e7e7e7; }
  116. .profile-card { display: flex; gap: 16px; align-items: center; padding: 18px 0; }.profile-card p { font-size: 12px; }.avatar-placeholder { border: 1px solid #999; width: 58px; height: 58px; border-radius: 50%; display: grid; place-items: center; background: #ddd; color: #666; }
  117. .order-shortcuts { display: grid; grid-template-columns: repeat(5,1fr); background: white; margin-bottom: 18px; padding: 10px 2px; }.order-shortcuts button { padding: 5px 0; font-size: 10px; border: 0; }
  118. .account-list button { display: block; width: 100%; text-align: left; padding: 13px; border: 0; border-bottom: 1px solid #ddd; }
  119. .cart-total,.purchase-bar { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; justify-content: space-between; padding: 14px 0; }.cart-total span { font-size: 12px; }.product-section { padding: 15px 0; border-bottom: 1px solid #ccc; }.product-section span { float: right; font-size: 12px; }
  120. .order-card { padding: 15px; background: #fff; border: 1px solid #ccc; margin: 12px 0; }.order-product { display: flex; gap: 15px; padding: 15px 0; }.order-product .goods-image { width: 75px; height: 75px; flex-shrink: 0; }.order-product p { font-size: 12px; margin: 2px 0; }
  121. @media (max-width: 1150px) { .admin-shell { grid-template-columns: 160px minmax(0,1fr); }.admin-content { padding: 14px; }.workspace { grid-template-columns: 200px minmax(0,1fr); }.workspace > section:first-child { grid-column: auto; }.workspace > section:last-child { grid-column: 1 / -1; }.metric-grid { grid-template-columns: 1fr 1fr; } }
  122. @media (max-width: 760px) { main { padding: 0; }.review-header { padding: 7px; }.review-header > div > span { display: none; }.admin-shell { grid-template-columns: 110px minmax(0,1fr); }.admin-brand { font-size: 15px; padding: 12px 8px; }.admin-brand small { font-size: 9px; }.nav-group button { padding: 9px 8px; font-size: 11px; }.nav-group p { padding-left: 8px; }.nav-group button[aria-current="page"] { padding-left: 5px; }.admin-topbar { padding: 8px; height: auto; display: block; font-size: 12px; }.admin-breadcrumb, .admin-tabs { padding: 8px; }.admin-content { padding: 8px; }.admin-content > .surface { padding: 8px; }.admin-title { display: block; }.admin-title h2 { font-size: 15px; }.admin-title > span { font-size: 10px; }.workspace { display: block; }.workspace > section { padding: 8px; }.metric-grid { grid-template-columns: 1fr; gap: 8px; }.mobile { margin: 8px auto; min-height: calc(100vh - 100px); }.review-sidebar { width: min(290px,calc(100vw - 24px)); }.review-sidebar nav { display: grid; }.review-sidebar h2 { display: block; }.review-sidebar #scenario-nav { grid-template-columns: 1fr; } }