/* ==================== 蓝风铃在线祭奠网 - 蓝色系清爽风格 v3.0 ==================== */

/* ==================== 公共基础样式 ==================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* 蓝色系主题颜色 */
    --primary-color: #4A90E2;
    --primary-dark: #357ABD;
    --primary-light: #6BB0FF;
    --secondary-color: #5CB3FF;
    --accent-color: #87CEEB;
    --success-color: #52c41a;
    --warning-color: #faad14;
    --danger-color: #ff4d4f;
    --text-primary: #1a1a2e;
    --text-secondary: #666;
    --text-light: #999;
    --bg-primary: #ffffff;
    --bg-secondary: #f0f7ff;
    --bg-tertiary: #e8f4ff;
    --border-color: #d9e6ff;
    --shadow-light: 0 2px 8px rgba(74, 144, 226, 0.1);
    --shadow-medium: 0 4px 16px rgba(74, 144, 226, 0.15);
    --shadow-heavy: 0 8px 24px rgba(74, 144, 226, 0.2);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    font-size: 14px;
    line-height: 1.6;
    color: var(--text-primary);
    background: linear-gradient(135deg, #f5f9ff 0%, #e8f4ff 50%, #f0f7ff 100%);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* 页面主内容区域 */
.main-content {
    flex: 1;
    width: 100%;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

a:hover {
    color: var(--primary-color);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ==================== 首页满屏样式 ==================== */
.hero-section {
    position: relative;
    width: 100%;
    height: 100vh;
    min-height: 650px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #4A90E2 0%, #5CB3FF 50%, #87CEEB 100%);
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('https://images.unsplash.com/photo-1507003211169-0a1dd7228f2d?w=1920&q=80');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0.25;
    animation: bgZoom 25s ease-in-out infinite alternate;
}

@keyframes bgZoom {
    from {
        transform: scale(1);
        opacity: 0.2;
    }
    to {
        transform: scale(1.15);
        opacity: 0.3;
    }
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom,
        rgba(74, 144, 226, 0.05) 0%,
        rgba(74, 144, 226, 0.15) 50%,
        rgba(74, 144, 226, 0.25) 100%);
}

.hero-content {
    position: relative;
    z-index: 10;
    text-align: center;
    color: #fff;
    padding: 0 20px;
    animation: fadeInUp 1.2s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-title {
    font-size: 52px;
    font-weight: 700;
    margin-bottom: 20px;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.3);
    letter-spacing: 4px;
    animation: textGlow 2s ease-in-out infinite alternate;
}

@keyframes textGlow {
    from {
        text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.3);
    }
    to {
        text-shadow: 2px 2px 20px rgba(255, 255, 255, 0.5);
    }
}

.hero-slogan {
    font-size: 32px;
    font-weight: 300;
    margin-bottom: 35px;
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.3);
    opacity: 0.95;
    animation: slideInFromRight 1.5s ease-out;
}

@keyframes slideInFromRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 0.95;
        transform: translateX(0);
    }
}

.hero-description {
    font-size: 18px;
    max-width: 800px;
    margin: 0 auto 45px;
    line-height: 1.9;
    opacity: 0.9;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
    animation: fadeIn 2s ease-out 0.5s both;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 0.9;
    }
}

.hero-buttons {
    display: flex;
    gap: 25px;
    justify-content: center;
    flex-wrap: wrap;
    animation: fadeInUp 1.2s ease-out 0.8s both;
}

.hero-btn {
    padding: 16px 45px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 30px;
    border: 2px solid transparent;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    overflow: hidden;
}

.hero-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s ease;
}

.hero-btn:hover::before {
    left: 100%;
}

.hero-btn-primary {
    background-color: #fff;
    color: var(--primary-color);
    border-color: #fff;
}

.hero-btn-primary:hover {
    background-color: var(--primary-color);
    color: #fff;
    border-color: var(--primary-color);
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 25px rgba(255, 255, 255, 0.4);
}

.hero-btn-secondary {
    background-color: transparent;
    color: #fff;
    border-color: #fff;
}

.hero-btn-secondary:hover {
    background-color: #fff;
    color: var(--primary-color);
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 25px rgba(255, 255, 255, 0.3);
}

