/* 全局样式重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Noto Sans SC', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f5f5f5;
    overflow-x: hidden;
}

/* 容器样式 */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 导航栏样式 */
.navbar {
    background-color: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(15px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    transition: transform 0.3s ease, background-color 0.3s ease;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 25px 20px;
}

.logo h1 {
    font-size: 26px;
    font-weight: 700;
    color: #333;
    letter-spacing: -0.5px;
    text-transform: uppercase;
}

.logo h1 .elephantpay {
    font-size: 18px;
    font-weight: 500;
    color: #666;
    margin-left: 20px;
    font-style: normal;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.nav-links {
    display: flex;
    list-style: none;
    align-items: center;
}

.nav-links li {
    margin-left: 50px;
}

.nav-links a {
    text-decoration: none;
    color: #555;
    font-weight: 500;
    font-size: 14px;
    letter-spacing: 1px;
    transition: color 0.3s ease, transform 0.3s ease;
    position: relative;
    text-transform: uppercase;
}

.nav-links a:hover {
    color: #333;
    transform: translateY(-2px);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: #333;
    transition: width 0.3s ease;
}

.nav-links a:hover::after {
    width: 100%;
}

/* 实时汇率样式 */
.exchange-rate {
    background-color: #f0f0f0;
    border-bottom: 1px solid #e0e0e0;
    padding: 30px 0;
    margin-top: 100px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.rate-content {
    text-align: center;
}

.rate-content h3 {
    font-size: 20px;
    font-weight: 600;
    color: #333;
    margin-bottom: 20px;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.rate-title {
    font-size: 14px;
    color: #666;
    margin-bottom: 20px;
    font-weight: 500;
    letter-spacing: 1px;
}

.rate-values {
    display: flex;
    justify-content: center;
    gap: 25px;
    margin-bottom: 20px;
    flex-wrap: wrap;
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
}

/* 汇率项目样式 */
.rate-item {
    padding: 12px 20px;
    border-radius: 30px;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    background-color: rgba(255, 255, 255, 0.9);
    color: #555;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.rate-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.12);
    background-color: rgba(255, 255, 255, 0.95);
}

.rate-update {
    font-size: 12px;
    color: #888;
    margin-bottom: 8px;
    letter-spacing: 1px;
}

.rate-note {
    font-size: 11px;
    color: #999;
    font-style: italic;
    letter-spacing: 1px;
}

/* 英雄区域样式 */
.hero {
    background: linear-gradient(135deg, #f5f5f5 0%, #e8e8e8 100%);
    color: #333;
    padding: 150px 0 120px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 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="%23000000" fill-opacity="0.03"%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');
    opacity: 0.8;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 1000px;
    margin: 0 auto;
    animation: fadeInUp 1s ease-out;
}

.hero h1 {
    font-size: 60px;
    font-weight: 700;
    margin-bottom: 35px;
    line-height: 1.1;
    letter-spacing: -1.5px;
    text-transform: uppercase;
}

.hero p {
    font-size: 20px;
    margin-bottom: 60px;
    color: #555;
    line-height: 1.6;
    letter-spacing: 1px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* 按钮样式 */
.btn-primary {
    display: inline-block;
    background-color: #333;
    color: #fff;
    padding: 18px 45px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 15px;
    letter-spacing: 2px;
    text-transform: uppercase;
    transition: all 0.3s ease;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.2);
    border: none;
    cursor: pointer;
}

.btn-primary:hover {
    background-color: #444;
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
}

.btn-primary:active {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* 通用章节样式 */
section {
    padding: 140px 0;
    position: relative;
}

section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(0, 0, 0, 0.1), transparent);
}

section h2 {
    font-size: 40px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 35px;
    color: #333;
    letter-spacing: -1px;
    text-transform: uppercase;
    position: relative;
    display: inline-block;
    left: 50%;
    transform: translateX(-50%);
}

section h2::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 2px;
    background-color: #333;
}

.section-description {
    text-align: center;
    font-size: 17px;
    color: #555;
    margin-bottom: 90px;
    max-width: 750px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.7;
    letter-spacing: 0.8px;
}

/* 服务介绍样式 */
.services {
    background-color: #fff;
}

/* 核心优势样式 */
.advantages {
    background-color: #f8f8f8;
}

.advantage-card {
    background-color: #fff;
    border-radius: 16px;
    padding: 60px;
    margin-bottom: 40px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    align-items: flex-start;
    border: 1px solid rgba(0, 0, 0, 0.05);
    position: relative;
    overflow: hidden;
}

.advantage-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background-color: #333;
    opacity: 0.8;
}

.advantage-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.advantage-icon {
    margin-right: 40px;
    flex-shrink: 0;
    background-color: #f5f5f5;
    width: 80px;
    height: 80px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease;
}

.advantage-card:hover .advantage-icon {
    transform: scale(1.1);
}

.advantage-card h3 {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 25px;
    color: #333;
    letter-spacing: -0.5px;
    text-transform: uppercase;
}

.advantage-card p {
    font-size: 17px;
    color: #555;
    line-height: 1.7;
    letter-spacing: 0.5px;
    position: relative;
    z-index: 1;
}

/* 覆盖市场样式 */
.coverage {
    background-color: #fafafa;
}

.market-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 30px;
    margin-top: 80px;
    max-width: 1100px;
    margin-left: auto;
    margin-right: auto;
}

.market-item {
    background: linear-gradient(135deg, #f8f8f8 0%, #f0f0f0 100%);
    color: #333;
    padding: 50px;
    border-radius: 16px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0, 0, 0, 0.05);
    position: relative;
    overflow: hidden;
}

.market-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background-color: #333;
    opacity: 0.8;
}

