/* 全局样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Noto Sans SC', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f5f5f5;
}

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

/* 按钮样式 */
.btn {
    display: inline-block;
    padding: 12px 24px;
    text-decoration: none;
    border-radius: 4px;
    font-weight: 500;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 16px;
}

.btn-primary {
    background-color: #1890ff;
    color: white;
}

.btn-primary:hover {
    background-color: #40a9ff;
}

.btn-secondary {
    background-color: #52c41a;
    color: white;
}

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

.btn.login {
    background-color: transparent;
    color: #1890ff;
    border: 1px solid #1890ff;
}

.btn.login:hover {
    background-color: #e6f7ff;
}

.btn.register {
    background-color: #1890ff;
    color: white;
}

.btn.register:hover {
    background-color: #40a9ff;
}

/* 导航栏 */
.navbar {
    background-color: white;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.logo h1 {
    font-size: 24px;
    color: #1890ff;
    font-weight: 700;
}

.nav-links {
    display: flex;
    list-style: none;
}

.nav-links li {
    margin-left: 30px;
}

.nav-links a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: #1890ff;
}

.nav-buttons .btn {
    margin-left: 15px;
}

/* 首页横幅 */
.hero {
    background: linear-gradient(135deg, #1890ff 0%, #40a9ff 100%);
    color: white;
    padding: 120px 0 80px;
    text-align: center;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.hero h2 {
    font-size: 48px;
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero p {
    font-size: 18px;
    margin-bottom: 30px;
    opacity: 0.9;
}

.hero-buttons .btn {
    margin: 0 10px;
    padding: 15px 30px;
    font-size: 18px;
}

/* 核心标语 */
.core-slogan {
    background-color: white;
    padding: 40px 0;
    text-align: center;
    border-bottom: 1px solid #e8e8e8;
}

.core-slogan h3 {
    font-size: 24px;
    color: #333;
    font-weight: 600;
}

/* 通用区块样式 */
.section-title {
    text-align: center;
    margin-bottom: 50px;
}

.section-title h2 {
    font-size: 36px;
    color: #333;
    font-weight: 600;
    position: relative;
    display: inline-block;
}

.section-title h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background-color: #1890ff;
}

/* 企业简介 */
.about {
    background-color: white;
    padding: 80px 0;
}

.about-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    font-size: 16px;
    line-height: 1.8;
    color: #666;
}

/* 核心方向 */
.core-direction {
    background-color: #f5f5f5;
    padding: 80px 0;
}

.direction-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.card {
    background-color: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.card h3 {
    color: #1890ff;
    margin-bottom: 15px;
    font-size: 20px;
}

.card p {
    color: #666;
    line-height: 1.6;
}

/* 理念体系 */
.concept-system {
    background-color: white;
    padding: 80px 0;
}

.concept-table {
    background-color: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.table-header {
    display: grid;
    grid-template-columns: 1fr 3fr;
    background-color: #1890ff;
    color: white;
    padding: 15px 20px;
    font-weight: 600;
}

.table-row {
    display: grid;
    grid-template-columns: 1fr 3fr;
    padding: 15px 20px;
    border-bottom: 1px solid #e8e8e8;
}

.table-row:last-child {
    border-bottom: none;
}

.table-cell {
    padding: 10px 0;
}

/* 服务项目 */
.services {
    background-color: #f5f5f5;
    padding: 80px 0;
}

.service-category {
    background-color: white;
    margin-bottom: 40px;
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.service-category h3 {
    color: #1890ff;
    margin-bottom: 10px;
    font-size: 24px;
}

.service-category > p {
    color: #666;
    margin-bottom: 30px;
    font-weight: 500;
}

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

.feature-card {
    background-color: #fafafa;
    padding: 25px;
    border-radius: 8px;
    border-left: 4px solid #1890ff;
    transition: all 0.3s ease;
}

.feature-card:hover {
    transform: translateX(5px);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.feature-card h4 {
    color: #333;
    margin-bottom: 15px;
    font-size: 18px;
}

.feature-card p {
    color: #666;
    line-height: 1.6;
    font-size: 14px;
}

/* 核心功能 */
.features {
    background-color: white;
    padding: 80px 0;
}

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

.feature-item {
    text-align: center;
    padding: 30px;
    transition: transform 0.3s ease;
}

.feature-item:hover {
    transform: translateY(-5px);
}

.feature-icon {
    font-size: 48px;
    margin-bottom: 20px;
}

.feature-item h3 {
    color: #333;
    margin-bottom: 15px;
    font-size: 20px;
}

.feature-item p {
    color: #666;
    line-height: 1.6;
}

/* 联系我们 */
.contact {
    background-color: #f5f5f5;
    padding: 80px 0;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.contact-info h3 {
    color: #333;
    margin-bottom: 20px;
    font-size: 24px;
}

.contact-info p {
    margin-bottom: 15px;
    color: #666;
}

.contact-form h3 {
    color: #333;
    margin-bottom: 20px;
    font-size: 24px;
}

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

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #d9d9d9;
    border-radius: 4px;
    font-size: 16px;
    font-family: inherit;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #1890ff;
    box-shadow: 0 0 0 2px rgba(24, 144, 255, 0.2);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

/* 评价公示 */
.ratings {
    background-color: white;
    padding: 80px 0;
}

.ratings-tabs {
    display: flex;
    margin-bottom: 30px;
    border-bottom: 2px solid #e9ecef;
}

.tab-btn {
    padding: 12px 24px;
    font-size: 16px;
    font-weight: 500;
    background-color: transparent;
    border: none;
    border-bottom: 3px solid transparent;
    color: #666;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-right: 20px;
}

.tab-btn:hover {
    color: #1890ff;
}

.tab-btn.active {
    color: #1890ff;
    border-bottom-color: #1890ff;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

.rating-summary {
    text-align: center;
    margin-bottom: 40px;
    font-size: 16px;
    color: #666;
    padding: 0 20px;
}

.rating-table-container {
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    border-radius: 8px;
    margin-bottom: 20px;
    height: 550px; 
    position: relative;
}

/* 新增：表头固定容器样式 */
.table-header-wrapper {
    position: sticky;
    top: 0;
    z-index: 10;
    background-color: white;
}

/* 新增：表格内容容器样式 */
.table-body-wrapper {
    height: 360px; /* 固定高度，显示8行（减少100像素） */
    overflow: hidden; 
    position: relative;
}

/* 隐藏滚动条 */
.table-body-wrapper::-webkit-scrollbar {
    display: none;
}

.table-body-wrapper {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

/* 表格行样式 */
.table-body-wrapper table tbody {
    display: block;
    animation: scrollUp 60s linear infinite;
}

/* 确保表格行宽度正确 - 修复对齐问题 */
.table-body-wrapper table tbody tr {
    display: table;
    width: 100%;
    table-layout: fixed;
    height: 36px; /* 调整行高，比字符高度略高 */
}

/* 统一表头和内容的表格布局 */
.table-header-wrapper table,
.table-body-wrapper table {
    table-layout: fixed;
    width: 100%;
    margin: 0;
    padding: 0;
}

/* 确保表头和内容的列宽完全一致 */
#complaints-list .table-header-wrapper table,
#complaints-list .table-body-wrapper table {
    table-layout: fixed;
    width: 100%;
}

/* 为投诉公示的每一列设置精确的宽度 */
#complaints-list .table-header-wrapper table th:nth-child(1),
#complaints-list .table-body-wrapper table td:nth-child(1) {
    width: 8%; /* 编号 */
}

#complaints-list .table-header-wrapper table th:nth-child(2),
#complaints-list .table-body-wrapper table td:nth-child(2) {
    width: 15%; /* 受理时间 */
}

#complaints-list .table-header-wrapper table th:nth-child(3),
#complaints-list .table-body-wrapper table td:nth-child(3) {
    width: 12%; /* 投诉人 */
}

#complaints-list .table-header-wrapper table th:nth-child(4),
#complaints-list .table-body-wrapper table td:nth-child(4) {
    width: 15%; /* 手机号 */
}

#complaints-list .table-header-wrapper table th:nth-child(5),
#complaints-list .table-body-wrapper table td:nth-child(5) {
    width: 25%; /* 投诉内容 */
}

#complaints-list .table-header-wrapper table th:nth-child(6),
#complaints-list .table-body-wrapper table td:nth-child(6) {
    width: 15%; /* 结案时间 */
}

#complaints-list .table-header-wrapper table th:nth-child(7),
#complaints-list .table-body-wrapper table td:nth-child(7) {
    width: 10%; /* 处理满意度 */
}

