:root {
    /* 更新颜色方案，使其更接近图片 */
    --primary-color: #c026d3; /* 紫色主色调 */
    --background-color: #f5f5f7; /* 浅灰色背景 */
    --card-color: #ffffff; /* 白色卡片 */
    --text-color: #1d1d1f; /* 深灰色文字 */
    --border-color: #e6e6e6; /* 更浅的边框颜色 */
    --success-color: #34c759; /* 绿色成功提示 */
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    background-color: var(--background-color);
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
}

/* 简化容器样式 */
.container {
    width: 100%;
    max-width: 1000px; /* 减小最大宽度 */
    margin: 0 auto;
    padding: 0 15px;
}

/* 更新头部样式，使其更简洁 */
header {
    background-color: var(--primary-color);
    color: white;
    padding: 15px 0;
    text-align: center;
    box-shadow: 0 1px 5px rgba(0, 0, 0, 0.1);
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

h1 {
    font-size: 1.8rem;
    font-weight: 700;
    margin: 0;
    text-align: center;
    flex-grow: 1;
    font-family: 'Brush Script MT', cursive; /* 使用更花哨的字体 */
}

.bookmark-text {
    font-size: 0.9rem;
    letter-spacing: 1px;
}

#menu-toggle {
    background: none;
    border: none;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 20px;
    z-index: 1001;
}

#menu-toggle span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: white;
    border-radius: 3px;
    margin-bottom: 4px;
}

/* 更新标签样式，使其更圆润 */
.tabs {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    margin: 20px 0;
    gap: 10px;
    background-color: transparent;
}

.tab-btn {
    padding: 8px 20px;
    background-color: var(--card-color);
    border: 1px solid var(--border-color);
    border-radius: 25px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.tab-btn:hover {
    background-color: var(--primary-color);
    color: white;
}

.tab-btn.active {
    background-color: var(--primary-color);
    color: white;
}

/* 更新主内容区样式 */
#symbols-section {
    margin: 20px auto;
    background-color: var(--card-color);
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 1px 5px rgba(0, 0, 0, 0.05);
}

h2 {
    font-size: 1.6rem;
    margin-bottom: 15px;
    color: var(--text-color);
    font-weight: 600;
}

/* 更新搜索框样式 */
.search-container {
    margin: 15px 0;
}

#search-input {
    width: 100%;
    padding: 12px 20px;
    border: 1px solid var(--border-color);
    border-radius: 25px;
    font-size: 1rem;
    outline: none;
    transition: border-color 0.3s;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

#search-input:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(192, 38, 211, 0.1);
}

/* 更新符号网格样式 */
.symbols-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(70px, 1fr));
    gap: 10px;
    margin-top: 20px;
}

.symbol-item {
    background-color: var(--card-color);
    border-radius: 8px;
    padding: 15px 10px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease;
    border: 1px solid var(--border-color);
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 60px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.symbol-item:hover {
    background-color: var(--primary-color);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* 更新花式字体样式区域 */
.font-style-section {
    margin-top: 30px;
}

.font-style-section h3 {
    font-size: 1.3rem;
    margin-bottom: 15px;
}

.font-style-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
}

.font-style-item {
    background-color: var(--card-color);
    border-radius: 8px;
    padding: 15px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease;
    border: 1px solid var(--border-color);
    font-size: 1.1rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.font-style-item:hover {
    background-color: var(--primary-color);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* 复制通知样式 */
.copy-notification {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background-color: var(--success-color);
    color: white;
    padding: 10px 20px;
    border-radius: 5px;
    opacity: 0;
    transition: all 0.3s ease;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.copy-notification.show {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}

/* 响应式设计优化 */
@media (max-width: 768px) {
    .symbols-grid {
        grid-template-columns: repeat(auto-fill, minmax(60px, 1fr));
    }
    
    #symbols-section {
        padding: 20px 15px;
    }
}

@media (max-width: 480px) {
    h1 {
        font-size: 1.5rem;
    }
    
    .bookmark-text {
        display: none;
    }
    
    .symbol-item {
        min-height: 50px;
        font-size: 1rem;
    }
    
    .tabs {
        justify-content: center;
    }
}

/* 添加侧边栏样式 */
.sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: 280px;
    height: 100%;
    background-color: var(--primary-color);
    color: white;
    z-index: 1000;
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    overflow-y: auto;
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
}

.sidebar.open {
    transform: translateX(0);
}

.sidebar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.sidebar-header h2 {
    margin: 0;
    font-size: 1.5rem;
}

#close-sidebar {
    background: none;
    border: none;
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
}

.sidebar-nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar-nav li {
    padding: 15px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    cursor: pointer;
    transition: background-color 0.2s;
    display: flex;
    align-items: center;
}

.sidebar-nav li:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.category-icon {
    margin-right: 10px;
    font-size: 1.2rem;
}

.page-container {
    min-height: 100vh;
    transition: margin-left 0.3s ease;
}

/* 更新字体生成器样式 */
.font-input-container {
    position: relative;
    margin-bottom: 20px;
}

#font-input {
    width: 100%;
    padding: 15px 40px 15px 20px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 1.1rem;
    outline: none;
}

#clear-font-input {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #999;
    cursor: pointer;
    font-size: 1rem;
}

.font-categories {
    margin-bottom: 30px;
}

.font-categories h3 {
    font-size: 1.3rem;
    margin-bottom: 15px;
    font-weight: 500;
    color: #333;
}

.font-styles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 15px;
}

.font-card {
    background-color: white;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    overflow: hidden;
}

.font-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 15px;
    background-color: #f9f9f9;
    border-bottom: 1px solid var(--border-color);
}

.font-card-header span {
    font-size: 0.8rem;
    color: #666;
    text-transform: uppercase;
}

.font-card-actions {
    display: flex;
    gap: 10px;
}

.font-card-actions button {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    color: #999;
    transition: color 0.2s;
}

.font-card-actions button:hover {
    color: var(--primary-color);
}

.favorite-btn.active {
    color: #ff4757;
}

.font-card-content {
    padding: 20px 15px;
    text-align: center;
    font-size: 1.2rem;
    min-height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background-color 0.2s;
}

.font-card-content:hover {
    background-color: #f9f9f9;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .font-styles-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    h1 {
        font-size: 1.5rem;
    }
    
    .bookmark-text {
        display: none;
    }
    
    .symbol-item {
        min-height: 50px;
        font-size: 1rem;
    }
    
    .tabs {
        justify-content: center;
    }
}

/* 添加侧边栏样式 */
.sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: 280px;
    height: 100%;
    background-color: var(--primary-color);
    color: white;
    z-index: 1000;
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    overflow-y: auto;
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
}

.sidebar.open {
    transform: translateX(0);
}

.sidebar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.sidebar-header h2 {
    margin: 0;
    font-size: 1.5rem;
}

#close-sidebar {
    background: none;
    border: none;
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
}

.sidebar-nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar-nav li {
    padding: 15px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    cursor: pointer;
    transition: background-color 0.2s;
    display: flex;
    align-items: center;
}

.sidebar-nav li:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.category-icon {
    margin-right: 10px;
    font-size: 1.2rem;
}

.page-container {
    min-height: 100vh;
    transition: margin-left 0.3s ease;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .sidebar {
        width: 100%;
    }
}