/*
Theme Name: Kakobuy SEO Air
Theme URI: https://sheetcn.com/
Author: SheetCN
Author URI: https://sheetcn.com/
Description: Air-freight themed WordPress theme for kakobuy spreadsheet content. Soft sky-blue background with planes, clouds and shipping routes; minimal line-art category icons; SEO-ready and Google-indexing friendly.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: kakobuy-seo-air
*/

/* ============ RESET & BASE ============ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
    font-size: 16px;
    line-height: 1.75;
    color: #1F2A44;
    background: #F0F7FF;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: #2E86DE; text-decoration: none; transition: color .2s ease; }
a:hover { color: #1C6AC4; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
h1, h2, h3, h4 { font-weight: 700; line-height: 1.3; color: #1F2A44; margin-bottom: .6em; letter-spacing: -0.01em; }
h1 { font-size: clamp(1.9rem, 4vw, 2.8rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); }
h3 { font-size: clamp(1.15rem, 2.4vw, 1.45rem); }
p { margin-bottom: 1em; color: #37435E; }
ul, ol { margin: 0 0 1em 1.2em; }
li { margin-bottom: .4em; color: #37435E; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* ============ GLOBAL BACKGROUND (AIR / SKY) ============ */
body::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -2;
    background:
        radial-gradient(ellipse at 20% 10%, rgba(255, 255, 255, 0.9) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 20%, rgba(167, 216, 255, 0.6) 0%, transparent 55%),
        radial-gradient(ellipse at 50% 100%, rgba(220, 240, 255, 0.9) 0%, transparent 60%),
        linear-gradient(180deg, #E6F2FF 0%, #F0F7FF 55%, #FFFBF2 100%);
    pointer-events: none;
}
body::after {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -1;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 800' preserveAspectRatio='xMidYMid slice'>\
<g fill='%23ffffff' opacity='0.75'>\
<ellipse cx='140' cy='120' rx='48' ry='18'/><ellipse cx='110' cy='110' rx='28' ry='14'/><ellipse cx='170' cy='110' rx='26' ry='12'/>\
<ellipse cx='900' cy='90' rx='52' ry='20'/><ellipse cx='870' cy='80' rx='28' ry='14'/><ellipse cx='930' cy='78' rx='26' ry='13'/>\
<ellipse cx='520' cy='180' rx='60' ry='22'/><ellipse cx='500' cy='168' rx='32' ry='16'/><ellipse cx='545' cy='168' rx='28' ry='14'/>\
<ellipse cx='1060' cy='400' rx='48' ry='18'/><ellipse cx='1035' cy='390' rx='28' ry='14'/>\
<ellipse cx='230' cy='520' rx='54' ry='20'/><ellipse cx='205' cy='510' rx='28' ry='14'/><ellipse cx='255' cy='512' rx='26' ry='12'/>\
<ellipse cx='760' cy='620' rx='52' ry='18'/><ellipse cx='735' cy='612' rx='26' ry='13'/>\
</g>\
<g stroke='%232E86DE' stroke-width='1.6' fill='none' stroke-dasharray='4 6' opacity='0.3'>\
<path d='M80 300 Q 420 180 760 320 T 1140 260'/>\
<path d='M60 620 Q 400 500 720 580 T 1120 500'/>\
</g>\
<g fill='%232E86DE' opacity='0.35'>\
<circle cx='80' cy='300' r='4'/><circle cx='760' cy='320' r='4'/><circle cx='1140' cy='260' r='4'/>\
<circle cx='60' cy='620' r='4'/><circle cx='720' cy='580' r='4'/><circle cx='1120' cy='500' r='4'/>\
</g>\
</svg>");
    background-size: cover;
    background-repeat: no-repeat;
    background-attachment: fixed;
    pointer-events: none;
    opacity: 0.75;
}

