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

body {
    font-family: 'Comic Sans MS', 'Hiragino Kaku Gothic ProN', 'メイリオ', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #fff0f5;
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffd6e0' fill-opacity='0.4'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

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

.app-header {
    background-color: #ffd6e0;
    padding: 20px;
    border-radius: 20px;
    box-shadow: 0 4px 15px rgba(255, 150, 180, 0.3);
    margin-bottom: 20px;
    border: 2px solid #ffb6c1;
    position: relative;
    overflow: hidden;
}

.app-header::before {
    content: "✨";
    position: absolute;
    top: 10px;
    right: 20px;
    font-size: 24px;
    animation: twinkle 3s infinite;
}

@keyframes twinkle {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(1.2); }
}

.app-header h1 {
    font-size: 28px;
    margin-bottom: 20px;
    color: #ff69b4;
    text-align: center;
    text-shadow: 2px 2px 0px #fff;
    font-weight: bold;
}

.nav-tabs {
    display: flex;
    gap: 15px;
    justify-content: center;
}

.nav-tab {
    padding: 12px 25px;
    border: 2px solid #ffb6c1;
    background-color: #fff;
    border-radius: 50px;
    cursor: pointer;
    font-size: 16px;
    font-weight: bold;
    color: #ff69b4;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(255, 150, 180, 0.2);
}

.nav-tab:hover {
    background-color: #fff0f5;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 150, 180, 0.3);
}

.nav-tab.active {
    background-color: #ff69b4;
    color: white;
    border-color: #ff69b4;
    box-shadow: 0 4px 12px rgba(255, 105, 180, 0.4);
}

.app-main {
    background-color: #fff;
    padding: 30px;
    border-radius: 20px;
    box-shadow: 0 4px 15px rgba(255, 150, 180, 0.3);
    border: 2px solid #ffb6c1;
}

.tab-content {
    display: none;
}

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

.input-section h2,
.image-upload-section h2,
.output-section h2,
.templates-section h2 {
    font-size: 24px;
    margin-bottom: 25px;
    color: #ff69b4;
    text-align: center;
    text-shadow: 2px 2px 0px #fff;
    font-weight: bold;
    background-color: #ffd6e0;
    padding: 10px 20px;
    border-radius: 50px;
    display: inline-block;
    border: 2px solid #ffb6c1;
    box-shadow: 0 2px 8px rgba(255, 150, 180, 0.3);
}

.input-methods {
    display: flex;
    gap: 15px;
    margin-bottom: 25px;
    justify-content: center;
}

.btn {
    padding: 12px 25px;
    border: 2px solid #ffb6c1;
    border-radius: 50px;
    cursor: pointer;
    font-size: 16px;
    font-weight: bold;
    transition: all 0.3s ease;
    background-color: #fff;
    color: #ff69b4;
    box-shadow: 0 2px 8px rgba(255, 150, 180, 0.2);
}

.btn:hover {
    background-color: #fff0f5;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 150, 180, 0.3);
}

.btn-primary {
    background-color: #ff69b4;
    color: white;
    border-color: #ff69b4;
}

.btn-primary:hover {
    background-color: #ff1493;
    box-shadow: 0 4px 12px rgba(255, 20, 147, 0.4);
}

.btn-secondary {
    background-color: #fff;
    color: #ff69b4;
    border-color: #ffb6c1;
}

.btn-secondary:hover {
    background-color: #fff0f5;
    box-shadow: 0 4px 12px rgba(255, 150, 180, 0.3);
}

.btn.active {
    background-color: #ff69b4;
    color: white;
    border-color: #ff69b4;
    box-shadow: 0 4px 12px rgba(255, 105, 180, 0.4);
}

.input-form {
    display: none;
}

.input-form.active {
    display: block;
}

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

.form-row {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.form-row .form-group {
    flex: 1;
    margin-bottom: 0;
    min-width: 250px;
}

label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
    color: #ff69b4;
    font-size: 16px;
}

input[type="text"],
input[type="file"],
select {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #ffb6c1;
    border-radius: 20px;
    font-size: 16px;
    background-color: #fff;
    color: #333;
    transition: all 0.3s ease;
    font-family: 'Comic Sans MS', sans-serif;
}

input[type="text"]:focus,
input[type="file"]:focus,
select:focus {
    outline: none;
    border-color: #ff69b4;
    box-shadow: 0 0 0 3px rgba(255, 105, 180, 0.1);
    transform: translateY(-1px);
}

