/*
Theme Name: 爱亚仓主题
Theme URI: https://www.aiyancang.com
Description: 爱亚仓官方WordPress主题 | SEO优化 | GEO生成式引擎优化 | 东南亚海外仓专用主题
Version: 1.0.0
Author: 爱亚仓
Author URI: https://www.aiyancang.com
License: GPL v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: aiyancang
Tags: one-column, two-columns, custom-colors, custom-logo, custom-menu, editor-style, featured-images, footer-widgets, full-width-template, block-patterns, block-styles, wide-blocks

爱亚仓主题 - 东南亚海外仓一站式跨境物流主题
包含完整SEO元标签、GEO结构化数据（Article/FAQ/BreadcrumbList/Organization），
支持Schema.org JSON-LD、GEO语义标签、Open Graph。
*/

/* ============================================
   CSS 变量与基础配置
   ============================================ */
:root {
    --primary: #0052CC;       /* 爱亚仓蓝 */
    --primary-dark: #003D99;
    --primary-light: #E6F0FF;
    --accent: #FF6B35;        /* 活力橙 */
    --accent-dark: #E55A25;
    --accent-light: #FFF0EB;
    --gold: #F59E0B;          /* 金色点缀 */
    --bg: #F7F9FC;            /* 背景灰 */
    --bg-white: #FFFFFF;
    --bg-card: #FFFFFF;
    --text: #1A202C;          /* 主文本 */
    --text-secondary: #4A5568;
    --text-light: #718096;
    --border: #E2E8F0;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
    --shadow-md: 0 4px 16px rgba(0,0,0,0.1);
    --shadow-lg: 0 8px 30px rgba(0,0,0,0.12);
    --shadow-hover: 0 12px 40px rgba(0,82,204,0.15);
    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --font-main: 'PingFang SC', 'Microsoft YaHei', -apple-system, BlinkMacSystemFont, sans-serif;
    --max-w: 1200px;
}

/* ============================================
   重置与基础
   ============================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; }
body {
    font-family: var(--font-main);
    color: var(--text);
    background: var(--bg);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}
a { color: var(--primary); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--primary-dark); }
img { max-width: 100%; height: auto; display: block; }
ul, ol { list-style: none; }
button { cursor: pointer; font-family: inherit; }
input, textarea, select { font-family: inherit; }

/* 容器 */
.aiy-container { max-width: var(--max-w); margin: 0 auto; padding: 0 20px; }

/* ============================================
   头部导航
   ============================================ */
.site-header {
    background: var(--bg-white);
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid var(--border);
}
.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
    max-width: var(--max-w);
    margin: 0 auto;
    height: 70px;
    gap: 20px;
}
.site-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.3em;
    font-weight: 700;
    color: var(--primary);
    flex-shrink: 0;
}
.site-logo img { height: 42px; width: auto; }
.site-logo .logo-text { line-height: 1.2; }
.site-logo .logo-sub { font-size: 0.65em; color: var(--text-light); font-weight: 400; }

/* 导航 */
.main-nav { display: flex; align-items: center; gap: 4px; }
.main-nav a {
    padding: 8px 16px;
    color: var(--text-secondary);
    font-size: 0.95em;
    font-weight: 500;
    border-radius: var(--radius-sm);
    transition: var(--transition);
    white-space: nowrap;
}
.main-nav a:hover, .main-nav a.current-menu-item,
.main-nav a[aria-current="page"] {
    color: var(--primary);
    background: var(--primary-light);
}
.main-nav .menu-item-has-children { position: relative; }
.main-nav .sub-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--bg-white);
    box-shadow: var(--shadow-lg);
    border-radius: var(--radius-md);
    min-width: 200px;
    padding: 8px;
    display: none;
    z-index: 100;
    border: 1px solid var(--border);
}
.main-nav .menu-item-has-children:hover .sub-menu { display: block; }
.main-nav .sub-menu a {
    display: block;
    padding: 10px 16px;
    border-radius: var(--radius-sm);
}
.main-nav .sub-menu a:hover { background: var(--primary-light); }

/* 移动端菜单按钮 */
.menu-toggle { display: none; background: none; border: none; padding: 8px; cursor: pointer; }
.menu-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--text);
    margin: 5px 0;
    border-radius: 2px;
    transition: var(--transition);
}

/* ============================================
   Hero 区域
   ============================================ */
