* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}



body {
    font-family: 'Noto Serif SC', "Microsoft Yahei", "PingFang SC", serif;
    background: url("../images/main_bg.png?v=1.1") no-repeat center center;
    background-size: cover;
    background-color: #000;
    min-height: 100vh;
    position: relative;
}

/* 背景暗色遮罩 */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.3);
    z-index: -1;
}

/* PC端布局：左侧品牌信息，右侧活动时间轴 */
.container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-height: 100vh;
    padding: 40px 60px;
    position: relative;
    max-width: 1600px;
    margin: 0 auto;
}

/* 左侧：品牌信息区域 */
.left-section {
    width: 40%;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    align-self: flex-start;
}

/* 品牌信息样式 */
.brand-section {
    text-align: left;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    margin-top: 50px;
}

/* Logo样式 - 第一行 */
.brand-logo {
    width: 250px;
    object-fit: contain;
    margin-bottom: 30px;
    opacity: 0.9;
    border-radius: 8px;
}

/* 品牌标题 - 第二行 */
.brand-title {
    font-family: 'Source Han Serif SC', 'Noto Serif SC', serif;
    font-style: normal;
    font-weight: 900;
    font-size: 50px;
    line-height: 1.2;
    color: #C6915F;
    margin-bottom: 30px;
}

/* 毛笔字体 - 天玺会 */
.brush-font {
    font-family: '华文行楷', 'STXingkai', 'Xingkai SC', cursive;
    font-weight: 400;
}

/* 品牌标语 - 第三行 */
.brand-slogan {
    font-size: 24px;
    line-height: 1.8;
    color: #C6915F;
    opacity: 0.9;
    max-width: 450px;
    font-weight: bold;
    margin-bottom: 30px;
}

/* 二维码容器 */
.qrcodes-container {
    display: flex;
    gap: 40px;
    margin-top: 0;
    width: 100%;
    max-width: 500px;
}

/* 二维码项 */
.qrcode-item {
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* PC端第二个二维码增加左边距 */
.qrcode-item-second {
    margin-left: 60px;
}

/* 二维码标签 */
.qrcode-label {
    font-size: 18px;
    color: #C6915F;
    margin-bottom: 10px;
    font-weight: bold;
    text-align: center;
    width: 200px;
}

/* 品牌二维码 */
.brand-qrcode {
    width: 200px;
    margin-top: 0;
    border: 2px solid rgba(198, 145, 95, 0.3);
    border-radius: 4px;
}

/* PC端显示二维码 */
.pc-qrcode {
    display: block;
}

/* 移动端二维码默认隐藏 */
.mobile-qrcode {
    display: none;
}

/* 访问计数器 - PC端左下角 */
.visitor-counter {
    position: fixed;
    bottom: 20px;
    left: 20px;
    background-color: rgba(0, 0, 0, 0.7);
    padding: 10px 20px;
    border-radius: 20px;
    border: 1px solid rgba(198, 145, 95, 0.3);
    z-index: 100;
}

/* PC端隐藏二维码弹窗 - 使用媒体查询在PC端隐藏，移动端显示 */
@media (min-width: 769px) {
    .qrcode-modal {
        display: none !important;
    }
}

.counter-label {
    color: #C6915F;
    font-size: 14px;
    font-weight: bold;
}

.counter-number {
    color: #ffffff;
    font-size: 16px;
    font-weight: bold;
}

/* 右侧：活动时间轴区域 */
.right-section {
    width: 60%;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    padding-right: 40px;
    height: 80vh;
    position: relative;
}

/* 时间轴容器 - 左右交替布局 */
.timeline {
    position: relative;
    width: 100%;
    transition: transform 0.3s ease-out;
    padding-top: 150px;
    padding-bottom: 0px;
}

/* 时间轴线 - 居中 */
.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    top: 150px;
    bottom: 150px;
    width: 2px;
    background-color: rgba(198, 145, 95, 0.4);
}

/* 时间轴项目基础样式 - 非高亮活动50%透明度 */
.timeline-item {
    position: relative;
    margin-bottom: 30px;
    width: 50%;
    opacity: 0.5;
}

.timeline-item:last-child {
    margin-bottom: 0;
}

/* 高亮活动不透明 */
.timeline-item.highlight {
    opacity: 1;
}

/* 右侧项目 */
.timeline-item.right-item {
    margin-left: 50%;
    padding-left: 30px;
}

.timeline-item.right-item .timeline-content {
    text-align: left;
}

.timeline-item.right-item .timeline-dot {
    left: -7px;
    top: 5px;
}

/* 左侧项目 */
.timeline-item.left-item {
    margin-left: 0;
    padding-right: 30px;
}