input[type="checkbox"] {
    margin-right: 8px;
    width: 20px;
    height: 20px;
    accent-color: #ff69b4;
    cursor: pointer;
}

input[type="checkbox"] {
    margin-right: 5px;
}

.image-upload-section {
    margin-top: 40px;
}

.upload-area {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 25px;
}

.upload-container {
    border: 2px solid #ffb6c1;
    border-radius: 20px;
    padding: 20px;
    background-color: #fff0f5;
    box-shadow: 0 4px 12px rgba(255, 150, 180, 0.2);
}

.upload-container h3 {
    font-size: 20px;
    margin-bottom: 20px;
    color: #ff69b4;
    text-align: center;
    font-weight: bold;
    text-shadow: 1px 1px 0px #fff;
}

.upload-box {
    position: relative;
    border: 3px dashed #ff69b4;
    border-radius: 20px;
    padding: 40px 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    background-color: #fff;
    min-height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.upload-box:hover {
    border-color: #ff1493;
    background-color: #fff0f5;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 105, 180, 0.3);
}

.upload-box input[type="file"] {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}

.upload-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.upload-icon {
    font-size: 64px;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.hint {
    font-size: 14px;
    color: #ff69b4;
    font-weight: bold;
}

.upload-preview {
    margin-top: 20px;
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: center;
}

.preview-image {
    width: 120px;
    height: 120px;
    object-fit: cover;
    border-radius: 15px;
    border: 3px solid #ffb6c1;
    box-shadow: 0 3px 10px rgba(255, 150, 180, 0.3);
    transition: all 0.3s ease;
}

.preview-image:hover {
    transform: scale(1.05) rotate(2deg);
    box-shadow: 0 5px 15px rgba(255, 105, 180, 0.4);
}

.action-section {
    margin-top: 40px;
    display: flex;
    gap: 20px;
    justify-content: center;
    padding: 20px;
    background-color: #fff0f5;
    border-radius: 20px;
    border: 2px solid #ffb6c1;
}

.output-section {
    margin-top: 40px;
}

.output-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
    gap: 25px;
}

.product-draft {
    border: 2px solid #ffb6c1;
    border-radius: 20px;
    padding: 20px;
    background-color: #fff0f5;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(255, 150, 180, 0.2);
    position: relative;
    overflow: hidden;
}

.product-draft::before {
    content: "⭐";
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 20px;
    opacity: 0.7;
    animation: twinkle 2s infinite;
}

.product-draft:hover {
    transform: translateY(-5px) rotate(1deg);
    box-shadow: 0 8px 25px rgba(255, 105, 180, 0.3);
}

.draft-image {
    width: 100%;
    height: 280px;
    margin-bottom: 20px;
    border-radius: 15px;
    overflow: hidden;
    border: 3px solid #ff69b4;
    box-shadow: 0 4px 12px rgba(255, 105, 180, 0.2);
}

.draft-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.3s ease;
}

.product-draft:hover .draft-image img {
    transform: scale(1.05);
}

.draft-title {
    font-size: 18px;
    margin-bottom: 15px;
    color: #ff69b4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    font-weight: bold;
    text-shadow: 1px 1px 0px #fff;
}

.draft-slogans {
    margin-bottom: 20px;
    background-color: #fff;
    padding: 15px;
    border-radius: 15px;
    border: 2px solid #ffb6c1;
}

.draft-slogan {
    font-size: 16px;
    color: #ff69b4;
    margin-bottom: 10px;
    padding-left: 20px;
    position: relative;
    line-height: 1.5;
}

.draft-slogan::before {
    content: "✨";
    position: absolute;
    left: 0;
    color: #ffd700;
    font-weight: bold;
    font-size: 18px;
}

.draft-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-sm {
    padding: 10px 18px;
    font-size: 14px;
    border-radius: 30px;
    font-weight: bold;
    border: 2px solid #ffb6c1;
    background-color: #fff;
    color: #ff69b4;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(255, 150, 180, 0.2);
}

.btn-sm:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 150, 180, 0.3);
}

.btn-sm.btn-primary {
    background-color: #ff69b4;
    color: white;
    border-color: #ff69b4;
}

.btn-sm.btn-primary:hover {
    background-color: #ff1493;
    box-shadow: 0 4px 12px rgba(255, 20, 147, 0.4);
}

.templates-controls {
    display: flex;
    gap: 20px;
    margin-bottom: 25px;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
}

