/**
 * 通用样式 - 页面链接列表组件
 * 用于 home.html 和 pagemaker.html 的分享链接显示
 */

/* 🔴 文章链接列表容器 */
.pages-list {
    margin-top: 15px;
    padding: 15px;
    background: #f9fafb;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
}

/* 🔴 链接行布局 */
.page-item-row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 0;
    border-bottom: 1px solid #e5e7eb;
    flex-wrap: wrap; /* 允许换行 */
}

.page-item-row:last-child {
    border-bottom: none;
}

/* 🔴 序号圆圈 */
.page-index {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    background: #667eea;
    color: white;
    border-radius: 50%;
    font-size: 12px;
    font-weight: 600;
    flex-shrink: 0;
}

/* 🔴 样式风格徽章 */
.style-badge {
    display: inline-block;
    padding: 2px 8px;
    color: gray;
    font-size: 11px;
    font-weight: 500;
    white-space: nowrap;
    flex-shrink: 0;
}

/* 🔴 按钮容器（自动推到右边） */
.action-buttons-container {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-left: auto; /* 推到右边 */
    flex-shrink: 0;
}

/* 🔴 链接URL样式 */
.page-url {
    flex: 1;
    color: #667eea;
    text-decoration: none;
    font-size: 14px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    transition: color 0.3s;
}

.page-url:hover {
    color: #5568d3;
    text-decoration: underline;
}

/* 🔴 统一的链接操作按钮样式 */
.page-action-btn {
    padding: 4px 12px;
    background: #f3f4f6;
    color: #374151;
    border: 1px none #d1d5db;
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
    white-space: nowrap;
    transition: all 0.3s;
    flex-shrink: 0;
    text-decoration: none;
}

.page-action-btn:hover {
    background: #e5e7eb;
    color: #1f2937;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* 🔴 紧凑按钮样式 */
.page-action-btn.compact {
    padding: 3px 8px;
    font-size: 11px;
}

/* 🔴 删除按钮特殊样式 */
.page-action-btn.delete-btn {
    color: #ef4444;
    border-color: #fecaca;
}

.page-action-btn.delete-btn:hover {
    background: #fee2e2;
    color: #dc2626;
    border-color: #fca5a5;
    box-shadow: 0 2px 4px rgba(239, 68, 68, 0.2);
}

/* ==================== 账号区域样式 ==================== */

/* “进入”按钮基础样式 */
.enter-home-btn {
    display: inline-block;
    padding: 4px 12px;
    color: white;
    text-decoration: none;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.3s ease;
    margin-left: 8px;
    border: 2px solid rgba(255, 255, 255, 0.8);
}

/* 默认样式（用于浅色背景） */
.enter-home-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.enter-home-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
    opacity: 0.9;
}

/* 首页特殊样式 - 白色半透明背景 */
.hero .enter-home-btn,
.top-right-controls .enter-home-btn,
.auth-buttons-container .enter-home-btn {
    background: transparent;
    backdrop-filter: none;
    border: none;
}

.hero .enter-home-btn:hover,
.top-right-controls .enter-home-btn:hover,
.auth-buttons-container .enter-home-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    box-shadow: none;
}

/* home页面和回收站导航栏中的按钮 - 白色半透明 */
.navbar .enter-home-btn {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.9);
}

.navbar .enter-home-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    box-shadow: 0 4px 12px rgba(255, 255, 255, 0.3);
}

/* 用户名链接样式（通用） */
.username-link {
    color: #667eea;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.3s ease;
}

