* {
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: white; /* 将背景色改为白色 */
}

.container {
    max-width: 600px;
    margin: 0 auto;
    padding: 0 15px; /* 减小左右内边距 */
    padding-top: 50px;
}

.top-header {
    height: 130px; /* 固定header高度为130px */
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.header-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding-top: 10px;
}

.settings-icon {
    width: 30px;
    height: 30px;
    margin-left: 4px; /* 24px - 20px container padding */
    align-self: flex-start; /* 保持设置图标在顶部 */
}

.header-content {
    position: absolute;
    bottom: 0;
    left: 24px; /* 与平台列表项保持一致的左边距 */
    padding-bottom: 20px; /* 在底部添加一些间距 */
    text-align: left; /* 文字左对齐 */
    flex-grow: 1;
}

.header-content h2 {
    font-size: 14px;
    color: #888;
    margin: 0;
}

.header-content h1 {
    font-size: 24px;
    color: #333;
    margin: 5px 0 0;
}

.social-icon {
    width: calc(100% / 4);
    height: auto;
    margin-right: 0; /* 20px - 20px container padding */
    align-self: flex-end; /* 将社交图标对齐到底部 */
}

.platform-list {
    list-style-type: none;
    padding: 0;
    margin-top: 20px;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
}

.platform-item {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: space-between;
    width: calc(50% - 10px);
    margin-bottom: 20px;
    padding: 20px;
    border-radius: 20px;
    box-sizing: border-box;
    height: 120px;
    position: relative;
    overflow: hidden;
}

/* 添加新的样式来创建白色图标背景 */
.platform-item::before {
    content: '';
    position: absolute;
    top: 20px;
    left: 20px;
    width: 40px;
    height: 40px;
    background-color: white;
    border-radius: 10px;
    z-index: 1;
}

/* 添加图标样式 */
.platform-icon {
    position: absolute;
    top: 28px;
    left: 28px;
    width: 24px;
    height: 24px;
    z-index: 2;
}

/* 修改 .platform-name 的样式 */
.platform-name {
    color: black;
    font-weight: bold;
    font-size: 16px;
    z-index: 1;
    margin-top: auto; /* 将名称推到底部 */
}

