/* ==========================================================
   findfree · 足球门户模板 (MIPCMS)
   参考: findfreedeathrecords.com
   主色: #28b783 (绿) / #0a5c42 (深绿) / #e89b17 (橙)
   ========================================================== */
:root {
    --ff-primary: #28b783;
    --ff-primary-dark: #185941;
    --ff-accent: #e89b17;
    --ff-cyan: #36a19a;
    --ff-dark: #03231b;
    --ff-dark2: #0a5041;
}

/* === Global === */
body { font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif; }
a { text-decoration: none; }
img { max-width: 100%; }
::selection { background: rgba(0,0,0,.08); }

/* === Header === */
.ff-header { background: #fff; }
.ff-header .navbar-brand { color: #0a5c42; font-size: 21px; font-weight: 800; letter-spacing: .5px; }
.ff-header .navbar-brand img { height: 40px; width: auto; margin-right: 10px; }
.ff-header .nav-link { color: #333; font-size: .95rem; padding: .5rem .75rem !important; }
.ff-header .nav-link:hover, .ff-header .nav-link.active { color: #0a5c42; font-weight: 700; }
.ff-header .search-box { width: 150px; border: 1px solid #dee2e6; border-radius: 20px; padding: .25rem .75rem; font-size: .85rem; }
.ff-header .search-box:focus { outline: 2px solid var(--ff-cyan); border-color: transparent; box-shadow: none; }

/* === Hero === */
.ff-hero { background: linear-gradient(135deg, #f8fdf9 0%, #e8f5e9 100%); padding: 4rem 0; }
.ff-hero h1 { font-size: 2.2rem; color: #1a1a1a; }
.ff-hero h1 strong { color: var(--ff-primary-dark); }
.ff-hero .lead { color: #555; font-size: 1.05rem; line-height: 1.7; }
.ff-hero-buttons { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.5rem; }
.ff-hero-buttons a { display: inline-flex; align-items: center; gap: .4rem; padding: .6rem 1.2rem; border-radius: 25px; font-size: .9rem; font-weight: 600; color: #fff; background: var(--ff-primary); transition: all .2s; }
.ff-hero-buttons a:hover { background: var(--ff-primary-dark); color: #fff; transform: translateY(-2px); }
.ff-hero-buttons a:nth-child(2) { background: var(--ff-accent); }
.ff-hero-buttons a:nth-child(2):hover { background: #c98510; }
.ff-hero-buttons a:nth-child(3) { background: var(--ff-cyan); }
.ff-hero-buttons a:nth-child(3):hover { background: #2a8580; }
.ff-hero-img { border-radius: 16px; box-shadow: 0 10px 30px rgba(0,0,0,.1); max-height: 320px; }

/* === Section Divider === */
#main-content > section + section { border-top: 1px solid rgba(0,0,0,.05); }

/* === Article Cards (3-col grid) === */
.ff-card { transition: transform .25s ease, box-shadow .25s ease; }
.ff-card:hover { transform: translateY(-4px); box-shadow: 0 .6rem 1.4rem rgba(0,0,0,.10) !important; }
.ff-card-img { position: relative; width: 100%; padding-top: 56.25%; overflow: hidden; border-radius: .5rem .5rem 0 0; }
.ff-card-img mip-img { position: absolute; top: 0; left: 0; width: 100%; height: 100%; }
.ff-card-img mip-img img { object-fit: cover; width: 100%; height: 100%; }
.ff-card-title { font-size: .95rem; font-weight: 700; color: #1a1a1a; line-height: 1.4; }
.ff-card-meta { font-size: .8rem; color: #999; }

/* === Section Titles === */
.ff-section-title { font-size: 1.5rem; font-weight: 700; color: #1a1a1a; }
.ff-section-title i { color: var(--ff-primary); }
.ff-section-desc { font-size: .9rem; color: #888; }

/* === About Section === */
.ff-about { background: #fff; }
.ff-about p { color: #555; line-height: 1.8; font-size: .95rem; }
.ff-about-img { border-radius: 12px; box-shadow: 0 4px 15px rgba(0,0,0,.08); }

/* === Security Section === */
.ff-security { background: linear-gradient(135deg, var(--ff-dark) 0%, var(--ff-dark2) 100%); color: #fff; }
.ff-security-grid { display: flex; flex-wrap: wrap; gap: 1.5rem; justify-content: center; align-items: center; max-width: 900px; margin: 0 auto; }
.ff-sec-card { background: rgba(255,255,255,.08); border-radius: 12px; padding: 1.5rem; text-align: center; flex: 1; min-width: 200px; max-width: 260px; }
.ff-sec-card i { color: var(--ff-primary); }
.ff-sec-card h5 { font-size: 1rem; font-weight: 700; margin: .75rem 0 .5rem; }
.ff-sec-card p { font-size: .85rem; color: rgba(255,255,255,.7); }
.ff-sec-core { background: rgba(255,255,255,.12); border-radius: 50%; width: 120px; height: 120px; display: flex; flex-direction: column; align-items: center; justify-content: center; flex-shrink: 0; }
.ff-sec-core i { color: var(--ff-primary); font-size: 2rem; }
.ff-sec-core .core-text { font-size: .75rem; color: rgba(255,255,255,.8); margin-top: .25rem; }

/* === Why Us Section === */
.ff-why-main { background: var(--ff-primary) !important; color: #fff; border-radius: 12px; padding: 2rem; }
.ff-why-main h2 { font-size: 1.1rem; font-weight: 700; }
.ff-why-main p { font-size: .9rem; color: rgba(255,255,255,.9); }
.ff-why-item { background: #fff; border: 1px solid #eee; border-radius: 12px; padding: 1.5rem; text-align: center; }
.ff-why-item h3 { font-size: .95rem; font-weight: 700; color: #1a1a1a; }
.ff-why-item p { font-size: .85rem; color: #666; }
.ff-why-item img { width: 80px; height: 80px; object-fit: contain; margin-bottom: .75rem; }

/* === App Section === */
.ff-app { background: #1a1a2e; color: #fff; }
.ff-app-showcase { border-radius: 16px; overflow: hidden; box-shadow: 0 10px 30px rgba(0,0,0,.3); }
.ff-app-showcase mip-img img { width: 100%; }
.ff-app .btn-warning { background: var(--ff-accent); border-color: var(--ff-accent); color: #fff; border-radius: 25px; padding: .5rem 1.5rem; }
.ff-app .btn-warning:hover { background: #c98510; border-color: #c98510; }
.ff-app .btn-outline-light { border-radius: 25px; padding: .5rem 1.5rem; }
.ff-app-quote { font-style: italic; font-size: .9rem; color: rgba(255,255,255,.8); }
.ff-app-stars { color: var(--ff-accent); }

/* === FAQ Section === */
.ff-faq { background: #fff; }
.ff-faq-title { font-size: 1.5rem; font-weight: 700; color: #1a1a1a; }
.ff-faq-desc { font-size: .9rem; color: #888; }
.ff-faq-timeline { max-width: 800px; margin: 0 auto; position: relative; }
.ff-faq-timeline::before { content: ''; position: absolute; left: 24px; top: 0; bottom: 0; width: 2px; background: #e0e0e0; }
.ff-faq-step { display: flex; gap: 1.5rem; margin-bottom: 2rem; position: relative; }
.ff-faq-icon { width: 50px; height: 50px; border-radius: 50%; background: var(--ff-primary); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 1.1rem; flex-shrink: 0; z-index: 1; }
.ff-faq-content { background: #f8f9fa; border-radius: 12px; padding: 1.25rem; flex: 1; }
.ff-faq-content h5 { font-size: 1rem; font-weight: 700; color: #1a1a1a; margin-bottom: .5rem; }
.ff-faq-content p { font-size: .9rem; color: #666; margin: 0; }

/* === Footer === */
.ff-footer { background: linear-gradient(to right, var(--ff-dark), var(--ff-dark2)); color: rgba(255,255,255,.7); }
.ff-footer-card { background: rgba(255,255,255,.1); border-radius: 16px; padding: 1.25rem; height: 100%; }
.ff-footer h6 { font-weight: 700; margin-bottom: .75rem; }
.ff-footer ul { list-style: none; padding: 0; margin: 0; }
.ff-footer ul li { margin-bottom: .4rem; }
.ff-footer ul li a { color: rgba(255,255,255,.6); font-size: .85rem; transition: color .2s; }
.ff-footer ul li a:hover { color: #fff; }
.ff-footer .footer-copyright { border-top: 1px solid rgba(255,255,255,.15); padding-top: 1rem; margin-top: 1.5rem; font-size: .8rem; color: rgba(255,255,255,.5); text-align: center; }

/* === Pagination === */
.ff-pagination .pagination { justify-content: center; flex-wrap: wrap; }
.ff-pagination .page-link { color: var(--ff-primary); border-radius: .5rem !important; margin: 0 3px; border: 1px solid #dee2e6; min-width: 38px; text-align: center; }
.ff-pagination .page-link:hover { background: var(--ff-primary); color: #fff; border-color: var(--ff-primary); }
.ff-pagination .page-item.active .page-link { background: var(--ff-primary); border-color: var(--ff-primary); color: #fff; }

/* === Article Detail === */
.ff-detail-body { font-size: 1.02rem; line-height: 1.95; color: #26303b; }
.ff-detail-body h3 { font-size: 1.12rem; font-weight: 700; margin: 1.75rem 0 .75rem; padding-left: .7rem; border-left: 4px solid var(--ff-primary); }
.ff-detail-body p { margin-bottom: 1.05rem; }
.ff-detail-body mip-img { display: block; max-width: 100%; margin: 1rem auto; border-radius: .75rem; }

/* === Sidebar === */
.ff-sidebar-box { background: #fff; border-radius: 12px; box-shadow: 0 1px 3px rgba(0,0,0,.1); padding: 1.25rem; margin-bottom: 1.5rem; }
.ff-sidebar-title { font-size: 1rem; font-weight: 700; color: #1a1a1a; padding-bottom: .75rem; border-bottom: 2px solid var(--ff-primary); margin-bottom: .75rem; }
.ff-sidebar-title i { color: var(--ff-primary); margin-right: .4rem; }
.ff-sidebar-list { list-style: none; padding: 0; margin: 0; }
.ff-sidebar-list li { padding: .5rem 0; border-bottom: 1px dashed #f0f0f0; }
.ff-sidebar-list li:last-child { border-bottom: none; }
.ff-sidebar-list li a { color: #374151; text-decoration: none; font-size: .9rem; }
.ff-sidebar-list li a:hover { color: var(--ff-primary); }
.ff-sidebar-list li time { float: right; color: #9ca3af; font-size: .8rem; }

/* === Breadcrumb === */
.ff-breadcrumb { background: #f8f9fa; padding: .75rem 0; font-size: .85rem; }
.ff-breadcrumb a { color: var(--ff-primary); text-decoration: none; }
.ff-breadcrumb .separator { margin: 0 .4rem; color: #9ca3af; }

/* === Gototop === */
.ff-gotop { width: 44px; height: 44px; border-radius: 50%; background: var(--ff-primary); color: #fff; display: flex; align-items: center; justify-content: center; cursor: pointer; box-shadow: 0 2px 8px rgba(0,0,0,.2); }

/* === Mobile === */
@media (max-width: 767.98px) {
    #main-content > section { padding-top: 2.25rem !important; padding-bottom: 2.25rem !important; }
    .ff-hero { padding: 2.5rem 0; }
    .ff-hero h1 { font-size: 1.5rem; }
    .ff-hero-buttons { justify-content: center; }
    .ff-sec-card { min-width: 140px; }
    .ff-faq-timeline::before { left: 24px; }
}
