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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: linear-gradient(135deg, #ff9a9e 0%, #a8e6cf 50%, #c7ceea 100%);
    min-height: 100vh;
    padding: 20px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-radius: 24px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 700px;
}

/* 左侧面板 */
.left-panel {
    padding: 40px;
    background: rgba(255, 255, 255, 0.9);
}

.tabs {
    display: flex;
    margin-bottom: 30px;
    border-bottom: 1px solid #e2e8f0;
}

.tab {
    padding: 12px 24px;
    background: none;
    border: none;
    font-size: 16px;
    color: #718096;
    cursor: pointer;
    border-bottom: 2px solid transparent;
    transition: all 0.3s ease;
}

.tab.active {
    color: #667eea;
    border-bottom-color: #667eea;
}

.upload-section {
    display: flex;
    align-items: center;
    margin-bottom: 30px;
}

.avatar-placeholder {
    width: 60px;
    height: 60px;
    background: #f7fafc;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 16px;
    border: 2px dashed #cbd5e0;
    overflow: hidden;
}

.avatar-icon {
    width: 24px;
    height: 24px;
    background: #cbd5e0;
    border-radius: 50%;
}

.upload-btn {
    background: #4a5568;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 14px;
    cursor: pointer;
    margin-right: 12px;
    transition: all 0.3s ease;
}

.upload-btn:hover {
    background: #2d3748;
}

.or-text {
    color: #718096;
    margin: 0 12px;
}

.generate-random {
    color: #667eea;
    text-decoration: none;
    font-size: 14px;
    cursor: pointer;
}

.generate-random:hover {
    text-decoration: underline;
}

.verified-badge {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
    color: #718096;
    font-size: 14px;
}

.verified-badge input[type="checkbox"] {
    display: inline-block;
    width: 16px;
    height: 16px;
    cursor: pointer;
}

.verified-badge label {
    cursor: pointer;
    margin-left: 4px;
}

.form-group {
    margin-bottom: 20px;
}

.input-field {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-size: 16px;
    background: rgba(255, 255, 255, 0.8);
    transition: all 0.3s ease;
}

.input-field:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.input-field::placeholder {
    color: #a0aec0;
}

.char-count {
    font-size: 12px;
    color: #718096;
    margin-top: 4px;
}

.comment-textarea {
    min-height: 120px;
    resize: vertical;
    font-family: inherit;
}

.download-btn {
    width: 100%;
    background: linear-gradient(45deg, #667eea, #764ba2);
    color: white;
    border: none;
    padding: 16px;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 20px;
}

.download-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(102, 126, 234, 0.3);
}

/* 右侧手机预览 */
.right-panel {
    background: linear-gradient(135deg, #a8e6cf 0%, #c7ceea 100%);
    padding: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.phone-mockup {
    width: 320px;
    height: 640px;
    background: #000;
    border-radius: 36px;
    padding: 8px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    position: relative;
}

.phone-screen {
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, #8b5cf6 0%, #a855f7 100%);
    border-radius: 28px;
    position: relative;
    overflow: hidden;
}

.phone-top-bar {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 60px;
    background: rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 14px;
    z-index: 10;
}

.following-tab {
    margin-right: 20px;
}

.foryou-tab {
    border-bottom: 2px solid white;
    padding-bottom: 4px;
}

.video-background {
    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><filter id="blur"><feGaussianBlur stdDeviation="5"/></filter></defs><rect width="100" height="100" fill="%23c7ceea"/><circle cx="50" cy="50" r="30" fill="%23ff9a9e" filter="url(%23blur)"/></svg>');
    background-size: cover;
    filter: blur(2px);
}

.comment-wrapper {
    position: absolute;
    top: 120px;
    left: 16px;
    right: 80px;
    z-index: 5;
    filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.1));
}

.comment-overlay {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 12px 12px 12px 0;
    padding: 12px;
    overflow: visible;
    position: relative;
}

.comment-triangle {
    margin-left: 0;
    margin-top: -1px; /* Ensuring a seamless connection with the bubble */
    position: relative;
    line-height: 0; /* Remove any extra space */
}

