:root {
    --primary-color: #4facfe;
    --primary-light: rgba(79, 172, 254, 0.2);
    --primary-dark: #2a93fc;
    --secondary-color: #00f2fe;
    --accent-color: #7367f0;
    --bg-color: #0a1929;
    --card-bg: rgba(18, 36, 64, 0.6);
    --card-border: rgba(79, 172, 254, 0.15);
    --text-color: #e6f1ff;
    --text-muted: rgba(230, 241, 255, 0.7);
    --border-radius: 8px;
    --box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    --transition: all 0.3s ease;
    --tech-bg-color: rgba(10, 25, 41, 0.95);
    --tech-line-color: rgba(79, 172, 254, 0.15);
    --tech-dot-color: rgba(79, 172, 254, 0.3);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #f8f9fa;
    background-color: transparent;
    padding: 0;
    margin: 0;
}

/* Header Styles */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 5%;
    background-color: rgba(18, 36, 64, 0.3);
    backdrop-filter: blur(10px);
    border-bottom: none;
    box-shadow: none;
    position: sticky;
    top: 0;
    z-index: 100;
}

.brand {
    display: flex;
    align-items: center;
}

.logo img {
    height: 40px;
    width: auto;
}

.slogan {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--text-color);
    text-shadow: 0 0 10px rgba(79, 172, 254, 0.3);
}

.header-controls {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.user-profile-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
}

.user-profile-btn img {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--primary-color);
}

.user-profile-btn span {
    color: var(--text-color);
    font-weight: 500;
}

.language-selector {
    position: relative;
}

.current-lang {
    background-color: rgba(79, 172, 254, 0.1);
    border: 1px solid rgba(79, 172, 254, 0.2);
    padding: 0.5rem 1rem;
    border-radius: var(--border-radius);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-color);
}

.current-lang:hover {
    background-color: rgba(79, 172, 254, 0.2);
}

.lang-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    background-color: rgba(18, 36, 64, 0.95);
    border-radius: var(--border-radius);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    display: none;
    flex-direction: column;
    min-width: 120px;
    z-index: 10;
    border: 1px solid rgba(79, 172, 254, 0.2);
}

.language-selector:hover .lang-dropdown {
    display: flex;
}

.lang-dropdown button {
    padding: 0.5rem 1rem;
    background: none;
    border: none;
    text-align: left;
    cursor: pointer;
    transition: var(--transition);
    color: var(--text-color);
}

.lang-dropdown button:hover {
    background-color: rgba(79, 172, 254, 0.15);
}

/* 隐藏当前选中的语言 */
.lang-dropdown button[data-lang].active {
    display: none;
}

/* Main Content Styles */
main {
    max-width: 1200px;
    margin: 0rem auto;
    padding: 0 2rem;
}

section {
    margin-bottom: 3rem;
    background-color: rgba(18, 36, 64, 0.2);
    backdrop-filter: blur(5px);
    border: none;
    border-radius: var(--border-radius);
    padding: 2rem;
    box-shadow: none;
    transition: all 0.3s ease;
}

section:hover {
    background-color: rgba(18, 36, 64, 0.3);
}

h1, h2, h3 {
    margin-bottom: 1rem;
    color: var(--text-color);
}

/* Description Section */
.description {
    text-align: center;
    padding: 0rem 2rem;
    background-color: transparent;
    backdrop-filter: none;
    box-shadow: none;
}

.description:hover {
    background-color: transparent;
}

.main-title-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.main-logo {
    height: 50px;
    width: auto;
    border-radius: 50%;
}

.description h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: #fff;
    text-shadow: 0 0 15px rgba(79, 172, 254, 0.5);
}

.description p {
    font-size: 1.1rem;
    max-width: 800px;
    margin: 0 auto;
    color: var(--text-muted);
}

/* Prompt Section */
.prompt-title-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.prompt-title-container h2 {
    margin-bottom: 0;
}

