/* 通用样式 */ /* 重置样式 */ * { box-sizing: border-box; } page { background-color: #f8f8f8; font-family: -apple-system, BlinkMacSystemFont, 'Helvetica Neue', Helvetica, 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', SimSun, sans-serif; } /* 布局 */ .container { padding: 20px; } .flex { display: flex; } .flex-center { display: flex; align-items: center; justify-content: center; } .flex-between { display: flex; align-items: center; justify-content: space-between; } .flex-column { display: flex; flex-direction: column; } /* 文字 */ .text-center { text-align: center; } .text-left { text-align: left; } .text-right { text-align: right; } .text-primary { color: #007aff; } .text-success { color: #4cd964; } .text-warning { color: #f0ad4e; } .text-danger { color: #dd524d; } .text-muted { color: #999; } /* 按钮 */ .btn { display: inline-block; padding: 10px 20px; border-radius: 5px; text-align: center; font-size: 16px; border: none; cursor: pointer; } .btn-primary { background-color: #007aff; color: white; } .btn-success { background-color: #4cd964; color: white; } .btn-warning { background-color: #f0ad4e; color: white; } .btn-danger { background-color: #dd524d; color: white; } .btn:disabled { opacity: 0.6; cursor: not-allowed; } /* 卡片 */ .card { background: white; border-radius: 8px; padding: 15px; margin-bottom: 15px; box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1); } /* 列表 */ .list-item { background: white; padding: 15px; border-bottom: 1px solid #f0f0f0; display: flex; align-items: center; } .list-item:last-child { border-bottom: none; } /* 间距 */ .mt-10 { margin-top: 10px; } .mt-15 { margin-top: 15px; } .mt-20 { margin-top: 20px; } .mb-10 { margin-bottom: 10px; } .mb-15 { margin-bottom: 15px; } .mb-20 { margin-bottom: 20px; } .ml-10 { margin-left: 10px; } .mr-10 { margin-right: 10px; } .p-10 { padding: 10px; } .p-15 { padding: 15px; } .p-20 { padding: 20px; } /* 圆角 */ .rounded { border-radius: 5px; } .rounded-lg { border-radius: 10px; } .rounded-full { border-radius: 50%; }