* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Onest', -apple-system, 'SF Pro Display', 'Segoe UI', Roboto, BlinkMacSystemFont, sans-serif;
}

:root {
    --primary-color: #774DBA;
    --primary-dark: #2a0861;
    --primary-light: #764f94;
    --secondary-color: #00a8ff;
    --accent-color: #ff00a0;
    --text-color: #384863;
    --text-secondary: #64698E;
    --background-color: #f8f9fd;
    --danger-color: #f44336;
    --success-color: #4caf50;
    --warning-color: #ff9800;
    --info-color: #2196f3;
    --font-family: 'Onest', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    --heading-font: 'Onest', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    --card-shadow: 0 4px 6px rgba(54, 10, 125, 0.05), 0 1px 3px rgba(54, 10, 125, 0.1);
    --card-hover-shadow: 0 14px 30px rgba(54, 10, 125, 0.1), 0 10px 20px rgba(54, 10, 125, 0.06);
    --header-shadow: 0 4px 20px rgba(54, 10, 125, 0.05);
    --subtle-border: #f0f0f5;
    --purple-gradient: linear-gradient(135deg, #f0e7ff 0%, #d8e7ff 50%, #ffebfd 100%);
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--background-color);
    color: var(--text-color);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.header {
    width: 100%;
    background-color: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 0;
    position: fixed;
    top: 0;
    z-index: 100;
    box-shadow: var(--header-shadow);
    border-bottom: 1px solid var(--subtle-border);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
    height: 80px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 16px;
    text-decoration: none;
    color: var(--primary-color);
    margin-right: 30px;
}

.logo-icon {
    width: 42px;
    height: 42px;
    filter: drop-shadow(0px 2px 3px rgba(119, 77, 186, 0.2));
}

.logo-text {
    font-size: 30px;
    font-weight: 500;
    letter-spacing: 1px;
    color: #774DBA;
    font-family: 'Onest', sans-serif;
    text-transform: lowercase;
    text-shadow: 0px 2px 4px rgba(119, 77, 186, 0.15);
    position: relative;
}

.logo-text::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, rgba(119, 77, 186, 0), rgba(119, 77, 186, 0.5), rgba(119, 77, 186, 0));
}

.main-navigation {
    display: flex;
    align-items: center;
    gap: 30px;
}

.nav-link {
    font-size: 16px;
    font-weight: 400;
    color: var(--text-secondary);
    text-decoration: none;
    position: relative;
    padding: 30px 0;
    transition: color 0.3s ease;
    margin: 0 10px;
}

.nav-link strong {
    font-weight: 500;
}


.dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-content {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: white;
    min-width: 160px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    z-index: 50;
    padding: 12px 0;
}

.dropdown-content a {
    color: var(--text-secondary);
    padding: 10px 16px;
    text-decoration: none;
    display: flex;
    align-items: center;
    font-size: 14px;
    transition: all 0.2s ease;
}

.dropdown-content a:hover {
    background-color: #f8f9fd;
    color: var(--primary-color);
}

.dropdown-content a i {
    margin-right: 8px;
    font-size: 16px;
    color: var(--primary-light);
}

.dropdown:hover .dropdown-content {
    display: block;
}


.contact-highlight {
    border: 1px solid #f44336;
    color: #f44336;
    border-radius: 6px;
    padding: 6px 12px !important;
    margin-top: 24px;
    margin-bottom: 24px;
}

.contact-highlight:hover {
    background-color: #fff5f5;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary-color);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 26px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--primary-color);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
    transform: scaleX(1);
}

.header-actions {
    display: flex;
    gap: 16px;
    align-items: center;
}

.action-button {
    font-size: 15px;
    padding: 10px 18px;
    border-radius: 30px;
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    background-color: rgba(54, 10, 125, 0.06);
    color: var(--primary-color);
    font-weight: 500;
    text-decoration: none;
}

.action-button:hover {
    background-color: rgba(54, 10, 125, 0.12);
    transform: translateY(-2px);
}

