:root {
    --primary-color: #4F46E5;
    --primary-light: #EEF2FF;
    --primary-dark: #4338CA;
    --bg-color: #F3F4F6;
    --sidebar-bg: #1F2937;
    --sidebar-hover: #374151;
    --text-primary: #111827;
    --text-secondary: #6B7280;
    --border-color: #E5E7EB;
    --white: #FFFFFF;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --radius-sm: 6px;
    --radius-md: 8px;
    --radius-lg: 12px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 14px;
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--bg-color);
    display: flex;
    min-height: 100vh;
    opacity: 1;
    transition: opacity 0.4s ease;
}

body.page-leaving {
    opacity: 0;
}

body.page-leaving .main-content {
    transform: translateY(20px);
    opacity: 0;
}

body.page-leaving .sidebar {
    transform: translateX(-100%) !important;
}

.login-body {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #4F46E5 0%, #7C3AED 100%);
}

.login-container {
    display: flex;
    width: 900px;
    height: 500px;
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
}

.login-left {
    flex: 1;
    padding: 48px;
    background: linear-gradient(180deg, #1F2937 0%, #111827 100%);
    color: var(--white);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.logo-section {
    text-align: center;
}

.logo-icon {
    width: 64px;
    height: 64px;
    background: var(--primary-color);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
    font-size: 28px;
}

.logo-section h1 {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 8px;
}

.logo-section p {
    color: rgba(255, 255, 255, 0.6);
}

.features {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-sm);
}

.feature-item i {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
}

.feature-item span {
    font-size: 13px;
}

.login-right {
    flex: 1;
    padding: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.login-form {
    width: 100%;
    max-width: 320px;
}

.login-form h2 {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 8px;
}

.login-form p {
    color: var(--text-secondary);
    margin-bottom: 32px;
}

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

.form-group label {
    display: block;
    font-size: 13px;
    font-weight: 500;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.input-wrapper i {
    position: absolute;
    left: 14px;
    color: var(--text-secondary);
    font-size: 14px;
}

.input-wrapper input {
    width: 100%;
    padding: 12px 12px 12px 42px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    font-size: 14px;
    transition: all 0.2s ease;
    outline: none;
}

.input-wrapper input:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px var(--primary-light);
}

.input-wrapper input::placeholder {
    color: var(--text-secondary);
}

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

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.login-footer {
    margin-top: 24px;
    text-align: center;
}

.login-footer p {
    display: inline;
    margin-right: 4px;
}

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

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

.dashboard-body {
    display: flex;
    min-height: 100vh;
}

.sidebar {
    width: 240px;
    background: var(--sidebar-bg);
    color: var(--white);
    display: flex;
    flex-direction: column;
    position: fixed;
    left: 0;
    top: 0;
    height: 100vh;
    z-index: 100;
    transform: translateX(-100%);
    transition: transform 0.3s ease;
}

.sidebar.open {
    transform: translateX(0);
}

.sidebar-header {
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.logo-mini {
    width: 36px;
    height: 36px;
    background: var(--primary-color);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
}

.logo-text {
    font-size: 16px;
    font-weight: 600;
}

.sidebar-nav {
    flex: 1;
    padding: 16px 8px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    overflow-y: auto;
    overflow-x: hidden;
}

.nav-btn {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    color: rgba(255, 255, 255, 0.8);
    background: transparent;
    border: none;
    border-radius: var(--radius-md);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: left;
    position: relative;
    overflow: hidden;
}

.nav-btn::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 3px;
    height: 0;
    background: var(--primary-color);
    border-radius: 0 3px 3px 0;
    transition: height 0.3s ease;
}

.nav-btn:hover {
    background: var(--sidebar-hover);
    color: var(--white);
    transform: translateX(4px);
}

.nav-btn:hover::before {
    height: 20px;
}

.nav-btn:active {
    transform: translateX(4px) scale(0.97);
}

.nav-btn.active {
    background: var(--primary-color);
    color: var(--white);
    transform: translateX(0);
}

.nav-btn.active::before {
    height: 24px;
    background: var(--white);
}

.nav-btn i {
    width: 20px;
    font-size: 16px;
    transition: transform 0.3s ease;
}

.nav-btn:hover i {
    transform: scale(1.1);
}

.nav-btn span {
    transition: opacity 0.3s ease;
}

.sidebar-footer {
    padding: 16px 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.user-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.avatar {
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
}

.user-details {
    display: flex;
    flex-direction: column;
}

.username {
    font-size: 14px;
    font-weight: 500;
}

.domain {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.5);
}

.main-content {
    flex: 1;
    margin-left: 0;
    transition: margin-left 0.3s ease, opacity 0.4s ease, transform 0.4s ease;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    opacity: 1;
    transform: translateY(0);
}

.sidebar.open + .main-content {
    margin-left: 240px;
}

.top-bar {
    height: 64px;
    background: var(--white);
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 24px;
}

.top-bar-left {
    display: flex;
    align-items: center;
    gap: 16px;
}

.menu-toggle {
    width: 36px;
    height: 36px;
    border: none;
    background: var(--bg-color);
    border-radius: var(--radius-sm);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    transition: all 0.2s ease;
}

.menu-toggle:hover {
    background: var(--border-color);
}

.breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--text-secondary);
}