.prompt-input-container {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.prompt-input {
    flex: 1;
}

textarea {
    width: 100%;
    padding: 1rem;
    border: none;
    border-radius: var(--border-radius);
    resize: vertical;
    min-height: 120px;
    font-family: inherit;
    background-color: rgba(10, 25, 41, 0.3);
    color: var(--text-color);
    box-shadow: none;
    transition: background-color 0.3s ease;
}

textarea:focus {
    background-color: rgba(10, 25, 41, 0.4);
    outline: none;
}

.prompts-container {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    max-height: none;
    overflow-y: visible;
    margin-bottom: 1.5rem;
    min-height: 90px;
}

.prompt-btn {
    background-color: rgba(79, 172, 254, 0.1);
    border: 1px solid rgba(79, 172, 254, 0.2);
    color: var(--text-color);
    padding: 0.3rem 0.7rem;
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: var(--transition);
    font-size: 0.8rem;
    white-space: nowrap;
    margin-bottom: 0.5rem;
}

.prompt-btn:hover {
    background-color: rgba(79, 172, 254, 0.2);
}

.prompt-btn.active {
    background-color: rgba(79, 172, 254, 0.3);
    border-color: var(--primary-color);
    box-shadow: 0 0 5px rgba(79, 172, 254, 0.4);
}

.generate-btn-container {
    position: absolute; /* 绝对定位 */
    right: 0; /* 右对齐 */
    /* bottom: 10px; 调整底部边距，从20px改为10px */
    display: flex;
    /* justify-content: flex-end; 右对齐内部元素 */
    /* margin-top: 1.5rem; */
    margin-bottom: 0.5rem;
}

/* RTL支持 - 生成按钮容器 */
html[dir="rtl"] .generate-btn-container,
[lang="ar"] .generate-btn-container {
    right: auto;
    left: 0;
    justify-content: flex-start;
}

#generate-btn {
    padding: 0.8rem 2rem;
    background: linear-gradient(45deg, #4facfe, #00f2fe);
    color: white;
    border: none;
    border-radius: var(--border-radius);
    cursor: pointer;
    font-weight: bold;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    white-space: nowrap;
    box-shadow: 0 0 15px rgba(79, 172, 254, 0.4);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

/* RTL支持 - 生成按钮 */
html[dir="rtl"] #generate-btn,
[lang="ar"] #generate-btn {
    float: left;
    margin-right: 0;
    margin-left: 15px;
}

#generate-btn::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, 
        rgba(255, 255, 255, 0) 0%, 
        rgba(255, 255, 255, 0.2) 50%, 
        rgba(255, 255, 255, 0) 100%);
    transform: rotate(45deg);
    animation: btnShine 3s infinite linear;
    z-index: 1;
}

@keyframes btnShine {
    0% { transform: translateX(-100%) rotate(45deg); }
    100% { transform: translateX(100%) rotate(45deg); }
}

#generate-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 0 20px rgba(79, 172, 254, 0.6);
}

#generate-btn:disabled {
    background: linear-gradient(45deg, #8c96a5, #a0a8b5);
    box-shadow: none;
    cursor: not-allowed;
}

/* Hidden Class */
.hidden {
    display: none;
}

/* Generation Preview - Single View Mode */
.generation-preview {
    transition: opacity 0.5s ease;
}

.single-view-container {
    width: 100%;
    min-height: 250px;
    position: relative;
    display: flex;
    justify-content: center;
}

.generation-process {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    transform: none;
    z-index: 10;
    transition: opacity 0.5s ease;
}

.process-animation {
    width: 100%;
    height: 250px;
    background-color: rgba(18, 36, 64, 0.2);
    border-radius: var(--border-radius);
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
}

/* Results Grid */
.results-grid {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    gap: 0.5rem;
    width: 100%;
    min-height: 250px;
    transition: opacity 0.5s ease;
    margin: 0 auto;
}

.result-item {
    flex: 1;
    aspect-ratio: 1 / 1;
    border-radius: var(--border-radius);
    overflow: hidden;
    background-color: rgba(18, 36, 64, 0.2);
    box-shadow: none;
    cursor: pointer;
    transition: var(--transition);
    position: relative;
    max-width: 250px;
    max-height: 250px;
    margin: 0;
    border: none;
}

.result-item:hover {
    transform: scale(1.03);
    background-color: rgba(18, 36, 64, 0.3);
    box-shadow: 0 8px 20px rgba(79, 172, 254, 0.2);
}

.result-item.selected {
    border: 2px solid var(--primary-color);
    transform: scale(1.03);
    box-shadow: 0 8px 20px rgba(79, 172, 254, 0.3);
}

