/* 全站基础样式 */
:root {
    --text: #333333;
    --text-color: #0d6efd;
    --text-colors: rgba(13, 110, 253, 1.0);
	--text-tip: #DB003D;
    --text-btn: #ffffff;
    --primary: #ffffff;
    --secondary: #f8f9fa;
    --accent: #0d6efd;
    --accent-light: #3b82f6;
    --text-secondary: #6c757d;
    --green: #28a745;
    --greens: #1EAF3F;
    --orange: #FF4C23;
    --oranges: #FF2F00;
    --gradient: linear-gradient(135deg, #0d6efd 0%, #6f42c1 100%);
    --ggradient: linear-gradient(135deg, #1EAF3F 0%, #178E2C 100%);
    --rgradient: linear-gradient(135deg, #E01655 0%, #C531F5 100%);
    --card-bg: #ffffff;
    --icon-bg: linear-gradient(135deg, rgba(255, 31, 91, 0.9) 0%, rgba(231,6,222,0.80) 100%);
    --border-color: rgba(0, 0, 0, 0.1);
	--border: rgba(25,25,25,0.3) dotted 1px;
    --bgs: #f1f3f5;
    --form-bg: #e3f6ff;
    --bgjb: linear-gradient(135deg, #0c2361 0%, #1e3799 100%);
    --bodybg: #f5f7fa;
    --menu-bg: #0d6efd;
    --menu-bd: #0a58ca;
    --shadow: 0px 1px 3px rgba(0, 0, 0, 0.05);
	--shadows: 0px 1px 3px rgba(0, 0, 0, 0.1);
    --tag-bg: rgba(13, 110, 253, 0.1);
    --tag-text: #0d6efd;
}
.dark-theme {
    --text: #ffffff;
    --text-color: #6da0fa;
    --text-colors: rgba(93,139,244,1.0);
    --text-btn: #ffffff;
    --primary: #0a1128;
    --secondary: #13223e;
    --accent: #5d8bf4;
    --accent-light: #7da0fa;
    --text: #ffffff;
    --text-secondary: #b0b8d1;
    --green: #28a745;
    --greens: #1EAF3F;
    --orange: #FF4C23;
    --oranges: #FF2F00;
    --gradient: linear-gradient(135deg, #5d8bf4 0%, #9b5de5 100%);
    --ggradient: linear-gradient(135deg, #1EAF3F 0%, #178E2C 100%);
    --rgradient: linear-gradient(135deg, #E01655 0%, #C531F5 100%);
	--card-bg: #091b3e;
    --icon-bg: linear-gradient(135deg, rgba(255, 31, 91, 0.9) 0%, rgba(231,6,222,0.80) 100%);
    --border-color: rgba(255,255,255,0.05);
    --bgs: #03203a;
    --form-bg: #e3f6ff;
    --bgjb: linear-gradient(135deg, #0c2361 0%, #1e3799 100%);
	--bodybg: #091331;
    --menu-bg: #5d8bf3;
    --menu-bd: #2F6AF0;
    --shadow: 0px 1px 3px rgba(0, 0, 0, 0.1);
	--tag-bg: rgba(250,250,250,0.1);
	--tag-text: rgba(250,250,250,0.8);
}
/* 主题样式 */
.white-theme {
	--btn-color: rgb(255, 255, 255, 0.9);
    --text-color: rgb(58, 58, 58, 0.9);
    --text-colors: rgba(72,126,259,1.0);
    --text: rgb(51, 51, 51);
    --text-secondary: rgb(139, 139, 139, 0.98);
    --card-bg: rgb(252, 252, 252, 0.88);
	--card-bgs: rgb(0, 0, 0, 0.01);
    --bg: rgba(0, 0, 0, 0.05);
    --form-bg: #e3f6ff;
	--bodybg: #ffffff;
    --menu-bg: #5d8bf3;
    --menu-bd: #2F6AF0;
    --border-color: rgba(222, 226, 230, 0.5);
    --shadow: 0 3px 6px rgba(0, 0, 0, 0.0);
	--shadows: 0 1px 3px rgba(0, 0, 0, 0.1);
	--tag-bg: rgba(230,230,230,0.3);
	--tag-text: rgba(10,10,10,0.6);
}

/*body.white-theme #logo-image-container img {
  filter: 
    brightness(0)
    invert(26%)
    sepia(100%)
    saturate(0%)
    brightness(60%);
}*/
body.white-theme header {
  border-bottom: 1px solid var(--border-color);
}
body.white-theme .portfolio-category-section:hover {
  background: var(--card-bgs);
  box-shadow: var(--shadows);
}
*{padding: 0; margin: 0;}

.red-theme {
    --primary-color: rgba(238, 30, 9, 1);
    --secondary-color: rgba(192, 57, 43, 1);
    --background-color: rgba(254, 245, 244, 1);
    --card-bg: rgba(255, 255, 255, 1);
    --text-color: rgba(108, 30, 30, 1);
    --border-color: rgba(250, 219, 216, 1);
    --shadow: 0 4px 6px rgba(231, 76, 60, 0.1);
}

.green-theme {
    --primary-color: rgb(71, 210, 130, 1);
    --secondary-color: rgba(39, 174, 96, 1);
    --background-color: rgba(240, 247, 244, 1);
    --card-bg: rgba(255, 255, 255, 1);
    --text-color: rgba(69, 83, 52, 1);
    --border-color: rgba(213, 232, 225, 1);
    --shadow: 0 4px 6px rgba(46, 204, 113, 0.1);
}

.blue-theme {
    --primary-color: rgba(12, 156, 253, 1);
    --secondary-color: rgba(39, 128, 185, 1);
    --background-color: rgba(240, 248, 255, 1);
    --card-bg: rgba(255, 255, 255, 1);
    --text-color: rgba(35, 66, 98, 1);
    --border-color: rgba(214, 234, 248, 1);
    --shadow: 0 4px 6px rgba(52, 152, 219, 0.1);
}

.purple-theme {
    --primary-color: rgba(155, 89, 182, 1);
    --secondary-color: rgba(142, 68, 173, 1);
    --background-color: rgba(248, 245, 255, 1);
    --card-bg: rgba(255, 255, 255, 1);
    --text-color: rgba(102, 58, 106, 1);
    --border-color: rgba(232, 224, 245, 1);
    --shadow: 0 4px 6px rgba(155, 89, 182, 0.1);
}

.pink-theme {
    --primary-color: rgb(255, 125, 169);
    --secondary-color: rgb(210, 86, 135);
    --background-color: rgba(255, 245, 248, 1);
    --card-bg: rgba(255, 255, 255, 1);
    --text-color: rgba(188, 63, 128, 1);
    --border-color: rgba(248, 187, 217, 1);
    --shadow: 0 4px 6px rgba(233, 30, 99, 0.1);
}

.orange-theme {
    --primary-color: rgb(253, 131, 23);
    --secondary-color: rgb(234, 117, 40);
    --background-color: rgb(255, 215, 200);
    --card-bg: rgb(253, 238, 231);
    --text-color: rgb(239, 68, 0, 1);
    --border-color: rgba(245, 195, 120, 1);
    --shadow: 0 4px 6px rgba(230, 126, 34, 0.1);
}

.yellow-theme {
    --primary-color: rgba(241, 196, 15, 1);
    --secondary-color: rgba(239, 156, 18, 1);
    --background-color: rgb(253, 252, 226, 1);
    --card-bg: rgb(255, 253, 239);
    --text-color: rgba(39, 62, 80, 1);
    --border-color: rgba(252, 253, 208, 1);
    --shadow: 0 4px 6px rgba(251, 196, 15, 0.1);
}

.brown-theme {
    --primary-color: rgba(181, 125, 82, 1);
    --secondary-color: rgba(109, 76, 65, 1);
    --background-color: rgb(80, 55, 39, 1);
    --card-bg: rgba(100, 80, 52, 1);
    --text-color: rgba(235, 207, 171, 1);
    --border-color: rgba(50, 38, 33, 0.5);
    --shadow: 0 4px 6px rgba(39, 31, 28, 0.5);
    --menu-bg: #A67E51;
    --menu-bd: #B89D4C;
}

.black-theme {
    --primary-color: rgba(29, 29, 29, 1);
    --secondary-color: rgba(50, 62, 80, 1);
    --background-color: rgba(29, 29, 29, 1);
    --card-bg: rgba(36, 36, 36, 1);
    --text-color: rgba(236, 239, 239, 1);
    --border-color: rgba(85, 85, 85, 0.3);
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.5);
}

/* 重置与基础样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    padding-top: 3rem;
    background: var(--bodybg);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
}
#body h2#portfolio-title {
    margin: 0 0 3rem;
}
#logo-images {
  max-width: 11rem;
  position: relative;
  top: -1px;
}
div#logo-image-container {
    margin-right: 1rem;
    overflow: hidden;
}	
#footer-logo-images {
  min-width: 15rem;
  position: relative;
  top: 8px;
  left: -10px;
}

a {
    color: var(--text);
    text-decoration: none;
}
ul {
    list-style: none;
}
input:focus, textarea:focus {
    outline: #007bff solid 1px;
}
.none {
    display: none;
}
.no-content-message {
    text-align: center;
    color: var(--text-color);
    opacity: 0.8;
}
#portfolio-title button.edit-btn, #contact-title button.edit-btn {
    right: auto;
}
#logo-text {
  display: none;
}
#admin #logo-text {
  display: none;
}
.login {
    max-width: 600px;
    margin: 0rem auto;
}
.login~ #footer, .login~ #contact{
	display: none;
}
.login .login-container p.copy-tip a {
    color: var(--text-colors);
}

/* 注册页面特定样式 */
.register .form-group {
    margin-bottom: 1rem;
}

.register .btn-login {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
}

.register .btn-login:hover {
    background: linear-gradient(135deg, #218838 0%, #1ba87e 100%);
}

.alert-success {
    background-color: #d4edda;
    border-color: #c3e6cb;
    color: #155724;
    margin-top: 1rem;
}


/* 通用工具类 */
.fl, .flw {
    display: flex;
    align-items: center;
    justify-content: flex-start;
}
.flt {
    display: flex;
    justify-content: flex-start;
    align-items: baseline;
}
.btnbox {
    display: inline-block;
    position: relative;
}

/* 按钮样式 */
.btn {
    display: inline-block;
    background: var(--gradient);
    color: white;
    padding: 0.5rem 1.2rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: transform 0.3s, box-shadow 0.3s;
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

.btn:hover {
    background: var(--accent);
    transform: translateY(-1px);
    box-shadow: 0 5px 10px rgba(93, 139, 244, 0.3);
}

.btn:active {
    transform: translateY(1px);
    box-shadow: 0 2px 5px rgba(93, 139, 244, 0.3);
}

.contact-box .btn.inquiry-btn {
  color: var(--text-btn);
  margin: 1rem auto;
  min-width: 12rem;
  display: block;
  background: var(--rgradient);
  padding: 1rem 5rem;
  border-radius: 3rem;
}

/*主导航居中*/
ul.nav {
    position: initial;
	margin-top: -3px;
}

/* 表单样式 */
.contact-form {
    min-width: 600px;
    margin-left: 11rem;
}

.contact-form .form-group select, 
.contact-form .form-group input {
    width: 100%;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    height: 3rem;
    background: var(--secondary);
    color: rgba(255,255,255,0.9);
    font-size: 1rem;
}

.form-group {
    position: relative;
    margin-bottom: 0.25rem;
}
.form-group span.required {
    top: 20px;
    position: absolute;
    right: -10px;
    color: #f90;
}
.form-group label {
    margin-bottom: 0.2rem;
}
span.tiptext {
    display: block;
    font-size: 0.875rem;
    margin-top: -10px;
    color: #999;
}

.form-control {
    width: 100%;
    padding: 1rem;
    background: var(--form-bg);
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 5px;
    color: var(--text);
    font-size: 1rem;
}
.form-control:focus {
    outline: none;
    border-color: var(--accent);
}
.dynamic-form-container .btn {
  color: var(--btn-color);
	margin-top: 1rem;
}
textarea.form-control {
    min-height: 150px;
    resize: vertical;
}

/* 模态框样式 */
.inquiry-modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
}

.inquiry-modal .modal-content {
    background-color: white;
    margin: 10% auto 0;
    padding: 20px;
    border-radius: 8px;
    width: 500px;
    max-width: 90%;
    max-height: 80vh;
    overflow-y: auto;
	transform: translateY(0%);
}

.modal-header {
    color: #5d8bf4;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #dee2e6;
}

.close-modal {
    font-size: 24px;
    cursor: pointer;
    background: none;
    border: none;
}

.inquiry-btn {
    background: #007bff;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    margin-top: 10px;
}

.inquiry-btn:hover {
    background: #0056b3;
}

/* 布局容器 */
.container {
    max-width: 1800px;
    margin: 0 auto;
}

section {
    margin: 0rem 0rem 1.5rem;
    padding: 3.5rem 0rem 3rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.section-title {
    font-size: 2.25rem;
    margin: 1rem 0;
    text-align: center;
    position: relative;
	font-weight: normal;
}

.section-title::after {
    content: '';
    display: block;
    width: 5rem;
    height: 4px;
    background: var(--gradient);
    margin: 1rem auto;
    border-radius: 2px;
}

/* 导航栏 */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: var(--card-bg);
    backdrop-filter: blur(10px);
    z-index: 1000;
    padding: 1.3rem 1.5rem 1.2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: var(--shadow);
    transform: translateY(0);
    transition: transform 0.3s ease;
}

header.hidden {
    transform: translateY(-100%);
}

body#admin .logo {
    margin-right: 0rem;
    top: -0.3rem;
}

body#admin #header-logo-link, body#admin #footer-logo-link {
    z-index: -1 !important;
}
.nav > li > a {
    margin: 0 1.25rem;
}
.nav ul {
    top: 2.5rem;
    left: 0.5rem;
}

.logo {
    font-size: 1.8rem;
    font-weight: 700;
    background: var(--gradient);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    display: flex;
    align-items: center;
    margin-top: 0rem;
    position: relative;
}

.logo span#logo-text {
    position: relative;
    color: var(--text);
    margin-top: 0px;
    font-size: 2.2rem;
    font-weight: normal;
    height: 2rem;
    line-height: 2rem;
}

.logo img#logo-image {
    max-width: 158px;
}

.nav-menu {
    display: flex;
    list-style: none;
}

.nav-menu li {
    position: relative;
    margin-left: 2rem;
}

.nav-menu a {
    color: var(--text);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
    padding: 0.5rem 0;
    display: block;
}

.nav-menu a:hover {
    color: var(--accent-light);
}

/* 下拉菜单 */
.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background-color: var(--secondary);
    min-width: 200px;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.4s ease;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    border-radius: 8px;
    z-index: 1001;
}

.dropdown-menu.active {
    max-height: 500px;
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu li {
    margin: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.dropdown-menu li:last-child {
    border-bottom: none;
}

.dropdown-menu a {
    padding: 0.8rem 1.5rem;
    display: block;
    transition: background 0.3s;
}

.dropdown-menu a:hover {
    background-color: rgba(93, 139, 244, 0.1);
}

.nav-menu li:hover .dropdown-menu {
    max-height: 500px;
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* 首页轮播图 */
section#home {
    padding: 0rem;
    min-height: 100vh;
    display: block;
}

section#home .slider-container {
    max-width: 100%;
    height: 100vh;
}

.slider-container {
    position: relative;
    max-width: 1200px;
    height: 500px;
    margin: 0 auto;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.slider {
    position: relative;
    width: 100%;
    height: 100%;
}

.slide {
    position: absolute !important;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.8s ease, transform 0.8s ease;
    background-size: cover;
    background-position: center;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.slide.active {
    opacity: 1;
    z-index: 1;
}

.slide img {
    left: 0;
    top: 0;
    display: block;
    position: absolute;
    z-index: 99;
}

.slider-box {
    margin-top: 20%;
    position: absolute;
    height: 180px;
    width: 100%;
    z-index: 999;
}

/* 轮播导航按钮 */
.slider-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    border: none;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
}

.slider-nav:hover {
    background: rgba(255, 255, 255, 0.5);
}

.slider-nav.prev {
    left: 50px;
}

.slider-nav.next {
    right: 50px;
}

.slider-nav::before {
    content: '';
    width: 15px;
    height: 15px;
    border-top: 3px solid #fff;
    border-right: 3px solid #fff;
}

.slider-nav.prev::before {
    transform: rotate(-135deg);
    margin-left: 5px;
}

.slider-nav.next::before {
    transform: rotate(45deg);
    margin-right: 5px;
}

/* 轮播指示器 */
.slider-indicators {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}

.indicator {
    width: 40px;
    height: 5px;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 3px;
    cursor: pointer;
    overflow: hidden;
    transition: all 0.3s ease;
}

.indicator:hover {
    background: rgba(255, 255, 255, 0.6);
}

.indicator.active {
    background: rgba(255, 255, 255, 0.9);
}

.indicator-progress {
    height: 100%;
    width: 0%;
    background: #fff;
    transition: width linear;
}

.indicator.active .indicator-progress {
    background: rgba(235,151,30,0.90);
}

/* 圆形进度 */
.circular-progress {
    position: absolute;
    bottom: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    z-index: 10;
}

.progress-ring {
    transform: rotate(-90deg);
}

.progress-ring-circle {
    stroke-dasharray: 151;
    stroke-dashoffset: 151;
    transition: stroke-dashoffset 0.1s linear;
}

.progress-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 14px;
    font-weight: bold;
}

/* 联系区域 */
#contact {
    margin-bottom: 0;
    background-color: var(--card-bg);
    padding-bottom: 3.9rem;
    box-shadow: var(--shadow);
}

.contact-content {
    display: flex;
    gap: 3rem;
}

.contact-info {
    display: flex;
    margin-top: 1rem;
    justify-content: space-between;
    align-items: center;
    min-height: 10rem;
}

.contact-box {
    max-width: 1360px;
    margin: 1rem auto;
}

.contact-item {
    display: flex;
    align-items: baseline;
    margin-bottom: 2rem;
}

.contact-icon {
    overflow: hidden;
    width: 24px;
    height: 28px;
    font-size: 0;
    border-radius: 0;
    display: flex;
    align-items: center;
    margin-right: 1rem;
    flex-shrink: 0;
    color: transparent;
}

.contact-icon:hover {
  color: var(--accent-light);
}

.contact-icon i.bi {
    color: var(--accent);
    position: relative;
    font-size: 1.5rem;
    top: 0px;
}

.contact-details h3 {
    font-size: 1.25rem;
    margin-bottom: 0.2rem;
}

.contact-details p {
    color: var(--text-secondary);
}

/* 社交链接 */
.social-links {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--secondary);
    color: var(--text);
    transition: all 0.3s;
}

.social-links a:hover {
    background: var(--gradient);
    transform: translateY(-5px);
}

/* 页脚 */
footer {
    display: flex;
    padding: 5rem 3.0rem 6rem;
    justify-content: space-between;
    align-items: flex-start;
    border-top: var(--border-color) solid 1px;
}

#footer span.footer-company {
    color: var(--text-secondary);
    max-width: 410px;
    display: block;
}

.copybox {
    border-top: var(--border-color) solid 1px;
    text-align: center;
    padding: 2rem 1rem;
}

.support {
    margin-top: -2rem;
    text-align: center;
    padding-bottom: 2rem;
}

.footer_logo {
    position: relative;
    margin-bottom: 1rem;
}

.footer-logo-image-container {
    max-width: 120px;
}

.footer-logo-image-container img {
    width: 100px;
    height: auto;
}

.footer-content {
    margin: 0 5rem 1rem 5rem;
}


.footer_right {
    margin-top: 1rem;
    display: flex;
    justify-content: flex-end;
}

.footer_right div#footer_icon2 {
    margin-right:  6rem;
}

