/* styles.css */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #8e44ad;
    --secondary: #3498db;
    --accent: #e74c3c;
    --light: #ecf0f1;
    --dark: #2c3e50;
    --success: #2ecc71;
    --yellow: #f1c40f;
    --orange: #e67e22;
    --pink: #e84393;
    --teal: #1abc9c;
    --purple: #9b59b6;
}

body {
    min-height: 100vh;
    background: linear-gradient(135deg, var(--purple) 0%, var(--teal) 100%);
    background-size: cover;
    background-position: center;
    transition: background 1.5s ease-in-out;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    position: relative;
    overflow-x: hidden;
    color: var(--dark);
    font-family: 'Poppins', sans-serif;
}

body::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.2);
    z-index: 1;
}

.container {
    width: 100%;
    max-width: 900px;
    background: rgba(255, 255, 255, 0.92);
    border-radius: 25px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.25);
    overflow: hidden;
    position: relative;
    z-index: 2;
    backdrop-filter: blur(12px);
    margin: 20px;
}

header {
    background: linear-gradient(to right, var(--purple), var(--teal));
    padding: 30px 40px;
    text-align: center;
    color: white;
    position: relative;
    border-bottom: 5px solid rgba(255, 255, 255, 0.2);
}

h1 {
    font-family: 'Playfair Display', serif;
    font-size: 3.2rem;
    margin-bottom: 10px;
    font-weight: 700;
    text-shadow: 0 2px 8px rgba(0,0,0,0.3);
    letter-spacing: 1px;
}

.subtitle {
    font-size: 1.3rem;
    opacity: 0.9;
    max-width: 700px;
    margin: 0 auto 25px;
    font-weight: 300;
}

.language-selector {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin: 15px auto 0;
    flex-wrap: wrap;
    max-width: 600px;
}

.lang-btn {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    padding: 8px 16px;
    border-radius: 30px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1rem;
    min-width: 70px;
    backdrop-filter: blur(5px);
}

.lang-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

.lang-btn.active {
    background: white;
    color: var(--purple);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.content {
    padding: 50px 40px;
    min-height: 450px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
}

.message-container {
    margin-bottom: 40px;
    position: relative;
    width: 100%;
}

.message {
    font-family: 'Playfair Display', serif;
    font-size: 2.1rem;
    line-height: 1.7;
    color: var(--dark);
    font-weight: 600;
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    padding: 0 30px;
}

.message::before, .message::after {
    content: """;
    font-size: 4rem;
    color: var(--purple);
    position: absolute;
    opacity: 0.2;
}

.message::before {
    top: -35px;
    left: -5px;
}

.message::after {
    content: """;
    bottom: -60px;
    right: -5px;
}

.author {
    font-size: 1.3rem;
    color: var(--teal);
    margin-top: 40px;
    font-style: italic;
    font-weight: 500;
}

.action-buttons {
    display: flex;
    gap: 15px;
    margin-top: 20px;
    flex-wrap: wrap;
    justify-content: center;
}

.action-btn {
    background: linear-gradient(to right, var(--purple), var(--teal));
    color: white;
    border: none;
    padding: 15px 35px;
    font-size: 1.1rem;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 5px 20px rgba(142, 45, 226, 0.4);
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 10px;
}

.action-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(142, 45, 226, 0.6);
}

.action-btn:active {
    transform: translateY(1px);
}

footer {
    background: var(--light);
    padding: 25px;
    text-align: center;
    color: var(--dark);
    font-size: 1rem;
    border-top: 1px solid rgba(0,0,0,0.05);
}

.pulse {
    animation: pulse 2s infinite;
}

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

.fade-in {
    animation: fadeIn 1s ease-in;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.floating {
    position: absolute;
    z-index: -1;
    color: rgba(255, 255, 255, 0.15);
    font-size: 8rem;
    font-weight: bold;
    user-select: none;
    opacity: 0.7;
}

.floating.heart {
    top: 15%;
    left: 5%;
    animation: float 25s infinite linear;
}

.floating.star {
    top: 65%;
    right: 8%;
    animation: float 30s infinite linear reverse;
}

.floating.sun {
    bottom: 10%;
    left: 20%;
    animation: float 40s infinite linear;
}

@keyframes float {
    0% { transform: translateY(0) rotate(0deg); }
    100% { transform: translateY(-100px) rotate(360deg); }
}

.stats-container {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-top: 30px;
    flex-wrap: wrap;
}

.stat-box {
    background: rgba(236, 240, 241, 0.7);
    padding: 20px;
    border-radius: 15px;
    min-width: 150px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--purple);
    margin-bottom: 5px;
}

.stat-label {
    font-size: 1rem;
    color: var(--dark);
    opacity: 0.8;
}

.theme-toggle {
    position: absolute;
    top: 20px;
    left: 20px;
    background: rgba(255, 255, 255, 0.15);
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    backdrop-filter: blur(5px);
    transition: all 0.3s ease;
}

.theme-toggle:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: rotate(20deg);
}

.social-sharing {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 20px;
    padding: 15px 0;
}

.social-btn {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.4rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}

.social-btn:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0,0,0,0.2);
}

.facebook { background: #3b5998; }
.twitter { background: #1da1f2; }
.instagram { background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888); }
.linkedin { background: #0077b5; }
.tiktok { background: #000000; }
.wechat { background: #09b83e; }
.redbook { background: #ff2442; }
.douyin { background: #000000; }

@media (max-width: 768px) {
    h1 {
        font-size: 2.5rem;
    }
    
    .message {
        font-size: 1.8rem;
    }
    
    .content {
        padding: 40px 20px;
        min-height: 400px;
    }
    
    .stat-box {
        min-width: 120px;
        padding: 15px;
    }
    
    .stat-number {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    h1 {
        font-size: 2.1rem;
        padding-top: 10px;
    }
    
    .subtitle {
        font-size: 1.1rem;
    }
    
    .message {
        font-size: 1.5rem;
        padding: 0 15px;
    }
    
    .author {
        font-size: 1.1rem;
    }
    
    .action-buttons {
        flex-direction: column;
        width: 100%;
    }
    
    .action-btn {
        width: 100%;
        justify-content: center;
    }
    
    .language-selector {
        gap: 8px;
    }
    
    .lang-btn {
        padding: 6px 12px;
        font-size: 0.9rem;
        min-width: 60px;
    }
    
    .social-sharing {
        gap: 8px;
    }
    
    .social-btn {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }
}

.floating-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    opacity: 0.1;
    background-image: url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M11 18c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm48 25c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm-43-7c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm63 31c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM34 90c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm56-76c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM12 86c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm28-65c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm23-11c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-6 60c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm29 22c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zM32 63c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm57-13c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-9-21c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM60 91c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM35 41c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM12 60c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2z' fill='%238e44ad' fill-opacity='0.4' fill-rule='evenodd'/%3E%3C/svg%3E");
}

.notification {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--success);
    color: white;
    padding: 15px 30px;
    border-radius: 50px;
    font-weight: 600;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    opacity: 0;
    transition: opacity 0.3s;
    z-index: 1000;
}

.notification.show {
    opacity: 1;
}

.dark-mode {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    color: #e6e6e6;
}

.dark-mode .container {
    background: rgba(25, 25, 35, 0.92);
    color: #f0f0f0;
}

.dark-mode .message {
    color: #f0f0f0;
}

.dark-mode .stat-box {
    background: rgba(30, 30, 45, 0.7);
}

.dark-mode footer {
    background: #1e1e2d;
    color: #b0b0c0;
}

.dark-mode .author {
    color: #3498db;
}