/* 全局样式 */
:root {
    --bitcoin-orange: #f7931a;
    --bitcoin-orange-light: #ffa940;
    --bitcoin-orange-dark: #d97c16;
    --text-dark: #333333;
    --text-light: #666666;
    --text-lighter: #999999;
    --background-light: #ffffff;
    --background-gray: #f5f5f5;
    --border-color: #e0e0e0;
    --success-color: #28a745;
    --error-color: #dc3545;
    --shadow-color: rgba(0, 0, 0, 0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--background-light);
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

a {
    color: var(--bitcoin-orange);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--bitcoin-orange-dark);
}

img {
    max-width: 100%;
    height: auto;
}

ul {
    list-style: none;
}

/* 按钮样式 */
button, .button {
    background-color: var(--bitcoin-orange);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 600;
    transition: background-color 0.3s ease;
}

button:hover, .button:hover {
    background-color: var(--bitcoin-orange-dark);
}

/* 头部样式 */
header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 1rem 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    width: 100%;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.logo {
    flex: 0 0 auto;
}

nav {
    margin-left: auto;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-icon {
    width: 40px;
    height: 40px;
}

.logo a {
    display: flex;
    align-items: center;
    color: var(--text-dark);
    font-weight: 700;
    font-size: 1.5rem;
}

.logo h1 {
    color: #f7931a;
    font-size: 1.8rem;
    font-weight: bold;
    margin: 0;
}

.logo h1 a {
    color: #f7931a;
    text-decoration: none;
    transition: color 0.3s ease;
}

.logo h1 a:hover {
    color: #e6830f;
}

.bitcoin-logo {
    height: 30px;
    margin-right: 10px;
}

.bitcoin-logo-small {
    height: 20px;
    margin-right: 8px;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 2rem;
    margin: 0;
    padding: 0;
}

nav ul li {
    margin-left: 0;
}

nav ul li a {
    color: white;
    font-weight: 600;
    font-size: 1.1rem;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    text-decoration: none;
    transition: color 0.3s ease;
}

nav ul li a:hover, nav ul li a.active {
    background-color: rgba(255, 255, 255, 0.2);
    color: white;
}

/* 英雄区域样式 */
.hero {
    background: linear-gradient(135deg, #fff8e1, #fff);
    padding: 30px 0 60px 0;
    text-align: center;
}

.hero h1 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: var(--text-dark);
}

.live-rate {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-bottom: 25px;
    font-size: 1.8rem;
    font-weight: 600;
}

.rate-label {
    color: var(--text-dark);
}

.rate-value {
    color: var(--bitcoin-orange);
    font-weight: 700;
    min-width: 120px;
    text-align: left;
}

.rate-currency {
    color: var(--text-light);
}

.subtitle {
    font-size: 1.1rem;
    color: var(--text-light);
    margin-top: 30px;
    margin-bottom: 0;
    text-align: center;
}

/* 转换器卡片样式 */
.converter-card {
    background-color: white;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    max-width: 600px;
    margin: 0 auto;
    overflow: hidden;
    border: 1px solid rgba(247, 147, 26, 0.1);
}

.converter-header {
    background: linear-gradient(135deg, var(--bitcoin-orange), #e6830f);
    color: white;
    padding: 20px 25px;
    text-align: center;
}

.converter-header h2 {
    margin: 0;
    font-size: 1.4rem;
    font-weight: 600;
}

.converter-body {
    padding: 30px;
}

.conversion-row {
    display: flex;
    align-items: flex-end;
    gap: 20px;
    margin-bottom: 25px;
}

.equals-sign {
    font-size: 24px;
    font-weight: bold;
    color: #ff6b35;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 30px;
    height: 30px;
}

.currency-input {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.currency-input label {
    display: block;
    margin-bottom: 10px;
    font-weight: 600;
    color: var(--text-dark);
    font-size: 0.95rem;
    text-align: left;
}

.swap-button {
    background: linear-gradient(135deg, var(--bitcoin-orange), #e6830f);
    color: white;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(247, 147, 26, 0.3);
    margin-bottom: 0;
    flex-shrink: 0;
    font-size: 18px;
    font-weight: bold;
}

.swap-button:hover {
    transform: rotate(180deg) scale(1.1);
    box-shadow: 0 6px 20px rgba(247, 147, 26, 0.4);
}

.swap-button svg {
    transition: transform 0.3s ease;
}

input[type="number"] {
    width: 100%;
    padding: 15px 18px;
    border: 2px solid #e8e8e8;
    border-radius: 8px;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    background-color: #fafafa;
}

input[type="number"]:focus {
    border-color: var(--bitcoin-orange);
    outline: none;
    background-color: white;
    box-shadow: 0 0 0 3px rgba(247, 147, 26, 0.1);
}

.swap-icon {
    display: flex;
    justify-content: center;
    margin: 15px 0;
}

.swap-icon img {
    height: 24px;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.swap-icon img:hover {
    transform: rotate(180deg);
}

.convert-button {
    background: linear-gradient(135deg, var(--bitcoin-orange), #e6830f);
    color: white;
    border: none;
    width: 100%;
    padding: 15px 30px;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin: 20px 0;
    box-shadow: 0 4px 15px rgba(247, 147, 26, 0.3);
}

.convert-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(247, 147, 26, 0.4);
}

.input-row .convert-button {
    width: auto;
    min-width: 140px;
    margin: 0;
    height: 50px;
}

.conversion-result {
    background: linear-gradient(135deg, #f8f9fa, #ffffff);
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border: 1px solid #e8e8e8;
}

.result-label {
    font-weight: 600;
    color: var(--text-light);
    font-size: 0.95rem;
}

.result-value {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--bitcoin-orange);
}

.exchange-rate {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 20px;
    background: linear-gradient(135deg, #fff8e1, #fffbf0);
    border-radius: 8px;
    font-weight: 600;
    border: 1px solid rgba(247, 147, 26, 0.2);
    text-align: center;
    color: var(--text-lighter);
    font-size: 1.05rem;
}

/* 常用转换区域样式 */
.common-conversions {
    padding: 60px 0;
    background-color: var(--background-gray);
}

.common-conversions h2 {
    text-align: center;
    margin-bottom: 40px;
    font-size: 2rem;
}

.conversions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 15px;
    margin-top: 30px;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.conversion-card {
    background-color: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 15px 20px;
    text-decoration: none;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-dark);
    font-size: 1.1rem;
    font-weight: 600;
}

.conversion-card:hover {
    background-color: #fff;
    border-color: var(--bitcoin-orange);
    box-shadow: 0 2px 8px rgba(247, 147, 26, 0.2);
    transform: translateY(-2px);
}

.conversion-amount {
    color: var(--text-dark);
    margin-right: 8px;
}

.conversion-equals {
    margin: 0 8px;
    color: var(--text-light);
}

.conversion-result {
    color: var(--bitcoin-orange);
    font-weight: 700;
    margin-right: 4px;
}

.conversion-currency {
    color: var(--text-light);
}

/* 信息区域样式 */
.info-section {
    padding: 60px 0;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.info-card {
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 3px 10px var(--shadow-color);
    padding: 25px;
}

.info-card h2 {
    margin-bottom: 15px;
    color: var(--bitcoin-orange);
}

.info-card p {
    margin-bottom: 15px;
}

.info-card ul {
    padding-left: 20px;
}

.info-card ul li {
    margin-bottom: 10px;
    position: relative;
    padding-left: 15px;
}

.info-card ul li:before {
    content: "";
    position: absolute;
    left: 0;
    top: 10px;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: var(--bitcoin-orange);
}

/* 特性区域样式 */
.features-section {
    padding: 60px 0;
    background-color: var(--background-gray);
}

.features-section h2 {
    text-align: center;
    margin-bottom: 40px;
    font-size: 2rem;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.feature-card {
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 3px 10px var(--shadow-color);
    padding: 25px;
    text-align: center;
    transition: transform 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
}

.feature-icon {
    margin-bottom: 20px;
}

.feature-icon img {
    height: 60px;
}

.feature-card h3 {
    margin-bottom: 15px;
    color: var(--bitcoin-orange);
}

/* FAQ区域样式 */
.faq-section {
    padding: 60px 0;
}

.faq-section h2 {
    text-align: center;
    margin-bottom: 40px;
    font-size: 2rem;
}

.faq-accordion {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    margin-bottom: 15px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden;
}

.faq-question {
    padding: 15px 20px;
    background-color: white;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.faq-question h3 {
    margin: 0;
    font-size: 1.1rem;
}

.faq-toggle {
    font-size: 1.5rem;
    color: var(--bitcoin-orange);
}

.faq-answer {
    padding: 0 20px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
}

.faq-item.active .faq-answer {
    padding: 15px 20px;
    max-height: 500px;
}

.faq-item.active .faq-toggle {
    transform: rotate(45deg);
}

/* 页脚样式 */
footer {
    background-color: #333;
    color: white;
    padding: 50px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    margin-bottom: 30px;
}

.footer-logo {
    display: flex;
    align-items: center;
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 15px;
}

.footer-links h4 {
    margin-bottom: 15px;
    color: var(--bitcoin-orange);
}

.footer-links ul li {
    margin-bottom: 10px;
}

.footer-links ul li a {
    color: #ccc;
}

.footer-links ul li a:hover {
    color: white;
}

.copyright {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #444;
    font-size: 0.9rem;
    color: #aaa;
}

.disclaimer {
    margin-top: 10px;
    font-size: 0.8rem;
}

/* 特定转换页面样式 */
.specific-conversion {
    padding: 40px 0;
}

.page-title {
    text-align: center;
    margin-bottom: 30px;
    font-size: 2rem;
}

.conversion-result-large {
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 5px 20px var(--shadow-color);
    padding: 30px;
    max-width: 600px;
    margin: 0 auto 40px;
    text-align: center;
}

.conversion-display {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 20px;
}

.conversion-from, .conversion-to {
    display: flex;
    align-items: center;
}

.currency-icon {
    height: 30px;
    margin-right: 10px;
}

.conversion-equals {
    margin: 0 20px;
    font-size: 2rem;
    color: var(--text-lighter);
}

.amount {
    font-size: 2rem;
    font-weight: 700;
    margin-right: 5px;
}

.currency {
    font-size: 1.2rem;
    color: var(--text-light);
}

.last-updated {
    color: var(--text-lighter);
    font-size: 0.9rem;
}

.conversion-calculator {
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 3px 10px var(--shadow-color);
    padding: 25px;
    max-width: 600px;
    margin: 0 auto 40px;
}

.conversion-calculator h2 {
    text-align: center;
    margin-bottom: 20px;
    font-size: 1.5rem;
}

.calculator-container {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 15px;
    align-items: center;
}

.equals-sign {
    font-size: 1.5rem;
    text-align: center;
    color: var(--text-lighter);
}

.content-sections {
    max-width: 800px;
    margin: 0 auto;
}

.content-sections section {
    margin-bottom: 40px;
}

.content-sections h2 {
    margin-bottom: 20px;
    color: var(--bitcoin-orange);
}

.historical-table {
    overflow-x: auto;
    margin: 20px 0;
}

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

table th, table td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

table th {
    background-color: var(--background-gray);
    font-weight: 600;
}

table tr:hover {
    background-color: rgba(247, 147, 26, 0.05);
}

.uses-list li {
    margin-bottom: 15px;
    padding-left: 25px;
    position: relative;
}

.uses-list li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--bitcoin-orange);
    font-weight: bold;
}

.tips-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.tip {
    background-color: var(--background-gray);
    border-radius: 8px;
    padding: 20px;
}

.tip h3 {
    margin-bottom: 10px;
    color: var(--bitcoin-orange);
    font-size: 1.1rem;
}

.faq-item {
    margin-bottom: 20px;
}

.faq-item h3 {
    margin-bottom: 10px;
    color: var(--bitcoin-orange);
}

.related-conversions {
    margin-top: 40px;
}

.related-links {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
    margin-top: 20px;
}

.related-link {
    display: block;
    background-color: white;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 15px;
    transition: all 0.3s ease;
}

.related-link:hover {
    border-color: var(--bitcoin-orange);
    transform: translateY(-3px);
    box-shadow: 0 3px 10px var(--shadow-color);
}

.related-link .conversion {
    display: block;
    font-weight: 600;
    margin-bottom: 5px;
    color: var(--text-dark);
}

.related-link .description {
    font-size: 0.9rem;
    color: var(--text-light);
}

/* 博客页面样式 */
.blog-main {
    padding: 40px 0;
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.blog-intro {
    text-align: center;
    margin-bottom: 40px;
    font-size: 1.1rem;
    color: var(--text-light);
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}

.blog-card {
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 3px 10px var(--shadow-color);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px var(--shadow-color);
}

.blog-image img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.blog-content {
    padding: 20px;
}

.blog-content h2 {
    margin-bottom: 10px;
    font-size: 1.3rem;
}

.blog-content h2 a {
    color: var(--text-dark);
}

.blog-content h2 a:hover {
    color: var(--bitcoin-orange);
}

.blog-meta {
    display: flex;
    margin-bottom: 15px;
    font-size: 0.9rem;
    color: var(--text-lighter);
}

.blog-meta .date {
    margin-right: 15px;
}

.read-more {
    display: inline-block;
    margin-top: 15px;
    font-weight: 500;
}

.pagination {
    display: flex;
    justify-content: center;
    margin-top: 40px;
}

.pagination a, .pagination span {
    display: inline-block;
    padding: 8px 12px;
    margin: 0 5px;
    border-radius: 4px;
}

.pagination a {
    background-color: white;
    border: 1px solid var(--border-color);
}

.pagination a:hover {
    background-color: var(--background-gray);
}

.pagination .current-page {
    background-color: var(--bitcoin-orange);
    color: white;
}

.pagination .next {
    margin-left: 10px;
}

.blog-sidebar {
    position: sticky;
    top: 100px;
}

.sidebar-widget {
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 3px 10px var(--shadow-color);
    padding: 20px;
    margin-bottom: 30px;
}

.sidebar-widget h3 {
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border-color);
    color: var(--bitcoin-orange);
}

.category-list li {
    margin-bottom: 10px;
}

.category-list li a {
    display: block;
    padding: 8px 10px;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.category-list li a:hover, .category-list li a.active {
    background-color: rgba(247, 147, 26, 0.1);
    color: var(--bitcoin-orange);
}

.popular-posts li {
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--border-color);
}

.popular-posts li:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.popular-posts a {
    display: block;
    margin-bottom: 5px;
    color: var(--text-dark);
    font-weight: 500;
}

.popular-posts a:hover, .popular-posts a.active {
    color: var(--bitcoin-orange);
}

.post-date {
    font-size: 0.8rem;
    color: var(--text-lighter);
}

.mini-converter {
    margin-top: 15px;
}

.mini-converter input {
    width: 100%;
    margin-bottom: 10px;
}

.mini-result {
    margin-top: 15px;
    text-align: center;
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--bitcoin-orange);
}

/* 博客文章页面样式 */
.blog-post {
    padding: 40px 0;
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.post-header {
    margin-bottom: 30px;
}

.post-header h1 {
    margin-bottom: 15px;
    font-size: 2.2rem;
}

.post-meta {
    display: flex;
    margin-bottom: 20px;
    color: var(--text-lighter);
}

.post-meta span {
    margin-right: 20px;
}

.post-featured-image {
    width: 100%;
    border-radius: 8px;
    margin-bottom: 20px;
}

.post-intro {
    font-size: 1.1rem;
    color: var(--text-light);
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border-color);
}

.post-body h2 {
    margin: 30px 0 15px;
    color: var(--bitcoin-orange);
}

.post-body h3 {
    margin: 25px 0 15px;
    color: var(--text-dark);
}

.post-body p {
    margin-bottom: 20px;
}

.post-body ul, .post-body ol {
    margin-bottom: 20px;
    padding-left: 20px;
}

.post-body li {
    margin-bottom: 10px;
}

.post-tags {
    margin: 30px 0;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
}

.post-tags span {
    margin-right: 10px;
    color: var(--text-light);
}

.post-tags a {
    display: inline-block;
    margin-right: 10px;
    padding: 5px 10px;
    background-color: var(--background-gray);
    border-radius: 4px;
    font-size: 0.9rem;
}

.post-navigation {
    display: flex;
    justify-content: space-between;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
}

.prev-post, .next-post {
    max-width: 45%;
}

.related-pages {
    margin-top: 20px;
}

.related-pages ul li {
    margin-bottom: 10px;
}

/* 响应式设计 */
@media (max-width: 1024px) {
    .blog-main, .blog-post {
        grid-template-columns: 1fr;
    }
    
    .blog-sidebar {
        position: static;
        margin-top: 40px;
    }
}

@media (max-width: 768px) {
    .hero h1 {
        font-size: 2rem;
    }
    
    .conversion-display {
        flex-direction: column;
    }
    
    .conversion-equals {
        margin: 15px 0;
    }
    
    .calculator-container {
        grid-template-columns: 1fr;
    }
    
    .equals-sign {
        display: none;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    header .container {
        flex-direction: column;
    }
    
    nav ul {
        margin-top: 15px;
    }
    
    .hero h1 {
        font-size: 1.8rem;
    }
    
    .amount {
        font-size: 1.5rem;
    }
    
    .post-header h1 {
        font-size: 1.8rem;
    }
}