:root {
    --primary-color: #2d8cff;
    --primary-hover-color: #1a73e8;
    /* --primary-color: #0d6efd;
    --primary-hover-color: #0a58ca; */
    --auxiliary-color: #ffc107;
    --auxiliary-hover-color: #d39e00;
    --error-color: #dc3545;

    /* 余额样式 */
    --secondary-gold: #d4af37;
}

/* 导航栏 */
.navbar {
    padding: 1rem 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

/* 主标题区 */
.hero-section {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 6rem 0;
    text-align: center;
}

/* logo */
.logo {
    /* font-size: 1.5rem; */
    display: flex;
    align-items: center;
    transition: transform 0.3s ease;
}
.logo:hover {
    transform: scale(1.05);
}
.logo i {
    margin-right: 8px;
    color: var(--primary-color);
    transition: transform 0.5s ease;
}
.logo:hover i {
    color: var(--primary-hover-color);
    transform: rotate(360deg);
}
.logo h1 {
    margin: 0;
    padding: 0;
    font-size: 2rem;
    font-weight: bold;
    line-height: normal;
}
.logo h1 a {
    color: var(--primary-color);
    display: inline-block;
    text-decoration: none;
}
.logo:hover a {
    color: var(--primary-hover-color);
}

/* 余额区域样式 */
.balance-container {
    margin-right: 1rem;
    padding: 0.3rem 1rem;
    background-color: rgba(212, 175, 55, 0.1);
    border-radius: 20px;
    transition: all 0.3s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    display: inline-flex;
    align-items: center;
    position: relative;
}
.balance-container:hover {
    background-color: rgba(212, 175, 55, 0.15);
    transform: translateY(-1px);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}
.balance-label {
    font-size: 0.85rem;
    color: #6b7280;
    margin-right: 4px;
}
/* 余额数字 */
.balance-amount {
    /* min-width: 50px; */
    font-size: 1rem;
    font-weight: 600;
    position: relative;
    overflow: hidden;
    display: inline-block;
}
.balance-amount::after {
    content: "";
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--secondary-gold);
    transition: width 0.3s ease;
}
.balance-container:hover .balance-amount::after {
    width: 100%;
}
/* 余额数字动画效果 */
@keyframes countUp {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes shine {
    0% { background-position: -200% center; }
    100% { background-position: 200% center; }
}
.count-animation {
    animation: countUp 0.5s ease-out forwards;
}
/* 流光效果 - 只在文字上流动 */
.shine-effect {
    position: relative;
    display: inline-block;
    /* 基础金色文字 */
    color: var(--secondary-gold);
    text-shadow: 0 1px 1px rgba(0, 0, 0, 0.05);
}
.shine-effect::before {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    color: transparent;
    /* 金色渐变背景 */
    background: linear-gradient(135deg, 
        var(--secondary-gold) 0%, 
        #f9e076 50%, 
        var(--secondary-gold) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    /* 流动的光效 */
    background-size: 200% auto;
    background-position: -200% center;
    animation: shine 3s infinite linear;
    pointer-events: none;
}

/* 用户名 */
.username , .login{
    transition: all 0.3s ease;
}
.username:hover , .login:hover{
    color: var(--primary-color) !important;
    transform: translateY(-1px);
}

/* 按钮样式 */
.btn-primary {
    border-color: var(--primary-color);
    /* background-color: var(--primary-color); */
    background: linear-gradient(135deg, var(--primary-color), var(--primary-hover-color));
    overflow: hidden;

    transition: all 0.3s ease;

    position: relative;
}
.btn-primary:hover {
    border-color: var(--primary-hover-color);
    /* background-color: var(--primary-hover-color); */
    background: linear-gradient(135deg, var(--primary-hover-color), var(--primary-hover-color));
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);

    transform: translateY(-1px);
}

/* 上传区域 */
.upload-zone {
    border: 1px dashed #ced4da;
    border-radius: 15px;
    padding: 3rem;
    margin: 2rem auto 2rem auto;
    max-width: 800px;
    transition: all 0.3s;
    background: white;

    position: relative;
}
.upload-zone:hover {
    border-color: var(--primary-color);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(45,140,255,0.1);
}

/* 上传按钮 */
.upload-btn {
    padding: 1rem 2.5rem;
    border-radius: 25px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-hover-color));
    color: white !important;
    font-weight: bold;
    transition: all 0.3s;
}
.upload-btn:hover {
    /* background-color: var(--primary-hover-color); */
    box-shadow: 0 5px 15px rgba(45,140,255,0.3);

    transform: scale(1.05);
}

