* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    height: 100vh;
    overflow: hidden;
    background: #0a1628;
}

/* Main Container */
.container {
    display: flex;
    width: 100%;
    height: 100vh;
    position: relative;
}

/* ============= LEFT SIDE - OCEAN WAVES ============= */
.left-side {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px;
    background: linear-gradient(180deg, #1a4d6d 0%, #0d2940 50%, #051c2e 100%);
    position: relative;
    overflow: hidden;
}

/* Ocean Wave Animation */
.left-side::before,
.left-side::after {
    content: '';
    position: absolute;
    width: 200%;
    height: 200%;
    background: 
        radial-gradient(circle at 20% 80%, rgba(65, 155, 217, 0.4) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(45, 125, 185, 0.3) 0%, transparent 50%);
    animation: oceanWave 20s ease-in-out infinite;
}

.left-side::before {
    animation-delay: -10s;
}

.left-side::after {
    opacity: 0.6;
}

@keyframes oceanWave {
    0%, 100% {
        transform: translate(-50%, -50%) rotate(0deg) scale(1);
    }
    25% {
        transform: translate(-48%, -52%) rotate(90deg) scale(1.1);
    }
    50% {
        transform: translate(-50%, -50%) rotate(180deg) scale(1);
    }
    75% {
        transform: translate(-52%, -48%) rotate(270deg) scale(1.1);
    }
}

/* ============= RIGHT SIDE - AURA EFFECT ============= */
.right-side {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px;
    background: linear-gradient(135deg, #1a0a2e 0%, #2d1b4e 50%, #1a0a2e 100%);
    position: relative;
    overflow: hidden;
}

/* Aura Effect Animation */
.right-side::before,
.right-side::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    animation: auraFloat 15s ease-in-out infinite;
}

.right-side::before {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(138, 43, 226, 0.4) 0%, transparent 70%);
    top: -150px;
    right: -150px;
    animation-duration: 18s;
}

.right-side::after {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(218, 112, 214, 0.3) 0%, transparent 70%);
    bottom: -100px;
    left: -100px;
    animation-delay: -9s;
}

@keyframes auraFloat {
    0%, 100% {
        transform: translate(0, 0) scale(1);
        opacity: 0.6;
    }
    33% {
        transform: translate(30px, -40px) scale(1.2);
        opacity: 0.8;
    }
    66% {
        transform: translate(-30px, 30px) scale(0.9);
        opacity: 0.7;
    }
}

/* Divider */
.divider {
    width: 4px;
    background: linear-gradient(to bottom, 
        rgba(255, 255, 255, 0.1) 0%,
        rgba(255, 255, 255, 0.3) 50%,
        rgba(255, 255, 255, 0.1) 100%
    );
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.2);
    z-index: 10;
}

/* ============= COMPUTER STYLING ============= */
.computer-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 30px;
    filter: drop-shadow(0 10px 30px rgba(0, 0, 0, 0.5));
    position: relative;
    z-index: 10;
}

.monitor {
    position: relative;
    width: 400px;
    height: 320px;
    background: linear-gradient(145deg, #2c2c2c, #1a1a1a);
    border-radius: 10px 10px 0 0;
    padding: 15px;
    box-shadow: 
        inset 0 2px 5px rgba(255, 255, 255, 0.1),
        0 10px 40px rgba(0, 0, 0, 0.6);
}

.screen {
    width: 100%;
    height: 100%;
    background: #008080;
    position: relative;
    overflow: hidden;
    border-radius: 3px;
    transition: transform 0.3s ease;
}

.windows-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #008080;
}

