/* 全局样式 */
body, html {
    margin: 0;
    padding: 0;
    height: 100%;
    overflow: hidden;
    font-family: Arial, sans-serif;
}

/* 页面容器 */
.page {
    width: 100%;
    height: 100vh;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

/* 背景动图 */
.background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('background.gif') no-repeat center center/cover;
    z-index: -1;
}


/* Logo 容器 */
.logo-container {
    position: absolute;
    top: 20px;
    left: 20px;
    display: flex;
    align-items: center;
    gap: 10px; /* Logo 和文字之间的间距 */
    width: 100%; /* 自适应宽度 */
    max-width: 1000px; /* 容器最大宽度 */
}

/* Logo */
.logo {
    width: 20%; /* Logo 宽度占容器的 20% */
    max-width: 280px; /* logo最大宽度 */
    height: auto; /* 高度自适应 */
}

.logo img {
    width: 100%; /* 图片宽度占满父容器 */
    height: auto; /* 高度自适应 */
}

/* Logo 文字 */
.logo-text {
    flex: 1; /* 文字部分占据剩余空间 */
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.logo-text-large {
    font-size: 1.28rem; /* 较大文字 */
    font-weight: bold;
    color: #f00; /* 红色 */
    line-height: 1.6;/* 调下一行 */
    text-align: left; /* 左对齐 */
}

.logo-text-small {
    font-size: 0.68rem; /* 较小文字 */
    color: #ccc; /* 浅灰色ccc */
    line-height: 0.8;
    text-align: left; /* 左对齐 */
}



/* 右上角功能 */
.top-right {
    position: absolute;
    top: 20px;
    right: 20px;
    display: flex;
    align-items: center;
    gap: 20px;
}

.top-right button {
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid #fff;
    color: #fff;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    transition: background 0.3s;
}

.top-right button:hover {
    background: rgba(255, 255, 255, 0.4);
}

.wechat-share,
.wechat-consult {
    text-align: center;
    color: #fff;
}

.wechat-share img,
.wechat-consult img {
    width: 50px;
    height: 50px;
    border: 2px solid #fff;
    border-radius: 5px;
}

/* 在线表单 */
.form-container {
    background: rgba(0, 0, 0, 0.6);
    padding: 20px;
    border-radius: 10px;
    width: 400px;
    text-align: center;
    color: #fff;
}

.form-container h2 {
    margin-bottom: 20px;
}

.form-container textarea {
    width: 100%;
    height: 100px;
    padding: 10px;
    border: none;
    border-radius: 5px;
    resize: none;
    margin-bottom: 10px;
}

.file-upload {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}

.file-upload label {
    background: #28a745;
    color: #fff;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    transition: background 0.3s;
}

.file-upload label:hover {
    background: #218838;
}

.file-upload input {
    display: none;
}

#file-name {
    margin-left: 10px;
    color: #fff;
}

.form-container button {
    background: #007bff;
    color: #fff;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    transition: background 0.3s;
}

.form-container button:hover {
    background: #0056b3;
}

/* 第二页 - 动态照片墙 */
.page2 {
    background: #000;
}

.photo-wall {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
}

.photo {
    position: relative;
    width: 200px;
    height: 200px;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
    transition: transform 0.3s;
}

.photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.photo p {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(0, 0, 0, 0.7);
    color: #fff;
    text-align: center;
    padding: 10px;
    margin: 0;
    opacity: 0;
    transition: opacity 0.3s;
}

.photo:hover {
    transform: scale(1.1);
}

.photo:hover p {
    opacity: 1;
}