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

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background-color: #f5f5f5;
    color: #333;
    line-height: 1.6;
}

.container {
    max-width: 640px;
    margin: 0 auto;
    background-color: #fff;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* 表单内容 */
.form-content {
    flex: 1;
    padding: 20px 15px;
    overflow-y: auto;
}

.form-item {
    margin-bottom: 25px;
}

.item-title {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin-bottom: 12px;
}

/* 选项描述 */
.item-description {
    margin-top: 10px;
    padding: 8px 12px;
    background-color: #fff9c4;
    border-radius: 6px;
    font-size: 14px;
    color: #555;
    text-align: center;
    border-left: 3px solid #ffeb3b;
    animation: fadeIn 0.3s ease-in-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-5px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 形状选项 */
.shape-options {
    display: flex;
    justify-content: space-between;
    gap: 8px;
}

.shape-option {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    padding: 8px;
    border-radius: 8px;
    transition: all 0.3s ease;
    background-color: #f9f9f9;
}

.shape-option.active {
    background-color: #fff59d;
    border: 2px solid #ffeb3b;
}

.shape-icon {
    width: 40px;
    height: 40px;
    position: relative;
    overflow: visible;
}

/* 形状1：硬块状（类似坚果） */
.shape-1 {
    background: transparent;
    border: none;
}

.shape-1::before {
    content: '';
    position: absolute;
    width: 10px;
    height: 8px;
    background-color: #8B4513;
    border-radius: 50%;
    top: 8px;
    left: 5px;
    box-shadow: inset 0 -2px 4px rgba(0,0,0,0.2);
}

.shape-1::after {
    content: '';
    position: absolute;
    width: 8px;
    height: 7px;
    background-color: #8B4513;
    border-radius: 50%;
    top: 15px;
    left: 18px;
    box-shadow: inset 0 -2px 4px rgba(0,0,0,0.2);
}

.shape-1 .nut-3 {
    position: absolute;
    width: 9px;
    height: 7px;
    background-color: #8B4513;
    border-radius: 50%;
    top: 22px;
    left: 8px;
    box-shadow: inset 0 -2px 4px rgba(0,0,0,0.2);
}

.shape-1 .nut-4 {
    position: absolute;
    width: 11px;
    height: 9px;
    background-color: #8B4513;
    border-radius: 50%;
    top: 28px;
    left: 22px;
    box-shadow: inset 0 -2px 4px rgba(0,0,0,0.2);
}

/* 形状2：香肠状带裂纹 */
.shape-2 {
    background: transparent;
    border: none;
}

.shape-2::before {
    content: '';
    position: absolute;
    width: 48px;
    height: 18px;
    background: linear-gradient(135deg, #5C4033 0%, #8B6E5A 50%, #5C4033 100%);
    border-radius: 12px 10px 10px 12px;
    top: 11px;
    left: -4px;
    transform: rotate(-3deg);
    box-shadow: inset 0 2px 6px rgba(255,255,255,0.2),
                inset 0 -2px 6px rgba(0,0,0,0.3);
}

.shape-2::after {
    content: '';
    position: absolute;
    width: 46px;
    height: 16px;
    background: repeating-linear-gradient(
        45deg,
        transparent,
        transparent 3px,
        #D2B48C 3px,
        #D2B48C 4px,
        transparent 4px,
        transparent 8px,
        #D2B48C 8px,
        #D2B48C 9px
    );
    border-radius: 10px 8px 8px 10px;
    top: 12px;
    left: -3px;
    transform: rotate(-3deg);
    opacity: 0.6;
}

.shape-2 .ball-3 {
    position: absolute;
    width: 9px;
    height: 8px;
    background-color: #A0522D;
    border-radius: 50%;
    top: 15px;
    left: 12px;
    box-shadow: inset 0 -2px 4px rgba(0,0,0,0.2);
}

.shape-2 .ball-4 {
    position: absolute;
    width: 11px;
    height: 10px;
    background-color: #A0522D;
    border-radius: 50%;
    top: 20px;
    left: 5px;
    box-shadow: inset 0 -2px 4px rgba(0,0,0,0.2);
}

.shape-2 .ball-5 {
    position: absolute;
    width: 10px;
    height: 9px;
    background-color: #A0522D;
    border-radius: 50%;
    top: 27px;
    left: 14px;
    box-shadow: inset 0 -2px 4px rgba(0,0,0,0.2);
}

/* 形状3：香肠状表面光滑 */
.shape-3 {
    background: transparent;
    border: none;
}

.shape-3::before {
    content: '';
    position: absolute;
    width: 45px;
    height: 18px;
    background-color: #CD853F;
    border-radius: 20px;
    top: 12px;
    left: 0px;
    transform: rotate(-5deg);
    box-shadow: inset 0 2px 6px rgba(255,255,255,0.3),
                inset 0 -2px 6px rgba(0,0,0,0.2);
}

/* 形状4：香蕉形、平滑柔软 */
.shape-4 {
    background: transparent;
    border: none;
}

.shape-4::before {
    content: '';
    position: absolute;
    width: 48px;
    height: 20px;
    background-color: #D2691E;
    border-radius: 25px 25px 20px 20px;
    top: 10px;
    left: 0px;
    transform: rotate(-3deg);
    box-shadow: inset 0 3px 8px rgba(255,255,255,0.4),
                inset 0 -3px 8px rgba(0,0,0,0.2);
}

/* 形状5：软块状、边缘清晰 */
.shape-5 {
    background: transparent;
    border: none;
}

.shape-5::before {
    content: '';
    position: absolute;
    width: 35px;
    height: 25px;
    background-color: #DEB887;
    border-radius: 15px 18px 12px 16px;
    top: 8px;
    left: 3px;
    box-shadow: inset 0 2px 6px rgba(255,255,255,0.3),
                inset 0 -2px 6px rgba(0,0,0,0.15);
}

/* 形状6：糊状、边缘破碎 */
.shape-6 {
    background: transparent;
    border: none;
}

.shape-6::before {
    content: '';
    position: absolute;
    width: 30px;
    height: 20px;
    background-color: #F5DEB3;
    border-radius: 12px 15px 10px 13px;
    top: 12px;
    left: 5px;
    opacity: 0.9;
    box-shadow: 0 0 8px rgba(139,69,19,0.3);
}

.shape-6::after {
    content: '';
    position: absolute;
    width: 15px;
    height: 12px;
    background-color: #F5DEB3;
    border-radius: 8px;
    top: 25px;
    left: 18px;
    opacity: 0.8;
    filter: blur(2px);
}

/* 形状7：完全水样 */
.shape-7 {
    background: transparent;
    border: none;
}

.shape-7::before {
    content: '';
    position: absolute;
    width: 25px;
    height: 15px;
    background-color: #FFE4B5;
    border-radius: 10px 12px 8px 11px;
    top: 15px;
    left: 8px;
    opacity: 0.7;
    filter: blur(3px);
}

.shape-7::after {
    content: '';
    position: absolute;
    width: 12px;
    height: 10px;
    background-color: #FFE4B5;
    border-radius: 6px;
    top: 28px;
    left: 20px;
    opacity: 0.6;
    filter: blur(4px);
}

/* 颜色选项 */
.color-options {
    display: flex;
    justify-content: space-between;
    gap: 10px;
}

.color-option {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 3px solid transparent;
}

.color-option.active {
    border-color: #ffeb3b;
    transform: scale(1.1);
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

/* 分量选项 */
.amount-options {
    display: flex;
    gap: 10px;
}

.amount-option {
    flex: 1;
    padding: 12px;
    text-align: center;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s ease;
    background-color: #f9f9f9;
}

.amount-option.active {
    background-color: #fff59d;
    border-color: #ffeb3b;
    font-weight: 600;
}

/* 排便感觉选项 */
.feeling-options {
    display: flex;
    gap: 10px;
}

.feeling-option {
    flex: 1;
    padding: 12px;
    text-align: center;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s ease;
    background-color: #f9f9f9;
}

.feeling-option.active {
    background-color: #fff59d;
    border-color: #ffeb3b;
    font-weight: 600;
}

/* 气味选项 */
.smell-options {
    display: flex;
    justify-content: space-between;
    gap: 10px;
}

.smell-option {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 12px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    cursor: pointer;
    font-size: 24px;
    transition: all 0.3s ease;
    background-color: #f9f9f9;
}

.smell-option.active {
    background-color: #fff59d;
    border-color: #ffeb3b;
}

/* 气味图标 - 使用图片 */
.smell-icon {
    width: 40px;
    height: 40px;
    position: relative;
    margin-bottom: 5px;
}

/* 气味1：包子味 */
.smell-1 {
    background: transparent;
}

/* 气味3：烤串味 */
.smell-3 {
    background: transparent;
}

/* 气味4：榴莲味 */
.smell-4 {
    background: transparent;
}

/* 气味5：臭鱼味 */
.smell-5 {
    background: transparent;
}

/* 气味图片通用样式 */
.smell-img {
    width: 40px;
    height: 40px;
    object-fit: contain;
    display: block;
}

/* 厕纸选项 */
.blood-options {
    display: flex;
    gap: 10px;
}

.blood-option {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 15px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s ease;
    background-color: #f9f9f9;
}

.blood-option.active {
    background-color: #fff59d;
    border-color: #ffeb3b;
    font-weight: 600;
}

/* 厕纸图标 */
.toilet-paper-icon {
    width: 40px;
    height: 40px;
    position: relative;
    margin-bottom: 5px;
}

.toilet-paper-icon::before {
    content: '';
    position: absolute;
    width: 30px;
    height: 36px;
    background-color: #FFFFFF;
    border: 2px solid #CCCCCC;
    border-radius: 4px;
    top: 2px;
    left: 5px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.toilet-paper-icon::after {
    content: '';
    position: absolute;
    width: 24px;
    height: 32px;
    background: linear-gradient(135deg, transparent 0%, transparent 40%, #E8E8E8 40%, #E8E8E8 45%, transparent 45%, transparent 55%, #E8E8E8 55%, #E8E8E8 60%, transparent 60%);
    border-radius: 2px;
    top: 4px;
    left: 8px;
}

/* 厕纸有血 */
.toilet-paper-icon.bloody::before {
    background-color: #FFFFFF;
}

.toilet-paper-icon.bloody::after {
    background: linear-gradient(135deg, transparent 0%, transparent 40%, #E8E8E8 40%, #E8E8E8 45%, transparent 45%, transparent 55%, #E8E8E8 55%, #E8E8E8 60%, transparent 60%);
}

.toilet-paper-icon.blood-stain {
    position: absolute;
    width: 16px;
    height: 16px;
    background: radial-gradient(circle, #FF0000 0%, #DC143C 40%, #8B0000 70%, transparent 100%);
    border-radius: 50%;
    top: 14px;
    left: 12px;
    box-shadow: 0 0 15px rgba(255, 0, 0, 0.8),
                0 0 25px rgba(220, 20, 60, 0.5),
                inset 0 2px 4px rgba(255, 255, 255, 0.3);
    animation: bloodPulse 2s ease-in-out infinite;
}

.toilet-paper-icon.blood-stain::before {
    content: '';
    position: absolute;
    width: 8px;
    height: 8px;
    background-color: #B22222;
    border-radius: 50%;
    top: 2px;
    left: 2px;
    opacity: 0.8;
}

.toilet-paper-icon.blood-stain::after {
    content: '';
    position: absolute;
    width: 5px;
    height: 5px;
    background-color: #FF0000;
    border-radius: 50%;
    top: 6px;
    left: 7px;
    opacity: 0.9;
}

/* 血迹扩散效果 */
.toilet-paper-icon.blood-stain-spread {
    position: absolute;
    width: 20px;
    height: 20px;
    background: radial-gradient(circle, transparent 30%, rgba(220, 20, 60, 0.3) 50%, transparent 70%);
    border-radius: 50%;
    top: 12px;
    left: 10px;
    animation: bloodSpread 3s ease-out infinite;
}

@keyframes bloodPulse {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.1);
        opacity: 0.9;
    }
}

@keyframes bloodSpread {
    0% {
        transform: scale(0.8);
        opacity: 0.6;
    }
    50% {
        transform: scale(1.2);
        opacity: 0.3;
    }
    100% {
        transform: scale(1.5);
        opacity: 0;
    }
}

.blood-mark {
    color: #dc143c;
    font-weight: bold;
}

/* 马桶选项 */
.toilet-options {
    display: flex;
    gap: 10px;
}

.toilet-option {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 15px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s ease;
    background-color: #f9f9f9;
}

.toilet-option.active {
    background-color: #fff59d;
    border-color: #ffeb3b;
    font-weight: 600;
}

/* 马桶图标 */
.toilet-bowl-icon {
    width: 40px;
    height: 40px;
    position: relative;
    margin-bottom: 5px;
}

.toilet-bowl-icon::before {
    content: '';
    position: absolute;
    width: 36px;
    height: 32px;
    background-color: #F5F5F5;
    border: 2px solid #CCCCCC;
    border-radius: 18px;
    top: 4px;
    left: 2px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.toilet-bowl-icon::after {
    content: '';
    position: absolute;
    width: 16px;
    height: 16px;
    background-color: #E0E0E0;
    border: 2px solid #BBBBBB;
    border-radius: 50%;
    top: 12px;
    left: 12px;
}

/* 不粘马桶 - 干净 */
.toilet-bowl-icon.clean::after {
    background-color: #E0E0E0;
    border-color: #BBBBBB;
}

/* 粘马桶 - 有污渍 */
.toilet-bowl-icon.dirty::after {
    background-color: #D2691E;
    border-color: #8B4513;
}

.toilet-bowl-icon.dirty .stain-1 {
    position: absolute;
    width: 10px;
    height: 8px;
    background-color: #CD853F;
    border-radius: 50%;
    top: 18px;
    left: 6px;
    opacity: 0.8;
}

.toilet-bowl-icon.dirty .stain-2 {
    position: absolute;
    width: 8px;
    height: 6px;
    background-color: #DEB887;
    border-radius: 50%;
    top: 22px;
    left: 24px;
    opacity: 0.7;
}

.toilet-bowl-icon.dirty .stain-3 {
    position: absolute;
    width: 6px;
    height: 5px;
    background-color: #A0522D;
    border-radius: 50%;
    top: 26px;
    left: 16px;
    opacity: 0.6;
}

.toilet-icon {
    font-size: 32px;
    margin-bottom: 5px;
}

.toilet-mark {
    color: #8b4513;
    font-weight: bold;
}

/* 腹部感觉选项 */
.belly-options {
    display: flex;
    gap: 8px;
}

.belly-option {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 12px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s ease;
    background-color: #f9f9f9;
}

.belly-option.active {
    background-color: #fff59d;
    border-color: #ffeb3b;
    font-weight: 600;
}

.belly-icon {
    font-size: 28px;
    margin-bottom: 5px;
}

/* 心情选项 */
.mood-options {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.mood-option {
    flex: 1;
    min-width: 80px;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 12px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s ease;
    background-color: #f9f9f9;
}

.mood-option.active {
    background-color: #fff59d;
    border-color: #ffeb3b;
    font-weight: 600;
}

.mood-icon {
    font-size: 28px;
    margin-bottom: 5px;
}

/* 地点选项 */
.location-options {
    display: flex;
    gap: 10px;
}

.location-option {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 12px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s ease;
    background-color: #f9f9f9;
}

.location-option.active {
    background-color: #fff59d;
    border-color: #ffeb3b;
    font-weight: 600;
}

/* 地点图标 */
.location-icon {
    width: 40px;
    height: 40px;
    margin-bottom: 5px;
    position: relative;
}

/* 家图标 */
.home-icon {
    background-color: #FFF5E6;
    border: 2px solid #FF6B6B;
    border-radius: 6px;
    position: relative;
    overflow: hidden;
}

.home-icon::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 12px solid transparent;
    border-right: 12px solid transparent;
    border-bottom: 12px solid #FF6B6B;
}

.home-icon::after {
    content: '';
    position: absolute;
    bottom: 6px;
    left: 50%;
    transform: translateX(-50%);
    width: 8px;
    height: 12px;
    background-color: #5C4033;
    border-radius: 2px 2px 0 0;
}

/* 学校图标 */
.school-icon {
    background-color: #FFE082;
    border: 2px solid #5C4033;
    border-radius: 6px;
    position: relative;
    overflow: hidden;
}

.school-icon::before {
    content: '';
    position: absolute;
    top: 10px;
    left: 8px;
    width: 6px;
    height: 6px;
    background-color: #4A90E2;
    border-radius: 1px;
    box-shadow: 18px 0 0 #4A90E2,
                0 10px 0 #4A90E2,
                18px 10px 0 #4A90E2;
}

.school-icon::after {
    content: '';
    position: absolute;
    bottom: 6px;
    left: 50%;
    transform: translateX(-50%);
    width: 8px;
    height: 10px;
    background-color: #C0392B;
    border-radius: 2px 2px 0 0;
}

/* 公司图标 */
.company-icon {
    background-color: #5C4033;
    border: 2px solid #8B6E5A;
    border-radius: 6px;
    position: relative;
}

.company-icon::before {
    content: '';
    position: absolute;
    top: 6px;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 5px;
    background-color: #8B6E5A;
    border-radius: 5px 5px 0 0;
}

.company-icon::after {
    content: '';
    position: absolute;
    top: 14px;
    left: 50%;
    transform: translateX(-50%);
    width: 24px;
    height: 16px;
    background-color: #8B6E5A;
    border-radius: 2px;
}

/* 公厕图标 - WC样式 */
.wc-icon {
    background-color: #FFFFFF;
    border: 3px solid #003366;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 16px;
    color: #003366;
    letter-spacing: 2px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* 备注输入框 */
.remark-input {
    width: 100%;
    min-height: 100px;
    padding: 12px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 14px;
    font-family: inherit;
    resize: vertical;
    transition: border-color 0.3s ease;
}

.remark-input:focus {
    outline: none;
    border-color: #ffeb3b;
}

/* 底部按钮 */
.footer {
    padding: 15px;
    background-color: #fff;
    border-top: 1px solid #e0e0e0;
    display: flex;
    gap: 10px;
    position: sticky;
    bottom: 0;
}

.btn {
    flex: 1;
    padding: 14px;
    border: none;
    border-radius: 25px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-cancel {
    background-color: #f5f5f5;
    color: #666;
    border: 2px solid #e0e0e0;
}

.btn-cancel:hover {
    background-color: #e0e0e0;
}

.btn-save {
    background: linear-gradient(135deg, #ffeb3b 0%, #ffc107 100%);
    color: #333;
}

.btn-save:hover {
    background: linear-gradient(135deg, #ffc107 0%, #ffb300 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 193, 7, 0.4);
}

.btn-submit {
    background: linear-gradient(135deg, #4CAF50 0%, #45a049 100%);
    color: #fff;
    width: 100%;
}

.btn-submit:hover {
    background: linear-gradient(135deg, #45a049 0%, #3d8b40 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(76, 175, 80, 0.4);
}

.btn-submit:disabled {
    background: linear-gradient(135deg, #cccccc 0%, #bbbbbb 100%);
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* 响应式设计 */
@media (max-width: 480px) {
    .header {
        padding: 8px 12px;
    }

    .form-content {
        padding: 12px;
    }

    .item-title {
        font-size: 15px;
    }

    .shape-options {
        gap: 5px;
    }

    .shape-icon {
        width: 35px;
        height: 35px;
    }

    .shape-4 {
        width: 40px;
        height: 30px;
    }

    .color-option {
        width: 40px;
        height: 40px;
    }

    .amount-option,
    .feeling-option {
        padding: 10px;
        font-size: 13px;
    }

    .smell-option {
        padding: 10px;
        font-size: 20px;
    }

    .blood-option,
    .toilet-option,
    .belly-option,
    .location-option {
        padding: 12px;
        font-size: 13px;
    }

    .blood-icon,
    .toilet-icon,
    .location-icon {
        font-size: 28px;
    }

    .belly-icon,
    .mood-icon {
        font-size: 24px;
    }

    .mood-option {
        min-width: 70px;
        padding: 10px;
        font-size: 13px;
    }

    .footer {
        padding: 12px;
    }

    .btn {
        padding: 12px;
        font-size: 15px;
    }
}

@media (max-width: 360px) {
    .shape-options {
        gap: 3px;
    }

    .shape-icon {
        width: 30px;
        height: 30px;
    }

    .color-option {
        width: 35px;
        height: 35px;
    }

    .amount-option,
    .feeling-option {
        padding: 8px;
        font-size: 12px;
    }

    .smell-option {
        padding: 8px;
        font-size: 18px;
    }
}

/* 触摸优化 */
@media (hover: none) {
    .shape-option:active,
    .color-option:active,
    .amount-option:active,
    .feeling-option:active,
    .smell-option:active,
    .blood-option:active,
    .toilet-option:active,
    .belly-option:active,
    .mood-option:active,
    .location-option:active {
        transform: scale(0.95);
    }

    .btn:active {
        transform: scale(0.98);
    }
}

/* 滚动条样式 */
.form-content::-webkit-scrollbar {
    width: 6px;
}

.form-content::-webkit-scrollbar-track {
    background: #f1f1f1;
}

.form-content::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 3px;
}

.form-content::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}
