*,.file-name {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
	font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
/* 禁止选择所有段落内的文本 */
    user-select: none;
    -webkit-user-select: none;  /* Safari */
    -moz-user-select: none;     /* Firefox */
    -ms-user-select: none;      /* Internet Explorer 10及更高版本 */
}
input[readonly] {
    user-select: none; /* 禁止选择文本 */
}

#app {
    height: 100vh;
    display: flex;
	flex-direction: column;
}
body {
	background: #f0f2f5;
	color: #333;
}

/* 微信登录弹窗样式 */
.wechat-login-dialog .el-dialog {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    margin: 0 !important;
}

.wechat-login-dialog .el-dialog__header {
    text-align: center;
    border-bottom: 1px solid #ebeef5;
    padding: 15px 20px;
}

.wechat-login-dialog .el-dialog__body {
	height: 408px;
    padding: 30px;
}
.user-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid rgba(255, 255, 255, 0.3);
}
.content {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
}

/* 导航栏样式 */
.navbar {
	background: linear-gradient(to right, #2c3e50, #4a6491);
	color: white;
	padding: 0 20px;
	height: 60px;
	display: flex;
	width: 100%;
	align-items: center;
	justify-content: space-between;
	box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.navbar-brand {
	font-size: 1.5rem;
	font-weight: bold;
	display: flex;
	align-items: center;
}

.navbar-brand i {
	margin-right: 10px;
	font-size: 1.8rem;
}

.navbar-menu {
	display: flex;
	gap: 20px;
}

.navbar-item {
	background: rgba(255, 255, 255, 0.1);
	border: none;
	color: white;
	padding: 8px 15px;
	border-radius: 4px;
	cursor: pointer;
	transition: background 0.3s;
	display: flex;
	align-items: center;
	gap: 5px;
}

.navbar-item:hover {
	background: rgba(255, 255, 255, 0.2);
}

.user-info {
	display: flex;
	align-items: center;
	gap: 10px;
}

.avatar {
	width: 36px;
	height: 36px;
	border-radius: 50%;
	background: #3498db;
	display: flex;
	align-items: center;
	justify-content: center;
	font-weight: bold;
}

/* 主容器样式 */
.container {
    width: 100%;
    height: calc(100vh - 60px);
    display: flex;
}

/* 侧边栏样式 */
.sidebar {
	width: 250px;
	background: #f8f9fa;
	border-right: 1px solid #dee2e6;
	padding: 15px;
	overflow-y: auto;
}

.sidebar-header {
	padding: 10px 0;
	margin-bottom: 15px;
	border-bottom: 1px solid #dee2e6;
	font-weight: bold;
	color: #2c3e50;
	display: flex;
	align-items: center;
	gap: 8px;
}

.album-tree {
	list-style: none;
}

.album-item {
    padding: 8px 0;
    border-radius: 4px;
    cursor: pointer;
    margin-bottom: 5px;
    display: inline-flex;
    transition: background 0.2s;
    align-items: center;
    text-align: left;
	width: 100%;
}
.album-icon {
    width: 30px;margin-right: 5px;
}
.album-item:hover {
	background: #e9ecef;
}

.album-item.active {
	background: #d6e4ff;
	color: #1971c2;
}

.album-item i {
	width: 16px;
	text-align: center;
}

.folder-list {
	list-style: none;
	margin-left: 20px;
	margin-top: 5px;
}
.folder-icon {
    width: 30px;
}
.folder-item {
	padding: 6px 10px;
	border-radius: 4px;
	cursor: pointer;
	margin-bottom: 3px;
	display: flex;
	align-items: center;
	gap: 8px;
	transition: background 0.2s;
	font-size: 0.9rem;
}

.folder-item:hover {
	background: #e9ecef;
}

.folder-item.active {
	background: #d6e4ff;
	color: #1971c2;
}

.add-folder-btn {
	background: none;
	border: 1px dashed #adb5bd;
	color: #6c757d;
	padding: 6px 10px;
	border-radius: 4px;
	cursor: pointer;
	width: 100%;
	text-align: left;
	margin-bottom: 8px;
	display: flex;
	align-items: center;
	gap: 8px;
	transition: all 0.2s;
	font-size: 0.9rem;
}

.add-folder-btn:hover {
	background: #e9ecef;
	border-color: #495057;
	color: #495057;
}

.add-album-btn {
	background: none;
	border: 1px dashed #adb5bd;
	color: #6c757d;
	padding: 8px 10px;
	border-radius: 4px;
	cursor: pointer;
	width: 100%;
	text-align: left;
	margin-top: 10px;
	display: flex;
	align-items: center;
	gap: 8px;
	transition: all 0.2s;
}

.add-album-btn:hover {
	background: #e9ecef;
	border-color: #495057;
}

/* 主内容区样式 */
.main-content {
	flex: 1;
	display: flex;
	flex-direction: column;
	overflow: hidden;
}

.toolbar {
	background: white;
	padding: 10px 20px;
	border-bottom: 1px solid #dee2e6;
	display: flex;
	align-items: center;
	gap: 15px;
}

.toolbar-btn {
	background: #f8f9fa;
	border: 1px solid #dee2e6;
	padding: 6px 12px;
	border-radius: 4px;
	cursor: pointer;
	display: flex;
	align-items: center;
	gap: 5px;
	transition: all 0.2s;
}

.toolbar-btn:hover {
	background: #e9ecef;
}

.breadcrumb {
	display: flex;
	align-items: center;
	gap: 5px;
	margin-left: auto;
	font-size: 0.9rem;
	color: #6c757d;
}

.breadcrumb-item {
	display: flex;
	align-items: center;
	gap: 5px;
}

.breadcrumb-separator {
	margin: 0 5px;
}

/* 文件区域样式 */
.file-area {
	flex: 1;
	padding: 20px;
	overflow-y: auto;
	background: white;
}

.file-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
	gap: 15px;
}


.file-item {
	border: 1px solid #dee2e6;
	border-radius: 4px;
	padding: 10px;
	text-align: center;
	cursor: pointer;
	transition: all 0.2s;
	background: #f8f9fa;
	position: relative;
}

.file-item:hover {
	background: #e9ecef;
	transform: translateY(-2px);
	box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.file-item.selected {
	background: #d6e4ff;
	border-color: #1971c2;
}

.file-icon {
	font-size: 2.5rem;
	margin-bottom: 8px;
	color: #1971c2;
}
.file-img {
	height: auto;
	width: 100%;
	aspect-ratio: attr(width) / attr(height);
	object-fit: contain;
}
.file-name-label {
	font-size: 13px;
    word-break: break-word;
    margin: 5px 0;
    position: absolute;
    width: 100%;
    bottom: 0;
    display: inline-block;
    left: 0;
    text-align: center;
    height: 30px;
    padding: 0;
	background: #00000068;
    border: none;
    color: #FFF;
}
.file-name {
	font-size: 13px;
    word-break: break-word;
    margin: 5px 0;
    position: absolute;
    width: 100%;
    bottom: 0;
    display: inline-block;
    left: 0;
    text-align: center;
    height: 30px;
    padding: 0;
    background: #FFF;
    color: #000;
}

.file-size {
	font-size: 0.75rem;
	color: #6c757d;
}
.file-wait4Upload{
	position: absolute;
    display: inline-block;
    width: 100%;
    top: calc(50% - 15px);
    left: 0;
    z-index: 100;
    background: #000000ab;
    color: yellow;
    height: 30px;
    line-height: 30px;
}



.empty-folder {
    text-align: center;
    color: #6c757d;
    font-size: 88px;
    height: 68vh;
    padding: 20vh 0;
    vertical-align: middle;
}

.empty-folder i {
	font-size: 3rem;
	margin-bottom: 15px;
	opacity: 0.5;
}

/* 模态框样式 */
.modal {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: rgba(0, 0, 0, 0.5);
	display: flex;
	align-items: center;
	justify-content: center;
	z-index: 1000;
}

.modal-content {
	background: white;
	border-radius: 8px;
	padding: 20px;
	width: 400px;
	max-width: 90%;
	box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.modal-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 15px;
	padding-bottom: 10px;
	border-bottom: 1px solid #dee2e6;
}

.modal-title {
	font-weight: bold;
	font-size: 1.2rem;
}

.close-btn {
	background: none;
	border: none;
	font-size: 1.5rem;
	cursor: pointer;
	color: #6c757d;
}

.modal-body {
	margin-bottom: 20px;
}

.form-group {
	margin-bottom: 15px;
}

.form-label {
	display: block;
	margin-bottom: 5px;
	font-weight: 500;
}

.form-input {
	width: 100%;
	padding: 8px 12px;
	border: 1px solid #ced4da;
	border-radius: 4px;
	font-size: 1rem;
}

.modal-footer {
	display: flex;
	justify-content: flex-end;
	gap: 10px;
}

.btn {
	padding: 8px 15px;
	border: none;
	border-radius: 4px;
	cursor: pointer;
	font-weight: 500;
	transition: background 0.2s;
}

.btn-primary {
	background: #1971c2;
	color: white;
}

.btn-primary:hover {
	background: #1864ab;
}

.btn-secondary {
	background: #f8f9fa;
	border: 1px solid #dee2e6;
}

.btn-secondary:hover {
	background: #e9ecef;
}

/* 上传区域样式 */
.upload-area {
	border: 2px dashed #adb5bd;
    border-radius: 8px;
    padding: 30px;
    text-align: center;
    margin-top: 20px;
    cursor: pointer;
    transition: all 0.3s;
    width: 288px;
    display: flex;
    align-content: space-around;
    align-items: center;
    flex-wrap: wrap;
	background:lightyellow;
}

.upload-area:hover {
	border-color: #1971c2;
	background: lightgoldenrodyellow;
}

.upload-icon {
	font-size: 2.5rem;
	color: #adb5bd;
	margin-bottom: 10px;
}

.upload-text {
	font-size: 1.1rem;
	margin-bottom: 5px;
	color: #495057;
}

.upload-hint {
	color: #6c757d;
	font-size: 0.9rem;
}

.file-input {
	display: none;
}

/* 新建子相册输入框样式 */
.new-folder-input {
	width: 100%;
	padding: 6px 10px;
	border: 1px solid #1971c2;
	border-radius: 4px;
	font-size: 0.9rem;
	margin-bottom: 8px;
}

.new-folder-actions {
	display: flex;
	gap: 5px;
	margin-bottom: 8px;
}

.new-folder-btn {
	padding: 4px 8px;
	border: none;
	border-radius: 3px;
	cursor: pointer;
	font-size: 0.8rem;
}

.confirm-btn {
	background: #1971c2;
	color: white;
}

.cancel-btn {
	background: #f8f9fa;
	border: 1px solid #dee2e6;
}
.deleteImages:not([disabled]) {
	color:red;
}

/* 微信登录模块的 */
#wxlogin{
	text-align: center;
    padding: 18px;
}


.imageList4upload {
position: relative;
    display: inline-block;
}
.imageList4upload .picAdd_icon {
    width: 100%;
}
.imageList4upload .add1:hover {
	border:1px dashed lightskyblue;
	cursor:pointer;
}
.imageList4upload .pic1 {
width: 168px;
    height: 168px;
    overflow: hidden;
    border: 1px dashed #CCC;
    border-radius: 5px;
    text-align: center;
    display: inline-block;
    position: relative;
    margin: 5px;
}