/* ==================== 顶部导航栏样式 ==================== */
.top-navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 75px;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(15px);
    box-shadow: 0 2px 12px rgba(74, 144, 226, 0.1);
    z-index: 1000;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.top-navbar.scrolled {
    background: rgba(255, 255, 255, 0.99);
    box-shadow: 0 4px 20px rgba(74, 144, 226, 0.15);
    height: 70px;
}

.navbar-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 汉堡菜单按钮 - 默认隐藏（仅移动端显示） */
.mobile-menu-toggle {
    display: none;
}

/* 移动端导航菜单 - 默认隐藏（仅移动端显示） */
.mobile-menu {
    display: none;
}

.navbar-brand {
    flex: 0 0 180px;
    display: flex;
    align-items: center;
    font-size: 24px;
    font-weight: 700;
    color: var(--primary-color);
    transition: all 0.3s ease;
    white-space: nowrap;
}

.navbar-brand:hover {
    transform: scale(1.05);
    color: var(--primary-dark);
}

.navbar-brand i {
    font-size: 30px;
    margin-right: 10px;
    color: var(--primary-color);
    animation: bellShake 3s ease-in-out infinite;
}

@keyframes bellShake {
    0%, 100% { transform: rotate(0deg); }
    10% { transform: rotate(15deg); }
    20% { transform: rotate(-15deg); }
    30% { transform: rotate(10deg); }
    40% { transform: rotate(-10deg); }
    50% { transform: rotate(5deg); }
    60% { transform: rotate(-5deg); }
    70% { transform: rotate(0deg); }
}

.navbar-brand span {
    transition: all 0.3s ease;
}

.navbar-brand:hover span {
    text-shadow: 0 0 20px rgba(74, 144, 226, 0.5);
}

.navbar-menu {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 8px;
    justify-content: flex-start;
    margin-left: 20px;
}

.nav-menu-item {
    position: relative;
}

.nav-link {
    padding: 10px 18px;
    font-size: 15px;
    font-weight: 500;
    color: var(--text-primary);
    border-radius: 8px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    white-space: nowrap;
}

.nav-link::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 3px;
    background: var(--primary-color);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.nav-link:hover {
    background-color: var(--bg-tertiary);
    color: var(--primary-color);
    transform: translateY(-2px);
}

.nav-link:hover::before {
    width: 80%;
}

.nav-link i {
    margin-right: 6px;
    transition: transform 0.3s ease;
}

.nav-link:hover i {
    transform: scale(1.2);
}

.navbar-menu-right {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
}

.btn-login, .btn-register {
    padding: 10px 28px;
    font-size: 14px;
    font-weight: 600;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.btn-login {
    background-color: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
}

.btn-login:hover {
    background-color: var(--primary-color);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(74, 144, 226, 0.3);
}

.btn-register {
    background-color: var(--primary-color);
    border: 2px solid var(--primary-color);
    color: #fff;
}

.btn-register:hover {
    background-color: var(--primary-dark);
    border-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(74, 144, 226, 0.4);
}

/* ==================== 用户头像和下拉菜单 ==================== */
.user-avatar-wrapper {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 18px;
    border-radius: 30px;
    transition: all 0.3s ease;
    background-color: var(--bg-tertiary);
    cursor: pointer;
    position: relative;
    z-index: 10;
    /* 确保点击区域完整 */
    min-height: 58px;
    user-select: none; /* 防止文本选中 */
    -webkit-user-select: none;
}

.user-avatar-wrapper:hover {
    background-color: var(--bg-secondary);
    transform: scale(1.02);
    box-shadow: var(--shadow-light);
}

.user-avatar-wrapper.active {
    background-color: var(--bg-secondary);
}

.user-avatar {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    flex-shrink: 0;
}

.avatar-img {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--primary-color);
    transition: all 0.3s ease;
}

.user-avatar-wrapper:hover .avatar-img {
    border-color: var(--primary-light);
    transform: rotate(360deg);
}

.avatar-name {
    display: none; /* 隐藏头像圆圈内的用户名 */
}

.user-name-display {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
}

.user-avatar-wrapper:hover .user-name-display {
    color: var(--primary-color);
}

.user-avatar-wrapper.active .user-name-display {
    color: var(--primary-color);
}

.avatar-dropdown-icon {
    font-size: 12px;
    color: var(--text-secondary);
    transition: transform 0.3s ease;
    flex-shrink: 0;
}

.user-avatar-wrapper.active .avatar-dropdown-icon {
    transform: rotate(180deg);
}