.comment-triangle svg {
    display: block; /* Remove any inline spacing */
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

/* Remove previous triangle implementations */
.comment-overlay::before,
.comment-overlay::after {
    display: none;
}

.comment-content {
    display: flex;
    align-items: center;
}

.comment-avatar {
    width: 24px;
    height: 24px;
    background: #667eea;
    border-radius: 50%;
    margin-right: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 12px;
    font-weight: bold;
    flex-shrink: 0;
    background-size: cover;
    background-position: center;
}

.comment-right {
    flex: 1;
}

.comment-reply-text {
    color: #718096;
    font-size: 10px;
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.verified-badge-inline {
    display: inline-block;
    width: 12px;
    height: 12px;
    background-color: #20d5ec;
    border-radius: 50%;
    position: relative;
    top: 2px;
    margin: 0 2px;
}

.verified-badge-inline::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 7px;
    font-weight: bold;
}

.comment-text {
    color: #2d3748;
    font-size: 14px;
    line-height: 1.4;
    font-weight: 600;
    letter-spacing: -0.2px;
}

.comment-header {
    display: flex;
    align-items: center;
    margin-bottom: 8px;
}

.side-actions {
    position: absolute;
    right: 12px;
    bottom: 120px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.action-btn {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 18px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.action-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

.action-count {
    color: white;
    font-size: 12px;
    text-align: center;
    margin-top: 4px;
}

.bottom-info {
    position: absolute;
    bottom: 80px;
    left: 16px;
    right: 16px;
    color: white;
}

.username-bottom {
    font-size: 14px;
    font-weight: bold;
    margin-bottom: 4px;
}

.video-description {
    font-size: 12px;
    opacity: 0.9;
    margin-bottom: 8px;
}

.music-info {
    display: flex;
    align-items: center;
    font-size: 12px;
    opacity: 0.8;
}

.music-icon {
    margin-right: 4px;
}

.bottom-nav {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 60px;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: space-around;
    color: white;
}

.nav-item {
    font-size: 20px;
    opacity: 0.6;
    cursor: pointer;
    transition: opacity 0.3s ease;
}

.nav-item.active {
    opacity: 1;
}

.plus-btn {
    width: 40px;
    height: 32px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

@media (max-width: 768px) {
    .container {
        grid-template-columns: 1fr;
        margin: 10px;
        min-height: auto;
        padding-bottom: 20px;
    }

    .left-panel {
        padding: 20px;
        order: 2;
    }

    .right-panel {
        padding: 30px 15px;
        order: 1;
        min-height: 580px;
    }

    .phone-mockup {
        width: 280px;
        height: 560px;
        margin: 0 auto;
    }
    
    .comment-wrapper {
        position: relative;
        top: 100px;
        left: 10px;
        right: 70px;
        z-index: 5;
    }
    
    .comment-overlay {
        max-width: 220px;
        padding: 8px 12px;
    }
    
    .comment-text {
        font-size: 13px;
        line-height: 1.3;
    }
    
    .comment-reply-text {
        font-size: 9px;
    }
    
    .comment-avatar {
        width: 22px;
        height: 22px;
    }
    
    .side-actions {
        right: 8px;
        bottom: 110px;
        gap: 12px;
    }
    
    .action-btn {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }
    
    .action-count {
        font-size: 11px;
    }
    
    .bottom-info {
        bottom: 70px;
        left: 12px;
        right: 12px;
    }
    
    .form-group {
        margin-bottom: 15px;
    }
    
    .input-field {
        padding: 10px 14px;
        font-size: 15px;
    }
    
    .comment-textarea {
        min-height: 100px;
    }
    
    .download-btn {
        padding: 14px;
        font-size: 15px;
    }
}

@media (max-width: 480px) {
    body {
        padding: 10px 5px;
    }
    
    .container {
        margin: 5px;
        border-radius: 16px;
    }
    
    .right-panel {
        padding: 20px 10px;
        min-height: 520px;
    }
    
    .phone-mockup {
        width: 240px;
        height: 480px;
        border-radius: 30px;
    }
    
    .phone-screen {
        border-radius: 24px;
    }
    
    .comment-wrapper {
        top: 90px;
        left: 8px;
        right: 60px;
    }
    
    .comment-overlay {
        max-width: 180px;
        padding: 6px 10px;
        border-radius: 10px 10px 10px 0;
    }
    
    .comment-text {
        font-size: 12px;
        line-height: 1.2;
    }
    
    .comment-reply-text {
        font-size: 8px;
        margin-bottom: 2px;
    }
    
    .comment-avatar {
        width: 20px;
        height: 20px;
        font-size: 10px;
    }
    
    .side-actions {
        right: 5px;
        bottom: 90px;
        gap: 10px;
    }
    
    .action-btn {
        width: 34px;
        height: 34px;
        font-size: 14px;
    }
    
    .action-count {
        font-size: 10px;
    }
    
    .bottom-info {
        bottom: 65px;
        left: 10px;
        right: 10px;
    }
    
    .username-bottom {
        font-size: 12px;
    }
    
    .video-description {
        font-size: 10px;
    }
    
    .music-info {
        font-size: 10px;
    }
    
    .bottom-nav {
        height: 50px;
    }
    
    .nav-item {
        font-size: 16px;
    }
    
    .plus-btn {
        width: 34px;
        height: 28px;
    }
} 