* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    background: linear-gradient(135deg, #c8c8c8 0%, #a8a8a8 50%, #888888 100%);
    min-height: 100vh;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 20px;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin-top: 50px;
    display: flex;
    gap: 30px;
    align-items: flex-start;
}

.message-form {
    flex: 1;
    min-width: 300px;
}

.instructions-container {
    flex: 1;
    min-width: 300px;
    margin-top: 0;
}

.message-form {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.5) 0%, rgba(200, 200, 200, 0.6) 100%);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 15px;
    border: 1px solid rgba(180, 180, 180, 0.5);
    padding: 30px;
    padding-bottom: 50px;
    box-shadow: 
        0 8px 32px 0 rgba(80, 80, 80, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.4),
        inset 0 -1px 0 rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.message-form h2 {
    color: #333;
    margin-bottom: 20px;
    text-align: center;
    font-weight: 600;
}

.title-input {
    width: 100%;
    padding: 12px 15px;
    border: none;
    border-radius: 10px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.7) 0%, rgba(220, 220, 220, 0.8) 100%);
    color: #333;
    font-size: 16px;
    outline: none;
    transition: all 0.3s ease;
    margin-bottom: 15px;
    box-shadow: 
        inset 0 2px 4px rgba(0, 0, 0, 0.1),
        0 1px 0 rgba(255, 255, 255, 0.5);
}

.title-input::placeholder {
    color: rgba(100, 100, 100, 0.7);
}

.title-input:focus {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.85) 0%, rgba(230, 230, 230, 0.9) 100%);
    box-shadow: 
        0 0 20px rgba(150, 150, 150, 0.6),
        inset 0 2px 4px rgba(0, 0, 0, 0.05);
}

.message-form textarea {
    width: 100%;
    min-height: 150px;
    padding: 15px;
    border: none;
    border-radius: 10px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.7) 0%, rgba(220, 220, 220, 0.8) 100%);
    color: #333;
    font-size: 16px;
    resize: vertical;
    outline: none;
    transition: all 0.3s ease;
    box-shadow: 
        inset 0 2px 4px rgba(0, 0, 0, 0.1),
        0 1px 0 rgba(255, 255, 255, 0.5);
}

.message-form textarea::placeholder {
    color: rgba(100, 100, 100, 0.7);
}

.message-form textarea:focus {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.85) 0%, rgba(230, 230, 230, 0.9) 100%);
    box-shadow: 
        0 0 20px rgba(150, 150, 150, 0.6),
        inset 0 2px 4px rgba(0, 0, 0, 0.05);
}

.submit-btn {
    background: linear-gradient(135deg, rgba(180, 180, 180, 0.5) 0%, rgba(150, 150, 150, 0.7) 100%);
    border: 1px solid rgba(130, 130, 130, 0.6);
    color: #333;
    padding: 10px 20px;
    border-radius: 25px;
    cursor: pointer;
    font-size: 16px;
    transition: all 0.3s ease;
    float: right;
    margin-top: 15px;
    box-shadow: 
        0 4px 12px rgba(0, 0, 0, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.3),
        inset 0 -1px 0 rgba(0, 0, 0, 0.1);
}

.submit-btn:hover {
    background: linear-gradient(135deg, rgba(200, 200, 200, 0.6) 0%, rgba(170, 170, 170, 0.8) 100%);
    transform: translateY(-2px);
    box-shadow: 
        0 6px 16px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.4),
        inset 0 -1px 0 rgba(0, 0, 0, 0.1);
}

.submit-btn:active {
    transform: translateY(0);
}

.submit-btn:disabled {
    background: linear-gradient(135deg, rgba(200, 200, 200, 0.5) 0%, rgba(170, 170, 170, 0.7) 100%);
    border: 1px solid rgba(150, 150, 150, 0.6);
    color: #999;
    cursor: not-allowed;
    box-shadow: 
        0 2px 6px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.2),
        inset 0 -1px 0 rgba(0, 0, 0, 0.05);
}

.submit-btn:disabled:hover {
    background: linear-gradient(135deg, rgba(200, 200, 200, 0.5) 0%, rgba(170, 170, 170, 0.7) 100%);
    transform: none;
    box-shadow: 
        0 2px 6px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.2),
        inset 0 -1px 0 rgba(0, 0, 0, 0.05);
}

