/* Globe Fulfillment 公共样式 */

/* 基础重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'SF Pro Display', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* 基础布局 */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 按钮样式 */
.btn {
    display: inline-block;
    background: #0071e3;
    color: white;
    border: none;
    padding: 16px 32px;
    font-size: 16px;
    border-radius: 8px;
    cursor: pointer;
    text-decoration: none;
    font-weight: 600;
    transition: background 0.3s ease;
}

.btn:hover {
    background: #0077ed;
}

.btn-secondary {
    background: transparent;
    color: #0071e3;
    border: 1px solid #0071e3;
}

.btn-secondary:hover {
    background: #f0f8ff;
}

/* 头部导航样式 */
header {
    background: #ffffff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 9999;
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    cursor: pointer;
    display: flex;
    align-items: center;
}

.logo-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #0071e3, #00c6ff);
    border-radius: 8px;
    margin-right: 10px;
}

/* 桌面端导航 */
.main-nav ul {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 8px;
}

.main-nav li {
    position: relative;
}

.main-nav a {
    text-decoration: none;
    color: #475569;
    font-weight: 500;
    font-size: 15px;
    letter-spacing: 0.3px;
    transition: all 0.3s ease;
    padding: 10px 18px;
    display: inline-block;
    border-radius: 8px;
    position: relative;
}

.main-nav a:hover {
    color: #0071e3;
    background: rgba(0, 113, 227, 0.06);
}

/* 选中状态样式 */
.main-nav a.active,
.main-nav li.current-menu-item a {
    color: #0071e3;
    background: rgba(0, 113, 227, 0.1);
    font-weight: 600;
}

.main-nav a.active::after,
.main-nav li.current-menu-item a::after {
    content: '';
    position: absolute;
    bottom: 4px;
    left: 18px;
    right: 18px;
    height: 2px;
    background: linear-gradient(90deg, #0071e3, #00c6ff);
    border-radius: 2px;
}

/* 头部操作按钮 */
.header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* 语言切换器 */
.language-switcher {
    position: relative;
}

.lang-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    background: transparent;
    border: 1px solid rgba(0, 113, 227, 0.3);
    border-radius: 50px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    color: #475569;
    transition: all 0.3s ease;
}

.lang-btn:hover {
    border-color: #0071e3;
    background: rgba(0, 113, 227, 0.05);
}

.lang-flag {
    font-size: 16px;
}

.lang-code {
    font-weight: 600;
    min-width: 24px;
}

.lang-arrow {
    font-size: 10px;
    transition: transform 0.3s ease;
}

.language-switcher.active .lang-arrow {
    transform: rotate(180deg);
}

/* 语言下拉菜单 */
.lang-dropdown {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    width: 280px;
    background: white;
    border-radius: 16px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1000;
    overflow: hidden;
}

.language-switcher.active .lang-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.lang-search {
    padding: 12px 16px;
    border-bottom: 1px solid #f1f5f9;
}

.lang-search input {
    width: 100%;
    padding: 10px 14px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    font-size: 14px;
    outline: none;
    transition: all 0.3s ease;
}

.lang-search input:focus {
    border-color: #0071e3;
    background: white;
}

.lang-list {
    max-height: 320px;
    overflow-y: auto;
    padding: 8px;
}

.lang-list::-webkit-scrollbar {
    width: 6px;
}

.lang-list::-webkit-scrollbar-track {
    background: #f1f5f9;
    border-radius: 3px;
}

.lang-list::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 3px;
}

.lang-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    border-radius: 10px;
    text-decoration: none;
    color: #0a192f;
    transition: all 0.2s ease;
}

.lang-item:hover {
    background: #f8fafc;
}

.lang-item.active {
    background: rgba(0, 113, 227, 0.1);
}

.lang-item-flag {
    font-size: 20px;
    width: 24px;
    text-align: center;
}

.lang-item-name {
    flex: 1;
    font-size: 14px;
    font-weight: 500;
}

.lang-item-code {
    font-size: 12px;
    color: #94a3b8;
    font-weight: 600;
}

/* Get Started 按钮样式 */
.get-started-btn {
    background: linear-gradient(135deg, #0071e3, #00c6ff);
    border: none;
    color: white;
    padding: 12px 28px;
    border-radius: 50px;
    cursor: pointer;
    font-weight: 600;
    font-size: 15px;
    letter-spacing: 0.3px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 113, 227, 0.3);
}

.get-started-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 113, 227, 0.4);
    background: linear-gradient(135deg, #0077ed, #00d4ff);
}

/* 移动端汉堡菜单按钮 */
.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: transparent;
    border: none;
    cursor: pointer;
}

.mobile-menu-btn span {
    width: 25px;
    height: 3px;
    background: #0a192f;
    border-radius: 3px;
}

/* 页脚样式 - 新版 */
.footer {
    background: #0a1628;
    color: white;
    padding: 80px 0 30px;
}

/* 主要链接区域 - 5列布局 */
.footer-main {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 40px;
    margin-bottom: 60px;
}

.footer-column h4 {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 24px;
    color: white;
    letter-spacing: 0.5px;
}

.footer-column ul {
    list-style: none;
}

.footer-column li {
    margin-bottom: 14px;
}

.footer-column a {
    color: #8b9aae;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.3s ease;
    display: inline-block;
}

.footer-column a:hover {
    color: #0071e3;
    transform: translateX(3px);
}

