﻿/* 全局样式重置与基础设置 */
.app-icon {
	width: 34px;
	height: 34px;
	display: inline-block;
	vertical-align: middle;
	border-radius: 4px;
}

/* 转圈动画 */
@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.tabs {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap; /* 标签过多时换行 */
}

.tab {
    padding: 0.1rem 1.1rem; /* 微调内边距适配文字大小 */
    border: none;
    border-radius: 6px;
    background-color: #f0f2f5;
    color: #666;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 0.85rem; /* 标签文字缩小 */
}

.tab.active {
    background-color: #165dff;
    color: #fff;
}

.tab:hover:not(.active) {
    background-color: #e5e6eb;
}

.search-bar {
    display: flex;
    align-items: center;
    /* 限制搜索框最大宽度，使其变短 */
    max-width: 350px; 
    min-width: 220px; /* 移动端最小宽度适当缩小 */
    margin-bottom: 1px;
}

.search-input {
    flex: 1;
    padding: 0.2rem 1.1rem;
    border: 1px solid #e5e6eb;
    border-radius: 6px 0 0 6px;
    font-size: 0.85rem; /* 搜索框文字同步缩小 */
    outline: none;
    transition: border-color 0.2s ease;
}

.search-input:focus {
    border-color: #165dff;
}

.search-btn {
    padding: 0.2rem 1.1rem;
    border: none;
    border-radius: 0 6px 6px 0;
    background-color: #165dff;
    color: #fff;
    cursor: pointer;
    transition: background-color 0.2s ease;
    font-size: 0.85rem; /* 搜索按钮文字同步 */
}

.search-btn:hover {
    background-color: #0e4bc4;
}

/* 表格操作区 */
.table-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    padding: 0.5rem 0;
}

.action-buttons {
    display: flex;
    gap: 0.8rem;
}

.action-btn {
    padding: 0.5rem 1rem;
    border: 1px solid #e5e6eb;
    border-radius: 6px;
    background-color: #fff;
    color: #666;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 0.85rem;
}

.action-btn.danger {
    border-color: #ff4d4f;
    color: #ff4d4f;
}

.action-btn:hover {
    background-color: #f5f7fa;
}

.action-btn.danger:hover {
    background-color: #fff2f2;
}

