/* converter */
.converter-container {
	max-width: 550px;
	width: 100%;
	overflow: hidden;
}

.input-group {
	margin-bottom: 25px;
}

.input-label {
	display: block;
	margin-bottom: 10px;
	color: #555;
	font-weight: 600;
	font-size: 15px;
	display: flex;
	align-items: center;
	gap: 8px;
}

@media (max-width: 767px) {
	.input-label {
		margin-bottom: 5px;
	}
}

.amount-input {
	width: 100%;
	padding: 6px 18px;
	border: 1px solid #ddd;
	border-radius: 3px;
	font-size: 18px;
	transition: all 0.3s ease;
	font-weight: 500;
}

.amount-input:focus {
	border-color: var(--theme-color);
	outline: 0;
	box-shadow: inset 0 1px 1px rgba(0, 0, 0, .075), 0 0 8px rgba(32, 107, 231, .6);
}

.amount-input:hover {
	border-color: #c0c0c0;
}

.currency-row {
	display: flex;
	align-items: flex-end;
	gap: 15px;
	margin-bottom: 25px;
}

.currency-group {
	flex: 1;
}

.select2-container {
	width: 100% !important;
}

.select2-container--default .select2-selection--single {
	border: 2px solid #e0e0e0;
	border-radius: 12px;
	height: 52px;
	padding: 8px;
	transition: all 0.3s ease;
}

.select2-container--default .select2-selection--single:hover {
	border-color: #c0c0c0;
}

.select2-container--default .select2-selection--single:focus,
.select2-container--default.select2-container--open .select2-selection--single {
	border-color: var(--theme-color);
	box-shadow: 0 0 0 4px rgba(32, 107, 231, 0.1);
}

.select2-container--default .select2-selection--single .select2-selection__rendered {
	line-height: 36px;
	padding-left: 12px;
	font-weight: 500;
	font-size: 16px;
}

.select2-container--default .select2-selection--single .select2-selection__arrow {
	height: 50px;
	right: 8px;
}