.breadcrumb span:last-child {
    color: var(--text-primary);
    font-weight: 500;
}

.top-bar-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

.notifications {
    position: relative;
    width: 36px;
    height: 36px;
    border: none;
    background: var(--bg-color);
    border-radius: var(--radius-sm);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    transition: all 0.2s ease;
}

.notifications:hover {
    background: var(--border-color);
}

.badge {
    position: absolute;
    top: -2px;
    right: -2px;
    width: 16px;
    height: 16px;
    background: #EF4444;
    color: var(--white);
    font-size: 10px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.search-btn {
    width: 36px;
    height: 36px;
    border: none;
    background: var(--bg-color);
    border-radius: var(--radius-sm);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    transition: all 0.2s ease;
}

.search-btn:hover {
    background: var(--border-color);
}

.content-wrapper {
    padding: 24px;
}

.page-header {
    margin-bottom: 24px;
}

.page-header h1 {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 4px;
}

.page-header p {
    color: var(--text-secondary);
    font-size: 14px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 24px;
}

.stat-card {
    background: var(--white);
    border-radius: var(--radius-md);
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 16px;
    box-shadow: var(--shadow-sm);
    transition: all 0.2s ease;
}

.stat-card:hover {
    box-shadow: var(--shadow-md);
}

.stat-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: var(--white);
}