.footer-copyright {
    margin-right: 1rem;
}

.footer-company, .footer-support {
    font-size: 0.875rem;
    color: var(--accent-light);
}

.footer-qr1-text, .footer-qr2-text {
    font-size: 0.875rem;
    text-align: center;
    line-height: 2em;
}

.footer-qr1-image, .footer-qr2-image {
    width: 105px;
}

.footer_right>div>p {
    font-size: 0.875rem;
    margin-top: 0.25rem;
    letter-spacing: 1px;
}

div.footer-content a {
    color: #559ae5;
}

.footer_right>div {
    text-align: center;
    margin-right: 3rem;
}

.copyright {
    color: var(--text-secondary);
    font-size: 0.875rem;
}

/* 回到顶部按钮 */
.back-to-top {
    position: fixed;
    bottom: 1rem;
    right: 0.5rem;
    width: 3rem;
    height: 3rem;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 999;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.back-to-top.active {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(93, 139, 244, 0.3);
}

.back-to-top svg.icon {
    fill: var(--text-secondary);
}

.back-to-top:hover svg.icon {
    fill: var(--text-colors);
}

.back-to-top .bi {
    font-size: 2.0rem;
    position: relative;
    width: 100%;
    height: 100%;
}

.back-to-top .bi-arrow-up-short::before {
    top: 3px;
    position: absolute;
    left: 3px;
}

/* 编辑模式样式 */
.editable {
    position: relative;
    min-height: 20px;
    min-width: 20px;
}

.edit-btn {
    position: absolute;
    top: -8px;
    right: -8px;
    background: #5d8bf4;
    color: white;
    border: none;
    border-radius: 3px;
    padding: 4px 8px;
    cursor: pointer;
    font-size: 11px;
    z-index: 1000;
    opacity: 0;
    line-height: 1.2rem;
    transition: opacity 0.3s ease;
    white-space: nowrap;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.editable:hover .edit-btn {
    opacity: 1;
}

.editable.editing {
    box-shadow: 0 0 0 2px rgba(93, 139, 244, 0.7);
    border-radius: 4px;
    background: rgba(93, 139, 244, 0.1);
    pointer-events: none;
}

.edit-btn.link-btn {
    background: #28a745 !important;
    top: 10px;
    left: 10px;
    opacity: 1;
    padding: 4px 6px;
    width: 25px;
    z-index: 1002;
}

.edit-btn.link-btn:hover {
    background: #218838 !important;
}

/* 编辑表单 */
.edit-form {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -51%);
    background: white;
    padding: 16px 28px;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    z-index: 10000;
    color: #333;
    width: 90%;
    max-width: 520px;
    max-height: 88vh;
    overflow-y: auto;
}

.edit-form.dragging {
    transform: none !important;
    transition: none !important;
}

.edit-form h3 {
    font-size: 1.5rem;
    margin-top: 0;
    margin-bottom: 15px;
    color: #0a1128;
    border-bottom: 2px solid #5d8bf4;
    padding-bottom: 10px;
}

.edit-form input,
.edit-form textarea,
.edit-form select {
    width: 100%;
    padding: 6px 8px !important;
    margin-bottom: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-sizing: border-box;
    font-family: inherit;
}

.edit-form input#edit-icon-class {
    margin-bottom: 0;
}

