/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --lime-green: #32CD32;
    --lime-green-dark: #28B428;
    --lime-green-light: #7CFC00;
    --white: #FFFFFF;
    --black: #000000;
    --gray-light: #F8F9FA;
    --gray-medium: #6C757D;
    --gray-dark: #343A40;
    --shadow: rgba(0, 0, 0, 0.1);
    --shadow-hover: rgba(0, 0, 0, 0.15);
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: var(--white);
    color: var(--black);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Background Animation */
.background-animation {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
}

.floating-shape {
    position: absolute;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--lime-green), var(--lime-green-light));
    opacity: 0.1;
    animation: float 20s infinite ease-in-out;
}

.shape-1 {
    width: 80px;
    height: 80px;
    top: 10%;
    left: 10%;
    animation-delay: 0s;
}

.shape-2 {
    width: 120px;
    height: 120px;
    top: 20%;
    right: 15%;
    animation-delay: -5s;
}

.shape-3 {
    width: 60px;
    height: 60px;
    bottom: 30%;
    left: 20%;
    animation-delay: -10s;
}

.shape-4 {
    width: 100px;
    height: 100px;
    bottom: 10%;
    right: 25%;
    animation-delay: -15s;
}

.shape-5 {
    width: 140px;
    height: 140px;
    top: 50%;
    left: 50%;
    animation-delay: -8s;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
    }
    25% {
        transform: translateY(-20px) rotate(90deg);
    }
    50% {
        transform: translateY(-40px) rotate(180deg);
    }
    75% {
        transform: translateY(-20px) rotate(270deg);
    }
}

/* Main Content */
.main-content {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    position: relative;
    z-index: 1;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Logo Section */
.logo-section {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 0;
    gap: 20px;
    animation: slideInFromTop 1s ease-out;
}

.logo {
    width: 80px;
    height: 80px;
    position: relative;
}

.logo-icon {
    width: 100%;
    height: 100%;
    background: var(--lime-green);
    border-radius: 20px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: pulse 2s infinite;
    box-shadow: 0 8px 32px rgba(50, 205, 50, 0.3);
}

.speech-bubble {
    width: 50px;
    height: 40px;
    background: var(--white);
    border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
    position: relative;
    animation: bubbleFloat 3s infinite ease-in-out;
}

.speech-bubble::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 15px;
    width: 0;
    height: 0;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-top: 12px solid var(--white);
}

.bubble-eyes {
    position: absolute;
    top: 12px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
}

.eye {
    width: 6px;
    height: 6px;
    background: var(--black);
    border-radius: 50%;
    animation: blink 4s infinite;
}

.hand-wave {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
}

.hand {
    width: 25px;
    height: 20px;
    position: relative;
    animation: wave 2s infinite ease-in-out;
}

.finger {
    position: absolute;
    background: var(--white);
    border-radius: 2px;
}

.finger-1 {
    width: 3px;
    height: 12px;
    top: 2px;
    left: 2px;
}

.finger-2 {
    width: 3px;
    height: 14px;
    top: 1px;
    left: 6px;
}

.finger-3 {
    width: 3px;
    height: 16px;
    top: 0px;
    left: 10px;
}

.finger-4 {
    width: 3px;
    height: 14px;
    top: 1px;
    left: 14px;
}

.finger-5 {
    width: 4px;
    height: 10px;
    top: 4px;
    left: 18px;
    border-radius: 0 3px 3px 0;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

@keyframes bubbleFloat {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-3px);
    }
}

@keyframes blink {
    0%, 90%, 100% {
        transform: scaleY(1);
    }
    95% {
        transform: scaleY(0.1);
    }
}

@keyframes wave {
    0%, 100% {
        transform: translateY(-50%) rotate(0deg);
    }
    50% {
        transform: translateY(-50%) rotate(10deg);
    }
}

