html,
body {
    height: 100%;
    width: 100%;
}

* {
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
}

body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    font-family: "Roboto", "SF Pro SC", "SF Pro Display", "SF Pro Icons", "PingFang SC", BlinkMacSystemFont, -apple-system, "Segoe UI", "Microsoft Yahei", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", "Helvetica", "Arial", sans-serif;
    font-weight: 400;
    margin: 0;
}

a {
    -webkit-transition: all 0.35s;
    -moz-transition: all 0.35s;
    transition: all 0.35s;
    color: #474157;
}

a {
    text-decoration: none;
}

a:hover,
a:focus {
    color: #474157;
}

a:link {
    color: #fff;
}

/* 未访问的链接 */
a:visited {
    color: #fff;
}

/* 已访问的链接 */
a:hover {
    color: #fff;
}

/* 鼠标悬停 */
a:active {
    color: #fff;
}

/* 正在点击 */


hr {
    max-width: 100px;
    margin: 25px auto 0;
    border-width: 1px;
    border-color: rgba(34, 34, 34, 0.1);
}

hr.light {
    border-color: white;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 200;
    letter-spacing: 1px;
}

p {
    font-size: 16px;
    line-height: 1.5;
    margin-bottom: 20px;
}


#mainbody {
    position: relative;
    width: 100%;
    min-height: auto;
    overflow-y: hidden;
    background: #f1f6fd;
    color: #474157;
    height: calc(100vh);
}

#mainbody>.container>.text-center {
    text-align: center;
    padding: 350px 0 50px;
    position: relative;
    height: 100vh;
}

#mainbody>.container>.text-center h1 {
    font-size: 50px;
    font-weight: bold;
    color: #171347
}

#mainbody>.container>.text-center>a {
    background: #fdcc52;
    background: -webkit-linear-gradient(#fdcc52, #fdc539);
    background: linear-gradient(#fdcc52, #fdc539);
    text-transform: uppercase;
    letter-spacing: 2px;
    border-radius: 300px;
    margin-top: 20px;
    padding: 10px 45px;
    font-size: 14px;
    text-decoration: none;
}

@media (max-height: 500px) {
    #mainbody {
        height: inherit;
    }
}

@media (min-width: 768px) {
    .navbar-default {
        background-color: transparent;
        border-color: transparent;
    }

    #mainbody .index-text {
        text-align: left;
    }
}

@media (max-width: 767px) {

    #mainbody>.container>.text-center {


        padding: 130px 0 0 0;
        height: calc(100vh - 261px);
    }

    #mainbody>.container>.text-center>h1 {


        font-size: 50px;
        margin-bottom: 20px;
    }
}

.footer {
    background-color: #222222;
    padding: 20px 0;
    color: rgba(255, 255, 255, 0.3);
    text-align: center;
}

.footer p {
    font-size: 14px;
    margin: 0;
}

.container {
    padding-top: 2rem;
    padding-bottom: 2rem;
    padding-left: 1rem;
    padding-right: 1rem;
    margin-left: auto;
    margin-right: auto;
    width: 100%;
}

.bg-gradient {
    background-color: #e0e7ff;
}

.bg-white {
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    background-color: rgb(255, 255, 255, 1);
    border-radius: 0.75rem;
    overflow: hidden;
}

.bg-blue-500 {
    display: flex;
    background-color: rgb(59, 130, 246, 1);
    justify-content: center;
    align-items: center;
    height: 6rem;
}

.p-6 {
    padding: 1.5rem
}