/* ============ HEADER ============ */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(240, 247, 255, 0.85);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid rgba(46, 134, 222, 0.1);
}
.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 0;
    gap: 20px;
}
.site-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
    font-size: 1.25rem;
    color: #1F2A44;
    letter-spacing: -0.02em;
}
.site-logo:hover { color: #2E86DE; }
.logo-mark {
    width: 38px; height: 38px;
    background: linear-gradient(135deg, #5EB8FF 0%, #2E86DE 100%);
    border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    color: #fff;
    box-shadow: 0 6px 16px rgba(46, 134, 222, 0.3);
}
.logo-mark svg { width: 22px; height: 22px; }

.main-nav { display: flex; align-items: center; gap: 8px; }
.main-nav ul { display: flex; list-style: none; margin: 0; padding: 0; gap: 4px; }
.main-nav li { margin: 0; position: relative; }
.main-nav a {
    display: block;
    padding: 10px 14px;
    color: #37435E;
    font-weight: 500;
    font-size: .95rem;
    border-radius: 10px;
}
.main-nav a:hover { color: #2E86DE; background: rgba(46, 134, 222, 0.08); }

.has-dropdown > a::after {
    content: "";
    display: inline-block;
    margin-left: 6px;
    border: 4px solid transparent;
    border-top-color: currentColor;
    transform: translateY(2px);
}
.dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 260px;
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 12px 40px rgba(31, 42, 68, 0.12);
    padding: 8px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: all .2s ease;
    list-style: none;
    display: block !important;
}
.has-dropdown:hover > .dropdown,
.has-dropdown:focus-within > .dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.dropdown li { margin: 0; }
.dropdown a {
    padding: 10px 14px;
    border-radius: 8px;
    font-size: .92rem;
    display: flex;
    align-items: center;
    gap: 10px;
}
.dropdown a::before {
    content: "";
    width: 6px; height: 6px;
    border-radius: 50%;
    background: linear-gradient(135deg, #5EB8FF, #2E86DE);
    flex-shrink: 0;
}
.dropdown a:hover { background: #EAF4FF; color: #2E86DE; }

.menu-toggle {
    display: none;
    width: 42px; height: 42px;
    border-radius: 10px;
    background: #EAF4FF;
    color: #2E86DE;
    align-items: center;
    justify-content: center;
}
.menu-toggle span {
    display: block;
    width: 20px; height: 2px;
    background: currentColor;
    position: relative;
}
.menu-toggle span::before,
.menu-toggle span::after {
    content: "";
    position: absolute;
    left: 0; width: 20px; height: 2px;
    background: currentColor;
}
.menu-toggle span::before { top: -6px; }
.menu-toggle span::after { top: 6px; }

/* ============ BUTTONS ============ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 28px;
    border-radius: 999px;
    font-weight: 600;
    font-size: 1rem;
    transition: all .25s ease;
    text-align: center;
    cursor: pointer;
    line-height: 1;
    white-space: nowrap;
}
.btn-primary {
    background: linear-gradient(135deg, #5EB8FF 0%, #2E86DE 100%);
    color: #fff;
    box-shadow: 0 8px 22px rgba(46, 134, 222, 0.35);
}
.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 30px rgba(46, 134, 222, 0.45);
    color: #fff;
}
.btn-secondary {
    background: #fff;
    color: #1F2A44;
    box-shadow: 0 4px 14px rgba(31, 42, 68, 0.08);
    border: 2px solid #1F2A44;
}
.btn-secondary:hover {
    background: #1F2A44;
    color: #fff;
    transform: translateY(-2px);
}

/* ============ HERO ============ */
.hero {
    position: relative;
    padding: 70px 0 90px;
    overflow: hidden;
}
.hero-inner {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 60px;
    align-items: center;
    position: relative;
    z-index: 1;
}
.hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(46, 134, 222, 0.2);
    border-radius: 999px;
    font-size: .85rem;
    font-weight: 600;
    color: #2E86DE;
    margin-bottom: 20px;
}
.hero-eyebrow .dot {
    width: 8px; height: 8px;
    border-radius: 50%;
    background: #2E86DE;
    box-shadow: 0 0 0 4px rgba(46, 134, 222, 0.2);
    animation: pulse 2s infinite;
}
@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.3); opacity: 0.7; }
}
@keyframes floatY {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}
@keyframes drift {
    0% { transform: translateX(0); }
    100% { transform: translateX(20px); }
}
.hero h1 {
    font-size: clamp(2.2rem, 4.6vw, 3.6rem);
    line-height: 1.1;
    letter-spacing: -0.03em;
    margin-bottom: 20px;
}
.hero h1 .accent {
    background: linear-gradient(135deg, #2E86DE 0%, #5EB8FF 50%, #7CD3FF 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}
.hero-desc {
    font-size: 1.1rem;
    color: #37435E;
    margin-bottom: 32px;
    max-width: 540px;
}
.hero-buttons { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 36px; }
.hero-meta {
    display: flex;
    gap: 28px;
    flex-wrap: wrap;
    padding-top: 28px;
    border-top: 1px solid rgba(31, 42, 68, 0.1);
}
.hero-meta-num {
    font-size: 1.6rem;
    font-weight: 800;
    color: #1F2A44;
    letter-spacing: -0.02em;
}
.hero-meta-label {
    font-size: .85rem;
    color: #6B7A9A;
}

.hero-visual {
    position: relative;
    aspect-ratio: 1 / 1;
    max-width: 520px;
    margin-left: auto;
}
.hero-visual svg { width: 100%; height: 100%; overflow: visible; }
.hero-plane { animation: floatY 4s ease-in-out infinite; transform-origin: center; }
.hero-cloud-1 { animation: drift 8s ease-in-out infinite alternate; }
.hero-cloud-2 { animation: drift 10s ease-in-out infinite alternate-reverse; }
.hero-balloon { animation: floatY 5s ease-in-out infinite; }

/* ============ SECTIONS ============ */
.section { padding: 80px 0; position: relative; }
.section-tight { padding: 50px 0; }
.section-header { text-align: center; max-width: 720px; margin: 0 auto 50px; }
.section-eyebrow {
    display: inline-block;
    padding: 4px 12px;
    background: #EAF4FF;
    color: #2E86DE;
    border-radius: 999px;
    font-size: .8rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 14px;
}
.section-title { margin-bottom: 14px; }
.section-desc { color: #37435E; font-size: 1.05rem; }

/* ============ CATEGORY GRID (LINE-ART ICONS) ============ */
.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 20px;
}
.category-card {
    position: relative;
    display: flex;
    flex-direction: column;
    padding: 24px;
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 4px 24px rgba(31, 42, 68, 0.06);
    transition: all .3s ease;
    aspect-ratio: 4/5;
    text-decoration: none;
    color: inherit;
    border: 1px solid rgba(46, 134, 222, 0.08);
}
.category-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 18px 40px rgba(31, 42, 68, 0.12);
    border-color: rgba(46, 134, 222, 0.25);
    color: inherit;
}
.category-card .cat-visual {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
    border-radius: 16px;
    background: #F5FAFF;
    position: relative;
    overflow: hidden;
}
.category-card .cat-visual::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 70% 20%, rgba(255, 255, 255, 0.7) 0%, transparent 60%);
}
.category-card .cat-visual svg { width: 58%; height: 58%; position: relative; z-index: 1; }
.category-card .cat-name {
    font-size: 1.08rem;
    font-weight: 700;
    color: #1F2A44;
    margin-bottom: 4px;
}
.category-card .cat-arrow {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: .85rem;
    font-weight: 600;
    color: #2E86DE;
}
.category-card .cat-arrow::after {
    content: "→";
    transition: transform .25s ease;
}
.category-card:hover .cat-arrow::after { transform: translateX(4px); }

