/* ===== 全局样式 ===== */
:root {
    --primary-color: #1A1A1A;
    --accent-color: #FF9900;
    --accent-light: #FFB366;
    --bg-color: #FAFAFA;
    --text-primary: #222222;
    --text-secondary: #666666;
    --border-color: #E0E0E0;
    --card-bg: #FFFFFF;
    --card-shadow: rgba(0, 0, 0, 0.08);
    --card-hover-shadow: rgba(0, 0, 0, 0.12);
    --accent-shadow: rgba(255, 153, 0, 0.15);
    --warning-bg: linear-gradient(135deg, #FF9900 0%, #E68A00 100%);
    --warning-overlay: rgba(0, 0, 0, 0.6);
    --glass-bg: rgba(255, 255, 255, 0.9);
    --glass-border: #E0E0E0;
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Helvetica Neue", Arial, "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
    line-height: 1.6;
    color: var(--text-primary);
    background: var(--bg-color);
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 50%, rgba(255, 153, 0, 0.03) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(255, 153, 0, 0.02) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
}

/* ===== 微信浏览器警告 ===== */
.wechat-warning {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    animation: fadeIn 0.3s ease-in-out;
}

.wechat-warning.hidden {
    display: none;
}

.warning-overlay-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--warning-overlay);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

/* 右上角指示箭头 */
.corner-arrow {
    position: absolute;
    top: 20px;
    right: 20px;
    text-align: center;
    animation: bounceArrow 2s ease-in-out infinite;
    z-index: 10001;
}

.arrow-pointer {
    font-size: 48px;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3));
    transform: rotate(45deg);
}

.arrow-text {
    color: white;
    font-size: 14px;
    font-weight: 600;
    margin-top: 5px;
    background: rgba(255, 152, 0, 0.9);
    padding: 4px 12px;
    border-radius: 12px;
    display: inline-block;
    box-shadow: 0 4px 12px rgba(255, 152, 0, 0.4);
}

/* 警告内容卡片 */
.warning-content {
    background: var(--warning-bg);
    color: white;
    padding: 32px 28px;
    border-radius: 12px;
    text-align: center;
    max-width: 400px;
    width: 100%;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.2);
    animation: slideDown 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
    z-index: 10000;
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.warning-icon {
    font-size: 72px;
    margin-bottom: 20px;
    animation: pulse 2s ease-in-out infinite;
    filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.2));
}

.warning-content h3 {
    font-size: 28px;
    margin-bottom: 12px;
    font-weight: 800;
    letter-spacing: 0.5px;
}

.warning-main-text {
    font-size: 15px;
    line-height: 1.6;
    margin-bottom: 25px;
    opacity: 0.9;
}

/* 操作步骤 */
.instruction-steps {
    background: rgba(0, 0, 0, 0.15);
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 25px;
    text-align: left;
}

.step {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 12px;
}

.step:last-child {
    margin-bottom: 0;
}

.step-number {
    background: white;
    color: #ff6f00;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 14px;
    flex-shrink: 0;
}

.step-text {
    font-size: 15px;
    line-height: 1.6;
}

.step-text strong {
    font-weight: 700;
    background: rgba(255, 255, 255, 0.15);
    padding: 2px 8px;
    border-radius: 6px;
}

/* 按钮组 */
.button-group {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

.continue-btn,
.copy-url-btn,
.close-btn {
    border: none;
    padding: 12px 24px;
    font-size: 15px;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
}

.continue-btn {
    background: linear-gradient(135deg, #FF9900 0%, #E68A00 100%);
    color: white;
    flex: 1;
    min-width: 140px;
    font-weight: 600;
    border: none;
}

.continue-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(255, 153, 0, 0.25);
}

.continue-btn:active {
    transform: translateY(-1px);
}

.copy-url-btn {
    background: white;
    color: #FF9900;
    flex: 1;
    min-width: 120px;
    border: 1.5px solid #FF9900;
}

.copy-url-btn:hover {
    transform: translateY(-2px);
    background: #FFF5E6;
    box-shadow: 0 6px 16px rgba(255, 153, 0, 0.2);
}

.copy-url-btn:active {
    transform: translateY(-1px);
}

.close-btn {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
    flex: 1;
    min-width: 100px;
}

.close-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
}

.btn-icon {
    font-size: 18px;
}

