/**
 * 通用样式 - 页面链接列表组件
 * 用于 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;
    }
}