/* AI 海关编码查询页面样式 */

.aihscode-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 30px 20px;
    min-height: 600px;
}

/* 查询区域样式 */
.query-section {
    background: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    margin-bottom: 30px;
}

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

.query-form .form-group {
    margin-bottom: 0;
    position: relative; /* 为下拉列表提供定位参考 */
}

.query-form label {
    display: block;
    font-size: 16px;
    color: #666;
    margin-bottom: 10px;
    font-weight: 500;
}

.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.input-wrapper .form-control {
    flex: 1;
    height: 45px;
    font-size: 16px;
    border: 2px solid #ddd;
    border-radius: 4px 0 0 4px;
    padding: 10px 15px;
    transition: border-color 0.3s;
}

.input-wrapper .form-control:focus {
    border-color: #6CBA48;
    outline: none;
}

.ai-classify-btn {
    height: 45px;
    padding: 0 30px;
    background: #6CBA48;
    color: #fff;
    border: none;
    border-radius: 0 4px 4px 0;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.3s;
}

.ai-classify-btn:hover {
    background: #5aa83a;
}

.ai-classify-btn:active {
    background: #4a9a2a;
}

/* 下拉提示列表样式 */
.suggestion-list {
    position: absolute;
    top: 100%;
    left: 0;
    width: calc(100% - 90px); /* 减去按钮宽度，与输入框宽度一致 */
    background: #fff;
    border: 1px solid #ddd;
    border-top: none;
    border-radius: 0 0 4px 4px;
    max-height: 300px;
    overflow-y: auto;
    z-index: 1000;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    display: none;
    margin-top: 0; /* 紧贴输入框，无额外间距 */
}

.suggestion-item {
    padding: 12px 15px;
    cursor: pointer;
    border-bottom: 1px solid #f0f0f0;
    transition: background 0.2s;
    word-break: break-all; /* 防止文字过长超出边界 */
}

.suggestion-item:hover {
    background: #f5f5f5;
}

.suggestion-item:last-child {
    border-bottom: none;
}

.suggestion-item .goods-name {
    color: #333;
    font-size: 14px;
    word-break: break-all; /* 防止文字过长超出边界 */
}

.suggestion-item .hscode {
    color: #999;
    font-size: 12px;
    margin-top: 4px;
    word-break: break-all; /* 防止文字过长超出边界 */
}