/* 高级模式 */
.advanced-mode-container {
    display: flex;
    align-items: center;

    position: absolute;
    bottom: 15px;
    right: 15px;
    z-index: 10;
}
/* 高级模式按钮 */
.advanced-toggle {
    width: 40px;
    height: 40px;
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 20px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;

    transition: all 0.5s ease;
}
.advanced-toggle:hover {
    background: #e9ecef;

    transform: scale(1.05);
}
.advanced-toggle i {
    color: #6c757d;
    font-size: 18px;

    transition: all 0.3s;
}
.advanced-toggle:hover i {
    transform: rotate(360deg);
}
/* 一级选项 */
.primary-options {
    margin-right: 10px;
    max-width: 0;
    background: white;
    /* border-radius: 25px; */
    /* box-shadow: 0 4px 12px rgba(0,0,0,0.1); */
    overflow: hidden;
    opacity: 0;
    display: flex;
    transition: all 0.5s ease;
}
.advanced-mode-container:hover .primary-options {
    max-width: 300px;
    opacity: 1;
}
.primary-option-item {
    padding: 8px 10px;
    cursor: pointer;
    white-space: nowrap;
    display: flex;
    align-items: center;
    /* border-right: 1px solid #f1f1f1; */
    transition: all 0.3s;
}
/* .option-item:last-child {
    border-right: none;
} */
.primary-option-item:hover {
    /* background: #f1f8ff; */
    /* color: var(--primary-color); */
    font-weight: 600 !important;;
}
.primary-option-item.active {
    /* background: #e7f1ff; */
    /* color: var(--primary-color); */
    font-weight: 500;
}
.primary-option-checkbox {
    margin-right: 6px;
    width: 15px;
    height: 15px;
    border: 1px solid #6c757d;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.5s;
    /* visibility: visible; */
    /* transition: opacity 0.5s ease, visibility 0.5s; */
}
.primary-option-item.active .primary-option-checkbox {
    background: var(--primary-color);
    border-color: var(--primary-color);
}
.primary-option-item.active .primary-option-checkbox::after {
    content: "✓";
    color: white;
    font-size: 12px;
    font-weight: bold;
}
/* 选中后保持可见 */
.primary-options.has-selection {
    max-width: 80px !important;
    opacity: 1 !important;
}
/* 选中的离开后隐藏选择框 */
.advanced-mode-container:not(:hover) .primary-option-checkbox {
    opacity: 0;
    /* visibility: hidden; */
}
/* 隐藏未选中的选项 */
/* .primary-options.hide-unselected .primary-option-item:not(.active){ */
.primary-options.has-selection .primary-option-item:not(.active) {
    display: none;
}
/* 二级选项 */
.secondary-options {
    /* padding: 5px 0; */
    max-height: 0;
    background: white;
    /* border-radius: 25px; */
    /* box-shadow: 0 -4px 12px rgba(0,0,0,0.1); */
    display: flex;
    flex-direction: column;
    overflow: hidden;
    opacity: 0;
    transition: all 0.5s ease;

    position: absolute;
    bottom: 100%;
    right: 0;
    z-index: 10;
}
.advanced-mode-container.portrait-selected:hover .secondary-options {
    max-height: 250px;
    opacity: 1;
}
.secondary-option-item {
    padding: 8px 6px;
    cursor: pointer;
    white-space: nowrap;
    display: flex;
    align-items: center;
    transition: all 0.3s;
}
.secondary-option-item:hover {
    font-weight: 600 !important;
}
.secondary-option-item.active {
    font-weight: 500;
    color: var(--primary-color);
}
.secondary-option-checkbox {
    margin-right: 6px;
    width: 15px;
    height: 15px;
    border: 1px solid #6c757d;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.5s;
}
.secondary-option-item.active .secondary-option-checkbox {
    background: var(--primary-color);
    border-color: var(--primary-color);
}
.secondary-option-item.active .secondary-option-checkbox::after {
    content: "✓";
    color: white;
    font-size: 12px;
    font-weight: bold;
}
/* 选中后保持可见 */
.secondary-options.has-selection {
    /* padding: 8px 6px; */
    max-height: 250px !important;
    opacity: 1 !important;
}
/* 选中的离开后隐藏选择框 */
.advanced-mode-container:not(:hover) .secondary-option-checkbox {
    opacity: 0;
}
/* 隐藏未选中的选项 */
.secondary-options.has-selection .secondary-option-item:not(.active) {
    display: none;
}


