:root {
    --primary-color: #4a6cf7;
    --secondary-color: #0f172a;
    --light-color: #f8fafc;
    --dark-color: #1e293b;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: var(--dark-color);
    background-color: #f9fafb;
}
       
::-webkit-scrollbar{
	width:5px;
}
::-webkit-scrollbar-track{
	background-color:#f4f6fc;
}
::-webkit-scrollbar-thumb{
	background-color:#e1e1e1;
/* 	background-color:#bdbcbc; */
	border-radius:5px;
}
::-webkit-scrollbar-thumb:hover{
	background-color:#858282;
}       


.topHead{
	position: relative;
}
.topHeadCaozuo{
	display:none;	
	position: absolute;
    top: 40px;
    left: 60px;
    width: 110px;
    font-size: 15px;
    border: 1px solid gray;
    text-align: center;
    box-shadow: 0 0 8px rgba(255, 255, 255, 0.8); /* 白色光晕 */
  	border-radius: 5px; /* 圆角 */
  	z-index:2002;
  	background-color:#fff;
}

.topHeadCaozuoDiv{
	padding:8px;
	cursor:pointer;
}

/* 示例图片区域 */
.examples-section {
    margin-top: 3rem;
}

.examples-header {
    text-align: center;
    margin-bottom: 1.5rem;
}

.examples-header h3 {
    font-size: 1.25rem;
    font-weight: 600;
}

.examples-container {
    display: flex;
    gap: 1rem;
    overflow-x: auto;
    padding-bottom: 2rem;
    scrollbar-width: thin;
}

.example-item {
    flex: 0 0 auto;
    width: 150px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    transition: transform 0.3s ease;
    position: relative;
}

.example-item:hover {
    transform: translateY(-5px);
}

.example-image {
    width: 100%;
    height: 100px;
    object-fit: cover;
}

.example-caption {
    padding: 0.75rem;
    text-align: center;
    font-size: 0.875rem;
    background-color: white;
}

.example-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(74, 108, 247, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.example-item:hover .example-overlay {
    opacity: 1;
}

.aiUploadLeft{
	width: 320px;
	height:680px;
}

.aiUploadRight{
	flex-grow: 1; 
	margin-left:2rem;
	height:680px;
}

/* 立即试用区域 */
.try-now {
    padding: 5rem 0;
    background-color: #f8fafc;
}

.try-container {
	/* display:none; */
    background-color: white;
    border-radius: 16px;
    box-shadow: 0px 0px 25px 5px rgba(0, 0, 0, 0.05);
    padding: 3rem 3rem 1rem 3rem;
    max-width: 100%;
    margin: 0 auto;
}
.try-container-image {
	display:none;
    background-color: white;
    border-radius: 16px;
    box-shadow: 0px 0px 25px 5px rgba(0, 0, 0, 0.05);
    padding: 3rem 3rem 1rem 3rem;
    max-width: 100%;
    margin: 0 auto;
}

.try-header {
    text-align: center;
    margin-bottom: 2rem;
}

.try-header h2 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.try-header p {
    color: #64748b;
}

.upload-area {
    border: 2px dashed #e2e8f0;
    border-radius: 12px;
    padding: 3rem;
    text-align: center;
    transition: all 0.3s ease;
    margin-bottom: 2rem;
    cursor: pointer;
}

.upload-area:hover {
    border-color: var(--primary-color);
    background-color: rgba(74, 108, 247, 0.03);
}

.upload-icon {
    font-size: 3rem;
    color: #94a3b8;
    margin-bottom: 1.5rem;
    transition: all 0.3s ease;
}

.upload-area:hover .upload-icon {
    color: var(--primary-color);
}

.upload-area h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.upload-area p {
    color: #64748b;
    margin-bottom: 1.5rem;
}

.upload-btn {
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.upload-btn:hover {
    background-color: #3a5bdf;
}

#fileInput {
    display: none;
}

.subject-selector {
    margin-top: 2rem;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
}

.subject-selector label {
    display: block;
    font-weight: 500;
    margin-bottom: 0.5rem;
    text-align: left;
}


/* 图片浏览区 */
.image-preview {
    height:500px;
    overflow-y:auto;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    /* display: none; */
}

.image-preview.active {
    display: block;
}

.preview-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.3rem;
}

.preview-header h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin: 0;
}

.remove-image {
    background: none;
    border: none;
    color: #ef4444;
    cursor: pointer;
    font-size: 0.9rem;
    align-items: center;
}

.remove-image i {
    margin-right: 0.25rem;
}

.preview-container {
    padding: 1.5rem;
    text-align: center;
    min-height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.preview-image {
    max-width: 100%;
    /* max-height: 300px; */
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.image-info {
    font-size: 0.9rem;
    color: #64748b;
    padding:0rem 1.5rem 0.5rem 1.5rem ;
}

/* 批改按钮区域 */
.correction-area {
    text-align: center;
    height:120px;
}

.correction-area.active {
    display: block;
}

.correction-status {
	padding-top:50px;
    font-size: 1.1rem;
    font-weight: 600;
    display: none;
}

.correction-status.active {
    display: block;
    color: #10b981;
}

.correction-status a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    margin-left: 0.5rem;
}

.correction-status a:hover {
    text-decoration: underline;
}

.loading-spinner {
    display: inline-block;
    /* display: none; */
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255,255,255,.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 1s ease-in-out infinite;
    margin-right: 0.5rem;
}

.mt-2-loadding{
	margin:0px auto;
}

.showPointer{
	cursor:pointer;	
}

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0,0,0,0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.modal-content {
    position: relative;
    display: flex;
    flex-direction: column;
    width: 500px !important;
    min-height: 500px !important;
    border-radius: 20px !important;
    background-color: #fff !important;
    color: var(--bs-modal-color);
    pointer-events: auto;
    background-color: var(--bs-modal-bg);
    background-clip: padding-box;
    border: var(--bs-modal-border-width) solid var(--bs-modal-border-color);
    border-radius: var(--bs-modal-border-radius);
    outline: 0;
}
