/* 全局样式 */
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
}

/* 头部样式 */
.site-header {
    background-color: #fff;
    box-shadow: 0 2px 4px rgba(0,0,0,.1);
}

.navbar-brand {
    font-size: 1.5rem;
    font-weight: bold;
    color: #333;
}

/* 主要内容区域 */
.site-main {
    padding: 0;
}

.content-area {
    background-color: #fff;
    padding: 2rem;
    border-radius: 0.5rem;
    box-shadow: 0 0.125rem 0.25rem rgba(0,0,0,.075);
    margin-bottom: 2rem;
}

.entry-title {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    color: #333;
}

.entry-content {
    font-size: 1.1rem;
    line-height: 1.8;
}

.entry-content img {
    max-width: 100%;
    height: auto;
    margin: 1rem 0;
}

/* 友情链接区域 */
.friend-links {
    background-color: #fff;
    padding: 2rem 0;

}

.friend-links h4 {
    font-size: 1.25rem;
    color: #333;
    position: relative;
}

.friend-links h4 i {
    color: #3498db;
}

.friend-link-item {
    display: block;
    padding: 0.5rem;
    background-color: #fff;
    border-radius: 4px;
    color: #555;
    text-decoration: none;
    transition: all 0.25s ease;
    border: 1px solid #eaeaea;
    font-size: 0.9rem;
    text-align: center;
}

.friend-link-item:hover {
    background-color: #f8f9fa;
    color: #3498db;
    text-decoration: none;
    transform: translateY(-2px);
    border-color: #3498db;
}

.friend-link-item .text-truncate {
    max-width: 100%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* 部件样式 */
.site-popup-widget {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    display: none;
    visibility: visible;
}

.popup-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.site-popup-widget .popup-overlay {
    opacity: 0;
}

.popup-show .popup-overlay {
    opacity: 1;
}

.popup-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.9);
    width: 90%;
    max-width: 500px;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border-radius: 20px;
    box-shadow: 0 10px 50px rgba(0, 0, 0, 0.3), 0 0 0 1px rgba(255, 255, 255, 0.1) inset;
    padding: 40px;
    text-align: center;
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    overflow: hidden;
    z-index: 10000;
}

.site-popup-widget.popup-show .popup-content,
.popup-show .popup-content {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
}

.popup-hide .popup-content {
    transform: translate(-50%, -50%) scale(0.95);
    opacity: 0;
}

.popup-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg, #3498db, #9b59b6, #e74c3c);
    z-index: 1;
}

.popup-close {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 36px;
    height: 36px;
    background-color: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    z-index: 2;
}

.popup-close i {
    color: #555;
    font-size: 16px;
    transition: transform 0.3s ease;
}

.popup-close:hover {
    background-color: #fff;
    transform: rotate(90deg);
}

.popup-close:hover i {
    color: #e74c3c;
}

.popup-title {
    font-size: 2rem;
    margin-bottom: 25px;
    color: #2c3e50;
    font-weight: 700;
    position: relative;
    display: inline-block;
}

.popup-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 3px;
    background: linear-gradient(90deg, #3498db, #9b59b6);
    border-radius: 3px;
}

.popup-image {
    margin: 25px auto;
    max-width: 90%;
    position: relative;
}

.popup-image::before {
    content: '';
    position: absolute;
    top: 10px;
    left: 10px;
    right: 10px;
    bottom: 10px;
    background: rgba(52, 152, 219, 0.05);
    border-radius: 8px;
    z-index: -1;
}

.popup-image img {
    max-width: 100%;
    border-radius: 12px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    transform: translateY(0);
}

.popup-image:hover img {
    transform: translateY(-5px);
}

.popup-text {
    font-size: 1.15rem;
    line-height: 1.7;
    margin-bottom: 30px;
    color: #34495e;
    font-weight: 400;
    padding: 0 10px;
}

.popup-buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
    margin-top: 10px;
}

.popup-btn {
    display: inline-block;
    padding: 12px 28px;
    background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
    color: #fff;
    border-radius: 50px;
    text-decoration: none;
    transition: all 0.3s ease;
    font-weight: 600;
    letter-spacing: 0.5px;
    box-shadow: 0 5px 15px rgba(52, 152, 219, 0.3);
    position: relative;
    overflow: hidden;
    border: none;
}

.popup-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, rgba(255,255,255,0) 0%, rgba(255,255,255,0.2) 50%, rgba(255,255,255,0) 100%);
    transition: all 0.6s ease;
}