/* 为评价公示的每一列设置精确的宽度 */
#ratings-list .table-header-wrapper table th:nth-child(1),
#ratings-list .table-body-wrapper table td:nth-child(1) {
    width: 18%; /* 评价时间 */
}

#ratings-list .table-header-wrapper table th:nth-child(2),
#ratings-list .table-body-wrapper table td:nth-child(2) {
    width: 15%; /* 配送公司 */
}

#ratings-list .table-header-wrapper table th:nth-child(3),
#ratings-list .table-body-wrapper table td:nth-child(3) {
    width: 12%; /* 车牌号 */
}

#ratings-list .table-header-wrapper table th:nth-child(4),
#ratings-list .table-body-wrapper table td:nth-child(4) {
    width: 12%; /* 服务态度 */
}

#ratings-list .table-header-wrapper table th:nth-child(5),
#ratings-list .table-body-wrapper table td:nth-child(5) {
    width: 12%; /* 运输时效 */
}

#ratings-list .table-header-wrapper table th:nth-child(6),
#ratings-list .table-body-wrapper table td:nth-child(6) {
    width: 12%; /* 货物完好 */
}

#ratings-list .table-header-wrapper table th:nth-child(7),
#ratings-list .table-body-wrapper table td:nth-child(7) {
    width: 19%; /* 客户满意度 */
}

