/* ===== 所有样式均以 fl- 为前缀，避免全局冲突 ===== */

/* ===== 列表容器 ===== */
.fl-list {
    margin: 0;
    padding: 0;
    list-style: none;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 14px;
}

/* ===== 列表项 ===== */
.fl-item {
    display: block;
    margin: 0;
}

/* ===== 链接 ===== */
.fl-link {
    display: flex;
    align-items: center;
    justify-content: flex-start; /* 改为左对齐 */
    padding: 10px 10px;
    background: #f8fafc;
    border-radius: 14px;
    text-decoration: none;
    color: #1e293b;
    font-size: 0.92rem;
    font-weight: 500;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1.5px solid transparent;
    position: relative;
    overflow: hidden;
    /* min-height: 60px; */ /* 保证最小高度 */
}

/* ===== 链接背景光效 ===== */
.fl-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, #4f46e5, #7c3aed);
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: 14px;
}

/* ===== 图标容器 ===== */
.fl-icon {
    position: relative;
    z-index: 1;
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease;
    margin-right: 10px; /* 距离文字10px */
}

/* 图标中的图片 */
.fl-icon img {
    width: 90%;
    height: 90%;
}

/* 图标中的emoji */
.fl-icon:not(:has(img)) {
    font-size: 24px;
    line-height: 32px;
    text-align: center;
}

/* ===== 文字 ===== */
.fl-text {
    position: relative;
    z-index: 1;
    transition: color 0.3s ease;
    white-space: nowrap;
    overflow: hidden;
    /* text-overflow: ellipsis; */
    flex: 1;
    min-width: 0; /* 防止flex溢出 */
    font-size: 16px;
}

/* ===== 悬停效果 ===== */
.fl-link:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(79, 70, 229, 0.25);
    border-color: #4f46e5;
}

.fl-link:hover::before {
    opacity: 1;
}

.fl-link:hover .fl-icon {
    transform: scale(1.2) rotate(-8deg);
}

.fl-link:hover .fl-text {
    color: #ffffff;
}

/* ===== 多彩颜色方案 ===== */
.fl-item:nth-child(6n+1) .fl-link {
    border-color: #e0e7ff;
}
.fl-item:nth-child(6n+1) .fl-link:hover {
    border-color: #4f46e5;
}

.fl-item:nth-child(6n+2) .fl-link {
    border-color: #fce7f3;
}
.fl-item:nth-child(6n+2) .fl-link:hover::before {
    background: linear-gradient(135deg, #ec4899, #8b5cf6);
}
.fl-item:nth-child(6n+2) .fl-link:hover {
    border-color: #ec4899;
    box-shadow: 0 12px 32px rgba(236, 72, 153, 0.25);
}

.fl-item:nth-child(6n+3) .fl-link {
    border-color: #d1fae5;
}
.fl-item:nth-child(6n+3) .fl-link:hover::before {
    background: linear-gradient(135deg, #10b981, #06b6d4);
}
.fl-item:nth-child(6n+3) .fl-link:hover {
    border-color: #10b981;
    box-shadow: 0 12px 32px rgba(16, 185, 129, 0.25);
}

.fl-item:nth-child(6n+4) .fl-link {
    border-color: #fef3c7;
}
.fl-item:nth-child(6n+4) .fl-link:hover::before {
    background: linear-gradient(135deg, #f59e0b, #ef4444);
}
.fl-item:nth-child(6n+4) .fl-link:hover {
    border-color: #f59e0b;
    box-shadow: 0 12px 32px rgba(245, 158, 11, 0.25);
}

.fl-item:nth-child(6n+5) .fl-link {
    border-color: #cffafe;
}
.fl-item:nth-child(6n+5) .fl-link:hover::before {
    background: linear-gradient(135deg, #06b6d4, #3b82f6);
}
.fl-item:nth-child(6n+5) .fl-link:hover {
    border-color: #06b6d4;
    box-shadow: 0 12px 32px rgba(6, 182, 212, 0.25);
}

.fl-item:nth-child(6n+6) .fl-link {
    border-color: #ede9fe;
}
.fl-item:nth-child(6n+6) .fl-link:hover::before {
    background: linear-gradient(135deg, #8b5cf6, #4f46e5);
}
.fl-item:nth-child(6n+6) .fl-link:hover {
    border-color: #8b5cf6;
    box-shadow: 0 12px 32px rgba(139, 92, 246, 0.25);
}

/* ===== 响应式 ===== */
@media (max-width: 640px) {
    .fl-list {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 12px;
    }

    .fl-link {
        padding: 8px 8px;
        font-size: 0.85rem;
        border-radius: 12px;
    }

    .fl-icon {
        width: 16px;
        height: 16px;
        margin-right: 2px;
    }
    
    .fl-icon img {
    }
    
    .fl-icon:not(:has(img)) {
        font-size: 16px;
        line-height: 28px;
    }
}

@media (max-width: 400px) {
    .fl-list {
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }

    .fl-link {
        padding: 10px 10px;
        font-size: 0.8rem;
    }
    
    .fl-icon {
        width: 24px;
        height: 24px;
        margin-right: 6px;
    }
    
    .fl-icon img {
    }
    
    .fl-icon:not(:has(img)) {
        font-size: 18px;
        line-height: 24px;
    }
}
    .fl-box {
        padding:20px;
        
    }
    
    .fl-con-box {
        width:90%;
        margin: 0 auto;
    }
    
    .fl-submit-btn {
        background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
        color: white;
        font-size: 20px;
        font-weight: bold;
        padding: 15px 40px;
        border: none;
        border-radius: 50px;
        cursor: pointer;
        box-shadow: 0 4px 15px rgba(0,0,0,0.2);
        transition: transform 0.3s, box-shadow 0.3s;
    }

    .fl-submit-btn:hover {
        transform: translateY(-2px);
        box-shadow: 0 6px 20px rgba(0,0,0,0.3);
    }

    /* 联系站长按钮样式（与原有按钮风格统一） */
    .contact-webmaster-btn {
        background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
        color: white;
        font-size: 20px;
        font-weight: bold;
        padding: 15px 40px;
        border: none;
        border-radius: 50px;
        cursor: pointer;
        box-shadow: 0 4px 15px rgba(0,0,0,0.2);
        transition: transform 0.3s, box-shadow 0.3s;
    }

    .contact-webmaster-btn:hover {
        transform: translateY(-2px);
        box-shadow: 0 6px 20px rgba(0,0,0,0.3);
    }

    /* 按钮容器：响应式布局 */
    .button-container {
        display: flex;
        justify-content: center;
        gap: 30px;
        margin-top: 40px;
        margin-bottom: 30px;
        text-align: center;
    }

    /* 手机端：分行显示 */
    @media (max-width: 768px) {
        .button-container {
            flex-direction: column;
            align-items: center;
            gap: 20px;
        }
    }

/* 弹窗遮罩层 */
.fl-modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 9999;
    justify-content: center;
    align-items: center;
}

/* 结果弹窗遮罩层（更高层级） */
.fl-result-overlay {
    z-index: 10000;
}

/* 弹窗内容容器 */
.fl-modal-container {
    background: white;
    width: 90%;
    max-width: 500px;
    border-radius: 16px;
    padding: 30px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.3);
}

/* 结果弹窗内容容器 */
.fl-result-container {
    max-width: 400px;
    text-align: center;
}

/* 弹窗标题 */
.fl-modal-title {
    margin-top: 0;
    margin-bottom: 20px;
    text-align: center;
    font-size: 24px;
    color: #333;
}

/* 表单组 */
.fl-form-group {
    margin-bottom: 15px;
}

/* 表单标签 */
.fl-form-label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
    color: #555;
}

/* 表单输入框 */
.fl-form-input,
.fl-form-select,
.fl-form-file {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 14px;
    box-sizing: border-box;
}

.fl-form-input:focus,
.fl-form-select:focus {
    outline: none;
    border-color: #667eea;
}

/* 表单提示文字 */
.fl-form-hint {
    color: #999;
    font-size: 12px;
}

/* 弹窗按钮组 */
.fl-modal-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-top: 10px;
}

/* 取消按钮 */
.fl-cancel-btn {
    background: #f0f0f0;
    color: #666;
    padding: 10px 30px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 16px;
    transition: opacity 0.2s;
}

/* 提交按钮 */
.fl-submit-modal-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 10px 30px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 16px;
    transition: opacity 0.2s;
}