/* 复制成功提示 */
.copy-success-toast {
    position: absolute;
    bottom: -50px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(76, 175, 80, 0.95);
    color: white;
    padding: 12px 24px;
    border-radius: 25px;
    font-size: 14px;
    font-weight: 600;
    box-shadow: 0 8px 20px rgba(76, 175, 80, 0.4);
    animation: slideUp 0.3s ease-out;
    white-space: nowrap;
}

.copy-success-toast.hidden {
    display: none;
}

/* ===== 主容器 ===== */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
    position: relative;
    z-index: 1;
}

/* ===== 页面头部 ===== */
.header {
    text-align: center;
    padding: 40px 20px 30px;
    animation: fadeInDown 0.8s ease-out;
}

.header-content {
    display: inline-block;
    background: var(--card-bg);
    padding: 24px 40px;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    box-shadow: 0 2px 8px var(--card-shadow);
}

.logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 12px;
}

.btc-icon {
    font-size: 40px;
    color: var(--accent-color);
    animation: float 3s ease-in-out infinite;
}

.header h1 {
    font-size: 36px;
    font-weight: 700;
    color: var(--primary-color);
    letter-spacing: 0.5px;
}

.subtitle {
    font-size: 14px;
    color: var(--text-secondary);
    font-weight: 400;
    letter-spacing: 0.3px;
    margin-top: 8px;
}

/* ===== 工具区域并排布局 ===== */
.tools-row {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 20px;
    padding: 20px 0;
    animation: fadeInUp 0.9s ease-out;
}

/* ===== 比特币地址查询区域 ===== */
.btc-search-section {
    display: flex;
    flex-direction: column;
}

.btc-search-container {
    background: var(--card-bg);
    border-radius: 16px;
    padding: 28px 24px;
    box-shadow: 0 4px 12px var(--card-shadow);
    border: 1px solid var(--border-color);
    position: relative;
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.btc-search-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--accent-color) 0%, var(--accent-light) 100%);
}

.btc-search-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 12px;
}

.btc-search-icon {
    font-size: 28px;
    animation: float 3s ease-in-out infinite;
}

.btc-search-header h2 {
    font-size: 20px;
    font-weight: 700;
    color: var(--primary-color);
    margin: 0;
}

.btc-search-description {
    text-align: center;
    color: var(--text-secondary);
    font-size: 13px;
    margin-bottom: 20px;
    line-height: 1.5;
}

