/* 交易明细查询页面样式 */

/* 主导航栏样式 - 与账户信息查询页面一致 */
.main-nav {
    background: var(--ccb-primary);
}

.main-nav .container {
    display: flex;
    flex-direction: column;
}

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

.nav-list.secondary-nav {
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    padding-top: 5px;
}

.nav-item {
    position: relative;
}

.nav-link {
    display: block;
    padding: 12px 16px;
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-size: 16px;
    font-weight: 500;
    transition: all 0.3s ease;
    border-bottom: 3px solid transparent;
    white-space: nowrap;
}

.nav-link:hover,
.nav-link.active {
    background: var(--ccb-secondary);
    border-bottom-color: var(--ccb-accent);
    color: white;
}

/* 子导航栏样式 - 与账户信息查询页面一致 */
.sub-nav {
    background: white;
    border-bottom: 1px solid #e0e0e0;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.sub-nav-content {
    display: flex;
    gap: 0;
    overflow-x: auto;
}

.sub-nav-item {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 12px 20px;
    color: #333;
    font-size: 15px;
    cursor: pointer;
    border-bottom: 3px solid transparent;
    white-space: nowrap;
    transition: all 0.3s ease;
    position: relative;
}

.sub-nav-item:hover {
    background: #f8f9fa;
    color: var(--ccb-primary);
}

.sub-nav-item.active {
    color: var(--ccb-primary);
    border-bottom-color: var(--ccb-primary);
    background: #f0f8ff;
}

.sub-nav-link {
    text-decoration: none;
    color: inherit;
}

.dropdown-arrow {
    font-size: 10px;
    color: var(--ccb-primary);
    transition: transform 0.3s ease;
}

.sub-nav-item.active .dropdown-arrow {
    transform: rotate(180deg);
}

/* 面包屑导航样式 - 与账户信息查询页面一致 */
.breadcrumb {
    background: white;
    padding: 10px 0;
    border-bottom: 1px solid #e9ecef;
    font-size: 14px;
    color: #666;
}

.breadcrumb-link {
    color: var(--ccb-primary);
    text-decoration: none;
    transition: color 0.3s;
}

.breadcrumb-link:hover {
    color: var(--ccb-secondary);
}

.breadcrumb-separator {
    margin: 0 8px;
    color: #ccc;
}

.breadcrumb-current {
    color: #333;
    font-weight: 600;
}

/* 页面整体布局 */
.transaction-details-page {
    padding: 0;
    background: white;
    min-height: auto;
}

/* 页面标题 */
.page-header {
    text-align: center;
    margin-bottom: 0;
    padding: 15px 0;
    background: #1a73e8;
}

.page-header h1 {
    font-size: 1.8rem;
    color: white;
    margin: 0;
    font-weight: 600;
}

/* 查询表单区域 */
.query-form-section {
    background: white;
    border-radius: 0;
    box-shadow: none;
    margin-bottom: 0;
    border: 1px solid #dadce0;
    border-top: none;
}

.form-container {
    padding: 0;
}

/* 表单内容 */
.form-content {
    padding: 20px 30px;
    max-width: 900px;
    margin: 0 auto;
}

.form-row {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 20px;
    margin-bottom: 12px;
    padding: 6px 0;
}

/* 行内表单行样式 */
.form-row.inline-row {
    flex-direction: row;
    align-items: center;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 15px;
    width: 100%;
    margin-bottom: 0;
    padding: 6px 0;
}

/* 查询类型特别样式 */
.form-group.query-type {
    gap: 10px;
}

.form-group.required label {
    color: #d93025;
}

.form-group label {
    display: block;
    font-weight: normal;
    color: #202124;
    font-size: 14px;
    min-width: 120px;
    width: 120px;
    text-align: left;
    margin: 0;
    flex-shrink: 0;
}

.form-group input,
.form-group select {
    flex: 1;
    padding: 8px 12px;
    border: 1px solid #dadce0;
    border-radius: 3px;
    font-size: 14px;
    transition: all 0.2s ease;
    background: white;
    min-width: 150px;
    max-width: 400px;
    height: 36px;
    box-sizing: border-box;
}

.form-group input {
    cursor: text;
}

.form-group select {
    cursor: pointer;
}

.form-group select {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%235f6368' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='m6 8 4 4 4-4'/%3e%3c/svg%3e");
    background-position: right 10px center;
    background-repeat: no-repeat;
    background-size: 14px;
    padding-right: 30px;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: #1a73e8;
    box-shadow: 0 0 0 2px rgba(26, 115, 232, 0.2);
}

