:root {
    --primary-color: #F7931A;
    --text-color: #333;
    --background-color: #fff;
    --border-color: #eee;
    --hover-color: #E88A16;
    --shadow-color: rgba(247, 147, 26, 0.2);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    margin: 0;
    padding: 0;
    color: var(--text-color);
    line-height: 1.6;
    background-color: var(--background-color);
}

header {
    background-color: var(--background-color);
    padding: 1.5rem;
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.language-selector {
    text-align: right;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
}

select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    padding: 12px 40px 12px 20px;
    border: 2px solid var(--primary-color);
    border-radius: 8px;
    font-size: 16px;
    font-weight: 500;
    color: var(--text-color);
    background-color: white;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23F7931A' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 15px center;
    background-size: 16px;
    min-width: 200px;
    max-width: 100%;
}

select:hover {
    border-color: var(--hover-color);
    box-shadow: 0 4px 12px var(--shadow-color);
    transform: translateY(-1px);
}

select:focus {
    outline: none;
    border-color: var(--hover-color);
    box-shadow: 0 4px 12px var(--shadow-color);
    transform: translateY(-1px);
}

main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 20px;
    animation: fadeIn 0.5s ease-out;
}

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

h1 {
    font-size: 3em;
    margin-bottom: 0.5em;
    color: var(--primary-color);
    text-align: center;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.genesis-quote {
    background: #f8f9fa;
    padding: 2em;
    border-radius: 12px;
    margin: 2em 0;
    text-align: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}




.original-quote {
    font-size: 1.2em;
    font-weight: 500;
    margin-bottom: 0.5em;
    color: var(--text-color);
}

.translated-quote {
    color: #666;
    font-style: italic;
}

.author, .date {
    color: #666;
    margin-bottom: 1em;
    text-align: center;
    font-size: 1.1em;
}

.download-section {
    margin-top: 4em;
}

.download-section h2 {
    text-align: center;
    color: var(--text-color);
    font-size: 2em;
    margin-bottom: 1.5em;
}

.download-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2em;
    margin-top: 2em;
}

.download-item {
    background: #f8f9fa;
    padding: 2em;
    border-radius: 12px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.download-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.download-item h3 {
    margin-bottom: 1.5em;
    color: var(--text-color);
    font-size: 1.2em;
}

.download-button {
    display: inline-block;
    padding: 14px 28px;
    background-color: var(--primary-color);
    color: white;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.3s ease;
    font-weight: 500;
    letter-spacing: 0.5px;
}

.download-button:hover {
    background-color: var(--hover-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px var(--shadow-color);
}

footer {
    text-align: center;
    padding: 3em;
    background: #f8f9fa;
    margin-top: 6em;
    border-top: 1px solid var(--border-color);
}

footer p {
    margin: 0.5em 0;
    color: #666;
}

.creator-info {
    margin-bottom: 1.5em;
    font-size: 1.1em;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5em;
}

.creator-info a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
    display: inline-block;
    font-weight: 500;
}

.creator-info a:hover {
    color: var(--hover-color);
    text-decoration: underline;
}

.bitcoin-donation {
    margin: 1em 0;
    position: relative;
    text-align: center;
}

.copyright {
    margin-top: 1.5em;
    padding-top: 1em;
    border-top: 1px solid var(--border-color);
    font-size: 0.9em;
    color: #888;
}

.bitcoin-address {
    font-family: monospace;
    background: #f1f1f1;
    padding: 0.5em 1em;
    border-radius: 4px;
    display: inline-block;
    margin: 0.5em 0;
    cursor: pointer;
    transition: background-color 0.3s ease;
    position: relative;
}

.bitcoin-address:hover {
    background: #e5e5e5;
}

.bitcoin-address::after {
    content: "点击复制";
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
    margin-bottom: 5px;
}

.bitcoin-address:hover::after {
    opacity: 1;
}

.copy-success {
    position: fixed;
    top: 20px;
    right: 20px;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 10px 20px;
    border-radius: 4px;
    animation: fadeInOut 2s ease forwards;
    z-index: 9999;
}

@keyframes fadeInOut {
    0% { opacity: 0; transform: translateY(-20px); }
    10% { opacity: 1; transform: translateY(0); }
    90% { opacity: 1; transform: translateY(0); }
    100% { opacity: 0; transform: translateY(-20px); }
}

.qr-code {
    position: absolute;
    right: -170px;
    top: 50%;
    transform: translateY(-50%);
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    z-index: 100;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    background: white;
    padding: 10px;
    width: 150px;
    height: 150px;
    background-image: url('../bitcoin.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.bitcoin-donation:hover .qr-code {
    opacity: 1;
    visibility: visible;
}



@media (max-width: 768px) {
    footer {
        padding: 2em 1em;
    }

    .bitcoin-address {
        font-size: 0.9em;
        word-break: break-all;
    }

    .qr-code {
        max-width: 80%;
        height: auto;
    }
}
@media (max-width: 768px) {
    header {
        padding: 1rem;
    }

    .language-selector {
        text-align: center;
        padding: 10px;
    }
    
    select {
        width: 100%;
        max-width: 300px;
    }

    main {
        padding: 40px 20px;
    }

    h1 {
        font-size: 2em;
    }

    .download-grid {
        grid-template-columns: 1fr;
        gap: 1.5em;
    }

    .download-item {
        padding: 1.5em;
    }
}