.windows-taskbar {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 30px;
    background: linear-gradient(to bottom, #c0c0c0, #808080);
    border-top: 2px solid #ffffff;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 5px;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.5);
    z-index: 10;
}

.start-button {
    display: flex;
    align-items: center;
    gap: 5px;
    background: linear-gradient(to bottom, #dfdfdf, #c0c0c0);
    border: 2px outset #dfdfdf;
    padding: 2px 8px;
    font-weight: bold;
    font-size: 11px;
    cursor: pointer;
}

.start-button img {
    width: 16px;
    height: 16px;
}

.taskbar-time {
    background: linear-gradient(to bottom, #808080, #c0c0c0);
    border: 1px inset #808080;
    padding: 2px 8px;
    font-size: 11px;
    color: #000;
}

/* Desktop Icon with Pirate Bottle */
.desktop-icon {
    position: absolute;
    top: 15px;
    left: 15px;
    width: 70px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease;
    z-index: 100;
}

.desktop-icon:hover {
    filter: brightness(1.2);
}

.bottle-svg {
    width: 50px;
    height: 75px;
    filter: drop-shadow(2px 2px 4px rgba(0, 0, 0, 0.5));
    animation: bottleBob 2s ease-in-out infinite;
}

@keyframes bottleBob {
    0%, 100% { transform: translateY(0) rotate(-5deg); }
    50% { transform: translateY(-8px) rotate(5deg); }
}

.icon-label {
    background: rgba(0, 128, 128, 0.8);
    color: #ffffff;
    padding: 2px 4px;
    font-size: 11px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
    border: 1px dotted rgba(255, 255, 255, 0.3);
    margin-top: 5px;
}

.monitor-frame {
    position: absolute;
    bottom: -5px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 8px;
    background: linear-gradient(to bottom, #2c2c2c, #1a1a1a);
    border-radius: 3px;
}

.monitor-stand {
    width: 80px;
    height: 50px;
    background: linear-gradient(145deg, #2c2c2c, #1a1a1a);
    clip-path: polygon(30% 0%, 70% 0%, 100% 100%, 0% 100%);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.4);
}

.monitor-base {
    width: 150px;
    height: 15px;
    background: linear-gradient(145deg, #2c2c2c, #1a1a1a);
    border-radius: 50%;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.6);
    margin-top: -5px;
}

/* ============= SMARTPHONE STYLING ============= */
.smartphone-container {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 30px;
    filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.6));
    position: relative;
    z-index: 10;
}

.smartphone {
    width: 280px;
    height: 560px;
    background: linear-gradient(145deg, #1a1a1a, #000000);
    border-radius: 40px;
    padding: 12px;
    position: relative;
    box-shadow: 
        0 0 0 8px #0a0a0a,
        0 0 0 10px #1a1a1a,
        inset 0 0 20px rgba(0, 0, 0, 0.8),
        0 20px 60px rgba(0, 0, 0, 0.8);
    cursor: pointer;
    transition: transform 0.3s ease;
}

.smartphone:hover {
    transform: scale(1.05);
}

.phone-notch {
    position: absolute;
    top: 12px;
    left: 50%;
    transform: translateX(-50%);
    width: 120px;
    height: 25px;
    background: #000000;
    border-radius: 0 0 20px 20px;
    z-index: 10;
}

.phone-screen {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #4a00e0 0%, #8e2de2 100%);
    border-radius: 32px;
    position: relative;
    overflow: hidden;
}

.phone-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 30%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(255, 255, 255, 0.1) 0%, transparent 50%);
}

.phone-statusbar {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 5px 20px;
    color: #ffffff;
    font-size: 10px;
    z-index: 5;
}

.phone-icons {
    display: flex;
    gap: 5px;
}

.phone-bottle-app {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    transition: transform 0.3s ease;
    z-index: 100;
}

.phone-bottle-app:hover {
    transform: translate(-50%, -50%) scale(1.1);
}

.bottle-svg-phone {
    width: 80px;
    height: 120px;
    filter: drop-shadow(0 5px 15px rgba(0, 0, 0, 0.5));
    animation: phoneBottleFloat 3s ease-in-out infinite;
}

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

.phone-letter-icon {
    font-size: 30px;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation: letterPulse 2s ease-in-out infinite;
}

@keyframes letterPulse {
    0%, 100% { opacity: 0.8; transform: translate(-50%, -50%) scale(1); }
    50% { opacity: 1; transform: translate(-50%, -50%) scale(1.1); }
}

.app-title {
    color: #ffffff;
    font-size: 14px;
    font-weight: 600;
    text-align: center;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
    margin-top: 10px;
}

.phone-bottom-bar {
    position: absolute;
    bottom: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: 120px;
    height: 4px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 2px;
}

/* ============= DESCRIPTIONS ============= */
.description {
    text-align: center;
    color: #ffffff;
    max-width: 400px;
    position: relative;
    z-index: 10;
}

.description h2 {
    font-size: 28px;
    margin-bottom: 15px;
    font-weight: 600;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.description p {
    font-size: 16px;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.9);
    text-shadow: 0 1px 5px rgba(0, 0, 0, 0.3);
}

.emphasis {
    font-style: italic;
    color: #ffd700;
    font-weight: 600;
}

/* ============= QQ-STYLE BEACH INTERFACE ============= */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(5px);
}

