/* 飞禾跨境新版 - 首页样式
 * 创建时间: 2025-12-28
 * 模仿: seafh.com 首页布局
 */

/* ========== 顶部导航增强 ========== */
.header-nav a {
    color: var(--text-primary);
    font-size: 15px;
    font-weight: 500;
}

.header-right {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
}

.header-search {
    display: flex;
    align-items: center;
    background: var(--bg-light);
    border-radius: var(--radius-full);
    padding: 4px;
}

.header-search input {
    border: none;
    background: transparent;
    padding: 8px 12px;
    width: 120px;
    font-size: 13px;
}

.header-search input:focus {
    outline: none;
}

.header-search button {
    background: transparent;
    border: none;
    padding: 6px;
    cursor: pointer;
    color: var(--text-muted);
}

.btn-login {
    color: var(--text-secondary) !important;
    font-size: 14px;
}

.btn-register {
    background: var(--primary);
    color: white !important;
    padding: 8px 16px;
    border-radius: var(--radius-full);
    font-size: 14px;
    font-weight: 500;
}

.btn-register:hover {
    background: var(--primary-dark);
    color: white !important;
}

/* ========== 搜索区域 ========== */
.search-section {
    background: linear-gradient(135deg, #f0f4ff 0%, #e8f0fe 100%);
    padding: var(--spacing-2xl) 0;
}

.search-wrapper {
    display: flex;
    gap: var(--spacing-xl);
    align-items: flex-start;
}

.search-main {
    flex: 1;
}

.search-title {
    font-size: 32px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: var(--spacing-sm);
}

.search-subtitle {
    font-size: 15px;
    color: var(--text-muted);
    margin-bottom: var(--spacing-xl);
}

.search-logo {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-lg);
}

.search-logo img {
    height: 48px;
}

.search-logo span {
    font-size: 20px;
    font-weight: 700;
    color: #2563eb;
    letter-spacing: 1px;
}

.search-box-large {
    display: flex;
    align-items: center;
    background: var(--bg-white);
    border: 2px solid var(--border-color);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.search-box-large:focus-within {
    border-color: var(--primary);
}

.search-category {
    padding: var(--spacing-md) var(--spacing-lg);
    background: var(--bg-light);
    border: none;
    border-right: 1px solid var(--border-color);
    font-size: 14px;
    font-weight: 500;
    color: var(--text-primary);
    cursor: pointer;
}

.search-box-large input {
    flex: 1;
    padding: var(--spacing-md) var(--spacing-lg);
    border: none;
    font-size: 15px;
    min-width: 300px;
}

.search-box-large input:focus {
    outline: none;
}

.search-submit {
    padding: var(--spacing-md) var(--spacing-xl);
    background: #2563eb;
    border: none;
    color: white;
    cursor: pointer;
    transition: background 0.2s;
}

.search-submit:hover {
    background: #1d4ed8;
}

.hot-search {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    margin-top: var(--spacing-lg);
    font-size: 14px;
}

.hot-search span {
    color: var(--text-muted);
}

.hot-search a {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 6px 16px;
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-full);
    color: var(--text-secondary);
    font-size: 13px;
}

.hot-search a::before {
    content: '●';
    color: #2563eb;
    font-size: 8px;
}

.hot-search a:hover {
    border-color: var(--primary);
    color: var(--primary);
}

/* ========== 快讯小工具 ========== */
.news-widget {
    width: 320px;
    background: #1e3a5f;
    border-radius: var(--radius-lg);
    overflow: hidden;
    flex-shrink: 0;
}

.news-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--spacing-md) var(--spacing-lg);
    background: #2563eb;
}

.news-title {
    color: white;
    font-size: 14px;
    font-weight: 600;
}

.news-more {
    color: rgba(255,255,255,0.8);
    font-size: 12px;
}

.news-more:hover {
    color: white;
}

.news-list {
    list-style: none;
    padding: var(--spacing-md);
}

