:root {
    /* Color Palette */
    --primary-color: #1a73e8;
    --primary-dark: #1557b0;
    --secondary-color: #202124;
    --accent-color: #34a853;
    --text-main: #202124;
    --text-light: #5f6368;
    --bg-body: #f8f9fa;
    --bg-white: #ffffff;
    --border-color: #dadce0;
    --shadow-sm: 0 1px 2px 0 rgba(60, 64, 67, 0.3), 0 1px 3px 1px rgba(60, 64, 67, 0.15);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);

    /* Spacing & Sizing */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --container-width: 1100px;

    /* Font */
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* Reset & Base */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-sans);
    line-height: 1.6;
    color: var(--text-main);
    background-color: var(--bg-body);
    font-size: 14px;
    /* Reduced from 16px for compactness */
    -webkit-font-smoothing: antialiased;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {
    color: var(--primary-dark);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
}

/* Layout Utilities */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

.section {
    padding: 40px 0;
}

/* Header */
.site-header {
    background: var(--bg-white);
    box-shadow: var(--shadow-sm);
}

.header-content {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    height: 60px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-icon {
    width: 40px;
    height: 40px;
}

.logo-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.logo-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-main);
    line-height: 1;
}

.logo-subtitle {
    font-size: 11px;
    color: var(--text-light);
    line-height: 1;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, #1a73e8 0%, #0d47a1 100%);
    padding: 60px 0 100px;
    color: white;
    text-align: left;
    position: relative;
    overflow: hidden;
}

.hero-section::after {
    content: '';
    position: absolute;
    bottom: -40px;
    left: 0;
    right: 0;
    height: 80px;
    background: var(--bg-body);
    transform: skewY(-2deg);
}

.hero-section h1 {
    font-size: 32px;
    font-weight: 800;
    margin-bottom: 12px;
    letter-spacing: -0.5px;
}

.hero-section .subtitle {
    font-size: 14px;
    opacity: 0.9;
    max-width: 800px;
    color: rgba(255, 255, 255, 0.9);
}

/* Converter Box - The Core Feature */
.converter-section {
    margin-top: -80px;
    padding-bottom: 40px;
    position: relative;
    z-index: 10;
}

.converter-box {
    background: var(--bg-white);
    padding: 30px;
    border-radius: 8px;
    /* Slightly tighter radius */
    box-shadow: var(--shadow-lg);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.converter-row {
    display: grid;
    grid-template-columns: 1.5fr 1.2fr 40px 1.2fr auto;
    gap: 12px;
    /* Tighter gap */
    align-items: end;
}

.converter-col label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-light);
    margin-bottom: 6px;
}

.converter-col input,
.converter-col select {
    width: 100%;
    height: 48px;
    /* Slightly shorter */
    padding: 0 12px;
    border: 1px solid var(--border-color);
    /* Thinner border look */
    border-radius: 4px;
    /* Less rounded */
    font-size: 16px;
    font-weight: 500;
    color: var(--text-main);
    transition: all 0.2s;
    background-color: #fff;
}

.converter-col input:focus,
.converter-col select:focus {
    border-color: var(--primary-color);
    outline: none;
    box-shadow: 0 0 0 3px rgba(26, 115, 232, 0.1);
}

.converter-swap {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 48px;
}

.converter-swap span {
    width: 36px;
    height: 36px;
    display: flex;
    justify-content: center;
    align-items: center;
    background: #e8f0fe;
    color: var(--primary-color);
    border-radius: 50%;
    cursor: pointer;
    font-size: 18px;
    transition: all 0.2s;
}

.converter-swap span:hover {
    background: var(--primary-color);
    color: white;
    transform: rotate(180deg);
}

.converter-btn button {
    height: 48px;
    padding: 0 24px;
    font-size: 15px;
    font-weight: 600;
    color: white;
    background: var(--primary-color);
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: 0 2px 4px rgba(26, 115, 232, 0.2);
}

.converter-btn button:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
    box-shadow: 0 4px 6px rgba(26, 115, 232, 0.3);
}

.converter-btn button:active {
    transform: translateY(0);
}

.rate-info {
    margin-top: 16px;
    text-align: center;
    font-size: 13px;
    color: var(--text-light);
    font-weight: 400;
    padding-top: 16px;
    border-top: 1px solid var(--border-color);
}

.exchange-rate-display {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
}

.exchange-rate-display .main-rate {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 8px;
}

