* {
    box-sizing: border-box;
}

body{
    background: linear-gradient(180deg, #f8fafc 0%, #e2e8f0 50%, #cbd5e1 100%);
    min-height: 100vh;
    margin: 0;
    padding: 20px;
    font-family: 'Microsoft YaHei', 'Segoe UI', sans-serif;
}

a:link{text-decoration:none; color:#dc2626;}
a:visited{text-decoration:none; color:#dc2626;}
a:hover{text-decoration:underline; color:#b91c1c;}
a:active{text-decoration:none; color:#dc2626;}

h2 {
    color: #1e293b;
    text-align: center;
    font-size: 32px;
    margin-bottom: 10px;
    font-weight: 700;
}

h3 {
    color: #0369a1;
    font-size: 16px;
    margin: 25px 0 12px 0;
    padding-bottom: 8px;
    border-bottom: 3px solid #0ea5e9;
    font-weight: 600;
}

h4 {
    color: #64748b;
    font-size: 14px;
    margin: 10px 0;
}

h5 {
    color: #dc2626 !important;
}

div {
    max-width: 900px;
    margin: 0 auto;
    background: #ffffff;
    border-radius: 24px;
    padding: 35px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06), 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

input[type="text"] {
    background: #f1f5f9;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    padding: 10px 14px;
    color: #1e293b;
    font-size: 14px;
    transition: all 0.3s ease;
}

input[type="text"]:focus {
    outline: none;
    border-color: #0ea5e9;
    background: #ffffff;
    box-shadow: 0 0 0 4px rgba(14, 165, 233, 0.15);
}

input[type="button"] {
    background: linear-gradient(135deg, #0ea5e9 0%, #0284c7 50%, #0ea5e9 100%);
    background-size: 200% 200%;
    color: white;
    border: none;
    padding: 16px 40px;
    border-radius: 14px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 10px 15px -3px rgba(14, 165, 233, 0.4), 0 4px 6px -2px rgba(14, 165, 233, 0.2);
    position: relative;
    overflow: hidden;
    letter-spacing: 0.5px;
}

input[type="button"]::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
    transition: left 0.5s ease;
}

input[type="button"]:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 20px 25px -5px rgba(14, 165, 233, 0.5), 0 10px 10px -5px rgba(14, 165, 233, 0.3);
    background-position: 100% 100%;
}

input[type="button"]:hover::before {
    left: 100%;
}

input[type="button"]:active {
    transform: translateY(-1px) scale(0.98);
    box-shadow: 0 5px 10px -3px rgba(14, 165, 233, 0.4);
}

textarea {
    background: #f8fafc;
    border: 2px solid #e2e8f0;
    border-radius: 14px;
    padding: 16px;
    color: #1e293b;
    font-size: 14px;
    resize: vertical;
    width: 100%;
    max-width: 100%;
}

textarea:focus {
    outline: none;
    border-color: #0ea5e9;
    background: #ffffff;
    box-shadow: 0 0 0 4px rgba(14, 165, 233, 0.15);
}

ul.dowebok {
    margin: 18px 0;
    padding: 20px;
    background: #f8fafc;
    border-radius: 16px;
    border: 1px solid #e2e8f0;
}

li {
    color: #475569;
    margin: 10px 0;
}

hr {
    border: none;
    height: 2px;
    background: linear-gradient(90deg, transparent, #0ea5e9, transparent);
    margin: 30px 0;
}

/* 移动端适配 */
@media screen and (max-width: 768px) {
    body {
        padding: 10px;
    }
    
    div {
        padding: 20px;
        border-radius: 20px;
    }
    
    h2 {
        font-size: 24px;
    }
    
    h3 {
        font-size: 15px;
        margin: 20px 0 10px 0;
    }
    
    h4 {
        font-size: 13px;
    }
    
    input[type="button"] {
        width: 100%;
        padding: 18px 24px;
        font-size: 17px;
    }
    
    input[type="text"] {
        width: 100%;
        max-width: 200px;
        padding: 12px 14px;
        font-size: 16px; /* 防止iOS缩放 */
    }
    
    textarea {
        width: 100%;
        font-size: 16px; /* 防止iOS缩放 */
    }
    
    ul.dowebok {
        padding: 15px;
    }
    
    li {
        display: block;
        margin: 8px 0;
    }
    
    /* 单选按钮在手机上堆叠显示 */
    input.labelauty + label {
        display: inline-block;
        margin: 4px 2px;
        font-size: 14px;
        padding: 12px 16px;
    }
}

/* 小屏幕手机适配 */
@media screen and (max-width: 480px) {
    div {
        padding: 15px;
        border-radius: 16px;
    }
    
    h2 {
        font-size: 22px;
    }
    
    input[type="text"] {
        max-width: 160px;
    }
}
