/* --- 基础与背景 --- */
body {
    font-family: 'Inter', sans-serif;
    background-color: #0a192f;
    background-image: 
        radial-gradient(circle at 1px 1px, rgba(255,255,255,0.08) 1px, transparent 0),
        radial-gradient(circle at 25px 25px, rgba(255,255,255,0.05) 1px, transparent 0);
    background-size: 50px 50px;
    background-attachment: fixed;
}

/* --- 核心UI组件 --- */
.glassmorphism {
    background: rgba(17, 34, 64, 0.75); 
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(137, 162, 255, 0.2);
    border-radius: 1rem;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3);
}

.brand-header {
    background: linear-gradient(135deg, #00075e 0%, #000d94 100%);
}

.page-title {
    color: #ccd6f6;
}

/* --- 导航按钮 --- */
.nav-bar {
    display: flex;
    flex-wrap: wrap; 
    gap: 0.5rem;
    padding: 0.5rem;
}

.nav-button {
    padding: 0.5rem 1rem;
    border-radius: 0.75rem;
    transition: all 0.2s ease-in-out;
    border: 1px solid transparent;
    color: #a9b4ff;
    background-color: rgba(137, 162, 255, 0.1);
}

.nav-button:hover {
    background-color: rgba(169, 180, 255, 0.2);
    color: white;
}

.nav-button.active {
    background: #A9B4FF;
    color: #000d94;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(169, 180, 255, 0.2);
}

/* --- 文章卡片 --- */
.post-card-link {
    transform: translateY(0);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative; /* 为 "NEW" 角标定位 */
    overflow: hidden; /* 隐藏角标溢出部分 */
}

.post-card-link:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.5);
}

.post-card-image-wrapper {
    overflow: hidden;
    border-top-left-radius: 1rem;
    border-top-right-radius: 1rem;
    aspect-ratio: 16 / 10; 
}

.post-card-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.post-card-link:hover .post-card-image {
    transform: scale(1.05);
}

/* "NEW" 文章角标样式 */
.new-badge {
    position: absolute;
    top: -1px;
    right: -1px;
    background-color: #ffdf47;
    color: #000d94;
    padding: 0.5rem 2rem;
    font-size: 0.75rem;
    font-weight: bold;
    transform: rotate(45deg) translate(30%, -50%);
    transform-origin: center;
    box-shadow: 0 4px 10px rgba(255, 223, 71, 0.3);
    z-index: 10;
}


/* --- 标签与文章内容 --- */
.tag {
    background-color: rgba(169, 180, 255, 0.1);
    color: #a9b4ff;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 500;
    line-height: 1.2;
}

.prose-invert {
    --tw-prose-bullets: #a9b4ff;
}

#post-content img {
    border-radius: 0.75rem; 
    border: 1px solid rgba(137, 162, 255, 0.2); 
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.4), 0 8px 10px -6px rgba(0, 0, 0, 0.4);
    margin-top: 2rem;
    margin-bottom: 2rem;
}

.summary-box {
    background-color: rgba(13, 27, 51, 0.8);
    border-left: 4px solid #4299e1;
    padding: 1rem;
    margin: 1.5rem 0;
    border-radius: 0.25rem;
}

/* --- 促销卡片 --- */
#promo-section .promo-card-link .promo-card {
    border-color: rgba(255, 223, 71, 0.5);
    animation: pulse-border 3s infinite;
    box-shadow: 0 0 20px rgba(255, 223, 71, 0.1);
}

@keyframes pulse-border {
    0% { box-shadow: 0 0 0 0 rgba(255, 223, 71, 0.4), 0 0 20px rgba(255, 223, 71, 0.1); }
    70% { box-shadow: 0 0 10px 15px rgba(255, 223, 71, 0), 0 0 20px rgba(255, 223, 71, 0.1); }
    100% { box-shadow: 0 0 0 0 rgba(255, 223, 71, 0), 0 0 20px rgba(255, 223, 71, 0.1); }
}

/* --- 按钮样式 --- */
.buy-button {
    display: inline-flex;
    align-items: center;
    padding: 0.75rem 1.5rem;
    background-color: #ffdf47;
    color: #000d94;
    font-weight: bold;
    border-radius: 0.5rem;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255, 223, 71, 0.2);
}