.popup-btn:hover {
    background: linear-gradient(135deg, #2980b9 0%, #3498db 100%);
    color: #fff;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(52, 152, 219, 0.4);
}

.popup-btn:hover::before {
    left: 100%;
}

.popup-close-btn {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    color: #495057;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.popup-close-btn:hover {
    background: linear-gradient(135deg, #e9ecef 0%, #f8f9fa 100%);
    color: #212529;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.site-float-widget {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border-radius: 16px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1), 0 0 0 1px rgba(255, 255, 255, 0.1) inset;
    padding: 12px 18px;
    display: flex;
    align-items: center;
    cursor: pointer;
    z-index: 999;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid rgba(255, 255, 255, 0.2);
    animation: float-pulse 3s infinite alternate;
}

@keyframes float-pulse {
    0% {
        transform: translateY(0) scale(1);
        box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    }
    100% {
        transform: translateY(-5px) scale(1.02);
        box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
    }
}

.site-float-widget:hover {
    transform: translateY(-8px) scale(1.05);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
    animation: none;
}

.float-image {
    margin-right: 12px;
    position: relative;
}

.float-image::after {
    content: '';
    position: absolute;
    top: -3px;
    right: -3px;
    width: 10px;
    height: 10px;
    background-color: #e74c3c;
    border-radius: 50%;
    border: 2px solid #fff;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(231, 76, 60, 0.7);
    }
    70% {
        transform: scale(1);
        box-shadow: 0 0 0 10px rgba(231, 76, 60, 0);
    }
    100% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(231, 76, 60, 0);
    }
}

.float-image img {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    object-fit: cover;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    border: 2px solid #fff;
    transition: all 0.3s ease;
}

.site-float-widget:hover .float-image img {
    transform: rotate(5deg);
}

.float-text {
    font-size: 1rem;
    color: #2c3e50;
    font-weight: 600;
    letter-spacing: 0.5px;
    position: relative;
}

.float-text::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #3498db, #9b59b6);
    transition: width 0.3s ease;
}

.site-float-widget:hover .float-text::after {
    width: 100%;
}

body.popup-open {
    overflow: hidden;
}

@media (max-width: 768px) {
    .popup-content {
        width: 95%;
        padding: 30px 20px;
    }
    
    .popup-title {
        font-size: 1.6rem;
    }
    
    .popup-text {
        font-size: 1rem;
    }
    
    .popup-btn {
        padding: 10px 20px;
        font-size: 0.95rem;
    }
    
    .site-float-widget {
        bottom: 20px;
        right: 20px;
        padding: 10px 15px;
    }
    
    .float-image img {
        width: 35px;
        height: 35px;
    }
    
    .float-text {
        font-size: 0.9rem;
    }
}

/* 页脚样式 */
.site-footer {
    background-color: #fff;
    border-top: 1px solid #dee2e6;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .content-area {
        padding: 1rem;
    }

    .entry-title {
        font-size: 1.5rem;
    }

    .entry-content {
        font-size: 1rem;
    }

    .friend-links {
        padding: 1.5rem 0;
    }
    
    .friend-link-item {
        padding: 0.5rem 0.25rem;
        font-size: 0.85rem;
    }
}

/* 文章内容样式 */
.entry-content h1,
.entry-content h2,
.entry-content h3,
.entry-content h4,
.entry-content h5,
.entry-content h6 {
    margin-top: 1.5rem;
    margin-bottom: 1rem;
    color: #333;
}

.entry-content p {
    margin-bottom: 1rem;
}

.entry-content ul,
.entry-content ol {
    margin-bottom: 1rem;
    padding-left: 2rem;
}

.entry-content blockquote {
    border-left: 4px solid #007bff;
    padding-left: 1rem;
    margin-left: 0;
    color: #6c757d;
}

.entry-content pre {
    background-color: #f8f9fa;
    padding: 1rem;
    border-radius: 0.25rem;
    overflow-x: auto;
}

.entry-content code {
    background-color: #f8f9fa;
    padding: 0.2rem 0.4rem;
    border-radius: 0.25rem;
    font-size: 0.9em;
}

/* 表格样式 */
.entry-content table {
    width: 100%;
    margin-bottom: 1rem;
    border-collapse: collapse;
}

.entry-content table th,
.entry-content table td {
    padding: 0.75rem;
    border: 1px solid #dee2e6;
}

.entry-content table th {
    background-color: #f8f9fa;
}

/* 首页模板区块样式 */
.block-container {
    margin-bottom: 0rem;
}

