/* 全局样式重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

:root {
    --primary-color: #0071e3;
    --secondary-color: #34c759;
    --dark-color: #1d1d1f;
    --light-color: #f5f5f7;
    --success-color: #34c759;
    --danger-color: #ff3b30;
    --border-color: #d2d2d7;
    --shadow-color: rgba(0, 0, 0, 0.1);
    --font-main: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    --transition-speed: 0.3s;
}

body {
    font-family: var(--font-main);
    color: var(--dark-color);
    background-color: var(--light-color);
    line-height: 1.5;
}

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

/* 头部样式 */
header {
    background-color: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

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

.logo-container {
    display: flex;
    flex-direction: column;
}

.site-branding {
    display: flex;
    align-items: center;
    gap: 15px;
}

.site-title {
    font-size: 32px;
    font-weight: 700;
    color: #0071e3;
    margin: 0;
    letter-spacing: -0.5px;
    background: linear-gradient(90deg, #0071e3, #34c759);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.site-tagline {
    font-size: 16px;
    font-weight: 500;
    margin: 0;
    letter-spacing: 0.5px;
    position: relative;
    padding-left: 15px;
    background: linear-gradient(90deg, #ff6b6b, #feca57);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 1px 1px rgba(0, 0, 0, 0.05);
}

.site-tagline:before {
    content: '|';
    position: absolute;
    left: 0;
    color: #ccc;
    -webkit-text-fill-color: #ccc;
}

nav ul {
    display: flex;
    list-style: none;
}

nav ul li {
    margin-left: 24px;
}

nav ul li a {
    text-decoration: none;
    color: var(--dark-color);
    font-size: 14px;
    font-weight: 400;
    transition: color 0.3s;
    position: relative;
}

nav ul li a:hover {
    color: var(--primary-color);
}

nav ul li a.active {
    color: var(--primary-color);
    font-weight: 500;
}

nav ul li a.active:after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--primary-color);
    border-radius: 1px;
}

/* 主要内容区域 */
main {
    padding: 30px 0;
}

.generator-wrapper {
    background-color: #ffffff;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    margin-bottom: 30px;
}

/* 步骤指示器 */
.steps-indicator {
    display: flex;
    justify-content: center;
    padding: 20px 0;
    background-color: #f9f9f9;
    border-bottom: 1px solid var(--border-color);
}

.step {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 0 30px;
    position: relative;
}

.step:not(:last-child)::after {
    content: '';
    position: absolute;
    top: 15px;
    right: -35px;
    width: 40px;
    height: 2px;
    background-color: var(--border-color);
}

.step.active:not(:last-child)::after {
    background-color: var(--primary-color);
}

.step-number {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background-color: var(--border-color);
    color: #fff;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 5px;
    font-weight: bold;
}

.step.active .step-number {
    background-color: var(--primary-color);
}

.step-text {
    font-size: 14px;
    color: #666;
}

.step.active .step-text {
    color: var(--primary-color);
    font-weight: bold;
}

/* 生成器容器 */
.generator-container {
    display: flex;
    min-height: 700px;
}

/* 左侧工具栏 */
.tools-sidebar {
    width: 300px;
    border-right: 1px solid var(--border-color);
    padding: 20px;
    overflow-y: auto;
    background-color: #fafafa;
}

.tool-section {
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border-color);
}

.tool-section:last-child {
    border-bottom: none;
}

.tool-section h3 {
    margin-bottom: 15px;
    font-size: 18px;
    color: #333;
}

/* 字体分类按钮 */
.font-categories {
    display: flex;
    margin-bottom: 15px;
}

.category-btn {
    flex: 1;
    padding: 8px 0;
    background-color: #f0f0f0;
    border: 1px solid var(--border-color);
    cursor: pointer;
    transition: all var(--transition-speed) ease;
    font-size: 14px;
}

.category-btn:first-child {
    border-radius: 4px 0 0 4px;
}

.category-btn:last-child {
    border-radius: 0 4px 4px 0;
}

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

/* 字体网格 */
.font-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    max-height: 300px;
    overflow-y: auto;
    margin-top: 10px;
}

