/* 全局样式重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Noto Sans SC', 'Poppins', sans-serif;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    min-height: 100vh;
    color: #333;
    line-height: 1.6;
    padding: 20px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* 头部样式 */
.header {
    text-align: center;
    margin-bottom: 40px;
    padding: 30px;
    background: linear-gradient(135deg, #6a11cb 0%, #2575fc 100%);
    color: white;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(106, 17, 203, 0.3);
}

.header h1 {
    font-size: 2.8rem;
    font-weight: 700;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.header .subtitle {
    font-size: 1.2rem;
    opacity: 0.9;
    max-width: 800px;
    margin: 0 auto;
}

/* 主内容区域 */
.main-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-bottom: 40px;
}

@media (max-width: 992px) {
    .main-content {
        grid-template-columns: 1fr;
    }
}

/* 卡片样式 */
.card {
    background: white;
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.card h2 {
    font-size: 1.8rem;
    margin-bottom: 25px;
    color: #2c3e50;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* 表单组样式 */
.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 10px;
    color: #34495e;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.form-group input[type="text"] {
    width: 100%;
    padding: 15px;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    font-size: 1.1rem;
    transition: border-color 0.3s ease;
    font-family: 'Noto Sans SC', sans-serif;
}

.form-group input[type="text"]:focus {
    outline: none;
    border-color: #6a11cb;
    box-shadow: 0 0 0 3px rgba(106, 17, 203, 0.1);
}

/* 名称输入组样式 */
.name-input-group {
    display: flex;
    gap: 10px;
}

.name-input-group input {
    flex: 1;
}

.random-name-btn {
    padding: 0 20px;
    background: linear-gradient(135deg, #00b09b 0%, #96c93d 100%);
    color: white;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.random-name-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 176, 155, 0.3);
}

.char-count {
    text-align: right;
    font-size: 0.9rem;
    color: #7f8c8d;
    margin-top: 5px;
}

.name-hint {
    font-size: 0.85rem;
    color: #6a11cb;
    margin-top: 8px;
    display: flex;
    align-items: center;
    gap: 5px;
}

/* 颜色选择器样式 */
.color-pickers {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

@media (max-width: 768px) {
    .color-pickers {
        grid-template-columns: 1fr;
    }
}

.color-input-group {
    display: flex;
    gap: 10px;
    align-items: center;
    margin-bottom: 15px;
}

.color-picker {
    width: 60px;
    height: 50px;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    padding: 0;
}

.color-text {
    flex: 1;
    padding: 12px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-family: monospace;
}

.color-preview {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    border: 2px solid #ddd;
}

.color-presets {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

.color-presets span {
    font-size: 0.9rem;
    color: #7f8c8d;
}

.color-preset {
    width: 30px;
    height: 30px;
    border-radius: 6px;
    border: 2px solid white;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.color-preset:hover {
    transform: scale(1.1);
}

/* 字体选项样式 */
.font-options {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.font-option {
    padding: 12px 20px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    background: white;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
}

.font-option:hover {
    border-color: #6a11cb;
    color: #6a11cb;
}

.font-option.active {
    background: #6a11cb;
    color: white;
    border-color: #6a11cb;
}

/* 字体大小和粗细控制样式 */
.font-size-weight-controls {
    margin-top: 20px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 12px;
}

.font-control-group {
    margin-bottom: 20px;
}

.font-control-group:last-child {
    margin-bottom: 0;
}

.font-control-group label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    color: #34495e;
    margin-bottom: 10px;
    font-size: 1rem;
}

.slider-container {
    display: flex;
    align-items: center;
    gap: 15px;
}

.font-slider {
    flex: 1;
    height: 8px;
    -webkit-appearance: none;
    appearance: none;
    background: linear-gradient(to right, #6a11cb, #2575fc);
    border-radius: 4px;
    outline: none;
}

.font-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: white;
    border: 2px solid #6a11cb;
    cursor: pointer;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.font-slider::-moz-range-thumb {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: white;
    border: 2px solid #6a11cb;
    cursor: pointer;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.slider-value {
    min-width: 60px;
    text-align: center;
    font-weight: 600;
    color: #6a11cb;
    background: white;
    padding: 8px 12px;
    border-radius: 8px;
    border: 2px solid #e0e0e0;
}

.weight-options {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.weight-option {
    padding: 10px 16px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    background: white;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
    flex: 1;
    min-width: 80px;
    text-align: center;
}

.weight-option:hover {
    border-color: #6a11cb;
    color: #6a11cb;
}

.weight-option.active {
    background: #6a11cb;
    color: white;
    border-color: #6a11cb;
}

/* 按钮样式 */
.action-buttons {
    display: flex;
    gap: 15px;
    margin-top: 30px;
}

.btn {
    padding: 16px 30px;
    border: none;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    flex: 1;
}

.generate-btn {
    background: linear-gradient(135deg, #6a11cb 0%, #2575fc 100%);
    color: white;
}

.generate-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(106, 17, 203, 0.3);
}

.reset-btn {
    background: #f8f9fa;
    color: #6c757d;
    border: 2px solid #e0e0e0;
}

.reset-btn:hover {
    background: #e9ecef;
    border-color: #6c757d;
}

/* 预览区域样式 */
.preview-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 25px;
}

.canvas-wrapper {
    position: relative;
    width: 300px;
    height: 300px;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    background: #f8f9fa;
}

.logo-canvas {
    display: block;
    width: 100%;
    height: 100%;
}

.canvas-placeholder {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #7f8c8d;
    background: #f8f9fa;
}

.canvas-placeholder i {
    font-size: 4rem;
    margin-bottom: 20px;
    opacity: 0.5;
}

.canvas-placeholder p {
    font-size: 1.2rem;
    text-align: center;
}

/* 预览信息样式 */
.preview-info {
    width: 100%;
    background: #f8f9fa;
    padding: 20px;
    border-radius: 15px;
}

.info-item {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid #e0e0e0;
}

.info-item:last-child {
    border-bottom: none;
}

.info-label {
    font-weight: 600;
    color: #2c3e50;
}

.info-value {
    color: #6a11cb;
    font-weight: 500;
}

/* 下载区域样式 */
.download-section, .download-placeholder {
    width: 100%;
    text-align: center;
    padding: 25px;
    background: #f8f9fa;
    border-radius: 15px;
}

.download-section h3 {
    font-size: 1.5rem;
    margin-bottom: 20px;
    color: #2c3e50;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.download-options {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
}

.download-btn {
    background: linear-gradient(135deg, #00b09b 0%, #96c93d 100%);
    color: white;
    flex: 1;
}

.download-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 176, 155, 0.3);
}

.download-hint {
    font-size: 0.9rem;
    color: #7f8c8d;
    margin-top: 10px;
}

.download-placeholder {
    color: #7f8c8d;
}

.download-placeholder i {
    font-size: 3rem;
    margin-bottom: 15px;
    opacity: 0.5;
}

/* 页脚样式 */
.footer {
    text-align: center;
    padding: 25px;
    background: white;
    border-radius: 20px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    color: #7f8c8d;
}

.footer p {
    margin-bottom: 10px;
}

.footer .tips {
    font-size: 0.9rem;
    color: #6a11cb;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .header h1 {
        font-size: 2.2rem;
        flex-direction: column;
        gap: 10px;
    }
    
    .header .subtitle {
        font-size: 1rem;
    }
    
    .card {
        padding: 20px;
    }
    
    .btn {
        padding: 14px 20px;
        font-size: 1rem;
    }
    
    .action-buttons {
        flex-direction: column;
    }
    
    .download-options {
        flex-direction: column;
    }
}
