* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

body {
    background-color: #f5f5f7;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

.container {
    background: white;
    padding: 2rem;
    border-radius: 1rem;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    width: 90%;
    max-width: 400px;
    text-align: center;
}

h1 {
    color: #1d1d1f;
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
}

.input-group {
    margin-bottom: 1rem;
}

label {
    display: block;
    margin-bottom: 0.5rem;
    color: #1d1d1f;
    font-size: 0.9rem;
}

input {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid #d2d2d7;
    border-radius: 0.5rem;
    font-size: 1rem;
}

button {
    width: 100%;
    padding: 0.8rem;
    background: #0071e3;
    color: white;
    border: none;
    border-radius: 0.5rem;
    font-size: 1rem;
    cursor: pointer;
}

.message {
    margin-top: 1rem;
    color: #86868b;
}

.admin-link {
    margin-top: 1rem;
}

.admin-link a {
    color: #0071e3;
    text-decoration: none;
    font-size: 0.9rem;
}

#qrcode {
    margin: 2rem auto;
}

.success-icon {
    width: 80px;
    height: 80px;
    margin-bottom: 1.5rem;
    fill: #34c759;
}

.back-btn {
    display: inline-block;
    padding: 0.8rem 2rem;
    background: #0071e3;
    color: white;
    text-decoration: none;
    border-radius: 0.5rem;
    font-size: 1rem;
    transition: background-color 0.2s;
}

.back-btn:hover {
    background: #0077ed;
}

.error {
    color: #ff3b30;
}

.success {
    color: #34c759;
}

.danger-btn {
    background: #ff3b30;
}

.danger-btn:hover {
    background: #ff453a;
}

.manage-container {
    max-width: 800px;
}

.tabs {
    margin-bottom: 1rem;
    display: flex;
    gap: 0.5rem;
}

.tab-btn {
    flex: 1;
    padding: 0.5rem;
    border: 1px solid #d2d2d7;
    background: white;
    color: #1d1d1f;
    border-radius: 0.5rem;
    cursor: pointer;
}

.tab-btn.active {
    background: #0071e3;
    color: white;
    border-color: #0071e3;
}