/* 没有图片，尝试这些图片 */
.trial-image{
    margin: 0 auto;
    max-width: 800px;
    display: flex; 
    justify-content: space-between;
    align-items: center;
}
.trial-image .right-trial-image ul{
    display: flex;
}
.trial-image .right-trial-image li{
    position: relative;
    margin-left: 10px;
    /* 为了隐藏前景色cover */
    overflow: hidden;
}
.trial-image .right-trial-image img{
    width: 73px;
    height: 50px;
    border-radius: 5px;
}
.trial-image .right-trial-image li .cover{
    position: absolute;
    left: 0;
    bottom: -50px;
    width: 73px;
    height: 50px;
    background-color: rgba(255, 255, 255, 0.35);
    border-radius: 5px;
    /* transition: all 0.5s; */
}
/* 鼠标悬停到li，显示cover，改变位置 */
.trial-image .right-trial-image li:hover .cover {
    bottom: 0;
}

/* 移除背景结果展示 */
.remove-bg-result{
    /* margin-top: 6rem; */
    margin: 0 auto;
    /* width: 100%; */
    /* height: 100%; */
    border-radius: 10px; 
    border: 1px solid transparent;
    overflow: hidden;
    display: none;
    transition: all 0.3s;

    position: relative;
}
.remove-bg-result:hover {
    border: 1px solid #d2d2d2;
    box-shadow: 0 10px 20px rgba(0,0,0,0.08);
    /* box-shadow: 0 10px 20px rgba(255, 220, 45, 0.1); */
    transform: translateY(-3px);
}

/* 图片容器 */
.remove-bg-result img{
    width: 100%;
    height: 100%;
    border-radius: 10px; 
}
/* 上传的图片 */
.remove-bg-resulte img:nth-child(1){
    display: none;
}
/* 移除背景后的图片 */
.remove-bg-result img:nth-child(2){
    display: none;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 998;
}

/* loading */
.remove-bg-result .removing{
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 997;
    display: none;
}

/* 关闭按钮 */
.remove-bg-result button{
    position: absolute;
    top: 5px;
    right: 5px;
    z-index: 999;
}

/* 下载区域 */
.download-zone {
    /* margin-top: 2rem; */
    margin: 2rem auto 0 auto;
    /* background-color: pink; */
    display: none;

    position: relative;
}
/* 下载按钮 */
.download-zone .download-btn {
    padding: 1rem 2.5rem;
    border-radius: 25px;
    background: linear-gradient(135deg, var(--auxiliary-color), var(--auxiliary-hover-color));
    font-weight: bold;
    color: white !important;
    transition: all 0.3s;
}
.download-zone .download-btn:hover {
    box-shadow: 0 5px 15px rgba(247, 245, 187, 0.3);
    
    transform: scale(1.05);
}
/* 下拉菜单默认隐藏 */
.download-zone .download-menu {
    /* min-width: 200px; */
    /* max-width: 100%; */
    width: 80%;
    padding: 1rem;
    text-align: center;
    list-style: none;
    background-color: #fff;
    background-clip: padding-box;
    border-radius: 0.5rem;
    box-shadow: 0 5px 15px rgba(89, 89, 90, 0.3);
    display: none;

    position: absolute;
    left: 50%;
    bottom: calc(100% + 0.3rem);
    transform: translateX(-50%);
    z-index: 1000;
}
.download-zone .download-menu li{
    padding: 0.5rem;
    border-radius: inherit;
}
.download-zone .download-menu li:hover{
    background-color: #ced4da;
    cursor: pointer;
}    

/* 功能特性 */
.feature-card {
    padding: 2rem;
    border: none;
    border-radius: 15px;
    transition: all 0.3s;
}
.feature-card:hover {
    box-shadow: 0 10px 20px rgba(0,0,0,0.08);
    transform: translateY(-5px);
}

/* 响应式调整 */
@media (max-width: 768px) {
    .hero-section {
        padding: 3rem 0;
    }
    .display-4 {
        font-size: 2.5rem;
    }
}

/* 案例图片部分 */
/* .case-image h2{
    font-size: 50px;
    font-weight: 700;
    color: #23292e;
    text-align: center;
} */
.case-image ul{
    list-style-type: none; /* 移除项目符号 */
    margin: 0; /* 移除默认外边距 */
    padding: 0; /* 移除默认内边距 */
}
.case-image li{
    margin: 0; /* 移除默认外边距 */
    padding: 0; /* 移除默认内边距 */
}
.case-image ul{
    width: 400px; 
    margin: 0px auto 0px auto;
    /* background-color: aqua; */
    display: flex; 
    justify-content: space-between;
}
.case-image li {
    padding: 0 15px;
    font-size: 20px;
    font-weight: 400;
    color: #23292e;
    height: 40;
    line-height: 40px;
    cursor: pointer;
}
.case-image li:hover{
    font-weight: 600;
    color: var(--primary-color);
}
.case-image ul .active {
    font-weight: 600;
    background-color: #f7f7f7;
    border-radius: 20px;
}
.show-case-image{
    margin: 30px auto 0px auto;
    /* width: 948px;
    height: 533px; */
    border-radius: 10px; 
    border: #d2d2d2 1px solid;
    background-image: url("/static/images/transtiled.webp");
    overflow: hidden;
    /* background-color: pink; */

    position: relative;
}
.show-case-image img{
    width: 100%;
    height: 100%;
    border-radius: 10px; 

    /* position: absolute; */
}
.show-case-image img:nth-child(1){
    clip-path: polygon(0px 0px, 50% 0px, 50% 100%, 0px 100%);
    /* z-index: 1; */
}
.show-case-image img:nth-child(2){
    position: absolute;
    top: 0;
    left: 0;
    z-index: 2;
}