.result-item.selected::after {
    content: '✓';
    position: absolute;
    top: 5px;
    right: 5px;
    width: 30px;
    height: 30px;
    background-color: #4facfe;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 18px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.3);
    z-index: 10;
    border: 2px solid white;
}

.result-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: var(--border-radius);
    transition: opacity 0.3s ease-in-out;
}

/* Footer Styles */
footer {
    background-color: rgba(10, 25, 41, 0.3);
    color: #f5f5f5;
    padding: 2rem 5%;
    margin-top: 3rem;
    border-top: none;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.footer-logo img {
    height: 40px;
    width: auto;
    border-radius: 50%;
}

.footer-logo span {
    font-size: 1.5rem;
    font-weight: bold;
}

.footer-description {
    max-width: 800px;
    font-size: 0.95rem;
    opacity: 0.9;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    margin-top: 0.5rem;
}

.footer-link {
    color: var(--text-muted);
    text-decoration: none;
    transition: var(--transition);
}

.footer-link:hover {
    color: var(--primary-color);
}

.footer-copyright {
    font-size: 0.9rem;
    opacity: 0.7;
    margin-top: 0.5rem;
    color: var(--text-muted);
}



/* RTL Support for Arabic */
[lang="ar"], html[dir="rtl"] {
    direction: rtl;
    text-align: right;
}


/* 品牌元素反转 */
html[dir="rtl"] .brand,
[lang="ar"] .brand {
    flex-direction: row-reverse;
}

/* 控制元素左右反转 */
html[dir="rtl"] .header-controls,
[lang="ar"] .header-controls {
    flex-direction: row-reverse;
}

/* 各种容器内元素排列顺序反转 */
html[dir="rtl"] .styles-grid,
html[dir="rtl"] .prompts-container,
[lang="ar"] .styles-grid,
[lang="ar"] .prompts-container {
    direction: rtl;
}

/* 按钮容器方向 */
html[dir="rtl"] .generate-btn-container,
[lang="ar"] .generate-btn-container {
    display: flex;
    justify-content: flex-start; /* 从左边开始而不是右边 */
}

/* 生成按钮的位置调整 */
html[dir="rtl"] #generate-btn,
[lang="ar"] #generate-btn {
    float: left; /* 改为左浮动 */
    margin-right: 0;
    margin-left: 15px;
}

/* 导航菜单项 */
html[dir="rtl"] .menu-items,
[lang="ar"] .menu-items {
    flex-direction: row-reverse;
}

/* 表单元素方向 */
html[dir="rtl"] input,
html[dir="rtl"] textarea,
[lang="ar"] input,
[lang="ar"] textarea {
    text-align: right;
}

/* 浮动元素方向 */
html[dir="rtl"] .float-left,
[lang="ar"] .float-left {
    float: right;
}

html[dir="rtl"] .float-right,
[lang="ar"] .float-right {
    float: left;
}

/* 模态框内容方向 */
html[dir="rtl"] .modal-content,
[lang="ar"] .modal-content {
    text-align: right;
}

/* 表单按钮组方向 */
html[dir="rtl"] .form-actions,
[lang="ar"] .form-actions {
    flex-direction: row-reverse;
}

/* 用户简介区域方向 */
html[dir="rtl"] .user-profile,
[lang="ar"] .user-profile {
    text-align: right;
}

/* 关闭按钮位置 */
html[dir="rtl"] .close-modal,
[lang="ar"] .close-modal {
    right: auto;
    left: 10px;
}

/* 在RTL布局中反向方向的滚动容器 */
html[dir="rtl"] .prompts-container,
[lang="ar"] .prompts-container {
    direction: rtl;
}

/* 修正内部元素的间距和边距 */
html[dir="rtl"] .form-group label,
[lang="ar"] .form-group label {
    text-align: right;
}

/* 修正图标和文本的顺序 */
html[dir="rtl"] .btn i,
[lang="ar"] .btn i {
    margin-right: 0;
    margin-left: 5px;
}

/* Loading Animation */
.loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    width: 100%;
    height: 100%;
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 5px solid rgba(79, 172, 254, 0.1);
    border-top-color: var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.waiting-message {
    font-size: 1.1rem;
    color: var(--primary-color);
    text-align: center;
    cursor: pointer;
    padding: 0.5rem 1rem;
    border-radius: var(--border-radius);
    transition: var(--transition);
}

