* {
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 20px;
    background: linear-gradient(135deg, #E8E5D8 0%, #F5F3ED 50%, #E8E5D8 100%);
    min-height: 100vh;
    font-family: -apple-system, "Segoe UI", "Helvetica Neue", Helvetica, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "WenQuanYi Micro Hei", sans-serif;
}

#container {
    max-width: 600px;
    margin: 40px auto;
    padding: 50px 45px;
    border-radius: 8px;
    background-color: #FAF9F6;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08), 
                0 1px 3px rgba(0, 0, 0, 0.05),
                inset 0 1px 0 rgba(255, 255, 255, 0.6);
    border: 1px solid rgba(0, 0, 0, 0.04);
}

h1 { 
    margin: 0 0 10px 0; 
    text-align: center;
    font-size: 28px;
    font-weight: 400;
    color: #2C2C2C;
    letter-spacing: 0.5px;
}

p, article { 
    margin: 0 0 25px 0;
}

article { 
    font-size: 14px; 
    color: #6B6B6B;
    line-height: 1.8;
    text-align: justify;
    padding: 15px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

label { 
    color: #3A3A3A; 
    font-size: 16px;
    font-weight: 500;
    display: block;
    margin-bottom: 10px;
    letter-spacing: 0.3px;
}

p label { 
    color: #5A5A5A; 
    display: inline-block; 
    margin-right: 8px; 
    font-size: 14px;
    font-weight: 400;
}

p { 
    font-size: 15px; 
    line-height: 32px;
    margin-bottom: 20px;
}

p > * { 
    vertical-align: middle;
}

input#text { 
    width: 100%; 
    box-sizing: border-box; 
    font-size: 15px; 
    margin-bottom: 15px;
    padding: 12px 15px;
    border: 1px solid rgba(0, 0, 0, 0.12);
    border-radius: 4px;
    background-color: #FFFFFF;
    color: #2C2C2C;
    transition: border-color 0.2s, box-shadow 0.2s;
}

input#text:focus {
    outline: none;
    border-color: #8B7355;
    box-shadow: 0 0 0 3px rgba(139, 115, 85, 0.1);
}

input[type=range] { 
    width: 200px; 
    height: 6px;
    border-radius: 3px;
    background: #D8D5CA;
    outline: none;
    -webkit-appearance: none;
    appearance: none;
}

input[type=range]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #8B7355;
    cursor: pointer;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    transition: background 0.2s;
}

input[type=range]::-webkit-slider-thumb:hover {
    background: #6B5745;
}

input[type=range]::-moz-range-thumb {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #8B7355;
    cursor: pointer;
    border: none;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

input[type=color] {
    width: 50px;
    height: 32px;
    border: 1px solid rgba(0, 0, 0, 0.12);
    border-radius: 4px;
    cursor: pointer;
    padding: 2px;
    background: #FFFFFF;
}

input[type=checkbox] {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: #8B7355;
}

button {
    padding: 10px 24px;
    font-size: 14px;
    background-color: #8B7355;
    color: #FFFFFF;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.2s, box-shadow 0.2s;
    margin-left: 10px;
    font-weight: 500;
}

button:hover:not(:disabled) {
    background-color: #6B5745;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

button:disabled {
    background-color: #C8C5BA;
    cursor: not-allowed;
    opacity: 0.6;
}

canvas { 
    box-sizing: border-box; 
    width: 100%; 
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 4px;
    cursor: pointer;
    background-color: #FFFFFF;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    transition: box-shadow 0.2s;
}

canvas:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

footer {
    margin-top: 40px;
    padding: 20px 0;
}

footer a {
    opacity: 0.6;
    transition: opacity 0.2s;
}

footer a:hover {
    opacity: 0.8;
}

footer img {
    filter: grayscale(100%);
    transition: filter 0.2s;
}

footer a:hover img {
    filter: grayscale(0%);
}