.hero-section {
    background: linear-gradient(135deg, #003D99 0%, #0052CC 40%, #0073E6 70%, #00B4D8 100%);
    color: #fff;
    padding: 80px 0 70px;
    position: relative;
    overflow: hidden;
}
.hero-section::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.hero-inner {
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
    position: relative;
}
.hero-content h1 {
    font-size: 2.6em;
    font-weight: 800;
    line-height: 1.25;
    margin-bottom: 20px;
}
.hero-content .hero-subtitle {
    font-size: 1.15em;
    opacity: 0.9;
    margin-bottom: 30px;
    line-height: 1.8;
}
.hero-badges { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 30px; }
.hero-badge {
    background: rgba(255,255,255,0.15);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.25);
    padding: 6px 14px;
    border-radius: 50px;
    font-size: 0.88em;
    color: #fff;
}
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.btn-primary {
    background: var(--accent);
    color: #fff !important;
    padding: 14px 32px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1em;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition);
    border: none;
    cursor: pointer;
}
.btn-primary:hover {
    background: var(--accent-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(255,107,53,0.35);
    color: #fff !important;
}
.btn-outline {
    border: 2px solid rgba(255,255,255,0.4);
    color: #fff !important;
    padding: 12px 28px;
    border-radius: 50px;
    font-weight: 600;
    transition: var(--transition);
}
.btn-outline:hover {
    border-color: #fff;
    background: rgba(255,255,255,0.1);
    color: #fff !important;
}
.hero-visual {
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.platform-cards {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 12px;
}
.platform-card {
    background: rgba(255,255,255,0.12);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: var(--radius-md);
    padding: 16px 12px;
    text-align: center;
    color: #fff;
    transition: var(--transition);
}
.platform-card:hover { background: rgba(255,255,255,0.2); transform: translateY(-3px); }
.platform-card .p-icon { font-size: 1.8em; margin-bottom: 6px; }
.platform-card .p-name { font-size: 0.8em; font-weight: 600; }
.stats-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
}
.stat-box {
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: var(--radius-md);
    padding: 14px 10px;
    text-align: center;
    color: #fff;
}
.stat-box .stat-num { font-size: 1.5em; font-weight: 800; color: var(--gold); }
.stat-box .stat-label { font-size: 0.75em; opacity: 0.8; margin-top: 2px; }

/* ============================================
   平台认证
   ============================================ */
.cert-section { padding: 50px 0; background: var(--bg-white); }
.section-title { text-align: center; margin-bottom: 12px; }
.section-title h2 { font-size: 1.8em; font-weight: 700; color: var(--text); }
.section-title p { color: var(--text-light); font-size: 1em; margin-top: 6px; }
.cert-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 30px;
}
.cert-card {
    background: var(--bg);
    border-radius: var(--radius-lg);
    padding: 32px 24px;
    text-align: center;
    border: 1px solid var(--border);
    transition: var(--transition);
}
.cert-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
    border-color: var(--primary);
}
.cert-card .cert-icon { font-size: 3em; margin-bottom: 14px; }
.cert-card h3 { font-size: 1.1em; font-weight: 700; color: var(--text); margin-bottom: 10px; }
.cert-card p { font-size: 0.9em; color: var(--text-secondary); line-height: 1.7; }
.cert-tags { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; margin-top: 12px; }
.cert-tag {
    background: var(--primary-light);
    color: var(--primary);
    padding: 3px 10px;
    border-radius: 50px;
    font-size: 0.78em;
    font-weight: 500;
}

/* ============================================
   核心服务
   ============================================ */
.services-section { padding: 70px 0; background: var(--bg); }
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 35px;
}
.service-card {
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    padding: 32px 26px;
    border: 1px solid var(--border);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}
.service-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    transform: scaleX(0);
    transition: transform 0.3s;
}
.service-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-hover); border-color: transparent; }
.service-card:hover::before { transform: scaleX(1); }
.service-card .svc-icon { font-size: 2.5em; margin-bottom: 14px; }
.service-card h3 { font-size: 1.05em; font-weight: 700; color: var(--text); margin-bottom: 8px; }
.service-card p { font-size: 0.9em; color: var(--text-secondary); line-height: 1.7; }

/* ============================================
   数据统计
   ============================================ */
.stats-section {
    padding: 60px 0;
    background: linear-gradient(135deg, #003D99, #0052CC);
    color: #fff;
}
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; text-align: center; margin-top: 30px; }
.stats-item { padding: 20px; }
.stats-item .s-num { font-size: 2.8em; font-weight: 800; color: var(--gold); line-height: 1; }
.stats-item .s-label { font-size: 0.95em; opacity: 0.85; margin-top: 6px; }
.stats-item .s-desc { font-size: 0.8em; opacity: 0.65; margin-top: 4px; }

/* ============================================
   博客/栏目文章网格
   ============================================ */
