/* 红白主题售后系统样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    padding: 20px;
}

.container {
    max-width: 800px;
    margin: 0 auto;
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    overflow: hidden;
}

/* 头部样式 */
.header {
    background: linear-gradient(135deg, #e53935 0%, #c62828 100%);
    color: white;
    padding: 40px 30px;
    text-align: center;
}

.header h1 {
    font-size: 2.5em;
    margin-bottom: 10px;
    font-weight: 700;
}

.header p {
    font-size: 1.1em;
    opacity: 0.95;
}

/* 导航栏 */
.nav {
    background: #fff;
    padding: 20px;
    display: flex;
    justify-content: center;
    gap: 20px;
    border-bottom: 3px solid #e53935;
}

.nav a {
    color: #333;
    text-decoration: none;
    padding: 12px 30px;
    border-radius: 30px;
    font-weight: 600;
    transition: all 0.3s;
    border: 2px solid transparent;
}

.nav a:hover, .nav a.active {
    background: #e53935;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(229, 57, 53, 0.4);
}

/* 表单样式 */
.form-section {
    padding: 40px;
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    margin-bottom: 10px;
    font-weight: 600;
    color: #333;
    font-size: 1.05em;
}

.form-group label .required {
    color: #e53935;
    margin-left: 3px;
}

/* 下拉选择框样式 */
.reason-select-wrapper {
    position: relative;
}

.reason-select {
    width: 100%;
    padding: 15px 45px 15px 20px;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    font-size: 1em;
    font-weight: 600;
    cursor: pointer;
    background: #f8f9fa;
    transition: all 0.3s;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
}

.reason-select:hover {
    border-color: #e53935;
}

.reason-select:focus {
    outline: none;
    border-color: #e53935;
    box-shadow: 0 0 0 4px rgba(229, 57, 53, 0.1);
    background: white;
}

.select-arrow {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #999;
    pointer-events: none;
    transition: all 0.3s;
}

.reason-select:focus + .select-arrow {
    color: #e53935;
    transform: translateY(-50%) rotate(180deg);
}

/* 旧版单选按钮组样式保留（备用） */
.radio-group {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
}

.radio-item {
    position: relative;
}

.radio-item input[type="radio"] {
    position: absolute;
    opacity: 0;
    cursor: pointer;
}

.radio-item label {
    display: block;
    padding: 15px 20px;
    background: #f8f9fa;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s;
    text-align: center;
    font-weight: 600;
    margin-bottom: 0;
}

.radio-item input[type="radio"]:checked + label {
    background: linear-gradient(135deg, #e53935 0%, #c62828 100%);
    color: white;
    border-color: #e53935;
    transform: scale(1.02);
    box-shadow: 0 5px 20px rgba(229, 57, 53, 0.3);
}

.radio-item label:hover {
    border-color: #e53935;
}

/* 提示信息框 */
.reason-tip {
    background: linear-gradient(135deg, #fff3e0 0%, #ffe0b2 100%);
    border-left: 4px solid #ff9800;
    padding: 20px;
    border-radius: 12px;
    margin-top: 15px;
    display: none;
    animation: slideDown 0.3s ease;
}

.reason-tip.show {
    display: block;
}

.reason-tip i {
    color: #ff9800;
    margin-right: 10px;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 输入框样式 */
.form-control {
    width: 100%;
    padding: 15px 20px;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    font-size: 1em;
    transition: all 0.3s;
    font-family: inherit;
}

.form-control:focus {
    outline: none;
    border-color: #e53935;
    box-shadow: 0 0 0 4px rgba(229, 57, 53, 0.1);
}

textarea.form-control {
    min-height: 120px;
    resize: vertical;
}

/* 按钮样式 */
.btn {
    display: inline-block;
    padding: 15px 40px;
    border: none;
    border-radius: 30px;
    font-size: 1.1em;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
    text-align: center;
}

.btn-primary {
    background: linear-gradient(135deg, #e53935 0%, #c62828 100%);
    color: white;
    width: 100%}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(229, 57, 53, 0.4);
}

.btn-secondary {
    background: #f5f5f5;
    color: #333;
    border: 2px solid #ddd;
}

.btn-secondary:hover {
    background: #e53935;
    color: white;
    border-color: #e53935;
}

/* 提示区域 */
.notice {
    background: linear-gradient(135deg, #ffebee 0%, #ffcdd2 100%);
    border: 2px solid #e53935;
    border-radius: 15px;
    padding: 25px;
    margin-top: 30px;
}

.notice-title {
    color: #c62828;
    font-weight: 700;
    font-size: 1.2em;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.notice ul {
    list-style: none;
    padding-left: 0;
}

.notice li {
    padding: 8px 0;
    color: #555;
    padding-left: 25px;
    position: relative;
}

.notice li:before {
    content: "•";
    color: #e53935;
    font-weight: bold;
    position: absolute;
    left: 8px;
    font-size: 1.5em;
    line-height: 1;
}

/* 成功消息 */
.alert {
    padding: 20px 25px;
    border-radius: 15px;
    margin-bottom: 25px;
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

.alert-success {
    background: linear-gradient(135deg, #e8f5e9 0%, #c8e6c9 100%);
    border: 2px solid #4caf50;
    color: #2e7d32;
}

.alert-error {
    background: linear-gradient(135deg, #ffebee 0%, #ffcdd2 100%);
    border: 2px solid #e53935;
    color: #c62828;
}

/* 查询结果 */
.query-result {
    background: #f8f9fa;
    border-radius: 20px;
    padding: 30px;
    margin-top: 30px;
}

.result-header {
    text-align: center;
    margin-bottom: 25px;
}

.order-number {
    font-size: 1.8em;
    font-weight: 700;
    color: #e53935;
    margin-bottom: 10px;
}

/* 状态标签 */
.status-badge {
    display: inline-block;
    padding: 8px 25px;
    border-radius: 30px;
    font-weight: 600;
    font-size: 0.95em;
}

.status-pending {
    background: #fff3e0;
    color: #ef6c00;
}

.status-processing {
    background: #e3f2fd;
    color: #1565c0;
}

.status-completed {
    background: #e8f5e9;
    color: #2e7d32;
}

.status-rejected {
    background: #ffebee;
    color: #c62828;
}

/* 信息列表 */
.info-list {
    background: white;
    border-radius: 15px;
    overflow: hidden;
}

.info-item {
    display: flex;
    padding: 18px 25px;
    border-bottom: 1px solid #eee;
}

.info-item:last-child {
    border-bottom: none;
}

.info-label {
    width: 120px;
    font-weight: 600;
    color: #666;
    flex-shrink: 0;
}

.info-value {
    flex: 1;
    color: #333;
    word-break: break-all;
}

/* 查询表单 */
.query-form {
    max-width: 500px;
    margin: 0 auto;
}

.query-form .form-group {
    display: flex;
    gap: 15px;
}

.query-form .form-control {
    flex: 1;
}

.query-form .btn {
    padding: 15px 30px;
    white-space: nowrap;
}

/* 页脚 */
.footer {
    text-align: center;
    padding: 30px;
    color: #999;
    border-top: 1px solid #eee;
}

/* 响应式 */
@media (max-width: 600px) {
    body {
        padding: 10px;
    }
    
    .container {
        margin: 0;
        border-radius: 12px;
    }
    
    .header {
        padding: 25px 20px;
    }
    
    .header h1 {
        font-size: 1.6em;
    }
    
    .form-section {
        padding: 20px;
    }
    
    .form-group {
        margin-bottom: 20px;
    }
    
    .form-group label {
        font-size: 0.95em;
    }
    
    .form-control {
        padding: 12px 15px;
        font-size: 16px; /* 防止iOS缩放 */
    }
    
    .reason-select {
        padding: 12px 40px 12px 15px;
        font-size: 16px;
    }
    
    .reason-tip {
        padding: 15px;
        font-size: 0.9em;
    }
    
    .radio-group {
        grid-template-columns: 1fr;
    }
    
    .nav {
        flex-direction: row;
        padding: 15px;
        gap: 10px;
    }
    
    .nav a {
        flex: 1;
        padding: 12px 15px;
        font-size: 0.9em;
        text-align: center;
    }
    
    .btn {
        padding: 14px 30px;
        font-size: 1em;
    }
    
    .notice {
        padding: 20px;
        margin-top: 25px;
    }
    
    .notice-title {
        font-size: 1.1em;
    }
    
    .query-form .form-group {
        flex-direction: column;
    }
    
    .info-item {
        flex-direction: column;
        gap: 8px;
    }
    
    .info-label {
        width: 100%;
    }
    
    .alert {
        padding: 15px 20px;
        font-size: 0.95em;
    }
}

/* 加载动画 */
.loading {
    display: none;
    text-align: center;
    padding: 20px;
}

.loading.show {
    display: block;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #e53935;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 15px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}
