* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "PingFang SC", "Microsoft YaHei", sans-serif;
}

body {
    background-color: #f8fafc;
    padding: 15px 15px 80px;
    min-height: 100vh;
}

.container {
    max-width: 1000px;
    margin: 0 auto;
}

/* 头部（纯文字三行居中） */
.new-header {
    display: flex;
    justify-content: center;
    margin-bottom: 30px;
}
.header-text {
    text-align: center;
}
.site-name {
    font-size: 36px;
    font-weight: 700;
    color: #d45c4c;
    line-height: 1.2;
}
.header-slogan {
    font-size: 20px;
    color: #d45c4c;
    background: #fff0f0;
    padding: 5px 20px;
    border-radius: 40px;
    display: inline-block;
    margin: 8px 0;
}
.site-domain {
    font-size: 16px;
    color: #718096;
}

/* 卡片 */
.card {
    background: #fff;
    border-radius: 16px;
    padding: 25px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    margin-bottom: 25px;
}

.card h2 {
    font-size: 18px;
    color: #2d3748;
    margin-bottom: 20px;
    border-left: 4px solid #d45c4c;
    padding-left: 15px;
}

/* 表单 */
.form-group {
    margin-bottom: 20px;
}

label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: #4a5568;
    margin-bottom: 8px;
}

.form-input {
    width: 100%;
    height: 48px;
    padding: 0 16px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-size: 15px;
    outline: none;
    transition: border-color 0.2s;
}

.form-input:focus {
    border-color: #d45c4c;
    box-shadow: 0 0 0 3px rgba(212, 92, 76, 0.1);
}

/* 按钮 */
.btn-primary {
    width: 100%;
    height: 52px;
    background: linear-gradient(90deg, #d45c4c, #e57373);
    color: #fff;
    font-size: 18px;
    font-weight: 600;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: opacity 0.2s;
    margin-top: 10px;
}
.btn-primary:active { opacity: 0.8; }

.btn-secondary {
    height: 44px;
    background: #fff;
    color: #d45c4c;
    font-size: 14px;
    font-weight: 500;
    border: 1px solid #d45c4c;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s;
    text-align: center;
    line-height: 44px;
    padding: 0 20px;
}
.btn-secondary:hover { background: #fef2f2; }
.btn-small {
    height: 36px;
    line-height: 36px;
    font-size: 13px;
    padding: 0 15px;
    display: inline-block;
}

/* 加载动画 */
.loading {
    text-align: center;
    padding: 30px 0;
}
.spinner {
    display: inline-block;
    width: 40px;
    height: 40px;
    border: 4px solid #e2e8f0;
    border-top-color: #d45c4c;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 15px;
}
@keyframes spin { to { transform: rotate(360deg); } }
.loading p { color: #718096; font-size: 14px; }

/* 预览容器 */
.result { margin-top: 25px; }
.result h3 { font-size: 16px; color: #2d3748; margin-bottom: 15px; }
.image-preview-container {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    justify-content: center;
    margin-bottom: 15px;
}
.image-preview-container img {
    max-width: calc(50% - 8px);
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    cursor: pointer;
}

/* 文案区域 */
.copywriting-area {
    margin: 20px 0;
    padding: 15px;
    background: #f8fafc;
    border-radius: 8px;
    border: 1px dashed #d45c4c;
}
.copywriting-area h4 {
    color: #d45c4c;
    margin-bottom: 10px;
    font-size: 14px;
}
.copywriting-content {
    background: #fff;
    padding: 10px;
    border-radius: 6px;
    border: 1px solid #e2e8f0;
    font-size: 14px;
    line-height: 1.6;
    max-height: 200px;
    overflow-y: auto;
    white-space: pre-wrap;
}

/* 按钮组 */
.btn-group {
    display: flex;
    gap: 10px;
    margin: 15px 0;
    flex-wrap: wrap;
    justify-content: center;
}

/* 底部 */
.footer-feedback {
    margin-top: 40px;
    padding: 15px 0;
    text-align: center;
    border-top: 1px solid #e2e8f0;
}
.footer-feedback a {
    color: #d45c4c;
    font-size: 14px;
    text-decoration: none;
    margin: 0 15px;
}
.footer-feedback a:hover { text-decoration: underline; }
.copyright {
    display: block;
    margin-top: 10px;
    font-size: 12px;
    color: #a0aec0;
}

/* 悬浮反馈图标 */
.float-feedback {
    position: fixed;
    right: 20px;
    bottom: 70px;
    width: 50px;
    height: 50px;
    background: linear-gradient(90deg, #d45c4c, #e57373);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(212, 92, 76, 0.3);
    cursor: pointer;
    z-index: 9999;
    transition: transform 0.2s;
}
.float-feedback:hover { transform: scale(1.1); }
.float-feedback img {
    width: 28px;
    height: 28px;
    filter: invert(1);
}

/* 轻提示 */
.toast {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    padding: 12px 24px;
    background: rgba(0,0,0,0.8);
    color: #fff;
    border-radius: 8px;
    z-index: 99999;
    opacity: 0;
    transition: opacity 0.3s;
    pointer-events: none;
}
.toast.show { opacity: 1; }

/* 移动端适配 */
@media (max-width: 768px) {
    .site-name { font-size: 30px; }
    .header-slogan { font-size: 18px; }
    .site-domain { font-size: 14px; }
    .image-preview-container img {
        max-width: 100%;
    }
    .btn-group {
        flex-direction: column;
        align-items: stretch;
    }
    .btn-secondary { width: 100%; }
}
/* 在原有样式基础上增加版式切换样式 */
.layout-switch {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    margin-top: 5px;
}
/* 其他样式与之前相同，此处省略，但实际需包含全部样式 */
/* 建议直接使用之前完整的 style.css 并在末尾添加以上新样式 */