.text-xl {
    font-size: 1.25rem;
    line-height: 1.75rem;
    color: rgb(31, 41, 55, 1);
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.mb-4 {
    color: rgb(75, 85, 99, 1);
    margin-bottom: 1rem;
    font-size: 16px;
    line-height: 1.5;
}

.px-4 {
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
    padding-left: 1rem;
    padding-right: 1rem;
    background-color: rgb(59, 130, 246, 1);
    border-radius: 0.5rem;
    display: inline-block;
    color: rgb(255, 255, 255, 1);
}

.grid {
    gap: 1.5rem;
    grid-template-columns: repeat(1, minmax(0, 1fr));
    display: grid;
}

.jiantou {
    width: 14px;
    height: 14px;
    margin-left: 0.25rem;
    display: inline-block;
    font: normal normal normal 14px / 1 FontAwesome;
    font-size: inherit;
    text-rendering: auto;
    -webkit-font-smoothing: antialiased;
}

.px-6 {
    padding-top: 1rem;
    padding-bottom: 1rem;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
    display: flex;
    align-items: center;
    border-bottom: 1px solid #ebedf1;
}

.text-gray-800 {
    --tw-text-opacity: 1;
    font-weight: 500;
    word-wrap: break-word;
    word-break: break-all;
    white-space: wrap;
    flex: 1 1 0%;
    color: #000;
}

.pdfimg {
    width: 2rem;
}

.pagination {
    display: flex;
    margin-top: 2rem;
    justify-content: center;
}

.disabled {
    padding: 0.5rem;
    --tw-border-opacity: 1;
    border-color: rgb(229 231 235 / var(--tw-border-opacity, 1));
    border-width: 1px;
    border-radius: 0.5rem;
    text-decoration: inherit;
}

.active {
    --tw-text-opacity: 1;
    color: rgb(255 255 255 / var(--tw-text-opacity, 1));
    padding: 0.5rem;
    --tw-bg-opacity: 1;
    background-color: rgb(59 130 246 / var(--tw-bg-opacity, 1));
    border-radius: 0.5rem;
}

.pagination li {
    --tw-text-opacity: 1;

    padding: 0.5rem;
    --tw-bg-opacity: 1;
    border-width: 1px;
    border-radius: 0.5rem;
    margin: 0 0.3rem;
}



/* 固定头部 */
.header {
    background-color: #2c3e50;
    color: white;
    padding: 12px 15px;
    text-align: center;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header h1 {
    font-size: 18px;
    font-weight: 500;
    flex: 1;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    padding: 0 10px;
}

.header-btn {
    background: none;
    border: none;
    color: white;
    font-size: 16px;
    padding: 5px 10px;
    min-width: 40px;
}

/* PDF内容区域 */
.pdf-container {
    flex: 1;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding: 10px 0;
    background-color: #525659;
    position: relative;
}

.page-container {
    margin: 0 auto 15px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    background-color: white;
    overflow: hidden;
    transition: transform 0.2s ease;
}

canvas {
    display: block;
    width: 100% !important;
    height: auto !important;
}

.loading {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
    color: white;
    font-size: 16px;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 10;
    flex-direction: column;
}

/* 固定底部功能区 */
.footer {
    position: sticky;
    bottom: 0;
    background-color: #2c3e50;
    padding: 10px 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 100;
    box-shadow: 0 -2px 5px rgba(0, 0, 0, 0.1);
}

.footer-btn {
    background-color: #3a5169;
    color: white;
    border: none;
    border-radius: 5px;
    padding: 8px 15px;
    font-size: 14px;
    display: flex;
    align-items: center;
    margin: 0 5px;
}

.footer-btn i {
    font-size: 18px;
    margin-right: 5px;
}

.page-info {
    color: white;
    font-size: 14px;
    padding: 5px 15px;
    background-color: rgba(0, 0, 0, 0.5);
    border-radius: 10px;
    margin: 0 5px;
}

/* 缩放控制 */
.zoom-controls {
    display: flex;
    align-items: center;
    margin-left: auto;
}

.zoom-value {
    color: white;
    font-size: 14px;
    margin: 0 10px;
    min-width: 40px;
    text-align: center;
}

/* 加载动画 */
.spinner {
    width: 30px;
    height: 30px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 1s ease-in-out infinite;
    margin-bottom: 10px;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* 进度条 */
.progress-bar {
    width: 80%;
    max-width: 300px;
    height: 4px;
    background-color: rgba(255, 255, 255, 0.3);
    border-radius: 2px;
    margin-top: 10px;
    overflow: hidden;
}

.progress {
    height: 100%;
    background-color: white;
    width: 0%;
    transition: width 0.3s ease;
}



.register-container {
    width: 90%;
    max-width: 500px;
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    animation: fadeIn 0.5s ease-out;
    margin: auto;
}

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

.register-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 20px;
    text-align: center;
}

.register-header h2 {
    font-size: 24px;
    margin-bottom: 5px;
}

.register-header p {
    font-size: 14px;
    opacity: 0.9;
}

.register-form {
    padding: 30px;
}

.form-group {
    display: flex;
    flex-direction: column;
    margin-bottom: 20px;
}

.form-group label {
    font-size: 14px;
    color: #555;
    margin-bottom: 8px;
    font-weight: 500;
}

.form-group input, .form-group select {
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 14px;
    transition: all 0.3s;
}

.form-group input:focus, .form-group select:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.2);
    outline: none;
}

.phone-verify-group {
    display: flex;
    gap: 10px;
}

.phone-verify-group .phone-input {
    flex: 2;
}

.phone-verify-group .verify-btn {
    flex: 1;
    background-color: #667eea;
    color: white;
    border: none;
    border-radius: 5px;
    padding: 0 15px;
    cursor: pointer;
    font-size: 14px;
    transition: background-color 0.3s;
}

.phone-verify-group .verify-btn:hover {
    background-color: #5a6fd1;
}

.phone-verify-group .verify-btn:disabled {
    background-color: #ccc;
    cursor: not-allowed;
}

.submit-btn {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
    margin-top: 10px;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

.form-footer {
    text-align: center;
    margin-top: 20px;
    font-size: 13px;
    color: #777;
}

.form-footer a {
    color: #667eea;
    text-decoration: none;
}