/* 全局样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Arial', sans-serif;
}

body {
    min-height: 100vh;
    overflow-x: hidden;
}

/* 背景样式 */
.background-image {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('https://teriteri.de/389160.jpg'); /* 请替换为您喜欢的二次元背景图 */
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    filter: brightness(0.7);
    z-index: -1;
}

/* 应用容器 */
.app-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 20px;
    position: relative;
}

/* 毛玻璃效果面板 */
.glass-panel {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    padding: 30px;
    color: white;
    max-width: 600px;
    width: 100%;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 320px;
}

/* 标题样式 */
.app-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 35px;
    font-weight: 300;
    color: white;
    text-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
}

h2 {
    text-align: center;
    margin-bottom: 15px;
    font-weight: 400;
}

/* 搜索框样式 */
.search-container {
    width: 100%;
    max-width: 600px;
    text-align: center;
}

.search-box {
    margin-bottom: 25px;
    width: 100%;
}

.search-box input {
    width: 100%;
    padding: 15px;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    background: rgba(255, 255, 255, 0.3);
    color: white;
    backdrop-filter: blur(5px);
    transition: all 0.3s ease;
    text-align: center;
}

.search-box input:focus {
    outline: none;
    box-shadow: 0 0 15px rgba(88, 101, 242, 0.5);
    background: rgba(255, 255, 255, 0.4);
    transform: scale(1.02);
}

.search-box input::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

/* 表单区域 */
.form-area {
    display: flex;
    flex-direction: column;
    flex: 1;
    justify-content: center;
    margin-bottom: 20px;
}

/* 按钮区域 */
.button-area {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 10px;
}

/* 通用输入框 */
.input-box {
    margin-bottom: 20px;
}

/* 描述文本样式 */
.glass-panel p {
    margin-bottom: 20px;
    line-height: 1.5;
}

.input-box input {
    width: 100%;
    padding: 12px 15px;
    border: none;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.3);
    color: white;
    font-size: 1rem;
    backdrop-filter: blur(5px);
    transition: box-shadow 0.3s ease;
}

.input-box input:focus {
    outline: none;
    box-shadow: 0 0 0 2px rgba(88, 101, 242, 0.5);
}

.input-box input::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

/* 按钮样式 */
button {
    padding: 12px 20px;
    border: none;
    border-radius: 8px;
    background: rgba(88, 101, 242, 0.8);
    color: white;
    cursor: pointer;
    font-size: 1rem;
    transition: all 0.3s;
    margin-top: 15px;
    width: 100%;
}

button:hover {
    background: rgba(88, 101, 242, 1);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.back-button {
    background: rgba(255, 255, 255, 0.2);
    margin-top: auto;
    margin-bottom: 0;
    align-self: stretch;
}

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

.unbind-button {
    background: rgba(237, 66, 69, 0.8);
    margin-top: 15px;
}

.unbind-button:hover {
    background: rgba(237, 66, 69, 1);
}

/* 特别调整"验证密码"按钮和"确认"按钮与其输入框的间距 */
#verifyPasswordButton, #ipConfirmButton, #setPasswordButton {
    margin-top: 5px;
}

/* 消息样式 */
.message {
    text-align: center;
    margin-top: 15px;
    padding: 12px;
    border-radius: 8px;
    font-size: 0.9rem;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.message.visible {
    opacity: 1;
}

.message.error {
    background: rgba(237, 66, 69, 0.3);
}

.message.success {
    background: rgba(87, 242, 135, 0.3);
}

/* 许可证详情样式 */
.license-details-container {
    width: 100%;
    max-width: 700px;
}

.license-info {
    margin: 25px 0;
}

.info-row {
    display: flex;
    margin-bottom: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 15px;
    transition: opacity 0.3s ease;
}

.info-label {
    width: 120px;
    font-weight: bold;
    color: rgba(255, 255, 255, 0.9);
}

.info-value {
    flex: 1;
    word-break: break-all;
}

.download-link {
    color: #4fd1c5;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: color 0.3s, transform 0.2s;
}

.download-link:hover {
    color: #81e6d9;
    text-decoration: underline;
    transform: translateY(-2px);
}

.download-link:active {
    transform: translateY(0);
}

.countdown {
    margin-left: 10px;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.7);
}

/* 状态指示器 */
.status-indicator {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 25px;
}

.active-badge {
    display: inline-flex;
    align-items: center;
    background: rgba(87, 242, 135, 0.2);
    color: #57f287;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
}

.unbound-badge {
    background: rgba(255, 184, 77, 0.2);
    color: #ffb84d;
}

.active-badge i {
    margin-right: 6px;
}