.edit-form textarea {
    line-height: 1.2;
    max-height: 56px;
    resize: vertical;
    margin-bottom: 0;
}

.edit-form .form-group:last-of-type textarea {
    margin-bottom: 1rem;
}

.edit-form  textarea#edit-content {
    min-height: 52px;
    max-height: 120px;
}

.edit-form-buttons {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    margin-bottom: 10px;
    margin-top: 10px;
}

.form-close-btn {
    position: absolute;
    right: 0px;
    top: 2px;
    cursor: pointer;
    font-size: 35px;
    color: rgba(159,159,159,1.00);
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    border-radius: 50%;
    transition: 0.2s;
    user-select: none;
    background-color: transparent;
    padding-bottom: 5px;
    justify-content: center;
}

.edit-form button {
    background: #5d8bf4;
    color: white;
    border: none;
    padding: 10px 30px;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 500;
    transition: background 0.3s;
    margin-left: 0.5rem;
}

.edit-form button:hover {
    background: #4a7ae0;
}

.edit-form button.cancel {
    background: #6c757d;
}

.edit-form button.cancel:hover {
    background: #5a6268;
}

/* 元素链接层 */
.element-link {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: block;
    text-decoration: none;
    z-index: 5;
    background: transparent;
}

/* 登录状态下链接层置于顶层 */
body#user .element-link, body#admin .element-link {
    z-index: 3 !important;
    pointer-events: auto !important;
}