.select2-dropdown {
	border: 2px solid var(--theme-color);
	border-radius: 12px;
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.select2-results__option {
	padding: 12px 15px;
	font-size: 15px;
}


.exchange-button {
	background: #ffffff;
	border: none;
	color: var(--theme-color);
	width: 40px;
	height: 40px;
	border-radius: 50%;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: all 0.4s ease;
	font-size: 22px;
	flex-shrink: 0;
	border: 1px solid rgba(32, 107, 231, 0.6);
}

.exchange-button:hover {
	background: var(--theme-hover);
	color: #ffffff;
	transform: rotate(180deg) scale(1.05);
	box-shadow: 0 6px 20px rgba(32, 107, 231, 0.4);
}

.exchange-button:active {
	transform: rotate(180deg) scale(0.95);
}

.exchange-button svg {
	height: 1em;
	width: 1em;
	fill: currentColor;
	overflow: hidden;
	vertical-align: -0.1em;
}

.calculate-button {
	width: 100%;
	padding: 18px;
	background: linear-gradient(135deg, var(--theme-color) 0%, #764ba2 100%);
	border: none;
	border-radius: 12px;
	color: white;
	font-size: 18px;
	font-weight: 600;
	cursor: pointer;
	transition: all 0.3s ease;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	box-shadow: 0 6px 20px rgba(32, 107, 231, 0.3);
}

.calculate-button:hover {
	transform: translateY(-3px);
	box-shadow: 0 10px 30px rgba(32, 107, 231, 0.4);
}

.calculate-button:active {
	transform: translateY(-1px);
}

.calculate-button:disabled {
	opacity: 0.6;
	cursor: not-allowed;
	transform: none;
}

.converter-result {
	display: flex;
	gap: 1rem;
	justify-content: space-around;
	padding: 25px 15px;
}

.quick-result {
	flex: 1;
	font-size: 16px;
	animation: slideIn 0.4s ease;
}

.quick-result.show {
	display: block;
}

@keyframes slideIn {
	from {
		opacity: 0;
		transform: translateY(-15px);
	}

	to {
		opacity: 1;
		transform: translateY(0);
	}
}

.quick-result-content {
	text-align: center;
}

.quick-amount {
	font-size: 28px;
	font-weight: 700;
	color: var(--theme-color);
	margin-bottom: 10px;
}

.quick-rate {
	font-weight: 600;
}

.quick-meta {
	color: var(--theme-gray-color);
}

.quick-meta>div {
	gap: 1em;
	margin-bottom: 15px;
}

.quick-meta-date {}

@media (max-width: 767px) {
	.converter-result {
		flex-direction: column-reverse;
		padding: 0;
	}

	.currency-convert .btn {
		display: block;
		width: 100%;
	}

	.quick-meta-date {
		display: block;
		width: 100%;
		color: #666;
	}
}

.btn-reverse .wi {
	font-size: 14px;
	margin-right: 8px;
}

.error-message {
	color: #e74c3c;
	font-size: 14px;
	margin-top: 8px;
	display: none;
	animation: shake 0.3s ease;
}

.error-message.show {
	display: block;
}

@keyframes shake {

	0%,
	100% {
		transform: translateX(0);
	}

	25% {
		transform: translateX(-5px);
	}

	75% {
		transform: translateX(5px);
	}
}


.loading {
	display: inline-block;
	width: 18px;
	height: 18px;
	border: 3px solid rgba(255, 255, 255, 0.3);
	border-radius: 50%;
	border-top-color: #ffffff;
	animation: spin 0.6s linear infinite;
}

@keyframes spin {
	to {
		transform: rotate(360deg);
	}
}

@media (max-width: 768px) {
	.converter-container {
		max-width: 100%;
	}

	.currency-row {
		flex-direction: column;
		align-items: stretch;
	}

	.exchange-button {
		border-radius: 12px;
		transform: rotate(90deg);
	}

	.exchange-button:hover {
		transform: rotate(270deg);
	}

	.quick-amount {
		font-size: 22px;
	}
}

/* widget */

.widget .converter-container {
	display: flex;
	flex-wrap: nowrap;
	overflow: hidden;
	flex-direction: column;
	gap: 15px;
}

.widget .currency-row {
	align-items: center;
	margin-top: 20px;
	margin-bottom: 0;
	gap: 8px;
}

.widget .converter-select {
	flex: 1;
	display: flex;
	flex-direction: column;
	gap: 15px;
}

.widget .currency-group {
	display: flex;
}

.widget .input-label {
	font-size: 14px;
	font-weight: normal;
	width: 40px;
	margin-bottom: 0;
}

.widget .exchange-button {
	width: 30px;
	height: 30px;
	transform: rotate(90deg);
}

@media (max-width: 768px) {
	.widget .currency-row {
		flex-direction: row;
	}

	.widget .exchange-button {
		border-radius: 50%;
	}

	.widget .currency-convert .btn {
		padding: ;
	}
}

#chart-container {
	background-color: #fff;
	width: 100%;
	height: 400px;
}

.table-responsive {
	display: block;
	width: 100%;
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
}

@media (max-width: 768px) {
	.table-responsive {
		border: 0;
	}
}

.table {
	--table-font-color: #444c5f;
	--table-bg-color: #eff2f6;
	--table-border-color: #dfe6ec;
	border-collapse: collapse;
	border-spacing: 0;
	background-color: transparent;
}

.table td,
.table th {
	padding: 0.75rem;
	vertical-align: top;
	border-top: 1px solid #dee2e6;
}

.table-hover tbody tr:hover {
	color: var(--table-font-color);
	background-color: var(--table-bg-color)
}

.forex-table {
	margin: 0;
	width: 100%;
	border: 1px solid var(--table-border-color);
}

.forex-table thead {
	background: var(--table-bg-color);
}

.forex-table thead th {
	background: var(--table-bg-color);
	border-bottom: 1px solid var(--table-border-color);
	padding: 1rem;
	font-weight: 600;
	vertical-align: bottom;
	color: var(--table-font-color);
}

.forex-table td {
	/* height: 42px; */
	border: 1px solid var(--table-border-color);
	color: var(--table-font-color);
	font-size: 16px;
	text-align: center;
}

.cha-box .table td {
	vertical-align: middle;
}

.currency-cell {
	width: 200px;
	min-width: 180px;
}
.bank-info,
.currency-info {
	display: flex;
	align-items: center;
	gap: 10px;
}
.bank-info{
	justify-content: center;
}
.bank-link {
	display: flex;
	flex-direction: column;
	align-items: center;
	text-decoration: none;
	color: inherit;
	padding: 0;
	border-radius: 8px;
	transition: all 0.3s ease;
}

.bank-logo {
	width: 36px;
	height: 36px;
	object-fit: contain;
}
.currency-icon {
    width: 24px;
    height: 24px;
    object-fit: contain;
}
.currency-text {
	display: flex;
	flex-direction: column;
	gap: 2px;
}

.currency-text strong {
	font-size: 14px;
	color: #333;
}
.currency-link {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: inherit;
}

.currency-text .currency-name {
    font-size: 12px;
    color: #666;
}
.huilv-table tr:hover .currency-name{
	color: var(--theme-color);
}
.huilv-table .currency-text .currency-name{
	font-size: 14px;
	color: #333;
}
.huilv-table .currency-cell{
	width: 250px;
}
@media (max-width: 768px) {

	.forex-table,
	.table-responsive {
		border: 0;
	}

	.table td,
	.table th {
		white-space: nowrap;
	}

	.forex-table thead {
		display: none;
	}

	.forex-table tr {
		display: block;
		margin-bottom: 1rem;
		border: 1px solid var(--table-border-color);
		border-radius: 8px;
		background: #fff;
	}

	.forex-table td {
		display: flex;
		justify-content: space-between;
		align-items: center;
		padding: 0.8rem 1rem;
		border: none;
		border-bottom: 1px solid var(--table-border-color);
	}

	.forex-table td[data-label]:before {
		content: attr(data-label);
		float: left;
		font-weight: 600;
		margin-right: 10px;
		color: var(--table-font-color);
		font-size: 14px;
	}

	.currency-cell {
		width: 100% !important;
		background: var(--table-bg-color);
	}

	.currency-info {
		display: flex;
		align-items: center;
		gap: 10px;
	}

	.currency-text {
		flex-direction: row;
		align-items: center;
		gap: 1rem;
	}

	.bank-link {
		flex-direction: row;
	}

	.currency-text strong {
		font-size: 16px;
		color: var(--table-font-color);
	}
}

.brush-decoration{background:linear-gradient(90deg,transparent 0%,var(--theme-color) 20%,var(--theme-color) 80%,transparent 100%);height:2px;margin:1rem auto;width:120px}

@media (min-width:1011px) {
	.forex-convert-box {
		display: grid;
		grid-template-columns: repeat(2, 1fr);
		grid-template-rows: 1fr;
		grid-column-gap: 30px;
		grid-row-gap: 0
	}
	.forex-grid-box {
		display: grid;
		grid-template-columns: calc(62% - 20px) 38%;
		grid-template-rows: 1fr;
		grid-column-gap: 20px;
		grid-row-gap: 0
	}
}

@media (max-width:1010px) {
	.forex-convert-box>div:first-child {
		margin-bottom: 10px;
		padding-bottom: 10px
	}
}

.forex-convert-box h3 {
	font-size: 15px;
	font-weight: 600;
	margin: 0 0 10px !important
}

.forex-convert-box div {
	font-size: 16px;
	line-height: 32px
}

.forex-convert-list {
	display: flex;
	flex-direction: column;
	padding-left: 0 !important;
	border: 1px solid #dfe6ec;
	border-radius: var(--theme-border-radius-m)
}

.huilv-box,
.forex-convert-list li {
	display: flex;
	justify-content: space-between
}

.forex-convert-list li {
	padding: 0 10px;
	margin-bottom: 0 !important
}

.forex-convert-list li.heading {
	background-color: #eff2f6;
	padding-right: 36px;
	border-radius: var(--theme-border-radius-m)
}

.forex-convert-list li:hover {
	background-color: #eff2f6
}

.forex-convert-list li.heading>div {
	display: flex;
	gap: .5em;
	align-items: center
}

.forex-convert-list li.heading img {
	height: 16px
}
.forex-tag-list,
.forex-list{
	list-style: none;
	padding-left: 0;
}
.forex-list li{
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 10px;
	line-height: 1.8em;
}

.forex-tag-list li{
	margin-bottom: 10px;
	line-height: 1.8em;
}
.forex-tag-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0 10px;
}