.blog-section { padding: 70px 0; background: var(--bg-white); }
.blog-tabs { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; margin-bottom: 35px; }
.blog-tab {
    padding: 8px 22px;
    border: 1.5px solid var(--border);
    border-radius: 50px;
    background: var(--bg-white);
    color: var(--text-secondary);
    font-size: 0.92em;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
}
.blog-tab:hover { border-color: var(--primary); color: var(--primary); }
.blog-tab.active {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
}
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
}
.blog-card {
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}
.blog-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); }
.blog-card-thumb {
    position: relative;
    height: 190px;
    overflow: hidden;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
}
.blog-card-thumb img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform 0.4s;
}
.blog-card:hover .blog-card-thumb img { transform: scale(1.05); }
.blog-card-cat {
    position: absolute;
    top: 12px;
    left: 12px;
    background: var(--primary);
    color: #fff;
    padding: 3px 12px;
    border-radius: 50px;
    font-size: 0.75em;
    font-weight: 600;
}
.blog-card-body { padding: 20px; flex: 1; display: flex; flex-direction: column; }
.blog-card-body h3 {
    font-size: 1em;
    font-weight: 600;
    line-height: 1.5;
    margin-bottom: 10px;
    color: var(--text);
    flex: 1;
}
.blog-card-body h3 a { color: inherit; }
.blog-card-body h3 a:hover { color: var(--primary); }
.blog-card-excerpt {
    font-size: 0.88em;
    color: var(--text-secondary);
    line-height: 1.65;
    margin-bottom: 14px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.blog-card-meta { display: flex; align-items: center; gap: 12px; font-size: 0.8em; color: var(--text-light); }
.blog-card-meta .meta-date {}
.blog-card-meta .meta-read {}

/* ============================================
   单篇文章
   ============================================ */
.single-post { padding: 40px 0 60px; }
.single-header {
    max-width: 760px;
    margin: 0 auto 30px;
    text-align: center;
}
.single-cat {
    display: inline-block;
    background: var(--primary);
    color: #fff;
    padding: 4px 16px;
    border-radius: 50px;
    font-size: 0.82em;
    font-weight: 600;
    margin-bottom: 16px;
}
.single-title { font-size: 2em; font-weight: 800; color: var(--text); line-height: 1.35; margin-bottom: 16px; }
.single-meta { color: var(--text-light); font-size: 0.9em; display: flex; gap: 16px; justify-content: center; }
.single-featured {
    max-width: 760px;
    margin: 0 auto 30px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
}
.single-featured img { width: 100%; height: auto; max-height: 450px; object-fit: cover; }
.single-content { max-width: 760px; margin: 0 auto; font-size: 1.05em; line-height: 1.85; color: var(--text-secondary); }
.single-content h2 { font-size: 1.4em; color: var(--text); margin: 1.8em 0 0.8em; font-weight: 700; }
.single-content h3 { font-size: 1.2em; color: var(--text); margin: 1.5em 0 0.6em; }
.single-content p { margin-bottom: 1.2em; }
.single-content ul, .single-content ol { padding-left: 1.5em; margin-bottom: 1.2em; }
.single-content li { list-style: disc; margin-bottom: 0.4em; }
.single-content blockquote {
    border-left: 4px solid var(--primary);
    padding: 16px 20px;
    background: var(--primary-light);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    margin: 1.5em 0;
    font-style: italic;
    color: var(--text);
}

/* ============================================
   分类页
   ============================================ */
.category-header {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: #fff;
    padding: 50px 0;
    text-align: center;
}
.category-header h1 { font-size: 2em; font-weight: 700; margin-bottom: 8px; }
.category-header p { opacity: 0.85; font-size: 1em; }
.archive-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 24px;
    padding: 40px 0;
}

/* ============================================
   侧边栏
   ============================================ */
.sidebar { }
.widget { background: var(--bg-white); border-radius: var(--radius-md); padding: 24px; margin-bottom: 24px; border: 1px solid var(--border); }
.widget-title { font-size: 1.05em; font-weight: 700; color: var(--text); margin-bottom: 16px; padding-bottom: 10px; border-bottom: 2px solid var(--primary); }
.widget ul li { padding: 8px 0; border-bottom: 1px solid var(--border); }
.widget ul li:last-child { border-bottom: none; }
.widget ul li a { color: var(--text-secondary); font-size: 0.92em; }
.widget ul li a:hover { color: var(--primary); }

/* ============================================
   FAQ 折叠
   ============================================ */