.news-list li {
    display: flex;
    align-items: flex-start;
    gap: var(--spacing-sm);
    padding: var(--spacing-sm) 0;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.news-list li:last-child {
    border-bottom: none;
}

.news-time {
    font-size: 11px;
    color: rgba(255,255,255,0.5);
    white-space: nowrap;
    padding: 2px 6px;
    background: rgba(255,255,255,0.1);
    border-radius: 4px;
}

.news-list a {
    font-size: 13px;
    color: rgba(255,255,255,0.85);
    line-height: 1.4;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.news-list a:hover {
    color: white;
}

/* ========== 导航区域 ========== */
.nav-section {
    padding: var(--spacing-xl) 0;
}

.nav-layout {
    display: flex;
    gap: var(--spacing-xl);
}

/* 左侧分类 */
.nav-sidebar {
    width: 180px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    gap: var(--spacing-xs);
}

.sidebar-item {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    padding: var(--spacing-md);
    border-radius: var(--radius-md);
    color: var(--text-secondary);
    font-size: 14px;
    transition: all 0.2s;
}

.sidebar-item:hover {
    background: var(--bg-white);
    color: var(--text-primary);
}

.sidebar-item.active {
    background: var(--primary);
    color: white;
}

.sidebar-icon {
    font-size: 18px;
}

/* 右侧内容 */
.nav-content {
    flex: 1;
    min-width: 0;
}

/* 世界时钟 */
.world-clock {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-xl);
}

.clock-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: var(--spacing-md);
    background: var(--bg-white);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
}

.clock-flags {
    font-size: 16px;
    margin-bottom: 4px;
}

.clock-label {
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 4px;
}

.clock-time {
    font-size: 16px;
    font-weight: 600;
    color: var(--primary);
    font-family: var(--font-mono);
}

/* 分类区块 */
.category-section {
    margin-bottom: var(--spacing-xl);
}

.category-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--spacing-md);
    padding-bottom: var(--spacing-sm);
    border-bottom: 2px solid var(--border-color);
}

.category-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
}

.category-more {
    font-size: 13px;
    color: var(--text-muted);
}

.category-more:hover {
    color: var(--primary);
}

/* 卡片网格 */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: var(--spacing-md);
}

.nav-card {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    padding: var(--spacing-md);
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    transition: all 0.2s;
    position: relative;
}

.nav-card:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.nav-card.featured {
    border-color: var(--primary);
    background: linear-gradient(135deg, #fff5f0, #fff);
}

.card-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    flex-shrink: 0;
}

.card-content h3 {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 2px;
}

.card-content p {
    font-size: 12px;
    color: var(--text-muted);
}

.card-badge {
    position: absolute;
    top: 0;
    right: 12px;
    background: var(--primary);
    color: white;
    font-size: 11px;
    padding: 2px 8px;
    border-radius: 0 0 4px 4px;
}

/* ========== 移动端适配 ========== */
@media (max-width: 768px) {
    /* 顶部导航 */
    .header-nav,
    .header-right {
        display: none;
    }
    
    /* 搜索区域 */
    .search-section {
        padding: var(--spacing-lg) 0;
    }
    
    .search-wrapper {
        flex-direction: column;
    }
    
    .search-title {
        font-size: 22px;
    }
    
    .search-subtitle {
        font-size: 13px;
    }
    
    .search-logo {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .search-logo img {
        height: 36px;
    }
    
    .search-logo span {
        font-size: 16px;
    }
    
    .search-box-large {
        flex-wrap: wrap;
    }
    
    .search-box-large input {
        min-width: 100%;
        order: 1;
    }
    
    .search-category {
        order: 2;
        flex: 1;
    }
    
    .search-submit {
        order: 3;
    }
    
    .hot-search {
        flex-wrap: wrap;
    }
    
    /* 快讯 */
    .news-widget {
        width: 100%;
    }
    
    /* 导航 */
    .nav-layout {
        flex-direction: column;
    }
    
    .nav-sidebar {
        width: 100%;
        flex-direction: row;
        overflow-x: auto;
        gap: var(--spacing-sm);
        padding-bottom: var(--spacing-sm);
    }
    
    .sidebar-item {
        white-space: nowrap;
        flex-shrink: 0;
    }
    
    /* 时钟 */
    .world-clock {
        grid-template-columns: repeat(2, 1fr);
    }
    
    /* 卡片 */
    .cards-grid {
        grid-template-columns: 1fr;
    }
}