@keyframes slideInFromTop {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.brand-title {
    font-size: 3rem;
    font-weight: 700;
    color: var(--black);
    letter-spacing: -0.02em;
    animation: slideInFromTop 1s ease-out 0.2s both;
}

/* Hero Section */
.hero-section {
    text-align: center;
    padding: 60px 0 80px;
    animation: slideInFromTop 1s ease-out 0.4s both;
}

.hero-title {
    font-size: 4rem;
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 24px;
    color: var(--black);
}

.title-line {
    display: block;
    animation: slideInFromLeft 1s ease-out;
}

.title-line:nth-child(2) {
    color: var(--lime-green);
    animation-delay: 0.2s;
    animation-fill-mode: both;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--gray-medium);
    margin-bottom: 48px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    animation: slideInFromTop 1s ease-out 0.6s both;
}

@keyframes slideInFromLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* CTA Section */
.cta-section {
    display: flex;
    justify-content: center;
    margin-bottom: 80px;
    animation: slideInFromTop 1s ease-out 0.8s both;
}

.primary-button, .secondary-button {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 32px;
    border: none;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    text-decoration: none;
}

.primary-button {
    background: var(--lime-green);
    color: var(--white);
    box-shadow: 0 8px 32px rgba(50, 205, 50, 0.3);
}

.primary-button:hover {
    background: var(--lime-green-dark);
    transform: translateY(-2px);
    box-shadow: 0 12px 40px rgba(50, 205, 50, 0.4);
}

.secondary-button {
    background: var(--white);
    color: var(--lime-green);
    border: 2px solid var(--lime-green);
    box-shadow: 0 8px 32px rgba(50, 205, 50, 0.1);
}

.secondary-button:hover {
    background: var(--lime-green);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 12px 40px rgba(50, 205, 50, 0.3);
}

.button-icon {
    width: 20px;
    height: 20px;
    transition: transform 0.3s ease;
}

.primary-button:hover .button-icon,
.secondary-button:hover .button-icon {
    transform: scale(1.1);
}

/* Features Section */
.features-section {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    padding: 80px 0;
    animation: slideInFromTop 1s ease-out 1s both;
}

.feature-card {
    background: var(--white);
    padding: 40px 30px;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(50, 205, 50, 0.1);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(50, 205, 50, 0.05), transparent);
    transition: left 0.5s ease;
}

.feature-card:hover::before {
    left: 100%;
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 16px 48px rgba(50, 205, 50, 0.15);
}

.feature-icon {
    width: 60px;
    height: 60px;
    background: var(--lime-green);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
    color: var(--white);
    animation: iconFloat 3s infinite ease-in-out;
}

.feature-icon svg {
    width: 28px;
    height: 28px;
}

@keyframes iconFloat {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-5px);
    }
}

.feature-card h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 16px;
    color: var(--black);
}

.feature-card p {
    color: var(--gray-medium);
    line-height: 1.6;
}

/* Modal Styles */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    backdrop-filter: blur(5px);
    transition: all 0.3s ease;
}

.modal.hidden {
    opacity: 0;
    visibility: hidden;
}

.modal-content {
    background: var(--white);
    border-radius: 20px;
    padding: 0;
    max-width: 500px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.modal:not(.hidden) .modal-content {
    transform: scale(1);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 30px;
    border-bottom: 1px solid rgba(50, 205, 50, 0.1);
}

.modal-header h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--black);
}

.close-btn {
    background: none;
    border: none;
    font-size: 2rem;
    color: var(--gray-medium);
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.close-btn:hover {
    background: var(--gray-light);
    color: var(--black);
}

.modal-body {
    padding: 30px;
}

.wechat-info {
    text-align: center;
}

.qr-placeholder {
    margin-bottom: 24px;
}

.qr-code {
    width: 200px;
    height: 200px;
    background: var(--white);
    border: 2px solid var(--lime-green);
    border-radius: 16px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: pulse 2s infinite;
}

.qr-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 4px;
    width: 120px;
    height: 120px;
}

.qr-dot {
    background: var(--lime-green);
    border-radius: 2px;
    animation: qrBlink 3s infinite;
}