.show-case-image input{
    -webkit-appearance: none; /* 移除Webkit的默认样式 */
    appearance: none; /* 兼容Firefox，移除默认样式 */
    width: calc(100% + 50px);
    height: 0px;
    background: transparent;

    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 3;
}
/* 自定义Webkit浏览器（如Chrome、Safari）的滑块手柄样式 */
.show-case-image input::-webkit-slider-thumb{
    -webkit-appearance: none; /* 移除Webkit的默认样式 */
    width: 50px; 
    height: 50px; 
    border-radius: 50%; 
    background-color: rgba(0, 0, 0, 0.6);
    /* opacity: 0.7;  *//* 设置透明度 */
    border: 2px solid #FFFFFF;
    cursor: pointer; /* 鼠标悬停时的光标样式 */
    transition: transform 0.2s ease; /* 平滑过渡效果 */
    /* 通过背景图添加白色箭头 */
    background-image: 
        url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path fill="white" d="M15.41 16.59L10.83 12l4.58-4.59L14 6l-6 6 6 6 1.41-1.41z"/></svg>'),
        url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path fill="white" d="M8.59 16.59L13.17 12 8.59 7.41 10 6l6 6-6 6-1.41-1.41z"/></svg>');
    background-repeat: no-repeat;
    background-position: left center, right center;
    background-size: 25px 25px;
}
/* 自定义Firefox浏览器的滑块手柄样式*/
.show-case-image input::-moz-range-thumb {
    appearance: none; /* 移除默认样式 */
    width: 50px; 
    height: 50px; 
    border-radius: 50%; 
    background-color: rgba(0, 0, 0, 0.6);
    /* opacity: 0.7;  *//* 设置透明度 */
    border: 2px solid #FFFFFF;
    cursor: pointer; /* 鼠标悬停时的光标样式 */
    transition: transform 0.2s ease; /* 平滑过渡效果 */
    /* 通过背景图添加白色箭头 */
    background-image: 
        url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path fill="white" d="M15.41 16.59L10.83 12l4.58-4.59L14 6l-6 6 6 6 1.41-1.41z"/></svg>'),
        url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path fill="white" d="M8.59 16.59L13.17 12 8.59 7.41 10 6l6 6-6 6-1.41-1.41z"/></svg>');
    background-repeat: no-repeat;
    background-position: left center, right center;
    background-size: 25px 25px;
} 
    
.show-case-image input::-webkit-slider-thumb:hover {
    transform: scale(1.2); /* 鼠标移入时放大 */
}
.show-case-image input::-moz-range-thumb:hover {
    transform: scale(1.2); /* 鼠标移入时放大 */
}

/* 充值区域 */
.recharge-item{
    padding: 2rem;
    border-radius: 10px;
    background-color: #fff;
    /* border: 1px solid #ced4da; */
}

/* 问答区域 */
/* 移除 accordion 的边框和背景 */
.accordion {
    border: none;
    box-shadow: none;
}
.accordion-item {
    border: none;
    background-color: transparent;
    border-bottom: 1px solid #ced4da;
}
.accordion-header {
    border: none;
    background-color: transparent;
}
.accordion-button {
    border: none;
    background-color: transparent;
    color: inherit; /* 继承父元素的颜色 */
    font-weight: bold; /* 根据需要调整字体粗细 */
}
.accordion-button:focus {
    border-color: transparent;
    box-shadow: none;
}
.accordion-button:not(.collapsed) {
    color: inherit; /* 继承父元素的颜色 */
    background-color: transparent;
}
.accordion-collapse {
    border: none;
    background-color: transparent;
}
.accordion-body {
    border: none;
    background-color: transparent;
    padding: 1rem; /* 根据需要调整内边距 */
}

.toast-container {
    padding: 1rem;

    transition: top 0.3s ease-in-out;

    position: fixed;
    top: 80px;
    right: 10px;
    z-index: 999;
  }