/* 解绑后提示样式 */
.unbind-message {
    background: rgba(255, 184, 77, 0.15);
    border-radius: 12px;
    padding: 25px;
    margin: 25px 0;
    display: flex;
    align-items: flex-start;
    animation: fadeIn 0.5s ease;
}

.message-icon {
    font-size: 1.5rem;
    color: #ffb84d;
    margin-right: 15px;
    margin-top: 2px;
}

.unbind-message-content {
    flex: 1;
}

.unbind-message-content p {
    margin: 0 0 10px 0;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.6;
    font-size: 0.95rem;
}

.unbind-message-content p:last-child {
    margin-bottom: 0;
}

/* 新增：调整后的冷却期信息样式 */
.cooldown-info {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.cooldown-text {
    margin-bottom: 10px;
    font-size: 0.95rem;
}

.cooldown-text strong {
    color: #ffb84d;
}

/* 清除冷却期按钮 */
.clear-cooldown-btn {
    margin-left: 15px;
    padding: 6px 12px;
    font-size: 0.85rem;
    background: rgba(88, 101, 242, 0.7);
    border: none;
    border-radius: 6px;
    color: white;
    cursor: pointer;
    transition: all 0.3s;
}

.clear-cooldown-btn:hover {
    background: rgba(88, 101, 242, 0.9);
    transform: translateY(-1px);
}

/* 修改冷却期描述样式 - 更小的红色文字 */
.cooldown-info .cooldown-description {
    margin-top: 10px;
    font-size: 0.75rem;  /* 从0.85rem改为0.75rem */
    color: #ff6b6b;      /* 改为红色 */
    line-height: 1.4;
    font-style: italic;  /* 可选：斜体 */
}

/* 隐藏的许可证信息样式 */
.info-value:empty::before {
    content: '***';
    color: rgba(255, 255, 255, 0.5);
}

/* 操作按钮容器 */
.action-buttons {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    margin-top: 10px;
}

.action-buttons button {
    flex: 1;
}

/* 通知样式 */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border-radius: 10px;
    padding: 18px 22px;
    display: flex;
    align-items: center;
    max-width: 350px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    transform: translateX(120%);
    transition: transform 0.3s ease;
    z-index: 100;
}

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

.notification-icon {
    margin-right: 15px;
    font-size: 1.2rem;
}

.notification-icon .fa-check-circle {
    color: #57f287;
}

.notification-icon .fa-exclamation-circle {
    color: #ed4245;
}

.notification-message {
    flex: 1;
    color: white;
}

/* 解绑确认样式 */
.toast-notification {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: rgba(30, 33, 36, 0.9);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    padding: 0;
    max-width: 450px;
    width: 90%;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, opacity 0.3s ease;
    z-index: 1000;
    overflow: hidden;
    opacity: 0;
    pointer-events: none;
}

.toast-notification.visible {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
    pointer-events: auto;
}

.toast-content {
    display: flex;
    flex-direction: column;
    padding: 25px;
}

.toast-content i {
    color: #ffb84d;
    font-size: 1.5rem;
    margin-bottom: 15px;
}

.toast-message h3 {
    margin: 0 0 15px 0;
    color: white;
}

.toast-message p {
    color: rgba(255, 255, 255, 0.8);
    margin: 0 0 20px 0;
    font-size: 0.95rem;
    line-height: 1.5;
}

.toast-buttons {
    display: flex;
    justify-content: flex-end;
    gap: 15px;
    margin-top: 15px;
}

.toast-buttons button {
    width: auto;
    padding: 10px 18px;
    margin: 0;
}

.toast-buttons button:first-child {
    background: rgba(255, 255, 255, 0.2);
}

.toast-buttons button:last-child {
    background: rgba(237, 66, 69, 0.8);
}

/* 让时间文字有脉动效果 */
#cooldownTime {
    display: inline-block;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { opacity: 1; }
    50% { opacity: 0.8; }
    100% { opacity: 1; }
}

/* 动画 */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* 针对密码验证界面和共享许可证界面的特定样式 */
#passwordVerifyContainer .glass-panel,
#ipInputContainer .glass-panel,
#passwordSetContainer .glass-panel {
    display: flex;
    flex-direction: column;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .glass-panel {
        padding: 25px;
        min-height: 280px;
    }
    
    .app-title {
        font-size: 2rem;
    }
    
    .info-row {
        flex-direction: column;
    }
    
    .info-label {
        width: 100%;
        margin-bottom: 8px;
    }
    
    .notification {
        max-width: 90%;
        left: 5%;
        right: 5%;
    }
}

.multi-user-message {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    background-color: rgba(237, 66, 69, 0.1);
    border: 1px solid rgba(237, 66, 69, 0.3);
    border-radius: 8px;
    color: #ed4245;
    font-size: 14px;
    margin-top: 16px;
    width: 100%;
}

.multi-user-message i {
    font-size: 18px;
}