.qr-dot:nth-child(odd) {
    animation-delay: 0.5s;
}

@keyframes qrBlink {
    0%, 90%, 100% {
        opacity: 1;
    }
    95% {
        opacity: 0.3;
    }
}

.wechat-id {
    font-size: 1.2rem;
    margin-bottom: 12px;
    color: var(--black);
}

.wechat-id strong {
    color: var(--lime-green);
}

.modal-note {
    color: var(--gray-medium);
    font-size: 0.95rem;
}

.phone-info {
    text-align: center;
}

.phone-number {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-bottom: 24px;
    padding: 20px;
    background: var(--gray-light);
    border-radius: 12px;
    border: 2px solid var(--lime-green);
}

.number {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--black);
    font-family: 'Courier New', monospace;
}

.copy-btn {
    background: var(--lime-green);
    color: var(--white);
    border: none;
    padding: 8px 16px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.copy-btn:hover {
    background: var(--lime-green-dark);
    transform: scale(1.05);
}

.contact-options {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

.contact-option {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    background: var(--white);
    border: 2px solid var(--lime-green);
    border-radius: 12px;
    color: var(--lime-green);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.contact-option:hover {
    background: var(--lime-green);
    color: var(--white);
    transform: translateY(-2px);
}

.contact-option svg {
    width: 20px;
    height: 20px;
}

/* Twitter button specific styling */
.twitter-btn {
    background: var(--lime-green) !important;
    color: var(--white) !important;
    border: 2px solid var(--lime-green) !important;
}

.twitter-btn:hover {
    background: var(--lime-green-dark) !important;
    transform: translateY(-2px);
}

/* Footer */
.footer {
    background: var(--gray-light);
    padding: 40px 0;
    margin-top: auto;
}

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

.footer-brand {
    text-align: left;
}

.footer-logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--lime-green);
    margin-bottom: 8px;
    display: block;
}

.footer-brand p {
    color: var(--gray-medium);
    font-size: 0.9rem;
}

.footer-links {
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
}

.footer-links a {
    color: var(--gray-medium);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

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

/* Responsive Design */
@media (max-width: 768px) {
    .brand-title {
        font-size: 2.5rem;
    }
    
    .hero-title {
        font-size: 3rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .cta-section {
        flex-direction: column;
        align-items: center;
    }
    
    .primary-button, .secondary-button {
        width: 100%;
        max-width: 300px;
        justify-content: center;
    }
    
    .features-section {
        grid-template-columns: 1fr;
        gap: 30px;
        padding: 60px 0;
    }
    
    .footer-content {
        flex-direction: column;
        text-align: center;
    }
    
    .footer-links {
        justify-content: center;
    }
    
    .phone-number {
        flex-direction: column;
        gap: 12px;
    }
    
    .contact-options {
        flex-direction: column;
        align-items: center;
    }
    
    .contact-option {
        width: 100%;
        max-width: 220px;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }
    
    .logo-section {
        padding: 30px 0;
        gap: 15px;
    }
    
    .logo {
        width: 60px;
        height: 60px;
    }
    
    .brand-title {
        font-size: 2rem;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-section {
        padding: 40px 0 60px;
    }
    
    .feature-card {
        padding: 30px 20px;
    }
    
    .modal-content {
        width: 95%;
        margin: 20px;
    }
    
    .modal-header, .modal-body {
        padding: 20px;
    }
    
    .qr-code {
        width: 160px;
        height: 160px;
    }
    
    .qr-grid {
        width: 100px;
        height: 100px;
    }
}

/* Loading Animation */
.loading {
    opacity: 0;
    animation: fadeIn 0.5s ease-out forwards;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Focus Styles for Accessibility */
button:focus,
a:focus {
    outline: 2px solid var(--lime-green);
    outline-offset: 2px;
}

/* Selection Styles */
::selection {
    background: var(--lime-green);
    color: var(--white);
}