.exchange-rate-display .main-rate-value {
    font-size: 48px;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 16px;
    line-height: 1.2;
}

.exchange-rate-display .rate-details {
    font-size: 13px;
    color: var(--text-light);
    margin-bottom: 8px;
    line-height: 1.6;
}

.exchange-rate-display .rate-update {
    font-size: 12px;
    color: var(--text-light);
}

/* Popular Pairs */
.popular-pairs {
    background: var(--bg-white);
    padding: 40px 0;
    /* Reduced from 80px */
}

.section-title {
    font-size: 20px;
    /* Reduced */
    font-weight: 700;
    margin-bottom: 24px;
    color: var(--text-main);
    text-align: center;
}

.pairs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 16px;
}

.pair-card {
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    padding: 16px;
    /* Compact padding */
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.2s;
    text-decoration: none;
}

.pair-card:hover {
    border-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

.pair-card h3 {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-main);
    margin-bottom: 2px;
}

.pair-card .pair-code {
    font-size: 12px;
    color: var(--text-light);
}

.pair-card .rate {
    font-size: 16px;
    font-weight: 700;
    color: var(--primary-color);
}

/* Currency List */
.currency-list {
    padding: 40px 0;
    background: var(--bg-body);
}

.currency-list h2 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 24px;
    color: var(--text-main);
}


.list-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    /* More compact width */
    gap: 12px;
}

.list-grid a {
    background: var(--bg-white);
    padding: 10px 12px;
    border-radius: 4px;
    font-weight: 500;
    color: var(--text-main);
    text-align: center;
    border: 1px solid transparent;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.02);
    transition: all 0.2s;
    font-size: 13px;
}

.list-grid a:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
    box-shadow: var(--shadow-sm);
    transform: translateY(-1px);
}

/* Content Section */
.content-section {
    padding: 40px 0;
    background: var(--bg-white);
}

.content-section article {
    max-width: 100%;
    margin: 0 auto;
}

.content-section h2 {
    font-size: 20px;
    margin: 24px 0 16px;
    color: var(--text-main);
    position: relative;
    padding-left: 12px;
}

.content-section h2::before {
    content: '';
    position: absolute;
    left: 0;
    top: 4px;
    bottom: 4px;
    width: 3px;
    background: var(--primary-color);
    border-radius: 2px;
}

.content-section p {
    margin-bottom: 16px;
    font-size: 14px;
    color: var(--text-light);
    line-height: 1.6;
}

/* Footer */
.site-footer {
    background: #1e293b;
    color: #f1f5f9;
    padding: 40px 0 20px;
}

.footer-content {
    text-align: center;
}

.footer-info {
    font-size: 12px;
    color: #94a3b8;
}

.footer-info p {
    margin: 6px 0;
}

.footer-info a {
    color: #94a3b8;
}

.footer-info a:hover {
    color: white;
}

/* Responsive */
@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        height: auto;
        padding: 12px 0;
        gap: 12px;
    }

    .main-nav {
        gap: 16px;
        overflow-x: auto;
        width: 100%;
        justify-content: center;
        padding-bottom: 4px;
    }

    .hero-section {
        padding: 30px 0 50px;
    }

    .hero-section h1 {
        font-size: 24px;
        line-height: 1.3;
    }
    
    .hero-section .subtitle {
        font-size: 13px;
    }

    .converter-section {
        margin-top: -30px;
        padding: 0 16px;
    }

    .converter-box {
        padding: 20px 16px;
    }

    .converter-row {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .converter-swap {
        height: 32px;
        order: 3;
    }

    .converter-swap span {
        transform: rotate(90deg);
    }

    .converter-swap span:hover {
        transform: rotate(270deg);
    }

    .converter-btn {
        order: 5;
    }

    .converter-btn button {
        width: 100%;
        height: 44px;
        font-size: 16px;
    }
    
    .converter-col input,
    .converter-col select {
        height: 44px;
        font-size: 16px;
    }
    
    .exchange-rate-display .main-rate {
        font-size: 18px;
    }
    
    .exchange-rate-display .main-rate-value {
        font-size: 32px;
    }
    
    .exchange-rate-display .rate-details {
        font-size: 12px;
        line-height: 1.8;
    }
    
    .exchange-rate-display .rate-update {
        font-size: 11px;
    }
    
    .popular-pairs {
        padding: 30px 0;
    }
    
    .section-title {
        font-size: 18px;
        margin-bottom: 20px;
    }
    
    .pairs-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .pair-card {
        padding: 14px;
    }
    
    .pair-card h3 {
        font-size: 15px;
    }
    
    .pair-card .rate {
        font-size: 18px;
    }
    
    .currency-list {
        padding: 30px 0;
    }
    
    .currency-list h2 {
        font-size: 18px;
        margin-bottom: 20px;
    }
    
    .list-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    
    .list-grid a {
        padding: 10px;
        font-size: 13px;
    }
    
    .recent-rates {
        padding: 30px 0;
    }
    
    .recent-rates h2 {
        font-size: 18px;
        margin-bottom: 20px;
    }
    
    .content-section {
        padding: 30px 0;
    }
    
    .content-section h2 {
        font-size: 18px;
        margin: 20px 0 12px;
    }
    
    .content-section h3 {
        font-size: 16px;
        margin-top: 24px;
        margin-bottom: 12px;
    }
    
    .content-section p {
        font-size: 14px;
        margin-bottom: 14px;
    }
    
    .info-block {
        margin-bottom: 24px;
    }
    
    .site-footer {
        padding: 30px 0 16px;
    }
    
    .footer-info {
        font-size: 11px;
    }
    
    .footer-currency-links {
        gap: 12px;
        margin-bottom: 16px;
        padding-bottom: 16px;
    }
    
    .footer-currency-links a {
        font-size: 11px;
    }
}

