* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
html, body {
    height: 100%;
}
body {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background-image: url('../img/1.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    font-family: 'Arial', sans-serif;
    color: #333;
    overflow: hidden;
}
.container {
    max-width: 90%;
    width: 600px;
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    margin-top: 20px;
    background-color: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    animation: fadeIn 1s ease-in-out;
    min-height: 250px;
    overflow-y: auto;
    position: relative;
    z-index: 1;
}
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}
h2 {
    font-size: 2.5em;
    background: linear-gradient(to right, #ff9a9e,#FF6B8B); /* 渐变浅粉色 */
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 20px;
    text-align: center;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1);
}
label {
    display: block;
    margin-bottom: 10px;
    color: #555;
    font-size: 1.2em;
}
select, input, button {
    width: 100%;
    padding: 15px;
    margin-bottom: 20px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 8px;
    box-sizing: border-box;
    transition: all 0.3s ease-in-out;
    font-family: 'Arial', sans-serif;
    font-size: 1em;
    background-color: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(5px);
}
select:focus, input:focus {
    border-color: #ff9a9e;
    outline: none;
    box-shadow: 0 0 8px rgba(255, 154, 158, 0.5);
}
button {
    background: linear-gradient(to right, #ff9a9e, #fad0c4); /* 渐变浅粉色 */
    color: #fff;
    border: none;
    cursor: pointer;
    font-size: 16px;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    overflow: hidden;
    transition: background-color 0.3s ease-in-out;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}
button:hover {
    background: linear-gradient(to right, #fad0c4, #ff9a9e); /* 渐变浅粉色 */
}
button:active {
    transform: translateY(2px);
}
.notice-bar {
    background: rgba(255, 255, 255, 0.2);
    color: #333;
    padding: 10px;
    border-radius: 5px;
    margin-bottom: 20px;
    position: relative;
    overflow: hidden;
    max-width: 90%;
    width: 340px;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.3);
}
.notice-content {
    max-height: 4000px;
    overflow: hidden;
    transition: max-height 0.5s ease;
}
.notice-toggle {
    position: absolute;
    top: 5px;
    right: 5px;
    cursor: pointer;
    background: linear-gradient(to right, #ff9a9e, #fad0c4); /* 渐变浅粉色 */
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.button-container {
    position: absolute;
    top: 10px;
    right: 10px;
}
.toggle-button {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(to right, #ff9a9e, #fad0c4); /* 渐变浅粉色 */
    color: #fff;
    border: none;
    cursor: pointer;
    outline: none;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    transition: background-color 0.3s ease;
    display: flex;
    justify-content: center;
    align-items: center;
}
.toggle-button:hover {
    background: linear-gradient(to right, #fad0c4, #ff9a9e); /* 渐变浅粉色 */
}
.toggle-button span {
    writing-mode: horizontal-tb;
    text-orientation: mixed;
}
.loading {
    animation: spin 1s linear infinite;
}
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}
.book {
    margin-bottom: 20px;
    padding: 15px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 10px;
    background-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
    animation: fadeIn 0.5s ease-in-out;
    cursor: pointer;
    font-size: 0.9em;
    backdrop-filter: blur(5px);
}
.book:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}
.book h3 {
    margin-bottom: 10px;
    font-size: 1.3em;
    color: #333;
    font-weight: bold;
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
    padding-bottom: 10px;
}
.book p {
    margin-bottom: 8px;
    font-size: 0.9em;
    color: #555;
}
.book p:first-of-type {
    color: #777;
    font-style: italic;
}
.book p:last-of-type {
    color: #666;
    line-height: 1.4;
}
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    visibility: hidden;
    opacity: 0;
    transition: visibility 0s, opacity 0.5s linear;
}
.loading-overlay.active {
    visibility: visible;
    opacity: 1;
}
.loading-spinner {
    border: 8px solid #f3f3f3;
    border-top: 8px solid #ff9a9e; /* 浅粉色 */
    border-radius: 50%;
    width: 50px;
    height: 50px;
    animation: spin 1s linear infinite;
}
.input-container {
    position: relative;
    display: flex;
    flex-direction: column;
}
.tip-button {
    position: absolute;
    top: 0;
    right: 0;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(to right, #ff9a9e, #fad0c4); /* 渐变浅粉色 */
    color: #fff;
    border: none;
    cursor: pointer;
    outline: none;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    transition: background-color 0.3s ease;
    display: flex; /* 默认显示按钮 */
    justify-content: center;
    align-items: center;
    font-size: 20px;
    text-decoration: none;
    backdrop-filter: blur(5px);
}
.tip-button:hover {
    background: linear-gradient(to right, #fad0c4, #ff9a9e); /* 渐变浅粉色 */
}
.tip-button span {
    writing-mode: horizontal-tb;
    text-orientation: mixed;
}
.custom-tooltip {
    display: none;
    position: absolute;
    top: 50px;
    right: 0;
    width: 300px;
    padding: 15px;
    background-color: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    font-size: 14px;
    color: #333;
    backdrop-filter: blur(5px);
}
.custom-tooltip ul {
    list-style-type: disc;
    padding-left: 20px;
}
.custom-tooltip ul li {
    margin-bottom: 10px;
}
.profile-button {
   position: fixed;
    top: 20px;
    left: 20px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(to right, #ff9a9e, #fad0c4); /* 渐变浅粉色 */
    color: #fff;
    border: none;
    cursor: pointer;
    outline: none;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    transition: background-color 0.3s ease;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 20px;
    text-decoration: none;
    backdrop-filter: blur(5px);
}
.profile-button:hover {
    background: linear-gradient(to right, #fad0c4, #ff9a9e); /* 渐变浅粉色 */
}
.profile-button svg {
    width: 40px;
    height: 40px;
    fill: #fff;
}
.profile-modal {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 350px;
    padding: 25px;
    background-color: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 15px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    backdrop-filter: blur(10px);
    animation: slideIn 0.3s ease-out;
}
@keyframes slideIn {
    from { opacity: 0; transform: translate(-50%, -60%); }
    to { opacity: 1; transform: translate(-50%, -50%); }
}
.profile-modal h3 {
    margin-bottom: 20px;
    font-size: 1.8em;
    background: linear-gradient(to right, #ff9a9e, #fad0c4); /* 渐变浅粉色 */
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-align: center;
    font-weight: bold;
}
.profile-modal p {
    margin-bottom: 15px;
    font-size: 1.1em;
    color: #444;
    text-align: center;
}
.profile-modal .close-button {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    background: linear-gradient(to right, #ff9a9e, #fad0c4); /* 渐变浅粉色 */
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    transition: color 0.3s ease;
}
.profile-modal .close-button:hover {
    background: linear-gradient(to right, #fad0c4, #ff9a9e); /* 渐变浅粉色 */
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.top-right-button {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 100;
}

.new-user-button {
    display: inline-block;
    padding: 12px 20px;
    background: linear-gradient(135deg, #ff9a9e 0%, #fad0c4 100%);
    color: white;
    border-radius: 30px;
    text-decoration: none;
    font-weight: bold;
    box-shadow: 0 4px 15px rgba(255, 154, 158, 0.3);
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 14px;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.new-user-button:hover {
    background: linear-gradient(135deg, #fad0c4 0%, #ff9a9e 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 154, 158, 0.4);
}

.bottom-right-button {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 100;
}


.bottom-left-button {
  position: absolute; 
  top: 20px; 
  left: 20px; 
  display: flex; 
  gap: 10px;
}

.visitor-button {
    display: inline-block;
    padding: 12px 20px;
    background: linear-gradient(135deg, #a1c4fd 0%, #c2e9fb 100%);
    color: white;
    border-radius: 30px;
    text-decoration: none;
    font-weight: bold;
    box-shadow: 0 4px 15px rgba(161, 196, 253, 0.3);
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 14px;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.visitor-button:hover {
    background: linear-gradient(135deg, #c2e9fb 0%, #a1c4fd 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(161, 196, 253, 0.4);
}


.dibu1 {
    margin-top: 20px;
    padding: 15px;
    background-color: rgba(255, 255, 255, 0.25);
    border-radius: 10px;
    border-left: 4px solid #ff9a9e;
    color: #555;
    font-size: 14px;
    line-height: 1.6;
    text-align: center;
    backdrop-filter: blur(5px);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    animation: fadeIn 0.8s ease-in-out;
    position: relative;
    overflow: hidden;
}

.dibu1::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255,154,158,0.1) 0%, rgba(250,208,196,0.1) 100%);
    z-index: -1;
}
.buy-card-button {
    display: inline-block;
    padding: 12px 20px;
    background: linear-gradient(135deg, #ff7676 0%, #f54ea2 100%);
    color: white;
    border-radius: 30px;
    text-decoration: none;
    font-weight: bold;
    box-shadow: 0 4px 15px rgba(245, 78, 162, 0.3);
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 14px;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    height: 40px;
    line-height: 16px;
}

.buy-card-button:hover {
    background: linear-gradient(135deg, #f54ea2 0%, #ff7676 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(245, 78, 162, 0.4);
}
/* 确保顶部按钮对齐 */
.top-right-button, .buy-card-button {
    vertical-align: middle;
    display: inline-flex;
    align-items: center;
}
.bottom-left-button1 {
    position: fixed;
    bottom: 20px;
    left: 20px;
    z-index: 100;
    opacity: 1; /* 默认可见 */
    transition: opacity 0.3s ease; /* 添加淡入淡出动画 */
}

.buy-card-button1 {
    display: inline-block;
    padding: 12px 20px;
    background: linear-gradient(135deg, #ff7676 0%, #f54ea2 100%);
    color: white;
    border-radius: 30px;
    text-decoration: none;
    font-weight: bold;
    box-shadow: 0 4px 15px rgba(245, 78, 162, 0.3);
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 14px;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.buy-card-button1:hover {
    background: linear-gradient(135deg, #f54ea2 0%, #ff7676 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(245, 78, 162, 0.4);
}
.bottom-left-button1.hidden {
    opacity: 0;
    pointer-events: none; /* 防止点击 */
}
/* 调整个人主页按钮位置 */
.dynamic-hide {
    display: block; /* 或 flex/inline-block */
}

/* 输入时隐藏 */
.input-active .dynamic-hide {
    display: none !important;
}
@media (max-width: 768px) {
    .dibu1 {
        font-size: 12px;
        padding: 12px;
        margin-top: 15px;
    }
}