.buy-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 223, 71, 0.4);
    background-color: #fff;
}

.telegram-header-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 40px;
    padding: 0 0.75rem;
    border-radius: 0.75rem;
    color: #C8CEFF;
    transition: all 0.2s ease-in-out;
    border: 1px solid transparent;
}

.telegram-header-button:hover {
    color: white;
    background-color: rgba(169, 180, 255, 0.2);
    border-color: rgba(169, 180, 255, 0.4);
}

.action-button {
    display: inline-flex; 
    align-items: center; 
    padding: 0.75rem 1.5rem;
    margin-top: 1rem;
    font-size: 1em;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    color: #000d94;
    background-color: #A9B4FF;
    border-radius: 0.5rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(169, 180, 255, 0.2);
}

.action-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(169, 180, 255, 0.4);
    background-color: #fff;
}

.telegram-button {
    background-color: #24A1DE;
    color: white;
    box-shadow: 0 4px 15px rgba(36, 161, 222, 0.2);
}

.telegram-button:hover {
    background-color: #1B7EAE;
    box-shadow: 0 6px 20px rgba(36, 161, 222, 0.4);
    color: white;
}

.button-group {
    display: flex;
    flex-wrap: wrap; 
    gap: 1rem; 
    margin-top: 1rem;
    margin-bottom: 2rem;
}

.post-actions-container {
    text-align: center;
    margin-top: 2.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(137, 162, 255, 0.2);
}

/* 页脚操作按钮样式 */
.footer-action-button {
    display: inline-flex;
    align-items: center;
    padding: 0.75rem 1.25rem; 
    background-color: rgba(169, 180, 255, 0.15); 
    color: #a9b4ff; 
    font-weight: 500;
    border-radius: 0.75rem; 
    text-decoration: none;
    transition: all 0.3s ease;
    border: 1px solid rgba(137, 162, 255, 0.2); 
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2); 
}

.footer-action-button:hover {
    background-color: rgba(169, 180, 255, 0.3); 
    color: white; 
    transform: translateY(-2px); 
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3); 
    border-color: rgba(169, 180, 255, 0.4); 
}

/* [新增] 分享按钮容器 */
.share-buttons-container {
    margin-top: 1.5rem;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.75rem; /* 按钮间距 */
    flex-wrap: wrap;
}

/* [新增] 单个分享按钮样式 */
.share-button {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 2.5rem; /* 40px */
    height: 2.5rem; /* 40px */
    border-radius: 50%; /* 圆形 */
    background-color: rgba(169, 180, 255, 0.15);
    color: #a9b4ff;
    border: 1px solid rgba(137, 162, 255, 0.2);
    transition: all 0.3s ease;
}

