* { 
    margin: 0; 
    padding: 0; 
    box-sizing: border-box; 
    font-family: "Inter", "Microsoft Yahei", "PingFang SC", sans-serif;
}
body { 
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    min-height: 100vh;
    padding: 20px;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding-top: 40px;
    padding-bottom: 40px;
}
.container { 
    max-width: 750px;
    width: 100%;
    background: #ffffff;
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}
.container:hover {
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12);
    transform: translateY(-2px);
}
.container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 6px;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
}
h2 { 
    text-align: center; 
    margin-bottom: 30px; 
    color: #2d3748;
    font-size: 28px;
    font-weight: 700;
    position: relative;
}
h2::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, #667eea, #764ba2);
    border-radius: 2px;
    margin: 10px auto 0;
}
.msg { 
    padding: 16px 20px; 
    border-radius: 12px; 
    margin-bottom: 25px; 
    text-align: center; 
    font-size: 15px;
    font-weight: 500;
    border: 1px solid transparent;
    transition: all 0.3s ease;
    white-space: pre-wrap;
}
.error { 
    background: #fef2f2; 
    color: #dc2626;
    border-color: #fecaca;
}
.success { 
    background: #f0fdf4; 
    color: #16a34a;
    border-color: #bbf7d0;
}
.form-group { 
    margin-bottom: 20px; 
    position: relative;
}
label { 
    display: block; 
    margin-bottom: 8px; 
    color: #4b5563;
    font-weight: 600;
    font-size: 14px;
}
label span {
    color: #ef4444;
    margin-left: 4px;
}
input, select, textarea { 
    width: 100%; 
    padding: 14px 18px; 
    border: 1.5px solid #e5e7eb;
    border-radius: 12px; 
    font-size: 15px;
    color: #1f2937;
    background: #f9fafb;
    transition: all 0.2s ease;
    outline: none;
}
input:focus, select:focus, textarea:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.1);
    background: #ffffff;
}
textarea { 
    resize: vertical; 
    min-height: 100px;
    line-height: 1.6;
}
.file-upload { 
    margin-top: 8px;
    padding: 25px 20px;
    border: 2px dashed #e5e7eb;
    border-radius: 12px;
    text-align: center;
    transition: all 0.2s ease;
    background: #f9fafb;
}
.file-upload:hover {
    border-color: #667eea;
    background: #f5f7ff;
}
.file-upload input[type="file"] {
    display: none;
}
.file-upload .upload-btn {
    display: inline-block;
    padding: 10px 24px;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 8px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    margin-bottom: 15px;
}
.file-upload small {
    color: #9ca3af;
    font-size: 13px;
    display: block;
    margin-bottom: 15px;
}
.preview-container {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    margin-top: 15px;
}
.preview-item {
    width: 100px;
    height: 100px;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid #e5e7eb;
    position: relative;
}
.preview-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.preview-item .remove-btn {
    position: absolute;
    top: 5px;
    right: 5px;
    width: 20px;
    height: 20px;
    background: rgba(220, 38, 38, 0.8);
    color: white;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    font-size: 12px;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.2s ease;
}
.preview-item:hover .remove-btn {
    opacity: 1;
}
.btn-submit { 
    width: 100%; 
    padding: 16px; 
    background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
    color: #fff; 
    border: none; 
    border-radius: 12px; 
    font-size: 17px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 10px;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}
.btn-submit:hover { 
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(102, 126, 234, 0.4);
}
.btn-submit:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
}
.address-select-group {
    display: flex;
    gap: 10px;
    margin-bottom: 10px;
    flex-wrap: wrap;
}
.address-select-group select {
    flex: 1;
    min-width: 120px;
}
.detail-address-input {
    width: 100%;
}
@media (max-width: 768px) {
    body {
        padding: 15px;
        padding-top: 20px;
    }
    .container {
        padding: 25px 20px;
        border-radius: 15px;
    }
    h2 {
        font-size: 24px;
    }
    .form-group {
        margin-bottom: 18px;
    }
    input, select, textarea {
        padding: 12px 16px;
        font-size: 14px;
    }
    .btn-submit {
        padding: 14px;
        font-size: 16px;
    }
    .address-select-group {
        gap: 8px;
    }
    .preview-item {
        width: 80px;
        height: 80px;
    }
}
pre {
    text-align: left;
    font-size: 12px;
    color: #4b5563;
    margin-top: 10px;
    white-space: pre-wrap;
    word-wrap: break-word;
}