/* 管理员样式 */
.admin-toolbar {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: linear-gradient(135deg, #f00 0%, #9b5de5 100%);
    color: white;
    padding: 1px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 10000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    border-top-right-radius: 5px;
    gap: 10px;
}

.admin-toolbar span {
    font-weight: 600;
}

.admin-toolbar button {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 5px 15px;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s;
    margin-left: 1rem;
}

.admin-toolbar button:hover {
    background: rgba(255, 255, 255, 0.3);
}

.admin-toolbar a {
    color: rgba(255,255,255,0.9);
    margin-left: 1rem;
}

/* 合作伙伴控制 */
.partner-controls {
    position: absolute;
    top: 5px;
    right: 5px;
    display: flex;
    gap: 5px;
    z-index: 1002;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.partner-logo:hover .partner-controls {
    opacity: 1;
}

.partner-delete-btn {
    background: #e74c3c;
    color: white;
    border: none;
    border-radius: 3px;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 12px;
    transition: background 0.3s;
    margin-right: 1px;
    margin-top: 0px;
}

.partner-delete-btn:hover {
    background: #c0392b;
}

.partner-edit-btn {
    background: #3498db;
    color: white;
    border: none;
    border-radius: 3px;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 12px;
    transition: background 0.3s;
}

.partner-edit-btn:hover {
    background: #2980b9;
}

.partner-add-container {
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px dashed #5d8bf4;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.partner-add-container:hover {
    background: rgba(93, 139, 244, 0.1);
    border-color: #7da0fa;
}

.partner-add-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    padding: 20px;
}

/* 拼图验证码 */
#puzzle-captcha {
    margin: 20px 0;
}

.captcha-container {
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    padding: 0 12px 10px;
    background: var(--form-bg);
}

.captcha-image {
    position: relative;
    width: 100%;
    height: 0px;
    background: #f8f9fa;
    border-radius: 5px;
    margin-bottom: 0px;
    overflow: hidden;
    border: 1px solid #ccc;
    opacity: 0;
}

.captcha-bg {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    filter: brightness(0.9);
}

.puzzle-gap {
    position: absolute;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.3);
    border: 2px dashed #666;
    border-radius: 6px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
    z-index: 5;
    box-sizing: border-box;
}

.puzzle-piece {
    position: absolute;
    width: 40px;
    height: 40px;
    background: var(--accent);
    border-radius: 6px;
    cursor: move;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    left: 20px;
    top: 0;
    transition: none;
    box-sizing: border-box;
    transform: translateY(0);
}

.puzzle-piece.dragging {
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.6);
    transform: translateY(0) scale(1.05);
    z-index: 15;
}

.puzzle-gap.correct {
    border: 2px solid #28a745;
    background: rgba(40, 167, 69, 0.2);
    box-shadow: inset 0 0 10px rgba(40, 167, 69, 0.3), 0 0 15px rgba(40, 167, 69, 0.4);
}

.captcha-slider {
    margin-top: 15px;
}

.slider-track {
    position: relative;
    width: 100%;
    height: 40px;
    background: #f1f1f1;
    border-radius: 20px;
    border: 1px solid #ddd;
    overflow: hidden;
}

.slider-thumb {
    position: absolute;
    top: 0;
    left: 0;
    width: 40px;
    height: 40px;
    background: #5d8bf4;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    cursor: grab;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    z-index: 10;
}

.slider-text {
    display: block;
    text-align: center;
    margin-top: 10px;
    color: var(--green);
    font-size: 14px;
}

.captcha-success {
    border-color: #28a745 !important;
}

.captcha-success .slider-track {
    background: rgba(40, 167, 69, 0.1);
}

/* 页面管理 */
.page-manager-actions {
    margin-bottom: 20px;
}

.page-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    margin-bottom: 10px;
    background: #f9f9f9;
}

.page-info h4 {
    margin: 0 0 5px 0;
    color: #333;
    font-size: 1.2rem;
}

.page-info p {
    margin: 0;
    color: #666;
    font-size: 14px;
}

.page-actions button {
    color: #fff;
    margin-left: 8px;
    padding: 2px 10px;
    border: 0px solid #ddd;
    border-radius: 5px;
    background: #007bff;
    cursor: pointer;
}

