/* 全能签软件源大全 - 样式文件 (添加上传功能) */
/* 文件名: style.css */
/* 最后更新: 2024-06-24 */

/* 基础样式 - 白色主题 */
:root {
    --primary: #4361ee;
    --primary-dark: #3a56d4;
    --secondary: #4cc9f0;
    --success: #4ade80;
    --error: #f87171;
    --warning: #fbbf24;
    --text: #334155;
    --text-light: #64748b;
    --text-lighter: #94a3b8;
    --border: #e2e8f0;
    --bg: #f8fafc;
    --card-bg: #ffffff;
    --shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    --shadow-hover: 0 5px 15px rgba(0, 0, 0, 0.08);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Noto Sans SC', sans-serif;
}

body {
    background-color: #f8fafc;
    color: var(--text);
    line-height: 1.6;
    min-height: 100vh;
    padding: 20px;
    background-image: linear-gradient(135deg, #f5f7fa 0%, #e4e7f1 100%);
    font-size: 14px;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 15px;
}

.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
    margin-bottom: 15px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo i {
    font-size: 2.2rem;
    color: var(--primary);
    background: rgba(67, 97, 238, 0.1);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo-text h1 {
    color: var(--text);
    font-size: 1.6rem;
    font-weight: 700;
    margin-bottom: 5px;
}

.logo-text p {
    color: var(--text-light);
    font-size: 0.95rem;
    font-weight: 400;
}

.content-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 30px;
}

.info-panel {
    flex: 1;
    min-width: 300px;
    background: var(--card-bg);
    border-radius: 14px;
    padding: 20px;
    box-shadow: var(--shadow);
    width: 45%;
}

.info-panel h2 {
    color: var(--text);
    font-size: 1.3rem;
    margin-bottom: 18px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--border);
    display: flex;
    align-items: center;
    gap: 10px;
}

/* 重新设计的申请说明部分 */
.instructions-grid {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.instruction-row {
    display: flex;
    gap: 12px;
}

.instruction-item {
    flex: 1;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 15px;
    background: rgba(67, 97, 238, 0.03);
    border-radius: 10px;
    transition: all 0.3s ease;
    border: 1px solid var(--border);
}

.instruction-item:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
    border-color: rgba(67, 97, 238, 0.2);
}

.icon {
    width: 40px;
    height: 40px;
    flex-shrink: 0;
    background: rgba(67, 97, 238, 0.1);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.icon i {
    font-size: 1.1rem;
    color: var(--primary);
}

.instruction-content h3 {
    color: var(--text);
    font-size: 0.95rem;
    margin-bottom: 5px;
    font-weight: 600;
}

.instruction-content p {
    color: var(--text-light);
    font-size: 0.8rem;
    line-height: 1.5;
    margin: 0;
}

.form-container {
    flex: 1;
    min-width: 300px;
    background: var(--card-bg);
    border-radius: 14px;
    overflow: hidden;
    box-shadow: var(--shadow);
    width: 55%;
}

.form-header {
    background: var(--primary);
    color: white;
    padding: 20px 25px;
}

.form-header h2 {
    margin: 0;
    font-size: 1.3rem;
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
}

.form-header p {
    margin-top: 6px;
    font-size: 0.95rem;
    opacity: 0.9;
}

.form-body {
    padding: 20px;
}

.alert {
    padding: 15px;
    border-radius: 12px;
    margin-bottom: 18px;
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.alert i {
    font-size: 1.5rem;
    margin-top: 3px;
}

.alert.error {
    background: rgba(248, 113, 113, 0.08);
    border: 1px solid rgba(248, 113, 113, 0.3);
}

.alert.error i {
    color: var(--error);
}

.alert.success {
    background: rgba(74, 222, 128, 0.08);
    border: 1px solid rgba(74, 222, 128, 0.3);
}

.alert.success i {
    color: var(--success);
}

.alert h3 {
    font-size: 1.1rem;
    margin-bottom: 4px;
}

.alert p {
    font-size: 0.9rem;
    color: var(--text-light);
}

.form-group {
    margin-bottom: 18px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: var(--text);
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.95rem;
}

.form-group label .required {
    color: var(--error);
    font-size: 1.1rem;
    line-height: 1;
}

.form-control {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: 0.95rem;
    transition: all 0.3s;
    background: white;
    color: var(--text);
}

.form-control:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(67, 97, 238, 0.15);
}

.hint {
    color: var(--text-light);
    font-size: 0.8rem;
    margin-top: 6px;
    padding-left: 5px;
}

.btn-primary {
    background: var(--primary);
    color: white;
    border: none;
    padding: 14px 25px;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    justify-content: center;
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(67, 97, 238, 0.3);
}

.footer {
    text-align: center;
    color: var(--text-light);
    font-size: 0.85rem;
    padding: 25px 0;
    border-top: 1px solid var(--border);
    margin-top: 25px;
}

.footer a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
}

.footer a:hover {
    text-decoration: underline;
}

/* 图片上传选项样式 */
.icon-upload-options {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 8px;
}

.upload-option {
    display: flex;
    align-items: center;
    gap: 10px;
}

.upload-option input[type="radio"] {
    margin-right: 5px;
}

.upload-option label {
    font-weight: 500;
    color: var(--text);
    font-size: 0.95rem;
}

.file-upload {
    position: relative;
    flex: 1;
}

.file-input {
    position: absolute;
    left: -9999px;
    opacity: 0;
}

.file-label {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 15px;
    background: #f0f5ff;
    border: 1px dashed #4361ee;
    border-radius: 8px;
    color: #4361ee;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
}

.file-label:hover {
    background: #e0ebff;
    border-color: var(--primary-dark);
}

.file-label i {
    font-size: 1.2rem;
}

/* 响应式设计 */
@media (max-width: 1100px) {
    .container {
        max-width: 100%;
    }
}

@media (max-width: 992px) {
    .info-panel, .form-container {
        width: 100%;
    }
    
    .instruction-row {
        flex-direction: column;
    }
}

@media (max-width: 768px) {
    .content-wrapper {
        flex-direction: column;
        gap: 20px;
    }
    
    .header {
        flex-direction: column;
        text-align: center;
        gap: 15px;
        padding: 20px 0;
    }
    
    .logo {
        justify-content: center;
        flex-direction: column;
        text-align: center;
    }
    
    .info-panel, .form-container {
        padding: 18px;
    }
    
    .info-panel h2, .form-header h2 {
        font-size: 1.2rem;
    }
    
    .form-header {
        padding: 18px 20px;
    }
    
    .form-body {
        padding: 18px;
    }
    
    .upload-option {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 480px) {
    body {
        padding: 15px;
    }
    
    .instruction-item {
        padding: 12px;
    }
    
    .icon {
        width: 36px;
        height: 36px;
    }
    
    .icon i {
        font-size: 1rem;
    }
    
    .form-group label {
        font-size: 0.9rem;
    }
    
    .form-control {
        font-size: 0.9rem;
        padding: 10px 14px;
    }
    
    .btn-primary {
        padding: 12px 18px;
        font-size: 0.9rem;
    }
    
    .file-label {
        padding: 8px 12px;
        font-size: 0.9rem;
    }

/* 下拉菜单样式 */
select.form-control {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%234361ee' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 15px center;
    background-size: 16px;
    padding-right: 40px;
    cursor: pointer;
}

/* 隐藏单选按钮 */
.upload-option input[type="radio"] {
    display: none;
}

}