.templates-controls input,
.templates-controls select {
    flex: 1;
    min-width: 250px;
    max-width: 400px;
}

.templates-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 25px;
}

/* 首页样式 */
.dashboard-section h2,
.tasks-section h2,
.settings-section h2 {
    margin-bottom: 25px;
    text-align: center;
}

/* 统计卡片 */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card {
    background-color: #fff0f5;
    padding: 25px;
    border-radius: 20px;
    border: 2px solid #ffb6c1;
    box-shadow: 0 4px 15px rgba(255, 150, 180, 0.2);
    display: flex;
    align-items: center;
    gap: 15px;
    transition: all 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(255, 105, 180, 0.3);
}

.stat-icon {
    font-size: 48px;
    flex-shrink: 0;
}

.stat-content {
    flex: 1;
}

.stat-number {
    font-size: 32px;
    font-weight: bold;
    color: #ff69b4;
    line-height: 1;
}

.stat-label {
    font-size: 16px;
    color: #ff69b4;
    margin-top: 5px;
}

/* 进度条 */
.progress-section {
    background-color: #fff0f5;
    padding: 25px;
    border-radius: 20px;
    border: 2px solid #ffb6c1;
    box-shadow: 0 4px 15px rgba(255, 150, 180, 0.2);
    margin-bottom: 30px;
}

.progress-section h3,
.activity-section h3 {
    font-size: 20px;
    color: #ff69b4;
    margin-bottom: 20px;
    text-shadow: 1px 1px 0px #fff;
}

.progress-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.progress-item {
    background-color: #fff;
    padding: 20px;
    border-radius: 15px;
    border: 2px solid #ffb6c1;
}

.progress-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    font-weight: bold;
    color: #ff69b4;
}

.progress-status {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    background-color: #ffb6c1;
    color: #fff;
}

.progress-bar {
    height: 12px;
    background-color: #fff0f5;
    border-radius: 10px;
    margin-bottom: 10px;
    overflow: hidden;
    border: 1px solid #ffb6c1;
}

.progress-fill {
    height: 100%;
    background-color: #ff69b4;
    border-radius: 10px;
    transition: width 0.5s ease;
}

.progress-info {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
    color: #ff69b4;
}

/* 最近活动 */
.activity-section {
    background-color: #fff0f5;
    padding: 25px;
    border-radius: 20px;
    border: 2px solid #ffb6c1;
    box-shadow: 0 4px 15px rgba(255, 150, 180, 0.2);
}

.activity-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.activity-item {
    display: flex;
    gap: 15px;
    background-color: #fff;
    padding: 15px;
    border-radius: 15px;
    border: 2px solid #ffb6c1;
    transition: all 0.3s ease;
}

.activity-item:hover {
    transform: translateX(5px);
    box-shadow: 0 4px 15px rgba(255, 150, 180, 0.2);
}

.activity-icon {
    font-size: 24px;
    flex-shrink: 0;
    margin-top: 2px;
}

.activity-content {
    flex: 1;
}

.activity-text {
    color: #ff69b4;
    font-size: 16px;
    margin-bottom: 5px;
}

.activity-time {
    color: #ffb6c1;
    font-size: 12px;
}

/* 任务列表样式 */
.tasks-section {
    background-color: #fff0f5;
    padding: 25px;
    border-radius: 20px;
    border: 2px solid #ffb6c1;
    box-shadow: 0 4px 15px rgba(255, 150, 180, 0.2);
}

.tasks-header {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 25px;
    align-items: flex-start;
}

.tasks-controls {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    align-items: center;
}

.tasks-controls input,
.tasks-controls select {
    min-width: 200px;
    max-width: 250px;
}

.task-item {
    background-color: #fff;
    padding: 20px;
    border-radius: 15px;
    border: 2px solid #ffb6c1;
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    transition: all 0.3s ease;
}

.task-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(255, 150, 180, 0.3);
}

.task-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.task-title {
    font-size: 18px;
    font-weight: bold;
    color: #ff69b4;
    flex: 1;
}

.task-status {
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: bold;
    color: #fff;
}

.task-status.pending {
    background-color: #ffb6c1;
}

.task-status.processing {
    background-color: #ff69b4;
}

.task-status.completed {
    background-color: #ff1493;
}

.task-status.failed {
    background-color: #ff6347;
}

.task-info {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    color: #ff69b4;
    font-size: 14px;
}

.task-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    flex-wrap: wrap;
}