.font-item {
    padding: 10px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    text-align: center;
    cursor: pointer;
    transition: all var(--transition-speed) ease;
    background-color: #fff;
}

.font-item:hover {
    border-color: var(--primary-color);
    box-shadow: 0 0 5px rgba(255, 69, 0, 0.3);
    transform: translateY(-2px);
}

.font-item.active {
    border-color: var(--primary-color);
    background-color: rgba(255, 69, 0, 0.1);
}

.font-name {
    font-size: 24px;
    color: #333;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.font-preview-container {
    margin: 15px 0;
    padding: 15px;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    background-color: #fff;
    text-align: center;
}

.font-preview {
    font-size: 24px;
    padding: 10px;
    margin: 10px 0;
    border: 1px solid #ddd;
    border-radius: 5px;
    text-align: center;
    min-height: 40px;
    background-color: #fff;
}

/* 颜色控制 */
.color-controls {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 15px;
}

.color-control-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 32%;
}

.color-control-item label {
    margin-bottom: 5px;
    font-size: 0.9rem;
    text-align: center;
}

.color-picker-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

.color-picker-wrapper input[type="color"] {
    width: 40px;
    height: 40px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    cursor: pointer;
    margin-bottom: 8px;
}

.color-presets {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 5px;
    max-width: 100px;
}

.color-preset {
    width: 25px;
    height: 25px;
    border-radius: 50%;
    cursor: pointer;
    border: 1px solid var(--border-color);
    transition: transform var(--transition-speed) ease;
}

.color-preset:hover {
    transform: scale(1.1);
}

/* 特效网格 */
.effects-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-top: 10px;
}

.effect-item {
    border: 1px solid #ddd;
    border-radius: 5px;
    padding: 5px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s;
}

.effect-item:hover {
    background-color: #f0f0f0;
}

.effect-item.active {
    border-color: #3498db;
    background-color: #ebf5fb;
}

.effect-preview {
    font-size: 24px;
    padding: 5px;
    background-color: #fff;
    border-radius: 3px;
    margin-bottom: 5px;
}

/* 装饰网格 */
.decorations-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    margin-top: 10px;
}

.decoration-item {
    border: 1px solid #ddd;
    border-radius: 5px;
    padding: 5px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s;
}

.decoration-item:hover {
    background-color: #f0f0f0;
}

.decoration-preview {
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #fff;
    border-radius: 3px;
    margin-bottom: 5px;
}

/* 中间画布区域 */
.canvas-area {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 20px;
    background-color: #fff;
}

.canvas-toolbar {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
}

.canvas-toolbar button {
    width: 40px;
    height: 40px;
    border: 1px solid var(--border-color);
    background-color: #fff;
    border-radius: 4px;
    cursor: pointer;
    transition: all var(--transition-speed) ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.canvas-toolbar button:hover {
    background-color: #f0f0f0;
}

/* 画布容器样式 */
.canvas-container {
    position: relative;
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background-color: #f0f0f0;
    border-radius: 5px;
    padding: 20px;
    min-height: 600px;
    overflow: hidden;
}

#canvas {
    display: block;
    background-color: white;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.2);
    max-width: 100%;
    max-height: 100%;
    border-radius: 4px;
    margin: 0 auto;
}

.canvas-controls {
    position: absolute;
    bottom: 15px;
    right: 15px;
    display: flex;
    gap: 10px;
}

.canvas-actions {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 15px 0;
    background-color: #f8f9fa;
    border-radius: 0 0 8px 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    margin-top: 10px;
}

.download-options, .share-options {
    display: flex;
    gap: 10px;
    margin: 0 15px;
}

.action-btn {
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 8px 15px;
    font-size: 14px;
    color: #333;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 5px;
}

.action-btn:hover {
    background-color: #f0f0f0;
    border-color: #ccc;
}

.action-btn i {
    font-size: 16px;
}

#download-png {
    color: #2980b9;
}

#download-jpg {
    color: #27ae60;
}

#share-btn {
    color: #e74c3c;
}