.login-button {
    display: flex;
    align-items: center;
    gap: 8px;
    background: white;
    border: 1px solid #E6E8F0;
    border-radius: 50px;
    padding: 10px 24px;
    font-size: 15px;
    color: var(--text-secondary);
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
}

.login-button:hover {
    border-color: #D1D5E8;
    background-color: #F9FAFC;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.05);
    color: var(--primary-color);
}

.login-button i {
    color: #A7AFCB;
    font-size: 16px;
    transition: all 0.3s ease;
}

.login-button:hover i {
    color: var(--primary-color);
}

.logout-button {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background-color: #F9FAFC;
    border: 1px solid #E6E8F0;
    color: #64698E;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
}

.logout-button:hover {
    background-color: #FEF2F2;
    border-color: #FEE2E2;
    color: #DC2626;
}


.main-content {
    flex: 1;
    width: 100%;
    max-width: 1400px;
    margin: 120px auto 80px auto;
    /* 增加顶部间距，适应新的固定头部 */
    padding: 0 20px;
}


.footer {
    padding: 50px 0 40px;
    background-color: #2a1c47;
    color: #f0f0f5;
    margin-top: auto;
    position: relative;
    width: 100%;
}

.footer-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 40px;
}

.footer-info {
    flex: 1;
    min-width: 260px;
}

.footer-logo {
    margin-bottom: 16px;
}

.footer-logo-text {
    font-size: 26px;
    color: white;
    text-shadow: none;
}

.footer-description {
    color: #c4c4d8;
    margin-bottom: 20px;
    font-size: 15px;
}

.copyright {
    color: #a097b3;
    font-size: 14px;
}

.footer-links {
    display: flex;
    gap: 60px;
    flex-wrap: wrap;
}

.footer-links-column {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-links-column h4 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 8px;
    color: white;
}

.footer-links-column a {
    color: #c4c4d8;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.2s ease;
}

.footer-links-column a:hover {
    color: white;
}


.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.65);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    padding: 20px;
}

.auth-modal {
    background-color: white;
    border-radius: 16px;
    width: 480px;
    max-width: calc(100% - 40px);
    overflow: hidden;
    box-shadow: 0 25px 50px -12px rgba(54, 10, 125, 0.3);
    position: relative;
    margin: auto;
}

.modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.05);
    border: none;
    border-radius: 50%;
    color: var(--text-secondary);
    font-size: 18px;
    cursor: pointer;
    z-index: 10;
    transition: all 0.2s ease;
}

.modal-close:hover {
    background: rgba(0, 0, 0, 0.1);
    color: var(--text-color);
}

.auth-tabs {
    display: flex;
    border-bottom: 1px solid var(--subtle-border);
}

.auth-tab {
    flex: 1;
    text-align: center;
    padding: 16px 0;
    font-size: 16px;
    font-weight: 500;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.3s;
    position: relative;
    border: none;
    background: transparent;
    outline: none;
}

.auth-tab.active {
    color: var(--primary-color);
    font-weight: 600;
}

.auth-tab::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--primary-color);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.auth-tab.active::after {
    transform: scaleX(1);
}

.auth-content {
    position: relative;
    overflow: hidden;
    height: 420px;
    /* 调整高度，适应注册表单的更多字段 */
}

.auth-form {
    padding: 30px;
    position: absolute;
    width: 100%;
    transition: transform 0.3s ease, opacity 0.3s ease;
    opacity: 0;
    pointer-events: none;
    top: 0;
    left: 0;
    right: 0;
    display: flex;
    flex-direction: column;
}

.login-form {
    transform: translateX(-20px);
}

.register-form {
    transform: translateX(20px);
}

.login-form.active,
.register-form.active {
    transform: translateX(0);
    opacity: 1;
    pointer-events: all;
    z-index: 1;
}

.form-title {
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 20px;
    color: var(--primary-color);
}

.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-secondary);
}