.faq-section { padding: 60px 0; background: var(--bg); }
.faq-list { max-width: 760px; margin: 30px auto 0; }
.faq-item { margin-bottom: 12px; }
.faq-q {
    width: 100%;
    text-align: left;
    padding: 18px 24px;
    background: var(--bg-white);
    border: 1.5px solid var(--border);
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: 1em;
    color: var(--text);
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    transition: var(--transition);
}
.faq-q:hover { border-color: var(--primary); color: var(--primary); }
.faq-q.active { border-color: var(--primary); background: var(--primary-light); color: var(--primary); border-radius: var(--radius-md) var(--radius-md) 0 0; }
.faq-q .faq-icon { font-size: 1.2em; transition: transform 0.3s; flex-shrink: 0; margin-left: 10px; }
.faq-q.active .faq-icon { transform: rotate(45deg); }
.faq-a {
    display: none;
    padding: 18px 24px;
    background: var(--bg-white);
    border: 1.5px solid var(--border);
    border-top: none;
    border-radius: 0 0 var(--radius-md) var(--radius-md);
    color: var(--text-secondary);
    line-height: 1.75;
    font-size: 0.95em;
}
.faq-a.show { display: block; }

/* ============================================
   CTA
   ============================================ */
.cta-section {
    padding: 70px 0;
    background: linear-gradient(135deg, var(--primary), #003D99);
    color: #fff;
    text-align: center;
}
.cta-section h2 { font-size: 2em; font-weight: 800; margin-bottom: 12px; }
.cta-section p { opacity: 0.85; margin-bottom: 30px; font-size: 1.05em; }

/* ============================================
   页脚
   ============================================ */
.site-footer {
    background: #0A1628;
    color: rgba(255,255,255,0.75);
    padding: 50px 0 0;
}
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
.footer-col h4 { color: #fff; font-size: 1em; font-weight: 700; margin-bottom: 16px; }
.footer-col p { font-size: 0.9em; line-height: 1.7; }
.footer-col ul li { margin-bottom: 8px; }
.footer-col ul li a { color: rgba(255,255,255,0.65); font-size: 0.9em; }
.footer-col ul li a:hover { color: var(--gold); }
.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding: 20px 0;
    text-align: center;
    font-size: 0.85em;
    color: rgba(255,255,255,0.45);
}

/* ============================================
   面包屑
   ============================================ */
.breadcrumb {
    padding: 14px 0;
    font-size: 0.85em;
    color: var(--text-light);
    border-bottom: 1px solid var(--border);
    background: var(--bg);
}
.breadcrumb-inner { max-width: var(--max-w); margin: 0 auto; padding: 0 20px; }
.breadcrumb a { color: var(--text-secondary); }
.breadcrumb span { margin: 0 6px; color: var(--border); }

/* ============================================
   分页
   ============================================ */
.pagination { display: flex; gap: 6px; justify-content: center; align-items: center; margin-top: 40px; }
.pagination a, .pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 10px;
    border-radius: var(--radius-sm);
    background: var(--bg-white);
    border: 1px solid var(--border);
    color: var(--text-secondary);
    font-size: 0.9em;
    transition: var(--transition);
}
.pagination a:hover { border-color: var(--primary); color: var(--primary); }
.pagination .current { background: var(--primary); border-color: var(--primary); color: #fff; }

/* ============================================
   404
   ============================================ */
.error-404 { text-align: center; padding: 80px 20px; }
.error-404 h1 { font-size: 5em; color: var(--primary); font-weight: 800; }
.error-404 p { font-size: 1.1em; color: var(--text-secondary); margin: 16px 0 24px; }

/* ============================================
   响应式
   ============================================ */
@media (max-width: 1024px) {
    .hero-inner { grid-template-columns: 1fr; gap: 30px; }
    .hero-visual { display: none; }
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
    .cert-grid { grid-template-columns: repeat(2, 1fr); }
    .services-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
    .header-inner { height: 60px; }
    .menu-toggle { display: block; }
    .main-nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0; right: 0;
        background: var(--bg-white);
        box-shadow: var(--shadow-lg);
        flex-direction: column;
        padding: 10px;
        border-top: 1px solid var(--border);
    }
    .main-nav.open { display: flex; }
    .main-nav a { padding: 12px 16px; }
    .hero-section { padding: 50px 0 40px; }
    .hero-content h1 { font-size: 1.8em; }
    .services-grid { grid-template-columns: 1fr; }
    .cert-grid { grid-template-columns: 1fr; }
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
    .blog-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; }
    .stats-row { grid-template-columns: repeat(2, 1fr); }
    .platform-cards { grid-template-columns: 1fr 1fr; }
    .single-title { font-size: 1.5em; }
}