.form-group input::placeholder {
    color: #5f6368;
    font-style: italic;
}

/* 日期范围样式 */
.date-range {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: nowrap;
    width: 100%;
}

.date-limit-tip {
    font-size: 12px;
    color: #666;
    margin-top: 5px;
    font-style: italic;
    display: inline-block;
    white-space: nowrap;
}

.date-input {
    width: 120px !important;
    text-align: center;
    flex-shrink: 0;
}

.date-separator {
    color: #202124;
    font-weight: normal;
}

.quick-date-options {
    display: flex;
    gap: 20px;
    margin-left: 20px;
    flex-wrap: nowrap;
    align-items: center;
    flex-shrink: 0;
}

.radio-option {
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    font-size: 14px;
    color: #202124;
    flex-direction: row;
    order: 0;
}

.radio-option input[type="radio"] {
    width: 14px !important;
    height: 14px !important;
    margin: 0;
    order: 0;
}

.radio-option span {
    order: 1;
}

.help-icon {
    display: none;
}

/* 金额范围样式 */
.amount-range {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
}

.amount-input {
    width: 150px !important;
}

.range-separator {
    color: #202124;
    font-weight: normal;
}

/* 单选按钮组样式 */
.radio-group {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    flex: 1;
    align-items: center;
}

.radio-group .radio-option {
    display: flex;
    align-items: center;
    gap: 5px;
    cursor: pointer;
    font-size: 14px;
    color: #202124;
    flex-direction: row;
}

.radio-group .radio-option input[type="radio"] {
    width: 14px !important;
    height: 14px !important;
    margin: 0;
    order: 0;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    border: 1px solid #999;
    border-radius: 50%;
    background: white;
    cursor: pointer;
    position: relative;
    display: inline-block;
}

.radio-group .radio-option input[type="radio"]:checked {
    background: #1a73e8;
    border-color: #1a73e8;
}

.radio-group .radio-option input[type="radio"]:checked::after {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    width: 8px;
    height: 8px;
    background: white;
    border-radius: 50%;
}

.radio-group .radio-option span {
    order: 1;
    margin-left: 2px;
}

.radio-group .radio-option span {
    font-weight: normal;
}

.radio-group .radio-option input[type="radio"]:checked + span {
    font-weight: bold;
}

/* 输入框带帮助链接样式 */
.input-with-help {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
}

.input-with-help input {
    flex: 1;
    min-width: 200px;
}

.help-link {
    color: #1a73e8;
    text-decoration: underline;
    font-size: 14px;
    white-space: nowrap;
    padding: 0;
    border-radius: 0;
    transition: none;
}

.help-link:hover {
    background: none;
    text-decoration: underline;
}

/* 编号范围样式 */
.number-range {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
}

.number-input {
    width: 150px !important;
}

/* 操作按钮样式 */
.form-actions {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid #e5e7eb;
}

.btn-confirm,
.btn-return,
.btn-query-long {
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    font-weight: normal;
    cursor: pointer;
    transition: all 0.2s ease;
    min-width: 120px;
}

.btn-confirm,
.btn-return,
.btn-query-long {
    background: #1a73e8;
    color: white;
}

.btn-confirm:hover,
.btn-return:hover,
.btn-query-long:hover {
    background: #1557b0;
    transform: none;
    box-shadow: none;
}

/* 查询结果区域 */
.results-section {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    margin-bottom: 30px;
    overflow: hidden;
}