/* 滚动动画 */
@keyframes scrollUp {
    0% {
        transform: translateY(0);
    }
    100% {
        transform: translateY(-50%);
    }
}

.rating-table {
    width: 100%;
    border-collapse: collapse;
    background-color: white;
}

.rating-table th,
.rating-table td {
    padding: 8px 12px; /* 减小内边距 */
    text-align: center;
    border-bottom: 1px solid #e9ecef;
    font-size: 14px; /* 减小字体大小 */
    line-height: 1.2; /* 减小行高 */
}

.rating-table th {
    background-color: #f8f9fa;
    font-weight: 600;
    color: #333;
    white-space: nowrap;
    height: 45px; /* 减小表头高度 */
}

.rating-table td {
    height: 36px; /* 减小行高，便于滚动计算 */
}

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

.rating-table tr:hover {
    background-color: #f8f9fa;
}

/* 优化滚动动画流畅度 */
.table-body-wrapper table {
    width: 100%;
    border-collapse: collapse;
}

.rating-table tbody {
    display: block;
    width: 100%;
}

.rating-table tr {
    display: table-row;
}

/* 星级评分样式 */
.stars {
    color: #fadb14;
    font-size: 18px;
    letter-spacing: 2px;
}

/* 数据更新时间 */
.rating-update {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid #e9ecef;
    color: #666;
    font-size: 14px;
}

.rating-update span {
    font-weight: 600;
    color: #1890ff;
}

/* 响应式设计 - 评价公示 */
@media (max-width: 768px) {
    .ratings {
        padding: 40px 0;
    }
    
    .ratings-tabs {
        flex-direction: column;
    }
    
    .tab-btn {
        margin-right: 0;
        margin-bottom: 10px;
        width: 100%;
        text-align: left;
    }
    
    .rating-table th,
    .rating-table td {
        padding: 12px 10px;
        font-size: 14px;
    }
    
    /* 使表格在小屏幕上可横向滚动 */
    .rating-table-container {
        overflow-x: scroll;
        -webkit-overflow-scrolling: touch;
    }

    .table-header-wrapper {
        position: sticky;
        top: 0;
        z-index: 10;
    }
}

/* 页脚 */
.footer {
    background-color: #1f2937;
    color: white;
    padding: 60px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-logo h3 {
    font-size: 24px;
    margin-bottom: 10px;
    color: #1890ff;
}

.footer-logo p {
    color: #9ca3af;
    font-size: 14px;
}

.footer-links h4,
.footer-services h4,
.footer-contact h4 {
    font-size: 18px;
    margin-bottom: 20px;
    color: white;
}

.footer-links ul,
.footer-services ul {
    list-style: none;
}

.footer-links li,
.footer-services li {
    margin-bottom: 10px;
}

.footer-links a,
.footer-services a {
    color: #9ca3af;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover,
.footer-services a:hover {
    color: #1890ff;
}

.footer-contact p {
    color: #9ca3af;
    margin-bottom: 10px;
}

.social-icons {
    margin-top: 20px;
}

.social-icons a {
    color: #9ca3af;
    margin-right: 15px;
    text-decoration: none;
    transition: color 0.3s ease;
}

.social-icons a:hover {
    color: #1890ff;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #374151;
    color: #9ca3af;
    font-size: 14px;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .navbar .container {
        flex-direction: column;
        height: auto;
        padding: 20px 0;
    }
    
    .nav-links {
        margin: 20px 0;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .nav-links li {
        margin: 0 15px;
    }
    
    .hero h2 {
        font-size: 32px;
    }
    
    .hero p {
        font-size: 16px;
    }
    
    .hero-buttons .btn {
        margin: 10px 0;
        display: block;
    }
    
    .section-title h2 {
        font-size: 28px;
    }
    
    .contact-content {
        grid-template-columns: 1fr;
    }
    
    .service-category {
        padding: 20px;
    }
    
    .feature-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .hero h2 {
        font-size: 24px;
    }
    
    .section-title h2 {
        font-size: 24px;
    }
    
    .table-header,
    .table-row {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
    }
}