.btc-search-box {
    display: flex;
    gap: 12px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.btc-address-input {
    flex: 1;
    min-width: 280px;
    padding: 14px 18px;
    font-size: 15px;
    border: 2px solid var(--border-color);
    border-radius: 10px;
    outline: none;
    transition: all 0.3s ease;
    font-family: 'Courier New', Courier, monospace;
    background: var(--bg-color);
    color: var(--text-primary);
}

.btc-address-input::placeholder {
    color: var(--text-secondary);
    opacity: 0.6;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", sans-serif;
}

.btc-address-input:focus {
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(255, 153, 0, 0.1);
    background: var(--card-bg);
}

.btc-search-btn {
    padding: 14px 28px;
    background: linear-gradient(135deg, var(--accent-color) 0%, #E68A00 100%);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(255, 153, 0, 0.25);
    white-space: nowrap;
}

.btc-search-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(255, 153, 0, 0.35);
    background: linear-gradient(135deg, #FFB366 0%, var(--accent-color) 100%);
}

.btc-search-btn:active {
    transform: translateY(-1px);
}

.btc-search-btn .btn-icon {
    font-size: 18px;
}

.btc-search-tips {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px;
    background: rgba(255, 153, 0, 0.05);
    border-radius: 8px;
    border: 1px solid rgba(255, 153, 0, 0.1);
}

.btc-search-tips .tip-icon {
    font-size: 16px;
}

.btc-search-tips .tip-text {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.5;
}

/* ===== 赞助支持区域 ===== */
.sponsor-section {
    display: flex;
    flex-direction: column;
}

.sponsor-container {
    background: var(--card-bg);
    border-radius: 16px;
    padding: 28px 24px;
    box-shadow: 0 4px 12px var(--card-shadow);
    border: 1px solid var(--border-color);
    position: relative;
    overflow: visible;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.sponsor-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #FF6B9D 0%, var(--accent-color) 100%);
}

.sponsor-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 12px;
}

.sponsor-icon {
    font-size: 28px;
    animation: float 3s ease-in-out infinite;
}

.sponsor-header h2 {
    font-size: 20px;
    font-weight: 700;
    color: var(--primary-color);
    margin: 0;
}

.sponsor-description {
    text-align: center;
    color: var(--text-secondary);
    font-size: 13px;
    margin-bottom: 20px;
    line-height: 1.5;
}

.sponsor-address-box {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 16px 20px;
    background: rgba(255, 153, 0, 0.05);
    border-radius: 10px;
    border: 2px solid rgba(255, 153, 0, 0.15);
    flex-wrap: wrap;
    position: relative;
}

.sponsor-label {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
}

.sponsor-address {
    font-family: 'Courier New', Courier, monospace;
    font-size: 13px;
    color: var(--accent-color);
    cursor: pointer;
    padding: 6px 10px;
    border-radius: 6px;
    transition: all 0.3s ease;
    position: relative;
    user-select: none;
    font-weight: 600;
    word-break: break-all;
}

.sponsor-address:hover {
    background: rgba(255, 153, 0, 0.1);
    transform: translateY(-1px);
}

.sponsor-address:active {
    transform: translateY(0);
}

.sponsor-qrcode {
    position: absolute;
    top: 50%;
    left: calc(100% + 10px);
    transform: translateY(-50%);
    width: 150px;
    height: 150px;
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
    border: 3px solid white;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    z-index: 1000;
    pointer-events: none;
}

.sponsor-address:hover .sponsor-qrcode {
    opacity: 1;
    visibility: visible;
}

.sponsor-copy-toast {
    position: absolute;
    bottom: -45px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, #4CAF50 0%, #45a049 100%);
    color: white;
    padding: 10px 20px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    box-shadow: 0 6px 16px rgba(76, 175, 80, 0.3);
    animation: slideUp 0.3s ease-out;
    white-space: nowrap;
    z-index: 100;
}

.sponsor-copy-toast.hidden {
    display: none;
}

/* 响应式设计 - 移动端布局 */
@media (max-width: 968px) {
    .tools-row {
        grid-template-columns: 1fr;
        gap: 16px;
    }
}

@media (max-width: 768px) {
    .sponsor-qrcode {
        left: 50%;
        top: calc(100% + 10px);
        transform: translateX(-50%);
    }
    
    .sponsor-address:hover .sponsor-qrcode {
        transform: translateX(-50%) translateY(0);
    }
    
    .sponsor-address-box {
        flex-direction: column;
        text-align: center;
    }
    
    .sponsor-address {
        font-size: 12px;
        padding: 8px;
    }
}

/* ===== 卡片网格 ===== */
.main-content {
    padding: 20px 0;
    animation: fadeInUp 1s ease-out;
}

.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 16px;
    padding: 20px 0;
}

/* ===== 单个卡片 ===== */
.card {
    background: var(--card-bg);
    border-radius: 12px;
    padding: 24px 20px;
    text-decoration: none;
    color: var(--text-primary);
    transition: all 0.2s ease;
    box-shadow: 0 2px 8px var(--card-shadow);
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
    cursor: pointer;
    border: 1px solid var(--border-color);
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--accent-color);
    transform: scaleX(0);
    transition: transform 0.2s ease;
    border-radius: 12px 12px 0 0;
}

.card::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: radial-gradient(circle, var(--accent-shadow) 0%, transparent 70%);
    transform: translate(-50%, -50%);
    transition: width 0.3s ease, height 0.3s ease;
}

.card:hover::before {
    transform: scaleX(1);
}

.card:hover::after {
    width: 300px;
    height: 300px;
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 16px var(--card-hover-shadow);
    border-color: var(--accent-color);
}

.card-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
    position: relative;
    z-index: 1;
}

.card-icon {
    font-size: 40px;
    display: inline-block;
    transition: transform 0.2s ease;
    position: relative;
    z-index: 1;
    flex-shrink: 0;
}

.card:hover .card-icon {
    transform: scale(1.08);
}

.card-title {
    font-size: 18px;
    font-weight: 700;
    margin: 0;
    color: var(--primary-color);
    line-height: 1.4;
    position: relative;
    z-index: 1;
}