/* 结果区域样式 */
.result-section {
    background: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.result-title {
    font-size: 20px;
    color: #333;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #6CBA48;
    font-weight: bold;
}

/* 海关编码信息表格 */
.hscode-info-table {
    margin-bottom: 25px;
}

.hscode-info-table .table {
    margin-bottom: 0;
}

.hscode-info-table .label-cell {
    width: 150px;
    background: #f9f9f9;
    font-weight: bold;
    color: #333;
    padding: 15px;
    font-size: 15px;
}

.hscode-info-table .value-cell {
    padding: 15px;
    font-size: 15px;
    color: #333;
}

.hscode-info-table .hscode-value {
    font-size: 24px;
    font-weight: bold;
    color: #6CBA48;
}

/* 申报要素区域 */
.declare-section {
    margin-bottom: 25px;
    padding: 20px;
    background: #f9f9f9;
    border-radius: 4px;
}

.subsection-title {
    font-size: 16px;
    color: #333;
    margin-bottom: 15px;
    font-weight: bold;
}

.declare-row {
    margin-bottom: 12px;
    line-height: 1.8;
}

.declare-row:last-child {
    margin-bottom: 0;
}

.declare-label {
    font-weight: bold;
    color: #333;
    margin-right: 8px;
}

.declare-label.export-label {
    color: #d9534f;
}

.declare-label.import-label {
    color: #d9534f;
}

.declare-content {
    color: #666;
    font-size: 14px;
}

/* 税率区域 */
.tax-section {
    margin-bottom: 25px;
}

.unit-row {
    padding: 15px;
    background: #f9f9f9;
    margin-bottom: 15px;
    border-radius: 4px;
    font-size: 15px;
    color: #333;
}

.unit-separator {
    margin-left: 30px;
}

.tax-table {
    margin-bottom: 0;
}

.tax-table .tax-label {
    width: 15%;
    background: #f9f9f9;
    color: #666;
    font-size: 14px;
    padding: 12px;
}

.tax-table td:not(.tax-label) {
    padding: 12px;
    color: #333;
    font-size: 14px;
}

/* 相似申报数据表格 */
.similar-section {
    margin-top: 30px;
}

.similar-table {
    margin-bottom: 0;
    font-size: 14px;
}

.similar-table thead th {
    background: #6CBA48;
    color: #fff;
    padding: 12px;
    font-weight: bold;
    text-align: center;
    border: none;
}

.similar-table tbody td {
    padding: 12px;
    vertical-align: middle;
    border-color: #ddd;
}

.similar-table tbody tr:hover {
    background: #f9f9f9;
}

.similar-table .action-btn {
    padding: 5px 15px;
    background: #FFD700;
    color: #333;
    border: none;
    border-radius: 3px;
    cursor: pointer;
    font-size: 13px;
    font-weight: bold;
    transition: background 0.3s;
}

.similar-table .action-btn:hover {
    background: #FFC700;
}

/* 加载提示 */
.loading-tips {
    text-align: center;
    padding: 40px;
    color: #666;
    font-size: 16px;
}

.loading-tips img {
    width: 40px;
    height: 40px;
    margin-right: 10px;
    vertical-align: middle;
}

/* 错误提示 */
.error-tips {
    text-align: center;
    padding: 20px;
    color: #d9534f;
    font-size: 16px;
    background: #f9f9f9;
    border-radius: 4px;
    margin: 20px 0;
}

/* 详情弹窗样式 */
.modal-detail-dialog .modal-dialog {
    max-width: 800px;
    margin: 50px auto;
}

.modal-detail-dialog .modal-content {
    border-radius: 8px;
}

.modal-detail-dialog .modal-header {
    background: #6CBA48;
    color: #fff;
    border-radius: 8px 8px 0 0;
    padding: 20px 30px;
}

.modal-detail-dialog .modal-header .close {
    color: #fff;
    opacity: 1;
    font-size: 28px;
}

.modal-detail-dialog .modal-title {
    color: #fff;
    font-size: 20px;
    font-weight: bold;
}

.modal-detail-dialog .modal-body {
    padding: 0;
    max-height: 600px;
    overflow-y: auto;
}

.detail-table-wrapper {
    padding: 30px;
}

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

.detail-table tr {
    border-bottom: 1px solid #e0e0e0;
}

.detail-table tr:nth-child(odd) {
    background: #f0f8e8;
}

.detail-table tr:nth-child(even) {
    background: #fff;
}

.detail-table .detail-label {
    width: 140px;
    padding: 12px 15px;
    font-weight: bold;
    color: #333;
    font-size: 14px;
}

.detail-table .detail-value {
    padding: 12px 15px;
    color: #666;
    font-size: 14px;
    line-height: 1.6;
}

.detail-table .detail-textarea {
    white-space: pre-wrap;
    word-wrap: break-word;
    max-width: 600px;
}

.modal-detail-dialog .modal-footer {
    border-top: 1px solid #e0e0e0;
    padding: 15px 30px;
    text-align: right;
}

.modal-detail-dialog .modal-footer .btn {
    padding: 8px 25px;
    border-radius: 4px;
}

.modal-detail-dialog .modal-footer .btn-default {
    background: #6CBA48;
    color: #fff;
    border-color: #6CBA48;
}

.modal-detail-dialog .modal-footer .btn-default:hover {
    background: #5aa83a;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .aihscode-container {
        padding: 15px;
    }
    
    .query-section,
    .result-section {
        padding: 20px 15px;
    }
    
    .input-wrapper {
        flex-direction: column;
    }
    
    .input-wrapper .form-control {
        border-radius: 4px;
        margin-bottom: 10px;
    }
    
    .ai-classify-btn {
        border-radius: 4px;
        width: 100%;
    }
    
    .suggestion-list {
        right: 0;
    }
    
    .hscode-info-table .label-cell,
    .hscode-info-table .value-cell {
        padding: 10px;
        font-size: 14px;
    }
    
    .tax-table .tax-label {
        width: 20%;
        font-size: 13px;
    }
    
    .detail-table .detail-label {
        width: 120px;
        font-size: 13px;
    }
    
    .detail-table .detail-value {
        font-size: 13px;
    }
}

