:root {
    --primary-gradient: linear-gradient(135deg, #4c8c2b 0%, #6bb936 100%);
    --primary-bg: #fffdf3;
    --accent-color: #4c8c2b;
    --accent-dark: #3a6c21;
    --accent-light: #e9f5e1;
    --text-primary: #333333;
    --text-secondary: rgba(51, 51, 51, 0.85);
    --text-muted: rgba(51, 51, 51, 0.6);
    --glass-bg: rgba(255, 255, 255, 0.95);
    --glass-border: rgba(76, 140, 43, 0.15);
    --glass-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
    --card-radius: 24px;
    --transition-smooth: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-bounce: all 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    --success-color: #44bd32;
    --warning-color: #f39c12;
    --error-color: #e84118;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 8px 30px rgba(0, 0, 0, 0.12);
    --shadow-lg: 0 20px 60px rgba(0, 0, 0, 0.15);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

html {
    scroll-behavior: smooth;
}

body {
    background: var(--primary-bg);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow-x: hidden;
    padding: 20px;
    position: relative;
    background-image:
        radial-gradient(circle at 10% 20%, rgba(108, 185, 54, 0.05) 0%, transparent 20%),
        radial-gradient(circle at 90% 80%, rgba(76, 140, 43, 0.05) 0%, transparent 20%),
        radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.8) 0%, transparent 100%);
}

/* 水波背景效果 */
.water-wave {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    opacity: 0.3;
}

.water-wave canvas {
    display: block;
}

/* 主容器 */
.container {
    width: 100%;
    max-width: 1200px;
    position: relative;
    z-index: 2;
    animation: containerAppear 1s ease-out;
}

/* 头部区域 - 优化后的布局 */
.header {
    display: flex;
    align-items: center;
    gap: 30px;
    margin-bottom: 40px;
    animation: slideInLeft 0.8s ease-out 0.2s both;
    position: relative;
}

.logo-wrapper {
    position: relative;
    flex-shrink: 0;
}

.logo {
    width: 130px;
    height: 140px;
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--glass-border);
    box-shadow: var(--shadow-md);
    position: relative;
    overflow: hidden;
    transform-style: preserve-3d;
    transition: var(--transition-smooth);
}

.logo::before {
    content: "";
    position: absolute;
    inset: -2px;
    background: linear-gradient(45deg,
            rgba(76, 140, 43, 0.3),
            rgba(108, 185, 54, 0.3),
            transparent 70%);
    border-radius: 26px;
    z-index: -1;
    animation: logoGlow 3s ease-in-out infinite alternate;
}

.logo::after {
    content: "";
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.8), transparent);
    transform: rotate(45deg);
    animation: shine 3s infinite linear;
}

.logo:hover {
    transform: translateY(-5px) rotateX(5deg);
    box-shadow: var(--shadow-lg);
}

.logo img {
    width: 100px;
    height: auto;
    filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.1));
    z-index: 1;
    transition: var(--transition-smooth);
}

.logo:hover img {
    transform: scale(1.05);
}

.header-content {
    flex: 1;
    text-align: left;
    position: relative;
}

.title {
    font-size: 2.4rem;
    font-weight: 800;
    color: var(--accent-dark);
    margin-bottom: 10px;
    line-height: 1.2;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    background: linear-gradient(135deg, var(--accent-dark) 0%, var(--accent-color) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
    display: inline-block;
}

.title::after {
    content: "";
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, var(--accent-color), transparent);
    border-radius: 2px;
    transform: scaleX(0);
    transform-origin: left;
    animation: titleUnderline 1s ease-out 1s forwards;
}

.english-title {
    font-size: 0.7rem;
    color: var(--text-muted);
    font-weight: 400;
    margin-bottom: 10px;
    letter-spacing: 1px;
    opacity: 0.9;
    position: relative;
    padding-left: 20px;
}

.english-title::before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 10px;
    height: 2px;
    background: var(--accent-color);
    border-radius: 1px;
}