.card-description {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
    flex-grow: 1;
    margin-bottom: 12px;
    position: relative;
    z-index: 1;
}

.card-disclaimer-text {
    font-size: 12px;
    color: #FF9900;
    margin-bottom: 8px;
    position: relative;
    z-index: 1;
    font-weight: 500;
}

.card-footer {
    display: flex;
    justify-content: flex-end;
    position: relative;
    z-index: 1;
}

.card-link {
    color: var(--accent-color);
    font-weight: 600;
    font-size: 13px;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.card:hover .card-link {
    transform: translateX(4px);
    color: var(--primary-color);
}

/* ===== 占位卡片 ===== */
.card-placeholder {
    background: #F5F5F5;
    border: 2px dashed var(--border-color);
    cursor: default;
    pointer-events: none;
}

.card-placeholder:hover {
    transform: none;
    box-shadow: 0 2px 8px var(--card-shadow);
}

.card-placeholder::before,
.card-placeholder::after {
    display: none;
}

.card-placeholder .card-title {
    color: var(--text-secondary);
}

.card-placeholder .card-description {
    color: #999999;
}

.placeholder-icon {
    opacity: 0.4;
}

/* ===== 页脚 ===== */
.footer {
    text-align: center;
    padding: 40px 20px 30px;
    color: var(--text-secondary);
    font-size: 13px;
    animation: fadeIn 1.2s ease-out;
}

.footer p {
    margin: 6px 0;
}

.footer-note {
    font-style: italic;
    opacity: 0.8;
    font-size: 12px;
    margin-top: 8px;
}

.footer-disclaimer {
    margin-top: 16px;
    padding: 12px 16px;
    background: #FFF5E6;
    border-radius: 8px;
    border: 1px solid #FFE0B2;
    font-size: 12px;
    line-height: 1.6;
    color: var(--primary-color);
}

/* ===== 动画效果 ===== */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

@keyframes slideDown {
    from {
        transform: translateY(-50px) scale(0.9);
        opacity: 0;
    }
    to {
        transform: translateY(0) scale(1);
        opacity: 1;
    }
}

@keyframes slideUp {
    from {
        transform: translateX(-50%) translateY(10px);
        opacity: 0;
    }
    to {
        transform: translateX(-50%) translateY(0);
        opacity: 1;
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.08);
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }
    25% {
        transform: translateY(-10px) rotate(-3deg);
    }
    50% {
        transform: translateY(0) rotate(0deg);
    }
    75% {
        transform: translateY(-10px) rotate(3deg);
    }
}

@keyframes bounceArrow {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-15px);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* ===== 响应式设计 ===== */
@media (max-width: 1200px) {
    .cards-grid {
        grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
        gap: 14px;
    }
}

@media (max-width: 768px) {
    .header {
        padding: 32px 20px 24px;
    }

    .header-content {
        padding: 20px 32px;
    }

    .header h1 {
        font-size: 28px;
    }

    .btc-icon {
        font-size: 32px;
    }

    .subtitle {
        font-size: 13px;
    }

    .cards-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .card {
        padding: 20px 16px;
    }

    .card-icon {
        font-size: 40px;
        margin-bottom: 12px;
    }

    .card-title {
        font-size: 16px;
    }

    .card-description {
        font-size: 13px;
    }

    .warning-content {
        padding: 28px 24px;
        max-width: 340px;
    }

    .warning-content h3 {
        font-size: 22px;
    }

    .warning-main-text {
        font-size: 13px;
    }

    .instruction-steps {
        padding: 16px;
    }

    .step-text {
        font-size: 13px;
    }

    .corner-arrow {
        top: 12px;
        right: 12px;
    }

    .arrow-pointer {
        font-size: 36px;
    }

    .arrow-text {
        font-size: 11px;
    }

    .button-group {
        flex-direction: column;
        gap: 8px;
    }

    .continue-btn,
    .copy-url-btn,
    .close-btn {
        width: 100%;
        justify-content: center;
        padding: 12px 24px;
        font-size: 14px;
    }

    .footer-disclaimer {
        margin-top: 12px;
        padding: 10px 12px;
        font-size: 11px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 12px;
    }

    .header {
        padding: 24px 16px 20px;
    }

    .header-content {
        padding: 16px 24px;
    }

    .header h1 {
        font-size: 24px;
    }

    .btc-icon {
        font-size: 28px;
    }

    .logo {
        gap: 8px;
    }

    .subtitle {
        font-size: 12px;
    }

    .cards-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .card {
        padding: 16px 14px;
    }

    .card-icon {
        font-size: 36px;
        margin-bottom: 10px;
    }

    .card-title {
        font-size: 15px;
        margin-bottom: 8px;
    }

    .card-description {
        font-size: 12px;
        margin-bottom: 10px;
    }

    .card-disclaimer-text {
        font-size: 11px;
    }

    .card-footer {
        margin-top: 4px;
    }

    .card-link {
        font-size: 12px;
    }

    .warning-content {
        padding: 24px 20px;
        max-width: 300px;
    }

    .warning-icon {
        font-size: 56px;
    }

    .warning-content h3 {
        font-size: 20px;
    }

    .corner-arrow {
        top: 10px;
        right: 10px;
    }

    .arrow-pointer {
        font-size: 32px;
    }

    .footer {
        padding: 32px 12px 24px;
    }
}