/* 响应式设计 */
@media (max-width: 768px) {
    .container {
        flex-direction: column;
        margin-top: 30px;
    }
    
    .message-form {
        padding: 20px;
        padding-bottom: 40px;
    }
    
    .message-form textarea {
        min-height: 120px;
    }
    
    .instructions-container {
        margin-top: 30px;
    }
}

/* 滑动验证 */
.slider-container {
    position: relative;
    width: 100%;
    height: 44px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.4) 0%, rgba(200, 200, 200, 0.5) 100%);
    border-radius: 10px;
    margin: 15px 0;
    overflow: hidden;
    user-select: none;
    -webkit-user-select: none;
    box-shadow: 
        inset 0 2px 4px rgba(0, 0, 0, 0.1),
        0 1px 0 rgba(255, 255, 255, 0.3);
}

.slider-bg {
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 0;
    background: linear-gradient(135deg, rgba(170, 170, 170, 0.6) 0%, rgba(140, 140, 140, 0.8) 100%);
    transition: none;
}

.slider-text {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    color: #555;
    text-shadow: 0 1px 0 rgba(255, 255, 255, 0.5);
}

.slider-button {
    position: absolute;
    left: 0;
    top: 0;
    width: 44px;
    height: 44px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(220, 220, 220, 0.9) 100%);
    border-radius: 10px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 
        0 4px 12px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.5),
        inset 0 -1px 0 rgba(0, 0, 0, 0.08);
    transition: all 0.2s ease;
}

.slider-button::before {
    content: '→';
    font-size: 20px;
    color: #666;
}

.slider-button:hover {
    background: rgba(255, 255, 255, 1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.slider-container.success .slider-bg {
    background: linear-gradient(135deg, rgba(100, 200, 100, 0.5) 0%, rgba(80, 180, 80, 0.7) 100%);
}

.slider-container.success .slider-text {
    color: #4caf50;
}

.slider-container.success .slider-button {
    background: #4caf50;
}

.slider-container.success .slider-button::before {
    content: '✓';
    color: white;
}

/* 自定义弹窗 */
.custom-alert {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(255, 255, 255, 0.356);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 5px;
    padding: 20px 25px;
    min-width: 300px;
    max-width: 80%;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
    z-index: 9999;
    user-select: none;
    border: 1px solid rgba(200, 200, 200, 0.2);
    transition: all 0.3s ease;
}

.alert-content {
    text-align: center;
    margin-bottom: 0;
    color: #333;
    font-size: 16px;
    line-height: 1.4;
    font-weight: 400;
}

.alert-close {
    position: absolute;
    top: 10px;
    right: 12px;
    background: rgba(255, 255, 255, 0.6);
    border: 1px solid rgba(200, 200, 200, 0.3);
    font-size: 16px;
    cursor: pointer;
    color: #666;
    padding: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s ease;
}

.alert-close:hover {
    background: rgba(255, 255, 255, 0.8);
    color: #333;
}

.alert-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
    z-index: 9998;
    transition: all 0.3s ease;
}

@media (max-width: 480px) {
    .container {
        margin-top: 20px;
        padding: 10px;
    }
    
    .message-form {
        padding: 15px;
        padding-bottom: 35px;
    }
    
    .message-form h2 {
        font-size: 18px;
    }
    
    .message-form textarea {
        min-height: 100px;
        font-size: 14px;
    }
    
    .submit-btn {
        padding: 8px 16px;
        font-size: 14px;
    }
    
    .slider-container {
        height: 40px;
    }
    
    .slider-button {
        width: 40px;
        height: 40px;
    }
    
    .custom-alert {
        min-width: 260px;
        padding: 18px 22px;
    }
    
    .alert-content {
        font-size: 14px;
    }
    
    .alert-close {
        width: 22px;
        height: 22px;
        font-size: 14px;
    }
}

/* 留言说明模块样式 */
.instructions-container {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.5) 0%, rgba(200, 200, 200, 0.6) 100%);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 15px;
    border: 1px solid rgba(180, 180, 180, 0.5);
    padding: 30px;
    box-shadow: 
        0 8px 32px 0 rgba(80, 80, 80, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.4),
        inset 0 -1px 0 rgba(0, 0, 0, 0.1);
}

.instructions-container h3 {
    color: #333;
    margin-bottom: 25px;
    text-align: center;
    font-weight: 600;
    font-size: 22px;
}

