/* 全局样式 */
* {
    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;
    background-color: #f5f7fa;
    color: #333;
    font-size: 14px;
    line-height: 1.5715;
}

/* 防止Vue加载前的闪烁 */
[v-cloak] {
    display: none !important;
}

/* 加载动画 */
.loading-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #f5f7fa;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #e4e7ed;
    border-top: 4px solid #409eff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

.app-container {
    height: 100vh;
}

/* 侧边栏样式 */
.sidebar {
    background-color: #545c64;
    box-shadow: 2px 0 6px rgba(0, 0, 0, 0.1);
}

.logo {
    padding: 20px;
    text-align: center;
    color: #fff;
    border-bottom: 1px solid #434a50;
}

.logo h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 500;
}

.sidebar-menu {
    border: none;
}

.sidebar-menu .el-menu-item {
    height: 50px;
    line-height: 50px;
    font-size: 14px;
}

.sidebar-menu .el-menu-item i {
    margin-right: 8px;
}

/* 头部样式 */
.header {
    background-color: #fff;
    border-bottom: 1px solid #e4e7ed;
    padding: 0 20px;
    display: flex;
    align-items: center;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
}

.el-breadcrumb {
    font-size: 14px;
}

/* 主内容区样式 */
.main-content {
    padding: 24px;
    background-color: #f5f7fa;
    min-height: calc(100vh - 60px);
}

.page-content {
    max-width: none;
    margin: 0;
}

/* 表单区域样式 */
.form-section {
    background: #fff;
    border-radius: 8px;
    padding: 24px;
    box-shadow: 0 1px 2px 0 rgba(0,0,0,0.03);
    margin-bottom: 24px;
}

.page-title {
    font-size: 22px;
    color: #1f2937;
    font-weight: 600;
    margin-bottom: 24px;
    text-align: left;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
}

.clean-form {
    margin-top: 20px;
}

.clean-form .el-form-item__label {
    font-weight: 500;
    color: #374151;
    font-size: 14px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
}

/* 单选框组样式 */
.clean-form .el-radio-group {
    font-size: 14px;
}

.clean-form .el-radio {
    margin-right: 20px;
    font-size: 14px;
}

.clean-form .el-radio__label {
    color: #374151;
    font-size: 14px;
    font-weight: 400;
}

.clean-input .el-input__wrapper {
    border-radius: 6px;
    border: 1px solid #d9d9d9;
    box-shadow: none;
}

.clean-input .el-input__wrapper:hover {
    border-color: #40a9ff;
}

.clean-input .el-input__wrapper.is-focus {
    border-color: #1890ff;
    box-shadow: 0 0 0 2px rgba(24, 144, 255, 0.2);
}

.form-buttons {
    text-align: left;
    margin-top: 24px;
}

.form-buttons .el-button {
    padding: 8px 15px;
    border-radius: 6px;
    font-weight: 400;
    margin-right: 8px;
}

/* 二维码结果区域样式 */
.qr-result-section {
    background: #fff;
    border-radius: 8px;
    padding: 24px;
    box-shadow: 0 1px 2px 0 rgba(0,0,0,0.03);
    margin-bottom: 24px;
}

.section-title {
    font-size: 18px;
    color: #1f2937;
    font-weight: 600;
    margin-bottom: 20px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
}

.qr-display {
    display: flex;
    gap: 32px;
    align-items: flex-start;
}

.qr-image {
    flex-shrink: 0;
}

/* 支付宝样式二维码容器 */
.alipay-qr-container {
    position: relative;
    width: 300px;
    height: 450px;
    background-image: url('../img/zhifubao.png');
    background-size: 100% 100%;
    background-repeat: no-repeat;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    max-width: 90vw;
    max-height: 70vh;
}

.alipay-qr-container .qr-code-inner {
    position: absolute;
    top: 62%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 200px;
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border-radius: 0;
    box-shadow: none;
}

.alipay-qr-container .qr-code-inner img {
    width: 180px;
    height: 180px;
    border-radius: 4px;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .alipay-qr-container {
        width: 250px;
        height: 375px;
    }
    
    .alipay-qr-container .qr-code-inner {
        width: 170px;
        height: 170px;
    }
    
    .alipay-qr-container .qr-code-inner img {
        width: 150px;
        height: 150px;
    }
}