.share-button:hover {
    transform: translateY(-3px) scale(1.1);
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    color: white;
}
/* 为不同平台按钮设置悬停颜色 */
.share-button-x:hover { background-color: #1DA1F2; }
.share-button-facebook:hover { background-color: #1877F2; }
.share-button-wechat:hover { background-color: #07C160; }
.share-button-xiaohongshu:hover { background-color: #FF2442; }
.share-button-copy:hover { background-color: #8D96B5; }


/* 返回顶部按钮样式 */
.back-to-top-button {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background-color: rgba(169, 180, 255, 0.8);
    color: #000d94;
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    display: none; /* 默认隐藏 */
    justify-content: center;
    align-items: center;
    cursor: pointer;
    z-index: 1000;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(169, 180, 255, 0.4);
    box-shadow: 0 4px 15px rgba(169, 180, 255, 0.2);
    transition: all 0.3s ease;
}

.back-to-top-button:hover {
    background-color: #A9B4FF;
    transform: scale(1.1);
}

/* 打赏与分享弹窗 (Modal) 样式 */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2000;
    backdrop-filter: blur(5px);
}

.modal-content {
    position: relative;
    padding: 2rem;
    width: 90%;
    max-width: 400px;
    text-align: center;
}

.modal-close-button {
    position: absolute;
    top: 0.5rem;
    right: 1rem;
    font-size: 2rem;
    color: #a9b4ff;
    background: none;
    border: none;
    cursor: pointer;
    transition: color 0.2s ease;
}

.modal-close-button:hover {
    color: white;
}

/* 搜索框样式 */
.search-input {
    border-radius: 1rem;
    background-color: rgba(17, 34, 64, 0.75);
    border: 1px solid rgba(137, 162, 255, 0.2);
    color: white;
    transition: all 0.3s ease;
}
.search-input:focus {
    outline: none;
    border-color: #A9B4FF;
    box-shadow: 0 0 0 3px rgba(169, 180, 255, 0.3);
}
.search-input::placeholder {
    color: #8892b0;
}
/* --- [新] 主页活动公告样式 --- */
.promo-announcement-card {
    border: 1px solid rgba(255, 223, 71, 0.3);
    background: radial-gradient(circle at top left, rgba(255, 223, 71, 0.05), transparent 40%);
}

.promo-icon-wrapper {
    background-color: rgba(255, 223, 71, 0.15);
    color: #ffdf47;
    border-radius: 50%;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.promo-list-item {
    display: flex;
    align-items: center;
    padding: 0.5rem 0.75rem;
    border-radius: 0.5rem;
    background-color: rgba(17, 34, 64, 0.6);
    transition: background-color 0.2s ease;
    color: #ccd6f6;
    text-decoration: none;
}
.promo-list-item:hover {
    background-color: rgba(137, 162, 255, 0.15);
}

.view-all-promos-link {
    display: inline-flex;
    align-items: center;
    font-weight: 500;
    color: #ffdf47;
    transition: color 0.2s ease;
    text-decoration: none;
}
.view-all-promos-link:hover {
    color: #fff;
}
.view-all-promos-link:hover svg {
    transform: translateX(4px);
}

/* --- [新] 活动页面卡片样式 --- */
.promo-card-detailed {
    overflow: hidden; /* 确保子元素不会溢出圆角 */
    display: flex;
    flex-direction: column;
    border: 1px solid rgba(137, 162, 255, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.promo-card-detailed:hover {
    transform: translateY(-6px);
    box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.5);
    border-color: rgba(169, 180, 255, 0.4);
}

.promo-card-header {
    padding: 1.5rem 2rem;
    background-color: rgba(17, 34, 64, 0.8);
    border-bottom: 1px solid rgba(137, 162, 255, 0.2);
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
}

.promo-tags-container {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.5rem;
    flex-shrink: 0;
}

.promo-card-body {
    padding: 1.5rem 2rem;
    flex-grow: 1;
}

.promo-card-footer {
    padding: 1rem 2rem;
    background-color: rgba(10, 25, 47, 0.7);
    border-top: 1px solid rgba(137, 162, 255, 0.1);
}

/* --- [新] 通用标签样式 (可用于主页和活动页) --- */
.promo-tag {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: 9999px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    white-space: nowrap;
}

.promo-tag-us {
    background-color: rgba(59, 130, 246, 0.2);
    color: #93c5fd;
}
.promo-tag-ie {
    background-color: rgba(16, 185, 129, 0.2);
    color: #6ee7b7;
}
.promo-tag-ca {
    background-color: rgba(239, 68, 68, 0.2);
    color: #fca5a5;
}
.promo-tag-type {
    background-color: rgba(169, 180, 255, 0.15);
    color: #a9b4ff;
}
/* --- [新] 文章内容排版模板 --- */

/* 2级标题 (主要段落标题) */
#post-content h2 {
    position: relative;
    font-size: 1.75rem;
    padding-bottom: 0.75rem;
    margin-top: 3rem;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid rgba(137, 162, 255, 0.2);
    color: #ccd6f6;
    scroll-margin-top: 80px; /* 优化锚点链接跳转位置 */
}
/* 为H2标题前添加一个装饰性的 '#' 符号 */
#post-content h2::before {
    content: '#';
    position: absolute;
    left: -1.75rem; /* 根据您的页面布局调整 */
    top: 2px;
    font-size: 1.5rem;
    color: #a9b4ff;
    font-weight: 700;
}

/* 3级标题 (次级段落标题) */
#post-content h3 {
    font-size: 1.25rem;
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    color: #a9b4ff;
    font-weight: 600;
    padding-left: 1.25rem;
    border-left: 3px solid #a9b4ff;
}

/* 段落样式 */
#post-content p {
    line-height: 1.8;
    margin-bottom: 1rem;
}

/* 无序列表 (ul) 样式 */
#post-content ul {
    list-style: none;
    padding-left: 1.25rem;
}
#post-content ul li {
    position: relative;
    padding-left: 1.75rem;
    margin-bottom: 0.75rem;
    line-height: 1.7;
}
/* 自定义列表项的 işaretleyici (bullet) */
#post-content ul li::before {
    content: '›';
    position: absolute;
    left: 0;
    top: -2px;
    color: #a9b4ff;
    font-weight: bold;
    font-size: 1.5em;
}