.timeline-item.left-item .timeline-content {
    text-align: right;
    align-items: flex-end;
}

.timeline-item.left-item .timeline-dot {
    right: -7px;
    left: auto;
    top: 5px;
}

/* 时间轴圆点 */
.timeline-dot {
    position: absolute;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background-color: #C6915F;
    border: 2px solid #000;
}

/* 时间轴内容 */
.timeline-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
    padding: 10px;
    gap: 8px;
}

.date {
    font-size: 18px;
    margin-bottom: 5px;
    color: #ffffff;
}

.event {
    font-family: 'Source Han Serif SC', 'Noto Serif SC', serif;
    font-style: normal;
    font-weight: 700;
    font-size: 26px;
    line-height: 38px;
    color: #ffffff;
    margin-bottom: 5px;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* 手指指向图标 */
.pointing-hand {
    font-size: 24px;
    animation: pointAnimation 1s ease-in-out infinite;
    display: inline-block;
    margin-top: -6px;
}

@keyframes pointAnimation {
    0%, 100% {
        transform: translateX(0);
    }
    50% {
        transform: translateX(-5px);
    }
}

/* 活动链接样式 */
.event-link {
    text-decoration: none;
    display: block;
    cursor: pointer;
}

.event-link:hover .event {
    text-decoration: underline;
    opacity: 0.9;
}

.organizer {
    font-size: 13px;
    color: #ffffff;
    opacity: 0.8;
}

/* 地址样式 */
.address {
    font-size: 16px;
    color: #ffffff;
    opacity: 0.85;
    margin-top: 5px;
    line-height: 1.5;
}

/* 高亮活动样式 */
.timeline-item.highlight .timeline-content {
    background-color: rgba(0, 0, 0, 0.4);
    border-radius: 8px;
}

.timeline-item.left-item.highlight .timeline-content {
    align-items: flex-end;
}

.timeline-item.highlight .date,
.timeline-item.highlight .organizer,
.timeline-item.highlight .address {
    opacity: 1;
}

.timeline-item.highlight .event {
    font-weight: 600;
    color: #C6915F;
}

/* 移动端适配 */
@media (max-width: 768px) {
    body {
        height: auto;
        min-height: 100vh;
    }

    .container {
        flex-direction: column;
        padding: 20px;
        align-items: stretch;
        height: auto;
        min-height: 100vh;
    }

    /* 移动端：品牌区域在上 */
    .left-section {
        width: 100%;
        order: 1;
        padding-top: 0;
        align-items: center;
        flex-shrink: 0;
    }

    .brand-section {
        text-align: center;
        align-items: center;
        margin-top:5px;
    }

    .brand-title {
        font-family: 'Source Han Serif SC', 'Noto Serif SC', serif;
        font-style: normal;
        font-weight: 900;
        font-size: 32px;
        line-height: 1.2;
        margin-bottom: 20px;
    }

    /* 移动端毛笔字体 */
    .brush-font {
        font-family: '华文行楷', 'STXingkai', 'Xingkai SC', cursive;
        font-weight: 400;
    }

    .brand-logo {
        width: 200px;
        margin-bottom: 20px;
    }

    .brand-slogan {
        display: block;
        font-size: 18px;
        line-height: 1.8;
        color: #C6915F;
        opacity: 0.9;
        max-width: 450px;
        margin-bottom: 20px;
        font-weight: bold;
    }

    /* 移动端：时间轴在下 - 单列布局 */
    .right-section {
        width: 100%;
        order: 2;
        flex: 1;
        height: auto;
        padding-right: 0;
        position: relative;
        margin-top: 5px;
    }

    /* 移动端时间轴顶部渐变色遮罩 */
    .right-section::before {
        content: '';
        position: absolute;
        top: 0;
        left: -10px;
        right: -10px;
        height: 40px;
        background: linear-gradient(to bottom, rgba(0, 0, 0, 1) 0%, rgba(0, 0, 0, 0.8) 50%, rgba(0, 0, 0, 0) 100%);
        z-index: 100;
        pointer-events: none;
    }

    .timeline {
        padding-top: 40px;
        display: flex;
        flex-direction: column;
    }

    .timeline::before {
        left: 10px;
        transform: none;
        top: 60px;
    }

    .timeline-item,
    .timeline-item.right-item,
    .timeline-item.left-item {
        width: 100%;
        margin-left: 0;
        padding-left: 30px;
        padding-right: 0;
        margin-bottom: 20px;
        text-align: left;
    }

    /* 移动端：4月12日活动放在前面（第二个活动order为1，第一个为2） */
    .timeline-item:nth-child(1) {
        order: 2;
    }

    .timeline-item:nth-child(2) {
        order: 1;
    }

    .timeline-item .timeline-content,
    .timeline-item.right-item .timeline-content,
    .timeline-item.left-item .timeline-content {
        text-align: left;
        align-items: flex-start;
    }

    .timeline-item .date,
    .timeline-item .event,
    .timeline-item .organizer,
    .timeline-item .address {
        text-align: left;
    }

    /* 移动端高亮状态也保持居左 */
    .timeline-item.highlight .timeline-content,
    .timeline-item.left-item.highlight .timeline-content,
    .timeline-item.right-item.highlight .timeline-content {
        align-items: flex-start;
        text-align: left;
    }

    .timeline-item.highlight .date,
    .timeline-item.highlight .event,
    .timeline-item.highlight .organizer,
    .timeline-item.highlight .address {
        text-align: left;
    }

    .timeline-item .timeline-dot,
    .timeline-item.right-item .timeline-dot,
    .timeline-item.left-item .timeline-dot {
        left: 3px;
        right: auto;
        top: 5px;
    }

    .timeline-item .date,
    .timeline-item .organizer,
    .timeline-item .address {
        font-family: 'Source Han Serif SC', 'Noto Serif SC', serif;
        font-style: normal;
        font-weight: 700;
        font-size: 18px;
        line-height: 29px;
        text-align: left;
    }

    .timeline-item .event {
        font-family: 'Source Han Serif SC', 'Noto Serif SC', serif;
        font-style: normal;
        font-weight: 700;
        font-size: 24px;
        line-height: 34px;
        text-align: left;
        display: flex;
        align-items: center;
        gap: 8px;
    }

    /* 移动端手指指向图标 */
    .pointing-hand {
        font-size: 20px;
        margin-top: -6px;
    }

    .date {
        font-size: 16px;
        line-height: 24px;
        text-align: left;
    }

    .organizer,
    .address {
        font-size: 14px;
        line-height: 20px;
        text-align: left;
    }

    /* 移动端二维码容器 */
    .qrcodes-container {
        display: flex;
        flex-direction: row;
        gap: 0px;
        margin-top: 0;
        justify-content: center;
        width: calc(100% - 40px);
    }

    /* 移动端二维码项 */
    .qrcode-item {
        display: flex;
        flex-direction: column;
        align-items: center;
        flex: 0 0 calc(50% - 5px);
        cursor: pointer;
        -webkit-tap-highlight-color: transparent;
    }

    /* 移动端第二个二维码左边距为0 */
    .qrcode-item-second {
        margin-left: 0;
    }

    /* 移动端二维码图片 */
    .qrcode-item img {
        pointer-events: none;
    }

    /* 移动端二维码标签 */
    .qrcode-label {
        font-size: 16px;
        color: #C6915F;
        margin-bottom: 10px;
        font-weight: bold;
        text-align: center;
        width: 180px;
    }

    /* 移动端：二维码样式 */
    .brand-qrcode {
        width: 150px;
        margin: 0 auto;
        border: 2px solid rgba(198, 145, 95, 0.3);
        border-radius: 4px;
    }

    /* 移动端：隐藏底部二维码 */
    .mobile-qrcode {
        display: none;
    }

    /* 移动端二维码弹窗 */
    .qrcode-modal {
        display: none;
        position: fixed;
        z-index: 1000;
        left: 0;
        top: 0;
        width: 100%;
        height: 100%;
        background-color: rgba(0, 0, 0, 0.85);
        justify-content: center;
        align-items: center;
    }

    .qrcode-modal.active {
        display: flex;
    }

    .qrcode-modal-content {
        position: relative;
        background-color: #1a1a1a;
        padding: 30px 20px 20px;
        border-radius: 8px;
        text-align: center;
        max-width: 90%;
        border: 1px solid rgba(198, 145, 95, 0.3);
    }

    .qrcode-modal-close {
        position: absolute;
        top: -40px;
        right: 0;
        color: #C6915F;
        font-size: 32px;
        font-weight: bold;
        cursor: pointer;
        line-height: 1;
        width: 40px;
        height: 40px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .qrcode-modal-close:hover {
        color: #ffffff;
    }

    .qrcode-modal-content img {
        width: 280px;
        height: auto;
        border-radius: 4px;
        display: block;
    }

    .qrcode-modal-tip {
        color: #C6915F;
        font-size: 14px;
        margin-top: 15px;
        margin-bottom: 0;
    }

    /* 移动端二维码点击区域 */
    .qrcode-item {
        cursor: pointer;
    }

    /* 访问计数器 - 移动端页面底部 */
    .visitor-counter {
        position: static;
        bottom: auto;
        left: auto;
        transform: none;
        margin: 40px auto 20px;
        width: fit-content;
        z-index: auto;
    }
}