.username-link:hover {
    opacity: 0.85;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.logo-img{width: 200px;}
.footer-logo-wrapper {
    display: inline-block;
    padding: 6px 12px;
    backdrop-filter: blur(10px);
    border-radius: 8px;
    transition: all 0.3s ease;
}

.footer-logo-wrapper:hover {
    transform: translateY(-2px);
    background: rgba(255, 255, 255, 0.25);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.footer-logo-wrapper .logo-img {
    height: 35px;
    width: auto;
    display: block;
    filter: brightness(1.1) drop-shadow(0 2px 8px rgba(0,0,0,0.3));
}

.copyright {
    opacity: 0.8;
}

/* ========================================
   Hero 区域多彩动态文字 Logo 样式
   ======================================== */

.logo-text-goodpage {
    display: inline-flex;
    align-items: baseline;
    gap: 4px;
    font-size: 5.5em;
    font-weight: 800;
    letter-spacing: -2px;
    filter: drop-shadow(0 8px 30px rgba(0,0,0,0.3));
    animation: logoFloat 6s ease-in-out infinite;
}

.logo-letter {
    display: inline-block;
    transition: all 0.3s ease;
    cursor: default;
}

.logo-letter:hover {
    transform: translateY(-8px) scale(1.1);
    filter: brightness(1.2) drop-shadow(0 10px 20px rgba(255,255,255,0.4));
}

/* G - 金黄色渐变 */
.logo-g {
    background: linear-gradient(135deg, #ffd700 0%, #ffed4e 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* o1 - 粉红到红色 */
.logo-o1 {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* o2 - 蓝色到青色 */
.logo-o2 {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* d - 粉色到黄色 */
.logo-d {
    background: linear-gradient(135deg, #fa709a 0%, #fee140 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* P - 淡紫到粉色 */
.logo-p {
    background: linear-gradient(135deg, #a18cd1 0%, #fbc2eb 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* a - 浅黄到橙色 */
.logo-a {
    background: linear-gradient(135deg, #ffecd2 0%, #fcb69f 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* g2 - 绿色到蓝色 */
.logo-g2 {
    background: linear-gradient(135deg, #84fab0 0%, #8fd3f4 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* e - 紫色到蓝色 */
.logo-e {
    background: linear-gradient(135deg, #e0c3fc 0%, #8ec5fc 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* .net 域名后缀 */
.logo-domain {
    display: inline-block;
    font-size: 0.40em;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.75);
    margin-left: 8px;
    animation: domainPulse 4s ease-in-out infinite;
}

/* Logo 浮动动画 */
@keyframes logoFloat {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

/* .net 脉冲动画 */
@keyframes domainPulse {
    0%, 100% {
        opacity: 0.75;
        transform: scale(1);
    }
    50% {
        opacity: 1;
        transform: scale(1.05);
    }
}

/* 移动端适配 */
@media (max-width: 768px) {
    .logo-text-goodpage {
        font-size: 3.5em;
        gap: 2px;
    }
    
    .logo-domain {
        font-size: 0.3em;
    }
}

/* ========================================
   通用品牌 Logo 展示样式
   用于页面底部 powered-by 区域
   ======================================== */

.powered-by {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: 50px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    text-decoration: none;
    font-size: 1rem;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
    transition: all 0.4s ease;
    animation: pulse 2s infinite;
}

.powered-by:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.5);
}

.powered-by .logo-img {
    height: 40px;
    width: auto;
    display: block;
    filter: brightness(1.2) drop-shadow(0 2px 4px rgba(0,0,0,0.2));
}

.powered-by .logo-text {
    font-size: 1em;
    font-weight: 600;
    color: white;
    white-space: nowrap;
}

.powered-by .logo-divider {
    color: rgba(255, 255, 255, 0.7);
    margin: 0 4px;
    font-weight: 400;
}

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

/* ==================== Modal 确认对话框样式 ==================== */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    animation: fadeIn 0.2s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.modal-content {
    background: white;
    border-radius: 16px;
    max-width: 500px;
    width: 90%;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    animation: slideUp 0.3s ease;
}

@keyframes slideUp {
    from {
        transform: translateY(50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.modal-header {
    padding: 25px 25px 15px;
    border-bottom: 1px solid #e2e8f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h3 {
    font-size: 1.4em;
    color: #2d3748;
    margin: 0;
}

.modal-close {
    background: none;
    border: none;
    font-size: 1.5em;
    cursor: pointer;
    color: #a0aec0;
    transition: color 0.3s;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-close:hover {
    color: #2d3748;
}

.modal-body {
    padding: 25px;
}

.modal-body p {
    color: #4a5568;
    line-height: 1.6;
    margin-bottom: 10px;
}

.article-title-preview {
    background: #f7fafc;
    padding: 12px 16px;
    border-radius: 8px;
    border-left: 4px solid #667eea;
    font-weight: 600;
    color: #2d3748;
    margin-top: 15px;
}

.modal-footer {
    padding: 20px 25px;
    border-top: 1px solid #e2e8f0;
    display: flex;
    justify-content: flex-end;
    gap: 12px;
}

.btn-cancel, .btn-confirm-delete {
    padding: 10px 24px;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 0.95em;
}

.btn-cancel {
    background: #e2e8f0;
    color: #4a5568;
}

.btn-cancel:hover {
    background: #cbd5e0;
}

.btn-confirm-delete {
    background: linear-gradient(135deg, #fc8181 0%, #f56565 100%);
    color: white;
}

.btn-confirm-delete:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(245, 101, 101, 0.3);
}

/* 登出按钮样式 */
.btn-logout {
    background: linear-gradient(135deg, #ed8936 0%, #dd6b20 100%);
    color: white;
}

.btn-logout:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(237, 137, 54, 0.3);
}

/* 警告按钮样式 */
.btn-warning {
    background: linear-gradient(135deg, #ecc94b 0%, #d69e2e 100%);
    color: white;
}

.btn-warning:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(236, 201, 75, 0.3);
}