.bank-list a,
.forex-tag-list a,
.forex-convert-list a,
.forex-list a{
	color: var(--theme-black-color);
}

.bank-list li:hover a,
.forex-tag-list li:hover a,
.forex-convert-list li:hover span,
.forex-convert-list li:hover a,
.forex-list li:hover a{
	color: var(--theme-color);
}
.bank-list{
	list-style: none;
	padding-left: 0;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0 10px;
}
.bank-links .bank-logo {
    width: 40px;
    height: 40px;
    object-fit: contain;
    margin-bottom: 8px;
}
@media (max-width: 768px) {
	.forex-tag-list,
	.bank-list {
	    grid-template-columns: repeat(2, 1fr);
	}
}
.bank-links-card{
	list-style: none;
	padding-left: 0;
}
.bank-links-card li{
	position: relative;
	width: 100%;
	padding-right: 15px;
	padding-left: 15px;
	-ms-flex: 0 0 20%;
	flex: 0 0 20%;
	max-width: 20%;
	margin-bottom: 10px;
}
/* 银行链接列表样式 */
.bank-links-card .bank-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: #333;
    padding: 10px;
    border-radius: 8px;
    transition: all 0.3s ease;
	border: 1px solid #eee;
}

.bank-links-card .bank-link:hover {
    background-color: #f8f9fa;
    transform: translateY(-2px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.bank-links-card .bank-logo {
    width: 40px;
    height: 40px;
    object-fit: contain;
    margin-bottom: 0px;
}

.bank-links-card span {
    font-size: 14px;
    text-align: center;
}

/* 响应式调整 */
@media (max-width: 576px) {
    .bank-links-card .bank-logo {
        width: 32px;
        height: 32px;
    }

    .bank-links-card span {
        font-size: 12px;
    }
}