.form-control {
    width: 100%;
    padding: 12px 16px;
    font-size: 15px;
    border: 1px solid var(--subtle-border);
    border-radius: 12px;
    background-color: #f8f9fd;
    color: var(--text-color);
    transition: all 0.2s ease;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-light);
    background-color: white;
    box-shadow: 0 0 0 3px rgba(118, 79, 148, 0.1);
}

.form-control.is-invalid {
    border-color: var(--danger-color);
    background-color: #fff8f8;
    box-shadow: none;
}

.form-control::placeholder {
    color: #aab2cc;
}

.input-group {
    position: relative;
}

.input-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--primary-light);
    opacity: 0.8;
}

.input-with-icon {
    padding-left: 42px;
}

.password-toggle {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    cursor: pointer;
    z-index: 1;
    border-radius: 50%;
    transition: background-color 0.2s ease;
}

.password-toggle:hover {
    background-color: rgba(0, 0, 0, 0.05);
}

.password-toggle:focus {
    outline: none;
    background-color: rgba(0, 0, 0, 0.08);
}

.form-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 16px;
    margin-bottom: 24px;
}

.form-check {
    display: flex;
    align-items: center;
    gap: 8px;
}

.form-check-input {
    width: 18px;
    height: 18px;
    accent-color: var(--primary-color);
    cursor: pointer;
}

.form-check-label {
    font-size: 14px;
    color: var(--text-secondary);
    cursor: pointer;
}

.auth-link {
    font-size: 14px;
    color: var(--primary-light);
    text-decoration: none;
    transition: all 0.2s ease;
}

.auth-link:hover {
    color: var(--primary-color);
    text-decoration: underline;
}

.btn {
    padding: 14px 20px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 12px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    text-align: center;
    margin-top: auto;
}

.btn-primary {
    background: linear-gradient(to right, var(--primary-color), #5a1eae);
    color: white;
    box-shadow: 0 4px 12px rgba(54, 10, 125, 0.15);
}

.btn-primary:hover {
    background: linear-gradient(to right, #2a0861, #4c1996);
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(54, 10, 125, 0.25);
}

.btn-primary:active {
    transform: translateY(0);
}

.auth-alternate {
    text-align: center;
    margin-top: 16px;
    font-size: 14px;
    color: var(--text-secondary);
}

.auth-alternate a {
    color: var(--primary-color);
    font-weight: 500;
    text-decoration: none;
}

.auth-alternate a:hover {
    text-decoration: underline;
}


.form-control.is-invalid {
    border-color: var(--danger-color);
    background-color: #fff8f8;
}

.invalid-feedback {
    display: none;
    color: var(--danger-color);
    font-size: 12px;
    margin-top: 5px;
}

.form-control.is-invalid+.invalid-feedback {
    display: block;
}


@media (max-width: 1024px) {
    .main-navigation {
        gap: 20px;
    }

    .nav-link {
        font-size: 15px;
        padding: 25px 0;
    }

    .hero-title {
        font-size: 60px;
    }
}

@media (max-width: 900px) {
    .header-content {
        height: auto;
        padding: 15px 20px;
        flex-wrap: wrap;
    }

    .main-navigation {
        order: 3;
        width: 100%;
        justify-content: center;
        margin-top: 15px;
        gap: 15px;
        overflow-x: auto;
        padding-bottom: 5px;
    }

    .nav-link {
        white-space: nowrap;
        padding: 10px 0;
    }

    .nav-link::after {
        bottom: 6px;
    }

    .hero-title {
        font-size: 48px;
    }

    .hero-description {
        font-size: 18px;
    }

    .main-content {
        margin-top: 160px;
    }
}

@media (max-width: 600px) {
    .header-actions {
        gap: 8px;
    }

    .action-button {
        padding: 8px 12px;
    }

    .action-button span {
        display: none;
    }

    .login-button {
        padding: 8px 16px;
        font-size: 14px;
    }

    .login-button i {
        font-size: 16px;
        margin-right: 4px;
    }

    .action-button i {
        font-size: 18px;
    }



    .main-navigation {
        gap: 10px;
    }

    .nav-link {
        font-size: 14px;
    }

    .footer-content {
        flex-direction: column;
        gap: 30px;
        align-items: center;
    }

    .logo span {
        font-size: 22px;
    }

    .logo-icon {
        width: 28px;
        height: 28px;
    }

    .hero-title {
        font-size: 36px;
    }

    .hero-description {
        font-size: 16px;
    }

    .cta-button {
        padding: 12px 24px;
        font-size: 16px;
    }
}


.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 24px;
    cursor: pointer;
    padding: 8px;
    margin-left: 8px;
}

.user-menu-container {
    position: relative;
    display: none;
}

.user-menu-button {
    display: flex;
    align-items: center;
    gap: 8px;
    background: white;
    border: 1px solid #E6E8F0;
    border-radius: 50px;
    padding: 8px 16px;
    font-size: 15px;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.3s ease;
}

.user-menu-button:hover {
    border-color: #D1D5E8;
    background-color: #F9FAFC;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.05);
    color: var(--primary-color);
}

.user-menu-button i {
    color: var(--primary-light);
    font-size: 18px;
}

.user-menu-button .username {
    max-width: 120px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.user-menu-button .fa-chevron-down {
    font-size: 12px;
    margin-left: 4px;
    transition: transform 0.3s ease;
}

.user-menu-button.active .fa-chevron-down {
    transform: rotate(180deg);
}

.user-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    background-color: white;
    min-width: 200px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    border-radius: 12px;
    z-index: 100;
    padding: 8px 0;
    display: none;
    /* 默认隐藏 */
    border: 1px solid #E6E8F0;
}

.user-dropdown a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 14px;
    transition: all 0.2s ease;
}

