
/* 现代化样式模板 - 基于demo.html样式 */
body {
    background-color: #f8f9fc;
    background-image: linear-gradient(120deg, #f6f9fc 0%, #eef2f5 100%);
    min-height: 100vh;
    font-family: "Helvetica Neue", Helvetica, Arial, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
    margin: 0;
    padding: 0;
}

.layui-container {
    max-width: 1000px;
    margin: 30px auto;
    animation: fadeIn 0.5s ease-in-out;
}

.page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding: 15px 20px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.05);
}

.page-title {
    font-size: 24px;
    color: #333;
    font-weight: 600;
    display: flex;
    align-items: center;
}

.page-title i {
    margin-right: 12px;
    color: #1E9FFF;
    font-size: 26px;
}

.user-card {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 3px 20px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    margin-bottom: 25px;
}

/* 导航栏样式 */
.user-nav {
    background: linear-gradient(135deg, #1E9FFF 0%, #0d8bf2 100%);
    padding: 0 20px;
}

.user-nav ul {
    display: flex;
    margin: 0;
    padding: 0;
    list-style: none;
}

.user-nav li {
    position: relative;
    padding: 0 15px;
}

.user-nav li a {
    display: flex;
    align-items: center;
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    font-size: 16px;
    font-weight: 500;
    padding: 20px 10px;
    transition: all 0.3s ease;
}

.user-nav li a i {
    margin-right: 8px;
    font-size: 18px;
}

.user-nav li:hover a {
    color: #fff;
}

.user-nav li.active a {
    color: #fff;
}

.user-nav li.active:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60%;
    height: 3px;
    background-color: #fff;
    border-radius: 3px 3px 0 0;
}

.user-nav li:not(:last-child):after {
    content: '';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    height: 16px;
    width: 1px;
    background-color: rgba(255, 255, 255, 0.2);
}

.account-content {
    padding: 30px;
    background-color: #fff;
    border-radius: 0 0 8px 8px;
}

.section-header {
    display: flex;
    align-items: center;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 1px solid #f0f0f0;
}

.section-header h2 {
    font-size: 22px;
    color: #333;
    margin: 0;
    display: flex;
    align-items: center;
}

.section-header h2 i {
    margin-right: 10px;
    color: #1E9FFF;
    font-size: 22px;
}

.profile-header {
    display: flex;
    align-items: center;
    margin-bottom: 30px;
    gap: 30px;
}