.search-bar {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.search-bar input,
.search-bar select {
    padding: 0.5rem;
    border: 1px solid #d2d2d7;
    border-radius: 0.5rem;
}

.search-bar input {
    flex: 2;
}

.search-bar select {
    flex: 1;
}

.submissions-list {
    max-height: 500px;
    overflow-y: auto;
}

.submission-item {
    background: white;
    padding: 1rem;
    border-radius: 0.5rem;
    margin-bottom: 0.5rem;
    border: 1px solid #d2d2d7;
}

.submission-item:hover {
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.submission-item p {
    margin: 0.3rem 0;
}

.submission-item .status {
    display: inline-block;
    padding: 0.2rem 0.5rem;
    border-radius: 0.3rem;
    font-size: 0.9rem;
}

.status-submitted {
    background: #ffd60a;
    color: #000;
}

.status-paid {
    background: #34c759;
    color: white;
}

.pagination {
    margin-top: 1rem;
    display: flex;
    justify-content: center;
    gap: 1rem;
    align-items: center;
}

.pagination button {
    width: auto;
    padding: 0.5rem 1rem;
}

.pagination button:disabled {
    background: #d2d2d7;
    cursor: not-allowed;
}

.user-status {
    background: #f5f5f7;
    padding: 1rem;
    border-radius: 0.5rem;
    margin-bottom: 1.5rem;
}

.user-status p {
    margin: 0.5rem 0;
    color: #1d1d1f;
    font-size: 0.9rem;
}

.user-status button {
    margin-top: 1rem;
    width: auto;
    padding: 0.5rem 1rem;
}

.secondary-btn {
    background: #5856d6;
    color: white;
    border: none;
    border-radius: 0.5rem;
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
    cursor: pointer;
    margin-top: 0.5rem;
}

.secondary-btn:hover {
    background: #5e5ce6;
}

.input-group button {
    margin-top: 0.5rem;
    width: auto;
}

/* 移动端适配 */
.page-container {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    padding-bottom: 60px; /* 为底部导航留出空间 */
}

.main-content {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

/* 底部导航 */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 60px;
    background: white;
    display: flex;
    justify-content: space-around;
    align-items: center;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
    z-index: 1000;
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    color: #86868b;
    text-decoration: none;
    font-size: 0.8rem;
    padding: 0.5rem;
    transition: color 0.2s;
}

.nav-item i {
    font-size: 1.5rem;
    margin-bottom: 0.2rem;
}

.nav-item.active {
    color: #0071e3;
}

/* 历史记录列表 */
.history-list {
    max-height: calc(100vh - 200px);
    overflow-y: auto;
    padding: 0.5rem;
}

.history-item {
    background: white;
    border-radius: 1rem;
    padding: 1rem;
    margin-bottom: 1rem;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.history-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.8rem;
}

.plate-number {
    font-size: 1.1rem;
    font-weight: 600;
    color: #1d1d1f;
}

.history-content {
    color: #86868b;
    font-size: 0.9rem;
}

.history-content p {
    margin: 0.3rem 0;
}

.empty-state, .error-state {
    text-align: center;
    padding: 2rem;
    color: #86868b;
}

.empty-state i, .error-state i {
    font-size: 3rem;
    margin-bottom: 1rem;
    display: block;
}

.error-state {
    color: #ff3b30;
}

.time {
    color: #86868b;
    font-size: 0.9rem;
}

/* 状态标签 */
.status {
    padding: 0.3rem 0.8rem;
    border-radius: 1rem;
    font-size: 0.8rem;
}

.status-submitted {
    background: #ffd60a;
    color: #000;
}

.status-paid {
    background: #34c759;
    color: white;
}

/* 关于页面样式 */
.about-content {
    text-align: center;
    padding: 2rem 0;
}

.app-icon {
    font-size: 4rem;
    color: #0071e3;
    margin-bottom: 1rem;
}

.app-info {
    margin-bottom: 2rem;
}

.version {
    color: #86868b;
    margin-top: 0.5rem;
}

.feature-list {
    text-align: left;
    margin: 2rem 0;
}

.feature-list ul {
    list-style: none;
    padding: 0;
}

.feature-list li {
    padding: 0.5rem 0;
    color: #1d1d1f;
    display: flex;
    align-items: center;
}

.feature-list li:before {
    content: "•";
    color: #0071e3;
    margin-right: 0.5rem;
}

/* 优化移动端输入体验 */
input {
    -webkit-appearance: none;
    border-radius: 0.5rem;
    font-size: 16px; /* 防止 iOS 缩放 */
}

button {
    -webkit-tap-highlight-color: transparent;
}

/* 适配不同屏幕大小 */
@media (max-width: 320px) {
    .container {
        padding: 1.5rem;
    }

    h1 {
        font-size: 1.3rem;
    }

    .nav-item {
        font-size: 0.7rem;
    }
}

@media (min-width: 768px) {
    .container {
        max-width: 500px;
    }
}

/* 关于面的作者信息样式 */
.author-info {
    margin: 2rem 0;
    padding: 1.5rem;
    background: #f5f5f7;
    border-radius: 1rem;
}

.author-details {
    margin-top: 1rem;
}

.author-details p {
    display: flex;
    align-items: center;
    margin: 0.8rem 0;
    color: #1d1d1f;
}

.author-details i {
    margin-right: 0.8rem;
    color: #0071e3;
    font-size: 1.2rem;
}

.author-details a {
    color: #0071e3;
    text-decoration: none;
}

.author-details a:hover {
    text-decoration: underline;
}

.powered-by {
    margin-top: 3rem;
    padding-top: 1rem;
    border-top: 1px solid #d2d2d7;
    color: #86868b;
    font-size: 0.8rem;
}

/* 优化标题样式 */
.about-content h3 {
    color: #1d1d1f;
    margin: 1.5rem 0 1rem;
    font-size: 1.2rem;
}

/* 优化图标样式 */
.app-icon {
    font-size: 4rem;
    color: #0071e3;
    margin-bottom: 1rem;
    display: inline-block;
    background: #f5f5f7;
    padding: 1rem;
    border-radius: 1.5rem;
}

/* 历史记录页面样式优化 */
.history-header {
    margin-bottom: 1.5rem;
}

.history-stats {
    display: flex;
    justify-content: space-around;
    background: white;
    border-radius: 1rem;
    padding: 1rem;
    margin: 1rem 0;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0.5rem 1rem;
}

.stat-item i {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: #0071e3;
}

.stat-item span {
    color: #86868b;
    font-size: 0.9rem;
    margin-bottom: 0.3rem;
}

.stat-item strong {
    color: #1d1d1f;
    font-size: 1.2rem;
}

.history-item {
    background: white;
    border-radius: 1rem;
    padding: 1.2rem;
    margin-bottom: 1rem;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    transition: transform 0.2s;
}

.history-item:hover {
    transform: translateY(-2px);
}

.history-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    padding-bottom: 0.8rem;
    border-bottom: 1px solid #f5f5f7;
}

.plate-number {
    font-size: 1.2rem;
    font-weight: 600;
    color: #1d1d1f;
}

.history-content {
    color: #86868b;
}

.history-content p {
    margin: 0.5rem 0;
    display: flex;
    align-items: center;
}

.history-content i {
    margin-right: 0.5rem;
    font-size: 1rem;
    color: #0071e3;
    width: 20px;
}

.status {
    padding: 0.4rem 0.8rem;
    border-radius: 2rem;
    font-size: 0.8rem;
    font-weight: 500;
}

.status-submitted {
    background: #ffd60a20;
    color: #b59500;
}

.status-paid {
    background: #34c75920;
    color: #248a3d;
}

.empty-state {
    text-align: center;
    padding: 3rem 1rem;
}

.empty-state i {
    font-size: 4rem;
    color: #d2d2d7;
    margin-bottom: 1rem;
}

.empty-state p {
    color: #86868b;
    font-size: 1.1rem;
}

/* 添加到历史记录相关样式部分 */
.stat-item {
    cursor: pointer;
    transition: transform 0.2s, background-color 0.2s;
    border-radius: 0.8rem;
    padding: 0.8rem;
}

.stat-item:hover {
    transform: translateY(-2px);
    background-color: #f5f5f7;
}

.stat-item.active {
    background-color: #0071e320;
}

.stat-item.active i {
    color: #0071e3;
}

.stat-item.active span {
    color: #0071e3;
}

.stat-item.active strong {
    color: #0071e3;
}

/* 首页样式优化 */
.header-icon {
    font-size: 3rem;
    color: #0071e3;
    margin-bottom: 1rem;
    animation: float 3s ease-in-out infinite;
}

.header-icon i {
    background: #0071e320;
    padding: 1rem;
    border-radius: 1rem;
}

@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
    100% { transform: translateY(0px); }
}