.instruction-section {
    margin-bottom: 25px;
}

.instruction-section:last-child {
    margin-bottom: 0;
}

.instruction-section h4 {
    color: #444;
    margin-bottom: 15px;
    font-size: 17px;
    font-weight: 600;
    display: flex;
    align-items: center;
}

.steps-list,
.notes-list {
    list-style: none;
    padding-left: 0;
}

.steps-list li {
    padding: 12px 0 12px 35px;
    position: relative;
    color: #555;
    line-height: 1.6;
    border-bottom: 1px dashed rgba(150, 150, 150, 0.3);
}

.steps-list li:last-child {
    border-bottom: none;
}

.steps-list li::before {
    content: counter(step);
    counter-increment: step;
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 26px;
    height: 26px;
    background: linear-gradient(135deg, rgba(160, 160, 160, 0.6) 0%, rgba(130, 130, 130, 0.8) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    font-size: 14px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

.steps-list {
    counter-reset: step;
}

.notes-list li {
    padding: 10px 0 10px 28px;
    position: relative;
    color: #555;
    line-height: 1.6;
    border-bottom: 1px dashed rgba(150, 150, 150, 0.3);
}

.notes-list li:last-child {
    border-bottom: none;
}

.notes-list li::before {
    content: '•';
    position: absolute;
    left: 8px;
    top: 50%;
    transform: translateY(-50%);
    color: #999;
    font-size: 20px;
    font-weight: bold;
}

/* 响应式设计 - 说明模块 */
@media (max-width: 768px) {
    .instructions-container {
        padding: 20px;
        margin-top: 15px;
    }
    
    .instructions-container h3 {
        font-size: 19px;
        margin-bottom: 20px;
    }
    
    .instruction-section h4 {
        font-size: 15px;
    }
    
    .steps-list li,
    .notes-list li {
        font-size: 14px;
        padding-left: 30px;
    }
    
    .steps-list li::before {
        width: 22px;
        height: 22px;
        font-size: 12px;
    }
}

@media (max-width: 480px) {
    .instructions-container {
        padding: 15px;
    }
    
    .instructions-container h3 {
        font-size: 17px;
    }
    
    .instruction-section h4 {
        font-size: 14px;
    }
    
    .steps-list li,
    .notes-list li {
        font-size: 13px;
        padding: 8px 0 8px 28px;
    }
}

/* 联系方式模块样式 */
.contact-section {
    margin: 15px 0;
    padding: 15px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.6) 0%, rgba(220, 220, 220, 0.7) 100%);
    border-radius: 10px;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.08);
}

.contact-radio-group,
.contact-type-group {
    display: flex;
    gap: 20px;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

.radio-label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    color: #444;
    font-size: 15px;
    user-select: none;
    -webkit-user-select: none;
}

.radio-label input[type="radio"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: #888;
}

.contact-details {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px dashed rgba(150, 150, 150, 0.4);
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.contact-input {
    width: 100%;
    padding: 12px 15px;
    border: none;
    border-radius: 10px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.7) 0%, rgba(220, 220, 220, 0.8) 100%);
    color: #333;
    font-size: 16px;
    outline: none;
    transition: all 0.3s ease;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1), 0 1px 0 rgba(255, 255, 255, 0.5);
}

.contact-input::placeholder {
    color: rgba(100, 100, 100, 0.7);
}

.contact-input:focus {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.85) 0%, rgba(230, 230, 230, 0.9) 100%);
    box-shadow: 0 0 20px rgba(150, 150, 150, 0.6), inset 0 2px 4px rgba(0, 0, 0, 0.05);
}

.contact-input.error {
    border: 2px solid #ff6b6b;
    background: linear-gradient(135deg, rgba(255, 240, 240, 0.8) 0%, rgba(255, 220, 220, 0.9) 100%);
}

/* 联系方式模块响应式设计 */
@media (max-width: 768px) {
    .contact-section {
        padding: 12px;
    }
    
    .contact-radio-group,
    .contact-type-group {
        gap: 15px;
    }
    
    .radio-label {
        font-size: 14px;
    }
    
    .contact-input {
        font-size: 14px;
        padding: 10px 12px;
    }
}

@media (max-width: 480px) {
    .contact-radio-group,
    .contact-type-group {
        flex-direction: column;
        gap: 10px;
    }
}