.user-dropdown a:hover {
    background-color: #F9FAFC;
    color: var(--primary-color);
}

.user-dropdown a i {
    width: 16px;
    text-align: center;
    color: var(--primary-light);
}

.dropdown-divider {
    height: 1px;
    background-color: #E6E8F0;
    margin: 8px 0;
}

.logout-link {
    color: #f44336 !important;
}

.logout-link:hover {
    background-color: #FEF2F2 !important;
}

.logout-link i {
    color: #f44336 !important;
}


@media (max-width: 900px) {
    .mobile-menu-toggle {
        display: flex;
        order: 3;
    }

    .header-content {
        height: 70px;
        padding: 0 20px;
        position: relative;
    }

    .main-navigation {
        position: absolute;
        top: 70px;
        left: 0;
        width: 100%;
        background-color: white;
        flex-direction: column;
        align-items: flex-start;
        padding: 0;
        margin: 0;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease, padding 0.3s ease;
        box-shadow: 0 10px 15px rgba(0, 0, 0, 0.05);
        z-index: 99;
    }

    .main-navigation.active {
        max-height: 400px;
        padding: 10px 0;
        overflow-y: auto;
    }

    .nav-link {
        width: 100%;
        padding: 15px 20px;
        margin: 0;
        border-bottom: 1px solid var(--subtle-border);
    }

    .nav-link:last-child {
        border-bottom: none;
    }

    .nav-link::after {
        display: none;
    }

    .user-menu-button .username {
        display: none;
    }

    .user-menu-button {
        width: 40px;
        height: 40px;
        padding: 0;
        justify-content: center;
    }

    .user-menu-button .fa-chevron-down {
        display: none;
    }

    .user-dropdown {
        right: 0;
        left: auto;
    }

    .main-content {
        margin-top: 90px;
    }
}

@media (max-width: 600px) {
    .header-actions {
        gap: 8px;
    }

    .user-dropdown {
        width: 250px;
        right: -20px;
    }
}

.layui-laypage .layui-laypage-curr .layui-laypage-em{
    background-color: #774DBA;
}

.layui-input[id$="Date"] {
    padding-left: 30px;
}