.welcome-text {
    margin-bottom: 2rem;
    color: #1d1d1f;
}

.welcome-text .sub-text {
    color: #86868b;
    font-size: 0.9rem;
    margin-top: 0.5rem;
}

.divider {
    display: flex;
    align-items: center;
    text-align: center;
    margin: 2rem 0 1rem;
}

.divider::before,
.divider::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid #d2d2d7;
}

.divider span {
    padding: 0 1rem;
    color: #86868b;
    font-size: 0.9rem;
}

.bind-info {
    background: #f5f5f7;
    padding: 1rem;
    border-radius: 0.8rem;
    margin-bottom: 1rem;
    word-break: break-all;
}

.bind-info p {
    display: flex;
    align-items: flex-start;
    margin: 0.5rem 0;
    color: #1d1d1f;
    font-size: 0.9rem;
    line-height: 1.4;
}

.bind-info i {
    margin-right: 0.5rem;
    color: #0071e3;
    font-size: 1.1rem;
    flex-shrink: 0;
    margin-top: 0.2rem;
}

.bind-info span {
    flex: 1;
    word-wrap: break-word;
    min-width: 0;
}

.scan-tips {
    margin-bottom: 1.5rem;
    color: #1d1d1f;
}

.scan-tips i {
    font-size: 2rem;
    color: #0071e3;
    margin-bottom: 0.5rem;
}

/* 按钮图标样式 */
button i {
    margin-right: 0.5rem;
}

