/**
 * =========================================================================
 * 
 *                      TK方舟工作室 官网样式
 * =========================================================================
 */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

html, body {
    scrollbar-width: none;
    -ms-overflow-style: none;
}

html::-webkit-scrollbar,
body::-webkit-scrollbar {
    display: none;
}

body {
    font-family: 'Noto Sans SC', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
}

main {
    padding-top: 0;
}


section {
    padding: 6rem 5%;
    max-width: 1200px;
    margin: 0 auto;
}

section.hero-section {
    padding: 0;
    height: 100vh;
    max-width: none;
}

/* ===== Hero Section ===== */

.hero-section {
    width: 100%;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(180deg, #c4d7ed 0%, #dce6f2 25%, #edf2f8 50%, #dce6f2 75%, #c4d7ed 100%);
    position: relative;
    overflow: hidden;
}

.hero-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    padding: 0 40px;
    gap: 60px;
}

.hero-left {
    flex: 1;
    max-width: 560px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(30, 100, 180, 0.08);
    border: 1px solid rgba(30, 100, 180, 0.15);
    color: #1a6ab5;
    font-size: 0.85rem;
    font-weight: 500;
    padding: 6px 16px;
    border-radius: 20px;
    margin-bottom: 24px;
}

.hero-badge i { font-size: 0.75rem; }

.hero-text-rotator {
    position: relative;
    min-height: 200px;
}

.hero-text-item {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.hero-text-item.active {
    opacity: 1;
    transform: translateY(0);
}

.hero-text-item.exit {
    opacity: 0;
    transform: translateY(-30px);
}

.hero-text-item h1 {
    font-size: 2.8rem;
    font-weight: 800;
    color: #0e3d6b;
    line-height: 1.2;
    margin-bottom: 16px;
}

.hero-text-item p {
    font-size: 1.05rem;
    color: #5a6a7a;
    line-height: 1.7;
}

.hero-actions {
    margin-top: 32px;
}

.hero-btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #1a6ab5;
    color: #fff;
    padding: 12px 28px;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 14px rgba(26, 106, 181, 0.3);
}

.hero-btn-primary:hover {
    background: #145a9a;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(26, 106, 181, 0.4);
    color: #fff;
}

.hero-btn-primary i {
    font-size: 0.8rem;
    transition: transform 0.3s ease;
}

.hero-btn-primary:hover i {
    transform: translateX(4px);
}

.hero-right {
    flex-shrink: 0;
    width: 320px;
    position: relative;
    height: 380px;
}

.hero-float-card {
    display: flex;
    align-items: center;
    gap: 14px;
    background: #fff;
    border-radius: 14px;
    padding: 18px 22px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.06), 0 1px 3px rgba(0, 0, 0, 0.04);
    position: absolute;
    width: 240px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    animation: heroCardFloat 3s ease-in-out infinite;
}

.hero-float-card:hover {
    transform: translateY(-4px) !important;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.1);
}

.hero-float-card.card-1 { top: 20px; right: 0; animation-delay: 0s; }
.hero-float-card.card-2 { top: 140px; right: 50px; animation-delay: 0.5s; }
.hero-float-card.card-3 { top: 260px; right: 10px; animation-delay: 1s; }

@keyframes heroCardFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