/* ========== 底部样式（与 index.html 保持一致） ========== */
.footer {
    background: #f5f5f5;
    border-top: 1px solid #e0e0e0;
    margin-top: 50px;
}

.foot-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px 30px;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
}

.foot-item {
    width: 18%;
    min-width: 200px;
    margin-bottom: 20px;
}

.foot-item .item-title {
    font-size: 16px;
    color: #333;
    margin-bottom: 15px;
    font-weight: bold;
}

.foot-item .item-title a {
    color: #333;
    text-decoration: none;
}

.foot-item .item-title a:hover {
    color: #6CBA48;
}

.foot-item .row-line {
    display: block;
    width: 50px;
    height: 2px;
    background: #6CBA48;
    margin-bottom: 15px;
}

.foot-item ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.foot-item ul li {
    margin-bottom: 10px;
    font-size: 14px;
    color: #666;
    line-height: 1.6;
}

.foot-item ul li a {
    color: #666;
    text-decoration: none;
    transition: color 0.3s;
}

.foot-item ul li a:hover {
    color: #6CBA48;
}

.foot-item img {
    max-width: 100%;
    height: auto;
    margin-top: 10px;
}

.foot-bottom {
    background: #fff;
    border-top: 1px solid #e0e0e0;
    padding: 20px;
    text-align: center;
}

.foot-bottom .copyright {
    font-size: 14px;
    color: #666;
    margin-bottom: 10px;
}

.foot-bottom .version {
    font-size: 14px;
    color: #666;
}

.foot-bottom .version a {
    color: #666;
    text-decoration: none;
}

.foot-bottom .version a:hover {
    color: #6CBA48;
}

/* 右侧固定悬浮按钮 */
.right-fixed {
    position: fixed;
    right: 20px;
    bottom: 100px;
    z-index: 999;
}

.contact-us {
    width: 60px;
    height: 60px;
    background: #6CBA48;
    border-radius: 50%;
    text-align: center;
    cursor: pointer;
    margin-bottom: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    transition: background 0.3s;
}

.contact-us:hover {
    background: #5aa83a;
}

.contact-us img {
    width: 30px;
    height: 30px;
    margin-top: 15px;
}

.contact-us span {
    display: block;
    color: #fff;
    font-size: 12px;
    line-height: 1.2;
}

.toTop {
    width: 60px;
    height: 60px;
    background: #fff;
    border-radius: 50%;
    cursor: pointer;
    margin-bottom: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    transition: background 0.3s;
}

.toTop:hover {
    background: #f5f5f5;
}

.toTop img {
    width: 30px;
    height: 30px;
    margin-top: 15px;
}

.concat-us-down {
    position: absolute;
    right: 70px;
    bottom: 0;
    background: #6CBA48;
    padding: 15px;
    border-radius: 8px;
    color: #fff;
    min-width: 200px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.concat-us-down .top-part,
.concat-us-down .bottom-part {
    margin-bottom: 10px;
    display: flex;
    align-items: center;
}

.concat-us-down .top-part:last-child,
.concat-us-down .bottom-part:last-child {
    margin-bottom: 0;
}

.concat-us-down img {
    width: 20px;
    height: 20px;
    margin-right: 10px;
}

.concat-us-down span {
    font-size: 14px;
}

.concat-us-down .bottom-part div {
    display: flex;
    flex-direction: column;
}

.concat-us-down .bottom-part span {
    font-size: 12px;
    line-height: 1.5;
}

/* 响应式底部 */
@media (max-width: 768px) {
    .foot-container {
        flex-direction: column;
    }
    
    .foot-item {
        width: 100%;
        margin-bottom: 30px;
    }
    
    .right-fixed {
        right: 10px;
        bottom: 50px;
    }
    
    .contact-us,
    .toTop {
        width: 50px;
        height: 50px;
    }
    
    .contact-us img,
    .toTop img {
        width: 25px;
        height: 25px;
        margin-top: 12px;
    }
    
    .concat-us-down {
        right: 60px;
        min-width: 180px;
    }
}