.slogan {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-size: 1.2rem;
    color: var(--accent-color);
    font-weight: 600;
    padding: 10px 20px;
    background: rgba(76, 140, 43, 0.08);
    border: 1px solid rgba(76, 140, 43, 0.2);
    border-radius: 18px;
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-sm);
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
}

.slogan::before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transition: 0.5s;
}

.slogan:hover::before {
    left: 100%;
}

.slogan:hover {
    background: rgba(76, 140, 43, 0.12);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(76, 140, 43, 0.15);
}

.slogan i {
    font-size: 1.2rem;
    color: var(--accent-dark);
}

/* 内容区域 */
.content-wrapper {
    display: flex;
    gap: 20px;
    animation: slideInUp 0.8s ease-out 0.4s both;
}

.welcome-section,
.login-section {
    flex: 1;
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: var(--card-radius);
    border: 1px solid var(--glass-border);
    box-shadow: var(--glass-shadow);
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
}

.welcome-section::before,
.login-section::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--accent-color), var(--accent-dark));
    z-index: 2;
}

.welcome-section:hover,
.login-section:hover {
    transform: translateY(-10px) scale(1.01);
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.15);
}

/* 修改：左侧欢迎区域 */
.welcome-section {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    overflow: hidden;
    min-height: 500px;
}

.agriculture-slider {
    width: 100%;
    height: 100%;
    position: relative;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1.2s ease-in-out;
    transform: scale(1.1);
}

.slide.active {
    opacity: 1;
    transform: scale(1);
}

.agriculture-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: var(--card-radius);
    filter: brightness(0.9);
}

.image-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    color: white;
    padding: 40px;
    border-bottom-left-radius: var(--card-radius);
    border-bottom-right-radius: var(--card-radius);
    transform: translateY(100px);
    opacity: 0;
    transition: transform 0.8s ease 0.2s, opacity 0.8s ease 0.2s;
}

.slide.active .image-overlay {
    transform: translateY(0);
    opacity: 1;
}

.image-title {
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: 12px;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

.image-subtitle {
    font-size: 1.1rem;
    opacity: 0.9;
    line-height: 1.5;
}

.slider-controls {
    position: absolute;
    bottom: 20px;
    right: 20px;
    display: flex;
    gap: 10px;
    z-index: 3;
}

.slider-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: var(--transition-smooth);
    border: 2px solid transparent;
}

.slider-dot.active {
    background: var(--accent-color);
    transform: scale(1.2);
    border-color: white;
    box-shadow: 0 0 10px rgba(76, 140, 43, 0.5);
}

/* 登录表单 */
.login-section {
    padding: 30px;
    display: flex;
    flex-direction: column;
}

.login-header {
    text-align: center;
    margin-bottom: 20px;
    position: relative;
}

.login-title {
    font-size: 2rem;
    color: var(--accent-dark);
    margin-bottom: 15px;
    font-weight: 700;
    position: relative;
    display: inline-block;
}

.login-title::after {
    content: "";
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: var(--accent-color);
    border-radius: 2px;
}

.login-subtitle {
    color: var(--text-secondary);
    font-size: 1.1rem;
    line-height: 1.6;
    max-width: 400px;
    margin: 0 auto;
}

.login-icon {
    position: absolute;
    top: -25px;
    right: 10px;
    font-size: 4rem;
    color: rgba(76, 140, 43, 0.1);
    animation: floatIcon 3s ease-in-out infinite;
}

.form-group {
    margin-bottom: 20px;
    position: relative;
}

.input-label {
    display: block;
    color: var(--text-primary);
    margin-bottom: 10px;
    font-weight: 600;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: var(--transition-smooth);
}

.input-label i {
    color: var(--accent-color);
    font-size: 1rem;
    transition: var(--transition-smooth);
}

.input-container {
    position: relative;
}

.input-container input {
    width: 100%;
    padding: 20px 25px;
    padding-right: 80px;
    background: rgba(255, 255, 255, 0.95);
    border: 2px solid rgba(76, 140, 43, 0.1);
    border-radius: 16px;
    color: var(--text-primary);
    font-size: 1.1rem;
    transition: var(--transition-smooth);
    box-shadow: var(--shadow-sm);
}