.market-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
    background: linear-gradient(135deg, #f5f5f5 0%, #e8e8e8 100%);
}

.market-item h3 {
    font-size: 20px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    position: relative;
    z-index: 1;
}

/* 市场卡片色彩 */
.market-item:nth-child(1) {
    background: linear-gradient(135deg, #f5f5f5 0%, #e8e8e8 100%);
}

.market-item:nth-child(2) {
    background: linear-gradient(135deg, #f0f0f0 0%, #e3e3e3 100%);
}

.market-item:nth-child(3) {
    background: linear-gradient(135deg, #ebebeb 0%, #dedede 100%);
}

.market-item:nth-child(4) {
    background: linear-gradient(135deg, #e8e8e8 0%, #dbdbdb 100%);
}

.market-item:nth-child(5) {
    background: linear-gradient(135deg, #e3e3e3 0%, #d6d6d6 100%);
}

.market-item:nth-child(6) {
    background: linear-gradient(135deg, #dedede 0%, #cfcfcf 100%);
}

/* 联系我们样式 */
.contact {
    background-color: #f5f5f5;
}

.contact-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    max-width: 1100px;
    margin: 0 auto;
    align-items: start;
}

.contact-info {
    background-color: #fff;
    padding: 60px;
    border-radius: 16px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0, 0, 0, 0.05);
    position: relative;
    overflow: hidden;
}

.contact-info::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background-color: #333;
    opacity: 0.8;
}

.contact-info h3 {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 40px;
    color: #333;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.contact-details p {
    font-size: 17px;
    color: #555;
    margin-bottom: 25px;
    line-height: 1.7;
    letter-spacing: 0.5px;
}

.contact-details p strong {
    color: #333;
    font-weight: 600;
    margin-right: 15px;
}

.whatsapp-qr {
    background-color: #fff;
    padding: 60px;
    border-radius: 16px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    text-align: center;
    border: 1px solid rgba(0, 0, 0, 0.05);
    position: relative;
    overflow: hidden;
}

.whatsapp-qr::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background-color: #333;
    opacity: 0.8;
}

.whatsapp-qr h3 {
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 40px;
    color: #333;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.qr-code-container {
    display: flex;
    gap: 40px;
    justify-content: center;
    flex-wrap: wrap;
}

.qr-code {
    margin: 15px 0;
    background-color: #f5f5f5;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.qr-code:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.qr-code img {
    border: 1px solid #e0e0e0;
    padding: 20px;
    border-radius: 10px;
    background-color: #fff;
    max-width: 200px;
    height: auto;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

/* 页脚样式 */
.footer {
    background-color: #333;
    color: #fff;
    padding: 100px 0 50px;
    position: relative;
    overflow: hidden;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background-color: #fff;
    opacity: 0.8;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    margin-bottom: 80px;
    flex-wrap: wrap;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    padding: 0 20px;
    position: relative;
    z-index: 1;
}

.footer-info,
.footer-links,
.footer-contact {
    flex: 1;
    min-width: 250px;
    margin-bottom: 50px;
}

.footer-info h3 {
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 30px;
    color: #fff;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.footer-links h4,
.footer-contact h4 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 30px;
    color: #fff;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.footer-links ul {
    list-style: none;
}

.footer-links li {
    margin-bottom: 20px;
}

.footer-links a {
    color: #ccc;
    text-decoration: none;
    transition: color 0.3s ease, transform 0.3s ease;
    font-size: 14px;
    letter-spacing: 0.5px;
    display: inline-block;
}

.footer-links a:hover {
    color: #fff;
    transform: translateX(5px);
}

.footer-contact p {
    margin-bottom: 20px;
    color: #ccc;
    font-size: 14px;
    letter-spacing: 0.5px;
    line-height: 1.7;
}

.footer-bottom {
    text-align: center;
    padding-top: 50px;
    border-top: 1px solid #444;
    color: #999;
    font-size: 13px;
    letter-spacing: 1px;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    padding: 0 20px;
    position: relative;
    z-index: 1;
}

/* 电话联系按钮 */
.phone-button {
    position: fixed;
    bottom: 40px;
    right: 40px;
    width: 70px;
    height: 70px;
    background-color: #333;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    z-index: 1000;
    border: 2px solid rgba(255, 255, 255, 0.1);
}

.phone-button:hover {
    transform: scale(1.15);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.25);
    background-color: #444;
}

.phone-button:active {
    transform: scale(1.05);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

.phone-button img {
    width: 28px;
    height: 28px;
    filter: brightness(0) invert(1);
    transition: transform 0.3s ease;
}

.phone-button:hover img {
    transform: rotate(15deg) scale(1.1);
}

/* 滚动动画 */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.8s ease forwards;
}

.fade-in {
    animation: fadeIn 0.8s ease forwards;
}

.slide-in-right {
    animation: slideInRight 0.8s ease forwards;
}

/* 非洲特色色彩 */
.advantage-card:nth-child(2) .advantage-icon svg path {
    stroke: #555 !important;
}

.advantage-card:nth-child(3) .advantage-icon svg path {
    stroke: #666 !important;
}

.advantage-card:nth-child(4) .advantage-icon svg path {
    stroke: #777 !important;
}

.advantage-card:nth-child(5) .advantage-icon svg path {
    stroke: #888 !important;
}

/* 响应式设计 */
@media (max-width: 992px) {
    .contact-container {
        grid-template-columns: 1fr;
        gap: 50px;
    }
    
    .nav-links li {
        margin-left: 35px;
    }
    
    .hero h1 {
        font-size: 48px;
    }
    
    .hero p {
        font-size: 18px;
    }
}

@media (max-width: 768px) {
    .navbar .container {
        flex-direction: column;
        align-items: flex-start;
        padding: 20px;
    }

    .nav-links {
        margin-top: 25px;
    }

    .nav-links li {
        margin-left: 0;
        margin-right: 30px;
    }

    .hero h1 {
        font-size: 38px;
    }

    .hero p {
        font-size: 16px;
    }

    section {
        padding: 100px 0;
    }

    section h2 {
        font-size: 32px;
    }

    .section-description {
        font-size: 15px;
        margin-bottom: 70px;
    }

    .advantage-card {
        flex-direction: column;
        text-align: center;
        padding: 50px;
    }

    .advantage-icon {
        margin-right: 0;
        margin-bottom: 35px;
        margin-left: auto;
        margin-right: auto;
    }

    .qr-code-container {
        flex-direction: column;
        align-items: center;
    }

    .qr-code img {
        max-width: 180px;
    }

    .footer-content {
        flex-direction: column;
    }

    .footer-info,
    .footer-links,
    .footer-contact {
        margin-bottom: 45px;
    }

    .phone-button {
        bottom: 30px;
        right: 30px;
        width: 60px;
        height: 60px;
    }
    
    .phone-button img {
        width: 24px;
        height: 24px;
    }
    
    .market-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 25px;
    }
    
    .market-item {
        padding: 40px;
    }
}

@media (max-width: 480px) {
    .navbar .container {
        padding: 15px 20px;
    }
    
    .logo h1 {
        font-size: 22px;
    }
    
    .logo h1 .elephantpay {
        font-size: 14px;
        margin-left: 15px;
    }
    
    .nav-links li {
        margin-right: 20px;
    }
    
    .nav-links a {
        font-size: 12px;
    }
    
    .hero {
        padding: 120px 0 100px;
    }
    
    .hero h1 {
        font-size: 32px;
    }
    
    .hero p {
        font-size: 15px;
    }

    section {
        padding: 80px 0;
    }

    section h2 {
        font-size: 28px;
    }

    .advantage-card {
        padding: 40px 25px;
    }

    .advantage-icon {
        width: 70px;
        height: 70px;
    }

    .advantage-card h3 {
        font-size: 20px;
    }

    .advantage-card p {
        font-size: 15px;
    }

    .market-item {
        padding: 35px 20px;
    }

    .market-item h3 {
        font-size: 18px;
    }

    .contact-info,
    .whatsapp-qr {
        padding: 40px 25px;
    }

    .contact-info h3,
    .whatsapp-qr h3 {
        font-size: 20px;
    }

    .phone-button {
        bottom: 20px;
        right: 20px;
        width: 50px;
        height: 50px;
    }
    
    .phone-button img {
        width: 20px;
        height: 20px;
    }
    
    .rate-values {
        gap: 12px;
    }
    
    .rate-item {
        padding: 10px 14px;
        font-size: 12px;
    }
    
    .footer {
        padding: 80px 0 40px;
    }
    
    .footer-content {
        margin-bottom: 60px;
    }
    
    .footer-info h3 {
        font-size: 20px;
    }
    
    .footer-links h4,
    .footer-contact h4 {
        font-size: 16px;
    }
}