.waiting-message:hover {
    background-color: rgba(79, 172, 254, 0.15);
    transform: scale(1.05);
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Feature Tags */
.feature-tags {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.8rem;
    margin-top: 1.5rem;
}

.feature-tag {
    background-color: rgba(79, 172, 254, 0.1);
    color: var(--text-color);
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    border: none;
    box-shadow: none;
}

.feature-tag:hover {
    background-color: rgba(79, 172, 254, 0.2);
    box-shadow: 0 0 15px rgba(79, 172, 254, 0.2);
}

/* Stats Section */
.stats-section {
    padding: 3rem 2rem;
    background-color: var(--card-bg);
    text-align: center;
}

.stats-section h2 {
    margin-bottom: 2rem;
    font-size: 2rem;
    color: var(--text-color);
}

.stats-container {
    display: flex;
    justify-content: center;
    gap: 4rem;
    margin-bottom: 3rem;
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: bold;
    color: var(--text-color);
    text-shadow: 0 0 10px rgba(79, 172, 254, 0.5);
    margin-bottom: 0.5rem;
    position: relative;
}

.stat-number::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 2px;
    background: linear-gradient(90deg, 
        rgba(79, 172, 254, 0) 0%, 
        rgba(0, 242, 254, 0.7) 50%, 
        rgba(79, 172, 254, 0) 100%);
}

.stat-label {
    font-size: 1rem;
    color: var(--text-muted);
    opacity: 0.8;
}

.testimonials-container {
    max-width: 1000px;
    margin: 0 auto;
    overflow: hidden;
    position: relative;
}

.testimonials-scroll {
    display: flex;
    gap: 2rem;
    animation: scroll 30s linear infinite;
    padding: 1rem 0;
}

.testimonial {
    min-width: 300px;
    background-color: rgba(18, 36, 64, 0.2);
    border-radius: 10px;
    padding: 1.5rem;
    box-shadow: none;
    text-align: left;
    border: none;
}

.testimonial:hover {
    background-color: rgba(18, 36, 64, 0.3);
}

.testimonial-text {
    font-size: 1rem;
    line-height: 1.5;
    margin-bottom: 1rem;
    font-style: italic;
    color: var(--text-muted);
}

.testimonial-author {
    font-size: 0.9rem;
    font-weight: bold;
    color: var(--primary-color);
}


/* 科技感背景 */
.tech-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background-color: var(--tech-bg-color);
    background-image: linear-gradient(135deg, #0a1929 0%, #112240 100%);
    overflow: hidden;
}

.tech-grid {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(to right, var(--tech-line-color) 1px, transparent 1px),
        linear-gradient(to bottom, var(--tech-line-color) 1px, transparent 1px);
    background-size: 50px 50px;
    opacity: 0.25;
    transform-style: preserve-3d;
    transition: transform 0.5s ease-out;
    animation: gridPulse 8s infinite ease-in-out;
}

.tech-particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.tech-particle {
    position: absolute;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background-color: var(--tech-dot-color);
    pointer-events: none;
    transition: transform 0.3s ease;
    box-shadow: 0 0 5px rgba(79, 172, 254, 0.5);
    animation: particleGlow 3s infinite ease-in-out;
    animation-delay: calc(var(--particle-delay) * 1s);
}

.tech-cursor {
    position: fixed;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid var(--primary-color);
    transform: translate(-50%, -50%);
    pointer-events: none;
    opacity: 0;
    z-index: 9999;
    transition: opacity 0.3s ease, transform 0.2s ease;
    mix-blend-mode: difference;
}

.tech-cursor::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 8px;
    height: 8px;
    background-color: var(--primary-color);
    border-radius: 50%;
    transform: translate(-50%, -50%);
}

.tech-cursor-trail {
    position: fixed;
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(79, 172, 254, 0.2) 0%, rgba(79, 172, 254, 0) 70%);
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: 9998;
    opacity: 0;
    transition: opacity 0.3s ease;
}

/* 页面内容样式调整，增加科技感 */
body {
    background-color: transparent;
    color: #f8f9fa;
}

.card, .style-item, .prompt-btn, .feature-tag, .testimonial {
    backdrop-filter: blur(5px);
    background-color: rgba(18, 36, 64, 0.2);
    border: none;
    transition: transform 0.3s ease, background-color 0.3s ease;
}

