/* 重置样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background: #f8f9fa;
}

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

/* 头部样式 */
.header {
    background: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
}

.logo {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo-img {
    height: 50px;
    width: auto;
}

.logo-text {
    font-size: 24px;
    font-weight: bold;
    color: #2c3e50;
}

.logo-text small {
    display: block;
    font-size: 12px;
    font-weight: normal;
    color: #7f8c8d;
    margin-top: -5px;
}

.tagline {
    color: #e74c3c;
    font-size: 14px;
    font-weight: 500;
    margin-left: 10px;
    padding-left: 10px;
    border-left: 2px solid #e74c3c;
}

.nav-list {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav-link {
    text-decoration: none;
    color: #2c3e50;
    font-weight: 500;
    padding: 10px 0;
    transition: color 0.3s ease;
    position: relative;
}

.nav-link:hover {
    color: #e74c3c;
}

.nav-link:hover::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    right: 0;
    height: 2px;
    background: #e74c3c;
}

.contact .phone {
    color: #e74c3c;
    font-weight: bold;
    font-size: 18px;
}

/* 主要内容区域 */
.main {
    padding: 60px 0;
    min-height: calc(100vh - 200px);
}

.content-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 60vh;
}

.content-wrapper.result-mode {
    display: block;
    min-height: auto;
}

/* 查询表单 */
.query-section {
    background: #fff;
    border-radius: 0;
    padding: 0;
    box-shadow: none;
    position: relative;
    width: 100%;
    max-width: 1000px;
}

.query-title {
    font-size: 24px;
    color: #333;
    margin-bottom: 30px;
    text-align: left;
    font-weight: normal;
}

.query-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.form-group {
    position: relative;
}

.form-input {
    width: 100%;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 0;
    font-size: 16px;
    transition: all 0.3s ease;
    background: #fff;
    box-sizing: border-box;
}

.form-input:focus {
    outline: none;
    border-color: #ccc;
    background: #fff;
}

.form-input::placeholder {
    color: #999;
}

.checkbox-wrapper {
    display: flex;
    align-items: center;
    gap: 5px;
    cursor: pointer;
    font-size: 14px;
    color: #666;
    margin: 15px 0;
    justify-content: center;
}

.checkbox-wrapper input[type="checkbox"] {
    width: 16px;
    height: 16px;
}

.agreement-link {
    color: #e85c13;
    text-decoration: none;
}

.agreement-link:hover {
    text-decoration: underline;
}

.submit-btn {
    background: #e85c13;
    color: white;
    border: none;
    padding: 15px 32px;
    border-radius: 0;
    font-size: 16px;
    font-weight: normal;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
}

.submit-btn:hover {
    background: #d45511;
}

.submit-btn:active {
    background: #c04e0f;
}

/* 错误消息 */
.error-message {
    background: #fee;
    color: #c53030;
    padding: 15px 20px;
    border-radius: 12px;
    border-left: 4px solid #e53e3e;
    margin-bottom: 20px;
    font-weight: 500;
}

/* 查询结果表格样式 */
/* 报告列表页面样式 */
.report-list-page {
    background: #fff;
    width: 100%;
    max-width: 1000px;
    margin: 0 auto;
}

.report-list-header {
    text-align: center;
    margin-bottom: 20px;
    padding: 10px 0;
    border-bottom: 1px solid #eee;
}

.report-list-header h3 {
    font-size: 18px;
    color: #333;
    font-weight: normal;
}

.report-table-container {
    width: 100%;
    overflow-x: auto;
}

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

.report-table th {
    background-color: #f5f5f5;
    color: #333;
    font-weight: normal;
    text-align: left;
    padding: 12px 15px;
    border: 1px solid #ddd;
}

.report-table td {
    padding: 12px 15px;
    border: 1px solid #ddd;
    color: #333;
}

.view-link {
    color: #0066cc;
    text-decoration: none;
}

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

.page-header {
    background: #f8f9fa;
    padding: 20px;
    border-bottom: 1px solid #e9ecef;
    text-align: center;
}

.logo-section {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
}

.logo-text {
    font-size: 24px;
    font-weight: bold;
    color: #2c3e50;
}

.page-title {
    font-size: 20px;
    color: #6c757d;
}

.result-table-container {
    padding: 20px;
}

.result-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
    background: #fff;
}

.result-table thead {
    background: #e9ecef;
}

.result-table th,
.result-table td {
    padding: 15px 20px;
    text-align: left;
    border: 1px solid #dee2e6;
}

.result-table th {
    font-weight: 600;
    color: #2c3e50;
    background: #f8f9fa;
}

.result-table td {
    color: #495057;
}

.detail-link {
    color: #007bff;
    text-decoration: none;
    font-weight: 500;
    cursor: pointer;
}

.detail-link:hover {
    color: #0056b3;
    text-decoration: underline;
}

/* 报告详情页面样式 */
.report-detail-page {
    background: #fff;
    width: 100%;
    max-width: 1000px;
    margin: 0 auto;
    padding: 20px 0;
}

.report-detail-header {
    text-align: center;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}

.report-detail-header h3 {
    font-size: 18px;
    color: #333;
    font-weight: normal;
}

.report-detail-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-bottom: 20px;
}

.detail-item {
    display: flex;
    align-items: flex-start;
    padding: 8px 0;
}

.detail-item label {
    font-weight: normal;
    color: #333;
    min-width: 80px;
    text-align: right;
    margin-right: 10px;
}

.detail-item span {
    color: #333;
}

.report-notes {
    margin-top: 30px;
    padding: 20px;
    background: #f9f9f9;
    font-size: 12px;
    color: #666;
    line-height: 1.6;
}

