body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background: #0a0a0a;
    margin: 0;
    padding: 40px 20px;
    min-height: 100vh;
    color: #fff;
}

.upload-hint {
    margin-top: 8px;
    font-size: 12px;
    color: #999;
    text-align: center;
}

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

.title {
    text-align: center;
    font-size: 42px;
    font-weight: 700;
    color: transparent;
    background: linear-gradient(45deg, #00f2fe, #4facfe);
    background-clip: text;
    -webkit-background-clip: text;
    margin-bottom: 50px;
    text-shadow: 0 0 30px rgba(79, 172, 254, 0.5);
}

.main-container {
    display: flex;
    gap: 60px;
    align-items: flex-start;
    justify-content: center;
    position: relative;
}

.main-container::before {
    content: '';
    position: absolute;
    top: -20px;
    left: -20px;
    right: -20px;
    bottom: -20px;
    background: linear-gradient(45deg, #4facfe20, #00f2fe20);
    border-radius: 30px;
    z-index: -1;
    filter: blur(20px);
}

.controls-section {
    background: rgba(255, 255, 255, 0.03);
    padding: 30px;
    border-radius: 20px;
    backdrop-filter: blur(10px);
    width: 320px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

.avatar-label {
    color: #fff;
    font-size: 16px;
    font-weight: 500;
    margin-bottom: 15px;
    opacity: 0.9;
}

.input-section {
    margin-bottom: 24px;
}

.input-section label {
    display: block;
    color: #fff;
    font-size: 16px;
    font-weight: 500;
    margin-bottom: 8px;
    opacity: 0.9;
}

.input-section input {
    width: 100%;
    padding: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    font-size: 15px;
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
    box-sizing: border-box;
    transition: all 0.3s ease;
}

.input-section input:focus {
    outline: none;
    border-color: #4facfe;
    background: rgba(255, 255, 255, 0.1);
    box-shadow: 0 0 20px rgba(79, 172, 254, 0.3);
}

.download-btn {
    width: 100%;
    padding: 14px;
    background: linear-gradient(45deg, #00f2fe, #4facfe);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(79, 172, 254, 0.3);
}

.download-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(79, 172, 254, 0.4);
}

.tiktok-bg-container {
    position: relative;
    width: 375px;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    animation: float 6s ease-in-out infinite;
}

.tiktok-bg {
    width: 100%;
    height: auto;
    display: block;
}

.tiktok-preview {
    position: absolute;
    top: 80px;
    left: 50%;
    transform: translateX(-50%);
    background: white;
    border-radius: 16px;
    padding: 16px;
    width: 300px;
    box-sizing: border-box;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.avatar-upload {
    margin-bottom: 24px;
}

.avatar-preview {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.avatar-preview:hover {
    background: rgba(255, 255, 255, 0.1);
    box-shadow: 0 0 20px rgba(79, 172, 254, 0.3);
}

.upload-icon {
    font-size: 24px;
    color: rgba(255, 255, 255, 0.5);
}

.comment-wrapper {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    width: 100%;
}

.comment-content {
    color: #000;
    font-size: 14px;
    line-height: 1.4;
    margin-bottom: 8px;
    word-break: break-word;
    flex: 1;
    min-width: 0;
}

.user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #252525;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: #fff;
    text-transform: uppercase;
    overflow: hidden;
}

.comment-main {
    flex-grow: 1;
}

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

.username {
    color: #000;
    font-size: 14px;
    font-weight: 600;
}

.comment-time {
    color: #888;
    font-size: 12px;
}

.comment-actions {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-top: 8px;
}

.action-item {
    display: flex;
    align-items: center;
    gap: 4px;
    color: #888;
    font-size: 12px;
}

.action-icon {
    width: 16px;
    height: 16px;
    opacity: 0.7;
}

.reply-text {
    color: #888;
    font-size: 13px;
    margin-top: 8px;
}

.faq-section {
    margin-top: 40px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.faq-title {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 20px;
    text-align: center;
    color: #2c3e50;
}

.faq-item {
    margin-bottom: 20px;
    border-bottom: 1px solid #eee;
    padding-bottom: 20px;
}

.faq-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.faq-question {
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 8px;
    font-size: 16px;
}

.faq-answer {
    color: #666;
    line-height: 1.6;
    font-size: 14px;
}

.footer {
    margin-top: 40px;
    text-align: center;
    color: #5c6f8a;
    font-size: 12px;
    padding: 20px 0;
    width: 100%;
}

.footer a {
    color: #64B5F6;
    text-decoration: none;
}

.footer a:hover {
    text-decoration: underline;
}

#avatar-input {
    display: none;
}

.user-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* 添加动画效果 */
@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
    100% { transform: translateY(0px); }
}

/* 添加悬停效果 */
nav a:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-1px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

nav a:active {
    transform: translateY(0px);
}

/* 平滑滚动 */
html {
    scroll-behavior: smooth;
}

/* 调整内容位置，防止被导航栏遮挡 */
.container {
    padding-top: 20px;
}

/* 适配移动端 */
/* 为了防止导航栏遮挡内容，给每个锚点区域添加上边距 */
#generator, #examples, #faq {
    scroll-margin-top: 80px;
}

/* 导航栏样式 */
.navbar {
    background: rgba(18, 18, 18, 0.8);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding: 16px 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
}

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

.navbar-title {
    font-size: 22px;
    font-weight: 700;
    background: linear-gradient(45deg, #fe2c55, #25f4ee);
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
    -webkit-text-fill-color: transparent;
    display: flex;
    align-items: center;
    gap: 8px;
}

.navbar-links {
    display: flex;
    gap: 20px;
    align-items: center;
}

.navbar-link {
    color: #fff;
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    padding: 10px 20px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.08);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 6px;
}

.navbar-link:hover {
    background: rgba(255, 255, 255, 0.1);
}

.divider {
    width: 1px;
    height: 24px;
    background: rgba(255, 255, 255, 0.1);
}

.navbar-icon, .link-icon {
    font-size: 24px; /* Adjust icon size as needed */
}

/* 语言选择下拉菜单样式 */
.language-select {
    position: relative;
    display: inline-block;
}

.language-button {
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    border: none;
    padding: 10px 20px;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.3s ease;
}

.language-button:hover {
    background: rgba(255, 255, 255, 0.1);
}

.language-dropdown {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    background: rgba(18, 18, 18, 0.9);
    border-radius: 12px;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    z-index: 100;
    min-width: 120px;
}

.language-dropdown a {
    color: #fff;
    text-decoration: none;
    padding: 10px 20px;
    display: block;
    font-size: 14px;
    transition: all 0.3s ease;
}

.language-dropdown a:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* 显示下拉菜单 */
.language-select:hover .language-dropdown {
    display: block;
}