.avatar-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.avatar-img {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #f0f0f0;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

.profile-summary h3 {
    font-size: 20px;
    margin: 0 0 10px;
    color: #333;
    display: flex;
    align-items: center;
}

.profile-summary h3 i {
    margin-right: 8px;
    color: #666;
}

.profile-summary p {
    color: #666;
    margin: 5px 0;
    font-size: 14px;
    display: flex;
    align-items: center;
}

.profile-summary p i {
    margin-right: 8px;
    color: #888;
    font-size: 16px;
}

.profile-details {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.detail-item {
    display: flex;
    align-items: center;
    padding: 15px;
    background-color: #f9f9f9;
    border-radius: 6px;
    border-left: 3px solid #1E9FFF;
}

.detail-label {
    font-weight: 500;
    color: #555;
    min-width: 80px;
    display: flex;
    align-items: center;
}

.detail-label i {
    margin-right: 8px;
    color: #666;
}

.detail-value {
    color: #333;
    margin-left: 15px;
    word-break: break-all;
}

.update-form h3, .security-card h3 {
    font-size: 18px;
    color: #444;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
}

.update-form h3 i, .security-card h3 i {
    margin-right: 8px;
    color: #1E9FFF;
}

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

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #555;
    display: flex;
    align-items: center;
}

.form-group label i {
    margin-right: 8px;
    color: #888;
}

.form-group input, .form-group textarea, .form-group select {
    width: 100%;
    padding: 10px 15px;
    border: 1px solid #e6e6e6;
    border-radius: 4px;
    transition: border-color 0.3s;
    box-sizing: border-box;
    font-family: inherit;
}

.form-group input:focus, .form-group textarea:focus, .form-group select:focus {
    border-color: #1E9FFF;
    outline: none;
}

.btn {
    background-color: #1E9FFF;
    color: #fff;
    border: none;
    padding: 10px 25px;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-size: 14px;
}

.btn i {
    margin-right: 6px;
}

.btn:hover {
    background-color: #0d8bf2;
}

.btn.secondary {
    background-color: #f0f0f0;
    color: #666;
}

.btn.secondary:hover {
    background-color: #e6e6e6;
}

.btn.danger {
    background-color: #FF5722;
    color: #fff;
}

.btn.danger:hover {
    background-color: #e64a19;
}

.btn.success {
    background-color: #5FB878;
    color: #fff;
}

.btn.success:hover {
    background-color: #4cae4c;
}

.btn.warning {
    background-color: #FFB800;
    color: #fff;
}

.btn.warning:hover {
    background-color: #ec971f;
}

.security-card {
    background-color: #f9f9f9;
    padding: 20px;
    border-radius: 6px;
    margin-bottom: 25px;
    border-left: 3px solid #5FB878;
}

.security-status {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
    gap: 10px;
}

.status-icon {
    font-size: 20px;
    display: flex;
    align-items: center;
}

.status-text {
    font-weight: 500;
}

.last-changed {
    color: #666;
    font-size: 14px;
    margin-left: auto;
    display: flex;
    align-items: center;
}

.last-changed i {
    margin-right: 5px;
}

.hint {
    color: #999;
    font-size: 12px;
    margin-top: 5px;
    display: block;
}

.login-history {
    color: #666;
}

.view-more {
    color: #1E9FFF;
    text-decoration: none;
    transition: color 0.3s;
    display: flex;
    align-items: center;
}

.view-more i {
    margin-right: 5px;
}

.view-more:hover {
    color: #0d8bf2;
    text-decoration: underline;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

th, td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid #e6e6e6;
}

th {
    background-color: #f5f5f5;
    font-weight: 500;
}

tr:hover {
    background-color: #f9f9f9;
}

.stats {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    background-color: #f0f0f0;
    padding: 15px;
    border-radius: 4px;
    margin-bottom: 20px;
}

.stat-item {
    text-align: center;
    min-width: 150px;
    margin: 10px;
}

.stat-value {
    font-size: 24px;
    font-weight: bold;
    color: #007bff;
}

.stat-label {
    font-size: 14px;
    color: #666;
}

.message {
    padding: 10px;
    border-radius: 4px;
    margin-bottom: 15px;
}

.message.success {
    background-color: #dff0d8;
    color: #3c763d;
    border: 1px solid #d6e9c6;
}

.message.error {
    background-color: #f2dede;
    color: #a94442;
    border: 1px solid #ebccd1;
}

.message.warning {
    background-color: #fcf8e3;
    color: #8a6d3b;
    border: 1px solid #faebcc;
}

.message.info {
    background-color: #d9edf7;
    color: #31708f;
    border: 1px solid #bce8f1;
}

.pagination {
    display: flex;
    justify-content: center;
    margin: 20px 0;
}

.pagination a {
    padding: 8px 16px;
    margin: 0 4px;
    text-decoration: none;
    border: 1px solid #ddd;
    color: #007bff;
    border-radius: 4px;
}

.pagination a:hover {
    background-color: #ddd;
}

.pagination .active {
    background-color: #007bff;
    color: white;
    border-color: #007bff;
}

.avatar {
    max-width: 100px;
    border-radius: 50%;
    border: 3px solid #f0f0f0;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

.cdk-display {
    font-size: 24px;
    font-weight: bold;
    color: #5cb85c;
    background-color: #f9f9f9;
    padding: 15px;
    border-radius: 4px;
    margin: 20px 0;
    word-break: break-all;
    border: 1px solid #d6e9c6;
}

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

@media screen and (max-width: 768px) {
    .profile-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
    }
    
    .profile-details {
        grid-template-columns: 1fr;
    }
    
    .user-nav ul {
        flex-direction: column;
        align-items: stretch;
    }
    
    .user-nav li {
        padding: 0;
    }
    
    .user-nav li a {
        padding: 15px 20px;
    }
    
    .user-nav li:not(:last-child):after {
        display: none;
    }
    
    .user-nav li.active:after {
        width: 100%;
        height: 2px;
    }
    
    .security-status {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }
    
    .last-changed {
        margin-left: 0;
        margin-top: 5px;
    }
    
    .page-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .stats {
        flex-direction: column;
        align-items: center;
    }
    
    .stat-item {
        min-width: 120px;
        margin: 8px 0;
    }
}

/* 登录页面特定样式 */
.login-container {
    max-width: 400px;
    margin: 100px auto;
    background: #fff;
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 3px 20px rgba(0, 0, 0, 0.08);
    text-align: center;
}

.login-title {
    font-size: 28px;
    color: #333;
    margin-bottom: 30px;
    font-weight: 600;
}

.login-info {
    background-color: #d9edf7;
    color: #31708f;
    padding: 15px;
    border-radius: 4px;
    margin-bottom: 20px;
    border: 1px solid #bce8f1;
}

/* 管理员后台特定样式 */
.admin-menu {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    margin-bottom: 20px;
    gap: 10px;
}

.admin-menu .btn {
    min-width: 150px;
    text-align: center;
}

/* 用户中心特定样式 */
.user-stats {
    display: flex;
    justify-content: space-around;
    background-color: #f0f0f0;
    padding: 15px;
    border-radius: 4px;
    margin-bottom: 20px;
}

.user-stats .stat-item {
    text-align: center;
}

.user-stats .stat-value {
    font-size: 24px;
    font-weight: bold;
    color: #007bff;
}

.user-stats .stat-label {
    font-size: 14px;
    color: #666;
}

/* 表单容器样式 */
.form-container {
    max-width: 600px;
    margin: 30px auto;
    background: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 3px 20px rgba(0, 0, 0, 0.08);
}

.form-title {
    font-size: 24px;
    color: #333;
    margin-bottom: 25px;
    text-align: center;
    font-weight: 600;
}

/* 表格增强样式 */
.data-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.data-table th {
    background: linear-gradient(135deg, #1E9FFF 0%, #0d8bf2 100%);
    color: white;
    font-weight: 500;
    padding: 15px;
}

.data-table td {
    padding: 15px;
    border-bottom: 1px solid #f0f0f0;
}

.data-table tr:last-child td {
    border-bottom: none;
}

.data-table tr:hover {
    background-color: #f8f9fc;
}

/* 卡片样式 */
.card {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    padding: 20px;
    margin-bottom: 20px;
}

.card-header {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #f0f0f0;
}

.card-header h3 {
    font-size: 18px;
    color: #333;
    margin: 0;
    display: flex;
    align-items: center;
}

.card-header h3 i {
    margin-right: 8px;
    color: #1E9FFF;
}

.card-body {
    padding: 10px 0;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .layui-container {
        margin: 15px;
        padding: 15px;
        max-width: none;
        box-sizing: border-box;
    }
    
    .form-container {
        margin: 15px;
        padding: 20px;
        max-width: none;
        box-sizing: border-box;
    }
    
    .login-container {
        margin: 50px 15px;
        padding: 30px;
        max-width: none;
        box-sizing: border-box;
    }
    
    .page-header {
        flex-direction: column;
        align-items: stretch;
        gap: 15px;
    }
    
    .stats, .user-stats {
        flex-direction: column;
        align-items: center;
    }
    
    .stat-item {
        min-width: 120px;
        margin: 8px 0;
    }
    
    .profile-details {
        grid-template-columns: 1fr;
    }
    
    .user-nav ul {
        flex-direction: column;
    }
    
    .user-nav li {
        padding: 0;
    }
    
    .user-nav li a {
        padding: 15px 20px;
    }
    
    table {
        font-size: 14px;
    }
    
    th, td {
        padding: 8px 10px;
    }
    
    .btn {
        width: auto;
        min-width: 120px;
        max-width: 100%;
        justify-content: center;
        margin: 5px 0;
        box-sizing: border-box;
    }
    
    .admin-menu {
        flex-direction: column;
        align-items: stretch;
    }
    
    .admin-menu .btn {
        width: 100%;
        min-width: auto;
        margin: 5px 0;
    }
}

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

.slide-in {
    animation: slideIn 0.5s ease-in-out;
}

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

/* 工具类 */
.text-center {
    text-align: center;
}

.text-left {
    text-align: left;
}

.text-right {
    text-align: right;
}

.mt-10 {
    margin-top: 10px;
}

.mt-20 {
    margin-top: 20px;
}

.mb-10 {
    margin-bottom: 10px;
}

.mb-20 {
    margin-bottom: 20px;
}

.ml-10 {
    margin-left: 10px;
}

.mr-10 {
    margin-right: 10px;
}

.p-10 {
    padding: 10px;
}

.p-20 {
    padding: 20px;
}

.hidden {
    display: none;
}

.flex {
    display: flex;
}

.flex-column {
    flex-direction: column;
}

.flex-center {
    display: flex;
    align-items: center;
    justify-content: center;
}

.flex-between {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.flex-around {
    display: flex;
    align-items: center;
    justify-content: space-around;
}

.grid {
    display: grid;
}

.grid-2 {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

.grid-3 {
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
}

.gap-10 {
    gap: 10px;
}

.gap-20 {
    gap: 20px;
}

/* 颜色工具类 */
.text-primary {
    color: #1E9FFF;
}

.text-success {
    color: #5FB878;
}

.text-warning {
    color: #FFB800;
}

.text-danger {
    color: #FF5722;
}

.text-muted {
    color: #999;
}

.bg-primary {
    background-color: #1E9FFF;
}

.bg-success {
    background-color: #5FB878;
}

.bg-warning {
    background-color: #FFB800;
}

.bg-danger {
    background-color: #FF5722;
}

.bg-light {
    background-color: #f8f9fc;
}

.bg-white {
    background-color: #fff;
}

/* 边框工具类 */
.border {
    border: 1px solid #e6e6e6;
}

.border-top {
    border-top: 1px solid #e6e6e6;
}

.border-bottom {
    border-bottom: 1px solid #e6e6e6;
}

.border-left {
    border-left: 1px solid #e6e6e6;
}

.border-right {
    border-right: 1px solid #e6e6e6;
}

.border-radius {
    border-radius: 4px;
}

.border-radius-lg {
    border-radius: 8px;
}

.border-radius-circle {
    border-radius: 50%;
}

/* 阴影工具类 */
.shadow {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.shadow-lg {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.shadow-sm {
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.05);
}

/* 响应式显示工具类 */
.d-none {
    display: none;
}

.d-block {
    display: block;
}

.d-flex {
    display: flex;
}

.d-grid {
    display: grid;
}

@media (max-width: 768px) {
    .d-md-none {
        display: none;
    }
    
    .d-md-block {
        display: block;
    }
    
    .d-md-flex {
        display: flex;
    }
}

@media (min-width: 769px) {
    .d-lg-none {
        display: none;
    }
    
    .d-lg-block {
        display: block;
    }
    
    .d-lg-flex {
        display: flex;
    }
}

/* 加载动画 */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid #1E9FFF;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loading-container {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 40px;
}

/* 过渡效果 */
.transition {
    transition: all 0.3s ease;
}

.transition-slow {
    transition: all 0.5s ease;
}

.transition-fast {
    transition: all 0.15s ease;
}

/* 自定义滚动条 */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}

/* 选择文本样式 */
::selection {
    background-color: #1E9FFF;
    color: white;
}

::-moz-selection {
    background-color: #1E9FFF;
    color: white;
} 