* {
|
margin: 0;
|
padding: 0;
|
box-sizing: border-box;
|
}
|
|
html, body {
|
width: 100%;
|
height: 100%;
|
}
|
|
body {
|
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
|
background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
|
min-height: 100vh;
|
padding: 0;
|
display: flex;
|
justify-content: center;
|
align-items: flex-start;
|
overflow-x: hidden;
|
}
|
|
.container {
|
width: 100%;
|
height: 100%;
|
max-width: none;
|
background: white;
|
border-radius: 0;
|
overflow-y: auto;
|
box-shadow: none;
|
display: flex;
|
flex-direction: column;
|
}
|
|
/* 头部卡片 */
|
.header-card {
|
background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
|
color: white;
|
padding: 32px 20px;
|
text-align: center;
|
position: relative;
|
flex-shrink: 0;
|
}
|
|
.avatar-container {
|
margin-bottom: 12px;
|
}
|
|
.avatar {
|
width: 64px;
|
height: 64px;
|
background: rgba(255, 255, 255, 0.2);
|
border-radius: 50%;
|
display: flex;
|
align-items: center;
|
justify-content: center;
|
margin: 0 auto;
|
font-size: 28px;
|
color: white;
|
border: 3px solid rgba(255, 255, 255, 0.4);
|
}
|
|
.company-name {
|
font-size: 18px;
|
font-weight: 600;
|
margin-bottom: 4px;
|
letter-spacing: 0.5px;
|
}
|
|
.company-info {
|
font-size: 12px;
|
opacity: 0.9;
|
font-weight: 500;
|
}
|
|
/* 主要内容 */
|
.main-content {
|
padding: 20px 16px;
|
flex: 1;
|
overflow-y: auto;
|
}
|
|
.form-group {
|
margin-bottom: 16px;
|
}
|
|
.form-label {
|
display: block;
|
font-size: 13px;
|
color: #333;
|
margin-bottom: 8px;
|
font-weight: 600;
|
}
|
|
.form-input {
|
width: 100%;
|
padding: 11px 12px;
|
font-size: 16px;
|
border: 1px solid #e0e0e0;
|
border-radius: 6px;
|
outline: none;
|
transition: all 0.3s ease;
|
background-color: #f5f5f5;
|
}
|
|
.form-input:focus {
|
border-color: #667eea;
|
background-color: white;
|
box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
|
}
|
|
.form-input::placeholder {
|
color: #999;
|
}
|
|
/* 验证码部分 */
|
.code-section {
|
background: #f5f5f5;
|
padding: 14px;
|
border-radius: 8px;
|
margin-bottom: 20px;
|
}
|
|
.code-prompt {
|
display: block;
|
font-size: 12px;
|
color: #ff8c42;
|
margin-bottom: 10px;
|
font-weight: 600;
|
}
|
|
#code-count {
|
font-weight: 700;
|
color: #ff8c42;
|
}
|
|
.btn-primary {
|
width: 100%;
|
padding: 12px;
|
font-size: 15px;
|
font-weight: 600;
|
color: white;
|
background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
|
border: none;
|
border-radius: 6px;
|
cursor: pointer;
|
transition: all 0.3s ease;
|
margin-bottom: 10px;
|
box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
|
}
|
|
.btn-primary:hover:not(:disabled) {
|
transform: translateY(-1px);
|
box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
|
}
|
|
.btn-primary:active:not(:disabled) {
|
transform: translateY(0);
|
}
|
|
.btn-primary:disabled {
|
opacity: 0.6;
|
cursor: not-allowed;
|
}
|
|
.code-tips {
|
font-size: 11px;
|
color: #888;
|
line-height: 1.5;
|
margin: 0;
|
}
|
|
/* 历史记录部分 */
|
.history-section {
|
margin-top: 20px;
|
}
|
|
.history-title {
|
font-size: 14px;
|
font-weight: 600;
|
color: #333;
|
margin-bottom: 12px;
|
padding-bottom: 8px;
|
border-bottom: 1px solid #e5e5e5;
|
}
|
|
.history-table-container {
|
overflow-x: auto;
|
border-radius: 6px;
|
background: #f5f5f5;
|
-webkit-overflow-scrolling: touch;
|
}
|
|
.history-table {
|
width: 100%;
|
border-collapse: collapse;
|
font-size: 12px;
|
}
|
|
.history-table thead {
|
background: #efefef;
|
}
|
|
.history-table th {
|
padding: 10px 8px;
|
text-align: left;
|
font-weight: 600;
|
color: #333;
|
border-bottom: 1px solid #ddd;
|
}
|
|
.history-table td {
|
padding: 10px 8px;
|
border-bottom: 1px solid #e5e5e5;
|
color: #666;
|
}
|
|
.history-table tbody tr:last-child td {
|
border-bottom: none;
|
}
|
|
.history-table tbody tr:hover {
|
background: #fafafa;
|
}
|
|
.empty-row {
|
text-align: center;
|
color: #999;
|
}
|
|
.empty-row td {
|
padding: 30px 8px;
|
font-size: 13px;
|
}
|
|
/* 操作按钮 */
|
.btn-action {
|
background: none;
|
border: none;
|
color: #667eea;
|
cursor: pointer;
|
font-size: 11px;
|
font-weight: 600;
|
padding: 6px 10px;
|
border-radius: 4px;
|
transition: all 0.2s ease;
|
-webkit-tap-highlight-color: transparent;
|
}
|
|
.btn-action:active {
|
background: rgba(102, 126, 234, 0.1);
|
}
|
|
/* 响应式设计 */
|
@media (max-width: 768px) {
|
body {
|
padding: 0;
|
}
|
|
.container {
|
border-radius: 0;
|
box-shadow: none;
|
max-width: 100%;
|
height: 100vh;
|
}
|
|
.header-card {
|
padding: 24px 16px;
|
}
|
|
.company-name {
|
font-size: 18px;
|
}
|
|
.main-content {
|
padding: 16px 14px;
|
}
|
}
|
|
@media (max-width: 480px) {
|
.container {
|
border-radius: 0;
|
}
|
|
.header-card {
|
padding: 20px 14px;
|
}
|
|
.avatar {
|
width: 56px;
|
height: 56px;
|
font-size: 24px;
|
}
|
|
.avatar-container {
|
margin-bottom: 10px;
|
}
|
|
.company-name {
|
font-size: 16px;
|
margin-bottom: 2px;
|
}
|
|
.company-info {
|
font-size: 11px;
|
}
|
|
.main-content {
|
padding: 14px 12px;
|
}
|
|
.form-group {
|
margin-bottom: 12px;
|
}
|
|
.form-label {
|
font-size: 12px;
|
margin-bottom: 6px;
|
}
|
|
.form-input {
|
padding: 10px 10px;
|
font-size: 16px;
|
border-radius: 5px;
|
}
|
|
.code-section {
|
padding: 12px;
|
margin-bottom: 16px;
|
border-radius: 6px;
|
}
|
|
.code-prompt {
|
font-size: 11px;
|
margin-bottom: 8px;
|
}
|
|
#code-count {
|
font-weight: 700;
|
}
|
|
.btn-primary {
|
padding: 11px;
|
font-size: 14px;
|
margin-bottom: 8px;
|
border-radius: 5px;
|
}
|
|
.code-tips {
|
font-size: 10px;
|
line-height: 1.4;
|
}
|
|
.history-section {
|
margin-top: 16px;
|
}
|
|
.history-title {
|
font-size: 13px;
|
margin-bottom: 10px;
|
padding-bottom: 6px;
|
}
|
|
.history-table {
|
font-size: 11px;
|
}
|
|
.history-table th {
|
padding: 8px 6px;
|
}
|
|
.history-table td {
|
padding: 8px 6px;
|
}
|
|
.empty-row td {
|
padding: 24px 6px;
|
font-size: 12px;
|
}
|
|
.btn-action {
|
font-size: 10px;
|
padding: 5px 8px;
|
}
|
}
|
|
@media (max-width: 360px) {
|
.container {
|
border-radius: 0;
|
}
|
|
.header-card {
|
padding: 16px 12px;
|
}
|
|
.avatar {
|
width: 48px;
|
height: 48px;
|
font-size: 20px;
|
}
|
|
.company-name {
|
font-size: 15px;
|
}
|
|
.company-info {
|
font-size: 10px;
|
}
|
|
.main-content {
|
padding: 12px 10px;
|
}
|
|
.form-input {
|
padding: 9px 8px;
|
font-size: 14px;
|
}
|
|
.history-table {
|
font-size: 10px;
|
}
|
|
.history-table th,
|
.history-table td {
|
padding: 6px 4px;
|
}
|
|
.btn-action {
|
font-size: 9px;
|
padding: 4px 6px;
|
}
|
}
|
|
/* 禁用状态 */
|
.form-input:disabled {
|
background-color: #f0f0f0;
|
cursor: not-allowed;
|
}
|
|
/* 加载状态动画 */
|
@keyframes pulse {
|
0% {
|
opacity: 1;
|
}
|
50% {
|
opacity: 0.6;
|
}
|
100% {
|
opacity: 1;
|
}
|
}
|
|
.loading {
|
animation: pulse 1.5s ease-in-out infinite;
|
}
|
|
/* 授权相关样式 */
|
.auth-prompt {
|
display: flex;
|
align-items: center;
|
justify-content: center;
|
min-height: 100vh;
|
background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
|
padding: 20px;
|
}
|
|
.auth-content {
|
background: white;
|
border-radius: 12px;
|
padding: 40px 30px;
|
text-align: center;
|
box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
|
max-width: 400px;
|
width: 100%;
|
}
|
|
.auth-content h2 {
|
font-size: 24px;
|
color: #333;
|
margin-bottom: 16px;
|
font-weight: 600;
|
}
|
|
.auth-content p {
|
font-size: 14px;
|
color: #666;
|
margin-bottom: 12px;
|
line-height: 1.6;
|
}
|
|
.btn-auth {
|
margin-top: 20px;
|
margin-bottom: 20px;
|
}
|
|
.auth-tip {
|
font-size: 12px;
|
color: #999;
|
margin-top: 16px;
|
}
|
|
/* 用户信息展示 */
|
.user-info-display {
|
background: #f9f9f9;
|
border-radius: 8px;
|
padding: 12px;
|
margin-bottom: 16px;
|
font-size: 12px;
|
}
|
|
.user-info-item {
|
display: flex;
|
justify-content: space-between;
|
padding: 6px 0;
|
border-bottom: 1px solid #e5e5e5;
|
}
|
|
.user-info-item:last-child {
|
border-bottom: none;
|
}
|
|
.user-info-label {
|
font-weight: 600;
|
color: #333;
|
}
|
|
.user-info-value {
|
color: #666;
|
word-break: break-all;
|
}
|
|
/* 消息提示 */
|
.message-toast {
|
position: fixed;
|
top: 50%;
|
left: 50%;
|
transform: translate(-50%, -50%);
|
background: #4CAF50;
|
color: white;
|
padding: 16px 24px;
|
border-radius: 8px;
|
font-size: 14px;
|
z-index: 9999;
|
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
|
}
|
|
.message-toast.error {
|
background: #f44336;
|
}
|
|
.message-toast.info {
|
background: #2196F3;
|
}
|