@media (max-width: 480px) {
    .alipay-qr-container {
        width: 200px;
        height: 300px;
    }
    
    .alipay-qr-container .qr-code-inner {
        width: 140px;
        height: 140px;
    }
    
    .alipay-qr-container .qr-code-inner img {
        width: 120px;
        height: 120px;
    }
}

/* 获取UID页面样式 */
.uid-page {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
}

.uid-header {
    text-align: center;
    margin-bottom: 50px;
}

.uid-title {
    font-size: 32px;
    font-weight: 600;
    color: #1a1a1a;
    margin: 0 0 12px;
    letter-spacing: -0.5px;
}

.uid-subtitle {
    font-size: 18px;
    color: #666;
    margin: 0;
    font-weight: 400;
}

.uid-main {
    display: flex;
    gap: 80px;
    align-items: center;
    justify-content: center;
}

.uid-left {
    flex: 0 0 400px;
}

.uid-right {
    flex: 0 0 500px;
}

.qr-section {
    background: #fff;
    border-radius: 16px;
    padding: 40px 30px;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid #f0f0f0;
}

.qr-wrapper {
    margin-bottom: 24px;
}

.qr-code {
    width: 220px;
    height: 220px;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.qr-title {
    font-size: 20px;
    font-weight: 600;
    color: #1a1a1a;
    margin: 0 0 8px;
}

.qr-instruction {
    font-size: 15px;
    color: #666;
    margin: 0 0 20px;
}

.safety-tip {
    margin-top: 20px;
}

.safety-badge {
    display: inline-block;
    background: #f6ffed;
    color: #52c41a;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
    border: 1px solid #b7eb8f;
}

.info-section {
    background: #fff;
    border-radius: 16px;
    padding: 40px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid #f0f0f0;
}

.section-title {
    font-size: 22px;
    font-weight: 600;
    color: #1a1a1a;
    margin: 0 0 16px;
    letter-spacing: -0.3px;
}

.section-desc {
    font-size: 16px;
    color: #666;
    line-height: 1.6;
    margin: 0 0 12px;
}

.uid-example {
    font-size: 15px;
    color: #1677ff;
    font-weight: 500;
    margin: 0 0 24px;
    font-family: 'Monaco', 'Menlo', monospace;
}

.uses-title {
    font-size: 18px;
    font-weight: 600;
    color: #1a1a1a;
    margin: 0 0 16px;
}

.uses-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 32px;
}

.use-item {
    font-size: 15px;
    color: #333;
    line-height: 1.5;
    padding-left: 8px;
}


.security-note {
    background: #f6ffed;
    border: 1px solid #b7eb8f;
    border-radius: 8px;
    padding: 16px;
}

.security-note p {
    margin: 0;
    font-size: 14px;
    color: #52c41a;
    line-height: 1.5;
}

/* 响应式设计 */
@media (max-width: 1024px) {
    .uid-main {
        flex-direction: column;
        gap: 40px;
        align-items: center;
    }
    
    .uid-left, .uid-right {
        flex: none;
        width: 100%;
        max-width: 500px;
    }
}

@media (max-width: 768px) {
    .uid-page {
        padding: 20px 15px;
    }
    
    .uid-title {
        font-size: 28px;
    }
    
    .uid-subtitle {
        font-size: 16px;
    }
    
    .qr-section {
        padding: 30px 20px;
    }
    
    .qr-code {
        width: 180px;
        height: 180px;
    }
    
    .info-section {
        padding: 30px 24px;
    }
    
    .uid-left, .uid-right {
        max-width: none;
    }
}

.qr-placeholder {
    width: 200px;
    height: 200px;
    border: 2px dashed #d9d9d9;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
    font-size: 14px;
}

.qr-info {
    flex: 1;
    padding-top: 20px;
}

.qr-info p {
    margin-bottom: 12px;
    font-size: 14px;
    color: #374151;
    line-height: 1.5;
}

.qr-info strong {
    color: #1f2937;
}

.qr-actions {
    margin-top: 20px;
}

.qr-actions .el-button {
    margin-right: 12px;
}

/* 转卡码记录区域样式 */
.record-section {
    background: #fff;
    border-radius: 8px;
    padding: 24px;
    box-shadow: 0 1px 2px 0 rgba(0,0,0,0.03);
}

