
body {
    display: flex;
    justify-content: center;
    /*align-items: center;*/
    min-height: 100vh;
    background-color: #f0f5ff;
}

a {
    text-decoration: none; /* 去除下划线 */
    color: inherit;        /* 继承父元素的颜色 */
    outline: none;         /* 去除焦点时的轮廓 */
}


.dashboard-container {
    width: 1440px;
    min-height: 900px;
    background: white;
    box-shadow: 0 15px 40px rgba(16, 41, 83, 0.12);
    border: 2px solid rgba(18, 17, 42, 0.07);
    border-radius: 12px;
    overflow: hidden;
    position: relative;
}

/* 头部导航 */
.app-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 22px 40px;
    background: linear-gradient(to right, #1E3B70, #0A2463);
    color: white;
    box-shadow: 0 4px 15px rgba(10, 36, 99, 0.2);
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 16px;
}

.logo {
    width: 50px;
    height: 50px;
    border-radius: 10px;
    background: linear-gradient(45deg, #3273dc, #409EFF);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: white;
    box-shadow: 0 6px 12px rgba(32, 109, 222, 0.4);
}

.app-title {
    font-size: 22px;
    font-weight: 700;
}

.header-actions {
    display: flex;
    gap: 18px;
    align-items: center;
}

.user-profile {
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(255, 255, 255, 0.12);
    padding: 8px 15px;
    border-radius: 30px;
    cursor: pointer;
}

.user-avatar {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: linear-gradient(45deg, #4e86e4, #6aa9f4);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 500;
}

/* 主体内容区域 */
.main-logo {
    margin-bottom: 20px;
    margin-top: 30px;
}
.main-logo img{
    width: 200px;
}
/* 主体内容区域 */
.main-content {
    display: flex;
    width: 1000px;
    height: auto;
    flex-direction: column;
}

/* 侧边导航 */
.sidebar {
    width: 240px;
    background: #f8fbff;
    border-right: 1px solid #e8eeff;
    padding: 30px 0;
}

.nav-item {
    padding: 14px 28px;
    display: flex;
    align-items: center;
    gap: 16px;
    font-size: 16px;
    color: #5A6782;
    cursor: pointer;
    transition: all 0.3s;
}

.nav-item:hover, .nav-item.active {
    background: rgba(78, 159, 255, 0.08);
    border-left: 4px solid #409EFF;
    color: #0A2463;
    font-weight: 500;
}

.nav-icon {
    width: 22px;
    text-align: center;
}

/* 内容区域 */
.content-area {
    flex: 1;
    padding: 30px 40px;
}

.content-header {
    margin-bottom: 28px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-title {
    font-size: 28px;
    font-weight: 700;
    color: #0A2463;
}

.actions-container {
    display: flex;
    gap: 16px;
}

.action-btn {
    padding: 12px 20px;
    border-radius: 8px;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s;
    border: none;
    font-size: 14px;
}

.btn-disabled {
    background: #EBEEF5;
    color: #C0C4CC;
}

.btn-active {
    background: #1E3B70;
    color: white;
}

/* 公司信息卡片 */
.company-card {
    background: white;
    border-radius: 14px;
    box-shadow: 0 10px 25px rgba(16, 41, 83, 0.08);
    padding: 28px;
    margin-bottom: 40px;
    display: flex;
    align-items: center;
    gap: 28px;
}

.company-logo {
    width: 120px;
    height: 120px;
    border-radius: 16px;
    background: linear-gradient(135deg, #0A2463 0%, #2c5fbd 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
    color: white;
    flex-shrink: 0;
}

.company-info {
    flex: 1;
}

.company-header {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    gap: 16px;
    flex-wrap: wrap;
}

.company-name {
    font-size: 20px;
    font-weight: 700;
    color: #0A2463;
    margin:0;
}

.status-badge {
    padding: 6px 20px;
    border-radius: 30px;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.status-resident {
    background: rgba(40, 167, 69, 0.12);
    color: #28a745;
}

.status-pending {
    background: rgba(253, 193, 74, 0.12);
    color: #fdc14a;
}

.status-not-join {
    background: rgb(254, 240, 240);
    color: #F56C6C;
}

.company-stats {
    display: flex;
    gap: 30px;
    margin-top: 20px;
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px;
    background: #f8fbff;
    border-radius: 12px;
    width: 100px;
}

.stat-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: #e6f0ff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    color: #1E3B70;
    margin-bottom: 16px;
}

.stat-value {
    font-size: 20px;
    font-weight: 700;
    color: #0A2463;
    margin-bottom: 5px;
}

.stat-label {
    font-size: 15px;
    color: #66758B;
}

/* 投诉列表部分 */
.complaints-section {
    background: white;
    border-radius: 14px;
    box-shadow: 0 10px 25px rgba(16, 41, 83, 0.08);
    /*overflow: hidden;*/
}

.section-header {
    padding: 2px 28px;
    border-bottom: 1px solid #e8eeff;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.section-title {
    font-size: 18px;
    font-weight: 600;
    color: #0A2463;
}

.section-actions {
    display: flex;
    gap: 12px;
}

.filter-btn {
    padding: 8px 16px;
    background: #f8fbff;
    border: 1px solid #e8eeff;
    border-radius: 8px;
    color: #5A6782;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s;
}

.filter-btn:hover, .filter-btn.active {
    background: #1E3B70;
    color: white;
    border-color: #1E3B70;
}

.complaints-list {
    /*max-height: 420px;*/
    /*overflow-y: auto;*/
}

.complaint-card {
    padding: 24px 28px;
    border-bottom: 1px solid #e8eeff;
    cursor: pointer;
    transition: all 0.3s;
}

.complaint-card:hover {
    background: rgba(78, 159, 255, 0.03);
}

.complaint-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 18px;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 14px;
}

.user-avatar-small {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: linear-gradient(45deg, #4e86e4, #6aa9f4);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 500;
    font-size: 16px;
}

.user-avatar-small img{
    width: 60px;
}
.user-details h4 {
    font-size: 16px;
    font-weight: 600;
    color: #0A2463;
    margin-bottom: 4px;
}

.user-details p {
    font-size: 14px;
    color: #8895ab;
}

.complaint-status {
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
}

.status-resolved {
    background: rgba(40, 167, 69, 0.12);
    color: #28a745;
}

.status-replied {
    background: rgba(78, 159, 255, 0.12);
    color: #1E3B70;
}

.status-pending {
    background: rgba(253, 193, 74, 0.12);
    color: #E6A23C;
}

.complaint-content {
    background: #f8fbff;
    border-radius: 10px;
    padding: 16px;
    margin: 16px 0 10px;
    color: #4A5568;
    line-height: 2;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    overflow: hidden;
    text-overflow: ellipsis;
    max-height: 5.5em;
    letter-spacing: 0.15em;
    /*text-indent: 16px;*/
}

.complaint-meta {
    display: flex;
    justify-content: space-between;
    color: #8895ab;
    font-size: 13px;
}

/* 评分卡片 */
.rating-card {
    position: absolute;
    top: 160px;
    right: 40px;
    background: white;
    border-radius: 16px;
    padding: 22px;
    width: 260px;
    box-shadow: 0 8px 30px rgba(16, 41, 83, 0.15);
    border: 1px solid #e8eeff;
    text-align: center;
}

.rating-value {
    font-size: 52px;
    font-weight: 700;
    color: #0A2463;
    line-height: 1;
    margin-bottom: 10px;
}

.rating-label {
    font-size: 16px;
    color: #5A6782;
    margin-bottom: 18px;
}

.rating-stars {
    display: flex;
    justify-content: center;
    gap: 5px;
    margin-bottom: 24px;
}

.rating-stars i {
    color: #FFD466;
    font-size: 22px;
}

.rating-hint {
    font-size: 13px;
    color: #8895ab;
    padding-top: 15px;
    border-top: 1px solid #e8eeff;
}

/* 响应式调整 */
@media (max-width: 1200px) {
    .dashboard-container {
        transform: scale(0.9);
        transform-origin: top center;
    }
}
