/* 全局样式设置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Microsoft YaHei', 'PingFang SC', 'Helvetica Neue', Arial, sans-serif;
    background-color: #f5f5f5;
    min-height: 100vh;
    color: #333;
    font-size: 0.9rem; /* 调小默认字体大小 */
}

/* 容器样式 */
.container {
    position: relative;
    z-index: 1;
}

/* 标题样式调整 */
h1 {
    font-size: 1.5rem !important; /* 调小主标题字体 */
}

h2 {
    font-size: 1.2rem !important; /* 调小副标题字体 */
}

/* 表单卡片样式 */
#cardForm, #orderForm {
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: box-shadow 0.3s ease; /* 移除transform过渡效果 */
}

#cardForm:hover, #orderForm:hover {
    /* 移除transform浮动效果 */
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* 表单元素样式 */
label {
    font-weight: 500;
    color: #555;
    display: block;
    margin-bottom: 0.5rem;
    font-size: 0.85rem; /* 调小标签字体 */
}

input[type="text"],
input[type="password"],
input[type="tel"],
input[type="date"],
textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 0.85rem; /* 调小输入框字体 */
    transition: all 0.3s ease;
    background: white;
}

input[type="text"]:focus,
input[type="password"]:focus,
input[type="tel"]:focus,
input[type="date"]:focus,
textarea:focus {
    outline: none;
    border-color: #e53e3e;
    box-shadow: 0 0 0 2px rgba(229, 62, 62, 0.1);
}

/* 单选按钮样式 */
input[type="radio"] {
    position: relative;
    width: 16px; /* 调小单选按钮大小 */
    height: 16px; /* 调小单选按钮大小 */
    margin-right: 0.5rem;
    cursor: pointer;
}

/* 按钮样式 - 修改为红色按钮，与示例图一致 */
button {
    width: 100%;
    padding: 0.75rem;
    border: none;
    border-radius: 4px;
    font-size: 0.9rem; /* 调小按钮字体 */
    font-weight: 600;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    background-color: #e53e3e;
}

button:hover {
    background-color: #c53030;
    /* 移除transform浮动效果 */
    box-shadow: 0 2px 6px rgba(229, 62, 62, 0.3);
}

button:active {
    transform: translateY(0);
}

/* 结果提示样式 */
#result {
    border-radius: 4px;
    font-weight: 500;
    text-align: center;
    padding: 1rem;
    margin: 1rem 0;
    font-size: 0.85rem; /* 调小提示信息字体 */
}

/* 温馨提示样式 */
.bg-white.rounded-lg.p-4.text-sm.text-gray-600 {
    border: 1px solid #eee;
    border-radius: 4px;
    margin-top: 1rem;
    font-size: 0.8rem; /* 调小温馨提示字体 */
}

/* 响应式设计 */
@media (max-width: 640px) {
    .container {
        padding: 1rem;
    }
    
    h1 {
        font-size: 1.3rem !important; /* 移动端进一步调小主标题 */
    }
    
    h2 {
        font-size: 1.1rem !important; /* 移动端进一步调小副标题 */
    }
    
    button {
        padding: 0.6rem;
        font-size: 0.85rem; /* 移动端调小按钮字体 */
    }
}