@media (max-width: 768px) {
    .conversion-result .result-value {
        font-size: 24px;
    }
}

@media (max-width: 992px) {
    .recent-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px 16px;
    }
    
    .recent-grid a {
        font-size: 12px;
    }
}

@media (max-width: 576px) {
    .recent-grid {
        grid-template-columns: 1fr;
    }
    
    .container {
        padding: 0 16px;
    }
    
    .hero-section h1 {
        font-size: 20px;
    }
    
    .converter-box {
        padding: 16px 12px;
    }
    
    .pairs-grid {
        gap: 10px;
    }
    
    .list-grid {
        grid-template-columns: 1fr;
    }
}

/* Added during Refactor */
.conversion-result {
    margin-top: 16px;
    text-align: center;
    padding: 16px;
    background: #f8f9fa;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
}

.conversion-result .result-value {
    font-size: 28px;
    font-weight: 800;
    color: var(--primary-color);
    line-height: 1.2;
}

.conversion-result .result-text {
    font-size: 14px;
    color: var(--text-light);
    margin-top: 4px;
}

@media (max-width: 768px) {
    .conversion-result .result-value {
        font-size: 24px;
    }
}


/* Added for Recent Rates Section (4 columns) */
.recent-rates {
    padding: 40px 0;
    background: var(--bg-white);
    border-top: 1px solid var(--border-color);
}

.recent-rates h2 {
    font-size: 20px;
    margin-bottom: 24px;
    font-weight: 700;
    color: var(--text-main);
}

.recent-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px 24px;
    /* Row gap 12px, Column gap 24px - Tighter */
}

.recent-grid a {
    color: var(--text-light);
    font-size: 13px;
    text-decoration: none;
    transition: color 0.1s;
    line-height: 1.4;
    white-space: nowrap;
    /* Prevent wrapping if desired, or allow it */
    overflow: hidden;
    text-overflow: ellipsis;
    display: block;
}

.recent-grid a:hover {
    color: var(--primary-color);
    text-decoration: underline;
}

@media (max-width: 992px) {
    .recent-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .recent-grid {
        grid-template-columns: 1fr;
    }
}

.user-select-none {
    user-select: none;
}

.exchange-table-section {
    padding: 40px 0;
    background: var(--bg-white);
}

.exchange-table-section h2 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 24px;
    color: var(--text-main);
}

.exchange-table-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.exchange-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    overflow: hidden;
}

.exchange-table thead {
    background: #f8f9fa;
}

.exchange-table th {
    padding: 12px 16px;
    text-align: left;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-light);
    border-bottom: 1px solid var(--border-color);
}

.exchange-table td {
    padding: 12px 16px;
    font-size: 14px;
    color: var(--text-main);
    border-bottom: 1px solid #f1f3f4;
}

.exchange-table tbody tr:last-child td {
    border-bottom: none;
}

.exchange-table tbody tr:hover {
    background: #f8f9fa;
}

.recent-conversions {
    padding: 40px 0;
    background: var(--bg-body);
}

.recent-conversions h2 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 24px;
    color: var(--text-main);
}

.recent-links-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px 16px;
}