.secondary-btn i {
    font-size: 1rem;
}

/* 输入框组样式优化 */
.input-group {
    background: #f5f5f7;
    padding: 1rem;
    border-radius: 0.8rem;
    margin-bottom: 1.5rem;
}

.input-group label {
    color: #86868b;
    margin-bottom: 0.8rem;
}

.input-group input {
    background: white;
    margin-bottom: 0.8rem;
}

/* 确认弹窗样式 */
.confirm-dialog {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.confirm-content {
    background: white;
    padding: 1.5rem;
    border-radius: 1rem;
    width: 90%;
    max-width: 320px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.confirm-content h3 {
    color: #1d1d1f;
    font-size: 1.2rem;
    margin-bottom: 1rem;
}

.confirm-content p {
    color: #86868b;
    margin-bottom: 1rem;
    font-size: 0.9rem;
    line-height: 1.4;
}

.plate-preview {
    background: #f5f5f7;
    padding: 0.8rem;
    border-radius: 0.8rem;
    margin: 1rem 0;
    text-align: center;
}

.plate-preview strong {
    color: #1d1d1f;
    font-size: 1.1rem;
}

.confirm-buttons {
    display: flex;
    gap: 0.8rem;
    margin-top: 1.5rem;
}

.confirm-buttons button {
    flex: 1;
    padding: 0.8rem;
    border: none;
    border-radius: 0.8rem;
    font-size: 0.9rem;
    cursor: pointer;
}

.cancel-btn {
    background: #f5f5f7;
    color: #1d1d1f;
}

.confirm-btn {
    background: #0071e3;
    color: white;
}

.cancel-btn:hover {
    background: #e5e5ea;
}

.confirm-btn:hover {
    background: #0077ed;
}

.button-group {
    display: flex;
    gap: 0.8rem;
    margin-top: 1rem;
}

.button-group button {
    flex: 1;
}

.plate-info {
    margin-bottom: 1.5rem;
    background: #f5f5f7;
    padding: 1rem;
    border-radius: 0.8rem;
}

.plate-info .plate-number {
    font-size: 1.2rem;
    font-weight: 600;
    color: #1d1d1f;
    margin: 0.5rem 0;
}

.secondary-btn {
    background: #5856d6;
    color: white;
    border: none;
    border-radius: 0.5rem;
    padding: 0.8rem;
    font-size: 0.9rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.secondary-btn:hover {
    background: #5e5ce6;
}

/* 管理页面样式 */
.manage-header {
    margin-bottom: 1.5rem;
}

.manage-header h1 {
    margin-bottom: 1rem;
}

.search-bar {
    background: white;
    border-radius: 1rem;
    padding: 0.5rem;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.search-input {
    display: flex;
    align-items: center;
    background: #f5f5f7;
    border-radius: 0.8rem;
    padding: 0.5rem 1rem;
}

.search-input i {
    color: #86868b;
    margin-right: 0.8rem;
}

.search-input input {
    flex: 1;
    border: none;
    background: none;
    padding: 0.5rem 0;
    font-size: 1rem;
    color: #1d1d1f;
}

.search-input input:focus {
    outline: none;
}

.manage-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.stat-card {
    background: white;
    border-radius: 1rem;
    padding: 1rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    cursor: pointer;
    transition: transform 0.2s;
}

.stat-card:hover {
    transform: translateY(-2px);
}

.stat-icon {
    width: 3rem;
    height: 3rem;
    border-radius: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.stat-icon.pending {
    background: #ffd60a20;
    color: #b59500;
}

.stat-icon.completed {
    background: #34c75920;
    color: #248a3d;
}

.stat-info {
    flex: 1;
}

.stat-label {
    display: block;
    color: #86868b;
    font-size: 0.9rem;
    margin-bottom: 0.3rem;
}

.stat-info strong {
    font-size: 1.5rem;
    color: #1d1d1f;
}

.filter-tabs {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
    padding: 0.5rem;
    background: white;
    border-radius: 1rem;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.tab-btn {
    flex: 1;
    padding: 0.8rem;
    border: none;
    border-radius: 0.8rem;
    background: none;
    color: #86868b;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    cursor: pointer;
    transition: all 0.2s;
}

.tab-btn i {
    font-size: 1.1rem;
}

.tab-btn.active {
    background: #0071e3;
    color: white;
}

.submissions-list {
    margin-top: 1rem;
}

.submission-item {
    background: white;
    border-radius: 1rem;
    padding: 1.2rem;
    margin-bottom: 1rem;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.submission-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    padding-bottom: 0.8rem;
    border-bottom: 1px solid #f5f5f7;
}

.plate-number {
    font-size: 1.2rem;
    font-weight: 600;
    color: #1d1d1f;
}

.status {
    padding: 0.4rem 0.8rem;
    border-radius: 2rem;
    font-size: 0.8rem;
    font-weight: 500;
}

.status-submitted {
    background: #ffd60a20;
    color: #b59500;
}

.status-paid {
    background: #34c75920;
    color: #248a3d;
}

.submission-content {
    color: #86868b;
}

.submission-content p {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0.5rem 0;
}

.submission-content i {
    color: #0071e3;
}

.empty-state {
    text-align: center;
    padding: 3rem 1rem;
}

.empty-state i {
    font-size: 4rem;
    color: #d2d2d7;
    margin-bottom: 1rem;
}

.empty-state p {
    color: #86868b;
    font-size: 1.1rem;
}

/* 响应式优化 */
@media (max-width: 360px) {
    .stat-info strong {
        font-size: 1.2rem;
    }
    
    .tab-btn {
        font-size: 0.8rem;
    }
    
    .plate-number {
        font-size: 1.1rem;
    }
}

/* 加载动画 */
.loading-spinner {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.9);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #0071e3;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* 错误提示优化 */
.toast-message {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 14px;
    z-index: 1001;
    display: flex;
    align-items: center;
    gap: 8px;
    animation: slideIn 0.3s ease;
}

.toast-message.error {
    background: rgba(255, 59, 48, 0.9);
}

.toast-message.success {
    background: rgba(52, 199, 89, 0.9);
}

@keyframes slideIn {
    from { transform: translate(-50%, -100%); opacity: 0; }
    to { transform: translate(-50%, 0); opacity: 1; }
}

/* 页面切换动画 */
.page-transition {
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* 车牌号输入键盘优化 */
.plate-keyboard {
    position: fixed;
    bottom: 60px;
    left: 0;
    right: 0;
    background: #f5f5f7;
    padding: 0.5rem;
    border-radius: 1rem 1rem 0 0;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
    z-index: 999;
    max-height: calc(100vh - 200px);
    overflow-y: auto;
}

.plate-keyboard.active {
    transform: translateY(0);
    display: block;
}

.keyboard-row {
    display: grid;
    gap: 0.25rem;
    margin-bottom: 0.25rem;
    padding: 0 0.2rem;
}

/* ��份行 - 7列 */
.province-row {
    grid-template-columns: repeat(7, 1fr);
}

/* 字母行 - 9列 + 2个操作按钮 */
.letter-row {
    grid-template-columns: repeat(9, 1fr) 1.2fr 1.2fr;
}

/* 数字行 - 10列 */
.number-row {
    grid-template-columns: repeat(10, 1fr);
    margin-bottom: 0.5rem;
}

/* 按键基础样式 */
.key-btn {
    width: 100%;
    height: 2.2rem;
    border: none;
    border-radius: 0.4rem;
    background: white;
    color: #1d1d1f;
    font-size: 1rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 1px 2px rgba(0,0,0,0.1);
    padding: 0;
    margin: 0;
}

/* 删除和确定按钮样式 */
.key-btn.delete-btn,
.key-btn.confirm-btn {
    font-size: 0.9rem;
}

.key-btn.delete-btn {
    background: #ff3b30;
    color: white;
}

.key-btn.confirm-btn {
    background: #34c759;
    color: white;
}

/* 按键点击效果 */
.key-btn:active {
    opacity: 0.8;
    transform: scale(0.95);
}

/* 适配小屏幕 */
@media (max-width: 360px) {
    .key-btn {
        height: 2rem;
        font-size: 0.9rem;
    }
}

/* 适配底部安全区域 */
@supports (padding-bottom: env(safe-area-inset-bottom)) {
    .plate-keyboard {
        bottom: calc(60px + env(safe-area-inset-bottom));
    }
}

/* 确保底部导航栏显示 */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 60px;
    background: white;
    display: flex;
    justify-content: space-around;
    align-items: center;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
    z-index: 1000;
}

/* 操作按钮行样式 */
.action-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
    margin-top: 0.5rem;
    padding: 0 0.2rem;
}

.action-row .key-btn {
    height: 2.5rem;
    font-size: 1rem;
}

.key-btn.delete-btn {
    background: #ff3b30;
    color: white;
}

.key-btn.confirm-btn {
    background: #34c759;
    color: white;
}

/* 操作按钮容器 */
.action-buttons {
    display: flex;
    gap: 0.5rem;
    padding: 0.5rem;
    margin-top: 0.5rem;
}

/* 操作按钮基础样式 */
.action-btn {
    flex: 1;
    height: 2.8rem;
    border: none;
    border-radius: 0.5rem;
    font-size: 1rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

/* 删除按钮样式 */
.action-btn.delete-btn {
    background: #ff3b30;
    color: white;
}

.action-btn.delete-btn:active {
    background: #ff453a;
}

/* 确定按钮样式 */
.action-btn.confirm-btn {
    background: #007aff;
    color: white;
}

.action-btn.confirm-btn:active {
    background: #0066d6;
}

/* 弹窗样式 */
.dialog {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    animation: fadeIn 0.2s ease;
}

.dialog-content {
    width: 90%;
    max-width: 320px;
    background: white;
    border-radius: 1rem;
    padding: 1.5rem;
    animation: slideUp 0.3s ease;
}

.dialog-content h3 {
    margin: 0 0 1rem;
    color: #1d1d1f;
    font-size: 1.2rem;
    text-align: center;
}

.dialog-body {
    margin-bottom: 1.5rem;
}

.plate-preview {
    background: #f5f5f7;
    padding: 1rem;
    border-radius: 0.8rem;
    margin: 1rem 0;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    font-size: 1.2rem;
    color: #1d1d1f;
}

.dialog-tip {
    color: #86868b;
    font-size: 0.9rem;
    text-align: center;
    margin: 0;
}

.dialog-actions {
    display: flex;
    gap: 1rem;
}

.dialog-actions button {
    flex: 1;
    height: 2.8rem;
    border: none;
    border-radius: 0.8rem;
    font-size: 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.cancel-btn {
    background: #f5f5f7;
    color: #1d1d1f;
}

.confirm-btn {
    background: #0071e3;
    color: white;
    position: relative;
}

.confirm-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

/* 加载动画 */
.loading-spinner {
    display: none;
}

.loading-spinner i {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from { transform: translateY(20px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

/* 黑名单部分样式 */
.blacklist-section {
    margin-top: 2rem;
    padding-top: 1rem;
    border-top: 1px solid #e5e5ea;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.section-header h2 {
    font-size: 1.2rem;
    color: #1d1d1f;
}

.blacklist-item {
    background: white;
    border-radius: 1rem;
    padding: 1.2rem;
    margin-bottom: 1rem;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.blacklist-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    padding-bottom: 0.8rem;
    border-bottom: 1px solid #f5f5f7;
}

.blacklist-content {
    color: #86868b;
}

.blacklist-content p {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0.5rem 0;
}

.blacklist-content i {
    color: #0071e3;
}

.input-group textarea {
    width: 100%;
    height: 80px;
    padding: 0.8rem;
    border: 1px solid #e5e5ea;
    border-radius: 0.5rem;
    resize: none;
    font-size: 1rem;
}

/* 错误消息样式 */
.message.error {
    color: #ff3b30;
    padding: 1rem;
    border-radius: 0.8rem;
    margin: 1rem 0;
    line-height: 1.6;
    text-align: center;
    white-space: pre-line;
}

/* 黑名单错误消息特殊样式 */
.message.error.blacklist {
    background: #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    font-size: 0.95rem;
}

/* 联系信息样式 */
.message.error .contact-info {
    margin-top: 0.5rem;
    color: #007AFF;
}
  