/* 微信转账模拟器 - 精美UI样式 */
/* 完全模仿微信官方UI设计 */

/* 全局样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', 'Helvetica Neue', Helvetica, Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol';
    background-color: #ededed;
    color: #333;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* 容器样式 */
.container {
    max-width: 375px;
    margin: 0 auto;
    background-color: #ededed;
    min-height: 100vh;
}

/* 卡片样式 */
.card {
    background-color: #fff;
    border-radius: 8px;
    margin: 16px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

/* 头部导航栏样式 - 完全模仿微信 */
.navbar {
    background-color: #393a3e;
    color: #fff;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 16px;
    position: relative;
}

.navbar .back-btn {
    background: none;
    border: none;
    color: #fff;
    font-size: 18px;
    cursor: pointer;
    padding: 8px;
    margin-left: -8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.navbar .title {
    font-size: 17px;
    font-weight: 500;
    flex: 1;
    text-align: center;
}

.navbar .spacer {
    width: 44px;
}

/* 按钮样式 */
.btn {
    display: inline-block;
    padding: 8px 16px;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: center;
}

.btn-primary {
    background-color: #07c160;
    color: #fff;
}

.btn-primary:hover {
    background-color: #06ad56;
}

.btn-secondary {
    background-color: #f7f7f7;
    color: #333;
    border: 1px solid #d1d1d1;
}

.btn-secondary:hover {
    background-color: #e7e7e7;
}

.btn-danger {
    background-color: #e64340;
    color: #fff;
}

.btn-danger:hover {
    background-color: #d13b39;
}

/* 表单样式 */
.form-group {
    margin-bottom: 16px;
}

.form-label {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    color: #333;
    font-weight: 500;
}

.form-input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #d1d1d1;
    border-radius: 4px;
    font-size: 16px;
    background-color: #fff;
    transition: border-color 0.2s ease;
}

.form-input:focus {
    outline: none;
    border-color: #07c160;
}

.form-textarea {
    resize: vertical;
    min-height: 80px;
}

/* 列表样式 */
.list {
    list-style: none;
}

.list-item {
    padding: 16px;
    border-bottom: 1px solid #e7e7e7;
    display: flex;
    align-items: center;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.list-item:hover {
    background-color: #f7f7f7;
}

.list-item:last-child {
    border-bottom: none;
}

.list-item-icon {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    margin-right: 12px;
    object-fit: cover;
}

.list-item-content {
    flex: 1;
}

.list-item-title {
    font-size: 16px;
    color: #333;
    margin-bottom: 4px;
}

.list-item-subtitle {
    font-size: 12px;
    color: #999;
}

.list-item-arrow {
    color: #c7c7cc;
    font-size: 18px;
    font-weight: bold;
}

/* 金额显示样式 */
.amount-display {
    display: flex;
    align-items: baseline;
    justify-content: center;
    margin: 24px 0;
}

.amount-currency {
    font-size: 24px;
    color: #333;
    margin-right: 4px;
    font-weight: 500;
}

.amount-value {
    font-size: 36px;
    font-weight: 500;
    color: #333;
}

.amount-desc {
    font-size: 14px;
    color: #999;
    text-align: center;
    margin-top: 8px;
}

/* 状态样式 */
.status {
    padding: 8px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
    text-align: center;
    display: inline-block;
}

.status-pending {
    background-color: #fff7e6;
    color: #fa8c16;
}

.status-received {
    background-color: #f6ffed;
    color: #52c41a;
}

.status-expired {
    background-color: #fff2f0;
    color: #ff4d4f;
}

/* 消息提示样式 */
.message {
    padding: 12px 16px;
    border-radius: 4px;
    margin: 16px;
    font-size: 14px;
}

.message-success {
    background-color: #f6ffed;
    color: #52c41a;
    border: 1px solid #b7eb8f;
}

.message-error {
    background-color: #fff2f0;
    color: #ff4d4f;
    border: 1px solid #ffccc7;
}

.message-warning {
    background-color: #fff7e6;
    color: #fa8c16;
    border: 1px solid #ffd591;
}

.message-info {
    background-color: #e6f7ff;
    color: #1890ff;
    border: 1px solid #91d5ff;
}

/* 加载动画 */
.loading {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid #07c160;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* 模态框样式 */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.modal-content {
    background-color: #fff;
    border-radius: 8px;
    max-width: 320px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
}

.modal-header {
    padding: 16px;
    border-bottom: 1px solid #e7e7e7;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.modal-title {
    font-size: 17px;
    font-weight: 500;
    color: #333;
}

.modal-close {
    background: none;
    border: none;
    font-size: 24px;
    color: #c7c7cc;
    cursor: pointer;
    padding: 4px;
}

.modal-body {
    padding: 16px;
}

.modal-footer {
    padding: 16px;
    border-top: 1px solid #e7e7e7;
    display: flex;
    gap: 8px;
}

/* 响应式设计 */
@media (max-width: 375px) {
    .container {
        margin: 0;
        border-radius: 0;
    }

    .card {
        margin: 0;
        border-radius: 0;
    }

    .navbar {
        margin: 0;
        border-radius: 0;
    }
}

/* 微信风格的数字键盘 */
.keyboard {
    background-color: #d1d5db;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1px;
    border-radius: 0 0 8px 8px;
    overflow: hidden;
}

.keyboard .key {
    background-color: #fff;
    height: 54px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: 400;
    cursor: pointer;
    user-select: none;
    -webkit-tap-highlight-color: rgba(0, 0, 0, 0.1);
    transition: background-color 0.1s ease;
}

.keyboard .key:active {
    background-color: #f2f2f7;
}

.keyboard .key.empty {
    background-color: #d1d5db;
    cursor: default;
}

.keyboard .key.delete {
    color: #007aff;
}

/* 密码输入样式 */
.password-input {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin: 24px 0;
}

.password-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 1px solid #d1d1d1;
    transition: all 0.2s ease;
}

.password-dot.active {
    background-color: #07c160;
    border-color: #07c160;
}

/* 统计卡片样式 */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin: 16px;
}

.stat-card {
    background-color: #fff;
    border-radius: 8px;
    padding: 16px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.stat-value {
    font-size: 24px;
    font-weight: 600;
    color: #07c160;
    margin-bottom: 4px;
}

.stat-label {
    font-size: 12px;
    color: #666;
}