.page-actions button.page-delete-btn {
    background: #F95211;
}

.page-actions button.page-delete-btn:hover {
    background: #DF5018;
}

.page-actions button:hover {
    background: #0077F8;
}

.page-file-info {
    border: 1px solid #ddd;
    background: #f9f9f9;
    color: #f30;
    display: flex;
    align-items: flex-end;
}

.page-title {
    width: 50%;
    position: relative;
    font-size: 1.0rem;
    color: #888;
    left: 5px;
    font-weight: normal;
    z-index: 9;
    top: 16px;
}

/* 管理员模态框 */
.admin-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 10001;
    display: flex;
    justify-content: center;
    align-items: center;
}

.admin-modal .modal-content {
    background: white;
    padding: 20px;
    border-radius: 5px;
    max-width: 1000px;
    width: 90%;
    max-height: 80vh;
    min-height: 600px;
    overflow-y: auto;
    margin: 3rem auto;
}

.admin-btn {
    background: #007bff;
    color: white;
    border: none;
    padding: 8px 12px;
    border-radius: 3px;
    cursor: pointer;
    font-size: 12px;
}

.admin-btn:hover {
    background: #0056b3;
}

/* 登录页面 */
body.login {
    background: linear-gradient(135deg, #5282c5 0%, #ff72a0 100%);
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 0 3rem;
}

.login-container {
    min-width: 520px;
    margin: 120px auto 100px;
    padding: 30px 50px 50px;
    background: rgba(255, 255, 255, 0.98);
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
}

.login-container p.copy-tip {
    position: relative;
    top: 1rem;
    color: #999;
    text-align: center;
    font-size: 0.875rem;
}

.login-header {
    text-align: center;
    margin-bottom: 30px;
}

.login-header img#logo-image {
    margin-top: 1rem;
    max-width: 320px;
    margin-bottom: 0px;
}

.login-header .text-muted {
    font-size: 1.25rem;
    color: #6c757d !important;
}

.login-header h2 {
    color: #f00;
    margin-bottom: 5px;
}

.login-header p {
    color: #666;
}

.login .form-control {
    color: var(--text);
    padding: 10px 15px;
    border-radius: 5px;
    margin-bottom: 20px;
    background: var(--form-bg);
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.btn-login {
    width: 100%;
    padding: 12px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    transition: all 0.3s;
}

.btn-login:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.btn-login:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.login .captcha-area {
    margin: 20px 0;
}

.login #loginBtn {
    display: none;
}

.login #loginBtn.visible {
    display: block;
}

.login .alert {
    display: none;
    margin-top: 20px;
}

.form-group #username {
    min-height: 3rem;
}

.alert {
    margin-top: 15px;
    display: none;
}

/* 密码验证页面 */
body.pwd { 
    background: #f5f5f5; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    height: 100vh; 
    margin: 0; 
}

.pwd h2 {
    color: #f90;
}

.pwd .password-container { 
    background: white; 
    padding: 30px 30px 60px; 
    border-radius: 8px; 
    box-shadow: 0 2px 10px rgba(0,0,0,0.1); 
    text-align: center; 
    max-width: 400px;
    width: 90%;
}

.pwd .password-input { 
    margin: 20px 0; 
}

.pwd input[type="password"] { 
    padding: 12px; 
    border: 1px solid #ddd; 
    border-radius: 4px; 
    width: 100%;
    box-sizing: border-box;
    font-size: 16px;
}

.pwd button { 
    padding: 12px 24px; 
    background: #007bff; 
    color: white; 
    border: none; 
    border-radius: 4px; 
    cursor: pointer;
    font-size: 16px;
    width: 100%;
}

.pwd button:hover {
    background: #0056b3;
}

.pwd .error { 
    color: #dc3545; 
    margin-top: 10px; 
    padding: 8px;
    background: #f8d7da;
    border: 1px solid #f5c6cb;
    border-radius: 4px;
}

.pwd .page-name {
    color: #007bff;
    font-weight: bold;
}



/* 管理员性能面板 */
.admin-performance-panel {
    color: #999;
    margin: 20px 0;
    padding: 15px;
    border: 1px solid #999;
    border-radius: 5px;
    font-size: 13px;
    opacity: 0.6;
}

.admin-performance-panel h4 {
    margin-top: 0;
    color: #495057;
}

.performance-details ul {
    margin: 10px 0;
    padding-left: 20px;
}


/* 导航栏按钮区域 */
header .hrbtn {
    padding-right: 0.3rem;
    text-align: right;
    margin-bottom: 0px;
    width: 16rem;
    display: flex;
    justify-content: flex-end;
    flex-wrap: nowrap;
}

header .hrbtn a, header .hrbtn button.theme-toggle {
    display: flex;
    align-items: center;
    color: var(--text);
    transition: all 0.3s ease;
}

header .hrbtn a:hover, header .hrbtn button:hover {
    color: var(--text-colors);
}

header .hrbtn #search-icon, header .hrbtn #themeToggle {
    margin-right: 1.6rem;
}

header .hrbtn svg {
    margin-right: 3px;
    fill: var(--text);
    transition: all 0.3s ease;
}

header .hrbtn a:hover svg, header .hrbtn button:hover svg {
    fill: var(--text-colors);
}

header .hrbtn a.portfolio-class, 
header .hrbtn a.portfolio-add {
    padding: 0 0.8rem;
    line-height: 1.8rem;
    font-weight: normal;
    max-width: 6rem;
    text-align: center;
}

header .hrbtn a.portfolio-add {
    margin-left: 0.1rem;
    background: #20830C;
}

#admin header a.portfolio-class, 
#admin header a.portfolio-add {
    display: none;
}

#admin header a#portfolio-class, 
#admin header a#portfolio-add {
    display: block;
}

#admin .portfolio-actions {
    margin-top: -1rem;
    margin-bottom: 1rem;
}

/*换肤*/
button#themeToggle {
    background: transparent;
    border: 0;
    padding: 0;
}

.theme-options {
    position: absolute;
    top: 100%;
    right: 5px;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 10px;
    margin-top: 3px;
    box-shadow: var(--shadow);
    display: none;
    flex-direction: column;
    gap: 1px;
    min-width: 180px;
    z-index: 9999;
}

.theme-options.show {
    display: flex;
}