/* 有序列表 (ol) 样式 */
#post-content ol {
    list-style: none;
    padding-left: 1.25rem;
    counter-reset: ordered-list;
}
#post-content ol li {
    position: relative;
    padding-left: 1.75rem;
    margin-bottom: 0.75rem;
    line-height: 1.7;
    counter-increment: ordered-list;
}
/* 自定义数字序号 */
#post-content ol li::before {
    content: counter(ordered-list) ".";
    position: absolute;
    left: 0;
    top: 0;
    color: #a9b4ff;
    font-weight: 600;
    font-size: 1em;
}

/* --- [新] Callout Box (信息提示框) 样式 --- */
.callout-box {
    position: relative;
    padding: 1.25rem 1.5rem 1.25rem 3.5rem;
    margin: 2rem 0;
    border-radius: 0.5rem;
    border: 1px solid;
    background-position: 1rem center;
    background-repeat: no-repeat;
    background-size: 1.5rem;
}
.callout-box p:last-child {
    margin-bottom: 0;
}
/* 提示框 - 信息 (Info) */
.callout-box.info {
    border-color: rgba(96, 165, 250, 0.4);
    background-color: rgba(59, 130, 246, 0.1);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2360a5fa' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10'%3E%3C/circle%3E%3Cline x1='12' y1='16' x2='12' y2='12'%3E%3C/line%3E%3Cline x1='12' y1='8' x2='12.01' y2='8'%3E%3C/line%3E%3C/svg%3E");
}
/* 提示框 - 警告 (Warning) */
.callout-box.warning {
    border-color: rgba(251, 191, 36, 0.4);
    background-color: rgba(245, 158, 11, 0.1);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fbbf24' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M10.29 3.86L1.82 18a2 2 0 0 0 1.71 3h16.94a2 2 0 0 0 1.71-3L13.71 3.86a2 2 0 0 0-3.42 0z'%3E%3C/path%3E%3Cline x1='12' y1='9' x2='12' y2='13'%3E%3C/line%3E%3Cline x1='12' y1='17' x2='12.01' y2='17'%3E%3C/line%3E%3C/svg%3E");
}
/* 提示框 - 技巧/总结 (Tip) */
.callout-box.tip {
    border-color: rgba(52, 211, 153, 0.4);
    background-color: rgba(16, 185, 129, 0.1);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2334d399' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 19a3 3 0 0 1-3-3 3 3 0 0 1 3-3h6a3 3 0 0 1 3 3 3 3 0 0 1-3 3H9z'%3E%3C/path%3E%3Cpath d='M12 13V9a3 3 0 0 0-3-3H7a3 3 0 0 0-3 3v2'%3E%3C/path%3E%3Cpath d='M12 22v-3'%3E%3C/path%3E%3Cpath d='M12 6V3'%3E%3C/path%3E%3Cpath d='M20 12l-2-2'%3E%3C/path%3E%3Cpath d='M4 12l2 2'%3E%3C/path%3E%3C/svg%3E");
}

/* 水平分割线 */
#post-content hr {
    border: 0;
    height: 1px;
    background: linear-gradient(to right, transparent, rgba(137, 162, 255, 0.3), transparent);
    margin: 3rem 0;
}