/* 密码查询系统样式文件 */
/* 采用苹果风格设计，现代化UI */

/* 全局样式重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #333;
}

/* 主容器样式 */
.container {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 500px;
    margin: 20px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* 标题样式 */
.title {
    text-align: center;
    margin-bottom: 30px;
    color: #1d1d1f;
    font-size: 28px;
    font-weight: 600;
    letter-spacing: -0.5px;
}

/* 图标样式 */
.icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 20px;
    display: block;
}

/* 表单样式 */
.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #1d1d1f;
    font-weight: 500;
    font-size: 14px;
}

.form-group input {
    width: 100%;
    padding: 15px 20px;
    border: 2px solid #e5e5e7;
    border-radius: 12px;
    font-size: 16px;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.8);
}

.form-group input:focus {
    outline: none;
    border-color: #007aff;
    box-shadow: 0 0 0 3px rgba(0, 122, 255, 0.1);
    background: white;
}

/* 按钮样式 */
.btn {
    width: 100%;
    padding: 15px 20px;
    background: linear-gradient(135deg, #007aff 0%, #5856d6 100%);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0, 122, 255, 0.3);
}

.btn:active {
    transform: translateY(0);
}

.btn:disabled {
    background: #8e8e93;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* 管理界面样式 */
.admin-container {
    max-width: 800px;
    width: 100%;
}

.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.admin-title {
    font-size: 24px;
    font-weight: 600;
    color: #1d1d1f;
}

.back-btn {
    padding: 10px 20px;
    background: #f2f2f7;
    color: #007aff;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.back-btn:hover {
    background: #e5e5e7;
}

/* 密码列表样式 */
.password-list {
    background: #f2f2f7;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 30px;
    max-height: 500px;
    overflow-y: auto;
}

/* 搜索容器样式 */
.search-container {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
    align-items: center;
}

.search-input {
    flex: 1;
    padding: 10px 15px;
    border: 2px solid #e5e5e7;
    border-radius: 8px;
    font-size: 14px;
    background: white;
    transition: all 0.3s ease;
}

.search-input:focus {
    outline: none;
    border-color: #007aff;
    box-shadow: 0 0 0 3px rgba(0, 122, 255, 0.1);
}

.clear-search-btn {
    padding: 10px 15px;
    background: #8e8e93;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.clear-search-btn:hover {
    background: #6d6d70;
}

/* 搜索高亮样式 */
.password-item.highlight {
    background: #fff3cd !important;
    border: 2px solid #ffc107;
    transform: scale(1.02);
    box-shadow: 0 4px 12px rgba(255, 193, 7, 0.3);
}

.password-item {
    background: white;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.password-info {
    flex: 1;
}

.password-text {
    font-weight: 600;
    color: #1d1d1f;
    margin-bottom: 5px;
}

.link-text {
    color: #007aff;
    font-size: 14px;
    word-break: break-all;
}

.password-actions {
    display: flex;
    gap: 10px;
}

.action-btn {
    padding: 8px 12px;
    border: none;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.edit-btn {
    background: #007aff;
    color: white;
}

.delete-btn {
    background: #ff3b30;
    color: white;
}

.action-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* 添加密码表单样式 */
.add-form {
    background: white;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.form-row {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
}

.form-row .form-group {
    flex: 1;
    margin-bottom: 0;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .container {
        margin: 10px;
        padding: 30px 20px;
    }
    
    .title {
        font-size: 24px;
    }
    
    .admin-container {
        margin: 10px;
    }
    
    .form-row {
        flex-direction: column;
        gap: 0;
    }
    
    .password-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .password-actions {
        width: 100%;
        justify-content: flex-end;
    }
}

/* 动画效果 */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.container {
    animation: fadeIn 0.6s ease-out;
}

/* 滚动条样式 */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
} 