.theme-option {
    padding: 8px 12px;
    border-radius: 4px;
    cursor: pointer;
    border: none;
    background: transparent;
    text-align: left;
    color: var(--text-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.theme-option:hover {
    background-color: rgba(96,101,203,0.2);
}

.theme-option .checkmark {
    display: none;
    color: var(--primary-color);
    font-weight: bold;
}

.theme-option.active .checkmark {
    display: inline-block;
}

/*图标样式*/
.link-icon {
    width: 26px;
    height: 26px;
    padding-right: 3px;
    border-radius: 5px;
    background: linear-gradient(135deg, rgb(106, 17, 203) 0%, rgb(37, 117, 252) 100%);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1rem;
    margin-right: 5px;
    flex-shrink: 0;
}

.save-success-message {
    position: fixed;
    top: 30%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: #4CAF50;
    color: white;
    padding: 10px 25px;
    border-radius: 5px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 10000;
    font-size: 16px;
    font-weight: 500;
    animation: fadeIn 0.3s ease-in-out, fadeOut 0.3s ease-in-out 2.7s;
    max-width: 300px;
    word-wrap: break-word;
}

/* 不同字母/字符的背景色变化 */
.link-icon:nth-child(1) { background: linear-gradient(135deg, #6a11cb 0%, #2575fc 100%); }
.link-icon:nth-child(2) { background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%); }
.link-icon:nth-child(3) { background: linear-gradient(135deg, #f46b45 0%, #eea849 100%); }
.link-icon:nth-child(4) { background: linear-gradient(135deg, #7F00FF 0%, #E100FF 100%); }
.link-icon:nth-child(5) { background: linear-gradient(135deg, #00c9ff 0%, #92fe9d 100%); }
.link-icon:nth-child(6) { background: linear-gradient(135deg, #ff7e5f 0%, #feb47b 100%); }
.link-icon:nth-child(7) { background: linear-gradient(135deg, #1d976c 0%, #93f9b9 100%); }
.link-icon:nth-child(8) { background: linear-gradient(135deg, #ff416c 0%, #ff4b2b 100%); }
.link-icon:nth-child(9) { background: linear-gradient(135deg, #4A00E0 0%, #8E2DE2 100%); }

/* 循环使用颜色 */
.link-icon:nth-child(9n+1) { background: linear-gradient(135deg, #6a11cb 0%, #2575fc 100%); }
.link-icon:nth-child(9n+2) { background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%); }
.link-icon:nth-child(9n+3) { background: linear-gradient(135deg, #f46b45 0%, #eea849 100%); }
.link-icon:nth-child(9n+4) { background: linear-gradient(135deg, #7F00FF 0%, #E100FF 100%); }
.link-icon:nth-child(9n+5) { background: linear-gradient(135deg, #00c9ff 0%, #92fe9d 100%); }
.link-icon:nth-child(9n+6) { background: linear-gradient(135deg, #ff7e5f 0%, #feb47b 100%); }
.link-icon:nth-child(9n+7) { background: linear-gradient(135deg, #1d976c 0%, #93f9b9 100%); }
.link-icon:nth-child(9n+8) { background: linear-gradient(135deg, #ff416c 0%, #ff4b2b 100%); }
.link-icon:nth-child(9n+9) { background: linear-gradient(135deg, #4A00E0 0%, #8E2DE2 100%); }

/* 适配编辑模式 */
.website-item.editing .link-icon {
    pointer-events: none;
}

/* 编辑表单中的图标上传区域 */
.edit-form input#website-edit-icon {
    position: absolute;
    opacity: 0;
    height: 100%;
}

.icon-upload-area {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 10px;
    background-color: #f8f9fa;
}

.icon-upload-area #website-edit-icon-btn {
    position: absolute;
    right: 0;
    padding: 10px 12px;
    background: #adb5bd;
}

.icon-upload-btn {
    padding: 10px 15px;
    background-color: #f0f0f0;
    border: 1px dashed #ccc;
    border-radius: 5px;
    cursor: pointer;
    text-align: center;
    transition: all 0.3s ease;
}

.icon-upload-btn:hover {
    background-color: #e8e8e8;
    border-color: #aaa;
}

.icon-preview {
    min-height: 49px;
    border: 1px solid #ddd;
    border-radius: 5px;
    padding: 12px 0 0 10px;
}

.icon-preview-empty {
    color: #999;
    padding: 0;
    font-style: italic;
}

.icon-preview-content {
    position: relative;
    display: inline-block;
}

.icon-preview-img {
    max-width: 32px;
    max-height: 32px;
    display: block;
}

#website-edit-form .icon-remove-btn, #search-website-edit-form .icon-remove-btn {
    display: flex;
    position: absolute;
    top: -8px;
    right: -16px;
    width: 20px;
    height: 20px;
    background-color: #ff4444;
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    font-size: 20px;
    padding: 0px 10px 3px;
    align-items: center;
    justify-content: center;
}

#website-edit-form #website-edit-icon-bg-color, #search-website-edit-form #website-edit-icon-bg-color {
    position: absolute;
    width: 78px !important;
    height: 37px !important;
    border: 0;
    top: 1px;
    cursor: pointer;
    right: 1px;
}

.icon-remove-btn:hover {
    background-color: #ff0000;
}

/* 颜色选择器样式 */
.color-picker-container {
    position: relative;
    display: flex;
    align-items: center;
    gap: 10px;
}

#website-edit-form .color-presets, #search-website-edit-form .color-presets {
    display: flex;
    flex-wrap: nowrap;
    gap: 5px;
    margin: 0px 0 16px;
    justify-content: space-between;
}

#website-edit-form textarea, #search-website-edit-form textarea {
    max-height: 40px;
    resize: vertical;
    margin-bottom: 0;
    line-height: 26px;
}

#website-edit-form .edit-form-buttons, #search-website-edit-form .edit-form-buttons {
    margin-top: 0;
}

#website-edit-form .edit-form-buttons button, #search-website-edit-form .edit-form-buttons button {
    padding: 6px 30px;
}

#website-edit-form h3, #search-website-edit-form h3 {
    line-height: 2.25rem;
}

.edit-form .color-preset-btn {
    width: 32px;
    height: 30px;
    border: 1px solid #fff;
    border-radius: 3px;
    cursor: pointer;
    padding: 0;
    margin: 0;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.color-preset-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.edit-form .color-presets .color-preset-btn:last-of-type {
    background: url(../image/transparent.svg) -2px -2px no-repeat;
    width: 30px;
    height: 30px;
    border: 1px solid #ddd;
}

.edit-form .color-presets .color-preset-btn:nth-last-of-type(3) {
    border: 1px solid #ddd;
    width: 30px;
    height: 30px;
}

.tip-text {
    font-size: 12px;
    color: #f90;
    margin-top: 5px;
}

.link-edit-group .tip-text {
    margin-top: -5px;
}

/*底部菜单*/
.footer-links {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    position: relative;
    top: 1rem;
    margin-right: 0;
}

.footer-links h3 {
    font-weight: bold;
    font-size: 1.25rem;
    color: var(--accent);
    line-height: 2.0rem;
}

.footer-links ul {
    padding-left: 1px;
}

.footer-links ul li a {
    font-size: 0.875rem;
    display: inline-block;
    margin-right: 1rem;
    margin-bottom: 0.2rem;
    color: var(--text-secondary);
}

.footer-links ul li a:hover {
    color: var(--accent-light);
}

.footer-links .footer-link-group {
    text-align: left;
    margin-right: 6rem;
    margin-top: -3px;
}

.footer-links i {
    margin-right: 8px;
    font-size: 0.9em;
    opacity: 0.8;
}

.footer-links h4 i {
    margin-right: 10px;
    font-size: 1.1em;
}

/* 搜索页面管理员面板样式 */
.admin-performance-panel {
    background: var(--card-bg);
    border: 1px solid var(--border-color) solid 1px;
    border-radius: 8px;
    padding: 15px;
    margin-top: 20px;
    font-size: 14px;
}

.admin-performance-panel h3 {
    margin-top: 0;
    color: var(--text);
    border-bottom: 1px solid var(--border-color) solid 1px;
    padding-bottom: 10px;
}

.performance-details ul {
    list-style: none;
    padding-left: 0;
    margin: 10px 0;
}

.performance-details li {
    padding: 5px 0;
    border-bottom: 1px dashed var(--border-color) solid 1px;
}

.performance-details li:last-child {
    border-bottom: none;
}

.performance-details strong {
    color: var(--text);
}

/* 禁用状态的滑块样式 */
.slider-thumb.disabled {
    cursor: not-allowed !important;
    opacity: 0.6 !important;
    pointer-events: none !important;
}

.slider-track.disabled {
    opacity: 0.6 !important;
}

.puzzle-piece.disabled {
    opacity: 0.6 !important;
    cursor: not-allowed !important;
}


#theme-toggle:hover #themeOptions{
    display: none;
}

/*html静态页*/
.section-html p.page-description {
    opacity: 0;
}

/* 响应式设计 */
@media (max-width: 992px) {
    .about-content, .contact-content {
        flex-direction: column;
    }

    .hero-content h1 {
        font-size: 2.8rem;
    }

    .portfolio-horizontal {
        display: none;
    }
}

.navbox .nav > li > a {
    color: var(--text);
}

.navbox .nav > li:hover > a:link, .navbox .nav > li:hover > a {
    color: var(--text-colors);
}

#user div#portfolio-categories {
    margin-top: 3rem;
}

#user h2#portfolio-title {
    margin-top: 0;
}

/* 编辑模式下的样式 */

.title-box {
  text-align: center;
  margin: 2rem auto 3rem;
  position: relative;
}
#admin .title-box {
  margin-bottom: 0.5rem;
}
.title-box #portfolio-title {
    font-size: 2.2rem;
    font-weight: normal;
    text-decoration: none;
    transition: color 0.3s ease;
}
.title-box #portfolio-title::after {
  content: '';
  display: block;
  width: 5rem;
  height: 4px;
  background: var(--gradient);
  margin: 1rem auto;
  border-radius: 2px;
}


/* 批量打开分类网址样式 */

.category-batch-open-btn {
    position: absolute;
    top: 0px;
    right: 0px;
    background: var(--text-colors);
    color: white;
    border: none;
    border-radius: 3px;
    padding: 3px 6px 4px;
    font-size: 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: all 0.3s ease;
    z-index: 10;
    animation: fadeIn 0.9s forwards;
    opacity: 0;
}
#admin .category-batch-open-btn{
	position: absolute;
    top: -14px;
    right: 41px;
	background: var(--text-colors);
}

.custom-dialog-overlay {
    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: 10000;
    opacity: 0;
    animation: fadeIn 0.3s forwards;
}

.custom-dialog {
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    width: 90%;
    max-width: 520px;
    overflow: hidden;
    transform: translateY(20px);
    animation: slideUp 0.3s forwards;
}

.dialog-header {
    padding: 20px 24px;
    border-bottom: 1px solid #eee;
    background: #f8f9fa;
}

.dialog-title {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: #333;
    display: flex;
    align-items: center;
    gap: 10px;
}

.dialog-title i {
    font-size: 20px;
}

.dialog-content {
	font-size: 1.125rem !important;
    padding: 24px;
    font-size: 15px;
    line-height: 1.5;
    color: #555;
	text-align: center;
}
.dialog-content small {
    color: #f90;
    margin-top: 0.5rem;
    display: inline-block;
    font-size: 0.875rem;
}
.dialog-footer {
    padding: 16px 24px;
    border-top: 1px solid #eee;
    display: flex;
    justify-content: flex-end;
    gap: 12px;
}

.dialog-btn {
    padding: 10px 20px;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    min-width: 80px;
}

.dialog-btn-primary {
    background: #4a90e2;
    color: white;
}

.dialog-btn-primary:hover {
    background: #3a7bc8;
    transform: translateY(-1px);
}

.dialog-btn-secondary {
    background: #8881AA;
    color: #fff;
}

.dialog-btn-secondary:hover {
    background: #7C769B;
}

.dialog-btn-danger {
    background: #ff4757;
    color: white;
}

.dialog-btn-danger:hover {
    background: #ff3742;
}

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

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

.batch-open-notification {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: rgba(0, 0, 0, 0.85);
    color: white;
    padding: 12px 20px;
    border-radius: 6px;
    font-size: 14px;
    z-index: 10000;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    animation: slideInUp 0.3s ease-out;
    display: flex;
    align-items: center;
    gap: 10px;
    max-width: 400px;
}

@keyframes slideInUp {
    from { transform: translateY(100%); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

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

/* 防止分类容器在加载过程中闪烁 */
#portfolio-categories {
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

#portfolio-categories.loaded {
    opacity: 1;
    visibility: visible;
}

/* 批量打开按钮默认隐藏 */
.category-batch-open-btn {
    opacity: 0 !important;
    transform: translateX(0px) !important;
    transition: opacity 2s ease, visibility 0.3s ease, transform 0.3s ease !important;
}

.portfolio-category-section:hover .category-batch-open-btn {
    opacity: 0.98 !important;
	visibility: visible;
    transform: translateX(0) !important;
}
.portfolio-category-section .category-batch-open-btn:hover {
	transition: opacity 2s ease;
	visibility: visible;
    opacity: 1 !important;
}

.dark-theme .search-input {
  background: var(--bodybg);
}

	
/*登录*/
.login .login-container {
    max-width: 90%;
    min-width: auto;
    margin: 50px auto;
    padding: 30px 30px 50px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.05);
}
.login-header img#logo-image {
    max-width: 250px;
}
/*搜索*/
.search-container {
    margin: 1rem 0px;
}
.search-container input.search-input {
    font-size: 1rem;
}	
.search-container h1#portfolio-title {
    font-size: 1.5rem;
}	
.search-btn {
    right: 5px;
    top: 4px;
    padding: 6px 15px;
}	
.search-input {
    padding: 8px 20px;
    font-size: 18px;
}
	
.white-theme .menu-toggles span {
    background: var(--tag-text);
}	
.white-theme .hot-search-tag {
    padding: 8px 15px;
    background: rgba(250, 250, 250, 0.98);
    color: #999;
}
	
/*用户注册*/
.login.reg .login-container {
    min-width: 520px;
    margin: 100px auto;
    padding: 30px 50px 50px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
}
.login.reg .form-control {
    color: var(--text);
    padding: 10px 15px;
    border-radius: 5px;
    margin-bottom: 20px;
    background: var(--form-bg);
    border: 1px solid rgba(0, 0, 0, 0.1);
	outline: none;
}
.login.reg .password-input-group {
    margin-top: 0;
}
.login.reg .captcha-area {
    margin: 0 0 20px;
}	
.login.reg .login-header img#logo-image {
    margin-top: 1rem;
    max-width: 230px;
    margin-bottom: 10px;
}
/* 密码验证提示样式 */
.password-feedback {
    font-size: 0.875rem;
    margin-top: 0.25rem;
    display: block;
    height: auto;
    transition: all 0.3s ease;
}

.password-feedback.valid, .password-feedback.invalid {
    margin-top: -16px;
    margin-bottom: 0.5rem;
    color: #28a745;
}

.password-feedback.invalid {
    color: #dc3545;
}

/* 输入框验证状态 */
.form-control.is-valid {
    border-color: #28a745;
    padding-right: calc(1.5em + 0.75rem);
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8 8'%3e%3cpath fill='%2328a745' d='M2.3 6.73L.6 4.53c-.4-1.04.46-1.4 1.1-.8l1.1 1.4 3.4-3.8c.6-.63 1.6-.27 1.2.7l-4 4.6c-.43.5-.8.4-1.1.1z'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right calc(0.375em + 0.1875rem) center;
    background-size: calc(0.75em + 0.375rem) calc(0.75em + 0.375rem);
}

.form-control.is-invalid {
    border-color: #dc3545;
    padding-right: calc(1.5em + 0.75rem);
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' width='12' height='12' fill='none' stroke='%23dc3545'%3e%3ccircle cx='6' cy='6' r='4.5'/%3e%3cpath stroke-linejoin='round' d='M5.8 3.6h.4L6 6.5z'/%3e%3ccircle cx='6' cy='8.2' r='.6' fill='%23dc3545' stroke='none'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right calc(0.375em + 0.1875rem) center;
    background-size: calc(0.75em + 0.375rem) calc(0.75em + 0.375rem);
}

/* 密码输入框组样式 */
.password-input-group {
    display: block;
    position: relative;
}

.password-strength, .real-time-check.valid, .real-time-check.invalid {
    text-align: right;
    width: 100px;
    left: calc(100% - 100px);
    top: 43px;
    position: absolute;
    color: #28a745;
    margin-top: 0.25rem;
    font-size: 0.875rem;
}

.password-strength-text {
    font-weight: 500;
}

/* 实时验证指示器 */
.real-time-check {
    display: inline-block;
    margin-left: 5px;
    font-size: 0.75rem;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.real-time-check.show {
    opacity: 1;
}

.real-time-check.valid {
    color: #28a745;
	top: 46px;
    left: calc(100% - 105px);
}

.real-time-check.invalid {
    color: #dc3545;
    top: 45px;
    left: calc(100% - 105px);
}
	
	
@media (max-width: 768px) {
.title-box {
    text-align: center;
    margin: 1rem auto 2rem;
    position: relative;
}
.menu-toggles span {
    height: 2px;
    transition: all 0.3s ease;
    margin-bottom: 6px;
}
.nav ul li a {
  border: 0;
}
.nav ul li a {
    background: var(--bs-body-bg) !important;
    color: var(--accent) !important;
}
.login.reg .login-container {
  min-width: auto;
  margin: 1.5rem auto;
  padding: 30px 25px 50px;
}
.login-header .text-muted {
  font-size: 1rem;
}
.login-header img#logo-image, .login.reg .login-header img#logo-image {
  max-width: 210px;
  margin-bottom: 0px;
}
.menu-toggles span {
  background: var(--text);
  border-radius: 0;
}
.search .search-container h1#portfolio-title {
  font-size: 1.5rem;
}
.search-box .search-btn {
  width: 38px;
  height: 35px;
  right: 3px;
  top: 3px;
  font-size: 0;
  padding: 0;
}
.search-box .search-btn .search-icon {
  font-size: 1rem;
  display: block;
  top: 1px;
  position: relative;
  right: 0px;
  margin: 0;
}
.search .search-input {
  padding: 6px 20px;
}
.search .search-container {
  max-width: 100%;
  margin: 2rem auto 3rem;
}
div#logo-image-container {
  margin-right: 0rem;
  width: 2.6rem;
  position: relative;
  top: 2px;
}
header {
    min-height: 3.6rem;
    display: block !important;
    padding: 0 1rem 3rem;
    width: calc(100% - 0rem);
}

header div#header-logo {
    position: absolute;
    margin-top: 0.35rem;
}
header .hrbtn {
  position: absolute;
  right: 3.25rem;
  top: 1.05rem;
}
header .hrbtn #search-icon, header .hrbtn #themeToggle {
  margin-right: 1.5rem;
}
header .portfolio-actions {
    position: absolute;
    width: auto;
    text-align: center;
    padding-right: 0.35rem;
    margin-bottom: 0px;
}
a#admin-icon {
    margin-right: 1rem;
}
.navbox {
    width: 100%;
    position: relative;
}

.navbox button.menu-toggles {
  position: fixed;
  top: 0.8rem;
  right: 1rem;
}
.navbox button.menu-toggles.active span {
    background: var(--accent);
}
header ul.nav {
  position: relative;
  top: 2.5rem;
  background: var(--bodybg);
  max-height: 95vh;
  width: calc(100% + 2rem);
  margin: 1rem -1rem 0;
  padding: 0px 1.25rem 1rem;
}
.nav > li, .nav ul li {
  border-bottom: var(--border);
}
.nav > li > a {
    margin: 0;
    padding: 15px 3px;
    height: auto;
}

.nav > li:last-of-type > a {
    border-bottom: 0px solid rgba(255, 255, 255, 0.2);
}

.nav-menu.active {
    clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
}

.nav-menu li {
    margin: 1rem 0;
    width: 100%;
    text-align: center;
}

.dropdown-menu {
    position: static;
    background-color: transparent;
    box-shadow: none;
    max-height: 0;
    opacity: 1;
    visibility: visible;
    transform: none;
    transition: max-height 0.4s ease;
    margin-top: 0;
}

.dropdown-menu.active {
    max-height: 500px;
}

.dropdown-menu li {
    border-bottom: none;
}

.dropdown-menu a {
    padding: 0.5rem 0;
}

.menu-toggle {
    display: flex;
}

section {
    padding: 80px 1rem;
    width: 100%;
    overflow: hidden;
}

.hero-content h1 {
    font-size: 2.2rem;
}

.careers-grid {
    grid-template-columns: 1fr;
}

.portfolio-horizontal {
    display: none;
}

.partners-grid {
    display: grid;
    gap: 2rem;
    align-items: center;
}

.slider-container {
    height: 300px;
}

.portfolio-categories {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

#footer, .footer-links {
    display: block;
}
footer {
    padding: 3rem 3rem 0;
}
.footer_right div#footer_icon2 {
    margin: 2rem 1.0rem;
}
.footer_right>div {
    text-align: left;
    margin: 2rem 1.0rem;
}
.footer_right {
    display: flex;
    justify-content: space-between;
}
.footer-links .footer-link-group {
    text-align: left;
    margin: 0 0 2rem 0;
}
	
.footer-content {
    margin: 0 0 2rem 0;
}
a#header-logo-link {
    width: 3rem;
}
.support {
    padding-bottom: 3rem;
}
#contact .contact-info {
    display: block;
    margin-top: 3rem;
    padding-left: 1.5rem;
}

.search-results-list {
    grid-template-columns: 1fr;
}

.search-results-container {
    padding: 10px;
}

.page-portfolio-items {
    grid-template-columns: 1fr;
}

.page-menu-container {
    padding: 15px 0;
}

.category-title {
    font-size: 1.3rem;
}
	
#portfolio {
  margin: 0rem 0rem 2.5rem;
  padding: 1.2rem 1rem 1rem;
}
#admin .title-box {
  margin-bottom: 3.5rem;
}
.title-box #portfolio-title {
  font-size: 1.2rem;
}	
#admin .portfolio-actions {
  margin-bottom: 2rem;
}

}	
	
	


