/* 基础设置，黑白灰主色调 */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: sans-serif;
}

body {
    background-color: #f0f0f0; /* 浅灰背景 */
    display: flex;
    justify-content: center;
}

/* 模拟手机屏幕 */
.app-container {
    width: 100%;
    max-width: 414px;
    min-height: 100vh;
    background-color: #ffffff; /* 纯白面板 */
    padding: 20px;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
}

/* 标题文字全是深灰或黑色 */
.title {
    text-align: center;
    font-size: 28px;
    margin-top: 40px;
    color: #333;
}
.subtitle {
    text-align: center;
    color: #666;
    margin-bottom: 40px;
    margin-top: 10px;
}
.page-title {
    margin: 20px 0;
    font-size: 22px;
    color: #333;
}

/* =============== 按钮改成黑白灰 =============== */
/* 超大按钮 */
.big-btn {
    width: 100%;
    padding: 20px;
    font-size: 20px;
    font-weight: bold;
    color: white;
    background-color: #444444; /* 深灰色代替原来的绿色 */
    border: none;
    border-radius: 12px;
    margin-bottom: 20px;
    cursor: pointer;
}
.big-btn:active {
    background-color: #222222; /* 点击时变得更黑 */
}

/* 返回按钮 */
.back-btn {
    padding: 10px;
    font-size: 16px;
    background: none;
    border: none;
    color: #555555; /* 深灰色 */
    cursor: pointer;
    font-weight: bold;
}

/* 导出按钮 */
.export-btn {
    width: 100%;
    padding: 15px;
    font-size: 18px;
    background-color: #666666; /* 中灰色代替原来的橙色 */
    color: white;
    border: none;
    border-radius: 8px;
    margin-top: 20px;
    cursor: pointer;
}
.export-btn:active {
    background-color: #444444;
}

/* =============== 表单和框线 =============== */
.preview-box {
    width: 100%;
    height: 300px;
    background-color: #f9f9f9;
    border: 2px dashed #aaa;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    border-radius: 8px;
}

.form-group {
    margin-bottom: 15px;
}
.form-group label {
    display: block;
    margin-bottom: 8px;
    font-size: 18px;
    font-weight: bold;
    color: #333;
}
.form-group input {
    width: 100%;
    padding: 15px;
    font-size: 18px;
    border: 1px solid #ccc;
    border-radius: 8px;
    color: #333;
}

/* =============== 排版样式（纯灰配色） =============== */
.coop-layout {
    width: 90%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.logo-box {
    width: 45%;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    border-radius: 8px;
    font-size: 14px;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}
.public-logo {
    background-color: #f5f5f5; /* 浅灰底色 */
    color: #666;
    border: 2px solid #999;
}
.custom-logo {
    background-color: #fff;
    border: 2px dashed #999;
    color: #666;
}

.company-layout {
    width: 100%;
    height: 100%;
    position: relative;
}
.company-main-logo {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #fff;
    font-weight: bold;
    color: #999;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}
.corner-stamp {
    position: absolute;
    bottom: 10px;
    right: 10px;
    width: 60px;
    height: 60px;
    background-color: rgba(80, 80, 80, 0.9); /* 深灰色印章代替原来的橙色 */
    color: white;
    font-size: 12px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    transform: rotate(-15deg);
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

/* =============== 透明底图适配版（保持图片彩色） =============== */

/* 1. 散户专区底图设置 */
#farmer-page .preview-box {
    background-image: url('image28.png'); /* 更新为 .png 后缀 */
    background-size: contain; 
    background-repeat: no-repeat;
    background-position: center;
    background-color: transparent; 
    border: 2px dashed #aaa; 
}
#farmer-page .preview-box p {
    color: #333; 
    font-weight: bold;
    text-shadow: none; 
    z-index: 10;
}

/* 2. 合作社专区公共标识（左侧固定Logo）设置 */
.public-logo {
    background-image: url('image28.png'); /* 更新为 .png 后缀 */
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    background-color: transparent; 
    border: none;
    color: transparent; 
}