/* 复制按钮样式 */
.copy-button {
    background-color: #5e72e4;
    color: #ffffff;
    border: none;
    padding: 1.5vh 2.5vw;
    font-size: 1.5em; /* 减小文字大小 */
    cursor: pointer;
    transition: all 0.3s;
    border-radius: 25px;
    display: flex;
    align-items: center;
    gap: 0.5em;
    margin-top: 2vh;
    min-width: 180px;
    height: 50px;
    justify-content: center;
    line-height: 1;
    font-weight: 500;
}

.copy-button:hover {
    background-color: #4a5fd1;
    color: #ffffff;
    transform: scale(1.05);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.dark-theme .copy-button {
    background-color: #4a4a4a;
    color: #ffffff;
}

.dark-theme .copy-button:hover {
    background-color: #5e5e5e;
    color: #ffffff;
}

.copy-button i {
    font-size: 1.2em; /* 显著减小图标大小 */
    margin-left: 8px;
    vertical-align: middle;
}

/* 提示框样式 */
.copy-toast {
    position: fixed;
    top: calc(1.2em + 25px); /* 顶栏下方 */
    left: 50%;
    transform: translateX(-50%) translateY(-20px);
    background: rgba(0, 0, 0, 0.8);
    color: #ffffff;
    padding: 1vh 2vw;
    border-radius: 5px;
    font-size: 0.9em;
    opacity: 0;
    transition: all 0.3s;
    z-index: 1001;
}

.copy-toast.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

/* 加载动画样式 */
.loading-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(255, 255, 255, 1); /* 完全覆盖背景 */
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2000; /* 确保在所有内容之上 */
}

.bouncer {
    width: 100px; /* 放大图标 */
    height: 100px;
    animation: bounce 1.2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

/* 关键帧动画 */
@keyframes bounce {
    0%, 100% {
        transform: translateY(0); /* 底部位置 */
        animation-timing-function: ease-out;
    }
    50% {
        transform: translateY(-60px); /* 弹跳高度 */
        animation-timing-function: ease-in;
    }
}

/* 顶栏图标样式 */
.top-bar-icon {
    width: 2em; /* 进一步放大图标 */
    height: 2em;
    margin-right: 5px; /* 图标与文字之间的间距 */
}

/* 侧边栏样式 */
.side-bar {
    position: absolute;
    top: calc(1.2em + 25px); /* 顶栏下方 */
    left: -220px; /* 确保侧栏在未展开时完全隐藏 */
    width: 220px; /* 增加侧栏宽度 */
    height: calc(100vh - 1.2em - 25px); /* 不超过屏幕高度 */
    background-color: #ffffff; /* 白色背景 */
    color: #000000;
    z-index: 1001; /* 在提示框下方 */
    padding: 20px;
    transition: left 0.3s ease; /* 滑出动画 */
    box-shadow: 2px 0 5px rgba(0, 0, 0, 0.3), 0 2px 5px rgba(0, 0, 0, 0.3);
}

.side-bar.open {
    left: 0; /* 滑出到视口内 */
}

.side-bar-toggle {
    font-size: 1.2em;
    cursor: pointer;
    margin-right: 10px;
    transition: transform 0.3s ease; /* 旋转动画 */
}

.side-bar-toggle.open {
    transform: rotate(90deg); /* 变成叉号 */
}

.side-bar-toggle .fa-bars {
    font-size: 1em;
}

/* 顶栏内容样式 */
.top-bar-content {
    display: flex;
    align-items: center;
}

/* 响应式布局 */
@media (max-width: 768px) {
    .side-bar-toggle {
        display: block;
    }
    .top-bar-content {
        display: flex;
        justify-content: center;
        align-items: center;
        flex-grow: 1;
    }
    .top-bar-content img, .top-bar-content span {
        display: inline-block;
    }
}

@media (min-width: 769px) {
    .top-bar-content {
        justify-content: flex-start; /* 从左侧开始显示 */
    }
}

/* 暗黑模式下的工具样式 */
.dark-theme .side-bar {
    background-color: rgba(128, 128, 128, 0.9); /* 灰色背景 */
}

.dark-theme .copy-toast {
    background: rgba(128, 128, 128, 0.8); /* 灰色背景 */
    color: rgba(200, 200, 200, 1); /* 比白色偏灰 */
    border: 1px solid rgba(200, 200, 200, 1);
} 