/* ===== Typecho 后台个人资料美化覆盖 ===== */

body {
    background: var(--cream);
}
.message.popup {
	z-index:999999
}
body .main {  
	padding: 80px 30px; 
	background: linear-gradient(180deg, #fff0f8 0%, #e0f5ee 100%);  
    position: relative;
	margin-top: 5rem;
}
body .main::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 100px;
    background: linear-gradient(180deg, var(--cream) 0%, transparent 100%);
}

/* 整体容器 */
.typecho-dashboard .typecho-page-main{
    display: inline-block;
}
.container:not(.typecho-dashboard) .typecho-page-main,
.typecho-page-main form[name="write_post"]{
    width: 100%;
    max-width: 1400px;
    margin: 0;
	display: flex;
    flex-direction: row;
    gap: 2rem;
}

/*
.typecho-page-main form[name="write_post"] p.mono,
*/
.typecho-page-main form[name="write_post"] #custom-field,
.typecho-page-main form[name="write_post"] #btn-preview,
.typecho-page-main form[name="write_post"] #btn-save{
	display: none;
}

/* 左侧信息卡片 */
.typecho-page-main .col-tb-3 {
    background: var(--cream);
    border-radius: 30px;
    padding: 2rem;
    display: flex;
    gap: 0.5rem;
    align-items: center;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
    min-width: 20rem;
}

.typecho-page-main .col-tb-3::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, transparent 0%, rgba(255, 155, 155, 0.1) 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: -1;
}

.typecho-page-main .col-tb-3:hover {
    box-shadow: 0 20px 60px rgba(93, 84, 117, 0.15);
}

.typecho-page-main .col-tb-3:hover::before {
    opacity: 1;
}
@media (max-width: 575px) {
    button[type="submit"] {
        width: 100%
    }
}

































/* 头像 */
.profile-avatar {
    width: 96px;
    height: 96px;
    border-radius: 50%;
    border: 3px solid #eef2ff;
    box-shadow: 0 6px 18px rgba(0,0,0,.08);
}

/* 用户名 */
.typecho-page-main .col-tb-3 h2 {
    font-size: 20px;
    margin: 12px 0 6px;
    color: #1f2937;
}

/* 信息文字 */
.typecho-page-main .col-tb-3 p {
    font-size: 13px;
    line-height: 1.6;
}

/* 右侧表单卡片 */



.typecho-content-panel section {
	background: var(--cream);
    border-radius: 30px;
    padding: 2rem;
    display: flex;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
    flex-direction: column;
}

.typecho-content-panel section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, transparent 0%, rgba(255, 155, 155, 0.1) 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: -1;
}

.typecho-content-panel section:hover {
    box-shadow: 0 20px 60px rgba(93, 84, 117, 0.15);
}

.typecho-content-panel section:hover::before {
    opacity: 1;
}

/* 标题 */
.typecho-content-panel h3 {
    font-size: 20px;
    margin: 0 0 20px;
    padding-left: 10px;
    border-left: 4px solid var(--coral);
    color: #d97b7b;
}

/* 每个表单项 */
.typecho-option {
    list-style: none;
    padding: 0;
    margin: 0 0 18px;
}

.typecho-option li {
    margin-bottom: 14px;
}

/* label */
.typecho-label {
    display: block;
    font-size: 17px;
    color: #374151;
    font-weight: normal !important;
    margin-bottom: 6px;
}

/* 输入框统一 */
.text,
input[type="text"],
input[type="url"],
input[type="password"] {
    width: 100%;
    padding: 10px 12px;
    border-radius: 10px;
    border: 1px solid #e5e7eb;
    background: #f9fafb;
    transition: all .2s ease;
    outline: none;
}

.text:focus,
input[type="text"]:focus,
input[type="url"]:focus,
input[type="password"]:focus {
    border-color: var(--coral);
    background: #fff;
    box-shadow: 0 0 0 3px rgb(255 155 155 / 15%);
}

/* 描述文字 */
.description {
    font-size: 12px;
    color: #9ca3af;
    margin-top: 6px;
    line-height: 1.5;
}

/* 按钮区 */
.typecho-option-submit {
    margin-top: 10px;
}

/* 按钮 */
.btn {
    box-shadow: 0 5px 20px rgba(255, 155, 155, 0.4);
    line-height: 1.5rem;
}

.btn:hover {
    background: var(--coral-hover);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 155, 155, 0.5);
}

/* 两栏间距优化 */
.col-tb-3 {
    width: 28%;
}

.col-tb-6 {
    width: 68%;
}

.typecho-content-panel {
    width: 100%;
}

/* 响应式 */
@media (max-width: 1024px) {
    .container:not(.typecho-dashboard) .typecho-page-main,
	.typecho-page-main form[name="write_post"] {
        margin: 20px auto;
		flex-direction: column;
		gap: 1.5rem;
    }

    .col-tb-3,
    .col-tb-6 {
        width: 100%;
    }
}



.typecho-page-main .col-tb-3 p.userid{
	border: 2px solid var(--coral-hover);
    padding: 0.2rem 0.4rem;
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    line-height: 1rem;
    color: var(--coral);
	cursor:default;
}




#lightbox{
    display:none;
    position:fixed;
    inset:0;
    background:rgba(0,0,0,.85);
    z-index:9999;
}

#lightbox img{
    position:absolute;
    top:50%;
    left:50%;
    transform:translate(-50%,-50%);
    max-width:90%;
    max-height:90%;
    border-radius:12px;
    background:#fff;
}

/* index.php */
.cat_refresh_domain_ul div{
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    margin: 0.5rem 0;
}
.cat_refresh_domain_ul input{
    width: calc(100% - 7rem);
    height: 2rem;
    padding: 1rem;
    border-radius: 5px;
    border: 1px solid #eee;
}
.zhuce_form{
	display: flex;
    flex-direction: column;
    align-items: center;
}
h3.cat_lll{
    justify-content: center;
    gap: 1rem;
    margin: 2rem;
}
h3.cat_lll a{
	color:#ff9b9b!important;
}

.link_sq_category_choose input[type="radio"]{
	display: none;
}
.link_sq_category_choose input[type="radio"] + span{
	position: relative;
}
.link_sq_category_choose input[type="radio"]:checked + span:after {
	content: '';
	position: absolute;
	width: 100%;
	height: 0.5rem;
	background: #f006;
	border-radius: 0.5rem;
	left: 0;
	bottom: 0.25rem;
}
.link_sq_part,
.link_sq_category_choose{
	display: flex;
	gap: 1rem;
	flex-direction: row;
	flex-wrap: wrap;
	justify-content: center;
    margin: 2rem;
}
.link_sq_part .item {
	display: flex;
	gap: 1rem;
	flex-direction: column;
	flex: 1;
}
.link_sq_part .item label{
	display: flex;
	gap: 0.5rem;
	align-items: center;
}

.link_sq_part input {
    height: 2rem;
    padding: 1rem;
    width: 100%;
    flex: 1;
    border-radius: 5px;
    border: 1px solid #f006;
}




.row [class*="col-"] section:not(:last-child){
    margin-bottom: 2rem;
}