.record-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.record-title {
    font-size: 16px;
    color: rgba(0,0,0,.85);
    font-weight: 500;
    margin: 0;
}

.record-actions {
    display: flex;
    gap: 8px;
}

.record-actions .el-button {
    border-radius: 6px;
    font-size: 14px;
    padding: 5px 15px;
}

.record-actions .el-button.is-plain {
    background-color: #fff;
    border-color: #d9d9d9;
    color: rgba(0,0,0,.65);
}

.record-actions .el-button.is-plain:hover {
    border-color: #1890ff;
    color: #1890ff;
}

.record-actions .el-button--danger.is-plain {
    border-color: #d9d9d9;
    color: #ff4d4f;
}

.record-actions .el-button--danger.is-plain:hover {
    border-color: #ff4d4f;
    background-color: #ff4d4f;
    color: #fff;
}

.record-table {
    margin-top: 0;
}

/* 表格样式优化 */
.record-table .el-table {
    border: none;
    border-radius: 6px;
    overflow: hidden;
}

.record-table .el-table th {
    background-color: #fafafa;
    color: rgba(0,0,0,.85);
    font-weight: 500;
    font-size: 14px;
    border-bottom: 1px solid #f0f0f0;
    padding: 12px 16px;
    border-right: none;
}

.record-table .el-table td {
    border-bottom: 1px solid #f9f9f9;
    padding: 12px 16px;
    font-size: 14px;
    color: rgba(0,0,0,.65);
    border-right: none;
}

.record-table .el-table--border {
    border: 1px solid #f0f0f0;
}

.record-table .el-table--border th {
    border-right: none;
}

.record-table .el-table--border td {
    border-right: none;
}

.record-table .el-table tbody tr:hover > td {
    background-color: #fafafa;
}

/* 空数据样式 */
.empty-data {
    padding: 80px 20px;
    text-align: center;
    color: #999999;
}

.empty-data p {
    margin: 0;
    font-size: 14px;
    color: #999999;
}

/* 状态标签样式 */
.record-table .el-tag {
    font-size: 12px;
    padding: 2px 8px;
}

/* 操作按钮容器 */
.action-buttons {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: nowrap;
    justify-content: flex-start;
}

.action-buttons .el-button {
    margin-left: 0;
    margin-right: 0;
    white-space: nowrap;
}

/* 链接和时间文本样式 */
.link-text {
    font-family: 'Monaco', 'Menlo', monospace;
    font-size: 13px;
    color: #4f46e5;
}

.time-text {
    font-size: 13px;
    color: #6b7280;
}

/* 卡片样式 */
.form-card {
    margin-bottom: 30px;
    border-radius: 4px;
    box-shadow: 0 2px 12px 0 rgba(0, 0, 0, 0.1);
}

.result-card {
    margin-bottom: 30px;
    border-radius: 4px;
    box-shadow: 0 2px 12px 0 rgba(0, 0, 0, 0.1);
}

.el-card {
    border-radius: 4px !important;
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 500;
    font-size: 16px;
}

/* 表单样式 */
.el-form {
    padding: 10px 0;
}

.el-form-item {
    margin-bottom: 18px;
}

.el-form-item__label {
    font-size: 14px;
    color: #606266;
    font-weight: 500;
}

/* 输入框样式 */
.el-input {
    font-size: 14px;
}

.el-input__wrapper {
    border-radius: 3px !important;
    border: 1px solid #dcdfe6;
    transition: border-color 0.2s cubic-bezier(0.645, 0.045, 0.355, 1);
    box-shadow: none !important;
}

.el-input__wrapper:hover {
    border-color: #c0c4cc;
}

.el-input__wrapper.is-focus {
    border-color: #409eff !important;
    box-shadow: 0 0 0 1px #409eff inset !important;
}

.el-input__inner {
    border: none !important;
    box-shadow: none !important;
    border-radius: 3px !important;
}

.el-textarea__inner {
    border-radius: 3px !important;
    border: 1px solid #dcdfe6;
    resize: vertical;
    min-height: 60px;
}

.el-textarea__inner:focus {
    border-color: #409eff;
    outline: none;
}

/* 选择器样式 */
.el-select .el-input__wrapper {
    border-radius: 3px !important;
}