.stat-icon.blue {
    background: linear-gradient(135deg, #3B82F6 0%, #2563EB 100%);
}

.stat-icon.green {
    background: linear-gradient(135deg, #10B981 0%, #059669 100%);
}

.stat-icon.purple {
    background: linear-gradient(135deg, #8B5CF6 0%, #7C3AED 100%);
}

.stat-icon.orange {
    background: linear-gradient(135deg, #F59E0B 0%, #D97706 100%);
}

.stat-info {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.stat-value {
    font-size: 24px;
    font-weight: 600;
    color: var(--text-primary);
}

.stat-label {
    font-size: 13px;
    color: var(--text-secondary);
}

.stat-trend {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    font-weight: 500;
}

.stat-trend.up {
    color: #10B981;
}

.stat-trend.down {
    color: #EF4444;
}

.charts-row {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 20px;
    margin-bottom: 24px;
}

.chart-card {
    background: var(--white);
    border-radius: var(--radius-md);
    padding: 24px;
    box-shadow: var(--shadow-sm);
}

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

.chart-header h3 {
    font-size: 16px;
    font-weight: 600;
}

.time-range {
    padding: 6px 12px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    font-size: 13px;
    background: var(--white);
    cursor: pointer;
    outline: none;
}

.time-range:focus {
    border-color: var(--primary-color);
}

.chart-placeholder {
    height: 200px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: var(--bg-color);
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    gap: 8px;
}

.chart-placeholder i {
    font-size: 32px;
    opacity: 0.5;
}

.bottom-row {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 20px;
}

.table-card {
    background: var(--white);
    border-radius: var(--radius-md);
    padding: 24px;
    box-shadow: var(--shadow-sm);
}

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

.card-header h3 {
    font-size: 16px;
    font-weight: 600;
}

.view-all {
    color: var(--primary-color);
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
}

.view-all:hover {
    text-decoration: underline;
}

.activity-table {
    width: 100%;
    border-collapse: collapse;
}

.activity-table th {
    text-align: left;
    padding: 10px 0;
    font-size: 12px;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.activity-table td {
    padding: 12px 0;
    font-size: 14px;
    color: var(--text-primary);
    border-top: 1px solid var(--border-color);
}

.status {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
}

.status.success {
    background: #D1FAE5;
    color: #059669;
}

.status.pending {
    background: #FEF3C7;
    color: #D97706;
}

.status.failed {
    background: #FEE2E2;
    color: #DC2626;
}

.info-card {
    background: var(--white);
    border-radius: var(--radius-md);
    padding: 24px;
    box-shadow: var(--shadow-sm);
}

.quick-actions {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-bottom: 24px;
}

.action-btn {
    padding: 14px;
    background: var(--bg-color);
    border: none;
    border-radius: var(--radius-sm);
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    transition: all 0.2s ease;
}

.action-btn:hover {
    background: var(--border-color);
    transform: translateY(-2px);
}

.action-btn i {
    font-size: 20px;
    color: var(--primary-color);
}

.action-btn span {
    font-size: 13px;
    font-weight: 500;
}

.tips-section {
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
}

.tips-section h4 {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 12px;
}

.tip-item {
    display: flex;
    gap: 10px;
    margin-bottom: 12px;
}

.tip-item:last-child {
    margin-bottom: 0;
}

.tip-item i {
    color: #F59E0B;
    font-size: 14px;
}

.tip-item p {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.5;
}

.home-section {
    max-width: 800px;
    margin: 0 auto;
}

.profile-card {
    text-align: center;
    padding: 40px 20px;
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    margin-bottom: 24px;
}

.avatar-box {
    width: 160px;
    height: 160px;
    margin: 0 auto 24px;
    border-radius: 50%;
    overflow: hidden;
    border: 4px solid var(--primary-light);
    box-shadow: var(--shadow-md);
}

.avatar-box .avatar {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.profile-card .name {
    font-size: 28px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.profile-card .title {
    font-size: 16px;
    color: var(--text-secondary);
    margin-bottom: 20px;
}

.social-links {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
}

.social-link {
    padding: 10px 20px;
    background: var(--bg-color);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.social-link:hover {
    background: var(--primary-color);
    color: var(--white);
}

.intro-section {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 28px;
    box-shadow: var(--shadow-md);
    margin-bottom: 24px;
}

.intro-section h2 {
    font-size: 20px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 16px;
}

.intro-section p {
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 12px;
}

.intro-section p:last-child {
    margin-bottom: 0;
}

.posts-section {
    margin-bottom: 24px;
}

.posts-section h2 {
    font-size: 20px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 20px;
}

.posts-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.post-card {
    background: var(--white);
    border-radius: var(--radius-md);
    padding: 24px;
    box-shadow: var(--shadow-sm);
    transition: all 0.2s ease;
}

.post-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.post-icon {
    width: 40px;
    height: 40px;
    background: var(--primary-light);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
    color: var(--primary-color);
    font-size: 18px;
}

.post-card h3 {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 10px;
}

.post-card p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 12px;
}

.post-date {
    font-size: 12px;
    color: var(--text-secondary);
    opacity: 0.7;
}

.section {
    max-width: 800px;
    margin: 0 auto;
    padding: 40px 20px;
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
}

.section h2 {
    font-size: 24px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 20px;
}

.section p {
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.8;
}

.about-section {
    margin-top: 30px;
}

.about-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 30px;
    box-shadow: var(--shadow-sm);
}

.contact-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 30px;
    box-shadow: var(--shadow-sm);
    margin-top: 30px;
}

.nav-submenu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    margin-left: 20px;
}

.nav-group.expanded .nav-submenu {
    max-height: 500px;
}

.nav-group.expanded .dropdown-arrow {
    transform: rotate(180deg);
}

.dropdown-arrow {
    margin-left: auto;
    transition: transform 0.3s ease;
    font-size: 12px;
}

.nav-sub-btn {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 16px;
    border: none;
    background: transparent;
    color: rgba(255, 255, 255, 0.7);
    font-size: 13px;
    cursor: pointer;
    border-radius: var(--radius-md);
    transition: all 0.3s ease;
    width: 100%;
    text-align: left;
    position: relative;
    overflow: hidden;
    opacity: 1;
    transform: translateX(0);
}

.nav-sub-btn::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 2px;
    height: 0;
    background: var(--primary-color);
    border-radius: 0 2px 2px 0;
    transition: height 0.3s ease;
}

.nav-sub-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--white);
    transform: translateX(4px);
}

.nav-sub-btn:hover::before {
    height: 16px;
}

.nav-sub-btn:active {
    transform: translateX(4px) scale(0.97);
}

.nav-sub-btn.active {
    background: rgba(255, 255, 255, 0.15);
    color: var(--white);
    transform: translateX(0);
}

.nav-sub-btn.active::before {
    height: 18px;
    background: var(--white);
}

.nav-sub-btn i {
    font-size: 14px;
    width: 20px;
    transition: transform 0.3s ease;
}

.nav-sub-btn:hover i {
    transform: scale(1.1);
}

.footer {
    text-align: center;
    padding: 20px;
    font-size: 12px;
    color: var(--text-secondary);
    border-top: 1px solid var(--border-color);
    margin-top: auto;
}

.service-page-section {
    margin-top: 20px;
}

.service-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 30px;
    box-shadow: var(--shadow-sm);
}

.service-card h2 {
    font-size: 24px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 20px;
}

.download-buttons {
    display: flex;
    gap: 16px;
    margin-top: 24px;
}

.download-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 24px;
    border-radius: var(--radius-md);
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s ease;
}