.input-container input:focus {
    outline: none;
    border-color: var(--accent-color);
    background: white;
    box-shadow: 0 0 0 4px rgba(76, 140, 43, 0.15);
    transform: translateY(-2px);
}

.input-container input::placeholder {
    color: var(--text-muted);
    transition: var(--transition-smooth);
}

.input-container input:focus::placeholder {
    opacity: 0.5;
}

.input-actions {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    align-items: center;
    gap: 8px;
}

.input-icon {
    color: var(--text-muted);
    cursor: pointer;
    transition: var(--transition-smooth);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.9);
    box-shadow: var(--shadow-sm);
}

.input-icon:hover {
    color: var(--accent-color);
    background: rgba(76, 140, 43, 0.1);
    transform: scale(1.1);
}

.input-icon:active {
    transform: scale(0.95);
}

.input-icon.hidden {
    display: none;
}

.form-focus-indicator {
    position: absolute;
    bottom: 5px;
    left: 50%;
    transform: translateX(-50%) scaleX(0);
    width: 80%;
    height: 2px;
    background: var(--accent-color);
    border-radius: 1px;
    opacity: 0;
    transition: var(--transition-smooth);
}

.form-group:focus-within .form-focus-indicator {
    transform: translateX(-50%) scaleX(1);
    opacity: 1;
}

/* 验证码部分 */
.verifycode-group {
    display: none;
}

.verifycode-group.show {
    display: block;
    animation: slideInUp 0.5s ease-out;
}

.verifycode-container {
    display: flex;
    gap: 15px;
    align-items: center;
}

.verifycode-input {
    flex: 1;
}

.verifycode-img {
    height: 60px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.95);
    border: 2px solid rgba(76, 140, 43, 0.1);
    cursor: pointer;
    transition: var(--transition-smooth);
    box-shadow: var(--shadow-sm);
}

.verifycode-img:hover {
    border-color: var(--accent-color);
    transform: scale(1.05);
    box-shadow: 0 5px 15px rgba(76, 140, 43, 0.2);
}

.verifycode-img:active {
    transform: scale(0.95);
}



.buttons {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 20px;
}

.btn {
    padding: 20px;
    border: none;
    border-radius: 16px;
    font-size: 1.2rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-smooth);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    letter-spacing: 0.5px;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn:hover::before {
    width: 300px;
    height: 300px;
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent-color), var(--accent-dark));
    color: white;
    box-shadow: 0 10px 30px rgba(76, 140, 43, 0.3);
}

.btn-primary:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(76, 140, 43, 0.4);
}

.btn-primary:active {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(76, 140, 43, 0.3);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.95);
    color: var(--accent-dark);
    border: 2px solid rgba(76, 140, 43, 0.3);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
}

.btn-secondary:hover {
    background: rgba(76, 140, 43, 0.08);
    transform: translateY(-5px);
    border-color: var(--accent-color);
    box-shadow: 0 10px 30px rgba(76, 140, 43, 0.15);
}

.btn-secondary:active {
    transform: translateY(-2px);
}

/* 错误提示 */
.error-message {
    display: none;
    align-items: center;
    gap: 12px;
    padding: 18px;
    background: rgba(232, 65, 24, 0.08);
    border: 1px solid rgba(232, 65, 24, 0.2);
    border-radius: 16px;
    color: var(--error-color);
    margin-bottom: 25px;
    animation: slideIn 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    transform-origin: top;
}

.error-message.show {
    display: flex;
}

/* 通知 */
.notification {
    position: fixed;
    bottom: 40px;
    right: 40px;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 24px 30px;
    border-radius: 20px;
    box-shadow: var(--shadow-lg);
    display: flex;
    align-items: center;
    gap: 18px;
    z-index: 1000;
    transform: translateX(150%) scale(0.9);
    transition: transform 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    max-width: 380px;
    border-left: 5px solid var(--accent-color);
}

.notification.show {
    transform: translateX(0) scale(1);
}

.notification-icon {
    color: var(--accent-color);
    font-size: 1.8rem;
    animation: pulse 2s infinite;
}