/* 保持整体背景色不变 */
.platform-item:nth-child(1) { background-color: #ffebee; }
.platform-item:nth-child(2) { background-color: #e3f2fd; }
.platform-item:nth-child(3) { background-color: #e8eaf6; }
.platform-item:nth-child(4) { background-color: #e1f5fe; }
.platform-item:nth-child(5) { background-color: #ffebee; }
.platform-item:nth-child(6) { background-color: #e8f5e9; }
.platform-item:nth-child(7) { background-color: #fff3e0; }
.platform-item:nth-child(8) { background-color: #fff8e1; }

.bottom-menu {
    margin-top: 20px;
    /* 移除了顶部边框 */
}

.menu-item {
    display: flex;
    align-items: center;
    padding: 15px 24px 15px 0; /* 右边距调整为0，左边距由span控制 */
    /* 移了底部边 */
}

.menu-icon {
    width: 24px;
    height: 24px;
    margin-right: 15px;
}

.menu-item span {
    flex-grow: 1;
    font-size: 16px;
    color: #333;
    padding-left: 0px; /* 名称距离左边24px */
}

.arrow-icon {
    width: 4px; /* 箭头宽度为4px */
    height: 8px; /* 箭头高度为8px */
    margin-right: 0px; /* 距离右边14px */
}

/* 服务页面样式 */
.service-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0; /* 移除左右内边距 */
    background-color: white; /* 改为白色背景 */
    position: fixed; /* 固定在顶部 */
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000; /* 确保导航栏在其他元素之上 */
    box-shadow: 0 2px 4px rgba(0,0,0,0.1); /* 添加一个轻微的阴影效果 */
}

.back-button, .orders-button {
    background: none;
    border: none;
    font-size: 16px;
    cursor: pointer;
    padding: 0 15px; /* 添加左右内边距 */
    display: flex;
    align-items: center;
}

.back-icon {
    width: 24px; /* 调整图标大小 */
    height: 24px;
}

.service-header h1 {
    font-size: 18px;
    margin: 0;
    flex-grow: 1; /* 让标题占据中间的空间 */
    text-align: center; /* 文字居中 */
    font-weight: 500; /* 添加这行，设置字体粗细为中等 */
}

.service-list {
    list-style-type: none;
    padding: 0 0px; /* 添加左右内边距 */
    margin: 0;
}

.service-item {
    height: 70px;
    margin: 10px 0;
    padding: 0 15px;
    display: flex;
    align-items: center;
    border-radius: 10px;
}

.service-item span {
    flex-grow: 1;
    color: rgb(0, 0, 0);
    font-weight: bold;
}

.service-item .arrow-icon {
    width: 8px;
    height: 13px;
}

.product-list {
    list-style-type: none;
    padding: 15px;
    margin: 0;
}

.product-item {
    height: 70px;
    margin: 10px 0;
    padding: 0 15px;
    display: flex;
    align-items: center;
    border-radius: 10px;
    justify-content: space-between;
}

.product-info {
    display: flex;
    align-items: center;
}

.product-icon {
    width: 24px;
    height: 24px;
    margin-right: 10px;
}

.product-name {
    font-weight: bold;
    color: rgb(0, 0, 0);
}

.product-price {
    padding: 5px 15px;
    border-radius: 20px;
    font-weight: bold;
    color: white;
}

/* 购买页面样式 */
.buy-content {
    padding: 38px 15px 80px; /* 顶部38px，左右15px，底部80px（为购买按钮留空间） */
    margin-top: 50px; /* 为固定的顶部导航栏留出空间 */
}

.public-notice {
    background-color: #ff4d4f;
    color: white;
    padding: 10px 20px;
    text-align: center;
    position: fixed;
    top: 50px; /* 导航栏的高度 */
    left: 0;
    right: 0;
    z-index: 999;
}

.input-section {
    position: relative;
    margin-bottom: 30px; /* 增加底部间距到30px */
}

.input-label-container {
    display: flex;
    align-items: center;
    margin-bottom: 5px;
}

.input-section label {
    font-weight: normal; /* 改为普通字体 */
    margin-right: 5px;
}

.input-section label strong {
    font-weight: bold; /* 只有 strong 标签内的文字加粗 */
}

.input-tip-icon {
    width: 24px;
    height: 24px;
}

#postLink {
    width: 90%;
    height: 30px;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
}

.order-details {
    background-color: #f8f8f8;
    padding: 15px;
    border-radius: 15px;
    height: 70px; /* 设置固定高度为150px */
    display: flex;
    flex-direction: column;
    justify-content: space-around; /* 均匀分布子元素 */
}

.detail-item {
    display: flex;
    justify-content: space-between;
    /* 移除 margin-bottom，因为我们使用 justify-content: space-around */
}

.detail-label {
    font-weight: bold;
}

.purchase-container {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 15px;
    background-color: white;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
}

.purchase-button {
    width: 100%;
    padding: 15px;
    background-color: #000;
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 18px;
    cursor: pointer;
}

/* 在文件末尾添加这个新类 */
.bold-text {
    font-weight: bold;
}

/* 修改 input-section label 的样式 */
.input-section label {
    font-weight: normal;
    margin-right: 5px;
}

/* 订单列表样式 */
.order-list {
    list-style-type: none;
    padding: 15px;
    margin: 0;
    padding-top: 60px; /* 为固定的顶部导航栏留出空间 */
}

.order-item {
    background-color: #fff;
    border-radius: 10px;
    padding: 15px;
    margin-bottom: 15px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    height: 155px; /* 设置高度为155px */
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.order-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.order-date {
    color: #888;
    font-size: 13px; /* 稍微小一点的字体 */
}

.order-status {
    width: 100px;
    height: 30px;
    border-radius: 10px;
    font-size: 12px;
    font-weight: 600; /* 稍微粗一点的字体 */
    display: flex;
    align-items: center;
    justify-content: center;
}

.status-processing {
    color: #D8BD31;
    background-color: #FFFBE8;
}

.status-completed {
    color: #00AB56;
    background-color: #EEFFE8;
}

.status-canceled {
    color: #FB3D78;
    background-color: #FFE8F6;
}

.order-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 10px;
}

.order-id {
    color: #888;
    font-size: 13px; /* 稍微小一点的字体 */
}

.order-content {
    font-weight: 300; /* 细字体 */
    font-style: italic; /* 斜体 */
    color: #000;
    text-align: right;
    width: 66%; /* 宽度占比0.66 */
}

.order-divider {
    height: 0.5px;
    background-color: #EEEEEE;
    margin: 13px 0;
}

.order-actions {
    display: flex;
    justify-content: flex-end; /* 使按钮靠右 */
    margin-top: 10px;
}

.get-support-btn {
    background-color: transparent;
    border: 1px solid #52A5ED;
    padding: 0;
    border-radius: 14px;
    color: #52A5ED;
    font-size: 14px;
    cursor: pointer;
    width: 100px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.load-more-button {
    display: block;
    width: 100%;
    padding: 10px;
    background-color: #f0f0f0;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    cursor: pointer;
    margin-top: 20px;
    margin-bottom: 20px;
}

/* 在文件末尾添加以下样式 */

.settings-menu {
    margin-top: 60px; /* 为顶部导航栏留出空间 */
}

.rate-us-section {
    text-align: center;
    margin-top: 40px;
}

.stars {
    font-size: 24px;
    margin-bottom: 10px;
}

.rate-us-button {
    background-color: #4CAF50;
    border: none;
    color: white;
    padding: 10px 20px;
    text-align: center;
    text-decoration: none;
    display: inline-block;
    font-size: 16px;
    margin-top: 10px;
    cursor: pointer;
    border-radius: 5px;
}

/* 在文件末尾添加以下样式 */

.popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.popup-content {
    background-color: white;
    padding: 20px;
    border-radius: 5px;
    text-align: center;
    max-width: 80%;
    width: 80%;
    max-width: 600px;
    height: 80%;
    max-height: 600px;
    display: flex;
    flex-direction: column;
}

.popup-content h2 {
    margin-top: 0;
    color: #333;
    margin-bottom: 10px;
}

.popup-content p {
    margin-bottom: 20px;
    color: #666;
}

.popup-content button {
    margin-top: 10px;
    padding: 10px 20px;
    border: none;
    border-radius: 3px;
    cursor: pointer;
    font-size: 16px;
}

.close-btn {
    background-color: #000;
    color: white;
}

.popup-content button:hover {
    background-color: #45a049;
}

.popup-content iframe {
    flex-grow: 1;
    border: none;
    margin-bottom: 10px;
}

.telegram-link {
    display: inline-block;
    background-color: #0088cc;
    color: white;
    padding: 10px 20px;
    text-decoration: none;
    border-radius: 5px;
    margin: 10px 0;
}

.telegram-link:hover {
    background-color: #006699;
}

.help-popup {
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.help-image {
    width: 332px;
    height: 315px;
    object-fit: contain;
    margin-bottom: 20px;
}

/* 在文件末尾添加以下样式 */

.loading-spinner {
    border: 4px solid #f3f3f3;
    border-top: 4px solid #3498db;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    margin: 20px auto;
}

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

/* 在文件末尾添加以下样式 */

.loading-indicator {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 200px;
}

.loading-indicator p {
    margin-top: 10px;
    color: #666;
}

/* 在文件末尾添加以下样式 */

.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.loading-overlay .loading-spinner {
    width: 50px;
    height: 50px;
    border: 5px solid #f3f3f3;
    border-top: 5px solid #3498db;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.loading-overlay p {
    color: white;
    margin-top: 20px;
    font-size: 18px;
}

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

.popup-link {
    display: inline-block;
    background-color: #4CAF50;
    color: white;
    padding: 10px 20px;
    text-decoration: none;
    border-radius: 5px;
    margin: 10px 0;
}

.popup-link:hover {
    background-color: #45a049;
}