/*
Theme Name: Geniatech
Description: A modern WordPress theme for Geniatech with floating header and transparent background
Version: 1.8.0
Author: Geniatech Team
*/

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

/* 基础样式 */
body {
    font-family: 'MontserratRoman',-apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: #333333;
    background-color: #ffffff;
    padding-top: 90px; /* 为固定header留出空间 */
}

/* 容器样式 */
.container {
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 60px;
}

/* 链接样式 */
a {
    color: #007cba;
    text-decoration: none;
    transition: color 0.3s ease;
    text-decoration: none;
}

a:hover {
    color: #005a87;
}

/* 标题样式 */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 1rem;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.75rem; }
h4 { font-size: 1.5rem; }
h5 { font-size: 1.25rem; }
h6 { font-size: 1rem; }

/* 段落样式 */
p {
    margin-bottom: 1rem;
}

/* 图片样式 */
img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* 按钮样式 */
.btn {
    display: inline-block;
    padding: 12px 24px;
    background-color: #007cba;
    color: #ffffff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
}

.btn:hover {
    background-color: #005a87;
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 124, 186, 0.3);
}

.btn-outline {
    background-color: transparent;
    color: #007cba;
    border: 2px solid #007cba;
}

.btn-outline:hover {
    background-color: #007cba;
    color: #ffffff;
}

/* 主要内容区域 */
.main-content {
    min-height: calc(100vh - 90px);
    padding: 40px 0;
}

/* 文章样式 */
.post, .page {
    margin-bottom: 40px;
}

.post-title, .page-title {
    margin-bottom: 20px;
}

.post-meta {
    color: #666666;
    font-size: 14px;
    margin-bottom: 20px;
}

.post-content, .page-content {
    line-height: 1.8;
}

.post-content img, .page-content img {
    margin: 20px 0;
    border-radius: 8px;
}

/* 侧边栏样式 */
.sidebar {
    padding: 20px;
}

.widget {
    margin-bottom: 30px;
    padding: 20px;
    background-color: #f8f9fa;
    border-radius: 8px;
}

.widget-title {
    margin-bottom: 15px;
    color: #333333;
    font-size: 18px;
}

.widget ul {
    list-style: none;
}

.widget ul li {
    padding: 8px 0;
    border-bottom: 1px solid #e0e0e0;
}

.widget ul li:last-child {
    border-bottom: none;
}

/* 页脚样式 */
.site-footer {
    background-color: #333333;
    color: #ffffff;
    padding: 40px 0 20px;
    margin-top: 60px;
}

.footer-widget {
    margin-bottom: 30px;
}

.footer-widget-title {
    color: #ffffff;
    margin-bottom: 15px;
    font-size: 18px;
}

.footer-widget ul {
    list-style: none;
}

.footer-widget ul li {
    padding: 5px 0;
}

.footer-widget a {
    color: #cccccc;
}

.footer-widget a:hover {
    color: #ffffff;
}

.footer-bottom {
    border-top: 1px solid #555555;
    padding-top: 20px;
    margin-top: 30px;
    text-align: center;
    color: #cccccc;
    font-size: 14px;
}

/* 表单样式 */
input[type="text"],
input[type="email"],
input[type="url"],
input[type="password"],
input[type="search"],
textarea,
select {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 5px;
    font-size: 16px;
    transition: border-color 0.3s ease;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="url"]:focus,
input[type="password"]:focus,
input[type="search"]:focus,
textarea:focus,
select:focus {
    outline: none;
}

/* 评论样式 */
.comments-area {
    margin-top: 40px;
    padding-top: 40px;
    border-top: 1px solid #e0e0e0;
}

.comment-list {
    list-style: none;
}

.comment {
    margin-bottom: 30px;
    padding: 20px;
    background-color: #f8f9fa;
    border-radius: 8px;
}

.comment-author {
    font-weight: 600;
    margin-bottom: 10px;
}