/* Banner区块样式 */
.hero-section {
    position: relative;
    width: 100%;
    margin: 0;
    padding: 0;
    overflow: hidden;
}

/* 图片容器样式 */
.hero-image-container {
    width: 100%;
    position: relative;
}

/* 背景图片样式 */
.hero-background-image {
    width: 100%;
    height: auto;
    display: block;
}

.hero-content {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    z-index: 2;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.9);

    padding: 20px;
    border-radius: 10px;
    max-width: 80%;
    color: #fff;
}

/* 可选的内容位置样式 */
.hero-content.content-center {
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
}

.hero-content.content-left {
    left: 20%;
    transform: translate(-20%, -50%);
    text-align: left;
}

.hero-content.content-right {
    left: 80%;
    transform: translate(-80%, -50%);
    text-align: right;
}

.hero-content h1 {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    font-weight: 700;
}

.hero-content .hero-description {
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .hero-content {
        padding: 15px;
        max-width: 90%;
    }
    
    .hero-content h1 {
        font-size: 2rem;
        margin-bottom: 1rem;
    }
    
    .hero-content .hero-description {
        font-size: 1rem;
    }
}

/* 特性区块样式 */
.feature-section {
    padding: 5rem 0;
    background-color: #f8f9fa;
}

.feature-item {
    text-align: center;
    padding: 2rem;
    margin-bottom: 2rem;
    border-radius: 10px;
    transition: all 0.3s ease;
    background: #fff;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.feature-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    color: #007bff;
}