.modal.active {
    display: flex;
}

.qq-beach-interface {
    width: 90%;
    max-width: 1000px;
    height: 85vh;
    background: linear-gradient(180deg, #87CEEB 0%, #f4e4c1 60%, #daa520 100%);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
    animation: beachSlideIn 0.4s ease-out;
    position: relative;
}

@keyframes beachSlideIn {
    from {
        opacity: 0;
        transform: scale(0.9) translateY(30px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.close-beach-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 50%;
    font-size: 28px;
    cursor: pointer;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
}

.close-beach-btn:hover {
    background: #fff;
    transform: rotate(90deg);
}

.beach-container {
    display: flex;
    height: 100%;
}

/* Beach Sidebar */
.beach-sidebar {
    width: 200px;
    background: rgba(70, 130, 180, 0.9);
    padding: 20px 10px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.sidebar-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 15px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #fff;
    font-weight: 600;
}

.sidebar-item:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateX(5px);
}

.sidebar-item.active {
    background: rgba(255, 255, 255, 0.5);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.sidebar-icon {
    font-size: 24px;
}

/* Beach Main Content */
.beach-main-content {
    flex: 1;
    position: relative;
    overflow-y: auto;
}

.content-section {
    display: none;
    height: 100%;
    padding: 40px;
}

.content-section.active {
    display: block;
}

.beach-scene {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.section-title {
    color: #2c5f7f;
    font-size: 28px;
    margin-bottom: 30px;
    text-shadow: 2px 2px 4px rgba(255, 255, 255, 0.5);
}

/* Letter Paper */
.letter-paper {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    flex: 1;
    display: flex;
    flex-direction: column;
    max-height: 600px;
}

.letter-paper textarea {
    flex: 1;
    border: 2px dashed #87CEEB;
    border-radius: 10px;
    padding: 20px;
    font-size: 16px;
    font-family: 'Courier New', monospace;
    resize: none;
    background: rgba(255, 250, 240, 0.8);
    margin-bottom: 20px;
}

.letter-paper textarea:focus {
    outline: none;
    border-color: #4682B4;
    background: #fff;
}

.finish-btn {
    padding: 15px 30px;
    background: linear-gradient(135deg, #4682B4, #5F9EA0);
    border: none;
    border-radius: 25px;
    color: #fff;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(70, 130, 180, 0.4);
    transition: all 0.3s ease;
}

.finish-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(70, 130, 180, 0.6);
}

/* Ocean Bottles Section */
.ocean-bottles {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    padding: 20px;
}

.empty-ocean {
    width: 100%;
    text-align: center;
    padding: 60px 20px;
}

.empty-ocean p {
    font-size: 24px;
    color: #4682B4;
    margin-bottom: 20px;
}

.search-bottle-btn {
    padding: 15px 40px;
    background: linear-gradient(135deg, #20B2AA, #4682B4);
    border: none;
    border-radius: 25px;
    color: #fff;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(32, 178, 170, 0.4);
    transition: all 0.3s ease;
}

.search-bottle-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(32, 178, 170, 0.6);
}

.bottle-item {
    width: 120px;
    padding: 15px;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 15px;
    cursor: pointer;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.bottle-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.bottle-item svg {
    width: 60px;
    height: 90px;
    margin-bottom: 10px;
}

/* My Bottles Section */
.bottles-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.tab-btn {
    padding: 10px 30px;
    background: rgba(255, 255, 255, 0.6);
    border: none;
    border-radius: 20px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #2c5f7f;
}

.tab-btn.active {
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.bottles-list {
    flex: 1;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 15px;
    padding: 20px;
    overflow-y: auto;
    max-height: 500px;
}

.empty-bottles {
    text-align: center;
    padding: 60px 20px;
    color: #4682B4;
}

.empty-bottles p {
    font-size: 18px;
    margin-bottom: 10px;
}

.bottle-card {
    background: #fff;
    border-radius: 10px;
    padding: 15px;
    margin-bottom: 15px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    transition: all 0.3s ease;
}

.bottle-card:hover {
    transform: translateX(5px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* ============= AI MODAL ============= */
.phone-modal {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
}

.phone-modal-header {
    background: rgba(0, 0, 0, 0.2);
    padding: 15px 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    color: #ffffff;
    font-weight: 600;
    font-size: 16px;
}

.back-btn {
    background: none;
    border: none;
    color: #ffffff;
    font-size: 18px;
    cursor: pointer;
    padding: 5px 10px;
    border-radius: 5px;
    transition: background 0.3s ease;
}

.back-btn:hover {
    background: rgba(255, 255, 255, 0.2);
}

.phone-body {
    background: #ffffff;
    border-radius: 0 0 20px 20px;
    max-height: 60vh;
    overflow-y: auto;
    padding: 20px;
}

.bottle-display-large {
    text-align: center;
    padding: 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 15px 15px 0 0;
    margin: -20px -20px 20px -20px;
}

.bottle-svg-large {
    width: 80px;
    height: 120px;
    animation: bottleSpin 4s ease-in-out infinite;
}

@keyframes bottleSpin {
    0%, 100% { transform: rotate(-15deg); }
    50% { transform: rotate(15deg); }
}

.phone-body textarea {
    width: 100%;
    height: 150px;
    padding: 15px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-size: 14px;
    resize: none;
    margin-bottom: 15px;
}

.phone-body textarea:focus {
    outline: none;
    border-color: #667eea;
}

.send-btn {
    width: 100%;
    padding: 12px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    border: none;
    border-radius: 10px;
    transition: all 0.3s ease;
}

.phone-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #ffffff;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.phone-btn:hover {
    background: linear-gradient(135deg, #7b8fed 0%, #8e5cb8 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.6);
}

.ai-response {
    margin-top: 20px;
    padding: 20px;
    background: linear-gradient(135deg, #e0e7ff 0%, #f3e8ff 100%);
    border-radius: 10px;
    display: none;
    animation: fadeIn 0.5s ease-in;
}

.ai-response.active {
    display: block;
}

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

.ai-response h4 {
    color: #667eea;
    margin-bottom: 10px;
    font-size: 16px;
}

.ai-response p {
    color: #333;
    line-height: 1.6;
    font-size: 14px;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .container {
        flex-direction: column;
    }
    
    .divider {
        width: 100%;
        height: 4px;
    }
    
    .monitor {
        width: 320px;
        height: 260px;
    }
    
    .smartphone {
        width: 240px;
        height: 480px;
    }
    
    .qq-beach-interface {
        width: 95%;
        height: 90vh;
    }
    
    .beach-sidebar {
        width: 150px;
    }
}

@media (max-width: 768px) {
    .beach-sidebar {
        width: 80px;
        padding: 10px 5px;
    }
    
    .sidebar-item span:not(.sidebar-icon) {
        display: none;
    }
    
    .sidebar-item {
        justify-content: center;
    }
}