/* ===== 留言板样式 ===== */
/* Waline 主题变量定义 */
:root {
    --waline-font-size: 15px;
    --waline-white: #fff;
    --waline-light-grey: #999;
    --waline-dark-grey: #666;
    --waline-theme-color: #FF9900;
    --waline-active-color: #FFB366;
    --waline-color: #333;
    --waline-bg-color: #fff;
    --waline-bg-color-light: #f8f8f8;
    --waline-bg-color-hover: #f5f5f5;
    --waline-border-color: #E0E0E0;
    --waline-disable-bg-color: #f8f8f8;
    --waline-disable-color: #bbb;
    --waline-code-bg-color: #282c34;
    --waline-bq-color: #f8f8f8;
    --waline-badge-color: #FF9900;
    --waline-badge-font-size: 0.775em;
    --waline-info-bg-color: #f8f8f8;
    --waline-info-color: #999;
    --waline-info-font-size: 0.625em;
    --waline-border: 1px solid var(--waline-border-color);
    --waline-avatar-radius: 50%;
    --waline-box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    --waline-avatar-size: 3.25rem;
    --waline-m-avatar-size: calc(var(--waline-avatar-size) * 9 / 13);
}

/* 留言板按钮 */
.comments-button-wrapper {
    position: fixed;
    bottom: 40px;
    right: 20px;
    z-index: 100;
    animation: slideInRight 0.5s ease-out;
}

.comments-button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 18px;
    background: linear-gradient(135deg, var(--accent-color) 0%, var(--accent-light) 100%);
    color: white;
    border: none;
    border-radius: 50px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(255, 153, 0, 0.3);
    transition: all 0.3s ease;
    min-width: 60px;
    position: relative;
}

.comments-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(255, 153, 0, 0.4);
}

.comments-button:active {
    transform: translateY(-1px);
}

.comments-icon {
    font-size: 18px;
}

.comments-text {
    display: inline-block;
}

/* 留言板侧边栏 */
.comments-sidebar {
    position: fixed;
    top: 0;
    right: 0;
    width: 100%;
    max-width: 400px;
    height: 100vh;
    background: white;
    box-shadow: -2px 0 12px rgba(0, 0, 0, 0.12);
    z-index: 999;
    display: flex;
    flex-direction: column;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    overflow: hidden;
}

.comments-sidebar.open {
    transform: translateX(0);
}

.comments-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    border-bottom: 1px solid var(--border-color);
    background: white;
    flex-shrink: 0;
}

.comments-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 700;
    color: var(--primary-color);
}

.comments-close-btn {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: var(--text-secondary);
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.comments-close-btn:hover {
    background: var(--bg-color);
    color: var(--primary-color);
}

/* 留言内容容器 */
.comments-content {
    flex: 1;
    overflow-y: auto;
    padding: 16px 20px;
    background: white;
}

/* Waline 组件样式优化 */
.waline {
    font-family: inherit;
    color: var(--waline-color);
}

/* 编辑器样式 */
.waline [data-type="editor"],
.waline-editor {
    background: var(--waline-bg-color);
    border: 1px solid var(--waline-border-color);
    border-radius: 8px;
    padding: 12px;
    font-family: inherit;
}

textarea.waline-input,
.waline textarea {
    font-family: inherit;
    font-size: var(--waline-font-size);
    color: var(--waline-color);
    border: none;
    outline: none;
    background: transparent;
}

textarea.waline-input::placeholder,
.waline textarea::placeholder {
    color: var(--waline-light-grey);
}

/* 提交按钮 */
.waline button,
button.waline-submit {
    background: linear-gradient(135deg, var(--accent-color) 0%, var(--accent-light) 100%);
    color: white;
    border: none;
    padding: 10px 24px;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 14px;
    font-family: inherit;
}

.waline button:hover,
button.waline-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 153, 0, 0.25);
}