/* 日期选择器样式 */
.el-date-editor .el-input__wrapper {
    border-radius: 3px !important;
}

/* 按钮样式 */
.el-button {
    border-radius: 3px !important;
    font-size: 14px;
    padding: 10px 20px;
    font-weight: 500;
    transition: all 0.3s;
}

.el-button--small {
    padding: 8px 16px;
    font-size: 14px;
    border-radius: 3px !important;
}

.el-button--primary {
    background-color: #409eff;
    border-color: #409eff;
}

.el-button--primary:hover {
    background-color: #66b1ff;
    border-color: #66b1ff;
}

/* 结果展示样式 */
.result-content {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.qr-code {
    flex-shrink: 0;
}

.qr-code canvas {
    border: 1px solid #e4e7ed;
    border-radius: 6px;
}

.code-info {
    flex: 1;
}

.code-info p {
    margin-bottom: 10px;
    font-size: 14px;
    color: #606266;
    line-height: 1.5;
}

.code-info strong {
    color: #303133;
}

/* 菜单图标样式 */
.sidebar-menu .el-menu-item .el-icon {
    margin-right: 8px;
    font-size: 16px;
}

.sidebar-menu .el-menu-item .el-icon svg {
    width: 16px;
    height: 16px;
}

/* 表单标签样式优化 */
.el-form-item__label {
    font-weight: 600 !important;
    color: #303133 !important;
}

/* 生成结果区域样式 */
.result-content {
    display: flex;
    gap: 20px;
    align-items: flex-start;
    padding: 20px 0;
}

.qr-code {
    flex-shrink: 0;
}

.code-info {
    flex: 1;
    padding-left: 20px;
}

.code-info p {
    margin-bottom: 12px;
    font-size: 14px;
    color: #606266;
    line-height: 1.6;
    word-break: break-all;
}

/* 二维码区域样式 */
.qr-code canvas {
    border: 1px solid #e4e7ed;
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}


/* 历史记录样式 */
.history-content {
    padding: 0;
}

.history-content .el-table {
    border-radius: 4px;
    table-layout: fixed;
    width: 100%;
}

.history-content .el-table th {
    background-color: #fafafa;
    font-weight: 600;
}

.history-content .el-table td {
    padding: 12px 8px;
    vertical-align: top;
}

/* 表格列内容样式 */
.history-content .el-table .el-table__cell {
    padding: 8px 12px;
}

/* 链接列样式 */
.history-content .el-table .cell {
    word-break: break-all;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* 结果信息样式 */
.code-info p {
    margin-bottom: 12px;
    font-size: 14px;
    color: #606266;
    line-height: 1.6;
}

/* 按钮组间距 */
.el-form-item .el-button + .el-button {
    margin-left: 10px;
}

/* 卡片头部样式 */
.el-card__header {
    background-color: #fafafa;
    border-bottom: 1px solid #f0f0f0;
    padding: 16px 20px;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .sidebar {
        width: 180px !important;
    }
    
    .logo h3 {
        font-size: 16px;
    }
    
    .sidebar-menu .el-menu-item {
        font-size: 13px;
        height: 45px;
        line-height: 45px;
    }
    
    .main-content {
        padding: 15px;
    }
    
    .el-input {
        width: 100% !important;
    }
    
    .result-content {
        flex-direction: column;
        align-items: center;
    }
}

/* 小巧玲珑的设计细节 */
.el-card__header {
    padding: 15px 20px;
    border-bottom: 1px solid #f0f0f0;
}

.el-card__body {
    padding: 20px;
}

.el-form-item__content {
    position: relative;
}

/* 自定义滚动条 */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}

/* 动画效果 */
.page-content {
    animation: fadeIn 0.3s ease-in-out;
}

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

/* 状态标签样式 */
.status-tags {
    display: flex;
    gap: 8px;
    margin-top: 10px;
}

.status-tag {
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
}

.status-success {
    background-color: #f0f9ff;
    color: #67c23a;
    border: 1px solid #e1f3d8;
}

.status-warning {
    background-color: #fdf6ec;
    color: #e6a23c;
    border: 1px solid #faecd8;
}

.status-info {
    background-color: #f4f4f5;
    color: #909399;
    border: 1px solid #e4e7ed;
}
