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

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
    background: #f5f5f5;
    min-height: 100vh;
    padding: 30px 20px;
}

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

h1 {
    text-align: center;
    color: #333;
    margin-bottom: 30px;
    font-size: 28px;
    font-weight: 600;
}

/* 主内容区域 - 三列布局 */
.main-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 20px;
    align-items: flex-start;
}

.left-panel {
    min-width: 0;
}

/* 中间和右侧容器 */
.content-wrapper {
    position: relative;
    width: 1024px;
    height: 768px;
    background-image: url(/ydtp.jpg?v331);
    /* background-size: cover; */
    /* background-position: center; */
    background-repeat: no-repeat;
}

/* 二维码占位符 */
.qr-placeholder {
    position: absolute;
    top: 192px;
    left: 100px;
    width: 206px;
    height: 206px;
    display: none;
    align-items: center;
    justify-content: center;
}

/* 二维码图片 */
#resultQrcode {
    position: absolute;
    top: 155px;
    left: 60px;
    width: 206px;
    height: 206px;
}

.middle-panel,
.right-panel {
    min-width: 0;
}

/* 卡片样式 */
.form-card,
.result-card,
.example-card {
    background: white;
    border-radius: 16px;
    padding: 25px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    height: 100%;
}

.panel-title {
    font-size: 18px;
    color: #333;
    margin-bottom: 20px;
    font-weight: 600;
}

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

.form-label {
    display: block;
    font-size: 14px;
    color: #666;
    margin-bottom: 8px;
    font-weight: 500;
}

.form-input {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    font-size: 14px;
    transition: all 0.3s ease;
    background: #fafafa;
}

.form-input:focus {
    outline: none;
    border-color: #667eea;
    background: white;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

/* Logo上传框 */
.logo-upload-box {
    background: #fafafa;
    border: 2px dashed #d0d0d0;
    border-radius: 10px;
    padding: 25px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    min-height: 130px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo-upload-box:hover {
    border-color: #667eea;
    background: #f5f7ff;
}

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

.upload-placeholder p {
    color: #999;
    font-size: 13px;
    margin: 0;
}

#logoPreview {
    border-radius: 8px;
    object-fit: contain;
}

/* 生成按钮 */
.generate-btn {
    width: 100%;
    padding: 14px;
    /* background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); */
    color: rgb(10, 10, 10);
    border: none;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.generate-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

.generate-btn:active {
    transform: translateY(0);
}

/* 重置按钮样式 */
.reset-btn {
    width: 100%;
    padding: 14px;
    background: #fff;
    color: #666;
    border: 1px solid #ddd;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.reset-btn:hover {
    background: #f5f5f5;
    border-color: #ccc;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.reset-btn:active {
    transform: translateY(0);
}

.reset-btn svg {
    flex-shrink: 0;
}

/* 结果列表样式 */
.result-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.result-item {
    padding: 12px;
    background: #fafafa;
    border-radius: 10px;
    border: 1px solid #f0f0f0;
}

/* Logo结果项 */
.result-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
    min-height: 120px;
}

.result-icon svg {
    display: block;
}

.result-logo-img {
    width: 120px;
    height: 120px;
    border-radius: 8px;
    object-fit: contain;
}

.result-text {
    text-align: center;
    margin-top: 8px;
}

.result-label {
    font-size: 13px;
    color: #999;
}

/* 标题结果项 */
.result-content {
    text-align: left;
}

.result-title {
    font-size: 15px;
    color: #333;
    margin: 0 0 6px 0;
    font-weight: 600;
    line-height: 1.4;
}

.result-subtitle {
    font-size: 12px;
    color: #666;
    margin: 0;
}

.empty-text {
    color: #999;
    font-style: italic;
}

/* 二维码结果项 */
.result-qr-box {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 380px;
}

.qr-icon {
    color: #ccc;
}

.result-qr-img {
    width: 380px;
    height: 380px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    object-fit: contain;
}

/* 步骤说明 */
.result-steps {
    padding: 5px 0;
}

.steps-heading {
    font-size: 18px;
    color: #333;
    margin: 0 0 15px 0;
    font-weight: bold;
}

.steps-ol {
    margin: 0 0 0 20px;
    padding: 0;
}

.steps-ol li {
    margin-bottom: 10px;
    line-height: 1.8;
    font-size: 15px;
    color: #333;
    font-weight: 600;
}

.steps-ol strong {
    color: #667eea;
    font-weight: bold;
}

/* 操作按钮 */
.result-actions {
    display: flex;
    gap: 8px;
    margin-top: 8px;
}

.btn-download-simple,
.btn-reset-simple {
    flex: 1;
    padding: 10px 14px;
    border: none;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
}

.btn-download-simple {
    background: #667eea;
    color: white;
}

.btn-download-simple:hover:not(:disabled) {
    background: #5568d3;
    transform: translateY(-1px);
}

.btn-download-simple:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.btn-reset-simple {
    background: #f5f5f5;
    color: #666;
    border: 1px solid #e0e0e0;
}

.btn-reset-simple:hover {
    background: #ebebeb;
}

/* 应用标题区域 */
.app-title-box {
    text-align: center;
    margin-bottom: 20px;
}

.app-title {
    font-size: 20px;
    font-weight: bold;
    margin: 0 0 8px 0;
    line-height: 1.5;
    color: #333;
}

.app-name {
    color: #1890ff;
    font-style: normal;
}

.download-text {
    color: #333;
}

.phone-brands {
    font-size: 18px;
    font-weight: bold;
    color: #060606;
    margin: 0;
    line-height: 1.5;
}

/* 示例图片区域 */
.example-image-box {
    width: 100%;
    border-radius: 12px;
    overflow: hidden;
    background: #fafafa;
    border: 1px solid #f0f0f0;
    display: flex;
    justify-content: center;
    align-items: center;
}

.example-image {
    width: auto;
    height: 740px;
    display: block;
    object-fit: contain;
    max-width: 100%;
}

/* 加载动画 */
.loading {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* 响应式设计 */
@media (max-width: 1400px) {
    .content-wrapper {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 1024px) {
    .main-content {
        grid-template-columns: 1fr;
    }
    
    .content-wrapper {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    body {
        padding: 20px 15px;
    }

    h1 {
        font-size: 24px;
        margin-bottom: 25px;
    }

    .form-card,
    .result-card,
    .example-card {
        padding: 20px;
    }

    .main-content {
        gap: 15px;
    }
}

@media (max-width: 480px) {
    body {
        padding: 15px 10px;
    }

    h1 {
        font-size: 20px;
    }

    .form-card,
    .result-card,
    .example-card {
        padding: 18px;
        border-radius: 12px;
    }

    .panel-title {
        font-size: 16px;
    }

    .result-actions {
        flex-direction: column;
    }

    .btn-download-simple,
    .btn-reset-simple {
        width: 100%;
    }
}