/* 设置页面样式 */
.settings-section {
    background-color: #fff0f5;
    padding: 25px;
    border-radius: 20px;
    border: 2px solid #ffb6c1;
    box-shadow: 0 4px 15px rgba(255, 150, 180, 0.2);
}

.settings-group {
    background-color: #fff;
    padding: 25px;
    border-radius: 15px;
    border: 2px solid #ffb6c1;
    margin-bottom: 25px;
}

.settings-group h3 {
    font-size: 20px;
    color: #ff69b4;
    margin-bottom: 20px;
    text-shadow: 1px 1px 0px #fff;
    border-bottom: 2px solid #ffb6c1;
    padding-bottom: 10px;
}

.radio-group {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    align-items: center;
}

.radio-group label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: normal;
    cursor: pointer;
}

.settings-actions {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-top: 30px;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .tasks-header {
        align-items: stretch;
    }
    
    .tasks-controls {
        flex-direction: column;
        align-items: stretch;
    }
    
    .tasks-controls input,
    .tasks-controls select {
        min-width: 100%;
        max-width: 100%;
    }
    
    .radio-group {
        flex-direction: column;
        align-items: stretch;
    }
}

.template-card {
    border: 2px solid #ffb6c1;
    border-radius: 20px;
    padding: 20px;
    background-color: #fff0f5;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(255, 150, 180, 0.2);
    position: relative;
    overflow: hidden;
}

.template-card::before {
    content: "🌟";
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 20px;
    opacity: 0.7;
    animation: twinkle 2s infinite;
}

.template-card:hover {
    transform: translateY(-5px) rotate(1deg);
    box-shadow: 0 8px 25px rgba(255, 105, 180, 0.3);
}

.template-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid #ffb6c1;
}

.template-name {
    font-size: 18px;
    font-weight: bold;
    color: #ff69b4;
    text-shadow: 1px 1px 0px #fff;
}

.template-type {
    background-color: #ff69b4;
    color: white;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: bold;
    border: 2px solid #ffb6c1;
}

.template-tags {
    display: flex;
    gap: 8px;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

.template-tag {
    padding: 6px 14px;
    background-color: #fff;
    border: 2px solid #ffb6c1;
    border-radius: 20px;
    font-size: 14px;
    color: #ff69b4;
    font-weight: bold;
}

.template-content {
    margin-bottom: 20px;
    background-color: #fff;
    padding: 15px;
    border-radius: 15px;
    border: 2px solid #ffb6c1;
}

.template-content img {
    border-radius: 10px;
    margin-bottom: 10px;
    border: 2px solid #ffb6c1;
}

.template-content p,
.template-content div {
    color: #ff69b4;
    font-size: 15px;
    line-height: 1.5;
}

.template-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

@media (max-width: 768px) {
    .app-container {
        padding: 15px;
    }
    
    .app-header {
        padding: 15px;
        border-radius: 15px;
    }
    
    .app-header h1 {
        font-size: 24px;
    }
    
    .nav-tabs {
        flex-direction: column;
        gap: 10px;
    }
    
    .nav-tab {
        padding: 10px 20px;
        font-size: 14px;
    }
    
    .app-main {
        padding: 20px;
        border-radius: 15px;
    }
    
    .input-section h2,
    .image-upload-section h2,
    .output-section h2,
    .templates-section h2 {
        font-size: 20px;
        padding: 8px 16px;
    }
    
    .input-methods {
        flex-direction: column;
        gap: 10px;
    }
    
    .form-row {
        flex-direction: column;
    }
    
    .form-row .form-group {
        min-width: 100%;
    }
    
    .upload-area {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .upload-container {
        padding: 15px;
    }
    
    .upload-container h3 {
        font-size: 18px;
    }
    
    .upload-box {
        padding: 30px 15px;
        min-height: 180px;
    }
    
    .upload-icon {
        font-size: 48px;
    }
    
    .action-section {
        flex-direction: column;
        gap: 15px;
        padding: 15px;
    }
    
    .output-list {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .product-draft {
        padding: 15px;
    }
    
    .draft-image {
        height: 220px;
    }
    
    .draft-slogan {
        font-size: 14px;
    }
    
    .draft-actions {
        flex-direction: column;
    }
    
    .templates-controls {
        flex-direction: column;
        align-items: stretch;
    }
    
    .templates-controls input,
    .templates-controls select {
        min-width: 100%;
        max-width: 100%;
    }
    
    .templates-list {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .template-card {
        padding: 15px;
    }
    
    .template-actions {
        flex-direction: column;
    }
}