.primary-btn, .secondary-btn {
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    transition: background-color var(--transition-speed) ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

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

.primary-btn:hover {
    background-color: #e03e00;
}

.secondary-btn {
    background-color: var(--secondary-color);
    color: white;
}

.secondary-btn:hover {
    background-color: #2980b9;
}

/* 右侧属性面板 */
.properties-panel {
    width: 300px;
    border-left: 1px solid var(--border-color);
    padding: 20px;
    overflow-y: auto;
    background-color: #fafafa;
}

.panel-section {
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border-color);
}

.panel-section:last-child {
    border-bottom: none;
}

.panel-section h3 {
    margin-bottom: 15px;
    font-size: 18px;
    color: #333;
}

/* 背景网格 */
.background-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-top: 10px;
}

.background-item {
    border: 1px solid #ddd;
    border-radius: 5px;
    padding: 5px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s;
}

.background-item:hover {
    background-color: #f0f0f0;
}

.background-item.active {
    border-color: #3498db;
    background-color: #ebf5fb;
}

.background-preview {
    height: 50px;
    border-radius: 3px;
    margin-bottom: 5px;
}

/* 背景样式 */
.none-pattern {
    background-color: #ffffff;
}

.brick-pattern {
    background-color: #d9c2a5;
    background-image: linear-gradient(335deg, #b19276 23px, transparent 23px),
                      linear-gradient(155deg, #b19276 23px, transparent 23px),
                      linear-gradient(335deg, #b19276 23px, transparent 23px),
                      linear-gradient(155deg, #b19276 23px, transparent 23px);
    background-size: 58px 58px;
    background-position: 0px 2px, 4px 35px, 29px 31px, 34px 6px;
}

.concrete-pattern {
    background-color: #c0c0c0;
    background-image: linear-gradient(90deg, rgba(255,255,255,.07) 50%, transparent 50%),
                      linear-gradient(90deg, rgba(255,255,255,.13) 50%, transparent 50%),
                      linear-gradient(90deg, transparent 50%, rgba(255,255,255,.17) 50%),
                      linear-gradient(90deg, transparent 50%, rgba(255,255,255,.19) 50%);
    background-size: 13px, 29px, 37px, 53px;
}

.graffiti-wall-pattern {
    background-color: #a0a0a0;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100" viewBox="0 0 100 100"><rect fill="%23a0a0a0" width="100" height="100"/><path fill="%23808080" d="M0,0 L100,100 M100,0 L0,100"/></svg>');
    background-size: 10px 10px;
}

.subway-pattern {
    background-color: #909090;
    background-image: repeating-linear-gradient(45deg, #808080 0, #808080 2px, transparent 0, transparent 50%);
    background-size: 10px 10px;
}

.urban-pattern {
    background-color: #808080;
    background-image: linear-gradient(30deg, #707070 12%, transparent 12.5%, transparent 87%, #707070 87.5%, #707070),
                      linear-gradient(150deg, #707070 12%, transparent 12.5%, transparent 87%, #707070 87.5%, #707070),
                      linear-gradient(30deg, #707070 12%, transparent 12.5%, transparent 87%, #707070 87.5%, #707070),
                      linear-gradient(150deg, #707070 12%, transparent 12.5%, transparent 87%, #707070 87.5%, #707070),
                      linear-gradient(60deg, #70707077 25%, transparent 25.5%, transparent 75%, #70707077 75%, #70707077),
                      linear-gradient(60deg, #70707077 25%, transparent 25.5%, transparent 75%, #70707077 75%, #70707077);
    background-size: 20px 35px;
    background-position: 0 0, 0 0, 10px 18px, 10px 18px, 0 0, 10px 18px;
}

.neon-city-pattern {
    background-color: #000000;
    background-image: linear-gradient(0deg, transparent 0%, #ff00ff22 50%, transparent 100%),
                      linear-gradient(90deg, transparent 0%, #00ffff22 50%, transparent 100%);
    background-size: 20px 20px;
}

.pixel-art-pattern {
    background-color: #f0f0f0;
    background-image: linear-gradient(#cccccc 1px, transparent 1px),
                      linear-gradient(90deg, #cccccc 1px, transparent 1px);
    background-size: 10px 10px;
}

.blueprint-pattern {
    background-color: #2c3e50;
    background-image: linear-gradient(#3498db 1px, transparent 1px),
                      linear-gradient(90deg, #3498db 1px, transparent 1px);
    background-size: 20px 20px;
}

/* 贴纸网格 */
.stickers-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    margin-top: 10px;
}

.sticker-item {
    border: 1px solid #ddd;
    border-radius: 5px;
    padding: 5px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s;
}

.sticker-item:hover {
    background-color: #f0f0f0;
}

.sticker-preview {
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #fff;
    border-radius: 3px;
    margin-bottom: 5px;
}

.sticker-text-preview {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #eee;
    border-radius: 5px;
    font-size: 14px;
    font-weight: bold;
    color: #333;
}

.sticker-name {
    display: none;
}

/* 贴纸控制手柄 */
.sticker-handle {
    position: absolute;
    width: 10px;
    height: 10px;
    background-color: #3498db;
    border-radius: 50%;
    border: 1px solid #fff;
    cursor: pointer;
}

.sticker-handle.rotate {
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    cursor: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24"><path fill="white" d="M12 5C8.13 5 5 8.13 5 12H2l3.89 3.89.07.14L10 12H7c0-2.76 2.24-5 5-5s5 2.24 5 5-2.24 5-5 5c-1.38 0-2.64-.56-3.54-1.47l-1.41 1.41C8.53 18.42 10.17 19 12 19c3.87 0 7-3.13 7-7s-3.13-7-7-7z"/></svg>'), auto;
}

.sticker-handle.scale {
    bottom: -10px;
    right: -10px;
    cursor: nwse-resize;
}

.sticker-handle.delete {
    top: -10px;
    right: -10px;
    background-color: #e74c3c;
    cursor: pointer;
}

/* 活动贴纸边框 */
.sticker-border {
    position: absolute;
    border: 1px dashed #3498db;
    pointer-events: none;
}

/* 页脚样式 */
footer {
    background-color: var(--dark-color);
    color: #fff;
    padding: 20px 0;
    text-align: center;
    margin-top: 40px;
}

/* 响应式设计 */
@media (max-width: 1200px) {
    .generator-container {
        flex-direction: column;
    }
    
    .tools-sidebar, .properties-panel {
        width: 100%;
        border: none;
        border-bottom: 1px solid var(--border-color);
    }
    
    .canvas-area {
        order: -1;
    }
}

@media (max-width: 768px) {
    .steps-indicator {
        flex-direction: column;
        align-items: flex-start;
        padding-left: 20px;
    }
    
    .step {
        margin: 10px 0;
    }
    
    .step:not(:last-child)::after {
        display: none;
    }
    
    .effects-grid, .background-grid, .decorations-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .canvas-actions {
        flex-direction: column;
    }
}

/* 背景选择样式 */
.background-options {
    max-height: 300px;
    overflow-y: auto;
    padding-right: 5px;
}

.background-group {
    margin-bottom: 15px;
}

.background-group h4 {
    font-size: 14px;
    margin: 0 0 8px 0;
    color: #666;
}

.background-item {
    cursor: pointer;
    text-align: center;
    transition: all 0.2s;
    border-radius: 4px;
    padding: 5px;
}

.background-item:hover {
    background-color: #f0f0f0;
}

.background-item.active {
    background-color: #e0e0e0;
    box-shadow: 0 0 0 2px #4285f4;
}

.background-item span {
    display: block;
    font-size: 12px;
    margin-top: 5px;
    color: #333;
}

/* 统一布局 */
.unified-layout {
    display: grid;
    grid-template-columns: 300px 1fr;
    min-height: 600px;
}

/* 控制面板 */
.control-panel {
    background-color: #f9f9f9;
    border-right: 1px solid #e6e6e6;
    padding: 20px;
    overflow-y: auto;
    max-height: 800px;
}

.control-panel:last-child {
    border-right: none;
    border-left: 1px solid var(--border-color);
}

.panel-section {
    margin-bottom: 24px;
    padding-bottom: 24px;
    border-bottom: 1px solid #e6e6e6;
}

.panel-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.panel-section h3 {
    font-size: 16px;
    font-weight: 500;
    margin-bottom: 16px;
    color: #1d1d1f;
}

.panel-section h4 {
    font-size: 14px;
    font-weight: 500;
    margin: 16px 0 8px;
    color: #6e6e73;
}

/* 按钮样式 */
button {
    background-color: #f5f5f7;
    border: none;
    border-radius: 8px;
    padding: 8px 16px;
    font-size: 14px;
    font-weight: 500;
    color: #1d1d1f;
    cursor: pointer;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

button:hover {
    background-color: #e8e8ed;
}

button i {
    margin-right: 6px;
}

/* 输入框样式 */
input[type="text"], 
input[type="number"],
select {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #d2d2d7;
    border-radius: 8px;
    font-size: 14px;
    color: #1d1d1f;
    background-color: #ffffff;
    transition: border-color 0.2s;
}

input[type="text"]:focus,
input[type="number"]:focus,
select:focus {
    border-color: #0071e3;
    outline: none;
}

/* 字体样式选择器 */
.font-style-container {
    margin-bottom: 16px;
}

.font-style-select {
    width: 100%;
    padding: 8px;
    font-size: 16px;
    margin-bottom: 10px;
}

.font-style-select option {
    padding: 5px;
    font-size: 16px;
}

.font-preview {
    margin-top: 12px;
    padding: 16px;
    background-color: #ffffff;
    border: 1px solid #d2d2d7;
    border-radius: 8px;
    text-align: center;
    font-size: 24px;
    min-height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* 字号控制 */
.font-size-control {
    margin-top: 16px;
}

.font-size-control label {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    color: #6e6e73;
}

input[type="range"] {
    width: 100%;
    height: 6px;
    -webkit-appearance: none;
    background: #d2d2d7;
    border-radius: 3px;
    outline: none;
}

input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #0071e3;
    cursor: pointer;
}

/* 颜色控制 */
.color-controls {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.color-control {
    display: flex;
    flex-direction: column;
}

.color-control label {
    font-size: 12px;
    color: #6e6e73;
    margin-bottom: 6px;
}

input[type="color"] {
    -webkit-appearance: none;
    width: 100%;
    height: 36px;
    border: 1px solid #d2d2d7;
    border-radius: 6px;
    background-color: #ffffff;
    cursor: pointer;
}

input[type="color"]::-webkit-color-swatch-wrapper {
    padding: 0;
}

input[type="color"]::-webkit-color-swatch {
    border: none;
    border-radius: 5px;
}

/* 背景网格 */
.background-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-top: 10px;
}

.background-item {
    border: 1px solid #d2d2d7;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}

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

.background-item.active {
    border-color: #0071e3;
    box-shadow: 0 0 0 2px rgba(0, 113, 227, 0.2);
}

.background-preview {
    height: 60px;
    background-color: #f5f5f7;
}

.background-item span {
    display: block;
    padding: 6px;
    text-align: center;
    font-size: 12px;
    color: #1d1d1f;
    background-color: #ffffff;
}

/* 上传区域 */
.upload-section {
    margin-top: 15px;
    padding-top: 10px;
    border-top: 1px solid #eee;
}

.upload-info p {
    font-size: 13px;
    color: #6e6e73;
    margin-bottom: 12px;
}

.upload-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 15px;
    background-color: #f8f9fa;
    border: 1px solid #ddd;
    border-radius: 4px;
    color: #333;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s;
    width: 100%;
}

.upload-btn:hover {
    background-color: #e9ecef;
    border-color: #ccc;
}

.upload-btn i {
    margin-right: 8px;
    font-size: 16px;
    color: #3498db;
}

/* 自定义项目网格 */
.custom-items-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    margin-top: 10px;
}

.custom-item {
    border: 1px solid #ddd;
    border-radius: 5px;
    padding: 5px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s;
    position: relative;
}

.custom-item:hover {
    background-color: #f0f0f0;
}

.custom-item-preview {
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #fff;
    border-radius: 3px;
    margin-bottom: 5px;
    overflow: hidden;
}

.custom-item-preview img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.custom-item span {
    display: block;
    font-size: 12px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.custom-item .delete-btn {
    position: absolute;
    top: -5px;
    right: -5px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background-color: #e74c3c;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    opacity: 0;
    transition: opacity 0.2s;
}

.custom-item:hover .delete-btn {
    opacity: 1;
}

/* 图层列表 */
.layer-list {
    margin-bottom: 16px;
    max-height: 200px;
    overflow-y: auto;
    border: 1px solid #d2d2d7;
    border-radius: 8px;
    background-color: #ffffff;
}

.layer-item {
    display: flex;
    align-items: center;
    padding: 10px;
    border-bottom: 1px solid #e6e6e6;
    cursor: pointer;
    transition: background-color 0.2s;
}

.layer-item:last-child {
    border-bottom: none;
}

.layer-item:hover {
    background-color: #f5f5f7;
}

.layer-item.active {
    background-color: rgba(0, 113, 227, 0.1);
}

.layer-icon {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 10px;
    color: #6e6e73;
}

.layer-name {
    flex: 1;
    font-size: 14px;
    color: #1d1d1f;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

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

/* 导出和分享面板 */
.export-share-panel {
    margin-top: 20px;
    background-color: #ffffff;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    padding: 24px;
}

.export-options {
    display: flex;
    gap: 12px;
    margin-bottom: 24px;
}

.export-btn {
    flex: 1;
    padding: 12px 16px;
    background-color: #0071e3;
    color: #ffffff;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    transition: background-color 0.2s;
}

.export-btn:hover {
    background-color: #0077ed;
}

.share-options {
    position: relative;
}

.social-share-dropdown {
    position: absolute;
    top: auto;
    bottom: 100%;
    right: 0;
    width: 180px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    padding: 8px 0;
    margin-bottom: 8px;
    z-index: 1000;
    display: none;
    max-height: 300px;
    overflow-y: auto;
}

/* 删除自动显示的悬停效果 */
.share-options:hover .social-share-dropdown {
    display: none;
}

/* 显示下拉菜单的类 */
.social-share-dropdown.show {
    display: block;
}

.social-share-item {
    display: flex;
    align-items: center;
    padding: 8px 16px;
    color: #333;
    text-decoration: none;
    font-size: 14px;
    transition: background-color 0.2s;
}

.social-share-item:hover {
    background-color: #f5f5f5;
}

.social-share-item i {
    width: 20px;
    margin-right: 10px;
    text-align: center;
}

#share-twitter i {
    color: #1DA1F2;
}

#share-facebook i {
    color: #4267B2;
}

#share-pinterest i {
    color: #E60023;
}

#share-reddit i {
    color: #FF4500;
}

#share-instagram i {
    color: #C13584;
}

#share-tumblr i {
    color: #36465D;
}

/* 二维码分享 */
.qrcode-share {
    margin-top: 24px;
    padding: 16px;
    background-color: #f5f5f7;
    border-radius: 8px;
}

.qrcode-share h4 {
    font-size: 16px;
    font-weight: 500;
    margin-bottom: 8px;
    color: #1d1d1f;
}

.qrcode-share p {
    margin-bottom: 16px;
    color: #6e6e73;
    font-size: 14px;
}

.qrcode-container {
    margin-top: 16px;
    text-align: center;
}

#qrcode {
    display: inline-block;
    padding: 16px;
    background-color: #ffffff;
    border: 1px solid #d2d2d7;
    border-radius: 8px;
    margin-bottom: 12px;
}

#qrcode img {
    display: block;
    max-width: 100%;
}

/* 页脚 */
footer {
    padding: 20px 0;
    text-align: center;
    color: #6e6e73;
    font-size: 12px;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .unified-layout {
        grid-template-columns: 1fr;
    }
    
    .control-panel {
        border-right: none;
        border-bottom: 1px solid #e6e6e6;
    }
    
    .export-options {
        flex-direction: column;
    }
    
    .social-buttons {
        justify-content: center;
    }
}

/* 文件上传按钮样式 */
.font-upload {
    margin-top: 15px;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.file-input {
    width: 0.1px;
    height: 0.1px;
    opacity: 0;
    overflow: hidden;
    position: absolute;
    z-index: -1;
}

.file-label {
    background-color: #3498db;
    color: white;
    padding: 8px 15px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: background-color 0.2s;
    display: inline-block;
}

.file-label:hover {
    background-color: #2980b9;
}

.file-name {
    font-size: 14px;
    color: #666;
}

/* 社区资源页面样式 */
.community-wrapper {
    background-color: #ffffff;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    padding: 30px;
    margin-bottom: 30px;
}

.community-header {
    margin-bottom: 30px;
    text-align: center;
}

.community-header h2 {
    font-size: 28px;
    margin-bottom: 10px;
    color: #1d1d1f;
}

.community-header p {
    color: #6e6e73;
    max-width: 700px;
    margin: 0 auto 20px;
}

.community-tabs {
    display: flex;
    justify-content: center;
    margin-bottom: 30px;
    border-bottom: 1px solid #e6e6e6;
}

.tab-btn {
    padding: 12px 24px;
    margin: 0 5px;
    background: none;
    border: none;
    border-bottom: 3px solid transparent;
    font-size: 16px;
    color: #6e6e73;
    cursor: pointer;
    transition: all 0.2s;
}

.tab-btn:hover {
    color: #1d1d1f;
}

.tab-btn.active {
    color: #0071e3;
    border-bottom-color: #0071e3;
    font-weight: 500;
}

.tab-content {
    display: none;
}

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

.resource-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.resource-count {
    font-size: 16px;
    color: #6e6e73;
}

.resource-count span {
    font-weight: 500;
    color: #1d1d1f;
}

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

.danger-btn {
    background-color: #ff3b30;
    color: white;
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 14px;
    transition: background-color 0.2s;
}

.danger-btn:hover {
    background-color: #ff453a;
}

.resource-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
}

.resource-item {
    border: 1px solid #d2d2d7;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.2s, box-shadow 0.2s;
    position: relative;
}

.resource-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.resource-preview {
    height: 150px;
    background-color: #f5f5f7;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.resource-preview img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.resource-info {
    padding: 15px;
    background-color: #ffffff;
}

.resource-name {
    font-size: 14px;
    font-weight: 500;
    color: #1d1d1f;
    margin-bottom: 5px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.resource-date {
    font-size: 12px;
    color: #6e6e73;
}

.resource-actions-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.7);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    opacity: 0;
    transition: opacity 0.2s;
}

.resource-item:hover .resource-actions-overlay {
    opacity: 1;
}

.resource-action-btn {
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s;
}

.use-btn {
    background-color: #0071e3;
    color: white;
}

.use-btn:hover {
    background-color: #0077ed;
}

.delete-resource-btn {
    background-color: #ff3b30;
    color: white;
}

.delete-resource-btn:hover {
    background-color: #ff453a;
}

/* 响应式设计 */
@media (max-width: 992px) {
    .resource-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .resource-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .community-tabs {
        flex-wrap: wrap;
    }
}

@media (max-width: 576px) {
    .resource-grid {
        grid-template-columns: 1fr;
    }
    
    .resource-controls {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
}

/* 教程页面样式 */
.tutorials-wrapper {
    padding: 20px 0;
    background-color: #f9f9f9;
    min-height: 80vh;
}

.tutorials-header {
    text-align: center;
    margin-bottom: 30px;
    padding: 20px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.tutorials-header h2 {
    font-size: 2.2em;
    margin-bottom: 10px;
    color: #333;
}

.tutorials-header p {
    color: #666;
    max-width: 800px;
    margin: 0 auto 20px;
}

.tutorials-content {
    display: flex;
    gap: 30px;
    margin-top: 20px;
}

.tutorial-sidebar {
    flex: 0 0 250px;
    background-color: #fff;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 20px;
    align-self: flex-start;
    max-height: calc(100vh - 40px);
    overflow-y: auto;
}

.tutorial-sidebar h3 {
    font-size: 1.4em;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}

.tutorial-nav {
    list-style: none;
    padding: 0;
}

.tutorial-nav li {
    margin-bottom: 10px;
}

.tutorial-nav a {
    display: block;
    padding: 8px 12px;
    color: #555;
    text-decoration: none;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.tutorial-nav a:hover {
    background-color: #f0f0f0;
    color: #333;
}

.tutorial-nav a.active {
    background-color: #4a6cf7;
    color: #fff;
    font-weight: 500;
}

.tutorial-content {
    flex: 1;
    background-color: #fff;
    border-radius: 8px;
    padding: 30px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.tutorial-section {
    display: none;
    margin-bottom: 40px;
}

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

.tutorial-section h2 {
    font-size: 1.8em;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
    color: #333;
}

.tutorial-step {
    margin-bottom: 30px;
}

.step-image {
    margin-bottom: 20px;
    text-align: center;
}

.step-image img {
    max-width: 100%;
    border-radius: 8px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

.step-content h3 {
    font-size: 1.4em;
    margin-bottom: 15px;
    color: #444;
}

.step-content p, 
.step-content ul, 
.step-content ol {
    margin-bottom: 15px;
    line-height: 1.6;
    color: #555;
}

.step-content ul, 
.step-content ol {
    padding-left: 20px;
}

.step-content li {
    margin-bottom: 8px;
}

.step-content strong {
    font-weight: 600;
    color: #333;
}

/* 响应式调整 */
@media (max-width: 992px) {
    .tutorials-content {
        flex-direction: column;
    }
    
    .tutorial-sidebar {
        flex: none;
        width: 100%;
        position: static;
        margin-bottom: 20px;
        max-height: none;
    }
}

@media (max-width: 768px) {
    .tutorial-content {
        padding: 20px;
    }
    
    .tutorials-header h2 {
        font-size: 1.8em;
    }
}

/* 联系我页面样式 */
.contact-wrapper {
    padding: 20px 0;
    background-color: #f9f9f9;
    min-height: 80vh;
}

.contact-header {
    text-align: center;
    margin-bottom: 30px;
    padding: 20px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.contact-header h2 {
    font-size: 2.2em;
    margin-bottom: 10px;
    color: #333;
}

.contact-header p {
    color: #666;
    max-width: 800px;
    margin: 0 auto 20px;
}

.contact-content {
    display: flex;
    gap: 30px;
    margin-top: 20px;
}

.contact-form-container {
    flex: 1;
    background-color: #fff;
    border-radius: 8px;
    padding: 30px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.contact-form {
    width: 100%;
}

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

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #444;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
    color: #333;
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: #4a6cf7;
    outline: none;
    box-shadow: 0 0 0 3px rgba(74, 108, 247, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.submit-btn {
    background-color: #4a6cf7;
    color: #fff;
    border: none;
    border-radius: 4px;
    padding: 12px 24px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.3s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.submit-btn:hover {
    background-color: #3a5bd9;
}

.submit-btn i {
    margin-right: 8px;
}

.contact-info {
    flex: 0 0 300px;
    background-color: #fff;
    border-radius: 8px;
    padding: 30px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.contact-info h3 {
    font-size: 1.4em;
    margin-bottom: 20px;
    color: #333;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}

.contact-list {
    list-style: none;
    padding: 0;
    margin-bottom: 30px;
}

.contact-list li {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    color: #555;
}

.contact-list li i {
    width: 24px;
    height: 24px;
    background-color: #f0f4ff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    color: #4a6cf7;
}

.social-media h3 {
    font-size: 1.4em;
    margin-bottom: 15px;
    color: #333;
}

.social-icons {
    display: flex;
    gap: 15px;
}

.social-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #f0f4ff;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #4a6cf7;
    text-decoration: none;
    transition: all 0.3s;
}

.social-icon:hover {
    background-color: #4a6cf7;
    color: #fff;
    transform: translateY(-3px);
}

.contact-success {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 400px;
}

.success-message {
    text-align: center;
    background-color: #fff;
    border-radius: 8px;
    padding: 40px;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
    max-width: 500px;
}

.success-message i {
    font-size: 60px;
    color: #4CAF50;
    margin-bottom: 20px;
}

.success-message h3 {
    font-size: 24px;
    margin-bottom: 15px;
    color: #333;
}

.success-message p {
    color: #666;
    margin-bottom: 25px;
}

/* 响应式调整 */
@media (max-width: 992px) {
    .contact-content {
        flex-direction: column;
    }
    
    .contact-info {
        flex: none;
        width: 100%;
    }
}

@media (max-width: 768px) {
    .contact-form-container {
        padding: 20px;
    }
    
    .contact-header h2 {
        font-size: 1.8em;
    }
} 