.download-btn.official {
    background: var(--primary-color);
    color: var(--white);
}

.download-btn.official:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.download-btn.cloud {
    background: var(--bg-color);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

.download-btn.cloud:hover {
    background: var(--border-color);
    transform: translateY(-1px);
}

.service-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-top: 20px;
}

.service-item {
    background: var(--bg-color);
    border-radius: var(--radius-md);
    padding: 24px;
    text-align: center;
    transition: box-shadow 0.3s ease;
}

.service-item:hover {
    box-shadow: var(--shadow-md);
}

.service-item i {
    font-size: 36px;
    color: var(--primary-color);
    margin-bottom: 12px;
}

.service-item h3 {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.service-item p {
    font-size: 14px;
    color: var(--text-secondary);
}

@media (max-width: 1200px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .charts-row,
    .bottom-row {
        grid-template-columns: 1fr;
    }
    .posts-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .sidebar {
        z-index: 200;
    }
    .main-content {
        margin-left: 0;
    }
    .sidebar.open + .main-content {
        margin-left: 240px;
    }
    .login-container {
        flex-direction: column;
        width: 100%;
        height: auto;
        margin: 16px;
    }
    .login-left {
        padding: 32px;
    }
    .features {
        grid-template-columns: 1fr;
    }
    .stats-grid {
        grid-template-columns: 1fr;
    }
}

.toast {
    position: fixed;
    top: 80px;
    left: 50%;
    transform: translateX(-50%) translateY(-20px);
    background: rgba(0, 0, 0, 0.8);
    color: var(--white);
    padding: 12px 24px;
    border-radius: var(--radius-md);
    font-size: 14px;
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s ease;
    z-index: 1000;
}

.toast.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

/* 悬浮音乐播放器 */
.music-player {
    position: fixed;
    right: 24px;
    bottom: 24px;
    z-index: 999;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 12px;
}

.music-panel {
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    padding: 16px;
    width: 260px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px) scale(0.95);
    transition: all 0.3s ease;
}

