:root {
    --primary-color: #28a745;
    --secondary-color: #6c757d;
    --success-color: #198754;
    --warning-color: #ffc107;
    --danger-color: #dc3545;
    --light-color: #f8f9fa;
    --dark-color: #212529;
    --wanfi-green: #28a745;
    --wanfi-dark: #1a1a1a;
    --default-color: #1c90fc;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--dark-color);
}

/* Header Styles */
.navbar {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
    padding: 0.4rem 0;
}

.navbar-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    font-size: 1.4rem;
    color: var(--wanfi-dark) !important;
}

.logo-icon {
    height: 60px;
    background: transparent;
    border-radius: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: none;
    flex-shrink: 0;
}

.logo-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    max-width: 100%;
    max-height: 100%;
}

.logo-icon i {
    display: none;
}

/* 响应式设计 - 在小屏幕上调整logo大小 */
@media (max-width: 768px) {
    .logo-icon {
        /* width: 70px; */
        height: 50px;
    }
}

@media (max-width: 480px) {
    .logo-icon {
        /* width: 60px; */
        height: 40px;
    }
}

.nav-link {
    font-weight: 500;
    color: var(--dark-color) !important;
    margin: 0 0.4rem;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: var(--wanfi-green) !important;
}

.btn-primary-custom {
    background: #1E90FF;
    border: none;
    color: white;
    padding: 0.6rem 1.3rem;
    border-radius: 25px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(30, 144, 255, 0.3);
}

.btn-primary-custom:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(30, 144, 255, 0.4);
    color: white;
    background: #4169E1;
}

.btn-outline-custom {
    background: white;
    border: 2px solid #E0E0E0;
    color: #333333;
    padding: 0.6rem 1.3rem;
    border-radius: 25px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-outline-custom:hover {
    background: #F8F9FA;
    color: #333333;
    border-color: #C0C0C0;
    transform: translateY(-2px);
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, #419ff7 0%, #64bd4f 100%);
    min-height: 50vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    padding: 2rem 0;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="50" cy="50" r="1" fill="rgba(255,255,255,0.1)"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    opacity: 0.3;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: white;
    padding-top: 3rem;
    margin-top: 5rem;
}

.hero-title {
    font-size: 2.8rem;
    font-weight: 900;
    margin-bottom: 1.5rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8), 0 0 20px rgba(0, 0, 0, 0.5);
    letter-spacing: 2px;
    color: white;
}

.hero-subtitle {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 2.5rem;
    opacity: 1;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.8), 0 0 15px rgba(0, 0, 0, 0.4);
    color: white;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* Features Section */
.features-section {
    padding: 5rem 0;
    background: white;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 3rem;
    color: var(--wanfi-dark);
}

.feature-card {
    text-align: center;
    padding: 2rem;
    border-radius: 20px;
    background: white;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    height: 100%;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

.feature-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: white;
}

.feature-icon.safety {
    background: linear-gradient(135deg, var(--default-color), #439dff);
}

.feature-icon.convenience {
    background: linear-gradient(135deg, var(--primary-color), #20c997);
}

.feature-icon.service {
    background: linear-gradient(135deg, var(--warning-color), #fd7e14);
}

.feature-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--wanfi-dark);
}

.feature-description {
    color: var(--secondary-color);
    line-height: 1.6;
}

/* Footer */
.footer {
    background: var(--wanfi-dark);
    color: white;
    padding: 3rem 0 1rem;
}

.footer-content {
    text-align: center;
}

.footer-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 2rem;
}

.footer-logo .logo-icon {
    height: 50px;
}

.footer-logo span {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--wanfi-green);
}

.footer-text {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 2rem;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--wanfi-green);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 1rem;
    text-align: center;
    color: rgba(255, 255, 255, 0.5);
}

/* Responsive Design */
@media (max-width: 768px) {
    .navbar {
        padding: 0.3rem 0;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .feature-card {
        margin-bottom: 2rem;
    }
}

/* Animation */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in-up {
    animation: fadeInUp 0.8s ease-out;
}

/* 联系我们功能 */
.footer-qr-code {
    text-align: center;
    padding: 20px;
}

.footer-qr-code .qr-image {
    width: 120px;
    height: 120px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    margin-bottom: 10px;
    transition: transform 0.3s ease;
}

.footer-qr-code .qr-image:hover {
    transform: scale(1.05);
}

.footer-qr-code .qr-text {
    color: var(--wanfi-green);
    font-size: 0.9rem;
    font-weight: 500;
    margin: 0;
}

/* 联系图标容器 */
.contact-icons {
    position: fixed;
    top: 50%;
    right: 5px;
    transform: translateY(-50%);
    z-index: 1000;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.contact-icon {
    background: linear-gradient(180deg, #ff3b3b 0%, #ffa45a 100%);
    color: white;
    padding: 15px 8px;
    border-radius: 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
    font-weight: 500;
}

.contact-icon:hover {
    background: linear-gradient(180deg, #ff3b3b 0%, #ffa45a 100%);
    transform: translateX(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.contact-icon i {
    font-size: 1.4rem;
}

.contact-text {
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    writing-mode: vertical-rl;
    text-orientation: upright;
}

/* LINE好友图标 */
.line-icon {
    background: linear-gradient(135deg, #00C300 0%, #00A000 100%);
    color: white;
    padding: 15px 7px;
    border-radius: 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    box-shadow: 0 6px 20px rgba(0, 195, 0, 0.15);
    transition: all 0.3s ease;
    font-weight: 500;
}

.line-icon:hover {
    background: linear-gradient(135deg, #00A000 0%, #008000 100%);
    transform: translateX(-5px) scale(1.02);
    box-shadow: 0 8px 25px rgba(0, 195, 0, 0.25);
}

.line-logo {
    width: 25px;
    height: 25px;
    filter: brightness(0) invert(1); /* 将SVG变为白色 */
}

.line-text {
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    writing-mode: vertical-rl;
    text-orientation: upright;
}

/* 二维码提示框 */
.qr-popup {
    position: fixed;
    top: 48%;
    right: 100px;
    transform: translateY(-50%);
    background: white;
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
    padding: 20px;
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    max-width: 200px;
}

.qr-popup.show {
    opacity: 1;
    visibility: visible;
}

.qr-popup .qr-image {
    width: 160px;
    height: 160px;
    border-radius: 8px;
    /* margin-bottom: 15px; */
}

.qr-popup .close-btn {
    position: absolute;
    top: 0px;
    right: 0px;
    background: none;
    border: none;
    font-size: 22px;
    cursor: pointer;
    color: #666;
    padding: 5px;
}

.qr-popup .close-btn:hover {
    color: #333;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .footer-qr-code .qr-image {
        width: 100px;
        height: 100px;
    }
    
    .contact-icons {
        right: 15px;
    }
    
    .contact-icon, .line-icon {
        padding: 12px 10px;
    }
    
    .contact-text, .line-text {
        font-size: 0.75rem;
    }

    .qr-popup {
        right: 80px;
        max-width: 180px;
    }

    .qr-popup .qr-image {
        width: 120px;
        height: 120px;
    }
}

@media (max-width: 480px) {
    .footer-qr-code .qr-image {
        width: 80px;
        height: 80px;
    }
    
    .contact-icons {
        right: 10px;
    }
    
    .contact-icon, .line-icon {
        padding: 10px 8px;
    }
    
    .contact-text, .line-text {
        font-size: 0.7rem;
    }

    .qr-popup {
        right: 70px;
        max-width: 150px;
    }

    .qr-popup .qr-image {
        width: 100px;
        height: 100px;
    }
}