/* Soft tinted visual backgrounds per category */
.cat-shoes .cat-visual       { background: linear-gradient(135deg, #EAF4FF, #D5EBFF); }
.cat-hoodies .cat-visual     { background: linear-gradient(135deg, #E8FAF6, #CBF2E8); }
.cat-tshirts .cat-visual     { background: linear-gradient(135deg, #FFF8E0, #FFEEB0); }
.cat-jackets .cat-visual     { background: linear-gradient(135deg, #F0ECFF, #DAD2FF); }
.cat-pants .cat-visual       { background: linear-gradient(135deg, #E4F0FF, #BFD9FF); }
.cat-headwear .cat-visual    { background: linear-gradient(135deg, #FFEFE0, #FFD6B5); }
.cat-accessories .cat-visual { background: linear-gradient(135deg, #FFECF0, #FFCFD9); }
.cat-other .cat-visual       { background: linear-gradient(135deg, #EBFBE4, #CFF0C0); }

/* ============ ARTICLE ============ */
.article-section {
    background: #fff;
    border-radius: 24px;
    padding: 50px;
    box-shadow: 0 8px 30px rgba(31, 42, 68, 0.06);
    border: 1px solid rgba(46, 134, 222, 0.08);
}
.article-section h2 { margin-top: 1.4em; }
.article-section h2:first-child { margin-top: 0; }
.article-section h3 { margin-top: 1.4em; color: #2E86DE; }
.article-section p { color: #37435E; font-size: 1.02rem; }
.article-section .lead {
    font-size: 1.15rem;
    color: #1F2A44;
    padding: 20px 24px;
    background: linear-gradient(135deg, #EAF4FF 0%, #F5FAFF 100%);
    border-left: 4px solid #2E86DE;
    border-radius: 10px;
    margin-bottom: 28px;
}

/* ============ GUIDE CARDS ============ */
.guide-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 24px;
}
.guide-card {
    display: flex;
    flex-direction: column;
    padding: 28px;
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 4px 24px rgba(31, 42, 68, 0.06);
    transition: all .3s ease;
    text-decoration: none;
    color: inherit;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(46, 134, 222, 0.08);
}
.guide-card::before {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 4px;
    background: linear-gradient(90deg, #5EB8FF, #2E86DE, #7CD3FF);
}
.guide-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 18px 40px rgba(31, 42, 68, 0.1);
    color: inherit;
}
.guide-card .tag {
    display: inline-block;
    padding: 4px 10px;
    background: #EAF4FF;
    color: #2E86DE;
    border-radius: 999px;
    font-size: .78rem;
    font-weight: 700;
    margin-bottom: 14px;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    width: fit-content;
}
.guide-card h3 { font-size: 1.2rem; margin-bottom: 10px; color: #1F2A44; }
.guide-card p { color: #37435E; font-size: .95rem; margin-bottom: 18px; flex: 1; }
.guide-card .read-link {
    color: #2E86DE;
    font-weight: 600;
    font-size: .9rem;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.guide-card .read-link::after {
    content: "→";
    transition: transform .25s ease;
}
.guide-card:hover .read-link::after { transform: translateX(4px); }

/* ============ CTA BAND ============ */
.cta-band {
    background: linear-gradient(135deg, #5EB8FF 0%, #2E86DE 60%, #1C6AC4 100%);
    border-radius: 28px;
    padding: 60px 50px;
    text-align: center;
    color: #fff;
    position: relative;
    overflow: hidden;
}
.cta-band::before, .cta-band::after {
    content: "";
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
}
.cta-band::before { width: 220px; height: 220px; top: -60px; left: -60px; }
.cta-band::after { width: 160px; height: 160px; bottom: -50px; right: -40px; }
.cta-band > * { position: relative; z-index: 1; }
.cta-band h2 { color: #fff; }
.cta-band p { color: rgba(255, 255, 255, 0.95); font-size: 1.1rem; max-width: 580px; margin: 0 auto 28px; }
.cta-band .btn-primary {
    background: #fff;
    color: #2E86DE;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}
.cta-band .btn-primary:hover { background: #1F2A44; color: #fff; }
.cta-band .btn-secondary {
    background: transparent;
    color: #fff;
    border-color: #fff;
}
.cta-band .btn-secondary:hover { background: #fff; color: #2E86DE; }

/* ============ FOOTER ============ */
.site-footer {
    background: #1F2A44;
    color: #B4BCD0;
    padding: 60px 0 30px;
    margin-top: 80px;
    position: relative;
    z-index: 1;
}
.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}
.site-footer h4 {
    color: #fff;
    font-size: .95rem;
    margin-bottom: 16px;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 10px; color: #B4BCD0; }
.site-footer a { color: #B4BCD0; font-size: .95rem; }
.site-footer a:hover { color: #5EB8FF; }
.footer-brand p { color: #B4BCD0; max-width: 360px; font-size: .95rem; }
.footer-bottom {
    padding-top: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    text-align: center;
    font-size: .85rem;
    color: #8891AC;
}

/* ============ PROSE (inner pages) ============ */
.prose { max-width: 820px; margin: 0 auto; padding: 50px 20px; }
.prose .article-section { padding: 60px 50px; }
.prose .article-meta {
    display: flex;
    gap: 16px;
    font-size: .85rem;
    color: #6B7A9A;
    margin-bottom: 26px;
    flex-wrap: wrap;
}
.prose .table-of-contents {
    background: #EAF4FF;
    border-radius: 14px;
    padding: 20px 26px;
    margin: 26px 0 32px;
    border: 1px solid rgba(46, 134, 222, 0.15);
}
.prose .table-of-contents strong {
    display: block;
    margin-bottom: 10px;
    color: #1F2A44;
}
.prose .table-of-contents ol { margin-bottom: 0; color: #37435E; }

.related-nav {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid rgba(31, 42, 68, 0.1);
}
.related-nav a {
    display: block;
    padding: 18px 22px;
    background: #EAF4FF;
    border-radius: 14px;
    color: #1F2A44;
}
.related-nav a:hover { background: #D5EBFF; color: #2E86DE; }
.related-nav .label {
    display: block;
    font-size: .78rem;
    color: #2E86DE;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 4px;
}
.related-nav .title { font-weight: 600; font-size: 1rem; }

/* ============ RESPONSIVE ============ */
@media (max-width: 900px) {
    .hero { padding: 50px 0 60px; }
    .hero-inner { grid-template-columns: 1fr; gap: 40px; }
    .hero-visual { max-width: 420px; margin: 0 auto; }
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 30px; }
    .article-section, .prose .article-section { padding: 32px 24px; }
    .cta-band { padding: 48px 24px; }
    .section { padding: 60px 0; }
}

@media (max-width: 720px) {
    .menu-toggle { display: inline-flex; }
    .main-nav {
        position: absolute;
        top: 100%;
        left: 20px; right: 20px;
        background: #fff;
        border-radius: 16px;
        box-shadow: 0 12px 40px rgba(31, 42, 68, 0.14);
        padding: 12px;
        display: none;
        flex-direction: column;
        gap: 0;
    }
    .main-nav.open { display: flex; }
    .main-nav ul { flex-direction: column; width: 100%; gap: 0; }
    .main-nav li { width: 100%; }
    .main-nav a { padding: 12px 14px; }
    .dropdown {
        position: static;
        box-shadow: none;
        opacity: 1;
        visibility: visible;
        transform: none;
        display: none !important;
        padding-left: 20px;
    }
    .has-dropdown.open > .dropdown { display: block !important; }
    .category-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
    .category-card { padding: 18px; aspect-ratio: 1/1.1; }
    .hero-buttons { justify-content: center; }
    .hero-inner, .section-header { text-align: center; }
    .hero-eyebrow { margin-left: auto; margin-right: auto; }
    .hero-meta { justify-content: center; }
    .footer-grid { grid-template-columns: 1fr; }
    .related-nav { grid-template-columns: 1fr; }
}

@media (max-width: 440px) {
    .btn { padding: 12px 20px; font-size: .92rem; }
    .cta-band { padding: 40px 20px; }
}