.recent-links-grid-4col {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px 16px;
}

.recent-links-grid a,
.recent-links-grid-4col a {
    color: var(--text-light);
    font-size: 13px;
    text-decoration: none;
    transition: color 0.2s;
    line-height: 1.6;
}

.recent-links-grid a:hover,
.recent-links-grid-4col a:hover {
    color: var(--primary-color);
    text-decoration: underline;
}

.more-exchanges {
    padding: 40px 0;
    background: var(--bg-white);
}

.more-exchanges h2 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 24px;
    color: var(--text-main);
}

.more-links-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px 16px;
}

.more-links-grid-5col {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 12px 16px;
}

.more-links-grid a,
.more-links-grid-5col a {
    color: var(--text-light);
    font-size: 13px;
    text-decoration: none;
    transition: color 0.2s;
    line-height: 1.6;
}

.more-links-grid a:hover,
.more-links-grid-5col a:hover {
    color: var(--primary-color);
    text-decoration: underline;
}

@media (max-width: 768px) {
    .exchange-table-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .recent-links-grid,
    .recent-links-grid-4col {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px 12px;
    }
    
    .recent-links-grid a,
    .recent-links-grid-4col a {
        font-size: 12px;
    }
    
    .more-links-grid,
    .more-links-grid-5col {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px 12px;
    }
    
    .more-links-grid a,
    .more-links-grid-5col a {
        font-size: 12px;
    }
    
    .currency-rate-table {
        font-size: 12px;
    }
    
    .currency-rate-table th,
    .currency-rate-table td {
        padding: 8px 6px;
    }
    
    .exchange-table {
        font-size: 13px;
    }
    
    .exchange-table th,
    .exchange-table td {
        padding: 10px 12px;
    }
}

.currency-rate-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    overflow: hidden;
    margin-top: 10px;
}

.currency-rate-table thead {
    background: #f8f9fa;
}

.currency-rate-table th {
    padding: 12px 16px;
    text-align: left;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-light);
    border-bottom: 1px solid var(--border-color);
}

.currency-rate-table td {
    padding: 12px 16px;
    font-size: 14px;
    color: var(--text-main);
    border-bottom: 1px solid #f1f3f4;
}

.currency-rate-table tbody tr:last-child td {
    border-bottom: none;
}

.currency-rate-table tbody tr:hover {
    background: #f8f9fa;
}

.currency-rate-table td a {
    color: var(--text-main);
    text-decoration: none;
}

.currency-rate-table td a:hover {
    color: var(--primary-color);
}

/* Updated Article Styles for SEO Content */
.info-block {
    margin-bottom: 32px;
}

.info-block h3 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--text-main); /* Deep blue like the rest */
    position: relative;
    padding-left: 14px;
    line-height: 1.4;
}

.info-block h3::before {
    content: '';
    position: absolute;
    left: 0;
    top: 4px; /* Align with cap height */
    bottom: 4px;
    width: 4px;
    background-color: var(--primary-color); /* The blue vertical bar */
    border-radius: 0; /* Sharp edges like screenshot */
}

.info-block p {
    font-size: 14px;
    color: #4a5568; /* Slightly softer text for readability */
    line-height: 1.8;
    margin: 0;
    text-align: justify; /* Clean blocks */
}


/* Footer Enhancement */
.footer-currency-links {
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.footer-currency-links a {
    color: #94a3b8;
    font-size: 12px;
}

.footer-currency-links a:hover {
    color: white;
}


.related-conversions,
.recent-conversions,
.more-conversions {
    padding: 40px 0;
    background: var(--bg-white);
    margin-bottom: 20px;
}

.related-conversions h2,
.recent-conversions h2,
.more-conversions h2 {
    font-size: 20px;
    margin-bottom: 20px;
    color: var(--text-main);
}

.content-section h3 {
    font-size: 18px;
    margin-top: 30px;
    margin-bottom: 15px;
    color: var(--text-main);
    font-weight: 600;
}

.content-section .recent-grid,
.content-section .list-grid {
    margin-bottom: 30px;
}

.conversions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 12px;
}

.conversions-grid-4col {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
}

.conversions-grid-5col {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 12px;
}

.conversions-grid a,
.conversions-grid-4col a,
.conversions-grid-5col a {
    padding: 12px 16px;
    background: var(--bg-body);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    color: var(--text-main);
    font-size: 14px;
    transition: all 0.2s ease;
    text-align: center;
}