.comment-meta {
    color: #666666;
    font-size: 14px;
    margin-bottom: 15px;
}

/* 分页样式 */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 40px 0;
    gap: 10px;
}

.pagination a,
.pagination span {
    padding: 10px 15px;
    border: 1px solid #e0e0e0;
    border-radius: 5px;
    color: #333333;
    text-decoration: none;
    transition: all 0.3s ease;
}

.pagination a:hover,
.pagination .current {
    background-color: #007cba;
    color: #ffffff;
    border-color: #007cba;
}

/* 面包屑导航 */
.breadcrumb {
    padding: 20px 0;
    color: #666666;
    font-size: 14px;
}

.breadcrumb a {
    color: #666666;
}

.breadcrumb a:hover {
    color: #007cba;
}

/* 响应式设计 */
@media (max-width: 1024px) {
    .container {
        padding: 0 40px;
    }
    
    body {
        padding-top: 80px;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 20px;
    }
    
    body {
        padding-top: 70px;
    }
    
    h1 { font-size: 2rem; }
    h2 { font-size: 1.75rem; }
    h3 { font-size: 1.5rem; }
    h4 { font-size: 1.25rem; }
    
    .main-content {
        padding: 20px 0;
    }
    
    .btn {
        padding: 10px 20px;
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    h1 { font-size: 1.75rem; }
    h2 { font-size: 1.5rem; }
    h3 { font-size: 1.25rem; }
    
    .pagination {
        flex-wrap: wrap;
    }
    
    .pagination a,
    .pagination span {
        padding: 8px 12px;
        font-size: 14px;
    }
}

/* 工具类 */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.mt-0 { margin-top: 0; }
.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.mt-3 { margin-top: 3rem; }

.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 1rem; }
.mb-2 { margin-bottom: 2rem; }
.mb-3 { margin-bottom: 3rem; }

.pt-0 { padding-top: 0; }
.pt-1 { padding-top: 1rem; }
.pt-2 { padding-top: 2rem; }
.pt-3 { padding-top: 3rem; }

.pb-0 { padding-bottom: 0; }
.pb-1 { padding-bottom: 1rem; }
.pb-2 { padding-bottom: 2rem; }
.pb-3 { padding-bottom: 3rem; }

.d-none { display: none; }
.d-block { display: block; }
.d-inline { display: inline; }
.d-inline-block { display: inline-block; }
.d-flex { display: flex; }

.justify-content-center { justify-content: center; }
.justify-content-between { justify-content: space-between; }
.align-items-center { align-items: center; }

/* 动画效果 */
.fade-in {
    opacity: 0;
    animation: fadeIn 0.6s ease-in-out forwards;
}

@keyframes fadeIn {
    to {
        opacity: 1;
    }
}

.slide-up {
    transform: translateY(30px);
    opacity: 0;
    animation: slideUp 0.6s ease-out forwards;
}

@keyframes slideUp {
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* 加载动画 - 仅用于特定组件 */
.geniatech-loading-spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #007cba;
    border-radius: 50%;
    animation: geniatech-spin 1s linear infinite;
}

@keyframes geniatech-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}


table {
    width: 100%;
    border-collapse: collapse;
    font-family: "MontserratRoman","Segoe UI", "Helvetica Neue", Arial, sans-serif;
    overflow: hidden;
}

td.line {
    border-right: 1px solid #eaeaea;
}

th, td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid #eaeaea;
}
th {
    background-color: #E40011;
    color: #ffffff;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
/*tr:nth-child(even) {*/
/*    background-color: #f8f9fa;*/
/*}*/
tr:hover {
    background-color: #e3f2fd;
    transition: background-color 0.3s ease;
}
#event-more{
    cursor:pointer;
}
caption {
    font-size: 1.5em;
    margin: 10px 0;
    font-weight: bold;
    color: #333333;
}
.geniatech-carousel2-title{
    margin-bottom: 0!important;
}
.geniatech-carousel2-description{
    padding-left: 30px;
}