.music-player.open .music-panel {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

.music-info {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.music-cover {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-sm);
    background: linear-gradient(135deg, var(--primary-color) 0%, #7C3AED 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 20px;
    flex-shrink: 0;
}

.music-text {
    flex: 1;
    min-width: 0;
}

.music-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.music-artist {
    font-size: 12px;
    color: var(--text-secondary);
}

.music-progress {
    height: 4px;
    background: var(--border-color);
    border-radius: 2px;
    overflow: hidden;
    margin-bottom: 12px;
    cursor: pointer;
}

.music-progress-bar {
    height: 100%;
    background: var(--primary-color);
    width: 0;
    transition: width 0.1s linear;
}

.music-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
}

.music-control-btn {
    width: 36px;
    height: 36px;
    border: none;
    background: var(--bg-color);
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-primary);
    font-size: 14px;
    transition: all 0.2s ease;
}

.music-control-btn:hover {
    background: var(--border-color);
}

.music-control-btn.play-btn {
    width: 44px;
    height: 44px;
    background: var(--primary-color);
    color: var(--white);
    font-size: 16px;
}

.music-control-btn.play-btn:hover {
    background: var(--primary-dark);
}

.music-toggle {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    border: none;
    background: var(--primary-color);
    color: var(--white);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    box-shadow: var(--shadow-lg);
    transition: all 0.3s ease;
}

.music-toggle:hover {
    transform: scale(1.05);
    background: var(--primary-dark);
}

.music-toggle.playing {
    animation: musicPulse 2s ease-in-out infinite;
}

@keyframes musicPulse {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(79, 70, 229, 0.4);
    }
    50% {
        box-shadow: 0 0 0 12px rgba(79, 70, 229, 0);
    }
}

/* ==================== 小米 MiMo 风格鼠标光晕效果 ==================== */

/* 主光晕 - 大圆，跟随鼠标有轻微延迟 */
.cursor-glow {
    position: fixed;
    top: 0;
    left: 0;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    pointer-events: none;
    z-index: 9998;
    background: radial-gradient(circle, rgba(124, 92, 246, 0.35) 0%, rgba(79, 70, 229, 0.15) 40%, transparent 70%);
    transform: translate(-50%, -50%);
    transition: width 0.2s ease, height 0.2s ease, opacity 0.2s ease;
    mix-blend-mode: screen;
    opacity: 0;
}

.cursor-glow.active {
    opacity: 1;
}

/* 中心点 - 小圆，紧贴鼠标 */
.cursor-dot {
    position: fixed;
    top: 0;
    left: 0;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.95) 0%, rgba(167, 139, 250, 0.8) 100%);
    box-shadow: 0 0 10px rgba(124, 92, 246, 0.8), 0 0 20px rgba(79, 70, 229, 0.4);
    transform: translate(-50%, -50%);
    transition: width 0.15s ease, height 0.15s ease, opacity 0.2s ease;
    opacity: 0;
}

.cursor-dot.active {
    opacity: 1;
}

/* 悬停交互元素时放大 */
.cursor-glow.hovering {
    width: 60px;
    height: 60px;
    background: radial-gradient(circle, rgba(167, 139, 250, 0.4) 0%, rgba(124, 92, 246, 0.2) 40%, transparent 70%);
}

.cursor-dot.hovering {
    width: 14px;
    height: 14px;
    box-shadow: 0 0 15px rgba(167, 139, 250, 1), 0 0 30px rgba(124, 92, 246, 0.6);
}

/* 拖尾粒子 */
.cursor-trail {
    position: fixed;
    top: 0;
    left: 0;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    pointer-events: none;
    z-index: 9997;
    background: radial-gradient(circle, rgba(196, 181, 253, 0.9) 0%, rgba(124, 92, 246, 0.3) 100%);
    transform: translate(-50%, -50%);
    animation: trailFade 0.8s ease-out forwards;
}