.results-header {
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    color: white;
    padding: 20px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.results-header h2 {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 600;
}

.results-actions {
    display: flex;
    gap: 15px;
}

.btn-download, .btn-print, .btn-refresh {
    padding: 10px 20px;
    border: none;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.btn-download:hover, .btn-print:hover, .btn-refresh:hover {
    background: rgba(255, 255, 255, 0.3);
}

.btn-refresh {
    padding: 10px 15px;
    font-size: 1.1rem;
}

.btn-refresh:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* 结果表格样式 */
.results-table {
    padding: 20px;
    overflow-x: auto;
}

.results-table table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.results-table th {
    background: #f8f9fa;
    padding: 12px 16px;
    text-align: left;
    font-weight: 600;
    color: #374151;
    border-bottom: 2px solid #e5e7eb;
}

.results-table td {
    padding: 12px 16px;
    border-bottom: 1px solid #f3f4f6;
    color: #374151;
}

.results-table tbody tr {
    transition: background-color 0.3s ease;
}

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

/* 表格列宽设置 */
.results-table th:nth-child(1), .results-table td:nth-child(1) { width: 10%; min-width: 80px; }
.results-table th:nth-child(2), .results-table td:nth-child(2) { width: 8%; min-width: 70px; }
.results-table th:nth-child(3), .results-table td:nth-child(3) { width: 12%; min-width: 100px; }
.results-table th:nth-child(4), .results-table td:nth-child(4) { width: 12%; min-width: 100px; text-align: right; }
.results-table th:nth-child(5), .results-table td:nth-child(5) { width: 8%; min-width: 70px; text-align: center; }
.results-table th:nth-child(6), .results-table td:nth-child(6) { width: 20%; min-width: 150px; }
.results-table th:nth-child(7), .results-table td:nth-child(7) { width: 20%; min-width: 150px; }
.results-table th:nth-child(8), .results-table td:nth-child(8) { width: 10%; min-width: 100px; text-align: right; }

/* 金额样式 */
.amount-positive {
    color: #10b981;
    font-weight: 600;
}

.amount-negative {
    color: #ef4444;
    font-weight: 600;
}

/* 交易方向样式 */
.direction-in {
    color: #10b981;
    font-weight: 600;
    background: rgba(16, 185, 129, 0.1);
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
}

.direction-out {
    color: #ef4444;
    font-weight: 600;
    background: rgba(239, 68, 68, 0.1);
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
}

/* 分页样式 */
.results-footer {
    background: #f8f9fa;
    padding: 20px 30px;
    border-top: 1px solid #e5e7eb;
}

.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
}

.page-btn {
    padding: 8px 16px;
    border: 1px solid #d1d5db;
    background: white;
    color: #374151;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s ease;
}

.page-btn:hover:not(:disabled) {
    background: #f3f4f6;
    border-color: #9ca3af;
}

.page-btn:disabled {
    background: #f3f4f6;
    color: #9ca3af;
    cursor: not-allowed;
}

.current-page {
    padding: 8px 16px;
    background: #3b82f6;
    color: white;
    border-radius: 4px;
    font-weight: 600;
    font-size: 14px;
}

.page-info {
    color: #6b7280;
    font-size: 14px;
}

/* 响应式设计 */
@media (max-width: 1200px) {
    .form-row {
        flex-direction: column;
    }
    
    .form-group {
        min-width: auto;
    }
}

@media (max-width: 768px) {
    .form-group {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    
    .form-group label {
        min-width: auto;
        text-align: left;
        font-weight: 600;
    }
    
    .form-group input,
    .form-group select {
        width: 100%;
        min-width: auto;
    }
    
    .date-range,
    .amount-range,
    .number-range,
    .radio-group,
    .input-with-help {
        width: 100%;
    }
    
    .quick-date-options {
        margin-left: 0;
        margin-top: 10px;
    }
    
    .date-range {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .amount-range {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .number-range {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .radio-group {
        flex-direction: column;
        gap: 10px;
    }
    
    .form-actions {
        flex-direction: column;
        gap: 10px;
    }
    
    .btn-confirm,
    .btn-return,
    .btn-query-long {
        width: 100%;
    }
    
    .results-header {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    
    .results-actions {
        justify-content: center;
    }
    
    .page-header h1 {
        font-size: 2rem;
    }
    
    .form-content {
        padding: 20px;
    }
    
    .results-header {
        padding: 15px 20px;
    }
}

@media (max-width: 480px) {
    .results-table {
        padding: 10px;
    }
    
    .results-table table {
        font-size: 12px;
    }
    
    .results-table th,
    .results-table td {
        padding: 8px 10px;
    }
    
    .pagination {
        flex-wrap: wrap;
        gap: 5px;
    }
    
    .page-btn {
        padding: 6px 12px;
        font-size: 12px;
    }
}

/* 无障碍设计 */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

@media (prefers-contrast: high) {
    .form-group input,
    .form-group select {
        border-width: 2px;
    }
    
    .btn-confirm {
        border: 2px solid #1d4ed8;
    }
}

/* 打印样式 */
@media print {
    .form-header,
    .results-header,
    .form-actions,
    .results-actions {
        display: none;
    }
    
    .btn-reset,
    .btn-query,
    .btn-download,
    .btn-print {
        display: none;
    }
}