.conversions-grid a:hover,
.conversions-grid-4col a:hover,
.conversions-grid-5col a:hover {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

@media (max-width: 768px) {
    .conversions-grid-4col {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    
    .conversions-grid-5col {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    
    .conversions-grid a,
    .conversions-grid-4col a,
    .conversions-grid-5col a {
        padding: 10px 12px;
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .conversions-grid,
    .conversions-grid-4col,
    .conversions-grid-5col {
        grid-template-columns: 1fr;
    }
    
    .recent-links-grid,
    .recent-links-grid-4col,
    .more-links-grid,
    .more-links-grid-5col {
        grid-template-columns: 1fr;
    }
}

.more-rates-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 12px 24px;
}

.more-rates-grid a {
    color: var(--text-light);
    font-size: 13px;
    text-decoration: none;
    transition: color 0.2s;
    line-height: 1.6;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: block;
}

.more-rates-grid a:hover {
    color: var(--primary-color);
    text-decoration: underline;
}

@media (max-width: 992px) {
    .more-rates-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 576px) {
    .more-rates-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}


/* 移动端触摸优化 */
@media (hover: none) and (pointer: coarse) {
    button,
    .converter-swap span,
    a {
        min-height: 44px;
        min-width: 44px;
    }
    
    .pair-card,
    .list-grid a {
        min-height: 48px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
}

/* 小屏幕优化 (iPhone SE等) */
@media (max-width: 375px) {
    .hero-section h1 {
        font-size: 18px;
    }
    
    .hero-section .subtitle {
        font-size: 12px;
    }
    
    .converter-box {
        padding: 14px 10px;
    }
    
    .converter-col label {
        font-size: 12px;
    }
    
    .converter-col input,
    .converter-col select {
        font-size: 14px;
        height: 42px;
        padding: 0 10px;
    }
    
    .converter-btn button {
        height: 42px;
        font-size: 15px;
    }
    
    .exchange-rate-display .main-rate-value {
        font-size: 28px;
    }
    
    .section-title {
        font-size: 16px;
    }
    
    .content-section h2 {
        font-size: 16px;
    }
    
    .content-section h3 {
        font-size: 15px;
    }
}

/* 横屏优化 */
@media (max-width: 768px) and (orientation: landscape) {
    .hero-section {
        padding: 20px 0 40px;
    }
    
    .converter-section {
        margin-top: -20px;
    }
    
    .converter-row {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    
    .converter-swap {
        grid-column: span 2;
        order: 3;
    }
    
    .converter-btn {
        grid-column: span 2;
        order: 5;
    }
}

/* 超大屏幕优化 */
@media (min-width: 1400px) {
    .container {
        max-width: 1200px;
    }
    
    .hero-section h1 {
        font-size: 36px;
    }
    
    .converter-box {
        padding: 40px;
    }
}

/* 打印样式 */
@media print {
    .site-header,
    .site-footer,
    .converter-btn,
    .popular-pairs,
    .currency-list,
    .recent-rates {
        display: none;
    }
    
    .converter-section {
        margin-top: 0;
    }
    
    .exchange-rate-display {
        border: 1px solid #000;
        padding: 20px;
    }
}

/* 暗黑模式支持 (可选) */
@media (prefers-color-scheme: dark) {
    :root {
        --text-main: #e8eaed;
        --text-light: #9aa0a6;
        --bg-body: #202124;
        --bg-white: #292a2d;
        --border-color: #3c4043;
    }
    
    .hero-section {
        background: linear-gradient(135deg, #1557b0 0%, #0d47a1 100%);
    }
    
    .converter-box,
    .pair-card,
    .list-grid a {
        background: var(--bg-white);
        border-color: var(--border-color);
    }
}

/* 减少动画 (辅助功能) */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}


/* 汇率走势图样式 */
.chart-section {
    padding: 40px 0;
    background: var(--bg-white);
    border-top: 1px solid var(--border-color);
}

.chart-section h2 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 24px;
    color: var(--text-main);
}

.chart-container {
    background: var(--bg-white);
    padding: 20px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    margin-bottom: 16px;
}

.chart-legend {
    text-align: center;
    font-size: 12px;
    color: var(--text-light);
}

@media (max-width: 768px) {
    .chart-section {
        padding: 30px 0;
    }
    
    .chart-section h2 {
        font-size: 18px;
        margin-bottom: 20px;
    }
    
    .chart-container {
        padding: 15px 10px;
    }
}