.card:hover, .style-item:hover, .prompt-btn:hover {
    background-color: rgba(18, 36, 64, 0.3);
    box-shadow: 0 8px 20px rgba(79, 172, 254, 0.15);
}

/* 按钮悬停效果增强 */
button:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(74, 108, 247, 0.2);
}

/* 增强网格动画效果 */
@keyframes gridPulse {
    0% { opacity: 0.15; }
    50% { opacity: 0.25; }
    100% { opacity: 0.15; }
}

/* 增强粒子效果 */
@keyframes particleGlow {
    0% { box-shadow: 0 0 5px rgba(79, 172, 254, 0.3); }
    50% { box-shadow: 0 0 10px rgba(0, 242, 254, 0.5); }
    100% { box-shadow: 0 0 5px rgba(79, 172, 254, 0.3); }
}

/* 添加流光效果 */
.tech-flow {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, 
        rgba(79, 172, 254, 0) 0%,
        rgba(79, 172, 254, 0.02) 25%, 
        rgba(0, 242, 254, 0.05) 50%, 
        rgba(79, 172, 254, 0.02) 75%, 
        rgba(79, 172, 254, 0) 100%);
    background-size: 400% 400%;
    animation: flowAnimation 15s ease infinite;
    pointer-events: none;
    z-index: -1;
}

@keyframes flowAnimation {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* 标题特效 */
#main-title {
    position: relative;
    display: inline-block;
    color: #fff;
    text-shadow: 0 0 10px rgba(79, 172, 254, 0.5);
}

#main-title::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, 
        rgba(79, 172, 254, 0) 0%, 
        rgba(0, 242, 254, 0.7) 50%, 
        rgba(79, 172, 254, 0) 100%);
    animation: glowLine 3s ease-in-out infinite;
}

@keyframes glowLine {
    0% { opacity: 0.3; transform: scaleX(0.8); }
    50% { opacity: 1; transform: scaleX(1); }
    100% { opacity: 0.3; transform: scaleX(0.8); }
}

@keyframes scroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

/* 参考图片样式 */
.reference-image-container {
    position: relative;
    width: 120px;
    height: 120px;
    margin-right: 15px;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    flex-shrink: 0;
}

.reference-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.remove-reference-image {
    position: absolute;
    top: 5px;
    right: 5px;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background-color: rgba(0, 0, 0, 0.6);
    color: white;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 16px;
    line-height: 1;
    transition: background-color 0.2s ease;
}

.remove-reference-image:hover {
    background-color: rgba(255, 0, 0, 0.8);
}

/* 调整提示输入容器样式以适应参考图片 */
.prompt-input-container {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    /* margin-bottom: 1.5rem; */
    margin-bottom: 1.0;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
}

.stat-card {
    background-color: rgba(18, 36, 64, 0.3);
    border-radius: var(--border-radius);
    padding: 1.5rem;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(79, 172, 254, 0.2);
}

.stat-value {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 0.9rem;
    color: var(--text-muted);
}

.traffic-chart {
    background-color: rgba(18, 36, 64, 0.3);
    border-radius: var(--border-radius);
    padding: 1.5rem;
}

.chart-bar-container {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.chart-item {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.chart-label {
    min-width: 100px;
    color: var(--text-color);
}

.chart-bar {
    flex: 1;
    height: 20px;
    background-color: rgba(18, 36, 64, 0.5);
    border-radius: 10px;
    overflow: hidden;
}

.chart-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    border-radius: 10px;
}

.chart-value {
    min-width: 60px;
    text-align: right;
    color: var(--text-muted);
}

/* 导航菜单样式 */
.nav-menu {
    margin-left: 20px;
}

.menu-items {
    display: flex;
    list-style: none;
    padding: 0;
    margin: 0;
}

.menu-items li {
    margin-right: 20px;
}

.menu-item {
    color: var(--text-color);
    text-decoration: none;
    font-size: 1rem;
    font-weight: 500;
    transition: color 0.3s ease;
    padding: 5px 0;
    position: relative;
}

.menu-item:hover {
    color: var(--primary-color);
}

.menu-item:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: width 0.3s ease;
}

.menu-item:hover:after {
    width: 100%;
}

.admin-actions {
    display: flex;
    flex-direction: row-reverse; /* 从右到左排序 */
    align-items: center;
    gap: 8px;
    margin-left: 10px;
}