.feature-title {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

/* 卡片区块样式 */
.card-section {
    padding: 5rem 0;
}

.content-card {
    border: none;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.content-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.content-card .card-img-top {
    height: 220px;
    object-fit: cover;
}

.content-card .card-body {
    padding: 2rem;
}

.content-card .card-title {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

/* 图片区块样式 */
.image-section img {
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* 文本区块样式 */
.text-section {
    padding: 3rem 0;
}

.text-section h2 {
    margin-bottom: 2rem;
    font-weight: 700;
    position: relative;
    padding-bottom: 1rem;
}

.text-section h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100px;
    height: 3px;
    background-color: #007bff;
}

.text-section.text-center h2::after {
    left: 50%;
    transform: translateX(-50%);
}

/* 响应式调整 */
@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 2rem;
    }
    

}

/* 文章内容样式 */
.article-content {
    line-height: 1.8;
    margin-bottom: 20px;
}

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

.article-content figure.image {
    margin: 1em 0;
    text-align: center;
}

.article-content figure.image.image-style-side {
    float: right;
    margin-left: 1.5em;
    max-width: 50%;
}

/* 文本对齐 */
.article-content .text-center {
    text-align: center !important;
}

.article-content .text-right {
    text-align: right !important;
}

.article-content .text-justify {
    text-align: justify !important;
}

/* 移动端响应式 */
@media (max-width: 768px) {
    .article-content figure.image.image-style-side {
        float: none;
        margin-left: auto;
        margin-right: auto;
        max-width: 100%;
    }
}

/* 手风琴区块样式 */
.accordion-section {
    padding: 5rem 0;
    background-color: #fff;
}

.custom-accordion {
    max-width: 900px;
    margin: 0 auto;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    border-radius: 10px;
    overflow: hidden;
}

.accordion-item {
    border: none;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

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

.accordion-header {
    margin: 0;
}

.accordion-button {
    padding: 1.5rem 2rem;
    font-size: 1.2rem;
    font-weight: 600;
    color: #333;
    background-color: #fff;
    box-shadow: none;
    position: relative;
    transition: all 0.3s ease;
}

.accordion-button:not(.collapsed) {
    color: #007bff;
    background-color: #f8f9fa;
    box-shadow: none;
}

.accordion-button:focus {
    box-shadow: none;
    border-color: rgba(0, 0, 0, 0.125);
}

.accordion-button::after {
    width: 24px;
    height: 24px;
    background-size: 24px;
    transition: all 0.3s ease;
}

.accordion-body {
    padding: 1.5rem 2rem;
    background-color: #f8f9fa;
    line-height: 1.8;
    color: #555;
}

/* 问答区块样式 */
.faq-section {
    padding: 5rem 0;
    background-color: #f8f9fa;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #333;
    position: relative;
    padding-bottom: 1.5rem;
}

.section-title:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, #007bff, #00e5ff);
    border-radius: 2px;
}

.faq-container {
    max-width: 900px;
    margin: 0 auto;
}

.faq-item {
    background-color: #fff;
    border-radius: 10px;
    margin-bottom: 1.5rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-item:hover {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transform: translateY(-3px);
}

.faq-question {
    padding: 1.5rem 2rem;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid transparent;
    transition: all 0.3s ease;
}

.faq-question h3 {
    margin: 0;
    font-size: 1.2rem;
    font-weight: 600;
    color: #333;
    transition: color 0.3s ease;
}

.faq-toggle {
    color: #007bff;
    font-size: 1.2rem;
    transition: transform 0.3s ease;
}

.faq-question.active {
    border-bottom-color: rgba(0, 0, 0, 0.05);
}

.faq-question.active h3 {
    color: #007bff;
}

.faq-question.active .faq-toggle {
    transform: rotate(180deg);
}

.faq-answer {
    padding: 0;
    max-height: 0;
    overflow: hidden;
    transition: all 0.5s ease;
    background-color: #f8f9fa;
}

.faq-answer.active {
    padding: 1.5rem 2rem;
    max-height: 1000px;
}

.faq-answer p {
    margin-bottom: 1rem;
    line-height: 1.8;
}

.accordion-body p {
    margin-bottom: 1rem;
    line-height: 1.8;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .accordion-section,
    .faq-section {
        padding: 3rem 0;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .accordion-button,
    .faq-question {
        padding: 1.2rem 1.5rem;
    }
    
    .accordion-body,
    .faq-answer.active {
        padding: 1.2rem 1.5rem;
    }
}

/* 数字统计区块样式 */
.stats-section {
    padding: 80px 0;
    position: relative;
    overflow: hidden;
}

.stats-item {
    padding: 30px 20px;
    border-radius: 8px;
    transition: all 0.3s ease;
    background-color: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.stats-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

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

.stats-count {
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1;
    margin-bottom: 5px;
    background: linear-gradient(135deg, #6a11cb 0%, #2575fc 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

.stats-suffix {
    font-size: 2rem;
    font-weight: 700;
    background: linear-gradient(135deg, #6a11cb 0%, #2575fc 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.stats-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-top: 10px;
}

/* 时间轴区块样式 */
.timeline-section {
    padding: 80px 0;
    position: relative;
    overflow: hidden;
}

.timeline-container {
    position: relative;
    padding: 20px 0;
}

.timeline-container::before {
    content: '';
    position: absolute;
    width: 4px;
    background-color: var(--timeline-color, #007bff);
    top: 0;
    bottom: 0;
    left: 50%;
    margin-left: -2px;
    border-radius: 2px;
}

.timeline-item {
    padding: 10px 40px;
    position: relative;
    width: 50%;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.5s ease;
    margin-bottom: 30px;
}

.timeline-item.show {
    opacity: 1;
    transform: translateY(0);
}

.timeline-item.left {
    left: 0;
}

.timeline-item.right {
    left: 50%;
}

.timeline-marker {
    position: absolute;
    width: 24px;
    height: 24px;
    right: -12px;
    top: 15px;
    border-radius: 50%;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.timeline-item.right .timeline-marker {
    left: -12px;
}

.timeline-content {
    padding: 20px;
    background-color: rgba(255, 255, 255, 0.9);
    position: relative;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.timeline-item.left .timeline-content {
    border-left: 4px solid var(--timeline-color, #007bff);
}

.timeline-item.right .timeline-content {
    border-right: 4px solid var(--timeline-color, #007bff);
}

.timeline-date {
    font-weight: 600;
    color: var(--timeline-color, #007bff);
    margin-bottom: 5px;
}

.timeline-title {
    font-size: 1.25rem;
    margin-bottom: 10px;
}

.timeline-body {
    line-height: 1.6;
}

/* 响应式调整 */
@media (max-width: 767px) {
    .timeline-container::before {
        left: 40px;
    }
    
    .timeline-item {
        width: 100%;
        padding-left: 70px;
        padding-right: 20px;
    }
    
    .timeline-item.left,
    .timeline-item.right {
        left: 0;
    }
    
    .timeline-item.left .timeline-marker,
    .timeline-item.right .timeline-marker {
        left: 28px;
    }
    
    .timeline-item.left .timeline-content,
    .timeline-item.right .timeline-content {
        border-left: 4px solid var(--timeline-color, #007bff);
        border-right: none;
    }
    
    .stats-count {
        font-size: 2.5rem;
    }
    
    .stats-suffix {
        font-size: 1.5rem;
    }
} 