/* ============================================
   友情链接页面 - 现代精美设计
   ============================================ */

/* ---------- 基础 ---------- */
.gfl-page {
    font-size: 14px;
    line-height: 1.7;
    color: var(--text-content, #334155);
    margin: -1px -1px 0;
}

.gfl-page p {
    margin: 0 0 10px;
}

.gfl-page p:last-child {
    margin-bottom: 0;
}

/* ---------- Hero 区域 ---------- */
.gfl-hero {
    position: relative;
    padding: 60px 40px 70px;
    margin-bottom: 30px;
    overflow: hidden;
    border-radius: 16px;
    background: linear-gradient(135deg, var(--bg-card, #fff) 0%, var(--bg-secondary, #f8fafc) 100%);
    border: 1px solid var(--border-primary, #e5e7eb);
}

.gfl-hero__bg {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
}

.gfl-hero__blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    opacity: 0.4;
    animation: gfl-float 8s ease-in-out infinite;
}

.gfl-hero__blob--1 {
    width: 280px;
    height: 280px;
    background: linear-gradient(135deg, var(--theme-color, #41B883), #6dd5a0);
    top: -80px;
    right: -60px;
    animation-delay: 0s;
}

.gfl-hero__blob--2 {
    width: 200px;
    height: 200px;
    background: linear-gradient(135deg, #a78bfa, #818cf8);
    bottom: -60px;
    left: 10%;
    animation-delay: -3s;
    opacity: 0.3;
}

.gfl-hero__blob--3 {
    width: 150px;
    height: 150px;
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
    top: 30%;
    right: 30%;
    animation-delay: -5s;
    opacity: 0.25;
}

@keyframes gfl-float {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(20px, -20px) scale(1.05); }
    66% { transform: translate(-15px, 15px) scale(0.95); }
}

.gfl-hero__content {
    position: relative;
    z-index: 1;
    max-width: 640px;
}

.gfl-hero__badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    background: rgba(65, 184, 131, 0.12);
    color: var(--theme-color, #41B883);
    border-radius: 999px;
    font-size: 13px;
    font-weight: 500;
    margin-bottom: 18px;
    backdrop-filter: blur(8px);
}

.gfl-hero__title {
    font-size: 38px;
    font-weight: 700;
    color: var(--caption-color, #1e293b);
    margin: 0 0 14px;
    line-height: 1.25;
    letter-spacing: -0.5px;
}

.gfl-hero__desc {
    font-size: 16px;
    color: var(--text-secondary, #475569);
    margin: 0 0 28px;
    line-height: 1.7;
}

.gfl-hero__stats {
    display: flex;
    gap: 40px;
}

.gfl-hero__stat {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.gfl-hero__stat-num {
    font-size: 28px;
    font-weight: 700;
    color: var(--theme-color, #41B883);
    line-height: 1.2;
    background: linear-gradient(135deg, var(--theme-color, #41B883), #6dd5a0);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.gfl-hero__stat-label {
    font-size: 13px;
    color: var(--text-tertiary, #64748b);
}

/* ---------- 内容区 ---------- */
.gfl-content {
    padding: 0;
}

/* ---------- 区块通用 ---------- */
.gfl-section {
    margin-bottom: 40px;
}

.gfl-section--links {
    margin-bottom: 36px;
}

.gfl-section__header {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 22px;
}

.gfl-section__header--center {
    justify-content: center;
    text-align: center;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 28px;
}

.gfl-section__icon {
    flex-shrink: 0;
    width: 46px;
    height: 46px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(65, 184, 131, 0.12), rgba(65, 184, 131, 0.06));
    color: var(--theme-color, #41B883);
    border-radius: 12px;
    border: 1px solid rgba(65, 184, 131, 0.2);
}

.gfl-section__icon--gradient {
    background: linear-gradient(135deg, var(--theme-color, #41B883), #6dd5a0);
    color: #fff;
    border: none;
    box-shadow: 0 4px 14px rgba(65, 184, 131, 0.4);
}

.gfl-section__title {
    font-size: 22px;
    font-weight: 700;
    color: var(--caption-color, #1e293b);
    margin: 0;
    line-height: 1.3;
    letter-spacing: -0.3px;
}

.gfl-section__subtitle {
    font-size: 14px;
    color: var(--text-tertiary, #64748b);
    margin: 4px 0 0;
    line-height: 1.5;
}

/* ---------- 信息卡片组 ---------- */
.gfl-cards-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 40px;
}

.gfl-card-box {
    position: relative;
    padding: 26px 24px;
    background: var(--bg-card, #fff);
    border: 1px solid var(--border-primary, #e5e7eb);
    border-radius: 14px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
}

.gfl-card-box::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--theme-color, #41B883);
    opacity: 0.8;
}

.gfl-card-box--primary::before {
    background: linear-gradient(90deg, var(--theme-color, #41B883), #6dd5a0);
}

.gfl-card-box--accent::before {
    background: linear-gradient(90deg, #8b5cf6, #6366f1);
}

.gfl-card-box--warn::before {
    background: linear-gradient(90deg, #f59e0b, #ef4444);
}

.gfl-card-box:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.08);
    border-color: var(--border-hover, #cbd5e1);
}

.gfl-card-box__icon {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    margin-bottom: 16px;
    color: var(--theme-color, #41B883);
    background: rgba(65, 184, 131, 0.1);
}

.gfl-card-box--primary .gfl-card-box__icon {
    color: var(--theme-color, #41B883);
    background: rgba(65, 184, 131, 0.1);
}

.gfl-card-box--accent .gfl-card-box__icon {
    color: #8b5cf6;
    background: rgba(139, 92, 246, 0.1);
}

.gfl-card-box--warn .gfl-card-box__icon {
    color: #f59e0b;
    background: rgba(245, 158, 11, 0.1);
}

.gfl-card-box__title {
    font-size: 17px;
    font-weight: 600;
    color: var(--caption-color, #1e293b);
    margin: 0 0 12px;
    line-height: 1.4;
}

.gfl-card-box__content {
    font-size: 14px;
    color: var(--text-secondary, #475569);
    line-height: 1.7;
}

.gfl-card-box__content p {
    margin: 0 0 6px;
}

.gfl-card-box__content p:last-child {
    margin-bottom: 0;
}

/* ---------- 关于本站列表 ---------- */
.gfl-about-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.gfl-about-list li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 8px 0;
    border-bottom: 1px dashed var(--border-secondary, #f1f5f9);
    font-size: 13.5px;
}

.gfl-about-list li:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.gfl-about-list li:first-child {
    padding-top: 0;
}

.gfl-about-list__label {
    flex-shrink: 0;
    color: var(--text-tertiary, #64748b);
    min-width: 72px;
    font-size: 13px;
}

.gfl-about-list__value {
    flex: 1;
    color: var(--text-primary, #1e293b);
    word-break: break-all;
    font-weight: 500;
}

.gfl-about-list__value--link {
    color: var(--color-link, #41B883);
    font-weight: 400;
    font-size: 13px;
}

/* ---------- 申请区域 ---------- */
.gfl-section--apply {
    margin-bottom: 10px;
}

.gfl-apply-box {
    max-width: 1280px;
    margin: 0 auto;
    padding: 36px 40px;
    background: var(--bg-card, #fff);
    border: 1px solid var(--border-primary, #e5e7eb);
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
}

/* ============================================
   深色模式适配
   ============================================ */
html[data-theme="dark"] .gfl-hero {
    background: linear-gradient(135deg, var(--bg-card, #2a2a2a) 0%, var(--bg-secondary, #222) 100%);
    border-color: var(--border-primary, #3a3a3a);
}

html[data-theme="dark"] .gfl-hero__blob--1 {
    opacity: 0.25;
}

html[data-theme="dark"] .gfl-hero__blob--2 {
    opacity: 0.18;
}

html[data-theme="dark"] .gfl-hero__blob--3 {
    opacity: 0.15;
}

html[data-theme="dark"] .gfl-hero__badge {
    background: rgba(65, 184, 131, 0.18);
}

html[data-theme="dark"] .gfl-hero__title {
    color: var(--caption-color, #e8e8e8);
}

html[data-theme="dark"] .gfl-hero__desc {
    color: var(--text-secondary, #b0b0b0);
}

html[data-theme="dark"] .gfl-hero__stat-label {
    color: var(--text-tertiary, #888);
}

html[data-theme="dark"] .gfl-section__title {
    color: var(--caption-color, #e8e8e8);
}

html[data-theme="dark"] .gfl-section__subtitle {
    color: var(--text-tertiary, #888);
}

html[data-theme="dark"] .gfl-section__icon {
    background: rgba(65, 184, 131, 0.15);
    border-color: rgba(65, 184, 131, 0.25);
}

html[data-theme="dark"] .gfl-card-box {
    background: var(--bg-card, #2a2a2a);
    border-color: var(--border-primary, #3a3a3a);
}

html[data-theme="dark"] .gfl-card-box:hover {
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.3);
    border-color: var(--border-hover, #555);
}

html[data-theme="dark"] .gfl-card-box__title {
    color: var(--caption-color, #e8e8e8);
}

html[data-theme="dark"] .gfl-card-box__content {
    color: var(--text-secondary, #b0b0b0);
}

html[data-theme="dark"] .gfl-about-list li {
    border-bottom-color: var(--border-secondary, #2a2a2a);
}

html[data-theme="dark"] .gfl-about-list__label {
    color: var(--text-tertiary, #888);
}

html[data-theme="dark"] .gfl-about-list__value {
    color: var(--text-primary, #e8e8e8);
}

html[data-theme="dark"] .gfl-about-list__value--link {
    color: var(--color-link, #41B883);
}

html[data-theme="dark"] .gfl-apply-box {
    background: var(--bg-card, #2a2a2a);
    border-color: var(--border-primary, #3a3a3a);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

/* ============================================
   自定义内容区（页面内容编辑器模式）
   ============================================ */
.gfl-section--custom {
    margin-bottom: 40px;
}

.gfl-custom-content {
    background: var(--bg-card, #ffffff);
    border: 1px solid var(--border-primary, #e8e8e8);
    border-radius: 14px;
    padding: 32px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
    font-size: 15px;
    line-height: 1.8;
    color: var(--text-content, #333);
}

.gfl-custom-content > *:first-child {
    margin-top: 0;
}

.gfl-custom-content > *:last-child {
    margin-bottom: 0;
}

.gfl-custom-content h2 {
    font-size: 20px;
    font-weight: 600;
    margin: 28px 0 14px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--theme-color, #41B883);
    color: var(--text-primary, #222);
}

.gfl-custom-content h2:first-child {
    margin-top: 0;
}

.gfl-custom-content h3 {
    font-size: 17px;
    font-weight: 600;
    margin: 22px 0 12px;
    color: var(--text-primary, #222);
}

.gfl-custom-content p {
    margin: 0 0 14px;
}

.gfl-custom-content a {
    color: var(--color-link, #41B883);
    text-decoration: none;
    transition: color 0.2s;
}

.gfl-custom-content a:hover {
    color: var(--color-link-hover, #339966);
    text-decoration: underline;
}

.gfl-custom-content ul,
.gfl-custom-content ol {
    margin: 0 0 14px;
    padding-left: 24px;
}

.gfl-custom-content li {
    margin-bottom: 6px;
}

.gfl-custom-content code {
    background: var(--bg-secondary, #f5f5f5);
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 13px;
}

.gfl-custom-content blockquote {
    margin: 16px 0;
    padding: 12px 20px;
    border-left: 4px solid var(--theme-color, #41B883);
    background: var(--bg-secondary, #f9f9f9);
    border-radius: 0 8px 8px 0;
    color: var(--text-secondary, #666);
}

/* 深色模式 - 自定义内容区 */
html[data-theme="dark"] .gfl-custom-content {
    background: var(--bg-card, #2a2a2a);
    border-color: var(--border-primary, #3a3a3a);
    color: var(--text-content, #ccc);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.2);
}

html[data-theme="dark"] .gfl-custom-content h2,
html[data-theme="dark"] .gfl-custom-content h3 {
    color: var(--text-primary, #e8e8e8);
}

html[data-theme="dark"] .gfl-custom-content code {
    background: var(--bg-secondary, #3a3a3a);
}

html[data-theme="dark"] .gfl-custom-content blockquote {
    background: var(--bg-secondary, #333);
    color: var(--text-secondary, #aaa);
}

/* ============================================
   响应式
   ============================================ */
@media (max-width: 960px) {
    .gfl-cards-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .gfl-hero {
        padding: 40px 24px 50px;
        border-radius: 12px;
    }

    .gfl-hero__title {
        font-size: 28px;
    }

    .gfl-hero__desc {
        font-size: 15px;
    }

    .gfl-hero__stats {
        gap: 30px;
    }

    .gfl-hero__stat-num {
        font-size: 24px;
    }

    .gfl-section {
        margin-bottom: 32px;
    }

    .gfl-section__title {
        font-size: 19px;
    }

    .gfl-section__icon {
        width: 40px;
        height: 40px;
    }

    .gfl-section__icon svg {
        width: 18px;
        height: 18px;
    }

    .gfl-cards-grid {
        grid-template-columns: 1fr;
        gap: 16px;
        margin-bottom: 32px;
    }

    .gfl-card-box {
        padding: 22px 20px;
        border-radius: 12px;
    }

    .gfl-apply-box {
        padding: 24px 20px;
        border-radius: 12px;
    }
}

@media (max-width: 480px) {
    .gfl-hero {
        padding: 32px 20px 40px;
    }

    .gfl-hero__title {
        font-size: 24px;
    }

    .gfl-hero__stats {
        gap: 24px;
    }

    .gfl-hero__blob--1 {
        width: 200px;
        height: 200px;
    }

    .gfl-hero__blob--2 {
        width: 150px;
        height: 150px;
    }

    .gfl-section__header {
        gap: 10px;
        margin-bottom: 18px;
    }

    .gfl-section__title {
        font-size: 18px;
    }
}