/* 数据表格样式 */
.data-table {
    width: 100%;
    border-collapse: collapse;
    background-color: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.data-table th,
.data-table td {
    padding: 1rem 1.2rem;
    text-align: left;
    border-bottom: 1px solid #f0f2f5;
    font-size: 0.9rem;
}

.data-table th {
    background-color: #f8f9fa;
    font-weight: 600;
    color: #333;
}

.data-table tr:hover {
    background-color: #fafbfc;
}

.table-cell-icon {
    width: 32px;
    height: 32px;
    border-radius: 4px;
    background-color: #f0f2f5;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #165dff; /* 图标颜色与主题色一致 */
    font-size: 1rem; /* 图标大小 */
}

.badge {
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 500;
}

.badge-free {
    background-color: #e8f4f8;
    color: #1890ff;
}

/* 立即下载按钮样式 */
.btn-download {
    padding: 0.4rem 0.8rem;
    border: none;
    border-radius: 4px;
    background-color: #52c41a;
    color: #fff;
    cursor: pointer;
    transition: background-color 0.2s ease;
    font-size: 0.85rem;
}

.btn-download:hover {
    background-color: #43a817;
}

.btn-delete {
    color: #ff4d4f;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 0.9rem;
    transition: color 0.2s ease;
}

.btn-delete:hover {
    color: #d9363e;
}

/* 现代化删除确认弹窗样式 */
.modern-delete-modal {
    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: 9999;
    animation: fadeIn 0.2s ease;
}

.modern-delete-modal.show {
    display: flex;
}

.delete-modal-content {
    background: #fff;
    border-radius: 8px;
    padding: 24px;
    min-width: 320px;
    max-width: 90%;
    animation: slideIn 0.2s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

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

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

.delete-modal-title {
    font-size: 16px;
    font-weight: 500;
    color: #333;
    margin-bottom: 12px;
}

.delete-modal-message {
    font-size: 14px;
    color: #666;
    margin-bottom: 24px;
    line-height: 1.5;
}

.delete-modal-buttons {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
}

.delete-modal-btn {
    padding: 8px 20px;
    border-radius: 4px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
}

.delete-modal-btn-cancel {
    background: #f5f5f5;
    color: #666;
}

.delete-modal-btn-cancel:hover {
    background: #e8e8e8;
}

.delete-modal-btn-confirm {
    background: #ff4d4f;
    color: #fff;
}

.delete-modal-btn-confirm:hover {
    background: #d9363e;
}

/* 现代化Toast提示样式 */
.modern-toast {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: #fff;
    border-radius: 8px;
    padding: 12px 24px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    display: none;
    align-items: center;
    gap: 8px;
    z-index: 10000;
    animation: toastSlideIn 0.3s ease;
}

.modern-toast.show {
    display: flex;
}

.modern-toast.success {
    background: #f0f9ff;
    border: 1px solid #bae7ff;
    color: #0958d9;
}

.modern-toast.error {
    background: #fff2f0;
    border: 1px solid #ffccc7;
    color: #cf1322;
}

.modern-toast-text {
    font-size: 14px;
    font-weight: 500;
}

@keyframes toastSlideIn {
    from {
        opacity: 0;
        transform: translate(-50%, -20px);
    }
    to {
        opacity: 1;
        transform: translate(-50%, 0);
    }
}

@keyframes toastSlideOut {
    from {
        opacity: 1;
        transform: translate(-50%, 0);
    }
    to {
        opacity: 0;
        transform: translate(-50%, -20px);
    }
}

/* 响应式适配 */
@media (max-width: 768px) {
    .container {
        padding: 1rem;
    }

    .header-top {
        gap: 1rem;
    }

    .search-bar {
        max-width: 100%; /* 移动端搜索框占满宽度 */
    }

    .table-actions {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .data-table th,
    .data-table td {
        padding: 0.8rem 0.5rem;
        font-size: 0.8rem;
    }

    .table-cell-icon {
        width: 24px;
        height: 24px;
        font-size: 0.8rem; /* 移动端图标缩小 */
    }

    .btn-download {
        padding: 0.3rem 0.6rem;
        font-size: 0.8rem;
    }
    
}

.page-title {
    font-size: 13px;
    color: #333;
    margin-bottom: 10px;
    font-family: "iconfont" !important;
}

.icon-upload-section {
    margin: 20px 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

 .text {
    text-align: center;
    margin-top: 60px;
    font-size: 14px;
    font-weight: 600;
    color: #304dd9;
    margin-left: 3px;
}
.icon-upload-btn {
    position: relative;
    border: 1px solid #ddd;
    height: 100px;
    width: 100px;
    border-radius: 10px;
    background: url(../image/icon01.png) no-repeat center 23px;
    background-color: #F6F6F8;
    margin-bottom: 30px;
    overflow: hidden;
    margin-left: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}
.icon-upload-btn button {
    position: absolute;
    /*bottom: 5px;*/
    /*left: 50%;*/
    /*transform: translateX(-50%);*/
    font-size: 12px;
    color: #333;
    background: rgba(255,255,255,0.8);
    border: none;
    /*padding: 2px 8px;*/
    border-radius: 4px;
    transition: opacity 0.3s ease;
}
.icon-upload-btn img {
    width: 24px;
    height: 24px;
    margin-bottom: 5px;
}
.icon-tip {
    font-size: 14px;
    color: #666;
}
.step-btn-group {
    margin: 20px 0;
}
.step-btn-group button {
    padding: 6px 12px;
    border: 1px solid #ccc;
    background-color: #fff;
    cursor: pointer;
    margin-right: 5px;
}
.step-btn-group .next-btn {
    background-color: #0052d9;
    color: #fff;
    border-color: #0052d9;
}
.notice-box {
    border: 1px solid #ccc;
    padding: 15px;
    font-size: 14px;
    color: #333;
    line-height: 1.6;
}
.notice-box .red-text {
    color: #f00;
}

/* 容器样式 - 模拟Layui的布局容器 */
.layui-container {
    width: 100%;
    margin: 30px auto;
    padding: 0 15px;
}

/* 卡片容器 - 模拟Layui的面板样式 */
.layui-card {
    background-color: #fff;
    border-radius: 2px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
    overflow: hidden;
}

/* 卡片头部 */
.layui-card-header {
    padding: 10px 15px;
    border-bottom: 1px solid #e6e6e6;
    font-size: 16px;
    font-weight: 600;
    color: #333;
    background-color: #f8f8f8;
}

/* 卡片主体 */
.layui-card-body {
    padding: 20px 15px;
}

/* 表单项样式 - 统一高度和对齐方式 */
.layui-form-item {
    margin-bottom: 15px;
    clear: both;
    *zoom: 1;
    display: flex;
    align-items: center;
    min-height: 50px; /* 统一表单项最小高度，保证对齐 */
}

.layui-form-item:after {
    content: "";
    display: table;
    clear: both;
}

/* 表单标签 - 固定宽度，统一对齐 */
.layui-form-label {
    flex: 0 0 120px;
    padding: 9px 15px;
    font-weight: normal;
    line-height: 38px;
    text-align: right;
    /* 强制标签单行显示，避免高度变化 */
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* 表单内容区域 - 包含输入框和提示文本 */
.layui-form-content {
    flex: 1;
    display: flex;
    align-items: center;
    padding: 6px 15px;
}

/* 输入框容器 - 统一宽度，保证所有输入框/元素宽度一致 */
.input-wrap {
    flex: 0 0 500px; /* 固定输入框容器宽度，实现上下对齐 */
    max-width: 100%; /* 响应式适配 */
}

/* 输入框样式 - 统一尺寸 */
.layui-input {
    display: block;
    width: 100%;
    height: 38px;
    padding: 0 10px;
    border: 1px solid #e6e6e6;
    border-radius: 2px;
    font-size: 14px;
    line-height: 38px;
    color: #333;
    background-color: #fff;
    transition: border-color 0.2s ease-in-out;
}

.layui-input:focus {
    outline: none;
    border-color: #5FB878;
}

/* 提示文本样式 - 固定在输入框右侧 */
.layui-form-text {
    flex: 1;
    margin-left: 15px;
    font-size: 12px;
    color: #999;
    line-height: 38px;
    /* 允许提示文本换行，避免宽度溢出 */
    white-space: normal;
    word-wrap: break-word;
}

/* 文件上传样式 - 与输入框统一高度和宽度 */
.layui-upload {
    position: relative;
    display: block; /* 块级显示，占满input-wrap宽度 */
    cursor: pointer;
}

.layui-upload-input {
    display: none;
}

.layui-upload-btn {
    display: block; /* 块级显示，占满父容器宽度 */
    width: 100%;
    padding: 0 20px;
    height: 38px;
    line-height: 38px;
    background-color: #f8f8f8;
    border: 1px solid #e6e6e6;
    border-radius: 2px;
    font-size: 14px;
    color: #333;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: center;
}

.layui-upload-btn:hover {
    background-color: #f2f2f2;
}

/* 复选框容器 - 与输入框统一高度对齐 */
.checkbox-wrap {
    display: flex;
    align-items: center;
    height: 38px; /* 与输入框高度一致 */
}

/* 复选框样式 */
.layui-form-checkbox {
    display: inline-block;
    position: relative;
    height: 30px;
    line-height: 30px;
    margin-right: 20px;
    cursor: pointer;
}

.layui-form-checkbox span {
    margin-left: 25px;
}

.layui-form-checkbox input {
    position: absolute;
    top: 0;
    left: 0;
    width: 16px;
    height: 16px;
    margin: 7px 0 0;
    opacity: 0;
    cursor: pointer;
}

.layui-form-checkbox i {
    position: absolute;
    top: 7px;
    left: 0;
    width: 16px;
    height: 16px;
    border: 1px solid #e6e6e6;
    border-radius: 2px;
    background-color: #fff;
    transition: all 0.2s ease;
}

.layui-form-checkbox input:checked + i {
    background-color: #5FB878;
    border-color: #5FB878;
}

.layui-form-checkbox input:checked + i:after {
    content: "";
    position: absolute;
    top: 2px;
    left: 5px;
    width: 5px;
    height: 10px;
    border: solid #fff;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

/* 按钮组样式 */
.layui-form-btn {
    margin-left: 135px;
    margin-top: 20px;
}

.layui-btn {
    display: inline-block;
    height: 38px;
    line-height: 38px;
    padding: 0 18px;
    background-color: #009688;
    color: #fff;
    white-space: nowrap;
    text-align: center;
    font-size: 14px;
    border: none;
    border-radius: 2px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.layui-btn:hover {
    opacity: 0.9;
}

/* 必选标记 */
.required {
    color: #FF5722;
    margin-right: 5px;
}

/* 响应式适配 */
@media (max-width: 768px) {
    .layui-form-item {
        flex-direction: column;
        align-items: flex-start;
        min-height: auto;
    }

    .layui-form-label {
        flex: none;
        width: auto;
        padding: 0 0 5px 0;
        text-align: left;
        line-height: 1.5;
    }

    .layui-form-content {
        flex: none;
        width: 100%;
        flex-direction: column;
        align-items: flex-start;
        padding: 0;
    }

    .input-wrap {
        flex: none;
        width: 100%;
    }

    .layui-form-text {
        margin-left: 0;
        margin-top: 5px;
        line-height: 1.4;
    }

    .layui-form-btn {
        margin-left: 0;
    }
}

/* 针对小屏的额外适配 */
@media (max-width: 576px) {
    .layui-container {
        max-width: 100%;
    }
}

/* 保持原有样式 */
.main-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 2rem 0;
    margin-bottom: 2rem;
}
.nav-menu {
    background: white;
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 2rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}
.nav-menu a {
    color: #6c757d;
    text-decoration: none;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    transition: all 0.3s;
}
.nav-menu a:hover,
.nav-menu a.active {
    background: #667eea;
    color: white;
}
.points-info {
    background: #e3f2fd;
    border-left: 4px solid #2196f3;
    padding: 1rem;
    border-radius: 4px;
    margin-bottom: 1.5rem;
}
.history-table {
    background: white;
    border-radius: 10px;
    overflow: hidden;
}
.history-table thead {
    background: #f8f9fa;
}
.preview-container {
    background: white;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    padding: 2rem;
    margin-bottom: 2rem;
}
.icon-preview {
    width: 80px;
    height: 80px;
    border-radius: 15px;
    border: 2px solid #e9ecef;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    background: #f8f9fa;
}
.loading-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9999;
}
.loading-spinner {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    padding: 2rem;
    border-radius: 8px;
    text-align: center;
}
