﻿/* GFL Application - Frontend Styles v1.3.0 */
/* 适配 AeroCore 主题风格 */

.gfl-form-container {
    margin: 20px 0;
}

.gfl-message {
    padding: 12px 16px;
    margin-bottom: 16px;
    border-radius: var(--border-radius-sm, 3px);
    display: none;
    font-size: 14px;
}

.gfl-message.gfl-success {
    background: rgba(39, 174, 96, 0.1);
    color: #27ae60;
    border: 1px solid rgba(39, 174, 96, 0.2);
    display: block;
}

.gfl-message.gfl-error {
    background: rgba(231, 76, 60, 0.1);
    color: #e74c3c;
    border: 1px solid rgba(231, 76, 60, 0.2);
    display: block;
}

/* 两列布局 */
.gfl-form-row {
    display: flex;
    gap: 16px;
    margin-bottom: 16px;
}

.gfl-form-row .gfl-form-group {
    flex: 1;
    margin-bottom: 0;
}

/* 单列布局 */
.gfl-form-group {
    margin-bottom: 16px;
}

.gfl-form-group label {
    display: block;
    margin-bottom: 6px;
    font-weight: 500;
    color: var(--color-text, #333);
    font-size: 14px;
}

.gfl-form-group label .gfl-required {
    color: #e74c3c;
    margin-left: 2px;
}

.gfl-form-group input[type="text"],
.gfl-form-group input[type="email"],
.gfl-form-group input[type="url"],
.gfl-form-group textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--border-color, #e0e0e0);
    border-radius: var(--border-radius-sm, 3px);
    font-size: 14px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    box-sizing: border-box;
    background: var(--bg-input, #fff);
    color: var(--color-text, #333);
}

.gfl-form-group input:focus,
.gfl-form-group textarea:focus {
    outline: none;
    border-color: var(--theme-color, #41B883);
    box-shadow: 0 0 0 2px rgba(65, 184, 131, 0.15);
}

.gfl-form-group input::placeholder,
.gfl-form-group textarea::placeholder {
    color: #999;
}

.gfl-form-group textarea {
    min-height: 80px;
    resize: vertical;
    line-height: 1.6;
}

.gfl-form-group .gfl-hint {
    font-size: 12px;
    color: #888;
    margin-top: 4px;
    line-height: 1.4;
}

.gfl-form-group .gfl-hint.gfl-hint-error {
    color: #e74c3c;
}

.gfl-form-group input.gfl-input-error {
    border-color: #e74c3c;
}

/* 提交按钮区域 - 居中 */
.gfl-submit-area {
    display: flex;
    justify-content: center;
    margin-top: 24px;
}

.gfl-submit-btn {
    padding: 12px 40px;
    background: linear-gradient(135deg, #41B883 0%, #35a872 100%);
    color: #fff;
    border: none;
    border-radius: var(--border-radius-sm, 3px);
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 2px 8px rgba(65, 184, 131, 0.3);
}

.gfl-submit-btn:hover {
    background: linear-gradient(135deg, #35a872 0%, #2d9663 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(65, 184, 131, 0.4);
}

.gfl-submit-btn:active {
    transform: translateY(0);
}

.gfl-submit-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.gfl-loading {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: gfl-spin 0.8s linear infinite;
    margin-right: 8px;
    vertical-align: middle;
}

@keyframes gfl-spin {
    to { transform: rotate(360deg); }
}

/* 弹窗遮罩 */
.gfl-captcha-modal,
.gfl-native-captcha-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 10002;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(2px);
}

.gfl-captcha-modal.gfl-modal-show,
.gfl-native-captcha-modal.gfl-modal-show {
    display: flex;
}

/* 弹窗内容 */
.gfl-captcha-modal-content {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    width: 380px;
    max-width: 90vw;
    overflow: hidden;
    animation: gfl-modal-in 0.3s ease;
}

@keyframes gfl-modal-in {
    from {
        opacity: 0;
        transform: scale(0.9) translateY(-20px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.gfl-captcha-modal-header {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px 20px 16px;
    position: relative;
}

.gfl-captcha-modal-header h3 {
    margin: 0;
    font-size: 17px;
    font-weight: 600;
    color: #333;
}

.gfl-captcha-modal-close {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    background: #f5f5f5;
    border: none;
    font-size: 18px;
    color: #999;
    cursor: pointer;
    padding: 0;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s ease;
}

.gfl-captcha-modal-close:hover {
    background: #eee;
    color: #666;
}

.gfl-captcha-modal-body {
    padding: 20px;
}

.gfl-captcha-hint {
    text-align: center;
    color: #666;
    font-size: 14px;
    margin: 0 0 16px 0;
}

/* 阿里云验证码容器 */
#captcha-element {
    min-height: 40px;
    margin-bottom: 16px;
}

.gfl-captcha-btn-wrapper {
    display: flex;
    justify-content: center;
}

.gfl-captcha-trigger-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 28px;
    background: linear-gradient(135deg, #41B883 0%, #35a872 100%);
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 2px 8px rgba(65, 184, 131, 0.3);
}

.gfl-captcha-trigger-btn:hover {
    background: linear-gradient(135deg, #35a872 0%, #2d9663 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(65, 184, 131, 0.4);
}

.gfl-captcha-trigger-btn:active {
    transform: translateY(0);
}

/* 验证成功状态 */
.gfl-captcha-modal.gfl-verified .gfl-captcha-trigger-btn {
    background: linear-gradient(135deg, #27ae60 0%, #2ecc71 100%);
    cursor: default;
}

.gfl-captcha-modal.gfl-verified .gfl-captcha-hint {
    color: #27ae60;
}

/* 验证失败状态 */
.gfl-captcha-modal.gfl-error .gfl-captcha-trigger-btn {
    border-color: #e74c3c;
    animation: gfl-shake 0.5s ease;
}

@keyframes gfl-shake {
    0%, 100% { transform: translateX(0); }
    10%, 30%, 50%, 70%, 90% { transform: translateX(-5px); }
    20%, 40%, 60%, 80% { transform: translateX(5px); }
}

/* ===== 自研滑块验证码 ===== */
.gfl-native-captcha {
    margin: 4px 0 18px;
}

.gfl-captcha-track {
    position: relative;
    width: 100%;
    min-width: 300px;
    height: 44px;
    background: #f0f2f5;
    border: 1px solid #e2e5ea;
    border-radius: 8px;
    overflow: hidden;
    user-select: none;
    -webkit-user-select: none;
    box-sizing: border-box;
}

.gfl-captcha-bg {
    position: absolute;
    inset: 0;
    background: repeating-linear-gradient(
        45deg,
        #f0f2f5,
        #f0f2f5 10px,
        #e9ecf1 10px,
        #e9ecf1 20px
    );
}

/* 目标槽位 */
.gfl-captcha-gap {
    position: absolute;
    top: 0;
    left: 0;
    width: 44px;
    height: 100%;
    background: rgba(65, 188, 135, 0.22);
    border: 1px dashed #41BC87;
    border-radius: 6px;
    box-sizing: border-box;
    pointer-events: none;
}

/* 拖动滑块 */
.gfl-captcha-handle {
    position: absolute;
    top: 0;
    left: 0;
    width: 44px;
    height: 100%;
    background: linear-gradient(135deg, #4ec798 0%, #41BC87 100%);
    border-radius: 6px;
    cursor: grab;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    box-shadow: 0 2px 6px rgba(65, 184, 131, 0.4);
    z-index: 2;
    touch-action: none;
}

.gfl-captcha-handle:active {
    cursor: grabbing;
}

.gfl-captcha-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #8a909c;
    font-size: 13px;
    pointer-events: none;
    white-space: nowrap;
    z-index: 1;
}

/* 验证成功 */
.gfl-captcha-track.gfl-captcha-ok {
    border-color: #41BC87;
    background: rgba(65, 188, 135, 0.12);
}

.gfl-captcha-track.gfl-captcha-ok .gfl-captcha-text {
    color: #2e9c6e;
}

.gfl-captcha-handle.gfl-captcha-handle-ok {
    background: linear-gradient(135deg, #41BC87 0%, #2e9c6e 100%);
}

/* 验证失败（抖动提示） */
.gfl-captcha-track.gfl-captcha-err {
    border-color: #e74c3c;
    animation: gfl-shake 0.5s ease;
}

/* 未验证提示（抖动） */
.gfl-captcha-track.gfl-captcha-warn {
    border-color: #f0a020;
    animation: gfl-shake 0.5s ease;
}

/* 暗色模式适配 */
html[data-theme="dark"] .gfl-captcha-track {
    background: #2a2d33;
    border-color: #3a3f47;
}

html[data-theme="dark"] .gfl-captcha-bg {
    background: repeating-linear-gradient(
        45deg,
        #2a2d33,
        #2a2d33 10px,
        #32363d 10px,
        #32363d 20px
    );
}

html[data-theme="dark"] .gfl-captcha-gap {
    background: rgba(65, 184, 131, 0.18);
}

html[data-theme="dark"] .gfl-captcha-text {
    color: #9aa0aa;
}

html[data-theme="dark"] .gfl-captcha-track.gfl-captcha-ok {
    background: rgba(65, 184, 131, 0.15);
}

/* 暗色模式适配 */
html[data-theme="dark"] .gfl-captcha-modal-content {
    background: #2a2a2a;
}

html[data-theme="dark"] .gfl-captcha-modal-header {
    background: #333;
    border-bottom-color: #444;
}

html[data-theme="dark"] .gfl-captcha-modal-header h3 {
    color: #eee;
}

html[data-theme="dark"] .gfl-captcha-modal-close {
    color: #888;
}

html[data-theme="dark"] .gfl-captcha-modal-close:hover {
    background: #444;
    color: #ccc;
}

html[data-theme="dark"] .gfl-captcha-hint {
    color: #aaa;
}

html[data-theme="dark"] .gfl-captcha-trigger-btn {
    background: linear-gradient(135deg, #41B883 0%, #35a872 100%);
    box-shadow: 0 2px 8px rgba(65, 184, 131, 0.4);
}

html[data-theme="dark"] .gfl-captcha-trigger-btn:hover {
    background: linear-gradient(135deg, #35a872 0%, #2d9663 100%);
}

/* 响应式 - 移动端 */
@media (max-width: 600px) {
    .gfl-form-row {
        flex-direction: column;
        gap: 0;
    }

    .gfl-form-row .gfl-form-group {
        margin-bottom: 16px;
    }

    .gfl-submit-btn {
        width: 100%;
        padding: 14px 40px;
    }

    .gfl-captcha-modal-content {
        width: 95vw;
        margin: 20px;
    }
}

/* ==================== */
/* 暗色模式适配 - 申请表单 */
/* ==================== */

html[data-theme="dark"] .gfl-form-container {
    background: transparent;
}

html[data-theme="dark"] .gfl-form-group label {
    color: #e0e0e0;
}

html[data-theme="dark"] .gfl-form-group label .gfl-required {
    color: #ff6b6b;
}

html[data-theme="dark"] .gfl-form-group input[type="text"],
html[data-theme="dark"] .gfl-form-group input[type="email"],
html[data-theme="dark"] .gfl-form-group input[type="url"],
html[data-theme="dark"] .gfl-form-group textarea {
    background: #2a2a2a;
    border-color: #444;
    color: #e0e0e0;
}

html[data-theme="dark"] .gfl-form-group input:focus,
html[data-theme="dark"] .gfl-form-group textarea:focus {
    border-color: #41B883;
    box-shadow: 0 0 0 2px rgba(65, 184, 131, 0.25);
}

html[data-theme="dark"] .gfl-form-group input::placeholder,
html[data-theme="dark"] .gfl-form-group textarea::placeholder {
    color: #777;
}

html[data-theme="dark"] .gfl-form-group .gfl-hint {
    color: #888;
}

html[data-theme="dark"] .gfl-form-group .gfl-hint.gfl-hint-error {
    color: #ff6b6b;
}

html[data-theme="dark"] .gfl-form-group input.gfl-input-error {
    border-color: #ff6b6b;
}

html[data-theme="dark"] .gfl-message.gfl-success {
    background: rgba(65, 184, 131, 0.15);
    color: #6dd5a0;
    border-color: rgba(65, 184, 131, 0.3);
}

html[data-theme="dark"] .gfl-message.gfl-error {
    background: rgba(255, 107, 107, 0.15);
    color: #ff8a8a;
    border-color: rgba(255, 107, 107, 0.3);
}

html[data-theme="dark"] .gfl-submit-btn {
    background: linear-gradient(135deg, #41B883 0%, #35a872 100%);
    box-shadow: 0 2px 8px rgba(65, 184, 131, 0.4);
}

html[data-theme="dark"] .gfl-submit-btn:hover {
    background: linear-gradient(135deg, #35a872 0%, #2d9663 100%);
    box-shadow: 0 4px 12px rgba(65, 184, 131, 0.5);
}

html[data-theme="dark"] .gfl-submit-btn:disabled {
    background: #555;
}

/* ==================== */
/* 小工具样式 */
/* ==================== */

.gfl-links-widget-wrapper {
    background: transparent;
}

.fl-links-widget-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 0 10px 0;
    border-bottom: 1px solid var(--border-color, #e0e0e0);
    margin-bottom: 12px;
}

.fl-links-widget-title-wrap {
    display: flex;
    align-items: center;
    gap: 10px;
}

.fl-links-widget-icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.fl-links-widget-title {
    margin: 0;
    font-size: 15px;
    font-weight: 600;
    color: var(--color-text, #333);
}

.fl-links-widget-subtitle {
    font-size: 12px;
    color: #888;
    margin-left: 4px;
}

.fl-links-widget-apply {
    padding: 6px 14px;
    background: linear-gradient(135deg, #41B883 0%, #35a872 100%);
    color: #fff;
    text-decoration: none;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
    transition: all 0.2s ease;
    border: none;
    cursor: pointer;
}

.fl-links-widget-apply:hover {
    background: linear-gradient(135deg, #35a872 0%, #2d9663 100%);
    color: #fff;
    transform: translateY(-1px);
}

.fl-links-widget-body {
    display: flex;
    flex-wrap: wrap;
    gap: 0;
}

.fl-links-widget-item {
    display: inline-block;
    font-size: 14px;
    color: var(--color-text, #333);
    text-decoration: none;
    padding: 4px 0;
    margin-right: 12px;
    transition: color 0.2s ease;
    position: relative;
}

.fl-links-widget-item:hover {
    color: var(--theme-color, #41B883);
}

/* 链接之间的分隔符 */
.fl-links-widget-item:not(:last-child)::after {
    content: '·';
    position: absolute;
    right: -8px;
    color: #ccc;
    font-weight: normal;
}

.fl-links-widget-item-name {
    /* 继承父元素样式 */
}

.fl-links-widget-empty {
    color: #888;
    font-size: 14px;
    font-style: italic;
}

/* 暗色模式适配 */
html[data-theme="dark"] .fl-links-widget-header {
    border-bottom-color: #333;
}

html[data-theme="dark"] .fl-links-widget-title {
    color: #eee;
}

html[data-theme="dark"] .fl-links-widget-subtitle {
    color: #888;
}

html[data-theme="dark"] .fl-links-widget-item {
    color: #ccc;
}

html[data-theme="dark"] .fl-links-widget-item:hover {
    color: #41B883;
}

html[data-theme="dark"] .fl-links-widget-item:not(:last-child)::after {
    color: #555;
}

/* 响应式 */
@media (max-width: 768px) {
    .fl-links-widget-header {
        flex-direction: row;
        flex-wrap: wrap;
        align-items: center;
        gap: 8px;
    }

    .fl-links-widget-apply {
        flex-shrink: 0;
    }

    .fl-links-widget-body {
        gap: 0;
    }
}

/* ====================================================== */
/* [gfl_links] 短代码 - 多布局方案 v1.3.0                  */
/* ====================================================== */

/* ---------- 公共:无友链提示 ---------- */
.gfl-no-links {
    color: #888;
    font-size: 14px;
    padding: 20px 0;
    text-align: center;
}

/* ---------- 公共:全局容器 ---------- */
.gfl-links {
    margin: 20px 0;
    font-size: 14px;
}

/* ============================================ */
/* 方案 A:卡片网格 gfl-links--card              */
/* 适用:绝大多数友链页(主推)                    */
/* ============================================ */
.gfl-links--card {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 16px;
}

.gfl-card {
    position: relative;
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 18px;
    background: var(--bg-content, #fff);
    border: 1px solid var(--border-color, #e8e8e8);
    border-radius: 10px;
    text-decoration: none;
    color: var(--color-text, #333);
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
}

.gfl-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(65, 184, 131, 0.04), rgba(65, 184, 131, 0));
    opacity: 0;
    transition: opacity 0.25s ease;
    pointer-events: none;
}

.gfl-card:hover {
    border-color: var(--theme-color, #41B883);
    box-shadow: 0 6px 20px rgba(65, 184, 131, 0.15);
    transform: translateY(-2px);
    color: var(--color-text, #333);
}

.gfl-card:hover::before {
    opacity: 1;
}

.gfl-card-logo-wrap {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    border-radius: 10px;
    overflow: hidden;
    background: linear-gradient(135deg, #f5f7fa 0%, #e4e7ed 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
}

.gfl-card-logo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.gfl-card-initial {
    font-size: 20px;
    font-weight: 700;
    color: #41B883;
    letter-spacing: -0.5px;
}

.gfl-card-body {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.gfl-card-name {
    margin: 0 !important;
    margin-bottom: 0px !important;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.3;
    color: var(--color-text, #2c3e50);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.gfl-card-host {
    font-size: 12px;
    color: #888;
    line-height: 1.2;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.gfl-card-desc {
    margin: 4px 0 0;
    font-size: 12px;
    color: #888;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.gfl-card-arrow {
    flex-shrink: 0;
    color: #ccc;
    transition: all 0.25s ease;
}

.gfl-card:hover .gfl-card-arrow {
    color: var(--theme-color, #41B883);
    transform: translate(2px, -2px);
}

/* ============================================ */
/* 方案 B:横向标签流 gfl-links--tag              */
/* 适用:侧边栏 / 友链数量少 / 紧凑场景          */
/* ============================================ */
.gfl-links--tag {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 10px;
}

.gfl-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    background: var(--bg-content, #fff);
    border: 1px solid var(--border-color, #e0e0e0);
    border-radius: 999px;
    text-decoration: none;
    color: var(--color-text, #333);
    font-size: 13px;
    line-height: 1.4;
    transition: all 0.2s ease;
}

.gfl-tag:hover {
    background: rgba(65, 184, 131, 0.08);
    border-color: var(--theme-color, #41B883);
    color: var(--theme-color, #41B883);
    transform: translateY(-1px);
}

.gfl-tag-logo {
    width: 16px;
    height: 16px;
    border-radius: 3px;
    object-fit: cover;
}

.gfl-tag-name {
    font-weight: 500;
}

/* ============================================ */
/* 方案 C:信息卡片墙 gfl-links--wall              */
/* 适用:独立友链页(杂志风,视觉冲击强)           */
/* ============================================ */
.gfl-links--wall {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    grid-auto-rows: 160px;
    grid-auto-flow: dense;
    gap: 14px;
}

.gfl-wall-item {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 16px;
    background: var(--bg-content, #fff);
    border: 1px solid var(--border-color, #e8e8e8);
    border-radius: 12px;
    text-decoration: none;
    color: var(--color-text, #333);
    text-align: center;
    overflow: hidden;
    transition: all 0.3s ease;
}

.gfl-wall-item--wide {
    grid-column: span 2;
}

.gfl-wall-item--tall {
    grid-row: span 2;
}

.gfl-wall-item:hover {
    border-color: var(--theme-color, #41B883);
    box-shadow: 0 8px 24px rgba(65, 184, 131, 0.18);
    transform: translateY(-3px);
    color: var(--color-text, #333);
}

.gfl-wall-item::before {
    content: '';
    position: absolute;
    inset: -50% -50% auto auto;
    width: 140px;
    height: 140px;
    background: radial-gradient(circle, rgba(65, 184, 131, 0.08), transparent 70%);
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gfl-wall-item:hover::before {
    opacity: 1;
}

.gfl-wall-logo-wrap {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    overflow: hidden;
    background: linear-gradient(135deg, #41B883 0%, #35a872 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(65, 184, 131, 0.25);
    margin-bottom: 10px;
    flex-shrink: 0;
}

.gfl-wall-logo {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gfl-wall-initial {
    font-size: 24px;
    font-weight: 700;
    color: #fff;
    letter-spacing: -1px;
}

.gfl-wall-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
    width: 100%;
}

.gfl-wall-name {
    margin: 0;
    font-size: 14px;
    font-weight: 600;
    color: var(--color-text, #2c3e50);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.gfl-wall-host {
    font-size: 11px;
    color: #888;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.gfl-wall-desc {
    margin: 4px 0 0;
    font-size: 12px;
    color: #666;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ============================================ */
/* 方案 D:瀑布流 gfl-links--flow                 */
/* 适用:友链较多 + 描述长短不一                  */
/* ============================================ */
.gfl-links--flow {
    columns: 3;
    column-gap: 16px;
}

.gfl-flow-item {
    display: block;
    break-inside: avoid;
    margin-bottom: 16px;
    padding: 16px;
    background: var(--bg-content, #fff);
    border: 1px solid var(--border-color, #e8e8e8);
    border-radius: 10px;
    text-decoration: none;
    color: var(--color-text, #333);
    transition: all 0.25s ease;
}

.gfl-flow-item:hover {
    border-color: var(--theme-color, #41B883);
    box-shadow: 0 4px 14px rgba(65, 184, 131, 0.15);
    color: var(--color-text, #333);
    transform: translateY(-2px);
}

.gfl-flow-head {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 10px;
}

.gfl-flow-logo {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    object-fit: cover;
    flex-shrink: 0;
    background: #f5f5f5;
}

.gfl-flow-initial {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    flex-shrink: 0;
    background: linear-gradient(135deg, #41B883 0%, #35a872 100%);
    color: #fff;
    font-size: 18px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
}

.gfl-flow-title {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.gfl-flow-name {
    margin: 0;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.3;
    color: var(--color-text, #2c3e50);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.gfl-flow-host {
    font-size: 11px;
    color: #888;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.gfl-flow-desc {
    margin: 0;
    font-size: 13px;
    color: #666;
    line-height: 1.6;
}

/* ============================================ */
/* 响应式                                        */
/* ============================================ */
@media (max-width: 1024px) {
    .gfl-links--flow {
        columns: 2;
    }
    .gfl-links--wall {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    }
}

@media (max-width: 768px) {
    .gfl-links--card {
        grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
        gap: 12px;
    }
    .gfl-links--wall {
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
        grid-auto-rows: 140px;
    }
    .gfl-wall-item--wide {
        grid-column: span 1;
    }
    .gfl-wall-item--tall {
        grid-row: span 1;
    }
    .gfl-links--flow {
        columns: 2;
        column-gap: 12px;
    }
}

@media (max-width: 480px) {
    .gfl-links--card {
        grid-template-columns: 1fr;
    }
    .gfl-links--wall {
        grid-template-columns: repeat(2, 1fr);
    }
    .gfl-links--flow {
        columns: 1;
    }
    .gfl-card {
        padding: 14px;
    }
    .gfl-card-logo-wrap {
        width: 42px;
        height: 42px;
    }
}

/* ============================================ */
/* 暗色模式适配                                  */
/* ============================================ */
html[data-theme="dark"] .gfl-card,
html[data-theme="dark"] .gfl-wall-item,
html[data-theme="dark"] .gfl-flow-item,
html[data-theme="dark"] .gfl-tag {
    background: var(--bg-content, #2a2a2a);
    border-color: var(--border-color, #3a3a3a);
}

html[data-theme="dark"] .gfl-card-name,
html[data-theme="dark"] .gfl-wall-name,
html[data-theme="dark"] .gfl-flow-name {
    color: var(--color-text, #eee);
}

html[data-theme="dark"] .gfl-card-host,
html[data-theme="dark"] .gfl-wall-host,
html[data-theme="dark"] .gfl-flow-host {
    color: #888;
}

html[data-theme="dark"] .gfl-card-desc,
html[data-theme="dark"] .gfl-wall-desc,
html[data-theme="dark"] .gfl-flow-desc {
    color: #aaa;
}

html[data-theme="dark"] .gfl-card-logo-wrap,
html[data-theme="dark"] .gfl-flow-logo {
    background: linear-gradient(135deg, #3a3a3a 0%, #2a2a2a 100%);
}

html[data-theme="dark"] .gfl-tag:hover {
    background: rgba(65, 184, 131, 0.15);
}

/* 旧兼容:保留原始 .gfl-link-item 类的样式以防其他插件/历史引用 */
.gfl-links-list {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.gfl-link-item {
    flex: 0 0 auto;
}

.gfl-link-item a {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    background: var(--bg-content, #fff);
    border: 1px solid var(--border-color, #e0e0e0);
    border-radius: var(--border-radius-sm, 3px);
    text-decoration: none;
    color: var(--color-text, #333);
    transition: all 0.2s ease;
}

.gfl-link-item a:hover {
    border-color: var(--theme-color, #41B883);
    box-shadow: 0 2px 8px rgba(65, 184, 131, 0.15);
}

.gfl-link-logo {
    width: 20px;
    height: 20px;
    border-radius: 2px;
    object-fit: cover;
}

.gfl-link-name {
    font-size: 14px;
    font-weight: 500;
}

.gfl-link-desc {
    display: none;
}

/* ============================================ */
/* 友链布局 - 全局抑制下划线(默认 + hover)     */
/* 用 !important 强制覆盖主题(如 AeroCore)中    */
/* a:hover { text-decoration: underline } 的样式  */
/* ============================================ */
.gfl-card,
.gfl-card:link,
.gfl-card:visited,
.gfl-card:hover,
.gfl-card:active,
.gfl-tag,
.gfl-tag:link,
.gfl-tag:visited,
.gfl-tag:hover,
.gfl-tag:active,
.gfl-wall-item,
.gfl-wall-item:link,
.gfl-wall-item:visited,
.gfl-wall-item:hover,
.gfl-wall-item:active,
.gfl-flow-item,
.gfl-flow-item:link,
.gfl-flow-item:visited,
.gfl-flow-item:hover,
.gfl-flow-item:active,
.gfl-card *,
.gfl-tag *,
.gfl-wall-item *,
.gfl-flow-item *,
/* widget 中的友链项 */
.fl-links-widget-item,
.fl-links-widget-item:link,
.fl-links-widget-item:visited,
.fl-links-widget-item:hover,
.fl-links-widget-item:active,
.fl-links-widget-item *,
/* 旧版短代码兼容(.gfl-link-item a) */
.gfl-link-item a,
.gfl-link-item a:link,
.gfl-link-item a:visited,
.gfl-link-item a:hover,
.gfl-link-item a:active,
.gfl-link-item a * {
    text-decoration: none !important;
}

/* ============================================ */
/* 变更友链按钮样式                              */
/* ============================================ */

.gfl-edit-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 2px;
    background: linear-gradient(135deg, #41B883 0%, #35a872 100%);
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 2px 8px rgba(65, 184, 131, 0.3);
    line-height: 1.4;
}

.gfl-edit-btn:hover {
    background: linear-gradient(135deg, #35a872 0%, #2d9663 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(65, 184, 131, 0.4);
}

.gfl-edit-btn:active {
    transform: translateY(0);
}

/* ============================================ */
/* 变更友链弹窗样式                              */
/* ============================================ */

.gfl-edit-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 10001;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(2px);
}

.gfl-edit-modal.gfl-modal-show {
    display: flex;
}

.gfl-edit-modal-content {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    width: 480px;
    max-width: 92vw;
    max-height: 85vh;
    overflow-y: auto;
    animation: gfl-modal-in 0.3s ease;
}

.gfl-edit-modal-header {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px 20px 16px;
    position: relative;
    border-bottom: 1px solid #f0f0f0;
}

.gfl-edit-modal-title {
    margin: 0;
    font-size: 17px;
    font-weight: 600;
    color: #333;
    line-height: 1.4;
}

.gfl-edit-modal-close {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    background: #f5f5f5;
    border: none;
    font-size: 20px;
    color: #999;
    cursor: pointer;
    padding: 0;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s ease;
    line-height: 1;
}

.gfl-edit-modal-close:hover {
    background: #eee;
    color: #666;
}

.gfl-edit-modal-body {
    padding: 24px 28px 28px;
}

.gfl-edit-step-desc {
    font-size: 14px;
    color: #666;
    margin: 0 0 20px 0;
    line-height: 1.5;
}

/* 变更弹窗表单组 */
.gfl-edit-form-group {
    margin-bottom: 16px;
}

.gfl-edit-form-group label {
    display: block;
    margin-bottom: 6px;
    font-weight: 500;
    color: #333;
    font-size: 14px;
}

.gfl-edit-form-group label .gfl-required {
    color: #e74c3c;
    margin-left: 2px;
}

.gfl-edit-form-group input[type="text"],
.gfl-edit-form-group input[type="email"],
.gfl-edit-form-group input[type="url"],
.gfl-edit-form-group textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    font-size: 14px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    box-sizing: border-box;
    background: #fff;
    color: #333;
}

.gfl-edit-form-group input:focus,
.gfl-edit-form-group textarea:focus {
    outline: none;
    border-color: #41B883;
    box-shadow: 0 0 0 2px rgba(65, 184, 131, 0.15);
}

.gfl-edit-form-group input::placeholder,
.gfl-edit-form-group textarea::placeholder {
    color: #999;
}

.gfl-edit-form-group textarea {
    min-height: 80px;
    resize: vertical;
    line-height: 1.6;
}

.gfl-edit-form-group .gfl-hint {
    font-size: 12px;
    color: #888;
    margin-top: 4px;
    line-height: 1.4;
}

.gfl-edit-form-group .gfl-hint.gfl-hint-error {
    color: #e74c3c;
}

.gfl-edit-form-group input.gfl-input-error {
    border-color: #e74c3c;
}

/* 变更弹窗消息 */
.gfl-edit-message {
    padding: 10px 14px;
    margin-bottom: 16px;
    border-radius: 6px;
    display: none;
    font-size: 13px;
    line-height: 1.5;
}

.gfl-edit-message.gfl-success {
    background: rgba(39, 174, 96, 0.1);
    color: #27ae60;
    border: 1px solid rgba(39, 174, 96, 0.2);
    display: block;
}

.gfl-edit-message.gfl-error {
    background: rgba(231, 76, 60, 0.1);
    color: #e74c3c;
    border: 1px solid rgba(231, 76, 60, 0.2);
    display: block;
}

/* 变更弹窗提交按钮区域 */
.gfl-edit-submit-area {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 20px;
}

.gfl-edit-btn-primary {
    padding: 10px 32px;
    background: linear-gradient(135deg, #41B883 0%, #35a872 100%);
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 2px 8px rgba(65, 184, 131, 0.3);
}

.gfl-edit-btn-primary:hover {
    background: linear-gradient(135deg, #35a872 0%, #2d9663 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(65, 184, 131, 0.4);
}

.gfl-edit-btn-primary:active {
    transform: translateY(0);
}

.gfl-edit-btn-primary:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.gfl-edit-btn-secondary {
    padding: 10px 24px;
    background: #f5f5f5;
    color: #666;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.gfl-edit-btn-secondary:hover {
    background: #eee;
    color: #333;
}

/* 邮箱验证码输入框 */
.gfl-edit-form-group input[name="edit_verify_code"] {
    text-align: center;
    font-size: 22px;
    font-weight: 700;
    letter-spacing: 8px;
    padding: 12px 16px;
    font-family: 'Courier New', Courier, monospace;
}

/* ============================================ */
/* 暗色模式适配 - 变更弹窗                        */
/* ============================================ */

html[data-theme="dark"] .gfl-edit-btn {
    background: linear-gradient(135deg, #41B883 0%, #35a872 100%);
    box-shadow: 0 2px 8px rgba(65, 184, 131, 0.4);
}

html[data-theme="dark"] .gfl-edit-btn:hover {
    background: linear-gradient(135deg, #35a872 0%, #2d9663 100%);
    box-shadow: 0 4px 12px rgba(65, 184, 131, 0.5);
}

html[data-theme="dark"] .gfl-edit-modal-content {
    background: #2a2a2a;
}

html[data-theme="dark"] .gfl-edit-modal-header {
    border-bottom-color: #3a3a3a;
}

html[data-theme="dark"] .gfl-edit-modal-title {
    color: #eee;
}

html[data-theme="dark"] .gfl-edit-modal-close {
    background: #3a3a3a;
    color: #888;
}

html[data-theme="dark"] .gfl-edit-modal-close:hover {
    background: #4a4a4a;
    color: #ccc;
}

html[data-theme="dark"] .gfl-edit-step-desc {
    color: #aaa;
}

html[data-theme="dark"] .gfl-edit-form-group label {
    color: #e0e0e0;
}

html[data-theme="dark"] .gfl-edit-form-group label .gfl-required {
    color: #ff6b6b;
}

html[data-theme="dark"] .gfl-edit-form-group input[type="text"],
html[data-theme="dark"] .gfl-edit-form-group input[type="email"],
html[data-theme="dark"] .gfl-edit-form-group input[type="url"],
html[data-theme="dark"] .gfl-edit-form-group textarea {
    background: #3a3a3a;
    border-color: #4a4a4a;
    color: #e0e0e0;
}

html[data-theme="dark"] .gfl-edit-form-group input:focus,
html[data-theme="dark"] .gfl-edit-form-group textarea:focus {
    border-color: #41B883;
    box-shadow: 0 0 0 2px rgba(65, 184, 131, 0.25);
}

html[data-theme="dark"] .gfl-edit-form-group input::placeholder,
html[data-theme="dark"] .gfl-edit-form-group textarea::placeholder {
    color: #777;
}

html[data-theme="dark"] .gfl-edit-form-group .gfl-hint {
    color: #888;
}

html[data-theme="dark"] .gfl-edit-form-group .gfl-hint.gfl-hint-error {
    color: #ff6b6b;
}

html[data-theme="dark"] .gfl-edit-form-group input.gfl-input-error {
    border-color: #ff6b6b;
}

html[data-theme="dark"] .gfl-edit-message.gfl-success {
    background: rgba(65, 184, 131, 0.15);
    color: #6dd5a0;
    border-color: rgba(65, 184, 131, 0.3);
}

html[data-theme="dark"] .gfl-edit-message.gfl-error {
    background: rgba(255, 107, 107, 0.15);
    color: #ff8a8a;
    border-color: rgba(255, 107, 107, 0.3);
}

html[data-theme="dark"] .gfl-edit-btn-primary {
    background: linear-gradient(135deg, #41B883 0%, #35a872 100%);
    box-shadow: 0 2px 8px rgba(65, 184, 131, 0.4);
}

html[data-theme="dark"] .gfl-edit-btn-primary:hover {
    background: linear-gradient(135deg, #35a872 0%, #2d9663 100%);
    box-shadow: 0 4px 12px rgba(65, 184, 131, 0.5);
}

html[data-theme="dark"] .gfl-edit-btn-primary:disabled {
    background: #555;
}

html[data-theme="dark"] .gfl-edit-btn-secondary {
    background: #3a3a3a;
    color: #aaa;
    border-color: #4a4a4a;
}

html[data-theme="dark"] .gfl-edit-btn-secondary:hover {
    background: #4a4a4a;
    color: #ccc;
}

html[data-theme="dark"] .gfl-edit-form-group input[name="edit_verify_code"] {
    background: #3a3a3a;
    border-color: #4a4a4a;
    color: #e0e0e0;
}

html[data-theme="dark"] .gfl-edit-form-group input[name="edit_verify_code"]:focus {
    border-color: #41B883;
    box-shadow: 0 0 0 2px rgba(65, 184, 131, 0.25);
}

/* 响应式 */
@media (max-width: 600px) {
    .gfl-edit-modal-content {
        width: 95vw;
        margin: 20px;
        max-height: 90vh;
    }

    .gfl-edit-modal-body {
        padding: 20px 16px 24px;
    }

    .gfl-edit-submit-area {
        flex-direction: column;
    }

    .gfl-edit-btn-primary,
    .gfl-edit-btn-secondary {
        width: 100%;
    }
}

/* ============================================================
   单输入框申请友链 [gfl_quick_form]
   ============================================================ */

/* 容器 */
.gfl-quick-form-container {
    position: relative;
    max-width: 640px;
    margin: 24px auto;
    padding: 28px 32px;
    background: #ffffff;
    border: 1px solid #e8e8e8;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
    font-size: 14px;
    color: #333333;
    line-height: 1.6;
}

/* 阻止主题全局 h1-h6 样式(如下划线/边框/背景高亮)侵入 quick-form 内标题 */
.gfl-quick-form-container h1,
.gfl-quick-form-container h2,
.gfl-quick-form-container h3,
.gfl-quick-form-container h4,
.gfl-quick-form-container h5,
.gfl-quick-form-container h6 {
    margin-top: 0;
    padding: 0;
    border: 0;
    border-bottom: 0;
    border-top: 0;
    text-decoration: none;
    box-shadow: none;
    background: none;
    background-image: none;
}

/* 步骤指示器 */
.gfl-quick-steps {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 28px;
    padding-bottom: 20px;
    border-bottom: 1px solid #f0f0f0;
}

.gfl-quick-step {
    display: flex;
    align-items: center;
    color: #999999;
    transition: color 0.2s;
}

.gfl-quick-step-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #f0f0f0;
    color: #999999;
    font-weight: 600;
    font-size: 13px;
    margin-right: 8px;
    transition: background 0.2s, color 0.2s;
}

.gfl-quick-step-label {
    font-size: 13px;
    font-weight: 500;
}

.gfl-quick-step.is-active {
    color: #41B883;
}

.gfl-quick-step.is-active .gfl-quick-step-num {
    background: #41B883;
    color: #ffffff;
    box-shadow: 0 0 0 4px rgba(65, 184, 131, 0.12);
}

.gfl-quick-step.is-done {
    color: #41B883;
}

.gfl-quick-step.is-done .gfl-quick-step-num {
    background: rgba(65, 184, 131, 0.15);
    color: #41B883;
}

.gfl-quick-step-divider {
    width: 48px;
    height: 1px;
    background: #e0e0e0;
    margin: 0 12px;
}

.gfl-quick-step.is-done + .gfl-quick-step-divider,
.gfl-quick-step-divider:has(+ .gfl-quick-step.is-done) {
    background: #41B883;
}

/* 步骤面板 */
.gfl-quick-panel {
    animation: gflQuickFadeIn 0.3s ease-out;
}

@keyframes gflQuickFadeIn {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

.gfl-quick-intro {
    margin: 0 0 20px;
    color: #666666;
    font-size: 13px;
}

.gfl-quick-intro code {
    background: #f5f5f5;
    padding: 2px 6px;
    border-radius: 3px;
    font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
    font-size: 12px;
    color: #41B883;
}

/* 表单字段 */
.gfl-quick-form-group {
    margin-bottom: 18px;
}

.gfl-quick-form-group label {
    display: block;
    margin-bottom: 6px;
    font-weight: 500;
    font-size: 13px;
    color: #333333;
}

.gfl-quick-form-group input[type="text"],
.gfl-quick-form-group input[type="email"],
.gfl-quick-form-group input[type="url"],
.gfl-quick-form-group textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #d9d9d9;
    border-radius: 6px;
    font-size: 14px;
    color: #333333;
    background: #ffffff;
    transition: border-color 0.2s, box-shadow 0.2s;
    box-sizing: border-box;
    font-family: inherit;
}

.gfl-quick-form-group input:focus,
.gfl-quick-form-group textarea:focus {
    border-color: #41B883;
    outline: none;
    box-shadow: 0 0 0 3px rgba(65, 184, 131, 0.12);
}

.gfl-quick-form-group textarea {
    resize: vertical;
    min-height: 72px;
}

/* 步骤1 的输入框带 https:// 前缀 */
.gfl-quick-input-wrap {
    display: flex;
    align-items: stretch;
    border: 1px solid #d9d9d9;
    border-radius: 6px;
    overflow: hidden;
    background: #ffffff;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.gfl-quick-input-wrap:focus-within {
    border-color: #41B883;
    box-shadow: 0 0 0 3px rgba(65, 184, 131, 0.12);
}

.gfl-quick-input-prefix {
    display: flex;
    align-items: center;
    padding: 0 12px;
    background: #fafafa;
    color: #999999;
    font-size: 14px;
    font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
    border-right: 1px solid #e8e8e8;
    user-select: none;
}

.gfl-quick-input-wrap input {
    flex: 1;
    border: none !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    padding: 10px 12px;
    font-size: 14px;
}

.gfl-quick-input-wrap input:focus {
    box-shadow: none !important;
}

/* 提示文字 */
.gfl-quick-form-group .gfl-hint {
    margin: 6px 0 0;
    font-size: 12px;
    color: #999999;
}

/* 按钮 */
.gfl-quick-submit-area {
    display: flex;
    gap: 12px;
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid #f0f0f0;
    justify-content: flex-end;
}

.gfl-quick-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px 24px;
    border: 1px solid transparent;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
    line-height: 1.4;
    white-space: nowrap;
}

.gfl-quick-btn svg {
    flex-shrink: 0;
}

.gfl-quick-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.gfl-quick-btn-primary {
    background: #41B883;
    color: #ffffff;
    border-color: #41B883;
}

.gfl-quick-btn-primary:hover:not(:disabled) {
    background: #36a374;
    border-color: #36a374;
}

.gfl-quick-btn-secondary {
    background: #ffffff;
    color: #555555;
    border-color: #d9d9d9;
}

.gfl-quick-btn-secondary:hover:not(:disabled) {
    border-color: #41B883;
    color: #41B883;
}

/* 消息提示 */
.gfl-quick-message {
    margin-top: 12px;
    padding: 10px 14px;
    border-radius: 6px;
    font-size: 13px;
    display: none;
}

.gfl-quick-message.gfl-success {
    background: rgba(39, 174, 96, 0.1);
    color: #27ae60;
    border: 1px solid rgba(39, 174, 96, 0.2);
    display: block;
}

.gfl-quick-message.gfl-error {
    background: rgba(231, 76, 60, 0.1);
    color: #e74c3c;
    border: 1px solid rgba(231, 76, 60, 0.2);
    display: block;
}

.gfl-quick-message.gfl-warn {
    background: rgba(243, 156, 18, 0.1);
    color: #d68910;
    border: 1px solid rgba(243, 156, 18, 0.25);
    display: block;
}

/* 全局消息(已存在友链场景) */
.gfl-quick-global-msg {
    margin-bottom: 20px;
    padding: 14px 16px;
    border-radius: 8px;
    font-size: 13px;
    line-height: 1.5;
}

.gfl-quick-global-msg.gfl-warn {
    background: #fff7e6;
    color: #874d00;
    border: 1px solid #ffd591;
}

.gfl-quick-global-msg.gfl-warn strong {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
}

.gfl-quick-global-msg .gfl-quick-btn {
    margin-top: 8px;
    padding: 6px 14px;
    font-size: 13px;
}

.gfl-quick-global-msg.gfl-info {
    background: #e6f7ff;
    color: #0050b3;
    border: 1px solid #91d5ff;
}

.gfl-quick-global-msg.gfl-success {
    background: #f6ffed;
    color: #389e0d;
    border: 1px solid #b7eb8f;
}

/* 元数据预览卡 */
.gfl-quick-meta-card {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px;
    margin-bottom: 20px;
    background: #fafafa;
    border: 1px solid #f0f0f0;
    border-radius: 8px;
}

.gfl-quick-meta-logo {
    position: relative;
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    border-radius: 6px;
    overflow: hidden;
    background: #ffffff;
    border: 1px solid #e8e8e8;
}

.gfl-quick-meta-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.gfl-quick-meta-logo-fallback {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #41B883, #36a374);
    color: #ffffff;
    font-size: 20px;
    font-weight: 600;
}

.gfl-quick-meta-info {
    flex: 1;
    min-width: 0;
}

.gfl-quick-meta-name {
    font-size: 15px;
    font-weight: 600;
    color: #333333;
    margin-bottom: 4px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.gfl-quick-meta-url {
    font-size: 12px;
    color: #999999;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
}

/* 步骤3 成功页 */
.gfl-quick-success-icon {
    text-align: center;
    color: #41B883;
    margin: 12px 0 16px;
}

.gfl-quick-success-icon svg {
    display: inline-block;
}

.gfl-quick-success-title {
    margin: 0 0 8px;
    text-align: center;
    font-size: 20px;
    font-weight: 600;
    color: #333333;
    border: 0;
    border-bottom: 0;
    text-decoration: none;
    box-shadow: none;
    background: none;
}

.gfl-quick-success-desc {
    margin: 0 0 24px;
    text-align: center;
    color: #666666;
    font-size: 14px;
}

.gfl-quick-panel .gfl-quick-submit-area {
    justify-content: center;
}

/* 加载遮罩 */
.gfl-quick-loading {
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(2px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    border-radius: 12px;
    z-index: 10;
}

.gfl-quick-loading-spinner {
    width: 36px;
    height: 36px;
    border: 3px solid #e8e8e8;
    border-top-color: #41B883;
    border-radius: 50%;
    animation: gflQuickSpin 0.8s linear infinite;
}

@keyframes gflQuickSpin {
    to { transform: rotate(360deg); }
}

.gfl-quick-loading-text {
    font-size: 13px;
    color: #666666;
}

/* 必填红星 */
.gfl-quick-form-group .gfl-required {
    color: #e74c3c;
    margin-left: 2px;
}

/* 复用现有 loading 小圆圈 */
.gfl-quick-btn .gfl-loading {
    display: inline-block;
    width: 12px;
    height: 12px;
    margin-right: 4px;
    border: 2px solid currentColor;
    border-top-color: transparent;
    border-radius: 50%;
    animation: gflQuickSpin 0.8s linear infinite;
    vertical-align: middle;
}

/* 错误态 */
.gfl-quick-form-group input.gfl-input-error,
.gfl-quick-form-group textarea.gfl-input-error {
    border-color: #e74c3c;
}

.gfl-quick-form-group .gfl-hint.gfl-hint-error {
    color: #e74c3c;
}

/* 响应式 */
@media (max-width: 600px) {
    .gfl-quick-form-container {
        margin: 16px 0;
        padding: 20px 18px;
    }

    .gfl-quick-step-label {
        display: none;
    }

    .gfl-quick-step-divider {
        width: 24px;
        margin: 0 6px;
    }

    .gfl-quick-submit-area {
        flex-direction: column;
    }

    .gfl-quick-btn {
        width: 100%;
    }

    .gfl-quick-input-wrap {
        flex-direction: column;
    }

    .gfl-quick-input-prefix {
        border-right: none;
        border-bottom: 1px solid #e8e8e8;
        padding: 6px 12px;
    }
}

/* 暗色主题 */
html[data-theme="dark"] .gfl-quick-form-container {
    background: #1e1e1e;
    border-color: #2a2a2a;
    color: #e0e0e0;
}

html[data-theme="dark"] .gfl-quick-steps {
    border-bottom-color: #2a2a2a;
}

html[data-theme="dark"] .gfl-quick-intro {
    color: #aaaaaa;
}

html[data-theme="dark"] .gfl-quick-intro code {
    background: #2a2a2a;
    color: #41B883;
}

html[data-theme="dark"] .gfl-quick-form-group label {
    color: #e0e0e0;
}

html[data-theme="dark"] .gfl-quick-form-group input[type="text"],
html[data-theme="dark"] .gfl-quick-form-group input[type="email"],
html[data-theme="dark"] .gfl-quick-form-group input[type="url"],
html[data-theme="dark"] .gfl-quick-form-group textarea {
    background: #2a2a2a;
    border-color: #3a3a3a;
    color: #e0e0e0;
}

html[data-theme="dark"] .gfl-quick-input-wrap {
    background: #2a2a2a;
    border-color: #3a3a3a;
}

html[data-theme="dark"] .gfl-quick-input-prefix {
    background: #1e1e1e;
    color: #888888;
    border-right-color: #3a3a3a;
}

html[data-theme="dark"] .gfl-quick-form-group .gfl-hint {
    color: #777777;
}

html[data-theme="dark"] .gfl-quick-meta-card {
    background: #252525;
    border-color: #2a2a2a;
}

html[data-theme="dark"] .gfl-quick-meta-logo {
    background: #1e1e1e;
    border-color: #3a3a3a;
}

html[data-theme="dark"] .gfl-quick-meta-name {
    color: #e0e0e0;
}

html[data-theme="dark"] .gfl-quick-meta-url {
    color: #888888;
}

html[data-theme="dark"] .gfl-quick-submit-area {
    border-top-color: #2a2a2a;
}

html[data-theme="dark"] .gfl-quick-btn-secondary {
    background: #2a2a2a;
    color: #cccccc;
    border-color: #3a3a3a;
}

html[data-theme="dark"] .gfl-quick-loading {
    background: rgba(30, 30, 30, 0.85);
}

html[data-theme="dark"] .gfl-quick-loading-text {
    color: #aaaaaa;
}

html[data-theme="dark"] .gfl-quick-loading-spinner {
    border-color: #3a3a3a;
    border-top-color: #41B883;
}

html[data-theme="dark"] .gfl-quick-success-title {
    color: #e0e0e0;
}

html[data-theme="dark"] .gfl-quick-success-desc {
    color: #aaaaaa;
}

html[data-theme="dark"] .gfl-quick-global-msg.gfl-warn {
    background: rgba(243, 156, 18, 0.12);
    color: #ffc069;
    border-color: rgba(243, 156, 18, 0.35);
}
}