.report-notes p {
    margin-bottom: 5px;
}

.copyright {
    text-align: center;
    margin-top: 20px;
    padding-top: 10px;
    border-top: 1px solid #eee;
    font-size: 12px;
    color: #999;
}

.detail-table-container {
    width: 100%;
    overflow-x: auto;
}

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

.detail-table td {
    padding: 12px 15px;
    border: none;
    font-size: 14px;
    color: #333;
    border-bottom: 1px solid #eee;
}

.detail-label {
    font-weight: normal;
    color: #333;
    background-color: transparent;
    width: 90px;
    white-space: nowrap;
    text-align: right;
}

.report-photo-section {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #e9ecef;
}

.report-photo-section h4 {
    color: #2c3e50;
    margin-bottom: 15px;
}

.report-photo {
    text-align: center;
}

.report-img {
    max-width: 100%;
    max-height: 500px;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    cursor: pointer;
    transition: transform 0.3s ease;
}

.report-img:hover {
    transform: scale(1.02);
}

.download-btn {
    display: inline-block;
    background: #28a745;
    color: white;
    padding: 8px 16px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 500;
    transition: background 0.3s ease;
}

.download-btn:hover {
    background: #218838;
}

.action-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
    padding: 20px;
    border-top: 1px solid #e9ecef;
}

.btn-primary,
.btn-secondary {
    padding: 12px 24px;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

.btn-primary {
    background: #007bff;
    color: white;
}

.btn-primary:hover {
    background: #0056b3;
}

.btn-secondary {
    background: #6c757d;
    color: white;
}

.btn-secondary:hover {
    background: #545b62;
}

.company-info {
    background: #2c3e50;
    color: #ecf0f1;
    text-align: center;
    padding: 20px;
    margin-top: 20px;
}

.company-info p {
    margin: 5px 0;
    font-size: 14px;
}

/* 底部样式 */
.footer {
    background: #2c3e50;
    color: #ecf0f1;
    padding: 30px 0;
    margin-top: 80px;
}

.footer-contact-only {
    text-align: right;
    padding: 20px 0;
}

.footer-contact-only .contact-info {
    display: inline-block;
    text-align: right;
}

.footer-contact-only .contact-info p {
    margin: 8px 0;
    color: #ecf0f1;
}

.footer-beian {
    text-align: center;
    margin-top: 20px;
    padding-top: 10px;
    border-top: 1px solid rgba(255,255,255,0.1);
    font-size: 12px;
    color: #999;
}

.footer-beian p {
    margin: 5px 0;
}

.footer-contact-only .contact-info strong {
    color: #fff;
}

.phone-large {
    font-size: 24px;
    font-weight: bold;
    color: #e74c3c;
    margin: 10px 0;
}

/* 管理员登录链接 */
.admin-login-link {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 1000;
}

.admin-link {
    background: rgba(0,0,0,0.7);
    color: white;
    padding: 12px 20px;
    border-radius: 25px;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.admin-link:hover {
    background: rgba(0,0,0,0.9);
    transform: translateY(-2px);
}

/* 响应式设计 */
@media (max-width: 1024px) {
    .footer-contact-only {
        text-align: center;
    }
}

@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
    
    .nav-list {
        flex-wrap: wrap;
        justify-content: center;
        gap: 15px;
    }
    
    .logo {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }
    
    .query-section {
        padding: 30px 20px;
        margin: 0 10px;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 30px;
    }
    
    .footer-info {
        grid-template-columns: 1fr;
        gap: 25px;
    }
    
    .footer-contact .contact-info {
        text-align: center;
    }
    
    /* 查询结果表格响应式 */
    .result-table-container {
        padding: 10px;
        overflow-x: auto;
    }
    
    .result-table th,
    .result-table td {
        padding: 10px 8px;
        font-size: 14px;
    }
    
    .logo-section {
        flex-direction: column;
        gap: 10px;
    }
    
    .logo-text {
        font-size: 20px;
    }
    
    .page-title {
        font-size: 16px;
    }
    
    .detail-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .report-detail {
        margin: 10px;
        padding: 20px;
    }
    
    .action-buttons {
        flex-direction: column;
        gap: 10px;
    }
    
    .btn-primary,
    .btn-secondary {
        width: 100%;
        max-width: 300px;
        margin: 0 auto;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .main {
        padding: 30px 0;
    }
    
    .query-section {
        margin: 0 5px;
        padding: 25px 15px;
    }
    
    .query-title {
        font-size: 24px;
    }
    
    .form-input {
        padding: 12px 15px;
    }
    
    .submit-btn {
        padding: 14px 24px;
        font-size: 16px;
    }
    
    .admin-login-link {
        bottom: 20px;
        right: 20px;
    }
}

/* 动画效果 */
.query-section {
    animation: fadeInUp 0.8s ease-out;
}

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

/* 移除自定义滚动条样式 */

/* 手机端隐藏头部导航栏 */
@media (max-width: 768px) {
  .header,
  .nav {
    display: none !important;
  }
}

/* 全国服务热线和电话同一行样式 */
.hotline-label {
  font-weight: bold;
  font-size: 16px;
  color: #fff;
  margin-right: 8px;
}
.phone-large-inline {
  font-size: 24px;
  font-weight: bold;
  color: #e74c3c;
  display: inline;
}

/* 只在手机端显示移动logo副标题 */
.mobile-logo-title { display: none !important; }
@media (max-width: 768px) {
  .mobile-logo-title { display: block !important; margin-top: 18px; margin-bottom: 10px; }
  .header { display: none !important; }
}