.fl-cancel-btn:hover,
.fl-submit-modal-btn:hover {
    opacity: 0.9;
}

/* 提交按钮禁用状态 */
.fl-submit-modal-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* 结果弹窗图标 */
.fl-result-icon {
    font-size: 50px;
    margin-bottom: 15px;
}

/* 结果弹窗消息 */
.fl-result-message {
    font-size: 16px;
    color: #333;
    margin-bottom: 20px;
}

/* 链接信息卡片 */
.fl-link-info-card {
    background: #f5f5f5;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    text-align: left;
    display: none;
}

.fl-link-info-card div {
    margin-top: 8px;
}

.fl-link-info-card div:first-child {
    margin-top: 0;
}

.fl-link-info-card strong {
    font-weight: bold;
}

.fl-link-info-card a {
    color: #667eea;
    word-break: break-all;
    text-decoration: none;
}

.fl-link-info-card a:hover {
    text-decoration: underline;
}

/* 结果弹窗按钮组 */
.fl-result-actions {
    display: flex;
    gap: 10px;
    justify-content: center;
}

/* 关闭按钮 */
.fl-close-btn {
    background: #f0f0f0;
    color: #667eea;
    padding: 10px 20px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    font-weight: bold;
    transition: opacity 0.2s;
}

/* 复制按钮 */
.fl-copy-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 10px 30px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 16px;
    transition: transform 0.1s, opacity 0.2s;
}

.fl-close-btn:hover,
.fl-copy-btn:hover {
    opacity: 0.9;
}

.fl-copy-btn:active {
    transform: scale(0.98);
}

/* 红色星号（必填标记） */
.fl-required-star {
    color: #e74c3c;
}

/* ========== 原页面文字样式 ========== */
.fl-page-title {
    font-size: 20px;
    text-align: center;
    font-weight: bold;
}

.fl-section-title {
    font-size: 18px;
    text-align: left;
    margin-top: 30px;
    font-weight: bold;
}

.fl-paragraph {
    font-size: 16px;
    text-indent: 2em;
    margin-top: 15px;
    line-height: 1.6;
}

.fl-highlight-red {
    color: #e74c3c;
    font-weight: bold;
}

.fl-highlight-blue {
    color: #3498db;
    font-weight: bold;
}

.fl-highlight-orange {
    color: #e67e22;
    font-weight: bold;
}

.fl-highlight-green {
    color: #27ae60;
    font-weight: bold;
}