.waline button:disabled,
button.waline-submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* Waline 头像样式 */
.waline img[alt="avatar"],
.waline-avatar {
    width: var(--waline-avatar-size);
    height: var(--waline-avatar-size);
    border-radius: var(--waline-avatar-radius);
    object-fit: cover;
    background: var(--waline-bg-color-light);
}

/* Waline 评论项样式 */
.waline-item {
    border-bottom: 1px solid var(--waline-border-color);
    padding: 16px 0;
    margin: 0;
}

.waline-item:last-child {
    border-bottom: none;
}

.waline-nick,
.waline-name {
    color: var(--text-secondary);
    font-weight: 500;
}

.waline-nick:hover,
.waline-name:hover {
    color: var(--accent-color);
}

.waline-comment-body,
.waline-text {
    color: var(--waline-color);
    font-size: var(--waline-font-size);
    line-height: 1.6;
    margin: 8px 0;
}

.waline-meta {
    display: flex;
    gap: 16px;
    font-size: var(--waline-info-font-size);
    color: var(--waline-info-color);
    margin-top: 8px;
}

.waline-meta-item,
.waline-time {
    cursor: pointer;
    transition: color 0.2s ease;
}

.waline-meta-item:hover,
.waline-time:hover {
    color: var(--accent-color);
}

/* Waline 徽章样式 */
.waline-badge {
    display: inline-block;
    background: linear-gradient(135deg, var(--accent-color) 0%, var(--accent-light) 100%);
    color: white;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: var(--waline-badge-font-size);
    font-weight: 600;
    margin-left: 8px;
}

/* 比特币地址查询 - 响应式设计 */
@media (max-width: 768px) {
    .btc-search-container {
        padding: 24px 20px;
    }

    .btc-search-header h2 {
        font-size: 20px;
    }

    .btc-search-box {
        flex-direction: column;
    }

    .btc-address-input {
        min-width: 100%;
        font-size: 14px;
    }

    .btc-search-btn {
        width: 100%;
        justify-content: center;
        padding: 14px 20px;
    }

    .btc-search-tips {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .btc-search-icon {
        font-size: 28px;
    }

    .btc-search-header h2 {
        font-size: 18px;
    }

    .btc-search-description {
        font-size: 13px;
    }

    .btc-address-input::placeholder {
        font-size: 13px;
    }
}

/* 响应式设计 */
@media (max-width: 768px) {
    .comments-sidebar {
        max-width: 100%;
    }

    .comments-button-wrapper {
        bottom: 24px;
        right: 16px;
    }

    .comments-button {
        min-width: 56px;
        padding: 11px 16px;
    }
}

@media (max-width: 480px) {
    .comments-sidebar {
        max-width: 100%;
    }

    .comments-button-wrapper {
        bottom: 16px;
        right: 12px;
    }

    .comments-button {
        min-width: 50px;
        padding: 10px 12px;
        font-size: 13px;
    }

    .comments-text {
        display: none;
    }

    .comments-icon {
        font-size: 16px;
    }

    .comments-header {
        padding: 14px 16px;
    }

    .comments-header h3 {
        font-size: 16px;
    }

    .comments-close-btn {
        width: 28px;
        height: 28px;
        font-size: 20px;
    }

    .comments-content {
        padding: 12px 14px;
    }

    .waline-avatar {
        --waline-avatar-size: 2.5rem;
    }
}

/* ===== 可访问性改进 ===== */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* ===== 打印样式 ===== */
@media print {
    body {
        background: white;
    }

    .wechat-warning {
        display: none !important;
    }

    .comments-button-wrapper,
    .comments-sidebar {
        display: none !important;
    }

    .card {
        break-inside: avoid;
        box-shadow: none;
        border: 1px solid #ddd;
    }
}