@keyframes trailFade {
    0% {
        opacity: 0.8;
        transform: translate(-50%, -50%) scale(1);
    }
    100% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.2);
    }
}

/* 移动端隐藏光标效果 */
@media (hover: none) and (pointer: coarse) {
    .cursor-glow,
    .cursor-dot,
    .cursor-trail {
        display: none !important;
    }
}

/* ==================== 顶部登录按钮 ==================== */
.login-btn-top {
    width: auto;
    padding: 8px 16px;
    height: 36px;
    border: none;
    background: var(--primary-color);
    color: var(--white);
    border-radius: var(--radius-sm);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.login-btn-top:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
}

.login-btn-top i {
    font-size: 14px;
}

/* ==================== 资料页 ==================== */
.articles-page-section {
    max-width: 900px;
    margin: 0 auto;
}

.articles-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.article-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    transition: all 0.3s ease;
    cursor: pointer;
}

.article-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-3px);
}

.article-card-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
    background: var(--bg-color);
}

.article-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.article-card:hover .article-card-image img {
    transform: scale(1.05);
}

.article-card-video {
    width: 100%;
    height: 200px;
    overflow: hidden;
    background: #000;
}

.article-card-video video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.article-card-body {
    padding: 20px;
}

.article-card-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.article-card-excerpt {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.article-card-date {
    font-size: 12px;
    color: var(--text-secondary);
    opacity: 0.7;
    margin-top: 12px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.articles-empty {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 20px;
    color: var(--text-secondary);
}

.articles-empty i {
    font-size: 48px;
    margin-bottom: 16px;
    opacity: 0.3;
}

.articles-empty p {
    font-size: 15px;
}

/* ==================== 文章详情弹窗 ==================== */
.article-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    padding: 20px;
}

.article-modal-overlay.open {
    opacity: 1;
    visibility: visible;
}

.article-modal {
    background: var(--white);
    border-radius: var(--radius-lg);
    max-width: 700px;
    width: 100%;
    max-height: 85vh;
    overflow-y: auto;
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.article-modal-overlay.open .article-modal {
    transform: scale(1);
}

.article-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    background: var(--white);
    z-index: 1;
}

.article-modal-header h2 {
    font-size: 22px;
    font-weight: 600;
    color: var(--text-primary);
    flex: 1;
}

.article-modal-close {
    width: 36px;
    height: 36px;
    border: none;
    background: var(--bg-color);
    border-radius: var(--radius-sm);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: var(--text-secondary);
    transition: all 0.2s ease;
    flex-shrink: 0;
    margin-left: 16px;
}

.article-modal-close:hover {
    background: var(--border-color);
}

.article-modal-body {
    padding: 24px;
}

.article-modal-date {
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 16px;
}

.article-modal-content p {
    font-size: 15px;
    color: var(--text-primary);
    line-height: 1.8;
    margin-bottom: 12px;
    white-space: pre-wrap;
}

.article-modal-media {
    margin-top: 20px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.article-modal-media img {
    width: 100%;
    border-radius: var(--radius-md);
}

.article-modal-media video {
    width: 100%;
    border-radius: var(--radius-md);
}

/* ==================== 登录页 ==================== */
.login-page-section {
    max-width: 480px;
    margin: 0 auto;
    padding-top: 20px;
}

.login-form-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 40px 36px;
    box-shadow: var(--shadow-md);
}

.login-form-header {
    text-align: center;
    margin-bottom: 32px;
}

.login-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 16px;
    background: var(--primary-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    color: var(--primary-color);
}

.login-form-header h2 {
    font-size: 24px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.login-form-header p {
    font-size: 14px;
    color: var(--text-secondary);
}

.login-form-content .form-group {
    margin-bottom: 20px;
}

.login-form-content .form-group label {
    display: block;
    font-size: 13px;
    font-weight: 500;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.login-error {
    color: #EF4444;
    font-size: 13px;
    margin-bottom: 16px;
    min-height: 18px;
    text-align: center;
}

.login-submit-btn {
    margin-top: 8px;
    text-decoration: none;
    display: flex;
}

/* ==================== 后台管理页 ==================== */
.admin-page-section {
    max-width: 800px;
    margin: 0 auto;
}

.admin-editor-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 28px;
    box-shadow: var(--shadow-sm);
    margin-bottom: 24px;
}

.admin-input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    font-size: 15px;
    font-family: inherit;
    outline: none;
    transition: all 0.2s ease;
}

.admin-input:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px var(--primary-light);
}

