/* 工具按钮样式 */
.tool-buttons {
    position: fixed;
    bottom: 30px;
    right: 30px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    z-index: 1000;
}

.tool-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: none;
    background: var(--primary-color);
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    box-shadow: var(--shadow-lg);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.tool-btn:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-xl);
}

.tool-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}

.tool-btn:hover::before {
    left: 100%;
}

.back-to-top {
    background: var(--secondary-color);
}

.theme-toggle {
    background: var(--accent-color);
}

/* 通知公告样式 */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background: white;
    border-radius: 12px;
    box-shadow: var(--shadow-xl);
    z-index: 9999;
    max-width: 400px;
    transform: translateX(120%);
    transition: transform 0.3s ease;
    border-left: 4px solid var(--primary-color);
}

.notification.show {
    transform: translateX(0);
}

.notification-content {
    padding: 0;
}

.notification-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 20px 15px;
    border-bottom: 1px solid var(--border-color);
}

.notification-header h3 {
    margin: 0;
    color: var(--dark-color);
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1.1rem;
}

.notification-close {
    background: none;
    border: none;
    color: var(--text-light);
    cursor: pointer;
    padding: 5px;
    border-radius: 4px;
    transition: var(--transition);
}

.notification-close:hover {
    background: var(--light-color);
    color: var(--dark-color);
}

.notification-body {
    padding: 20px;
}

.notification-body p {
    margin: 0 0 10px 0;
    line-height: 1.5;
}

.notification-body p:last-child {
    margin-bottom: 0;
}

.notification-footer {
    padding: 15px 20px;
    background: var(--light-color);
    border-top: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.notification-timer {
    font-size: 0.85rem;
    color: var(--text-light);
}

/* 暗色主题支持 */
[data-theme="dark"] .notification {
    background: var(--dark-color);
    border-left-color: var(--accent-color);
}

[data-theme="dark"] .notification-header {
    border-bottom-color: #374151;
}

[data-theme="dark"] .notification-footer {
    background: #1f2937;
    border-top-color: #374151;
}