/* 基础样式 */

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

body {
    font-family: 'Noto Serif SC', serif;
    background: #f5f5f5;
    overflow-x: hidden;
    -webkit-tap-highlight-color: transparent;
}

/* 头部导航 */

.header-wrap {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.header {
    max-width: 1200px;
    margin: 0 auto;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo h1 {
    font-size: 24px;
    font-weight: normal;
}

.alogo {
    color: #616161;
    text-decoration: none;
    transition: color 0.3s ease;
    display: inline-block;
    white-space: nowrap;
    overflow: hidden;
    margin-right: 15px;
    vertical-align: bottom;
}

.logo h1 {
    font-size: 24px;
    font-weight: normal;
    line-height: 1.4;
}

.alogo:hover {
    color: #333;
}

.word {
    max-width: 600px;
}

.wenan {
    color: #616161;
    font-size: 14px;
    line-height: 1.6;
    transition: color 0.3s ease;
    /* 超过一行显示省略号 */
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}


/* 头像区域 */

.bg-wrap {
    margin-top: 70px;
}

.bg-img {
    background: url('images/bgCover.png') no-repeat center !important;
    background-size: cover !important;
    min-height: 500px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.central {
    text-align: center;
}

.central-800 {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
}

.middle {
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeInDown 1s ease;
}

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

.img-male,
.img-female {
    text-align: center;
}

.img-male img,
.img-female img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    border: 3px solid #fff;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
    object-fit: cover;
}

.img-male span,
.img-female span {
    display: block;
    margin-top: 10px;
    font-size: 18px;
    color: #333;
    font-weight: bold;
}

.love-icon img {
    width: 60px;
    height: 60px;
    animation: pulse 2s infinite;
}

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


/* 波浪效果 */

.waves {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100px;
}

.parallax use {
    animation: wave 25s cubic-bezier(.55, .5, .45, .5) infinite;
}

.parallax use:nth-child(1) {
    animation-delay: -2s;
    animation-duration: 7s;
}

.parallax use:nth-child(2) {
    animation-delay: -3s;
    animation-duration: 10s;
}

.parallax use:nth-child(3) {
    animation-delay: -4s;
    animation-duration: 13s;
}

.parallax use:nth-child(4) {
    animation-delay: -5s;
    animation-duration: 20s;
}

@keyframes wave {
    0% {
        transform: translate3d(-90px, 0, 0);
    }
    100% {
        transform: translate3d(85px, 0, 0);
    }
}


/* 时间显示区域 */

.time {
    text-align: center;
    padding: 10px;
    background: linear-gradient(135deg, #FEFEFE 0%, #FEFEFE 100%);
    font-size: 20px;
}

.time span,
.time b {
    margin: 0 5px;
}

.time b {
    font-size: 18px;
    color: #ffd700;
}


/* 卡片区域 */

.card-wrap {
    padding: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}

.card,
.card-b {
    background: white;
    border-radius: 15px;
    padding: 30px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
}

.card:hover,
.card-b:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.col-lg-4 {
    flex: 0 0 calc(33.333% - 20px);
    max-width: calc(33.333% - 20px);
}

.col-lg-6 {
    flex: 0 0 calc(50% - 20px);
    max-width: calc(50% - 20px);
}


/* 响应式 - 小屏幕时保持横向排列，只缩小间距和头像大小 */

@media (max-width: 768px) {
    .img-male img,
    .img-female img {
        width: 80px;
        height: 80px;
    }
    .love-icon {
        width: 100%;
        height: 100%;
        text-align: center;
        display: flex;
        align-items: center;
        justify-content: center;
        margin: 15px;
    }
    .love-icon img {
        width: 40px;
        height: 40px;
        margin-bottom: 35px;
    }
}

.card img,
.card-b img {
    width: 80px;
    height: 80px;
    margin-bottom: 20px;
}

.card .text span,
.card-b .text span {
    display: block;
    margin-bottom: 10px;
}

.card .text span a,
.card-b .text span a {
    color: #333;
    text-decoration: none;
    font-size: 20px;
    font-weight: bold;
    transition: color 0.3s ease;
}

.card .text span a:hover,
.card-b .text span a:hover {
    color: #667eea;
}

.card .text p,
.card-b .text p {
    color: #666;
    font-size: 14px;
    line-height: 1.6;
}


/* 动画类 */

.animated {
    animation-duration: 1s;
    animation-fill-mode: both;
}


/* 修正后的写法 */

.fadeInUp {
    animation-name: fadeInUp;
    margin: 15px;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translate3d(0, 40px, 0);
    }
    to {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
}

.delay-03s {
    animation-delay: 0.3s;
}


/* 自定义提示框 */

.custom-tooltip {
    position: absolute;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 14px;
    z-index: 9999;
    pointer-events: none;
    display: none;
    white-space: nowrap;
}

.custom-tooltip.top::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    margin-left: -5px;
    border-width: 5px;
    border-style: solid;
    border-color: rgba(0, 0, 0, 0.8) transparent transparent transparent;
}

.custom-tooltip.bottom::after {
    content: '';
    position: absolute;
    bottom: 100%;
    left: 50%;
    margin-left: -5px;
    border-width: 5px;
    border-style: solid;
    border-color: transparent transparent rgba(0, 0, 0, 0.8) transparent;
}


/* 选择文本颜色 */

 ::selection {
    background: #6f6f6fc7;
    color: #ffffff;
}

 ::-moz-selection {
    background: #6f6f6fc7;
    color: #ffffff;
}


/* 侧边栏 */

.lg-sidebar {
    position: fixed;
    right: 20px;
    bottom: 100px;
    z-index: 999;
}

.lg-sidebar ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.lg-sidebar-item {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 50%;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.lg-sidebar-item:hover {
    transform: scale(1.1);
}

.lg-sidebar-icon {
    width: 24px;
    height: 24px;
}


/* 页脚 */

.footer-warp {
    background: #333;
    color: #999;
    text-align: center;
    padding: 30px 20px;
}

.footer p {
    margin: 10px 0;
}

.footer a {
    color: #667eea;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer a:hover {
    color: #764ba2;
}

.footer img {
    vertical-align: middle;
    margin-right: 5px;
    width: 24px;
    height: 24px;
}


/* 视频容器 */

.video-container {
    position: relative;
    width: 100%;
    cursor: pointer;
}

.play-pause-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    background: rgba(0, 0, 0, 0.6);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
}

.play-pause-btn svg {
    width: 30px;
    height: 30px;
}


/* 照片相册样式 */

.photo-item {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.5s ease;
}

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

.love_img {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    margin-bottom: 20px;
}

.love_img img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    cursor: pointer;
}

.words {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.7));
    color: white;
    padding: 20px;
}

.words i {
    display: block;
    font-style: normal;
    font-size: 12px;
    opacity: 0.8;
    margin-bottom: 5px;
}

.words span {
    font-size: 16px;
    font-weight: bold;
}


/* 加载按钮 */

#loadMoreBtn {
    display: block;
    margin: 30px auto;
    padding: 12px 30px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    font-size: 16px;
    transition: all 0.3s ease;
}

#loadMoreBtn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

#loadMoreBtn:disabled {
    background: #888;
    opacity: 0.6;
    cursor: not-allowed;
}

#loadMoreBtn svg {
    width: 20px;
    height: 20px;
    vertical-align: middle;
    margin-right: 8px;
}


/* 恢复原来的响应式样式 */

.col-lg-4 {
    flex: 0 0 calc(33.333% - 20px);
    max-width: calc(33.333% - 20px);
}

.col-lg-6 {
    flex: 0 0 calc(50% - 20px);
    max-width: calc(50% - 20px);
}


/* 移动端让卡片占满宽度 */

@media (max-width: 768px) {
    .col-sm-12 {
        flex: 0 0 100% !important;
        max-width: 100% !important;
    }
}