body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Microsoft JhengHei", sans-serif;
    background-color: #f4f6f0; /* 溫和的淡米綠色，營造大自然感 */
    background-image: radial-gradient(#e2e8d7 1px, transparent 1px);
    background-size: 20px 20px;
    margin: 0;
    padding: 40px 20px;
    display: flex;
    justify-content: center;
    color: #4a5d4e;
}

.container {
    background: #ffffff;
    padding: 35px 40px;
    border-radius: 24px;
    box-shadow: 0 10px 30px rgba(74, 93, 78, 0.12);
    max-width: 600px;
    width: 100%;
    border: 2px solid #e0e8db;
}

.ghibli-badge {
    display: inline-block;
    background-color: #eaf1e6;
    color: #52795f;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: bold;
    margin-bottom: 12px;
}

h1 {
    color: #354f52;
    font-size: 24px;
    margin-bottom: 6px;
    margin-top: 0;
}

.subtitle {
    color: #6c757d;
    margin-bottom: 25px;
    font-size: 14px;
}

.form-group {
    margin-bottom: 20px;
    text-align: left;
}

label {
    display: block;
    font-weight: bold;
    color: #354f52;
    margin-bottom: 8px;
    font-size: 14px;
}

input[type="password"],
input[type="text"] {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #d8e2dc;
    border-radius: 12px;
    font-size: 14px;
    background-color: #fcfdfa;
    box-sizing: border-box;
    transition: border-color 0.3s;
}

input[type="password"]:focus,
input[type="text"]:focus {
    border-color: #52795f;
    outline: none;
}

.file-upload-wrapper {
    position: relative;
    overflow: hidden;
    display: inline-block;
    width: 100%;
}

input[type="file"] {
    width: 100%;
    padding: 10px;
    background: #f8f9fa;
    border: 2px dashed #b7c4b1;
    border-radius: 12px;
    cursor: pointer;
    font-size: 14px;
}

.file-name {
    margin-top: 6px;
    font-size: 13px;
    color: #8d99ae;
}

.hint {
    margin-top: 6px;
    font-size: 12px;
    color: #8d99ae;
}

.preview {
    display: none;
    width: 100%;
    max-height: 260px;
    object-fit: contain;
    margin-top: 12px;
    border: 2px solid #e0e8db;
    border-radius: 12px;
}

.preview[src] {
    display: block;
}

button:disabled {
    background-color: #a9b9ae;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

button {
    width: 100%;
    background-color: #52795f; /* 森林綠 */
    color: white;
    border: none;
    padding: 14px;
    font-size: 16px;
    font-weight: bold;
    border-radius: 30px;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(82, 121, 95, 0.3);
    transition: all 0.3s ease;
    margin-top: 10px;
}

button:hover {
    background-color: #354f52;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(53, 79, 82, 0.4);
}

.result-section {
    margin-top: 25px;
    text-align: left;
}

.result-box {
    background-color: #f8f9fa;
    border: 2px solid #e0e8db;
    border-radius: 12px;
    padding: 16px;
    min-height: 60px;
    color: #4a5d4e;
    font-size: 14px;
    line-height: 1.5;
    white-space: pre-wrap;
    word-break: break-word;
}