.admin-textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    font-size: 14px;
    font-family: inherit;
    outline: none;
    transition: all 0.2s ease;
    resize: vertical;
    line-height: 1.6;
}

.admin-textarea:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px var(--primary-light);
}

/* 上传区域 */
.upload-area {
    border: 2px dashed var(--border-color);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all 0.2s ease;
    overflow: hidden;
}

.upload-area:hover {
    border-color: var(--primary-color);
    background: var(--primary-light);
}

.upload-placeholder {
    padding: 32px 20px;
    text-align: center;
    color: var(--text-secondary);
}

.upload-placeholder i {
    font-size: 32px;
    margin-bottom: 8px;
    display: block;
}

.upload-placeholder span {
    font-size: 14px;
}

.upload-preview {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 12px;
}

.upload-preview:empty {
    display: none;
}

.preview-item {
    position: relative;
    border-radius: var(--radius-md);
    overflow: hidden;
    width: 120px;
    height: 120px;
    background: var(--bg-color);
}

.preview-item img,
.preview-item video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.preview-remove {
    position: absolute;
    top: 4px;
    right: 4px;
    width: 24px;
    height: 24px;
    border: none;
    background: rgba(0, 0, 0, 0.6);
    color: var(--white);
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    transition: all 0.2s ease;
}

.preview-remove:hover {
    background: rgba(239, 68, 68, 0.9);
}

.admin-submit-btn {
    margin-top: 8px;
}

/* 已发布文章列表 */
.admin-list-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 24px;
    box-shadow: var(--shadow-sm);
}

.article-count {
    font-size: 13px;
    color: var(--text-secondary);
    background: var(--bg-color);
    padding: 4px 12px;
    border-radius: 20px;
}

.admin-articles-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.admin-article-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: var(--bg-color);
    border-radius: var(--radius-md);
    transition: all 0.2s ease;
}

.admin-article-row:hover {
    background: var(--border-color);
}

.admin-article-thumb {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-sm);
    overflow: hidden;
    background: var(--border-color);
    flex-shrink: 0;
}

.admin-article-thumb img,
.admin-article-thumb video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.admin-article-thumb-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    font-size: 18px;
}

.admin-article-info {
    flex: 1;
    min-width: 0;
}

.admin-article-title {
    font-size: 15px;
    font-weight: 500;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.admin-article-meta {
    font-size: 12px;
    color: var(--text-secondary);
}

.admin-article-delete {
    width: 32px;
    height: 32px;
    border: none;
    background: transparent;
    color: #EF4444;
    border-radius: var(--radius-sm);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.admin-article-delete:hover {
    background: rgba(239, 68, 68, 0.1);
}

/* ==================== 响应式 ==================== */
@media (max-width: 768px) {
    .articles-grid {
        grid-template-columns: 1fr;
    }

    .login-form-card {
        padding: 28px 20px;
    }

    .login-btn-top span {
        display: none;
    }

    .login-btn-top {
        width: 36px;
        padding: 0;
    }
}

/* ==================== 邮箱页 ==================== */
.email-card {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
}

.email-card h2 {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 16px;
}

.email-register-area {
    margin-top: 32px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.email-hint {
    font-size: 15px;
    color: var(--text-primary);
    background: var(--primary-light);
    padding: 12px 24px;
    border-radius: var(--radius-md);
    max-width: 100%;
}

.email-register-btn {
    padding: 14px 36px !important;
    font-size: 16px !important;
}