/* 表单容器 */
.contact-form {
    max-width: 800px;
    margin: 0 auto;
    background: #fff;
    padding: 3rem;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

/* 表单组 */
.form-group {
    margin-bottom: 2rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.75rem;
    color: #222c37;
    font-size: 1rem;
    font-weight: 500;
    text-align: left;
}

.form-group label.required::before {
    content: '*';
    color: #d5211b;
    margin-right: 0.25rem;
}

/* 输入框样式 */
.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 0.875rem;
    color: #666;
    background-color: #fff;
    text-align: left;
}

.form-group textarea {
    height: 120px;
    resize: none;
}

/* 带提示的输入框 */
.input-with-tip {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.input-with-tip .date-input-wrapper,
.input-with-tip input {
    width: 240px;
    flex: none;
}

.tip-text {
    color: #666;
    font-size: 0.875rem;
    white-space: nowrap;
    flex: 1;
    text-align: left;
}

/* 日期选择器 */
.date-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.date-input {
    padding-right: 2.5rem;
    cursor: pointer;
}

.calendar-icon {
    position: absolute;
    right: 0.75rem;
    color: #666;
    pointer-events: none;
}

/* 充值信息组 */
.recharge-group {
    background: #f9f9f9;
    border: 1px solid #eee;
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

/* 按钮样式 */
.add-time-btn,
.delete-group-btn {
    width: 28px;
    height: 28px;
    min-width: 28px;
    border: none;
    border-radius: 50%;
    color: white;
    font-size: 1.25rem;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s;
}

.add-time-btn {
    background: #4CAF50;
}

.add-time-btn:hover {
    background: #45a049;
}

.delete-group-btn {
    background: #d5211b;
}

.delete-group-btn:hover {
    background: #bf1e18;
}

/* 上传区域 */
.upload-area {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.upload-box {
    width: 120px;
    height: 120px;
    border: 1px dashed #ddd;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.upload-box:hover {
    border-color: #4CAF50;
    background-color: rgba(76, 175, 80, 0.05);
}

.upload-icon {
    font-size: 1.5rem;
    color: #999;
}

/* 提交按钮 */
.submit-btn {
    width: 100%;
    padding: 1rem;
    background-color: #4CAF50;
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.3s;
}

.submit-btn:hover {
    background-color: #45a049;
}

/* 响应式布局 */
@media screen and (max-width: 768px) {
    .contact-form {
        padding: 1.5rem;
    }

    .input-with-tip {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

    .input-with-tip .date-input-wrapper,
    .input-with-tip input {
        width: 100%;
    }

    .tip-text {
        white-space: normal;
    }

    .upload-area {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* 修改文本域的placeholder样式 */
.form-group textarea::placeholder {
    text-align: left;
}

/* 修改输入框的placeholder样式 */
.form-group input::placeholder {
    text-align: left;
}

.delete-group-btn {
    width: 28px;
    height: 28px;
    min-width: 28px;
    border: none;
    border-radius: 50%;
    background: #d5211b;
    color: white;
    font-size: 1.25rem;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s;
}

.delete-group-btn:hover {
    background: #bf1e18;
}

.recharge-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid #eee;
    padding-bottom: 1rem;
}

.recharge-header h3 {
    font-size: 1.125rem;
    color: #222c37;
    font-weight: 500;
}

.add-recharge-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #4CAF50;
    border: none;
    background: none;
    padding: 0;
    cursor: pointer;
    font-size: 1rem;
    transition: color 0.3s;
}

.add-recharge-btn:hover {
    color: #45a049;
}

.add-recharge-btn .add-icon {
    font-size: 1.25rem;
    line-height: 1;
}

.recharge-group-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #eee;
}

.recharge-group-header span {
    font-size: 1rem;
    color: #666;
}

.preview-container {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.preview-box {
    position: relative;
    width: 120px;
    height: 120px;
    border: 1px solid #ddd;
    border-radius: 4px;
    overflow: hidden;
}

.preview-box img,
.preview-box video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.remove-file {
    position: absolute;
    top: 5px;
    right: 5px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: rgba(255, 0, 0, 0.8);
    color: white;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
}

.remove-file:hover {
    background: rgba(255, 0, 0, 1);
}

@media screen and (max-width: 768px) {
    .upload-box,
    .preview-box {
        width: 100px;
        height: 100px;
    }

    .upload-area,
    .preview-container {
        gap: 0.5rem;
    }
}

/* 输入框样式 */
.form-group select {
    padding-right: 2.5rem;  /* 增加右侧内边距，给下拉箭头留出空间 */
    appearance: none;  /* 移除默认的下拉箭头样式 */
    background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23666' d='M6 8.825L1.175 4 2.238 2.938 6 6.7l3.763-3.762L10.825 4z'/%3E%3C/svg%3E") no-repeat right 1rem center;  /* 自定义下拉箭头 */
}

/* 模态弹窗样式 */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    opacity: 1;
    visibility: visible;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-container {
    background-color: #fff;
    padding: 2.5rem;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    max-width: 90%;
    width: 420px;
    text-align: center;
    transform: translateY(20px);
    opacity: 0;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.modal-overlay.active .modal-container {
    transform: translateY(0);
    opacity: 1;
}

.modal-content {
    margin-bottom: 2rem;
    color: #333;
    font-size: 1.125rem;
    line-height: 1.6;
    font-weight: 500;
}

.modal-confirm-btn {
    background-color: #911cd7;
    color: #fff;
    border: none;
    padding: 1rem 2.5rem;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 500;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(145, 28, 215, 0.3);
}

.modal-confirm-btn:hover {
    background-color: #7a18b3;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(145, 28, 215, 0.4);
}

/* 不同类型的弹窗样式 */
.modal-container.success {
    border-top: 4px solid #4CAF50;
}

.modal-container.success .modal-content {
    color: #2e7d32;
}

.modal-container.success .modal-confirm-btn {
    background-color: #4CAF50;
    box-shadow: 0 2px 8px rgba(76, 175, 80, 0.3);
}

.modal-container.success .modal-confirm-btn:hover {
    background-color: #45a049;
    box-shadow: 0 4px 12px rgba(76, 175, 80, 0.4);
}

.modal-container.error {
    border-top: 4px solid #4CAF50;
}

.modal-container.error .modal-content {
    color: #333;
}

.modal-container.error .modal-confirm-btn {
    background-color: #4CAF50;
    box-shadow: 0 2px 8px rgba(76, 175, 80, 0.3);
}

.modal-container.error .modal-confirm-btn:hover {
    background-color: #45a049;
    box-shadow: 0 4px 12px rgba(76, 175, 80, 0.4);
}

.modal-container.info {
    border-top: 4px solid #2196F3;
}

.modal-container.info .modal-content {
    color: #1976d2;
}

.modal-container.info .modal-confirm-btn {
    background-color: #2196F3;
    box-shadow: 0 2px 8px rgba(33, 150, 243, 0.3);
}

.modal-container.info .modal-confirm-btn:hover {
    background-color: #1e88e5;
    box-shadow: 0 4px 12px rgba(33, 150, 243, 0.4);
}

.featured-section {
    min-height: calc(100vh - 400px);
}

.support-header {
    text-align: center;
    margin-bottom: 3rem;
}

.support-header h1 {
    font-size: 3.5rem;
    color: #222c37;
    margin-bottom: 2rem;
}

.feedback-icon {
    width: 160px;
    height: 160px;
    margin: 0 auto;
    position: relative;
}

.feedback-icon.success {
    border-color: #4CAF50;
}

.feedback-icon.error {
    border-color: #f44336;
}

.feedback-icon svg {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    transition: opacity 0.3s ease;
}

.feedback-icon svg.active {
    display: block !important;
}

.file-name-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    background: #eee;
    width: 100%;
    height: 100%;
    text-align: center;
}

.icon-container,
.text-container {
    display: block;
}

.feedback-message {
    text-align: center;
}