.hfc-icon {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.card-1 .hfc-icon { background: #e7f0fa; color: #1a6ab5; }
.card-2 .hfc-icon { background: #eef0fa; color: #4a5ab5; }
.card-3 .hfc-icon { background: #e8f4fa; color: #1a8ab5; }

.hfc-text { display: flex; flex-direction: column; }
.hfc-text span { font-size: 0.75rem; color: #8a9aaa; margin-bottom: 2px; }
.hfc-text strong { font-size: 0.95rem; color: #1a2a3a; font-weight: 600; }

/* ===== CMS Section ===== */

.cms-section {
    padding: 5rem 5%;
    max-width: 1200px;
    margin: 0 auto;
}

.section-header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.section-header h2 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.section-header p {
    font-size: 1rem;
    line-height: 1.6;
}

.cms-grid {
    display: grid;
    gap: 24px;
    justify-content: center;
}

.cms-card {
    display: block;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
    transition: transform .25s, box-shadow .25s;
    text-decoration: none;
    color: inherit;
}

.cms-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 32px rgba(0,0,0,0.1);
}

.cms-card-img {
    width: 100%;
    height: 180px;
    object-fit: cover;
}

.cms-card-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #e8f0fa, #f5f8fc);
    font-size: 2rem;
    color: #b0c4de;
}

.cms-card-body {
    padding: 16px;
}

.cms-card-body h3 {
    font-size: 1.05rem;
    font-weight: 600;
    margin-bottom: 8px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.cms-card-body p {
    font-size: 0.88rem;
    line-height: 1.5;
    margin-bottom: 8px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.cms-card-meta {
    font-size: 0.78rem;
    color: #aaa;
}

.cms-more-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #1a6ab5;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    padding: 8px 20px;
    border: 1px solid #1a6ab5;
    border-radius: 6px;
    transition: all .2s;
}

.cms-more-link:hover {
    background: #1a6ab5;
    color: #fff;
}

/* ===== Footer ===== */

footer {
    background: linear-gradient(135deg, #1a2a3a 0%, #2c3e50 100%);
    color: #fff;
    padding: 70px 0 20px;
    position: relative;
    overflow: hidden;
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 10% 10%, rgba(75, 85, 232, 0.1), transparent 40%);
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 2;
}

.footer-main {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 50px;
}

.footer-section {
    position: relative;
    text-align: center;
    animation: fadeInUp 0.6s ease-out forwards;
}

.footer-section:nth-child(2) { animation-delay: 0.2s; }
.footer-section:nth-child(3) { animation-delay: 0.4s; }

.footer-section h4 {
    color: #fff;
    font-size: 1.3rem;
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 15px;
    font-weight: 600;
}

.footer-section h4::after {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    bottom: 0;
    width: 50px;
    height: 3px;
    background: linear-gradient(90deg, #4b55e8, #007bff);
    border-radius: 2px;
}

.footer-section p {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.8;
    margin-bottom: 20px;
}

.footer-section ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-section ul li {
    margin-bottom: 15px;
    transition: transform 0.3s ease;
}

.footer-section ul li:hover {
    transform: translateX(5px);
}

.footer-section ul li a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
}

.footer-section ul li a:hover {
    color: #4b55e8;
}

.footer-section i {
    margin-right: 12px;
    color: #4b55e8;
    width: 20px;
    text-align: center;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 25px;
    text-align: center;
    position: relative;
}

.footer-bottom::before {
    content: '';
    position: absolute;
    top: -1px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 1px;
    background: linear-gradient(90deg, transparent, #4b55e8, transparent);
}

.footer-bottom .copyright {
    margin-bottom: 15px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.95rem;
}

.footer-bottom .icp,
.footer-bottom .police {
    margin-top: 10px;
}

.footer-bottom .icp a,
.footer-bottom .police a {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.footer-bottom .icp a:hover,
.footer-bottom .police a:hover {
    color: #fff;
}

.beian-icon {
    height: 20px;
    width: auto;
    vertical-align: middle;
    margin-right: 5px;
}

/* ===== Animations ===== */

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===== Responsive ===== */

@media (max-width: 768px) {
    .hero-inner {
        flex-direction: column;
        padding: 80px 20px 40px;
        gap: 40px;
    }

    .hero-left {
        max-width: 100%;
        text-align: center;
    }

    .hero-badge {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-text-item h1 {
        font-size: 2rem;
    }

    .hero-right {
        width: 100%;
        height: 280px;
    }

    .hero-float-card {
        position: relative;
        top: auto !important;
        right: auto !important;
        width: 100%;
        margin-bottom: 12px;
        animation: none;
    }

    .cms-grid {
        grid-template-columns: 1fr !important;
    }

    footer {
        padding: 50px 0 20px;
    }

    .footer-main {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .footer-section {
        text-align: center;
        padding: 0 20px;
    }

    .footer-section h4::after {
        left: 50%;
        transform: translateX(-50%);
    }

    .footer-section ul li:hover {
        transform: none;
    }

    .footer-section i {
        margin-right: 8px;
    }

    .footer-bottom {
        padding: 20px 15px 0;
    }

    .footer-bottom .copyright,
    .footer-bottom .icp a {
        font-size: 0.85rem;
    }

    .beian-icon {
        height: 18px;
    }
}

/* =============================================================
   BACKGROUND THEMES (10)
   ============================================================= */

body[data-theme="starry"] {
    background: linear-gradient(180deg, #0c1445 0%, #1a237e 50%, #0c1445 100%);
    color: #e0e0e0;
}
body[data-theme="starry"]::after {
    content: '';
    position: fixed;
    inset: 0;
    z-index: -1;
    background-image:
        radial-gradient(1px 1px at 10% 20%, rgba(255,255,255,.7) 50%, transparent 50%),
        radial-gradient(1px 1px at 30% 60%, rgba(255,255,255,.5) 50%, transparent 50%),
        radial-gradient(1.5px 1.5px at 50% 10%, rgba(255,255,255,.8) 50%, transparent 50%),
        radial-gradient(1px 1px at 70% 40%, rgba(255,255,255,.6) 50%, transparent 50%),
        radial-gradient(1.5px 1.5px at 90% 80%, rgba(255,255,255,.7) 50%, transparent 50%),
        radial-gradient(1px 1px at 15% 85%, rgba(255,255,255,.5) 50%, transparent 50%),
        radial-gradient(1px 1px at 45% 45%, rgba(255,255,255,.4) 50%, transparent 50%),
        radial-gradient(1.5px 1.5px at 80% 15%, rgba(255,255,255,.6) 50%, transparent 50%);
    animation: twinkle 4s ease-in-out infinite alternate;
}
@keyframes twinkle { 0% { opacity: .6; } 100% { opacity: 1; } }

body[data-theme="sunset"] {
    background: linear-gradient(135deg, #ff6b35 0%, #f7c59f 50%, #ffe0b2 100%);
}

body[data-theme="ocean"] {
    background: linear-gradient(180deg, #006994 0%, #00c9ff 50%, #e0f7fa 100%);
}

body[data-theme="forest"] {
    background: linear-gradient(180deg, #134e5e 0%, #71b280 50%, #a8e6cf 100%);
}

body[data-theme="aurora"] {
    background: linear-gradient(135deg, #43cea2 0%, #185a9d 50%, #43cea2 100%);
    background-size: 200% 200%;
    animation: auroraShift 8s ease infinite;
}
@keyframes auroraShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

body[data-theme="lavender"] {
    background: linear-gradient(135deg, #e8cbed 0%, #a17fe0 50%, #c4b0e8 100%);
}

body[data-theme="carbon"] {
    background: linear-gradient(135deg, #232526 0%, #414345 100%);
    color: #e0e0e0;
}

body[data-theme="peach"] {
    background: linear-gradient(135deg, #ffecd2 0%, #fcb69f 50%, #ffecd2 100%);
}

body[data-theme="tech_grid"] {
    background-color: #0f2027;
    background-image:
        linear-gradient(rgba(0,255,170,.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0,255,170,.04) 1px, transparent 1px);
    background-size: 60px 60px;
    color: #c8e6c9;
}

/* Dark theme full adaptation */
body[data-theme="starry"] .cms-section,
body[data-theme="carbon"] .cms-section,
body[data-theme="tech_grid"] .cms-section {
    background: transparent !important;
}
body[data-theme="starry"] .cms-card,
body[data-theme="carbon"] .cms-card,
body[data-theme="tech_grid"] .cms-card {
    background: rgba(255,255,255,.08);
    color: #e0e0e0;
    box-shadow: 0 2px 12px rgba(0,0,0,.3);
}
body[data-theme="starry"] .cms-card:hover,
body[data-theme="carbon"] .cms-card:hover,
body[data-theme="tech_grid"] .cms-card:hover {
    box-shadow: 0 8px 28px rgba(0,0,0,.4);
}
body[data-theme="starry"] .cms-card-body h3,
body[data-theme="carbon"] .cms-card-body h3,
body[data-theme="tech_grid"] .cms-card-body h3 {
    color: #fff !important;
}
body[data-theme="starry"] .cms-card-body p,
body[data-theme="carbon"] .cms-card-body p,
body[data-theme="tech_grid"] .cms-card-body p {
    color: rgba(255,255,255,.7) !important;
}
body[data-theme="starry"] .cms-card-meta,
body[data-theme="carbon"] .cms-card-meta,
body[data-theme="tech_grid"] .cms-card-meta {
    color: rgba(255,255,255,.45) !important;
}
body[data-theme="starry"] .cms-card-placeholder,
body[data-theme="carbon"] .cms-card-placeholder,
body[data-theme="tech_grid"] .cms-card-placeholder {
    background: rgba(255,255,255,.05);
    color: rgba(255,255,255,.3);
}
body[data-theme="starry"] .section-header h2,
body[data-theme="carbon"] .section-header h2,
body[data-theme="tech_grid"] .section-header h2 {
    color: #fff !important;
}
body[data-theme="starry"] .section-header p,
body[data-theme="carbon"] .section-header p,
body[data-theme="tech_grid"] .section-header p {
    color: rgba(255,255,255,.7) !important;
}
body[data-theme="starry"] .cms-more-link,
body[data-theme="carbon"] .cms-more-link,
body[data-theme="tech_grid"] .cms-more-link {
    color: rgba(255,255,255,.6) !important;
    border-color: rgba(255,255,255,.15) !important;
}
body[data-theme="starry"] .cms-more-link:hover,
body[data-theme="carbon"] .cms-more-link:hover,
body[data-theme="tech_grid"] .cms-more-link:hover {
    color: #fff !important;
    border-color: rgba(255,255,255,.4) !important;
}
body[data-theme="starry"] footer,
body[data-theme="carbon"] footer,
body[data-theme="tech_grid"] footer {
    background: rgba(0,0,0,.4) !important;
}
body[data-theme="starry"] .hero-section,
body[data-theme="carbon"] .hero-section,
body[data-theme="tech_grid"] .hero-section {
    background: transparent !important;
}
body[data-theme="starry"] .hero-section h1,
body[data-theme="carbon"] .hero-section h1,
body[data-theme="tech_grid"] .hero-section h1 {
    color: #fff !important;
}
body[data-theme="starry"] .hero-section p,
body[data-theme="carbon"] .hero-section p,
body[data-theme="tech_grid"] .hero-section p {
    color: rgba(255,255,255,.75) !important;
}
body[data-theme="starry"] .hero-badge,
body[data-theme="carbon"] .hero-badge,
body[data-theme="tech_grid"] .hero-badge {
    background: rgba(255,255,255,.1) !important;
    color: rgba(255,255,255,.8) !important;
}
body[data-theme="starry"] .hero-float-card,
body[data-theme="carbon"] .hero-float-card,
body[data-theme="tech_grid"] .hero-float-card {
    background: rgba(255,255,255,.08) !important;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,.1) !important;
}
body[data-theme="starry"] .hero-float-card .hfc-text span,
body[data-theme="carbon"] .hero-float-card .hfc-text span,
body[data-theme="tech_grid"] .hero-float-card .hfc-text span {
    color: rgba(255,255,255,.6) !important;
}
body[data-theme="starry"] .hero-float-card .hfc-text strong,
body[data-theme="carbon"] .hero-float-card .hfc-text strong,
body[data-theme="tech_grid"] .hero-float-card .hfc-text strong {
    color: #fff !important;
}

/* Semi-dark themes (ocean, forest, aurora) */
body[data-theme="ocean"] .cms-section,
body[data-theme="forest"] .cms-section,
body[data-theme="aurora"] .cms-section {
    background: transparent !important;
}
body[data-theme="ocean"] .cms-card,
body[data-theme="forest"] .cms-card,
body[data-theme="aurora"] .cms-card {
    background: rgba(255,255,255,.12);
    backdrop-filter: blur(8px);
    color: #e0e0e0;
    box-shadow: 0 2px 12px rgba(0,0,0,.2);
}
body[data-theme="ocean"] .cms-card:hover,
body[data-theme="forest"] .cms-card:hover,
body[data-theme="aurora"] .cms-card:hover {
    box-shadow: 0 8px 28px rgba(0,0,0,.3);
}
body[data-theme="ocean"] .cms-card-body h3,
body[data-theme="forest"] .cms-card-body h3,
body[data-theme="aurora"] .cms-card-body h3 {
    color: #fff !important;
}
body[data-theme="ocean"] .cms-card-body p,
body[data-theme="forest"] .cms-card-body p,
body[data-theme="aurora"] .cms-card-body p {
    color: rgba(255,255,255,.75) !important;
}
body[data-theme="ocean"] .cms-card-meta,
body[data-theme="forest"] .cms-card-meta,
body[data-theme="aurora"] .cms-card-meta {
    color: rgba(255,255,255,.5) !important;
}
body[data-theme="ocean"] .cms-card-placeholder,
body[data-theme="forest"] .cms-card-placeholder,
body[data-theme="aurora"] .cms-card-placeholder {
    background: rgba(255,255,255,.08);
    color: rgba(255,255,255,.3);
}
body[data-theme="ocean"] .section-header h2,
body[data-theme="forest"] .section-header h2,
body[data-theme="aurora"] .section-header h2 {
    color: #fff !important;
}
body[data-theme="ocean"] .section-header p,
body[data-theme="forest"] .section-header p,
body[data-theme="aurora"] .section-header p {
    color: rgba(255,255,255,.7) !important;
}
body[data-theme="ocean"] .cms-more-link,
body[data-theme="forest"] .cms-more-link,
body[data-theme="aurora"] .cms-more-link {
    color: rgba(255,255,255,.7) !important;
    border-color: rgba(255,255,255,.2) !important;
}
body[data-theme="ocean"] .cms-more-link:hover,
body[data-theme="forest"] .cms-more-link:hover,
body[data-theme="aurora"] .cms-more-link:hover {
    color: #fff !important;
    border-color: rgba(255,255,255,.5) !important;
}
body[data-theme="ocean"] footer,
body[data-theme="forest"] footer,
body[data-theme="aurora"] footer {
    background: rgba(0,0,0,.35) !important;
}
body[data-theme="ocean"] .hero-section,
body[data-theme="forest"] .hero-section,
body[data-theme="aurora"] .hero-section {
    background: transparent !important;
}
body[data-theme="ocean"] .hero-section h1,
body[data-theme="forest"] .hero-section h1,
body[data-theme="aurora"] .hero-section h1 {
    color: #fff !important;
}
body[data-theme="ocean"] .hero-section p,
body[data-theme="forest"] .hero-section p,
body[data-theme="aurora"] .hero-section p {
    color: rgba(255,255,255,.8) !important;
}
body[data-theme="ocean"] .hero-badge,
body[data-theme="forest"] .hero-badge,
body[data-theme="aurora"] .hero-badge {
    background: rgba(255,255,255,.15) !important;
    color: rgba(255,255,255,.85) !important;
}
body[data-theme="ocean"] .hero-float-card,
body[data-theme="forest"] .hero-float-card,
body[data-theme="aurora"] .hero-float-card {
    background: rgba(255,255,255,.12) !important;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,.15) !important;
}
body[data-theme="ocean"] .hero-float-card .hfc-text span,
body[data-theme="forest"] .hero-float-card .hfc-text span,
body[data-theme="aurora"] .hero-float-card .hfc-text span {
    color: rgba(255,255,255,.65) !important;
}
body[data-theme="ocean"] .hero-float-card .hfc-text strong,
body[data-theme="forest"] .hero-float-card .hfc-text strong,
body[data-theme="aurora"] .hero-float-card .hfc-text strong {
    color: #fff !important;
}

/* =============================================================
   FOOTER STYLES (5)
   ============================================================= */

footer.footer-style-minimal {
    background: #1a1a2e;
    padding: 30px 0;
}
footer.footer-style-minimal::before { display: none; }
footer.footer-style-minimal .footer-main {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 20px 40px;
    margin-bottom: 20px;
}
footer.footer-style-minimal .footer-section {
    text-align: center;
}
footer.footer-style-minimal .footer-section h4 {
    font-size: 1rem;
    margin-bottom: 10px;
    padding-bottom: 0;
}
footer.footer-style-minimal .footer-section h4::after { display: none; }
footer.footer-style-minimal .footer-section ul {
    display: flex;
    gap: 15px;
    justify-content: center;
}
footer.footer-style-minimal .footer-section ul li { margin-bottom: 0; }
footer.footer-style-minimal .footer-section p { margin-bottom: 0; font-size: 0.85rem; }

footer.footer-style-centered {
    background: #16213e;
    padding: 60px 0 20px;
    text-align: center;
}
footer.footer-style-centered::before { display: none; }
footer.footer-style-centered .footer-main {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
    margin-bottom: 30px;
}
footer.footer-style-centered .footer-section h4::after {
    left: 50%;
    transform: translateX(-50%);
}
footer.footer-style-centered .footer-section ul {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px 24px;
}
footer.footer-style-centered .footer-section ul li { margin-bottom: 0; }

footer.footer-style-wave {
    background: #0f3460;
    padding: 90px 0 20px;
    position: relative;
}
footer.footer-style-wave::before {
    content: '';
    position: absolute;
    top: -2px;
    left: 0;
    width: 100%;
    height: 60px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 60'%3E%3Cpath fill='%23f8f9fa' d='M0,20 C360,60 720,0 1080,30 C1260,45 1380,20 1440,20 L1440,0 L0,0 Z'/%3E%3C/svg%3E") no-repeat center;
    background-size: cover;
}

footer.footer-style-gradient {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 60px 0 20px;
}
footer.footer-style-gradient::before { display: none; }
footer.footer-style-gradient .footer-main {
    grid-template-columns: 1.2fr 1fr 1fr;
}
footer.footer-style-gradient .footer-section h4::after {
    background: linear-gradient(90deg, rgba(255,255,255,.6), rgba(255,255,255,.2));
}

/* =============================================================
   CATEGORY DISPLAY STYLES (20)
   ============================================================= */

/* Style 1: Grid Cards (default - no extra CSS needed) */

/* Style 2: Image Overlay Grid */
.cms-style-2 .cms-grid { gap: 16px; }
.cms-style-2 .cms-card { position: relative; border-radius: 14px; overflow: hidden; }
.cms-style-2 .cms-card-img { height: 220px; transition: transform .4s; }
.cms-style-2 .cms-card:hover .cms-card-img { transform: scale(1.08); }
.cms-style-2 .cms-card-body {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,.75));
    padding: 40px 16px 16px;
}
.cms-style-2 .cms-card-body h3 { color: #fff !important; }
.cms-style-2 .cms-card-body p { color: rgba(255,255,255,.8) !important; }
.cms-style-2 .cms-card-meta { color: rgba(255,255,255,.6) !important; }

/* Style 3: Simple List */
.cms-style-3 .cms-grid {
    display: flex !important;
    flex-direction: column;
    gap: 0;
}
.cms-style-3 .cms-card {
    display: flex;
    align-items: center;
    border-radius: 0;
    box-shadow: none;
    border-bottom: 1px solid #e9ecef;
    padding: 14px 0;
}
.cms-style-3 .cms-card:hover { transform: none; box-shadow: none; background: rgba(0,0,0,.02); }
.cms-style-3 .cms-card-img { display: none; }
.cms-style-3 .cms-card-body { padding: 0; display: flex; align-items: center; gap: 16px; width: 100%; }
.cms-style-3 .cms-card-body h3 { margin: 0; font-size: 1rem; flex: 1; }
.cms-style-3 .cms-card-body p { display: none !important; }
.cms-style-3 .cms-card-meta { white-space: nowrap; }

/* Style 4: Detailed List */
.cms-style-4 .cms-grid {
    display: flex !important;
    flex-direction: column;
    gap: 16px;
}
.cms-style-4 .cms-card {
    display: flex;
    flex-direction: row;
    border-radius: 12px;
}
.cms-style-4 .cms-card-img { width: 200px; min-width: 200px; height: 140px; border-radius: 12px 0 0 12px; }
.cms-style-4 .cms-card-placeholder { width: 200px; min-width: 200px; height: 140px; border-radius: 12px 0 0 12px; }
.cms-style-4 .cms-card-body { display: flex; flex-direction: column; justify-content: center; padding: 16px 20px; }
.cms-style-4 .cms-card-body p { -webkit-line-clamp: 3; }

/* Style 5: Masonry (CSS columns) */
.cms-style-5 .cms-grid {
    display: block !important;
    column-count: 3;
    column-gap: 20px;
}
.cms-style-5 .cms-card {
    break-inside: avoid;
    margin-bottom: 20px;
}
.cms-style-5 .cms-card:nth-child(odd) .cms-card-img { height: 240px; }
.cms-style-5 .cms-card:nth-child(even) .cms-card-img { height: 160px; }

/* Style 6: Horizontal Scroll */
.cms-style-6 .cms-grid {
    display: flex !important;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 20px;
    padding-bottom: 12px;
}
.cms-style-6 .cms-card {
    min-width: 280px;
    max-width: 280px;
    flex-shrink: 0;
    scroll-snap-align: start;
}

/* Style 7: Timeline */
.cms-style-7 .cms-grid {
    display: flex !important;
    flex-direction: column;
    gap: 0;
    position: relative;
    padding-left: 40px;
}
.cms-style-7 .cms-grid::before {
    content: '';
    position: absolute;
    left: 15px;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(180deg, #1a6ab5, #c4d7ed);
    border-radius: 2px;
}
.cms-style-7 .cms-card {
    position: relative;
    margin-bottom: 24px;
    border-radius: 12px;
}
.cms-style-7 .cms-card::before {
    content: '';
    position: absolute;
    left: -33px;
    top: 20px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #1a6ab5;
    border: 3px solid #fff;
    box-shadow: 0 0 0 2px #1a6ab5;
}

/* Style 8: Magazine Layout */
.cms-style-8 .cms-grid {
    display: grid !important;
    grid-template-columns: 1.5fr 1fr;
    grid-template-rows: auto;
    gap: 20px;
}
.cms-style-8 .cms-card:first-child {
    grid-row: 1 / 3;
}
.cms-style-8 .cms-card:first-child .cms-card-img { height: 300px; }

/* Style 9: Minimal Text */
.cms-style-9 .cms-card {
    background: transparent;
    box-shadow: none;
    border-radius: 0;
    border-bottom: 1px solid rgba(0,0,0,.06);
}
.cms-style-9 .cms-card:hover { transform: none; box-shadow: none; }
.cms-style-9 .cms-card-img { display: none; }
.cms-style-9 .cms-card-body { padding: 20px 0; }
.cms-style-9 .cms-card-body h3 { font-size: 1.15rem; }

/* Style 10: Full-Width Banner */
.cms-style-10 .cms-grid {
    display: flex !important;
    flex-direction: column;
    gap: 24px;
}
.cms-style-10 .cms-card {
    display: flex;
    flex-direction: row;
    border-radius: 16px;
    overflow: hidden;
    min-height: 200px;
}
.cms-style-10 .cms-card-img { width: 40%; min-width: 40%; height: auto; min-height: 200px; }
.cms-style-10 .cms-card-placeholder { width: 40%; min-width: 40%; min-height: 200px; }
.cms-style-10 .cms-card-body { padding: 24px 28px; display: flex; flex-direction: column; justify-content: center; }
.cms-style-10 .cms-card-body h3 { font-size: 1.3rem; }
.cms-style-10 .cms-card-body p { -webkit-line-clamp: 4; }

/* Style 11: Accordion-like */
.cms-style-11 .cms-grid {
    display: flex !important;
    flex-direction: column;
    gap: 8px;
}
.cms-style-11 .cms-card {
    border-radius: 10px;
    border-left: 4px solid #1a6ab5;
    transition: all .3s;
}
.cms-style-11 .cms-card:hover { border-left-color: #e8590c; }
.cms-style-11 .cms-card-img { display: none; }
.cms-style-11 .cms-card-body { padding: 16px 20px; }
.cms-style-11 .cms-card-body p { max-height: 0; overflow: hidden; transition: max-height .3s ease; margin: 0; }
.cms-style-11 .cms-card:hover .cms-card-body p { max-height: 100px; margin-bottom: 8px; }

/* Style 12: Compact Tags */
.cms-style-12 .cms-grid { gap: 14px; }
.cms-style-12 .cms-card {
    border-radius: 10px;
    border: 1px solid #e0e0e0;
    box-shadow: none;
}
.cms-style-12 .cms-card:hover { border-color: #1a6ab5; }
.cms-style-12 .cms-card-img { height: 120px; }
.cms-style-12 .cms-card-body { padding: 10px 14px; }
.cms-style-12 .cms-card-body h3 { font-size: 0.9rem; }
.cms-style-12 .cms-card-body p { font-size: 0.78rem; -webkit-line-clamp: 1; }

/* Style 13: Mosaic */
.cms-style-13 .cms-grid {
    display: grid !important;
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: 180px;
    gap: 12px;
}
.cms-style-13 .cms-card { position: relative; overflow: hidden; border-radius: 10px; }
.cms-style-13 .cms-card:nth-child(3n+1) { grid-column: span 2; grid-row: span 2; }
.cms-style-13 .cms-card-img { height: 100%; position: absolute; inset: 0; object-fit: cover; }
.cms-style-13 .cms-card-placeholder { position: absolute; inset: 0; height: auto; }
.cms-style-13 .cms-card-body {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,.7));
    padding: 30px 12px 12px;
}
.cms-style-13 .cms-card-body h3 { color: #fff !important; font-size: 0.95rem; }
.cms-style-13 .cms-card-body p { display: none !important; }
.cms-style-13 .cms-card-meta { color: rgba(255,255,255,.6) !important; }

/* Style 14: Side Thumbnail List */
.cms-style-14 .cms-grid {
    display: flex !important;
    flex-direction: column;
    gap: 14px;
}
.cms-style-14 .cms-card {
    display: flex;
    flex-direction: row;
    border-radius: 10px;
}
.cms-style-14 .cms-card-img { width: 100px; min-width: 100px; height: 80px; border-radius: 10px 0 0 10px; }
.cms-style-14 .cms-card-placeholder { width: 100px; min-width: 100px; height: 80px; border-radius: 10px 0 0 10px; }
.cms-style-14 .cms-card-body { padding: 10px 16px; display: flex; flex-direction: column; justify-content: center; }
.cms-style-14 .cms-card-body h3 { font-size: 0.95rem; margin-bottom: 4px; }
.cms-style-14 .cms-card-body p { -webkit-line-clamp: 1; font-size: 0.82rem; }

/* Style 15: Full Width Cards */
.cms-style-15 .cms-grid {
    display: flex !important;
    flex-direction: column;
    gap: 0;
}
.cms-style-15 .cms-card {
    border-radius: 0;
    box-shadow: none;
    border-bottom: 1px solid #e9ecef;
}
.cms-style-15 .cms-card-img { height: 260px; }
.cms-style-15 .cms-card-body { padding: 20px 0; }
.cms-style-15 .cms-card-body h3 { font-size: 1.3rem; }

/* Style 16: Polaroid */
.cms-style-16 .cms-grid { gap: 30px; }
.cms-style-16 .cms-card {
    background: #fff;
    padding: 12px 12px 24px;
    border-radius: 4px;
    box-shadow: 2px 4px 16px rgba(0,0,0,.1);
    transform: rotate(-1deg);
    transition: transform .3s, box-shadow .3s;
}
.cms-style-16 .cms-card:nth-child(even) { transform: rotate(1.5deg); }
.cms-style-16 .cms-card:hover { transform: rotate(0) scale(1.03); box-shadow: 4px 8px 24px rgba(0,0,0,.15); }
.cms-style-16 .cms-card-img { border-radius: 2px; }
.cms-style-16 .cms-card-body { text-align: center; padding: 12px 8px 4px; }
.cms-style-16 .cms-card-body h3 { font-size: 0.95rem; }

/* Style 17: Newspaper Columns */
.cms-style-17 .cms-grid {
    display: block !important;
    column-count: 2;
    column-gap: 32px;
    column-rule: 1px solid #ddd;
}
.cms-style-17 .cms-card {
    break-inside: avoid;
    margin-bottom: 24px;
    box-shadow: none;
    border-radius: 0;
    border-bottom: 1px solid #eee;
}
.cms-style-17 .cms-card-img { display: none; }
.cms-style-17 .cms-card-body { padding: 0 0 16px; }
.cms-style-17 .cms-card-body h3 { font-size: 1.1rem; font-weight: 700; }
.cms-style-17 .cms-card-body p { -webkit-line-clamp: 5; }

/* Style 18: Hover Reveal Portfolio */
.cms-style-18 .cms-grid { gap: 20px; }
.cms-style-18 .cms-card { position: relative; overflow: hidden; border-radius: 14px; }
.cms-style-18 .cms-card-img { height: 240px; transition: transform .5s; }
.cms-style-18 .cms-card:hover .cms-card-img { transform: scale(1.1); }
.cms-style-18 .cms-card-body {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 20px;
    background: rgba(0,0,0,.0);
    transition: background .4s;
}
.cms-style-18 .cms-card:hover .cms-card-body { background: rgba(0,0,0,.55); }
.cms-style-18 .cms-card-body h3,
.cms-style-18 .cms-card-body p,
.cms-style-18 .cms-card-meta {
    color: #fff !important;
    opacity: 0;
    transform: translateY(20px);
    transition: all .4s ease;
}
.cms-style-18 .cms-card:hover .cms-card-body h3 { opacity: 1; transform: translateY(0); }
.cms-style-18 .cms-card:hover .cms-card-body p { opacity: .85; transform: translateY(0); transition-delay: .08s; }
.cms-style-18 .cms-card:hover .cms-card-meta { opacity: .7; transform: translateY(0); transition-delay: .15s; }

/* Style 19: Split Alternating */
.cms-style-19 .cms-grid {
    display: flex !important;
    flex-direction: column;
    gap: 28px;
}
.cms-style-19 .cms-card {
    display: flex;
    flex-direction: row;
    border-radius: 14px;
    overflow: hidden;
    min-height: 180px;
}
.cms-style-19 .cms-card:nth-child(even) { flex-direction: row-reverse; }
.cms-style-19 .cms-card-img { width: 50%; min-width: 50%; height: auto; min-height: 180px; }
.cms-style-19 .cms-card-placeholder { width: 50%; min-width: 50%; min-height: 180px; }
.cms-style-19 .cms-card-body { padding: 24px; display: flex; flex-direction: column; justify-content: center; }
.cms-style-19 .cms-card-body h3 { font-size: 1.2rem; }

/* Style 20: Stacked Cards */
.cms-style-20 .cms-grid { gap: 16px; perspective: 1000px; }
.cms-style-20 .cms-card {
    border-radius: 14px;
    transition: transform .35s, box-shadow .35s;
    box-shadow: 0 4px 16px rgba(0,0,0,.08), 0 -2px 0 rgba(0,0,0,.02);
}
.cms-style-20 .cms-card:hover {
    transform: translateY(-10px) rotateX(2deg);
    box-shadow: 0 20px 40px rgba(0,0,0,.12);
}
.cms-style-20 .cms-card-img { height: 200px; }

/* Category styles responsive */
@media (max-width: 768px) {
    .cms-style-4 .cms-card,
    .cms-style-10 .cms-card,
    .cms-style-14 .cms-card,
    .cms-style-19 .cms-card { flex-direction: column !important; }
    .cms-style-4 .cms-card-img,
    .cms-style-10 .cms-card-img,
    .cms-style-10 .cms-card-placeholder,
    .cms-style-14 .cms-card-img,
    .cms-style-14 .cms-card-placeholder,
    .cms-style-19 .cms-card-img,
    .cms-style-19 .cms-card-placeholder { width: 100% !important; min-width: 100% !important; height: 180px !important; border-radius: 12px 12px 0 0 !important; }
    .cms-style-5 .cms-grid,
    .cms-style-17 .cms-grid { column-count: 1 !important; }
    .cms-style-8 .cms-grid { grid-template-columns: 1fr !important; }
    .cms-style-8 .cms-card:first-child { grid-row: auto; }
    .cms-style-13 .cms-grid { grid-template-columns: repeat(2, 1fr) !important; }
    .cms-style-13 .cms-card:nth-child(3n+1) { grid-column: span 1; grid-row: span 1; }
}