.user-dropdown-menu {
    position: absolute;
    top: calc(100% + 12px);
    right: 0;
    min-width: 220px;
    background-color: #fff;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(74, 144, 226, 0.2);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1001;
    border: 1px solid var(--border-color);
}

.user-dropdown-menu.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-item {
    display: flex;
    align-items: center;
    padding: 10px 20px;
    font-size: 14px;
    color: var(--text-primary);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.dropdown-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 0;
    background: linear-gradient(90deg, var(--primary-color), transparent);
    transition: width 0.3s ease;
    opacity: 0.1;
}

.dropdown-item:hover {
    background-color: var(--bg-tertiary);
    color: var(--primary-color);
    padding-left: 24px;
}

.dropdown-item:hover::before {
    width: 100%;
}

.dropdown-item i {
    width: 28px;
    font-size: 16px;
    margin-right: 10px;
    transition: transform 0.3s ease;
}

.dropdown-item:hover i {
    transform: scale(1.2);
}

.dropdown-divider {
    height: 1px;
    background-color: var(--border-color);
    margin: 8px 0;
}

/* 管理员待审核菜单项样式 */
.admin-pending-item {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(135deg, #fff7ed 0%, #ffedd5 100%);
    border-left: 3px solid #f97316;
}

.admin-pending-item:hover {
    background: linear-gradient(135deg, #ffedd5 0%, #fed7aa 100%);
    color: #c2410c;
}

.admin-pending-item .pending-badge-container {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-left: 12px;
}

.admin-pending-item .pending-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    color: #fff;
    white-space: nowrap;
}

.admin-pending-item .message-badge {
    background: linear-gradient(135deg, #f97316 0%, #ea580c 100%);
}

.admin-pending-item .memorial-badge {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
}

.admin-pending-item .pending-badge i {
    width: auto;
    margin-right: 2px;
    font-size: 11px;
}

/* 移动端待审核徽章样式 */
.mobile-pending-badges {
    display: flex;
    gap: 6px;
    margin-left: 6px;
}

.mobile-pending-badge {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    padding: 3px 8px;
    border-radius: 10px;
    font-size: 12px;
    font-weight: 600;
    color: #fff;
    white-space: nowrap;
}

.mobile-pending-badge:nth-child(1) {
    background: linear-gradient(135deg, #f97316 0%, #ea580c 100%);
}

.mobile-pending-badge:nth-child(2) {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
}

/* ==================== 弹出层样式 ==================== */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.modal-container {
    position: relative;
    width: 90%;
    max-width: 480px;
    max-height: 90vh;
    background-color: #fff;
    border-radius: 16px;
    box-shadow: 0 12px 48px rgba(74, 144, 226, 0.25);
    overflow-y: auto;
    transform: scale(0.9) translateY(-30px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid var(--border-color);
}

.modal-overlay.show .modal-container {
    transform: scale(1) translateY(0);
}

.modal-close {
    position: absolute;
    top: 18px;
    right: 18px;
    font-size: 26px;
    color: var(--text-light);
    cursor: pointer;
    transition: all 0.3s ease;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background-color: var(--bg-secondary);
}

.modal-close:hover {
    background-color: var(--danger-color);
    color: #fff;
    transform: rotate(90deg);
}

.modal-header {
    padding: 28px 32px 20px;
    text-align: center;
    border-bottom: 1px solid var(--border-color);
}

.modal-title {
    font-size: 28px;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 8px;
    padding: 0 16px;
    margin-top: 8px;
}

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

.modal-body {
    padding: 28px 32px;
}

/* ==================== 表单样式 ==================== */
.form-group {
    margin-bottom: 22px;
}

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

.form-control {
    width: 100%;
    padding: 12px 16px;
    font-size: 14px;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    transition: all 0.3s ease;
    background-color: var(--bg-primary);
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(74, 144, 226, 0.1);
}

.form-control:hover {
    border-color: var(--primary-light);
}

.input-group {
    position: relative;
    display: flex;
    align-items: stretch;
    width: 100%;
}

.input-group .form-control {
    flex: 1;
}

.input-group-text {
    padding: 12px 16px;
    background-color: var(--bg-tertiary);
    border: 2px solid var(--border-color);
    border-left: none;
    border-radius: 0 8px 8px 0;
    color: var(--text-secondary);
    transition: all 0.3s ease;
}

.input-group .form-control:focus ~ .input-group-text,
.input-group .form-control:hover ~ .input-group-text {
    border-color: var(--primary-color);
    background-color: var(--primary-color);
    color: #fff;
}

.btn {
    display: inline-block;
    padding: 12px 32px;
    font-size: 15px;
    font-weight: 600;
    text-align: center;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: #fff;
    box-shadow: 0 4px 12px rgba(74, 144, 226, 0.3);
    border: none;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(74, 144, 226, 0.4);
}

/* 登录弹窗专用按钮样式 */
.btn-primary-custom {
    width: 100%;
    padding: 14px 24px;
    font-size: 16px;
    font-weight: 600;
    border: none;
    border-radius: 8px;
    background: linear-gradient(135deg, #4A90E2 0%, #357ABD 50%, #2E6DA4 100%);
    color: #fff;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 12px rgba(74, 144, 226, 0.3);
    position: relative;
    overflow: hidden;
}

.btn-primary-custom::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.btn-primary-custom:hover::before {
    left: 100%;
}

.btn-primary-custom:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(74, 144, 226, 0.45);
    background: linear-gradient(135deg, #357ABD 0%, #2E6DA4 50%, #286090 100%);
}

.btn-primary-custom:active {
    transform: translateY(0);
}

.btn-primary-custom:disabled {
    background: linear-gradient(135deg, #ccc 0%, #bbb 100%);
    cursor: not-allowed;
    transform: none;
}

.btn-primary-custom .loading {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid #fff;
    border-top-color: transparent;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin-right: 8px;
    vertical-align: middle;
}

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

/* 错误提示样式 */
.error-alert, .success-alert {
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 16px;
    font-size: 14px;
    display: none;
}

.error-alert {
    background-color: #fee;
    color: #dc3545;
    border: 1px solid #fcc;
}

.error-alert.show {
    display: block;
}

.success-alert {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.success-alert.show {
    display: block;
}

.btn-secondary {
    background-color: var(--bg-tertiary);
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-secondary:hover {
    background-color: var(--primary-color);
    color: #fff;
}

.btn-block {
    width: 100%;
}

.btn-send-code {
    white-space: nowrap;
    margin-left: 10px;
    min-width: 130px;
}

/* ==================== 卡片样式 ==================== */
.card {
    background-color: #fff;
    border-radius: 12px;
    box-shadow: var(--shadow-medium);
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid var(--border-color);
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-heavy);
}

.card-header {
    padding: 22px 28px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: #fff;
}

.card-title {
    font-size: 18px;
    font-weight: 700;
    margin: 0;
}

.card-body {
    padding: 28px;
}

.card-footer {
    padding: 18px 28px;
    background-color: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
}

/* ==================== 特性展示区域 ==================== */
.features-section {
    padding: 80px 0;
    background: linear-gradient(180deg, var(--bg-secondary) 0%, #fff 100%);
}

.section-title {
    text-align: center;
    font-size: 36px;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 15px;
    letter-spacing: 2px;
}

.section-subtitle {
    text-align: center;
    font-size: 16px;
    color: var(--text-secondary);
    margin-bottom: 50px;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    padding: 20px 0;
}

.feature-card {
    text-align: center;
    padding: 40px 30px;
    background-color: #fff;
    border-radius: 16px;
    box-shadow: var(--shadow-light);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid var(--border-color);
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    transform: scaleX(0);
    transition: transform 0.4s ease;
}

.feature-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: var(--shadow-heavy);
}

.feature-card:hover::before {
    transform: scaleX(1);
}

.feature-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 36px;
    transition: all 0.4s ease;
}

.feature-card:hover .feature-icon {
    transform: rotateY(180deg) scale(1.1);
}

.feature-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 12px;
}

.feature-description {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.7;
}

/* ==================== 调试信息样式 ==================== */
.debug-info {
    position: fixed;
    bottom: 20px;
    right: 20px;
    max-width: 400px;
    max-height: 300px;
    background-color: rgba(0, 0, 0, 0.9);
    color: #00ff00;
    padding: 15px;
    border-radius: 8px;
    font-family: monospace;
    font-size: 12px;
    overflow-y: auto;
    z-index: 10000;
    border: 2px solid #00ff00;
    box-shadow: 0 4px 16px rgba(0, 255, 0, 0.3);
}

.debug-info .debug-title {
    font-weight: bold;
    margin-bottom: 10px;
    color: #ffff00;
    border-bottom: 1px solid #00ff00;
    padding-bottom: 5px;
}

.debug-info .debug-item {
    margin: 5px 0;
    padding: 3px 0;
    border-bottom: 1px solid #003300;
}

/* ==================== 响应式设计 ==================== */
@media (max-width: 992px) {
    .navbar-container {
        padding: 0 20px;
    }

    .navbar-brand {
        flex: 0 0 160px;
    }

    .navbar-menu {
        gap: 15px;
    }

    .nav-link {
        padding: 10px 18px;
        font-size: 14px;
    }

    .navbar-menu-right {
        flex: 0 0 200px;
    }

    .hero-title {
        font-size: 42px;
    }

    .hero-slogan {
        font-size: 26px;
    }

    .features-grid {
        grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
        gap: 20px;
    }
}

@media (max-width: 768px) {
    .navbar-container {
        padding: 0 15px;
    }

    /* 移动端显示品牌名称（蓝风铃） */
    .navbar-brand {
        flex: 1; /* 让品牌占据左边大部分空间 */
        font-size: 22px;
    }

    .navbar-brand i {
        font-size: 26px;
        margin-right: 6px;
    }

    .navbar-brand span {
        display: inline-block;
        font-size: 20px;
        margin-left: 6px;
    }

    .navbar-menu {
        display: none;
    }

    .navbar-menu-right {
        display: none;
    }

    /* 汉堡菜单按钮样式 */
    .mobile-menu-toggle {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        width: 32px;
        height: 32px;
        background: transparent;
        border: none;
        cursor: pointer;
        padding: 0;
        z-index: 1002;
    }

    .mobile-menu-toggle span {
        display: block;
        width: 24px;
        height: 3px;
        background-color: var(--primary-color);
        border-radius: 2px;
        margin: 3px 0;
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    }

    .mobile-menu-toggle.active span:nth-child(1) {
        transform: translateY(6px) rotate(45deg);
    }

    .mobile-menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }

    .mobile-menu-toggle.active span:nth-child(3) {
        transform: translateY(-6px) rotate(-45deg);
    }

    /* 移动端菜单样式 */
    .mobile-menu {
        display: block;
        position: fixed;
        top: 75px;
        left: 0;
        width: 100%;
        max-height: calc(100vh - 75px);
        background-color: #fff;
        box-shadow: 0 8px 20px rgba(74, 144, 226, 0.15);
        overflow-y: auto;
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 999;
    }

    .mobile-menu.show {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }

    .mobile-menu-section {
        padding: 15px 20px;
        border-bottom: 1px solid var(--border-color);
    }

    .mobile-menu-section:last-child {
        border-bottom: none;
    }

    .mobile-nav-link {
        display: flex;
        align-items: center;
        padding: 10px 16px;
        font-size: 15px;
        color: var(--text-primary);
        border-radius: 10px;
        transition: all 0.3s ease;
        margin-bottom: 3px;
    }

    .mobile-nav-link:last-child {
        margin-bottom: 0;
    }

    .mobile-nav-link:hover {
        background-color: var(--bg-tertiary);
        color: var(--primary-color);
        transform: translateX(5px);
    }

    .mobile-nav-link i {
        font-size: 16px;
        margin-right: 10px;
    }

    /* 移动端登录/注册按钮样式 */
    .btn-mobile-login,
    .btn-mobile-register {
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 14px 20px;
        font-size: 16px;
        font-weight: 600;
        border-radius: 10px;
        transition: all 0.3s ease;
        margin-bottom: 10px;
    }

    .btn-mobile-login {
        background-color: transparent;
        border: 2px solid var(--primary-color);
        color: var(--primary-color);
    }

    .btn-mobile-login:hover {
        background-color: var(--primary-color);
        color: #fff;
    }

    .btn-mobile-register {
        background-color: var(--primary-color);
        border: 2px solid var(--primary-color);
        color: #fff;
    }

    .btn-mobile-register:hover {
        background-color: var(--primary-dark);
        border-color: var(--primary-dark);
    }

    /* 移动端用户信息区域 */
    .mobile-user-section {
        background-color: var(--bg-tertiary);
    }

    .mobile-user-info {
        display: flex;
        align-items: center;
        gap: 15px;
        padding: 10px 0;
    }

    .mobile-avatar-img {
        width: 50px;
        height: 50px;
        border-radius: 50%;
        object-fit: cover;
        border: 3px solid var(--primary-color);
    }

    .mobile-user-name {
        font-size: 18px;
        font-weight: 600;
        color: var(--text-primary);
    }

    .mobile-menu-divider {
        height: 1px;
        background-color: var(--border-color);
        margin: 15px 0;
    }

    .hero-title {
        font-size: 32px;
        letter-spacing: 2px;
    }

    .hero-slogan {
        font-size: 22px;
    }

    .hero-description {
        font-size: 16px;
    }

    .hero-buttons {
        gap: 15px;
    }

    .hero-btn {
        padding: 14px 30px;
        font-size: 14px;
    }

    .features-section {
        padding: 60px 0;
    }

    .section-title {
        font-size: 28px;
    }

    .feature-card {
        padding: 30px 20px;
    }

    .feature-icon {
        width: 70px;
        height: 70px;
        font-size: 30px;
    }
}

@media (max-width: 576px) {
    .hero-title {
        font-size: 26px;
    }

    .hero-slogan {
        font-size: 18px;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
        width: 100%;
    }

    .hero-btn {
        width: 100%;
        max-width: 280px;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }
}

/* ==================== 动画效果类 ==================== */
.fade-in {
    animation: fadeIn 0.8s ease-out;
}

.slide-up {
    animation: slideUp 0.8s ease-out;
}

.slide-down {
    animation: slideDown 0.8s ease-out;
}

.scale-in {
    animation: scaleIn 0.5s ease-out;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* ==================== 按钮悬停效果 ==================== */
.btn-glow:hover {
    animation: buttonGlow 0.5s ease-in-out;
}

@keyframes buttonGlow {
    0%, 100% {
        box-shadow: 0 4px 12px rgba(74, 144, 226, 0.3);
    }
    50% {
        box-shadow: 0 0 30px rgba(74, 144, 226, 0.6);
    }
}

/* ==================== 加载动画 ==================== */
.loading-spinner {
    width: 24px;
    height: 24px;
    border: 3px solid var(--border-color);
    border-top-color: var(--primary-color);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    display: inline-block;
    vertical-align: middle;
}

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

/* ==================== 提示信息 ==================== */
.alert {
    padding: 14px 20px;
    margin-bottom: 20px;
    border-radius: 8px;
    border-left: 4px solid;
    font-size: 14px;
    animation: slideDown 0.3s ease-out;
}

.alert-success {
    background-color: #f6ffed;
    border-color: var(--success-color);
    color: #52c41a;
}

.alert-warning {
    background-color: #fffbe6;
    border-color: var(--warning-color);
    color: #faad14;
}

.alert-danger {
    background-color: #fff1f0;
    border-color: var(--danger-color);
    color: #ff4d4f;
}

.alert-info {
    background-color: #e6f7ff;
    border-color: var(--primary-color);
    color: var(--primary-color);
}

/* ==================== 悬停突出效果 ==================== */
.hover-highlight:hover {
    background-color: var(--bg-tertiary);
    transform: translateX(5px);
    box-shadow: var(--shadow-light);
}

.hover-lift:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-heavy);
}

.hover-scale:hover {
    transform: scale(1.05);
    box-shadow: var(--shadow-medium);
}


/* ==================== 登录弹窗专用样式 ==================== */

/* 登录弹窗容器 */
.login-modal {
    overflow: hidden;
}

/* 渐变色头部 */
.modal-header-gradient {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 24px 30px;
    text-align: center;
    position: relative;
}

.modal-header-gradient::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, rgba(255,255,255,0.3), rgba(255,255,255,0.8), rgba(255,255,255,0.3));
}

.modal-title-gradient {
    color: #fff;
    font-size: 24px;
    font-weight: 700;
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.modal-title-gradient i {
    font-size: 28px;
}

/* 弹窗主体 */
.login-modal .modal-body {
    padding: 24px 30px;
}

/* 登录方式切换 */
.login-mode-switch {
    margin-bottom: 20px;
}

.login-mode-switch .btn-group {
    border-radius: 8px;
    overflow: hidden;
    border: 2px solid var(--border-color);
}

.login-mode-switch .btn {
    border-radius: 6px;
    margin: 1px;
    padding: 10px 16px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.login-mode-switch .btn-outline-primary {
    background-color: transparent;
    border: none;
    color: var(--text-secondary);
}

.login-mode-switch .btn-outline-primary:hover {
    background-color: var(--bg-secondary);
    color: var(--primary-color);
}

.login-mode-switch .btn-outline-primary.active {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: #fff;
    border: none;
}

/* 表单组样式 */
.login-modal .form-group {
    margin-bottom: 18px;
}

.login-modal .form-label {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.login-modal .form-label i {
    color: var(--primary-color);
}

.login-modal .input-group {
    border-radius: 8px;
    overflow: hidden;
    border: 2px solid var(--border-color);
    transition: all 0.3s ease;
}

.login-modal .input-group:focus-within {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(74, 144, 226, 0.1);
}

.login-modal .input-group-text {
    background-color: #f8f9fa;
    border: none;
    color: var(--text-light);
    padding: 12px 16px;
}

.login-modal .form-control {
    border: none;
    padding: 12px 16px;
    font-size: 14px;
}

.login-modal .form-control:focus {
    box-shadow: none;
}

.login-modal .btn-outline-secondary {
    border: none;
    background-color: var(--bg-secondary);
    color: var(--primary-color);
    font-weight: 600;
    padding: 12px 20px;
    transition: all 0.3s ease;
}

.login-modal .btn-outline-secondary:hover {
    background-color: var(--primary-color);
    color: #fff;
}

.login-modal .btn-outline-secondary.disabled {
    background-color: #f0f0f0;
    color: #999;
}

/* 图片验证码 */
.login-modal .captcha-img {
    width: 120px;
    object-fit: cover;
    border-left: 2px solid var(--border-color);
}

.login-modal .form-text {
    margin-top: 6px;
    font-size: 12px;
}

/* 表单选项 */
.login-modal .form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.login-modal .form-check-input {
    width: 18px;
    height: 18px;
    border: 2px solid var(--border-color);
    cursor: pointer;
}

.login-modal .form-check-input:checked {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.login-modal .form-check-label {
    font-size: 14px;
    color: var(--text-secondary);
    margin-left: 8px;
    cursor: pointer;
}

.login-modal .text-primary {
    font-size: 14px;
    font-weight: 600;
}

/* 底部链接 */
.login-modal .form-footer {
    text-align: center;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
    color: var(--text-secondary);
    font-size: 14px;
}

.login-modal .form-footer .fw-bold {
    font-weight: 700;
}

/* 密码显示/隐藏切换 */
.login-modal .password-toggle {
    right: 16px;
    top: calc(50% - 12px);
    color: var(--text-light);
    font-size: 18px;
}

.login-modal .password-toggle:hover {
    color: var(--primary-color);
}

/* 大按钮 */
.login-modal .btn-lg {
    padding: 14px 24px;
    font-size: 16px;
    font-weight: 700;
    margin-top: 8px;
}

/* 响应式优化 */
@media (max-width: 576px) {
    .login-modal .modal-body {
        padding: 20px;
    }

    .modal-header-gradient {
        padding: 20px 24px;
    }

    .modal-title-gradient {
        font-size: 20px;
    }

    .modal-title-gradient i {
        font-size: 24px;
    }

    .login-modal .form-group {
        margin-bottom: 16px;
    }

    .login-modal .captcha-img {
        width: 100px;
    }
}

/* ==================== Footer样式 ==================== */
.footer {
    background-color: #ffffff;
    padding: 25px 20px;
    margin-top: auto;
    box-shadow: 0 -2px 15px rgba(74, 144, 226, 0.08);
    border-top: 2px solid var(--primary-color);
}

.footer .container {
    text-align: center;
}

.footer p {
    margin: 6px 0;
    color: var(--text-secondary);
    font-size: 13px;
    transition: color 0.3s ease;
}

.footer .footer-slogan {
    font-size: 14px;
    font-weight: 500;
    color: var(--primary-color);
    margin-bottom: 10px;
}

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

.footer a {
    color: var(--primary-color);
    transition: all 0.3s ease;
    text-decoration: none;
}

.footer a:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

.footer-separator {
    margin: 0 10px;
    color: var(--text-secondary);
}

/* Footer响应式 */
@media (max-width: 768px) {
    .footer {
        padding: 20px 15px;
    }

    .footer p {
        font-size: 12px;
    }

    .footer .footer-slogan {
        font-size: 13px;
    }

    .footer-separator {
        margin: 0 8px;
    }
}