.notification-content h4 {
    color: var(--accent-dark);
    margin-bottom: 8px;
    font-weight: 700;
    font-size: 1.2rem;
}

.notification-content p {
    color: var(--text-secondary);
    font-size: 1rem;
    line-height: 1.5;
}

/* 页脚 */
.footer {
    margin-top: 20px;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.95rem;
    padding: 20px;
    animation: fadeIn 1s ease-out 0.6s both;
    position: relative;
}

/* 加载动画 */
.spinner {
    width: 22px;
    height: 22px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 0.8s linear infinite;
}


/* 自定义滚动条 */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.05);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb {
    background: var(--accent-color);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--accent-dark);
}

/* 动画定义 */
@keyframes containerAppear {
    from {
        opacity: 0;
        transform: scale(0.9);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-20px) scale(0.9);
    }

    to {
        opacity: 1;
        transform: translateX(0) scale(1);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes shine {
    0% {
        transform: translateX(-100%) translateY(-100%) rotate(45deg);
    }

    100% {
        transform: translateX(100%) translateY(100%) rotate(45deg);
    }
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

@keyframes titleUnderline {
    to {
        transform: scaleX(1);
    }
}

@keyframes logoGlow {

    0%,
    100% {
        opacity: 0.5;
    }

    50% {
        opacity: 0.8;
    }
}

@keyframes floatIcon {

    0%,
    100% {
        transform: translateY(0) rotate(0deg);
    }

    50% {
        transform: translateY(-10px) rotate(5deg);
    }
}

@keyframes float {
    0% {
        transform: translate(0, 0) rotate(0deg);
    }

    33% {
        transform: translate(30px, 50px) rotate(120deg);
    }

    66% {
        transform: translate(-20px, 80px) rotate(240deg);
    }

    100% {
        transform: translate(0, 0) rotate(360deg);
    }
}

@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.1);
    }
}

/* 响应式设计 */
@media (max-width: 1200px) {
    .container {
        max-width: 1000px;
    }

    .title {
        font-size: 2.4rem;
    }

    .slogan {
        font-size: 1.2rem;
    }
}

@media (max-width: 1024px) {
    .content-wrapper {
        flex-direction: column;
        gap: 20px;
    }

    .title {
        font-size: 2.2rem;
    }

    .welcome-section,
    .login-section {
        width: 100%;
        min-height: 400px;
    }
}

@media (max-width: 768px) {
    body {
        padding: 15px;
    }

    .header {
        flex-direction: column;
        text-align: center;
        gap: 25px;
        margin-bottom: 30px;
    }

    .header-content {
        text-align: center;
    }

    .logo {
        width: 120px;
        height: 140px;
    }

    .logo img {
        width: 80px;
    }

    .title {
        font-size: 2rem;
    }

    .english-title {
        font-size: 0.95rem;
        padding-left: 0;
    }

    .english-title::before {
        display: none;
    }

    .slogan {
        font-size: 1.1rem;
        padding: 12px 24px;
    }

    .welcome-section {
        display: none;
    }

    .login-section {
        padding: 35px 30px;
    }

    .verifycode-container {
        flex-direction: column;
        gap: 12px;
    }

    .input-label {
        font-size: 1rem;
    }

    .input-container input {
        font-size: 1rem;
        padding: 18px 22px;
    }

    .btn {
        font-size: 1.1rem;
        padding: 18px;
    }

    .notification {
        right: 20px;
        left: 20px;
        max-width: none;
        bottom: 20px;
    }
}

@media (max-width: 480px) {
    .title {
        font-size: 1.8rem;
    }

    .english-title {
        font-size: 0.85rem;
    }

    .slogan {
        font-size: 1rem;
        padding: 10px 20px;
    }

    .login-section {
        padding: 30px 25px;
    }

    .login-title {
        font-size: 1.8rem;
    }

    .login-subtitle {
        font-size: 1rem;
    }

    .input-container input {
        padding: 16px 20px;
    }

    .btn {
        font-size: 1rem;
        padding: 16px;
    }
}

@media (max-height: 700px) {
    body {
        align-items: flex-start;
        padding-top: 30px;
        padding-bottom: 30px;
    }
}