/* Blog列表样式 */
.blog-list li {
    margin-bottom: 18px;
    padding-bottom: 18px;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.blog-list li:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.blog-list a {
    display: block;
    color: #8b9aae;
    font-size: 14px;
    line-height: 1.5;
    margin-bottom: 6px;
}

.blog-list a:hover {
    color: #0071e3;
}

.blog-date {
    font-size: 12px;
    color: #5a6a7d;
}

/* Contact列表样式 */
.contact-list li {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.contact-icon {
    font-size: 16px;
    width: 20px;
    text-align: center;
}

.contact-list a {
    color: #8b9aae;
    font-size: 14px;
}

/* 社交媒体图标 */
.social-links {
    display: flex;
    gap: 10px;
    margin-top: 24px;
}

.social-icon {
    width: 36px;
    height: 36px;
    background: rgba(255,255,255,0.08);
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.3s ease;
    vertical-align: middle;
    padding: 0;
}

.social-icon img {
    width: 18px;
    height: 18px;
    filter: brightness(0) saturate(100%) invert(60%) sepia(15%) saturate(300%) hue-rotate(175deg);
    transition: all 0.3s ease;
}

.social-icon:hover img {
    filter: brightness(0) saturate(100%) invert(100%);
}

.social-icon:hover {
    background: #0071e3;
    color: white;
    transform: translateY(-3px);
}

.social-icon .fa {
    font-size: 16px;
    color: #94a3b8;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    line-height: 36px;
    text-align: center;
}

.social-icon:hover .fa {
    color: white;
}

/* Newsletter订阅区域 */
.footer-newsletter {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 60px;
    padding: 50px 0;
    border-top: 1px solid rgba(255,255,255,0.08);
    border-bottom: 1px solid rgba(255,255,255,0.08);
    margin-bottom: 40px;
}

.newsletter-brand .footer-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 16px;
}

.newsletter-brand p {
    color: #8b9aae;
    font-size: 14px;
    line-height: 1.7;
    max-width: 400px;
}

.newsletter-form h4 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 20px;
    color: white;
}

.subscribe-form {
    display: flex;
    gap: 12px;
}

.subscribe-form input {
    flex: 1;
    padding: 14px 18px;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 10px;
    color: white;
    font-size: 14px;
    outline: none;
    transition: all 0.3s ease;
}

.subscribe-form input::placeholder {
    color: #5a6a7d;
}

.subscribe-form input:focus {
    border-color: #0071e3;
    background: rgba(255,255,255,0.08);
}

.subscribe-btn {
    padding: 14px 28px;
    background: linear-gradient(135deg, #0071e3, #00c6ff);
    border: none;
    border-radius: 10px;
    color: white;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.subscribe-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 113, 227, 0.3);
}

/* 底部版权区域 */
.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.footer-bottom-left {
    display: flex;
    align-items: center;
    gap: 16px;
}

.payment-label {
    color: #5a6a7d;
    font-size: 13px;
}

.payment-icons {
    display: flex;
    gap: 12px;
}

.payment-icon {
    color: #6a7a8d;
    font-size: 13px;
    font-weight: 500;
}

.footer-bottom-right {
    display: flex;
    gap: 30px;
}

.footer-bottom-right a {
    color: #6a7a8d;
    font-size: 13px;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-bottom-right a:hover {
    color: #0071e3;
}

/* 版权信息 */
.footer-copyright {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255,255,255,0.05);
}

.footer-copyright p {
    color: #5a6a7d;
    font-size: 13px;
}

/* 移动端适配 */
@media (max-width: 992px) {
    .main-nav {
        position: fixed;
        top: 0;
        right: 0;
        height: 100vh;
        width: 280px;
        background: white;
        padding: 80px 20px 20px;
        box-shadow: -2px 0 10px rgba(0,0,0,0.1);
        transform: translateX(100%);
        transition: transform 0.3s ease;
        z-index: 9998;
    }

    .main-nav.active {
        transform: translateX(0);
    }

    .main-nav ul {
        flex-direction: column;
        gap: 4px;
    }

    .main-nav li {
        padding: 0;
        border-bottom: none;
    }

    .main-nav a {
        padding: 14px 16px;
        display: block;
        border-radius: 10px;
        font-size: 16px;
    }

    .main-nav a:hover {
        background: rgba(0, 113, 227, 0.08);
    }

    /* 移动端选中状态 */
    .main-nav a.active,
    .main-nav li.current-menu-item a {
        background: rgba(0, 113, 227, 0.12);
    }

    .main-nav a.active::after,
    .main-nav li.current-menu-item a::after {
        display: none;
    }

    .mobile-menu-btn {
        display: flex;
    }

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

@media (max-width: 1200px) {
    .footer-main {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 992px) {
    .footer-main {
        grid-template-columns: repeat(2, 1fr);
        gap: 40px 30px;
    }

    .footer-newsletter {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }

    .footer-bottom-left {
        flex-wrap: wrap;
        justify-content: center;
    }

    .footer-bottom-right {
        flex-wrap: wrap;
        justify-content: center;
        gap: 20px;
    }
}

@media (max-width: 768px) {
    .footer {
        padding: 60px 0 20px;
    }

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

    .footer-column h4 {
        margin-bottom: 16px;
    }

    .subscribe-form {
        flex-direction: column;
    }

    .subscribe-btn {
        width: 100%;
    }
}
