/*
 * 会员页面样式表
 * 包含个人资料、信息卡片、标签页、内容区域等组件样式
 * 适用于世界中餐网会员中心页面
 */

/* ==================== 重置和通用样式 ==================== */

/* 无边框文本域样式 */
textarea.no-border {
    border: none;
    outline: none;
    resize: none;
    background: transparent;
    width: 100%;
    font-family: inherit;
    font-size: inherit;
    padding: 10px 0;
    text-align: right;
    font-size: 18px;
    color: #999;
}

textarea.no-border::placeholder {
    color: #999;
}

textarea.no-border:focus {
    border: none;
    outline: none;
    box-shadow: none;
}

/* ==================== 页面布局 ==================== */

/* 主容器 */
.main-container {
    /* 页面主要内容容器 */
}

/* ==================== Hero区域样式 ==================== */

.hero-section {
    color: white;
    padding: 40px 0;
    position: relative;
    overflow: hidden;
    background: #c3282d;
    /* 添加默认背景色 */
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 1;
}

/* 个人资料部分 */
.profile-section {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 30px;
}

.profile-user {
    display: flex;
    flex-direction: row;
    gap: 20px;
    margin-left: 60px;
    min-height: 100px;
}

.profile-avatar {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.profile-avatar img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    border: 3px solid rgba(255, 255, 255, 0.3);
    object-fit: cover;
}

.profile-info {
    display: flex;
    flex-direction: column;
    gap: 5px;
    justify-content: top;
}

.profile-info h2 {
    margin: 0;
    font-size: 28px;
    text-align: left;
}

.profile-badges {
    display: flex;
    gap: 10px;
}

.profile-badges img {
    width: 40px;
    height: 40px;
    object-fit: cover;
}

.profile-member {
    margin-top: 20px;
    height: 100%;
    line-height: 1;
    font-weight: 500;
    font-size: 14px;
}

.badge {
    background: rgba(255, 255, 255, 0.2);
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.profile-actions {
    margin-left: auto;
    display: flex;
    gap: 15px;
    margin-right: 60px;
}


.action-btn {
    background: transparent;
    color: white;
    border: 1px solid white;
    padding: 0 23px;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 14px;
    border-radius: 20px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    height: 38px;
    gap:5px;
    white-space: nowrap;
    flex-wrap: nowrap;
}

.action-btn img {
    height: 16px;
}

.action-btn:hover {
    transform: translateY(-2px);
}

/* ==================== 信息卡片 ==================== */

.info-cards {
    width: 100%;
    display: flex;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.info-card {
    flex: 1;
    background: white;
    color: #333;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: row;
    gap: 20px;
    overflow: hidden;

}

.info-card h3 {
    margin-bottom: 20px;
    white-space: nowrap;
}

.certificate {
    flex: 1;
}

.certificate img {
    height: 100%;
    max-height: 150px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.amount {
    font-size: 36px;
    font-weight: bold;
    color: #e53e3e;
    margin: 0;
}

.info-coins {
    display: flex;
    flex-direction: column;
    flex: 1;
    background: white;
    color: #333;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    gap: 20px;
}

.flex-coins {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 5%;
    flex-wrap: wrap;
}

.coins-btn {
    white-space: nowrap;
    background: transparent;
    color: #e53e3e;
    border: 1px solid #e53e3e;
    padding: 0 23px;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 14px;
    border-radius: 20px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    height: 38px;
}

.detail-btn {
    background: #e53e3e;
    color: white;
    border: none;
    padding: 8px 20px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 14px;
    transition: background 0.3s;
}

.detail-btn:hover {
    background: #d53030;
}

.withdraw-btn {
    background: white;
    color: #e53e3e;
    border: 1px solid #e53e3e;
    padding: 8px 20px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 14px;
    transition: background 0.3s;
    text-decoration: none;
}
.withdraw-btn:hover {
    background: #ffe1e1;
}

/* ==================== 标签页导航 ==================== */

/* 主标签页 */
.tab-section {
    background: #fff;
    padding: 20px 20%;
}

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

.tab-nav {
    display: flex;
    gap: 40px;
}

.tab-btn {
    background: none;
    border: none;
    font-size: 22px;
    color: #666;
    cursor: pointer;
    padding: 10px 0;
    position: relative;
    transition: color 0.3s;
}

.tab-btn.active {
    color: #e53e3e;
}

.tab-btn.active::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    right: 0;
    height: 3px;
    background: #e53e3e;
    border-radius: 2px;
}

.tab-actions {
    display: flex;
    gap: 15px;
}

.share-btn {
    background: #e53e3e;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 14px;
}

.share-btn:hover {
    background: #d53030;
    transform: translateY(-2px);
}

/* 子标签页 */
.xinhuo-tabs {
    width: 100vw;
    background-color: #fcfcfc;
    border-top: #eeeeee 1px solid;
    border-bottom: #eeeeee 1px solid;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    margin-top: -30px;
    padding: 20px 0;
}

.tab-xinhuo {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: center;
    gap: 30px;
    align-items: center;
    white-space: nowrap;
}

/* 导航标签 */
.nav-tabs {
    display: flex;
    justify-content: center;
    padding: 20px 0 20px 0;
    gap: 30px;
}

.nav-tab {
    background: #e8e8e8;
    border-radius: 10px;
    border: none;
    padding: 10px 25px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    color: #666;
    transition: all 0.3s ease;
    flex: 1;
    max-width: 230px;
    border-radius: 5px;
    border: rgb(181, 181, 181) solid 1px;
    white-space: nowrap;
}

.nav-tab.active {
    background: linear-gradient(to bottom, rgb(240, 68, 70), rgb(195, 40, 45));
    border: rgb(182, 48, 54) solid 1px;
    color: white;
}

.nav-tab:hover:not(.active) {
    background: #d5d5d5;
    color: #333;
}

/* ==================== 内容区域 ==================== */

.content-section {
    padding: 30px 0;
}

.tab-content {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 团队容器 */
.team-container h3 {
    font-size: 20px;
    color: #333;
    margin-bottom: 20px;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
}

.team-member {
    background: white;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    transition: all 0.3s ease;
}

.team-member:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
}

.member-info {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
}

.member-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: #e53e3e;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 18px;
    overflow: hidden;
}

.member-avatar img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
}

.member-avatar p {
    text-align: center;
    font-size: 12px;
}

.member-details h4 {
    margin: 0;
    font-size: 16px;
    color: #333;
}

.member-time {
    font-size: 12px;
    color: #999;
    margin-top: auto;
}

.no-data {
    grid-column: 1 / -1;
    text-align: center;
    padding: 40px;
    color: #999;
    font-size: 16px;
}

/* ==================== 表单样式 ==================== */

.main-content {
    min-height: 800px;
    padding: 20px 20px;
}

.content-tabs {
    display: flex;
    margin-bottom: 20px;
    gap: 40px;
}

.form-container {
    padding: 20px;
    border-radius: 8px;
}

.form-title {
    text-align: center;
    font-size: 20px;
    font-weight: bold;
    margin-bottom: 30px;
    color: #2d3748;
}

/* 表单区域 */
.form-section {
    margin-bottom: 30px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.stit {
    font-size: 16px;
    font-weight: bold;
    color: #2d3748;
    margin-bottom: 15px;
    padding-left: 15px;
    border-left: 4px solid #e53e3e;
}

/* 表单组 */
.ss-form-group {
    display: flex;
    align-items: center;
    background-color: #fff;
    padding: 15px;
    margin: 0;
    justify-content: space-between;
    font-family: "Microsoft YaHei", "PingFang SC", "Helvetica Neue", Arial, sans-serif;
    position: relative;
    flex-wrap: wrap;
}

.ss-onload-group {
    display: flex;
    flex-direction: row;
    align-items: center;
    background-color: #fff;
    margin: 0;
}

.ss-onload-group a {
    text-decoration: none;
}

.ss-onload-group p {
    margin: 0 20px 0 0;
    color: #999;
    text-align: right;
}

.ss-onload-group .ss-form-group {
    flex: 1;
    margin: 0;
}

.ss-onload-group .upload-btn {
    min-height: 54px;
    width: 100px;
    background: #c3282d;
    color: white;
    border: none;
    padding: 8px 16px;
    font-size: 18px;
    cursor: pointer;
    transition: background 0.3s;
}

.ss-onload-group label,
.ss-form-group label,
.ss-form-area label {
    white-space: nowrap;
    font-size: 18px;
    color: #000;
    font-family: "Microsoft YaHei", "PingFang SC", "Helvetica Neue", Arial, sans-serif;
}

.form-note {
    padding: 5px 0;
    color: #666;
    font-size: 14px;
    text-align: left;
    margin-left: 120px;
    /* 与label宽度对齐 */
}

.form-note p {
    margin: 0;
}

.type-label {
    width: 100%;
    text-align: left;
}

.type-group {
    display: flex;
    flex-direction: column;
    position: relative;
    /* 为错误消息提供定位上下文 */
}

.type-group hr {
    width: calc(100% + 29px);
    margin-left: -15px;
    border-color: #eee;
}

.type-group .checkbox-group {
    width: 100%;
    display: flex;
    flex-direction: row;
}

.checkbox-group {
    flex-wrap: wrap;
    gap: 20px;
}

.checkbox-item {
    display: flex;
    align-items: center;
    gap: 5px;
}
.checkbox-item label {
    white-space: wrap;
}
.checkbox-item label {
    color: #999;
    min-width: 0;
}

.checkbox-item input[type="radio"] {
    margin: 0;
}

.material-onload {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.material-onload .ss-form-group {
    flex-direction: row;
    justify-content: space-between;
}

/* 表单区域（文本域） */
.ss-form-area {
    flex: 1;
    display: flex;
    flex-direction: column;
    display: flex;
    background-color: #fff;
    padding: 15px;
    margin: 0;
    justify-content: left;
    font-family: "Microsoft YaHei", "PingFang SC", "Helvetica Neue", Arial, sans-serif;
}

/* 表单输入框 */
.form-input {
    flex: 1;
    border: none !important;
    border-radius: 4px;
    font-size: 18px;
    transition: border-color 0.3s;
    color: #999;
    text-align: right;
    font-family: "Microsoft YaHei", "PingFang SC", "Helvetica Neue", Arial, sans-serif;
}

.form-input:focus {
    outline: none;
    border-color: #e53e3e;
}

.create-text {
    background-color: white;
    gap: 0;
}

/* 表单行 */
.form-row {
    display: flex;
    gap: 30px;
    margin: 0;
    position: relative;
    /* 为错误消息提供定位上下文 */
}

.form-column {
    display: flex;
    flex-direction: column;
    gap: 30px;
    margin: 0;
}

.form-row .ss-form-group {
    flex: 1;
}

/* 创作说明 */
.creation-notes {
    font-size: 16px;
    color: #999;
    padding: 15px;
    padding-top: 0px;
    border-radius: 4px;
    background-color: white;
}

.creation-notes p {
    margin-bottom: 10px;
    font-size: 14px;
    line-height: 1.6;
    color: #4a5568;
}

/* 上传按钮 */
.upload-btn {
    background: #e53e3e;
    color: white;
    border: none;
    padding: 8px 16px;
    font-size: 12px;
    cursor: pointer;
    transition: background 0.3s;
}

.upload-btn:hover {
    background: #c53030;
}

/* 上传区域 */
.upload-area {
    display: flex;
    gap: 20px;
    margin-top: 15px;
}

.upload-item {
    flex: 1;
}

.upload-box {
    border: 2px dashed #e2e8f0;
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    transition: border-color 0.3s;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.upload-box:hover {
    border-color: #e53e3e;
}

.upload-box h4 {
    margin: 0;
    text-align: center;
}

.upload-box img {
    width: 60%;
    object-fit: cover;
    margin: 0 auto;
    border-radius: 4px;
    margin-bottom: 15px;
}

/* 文档列表 */
.document-list {
    background: #fff;
    padding: 20px;
    border-radius: 8px;
}

.document-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 0;
    border-bottom: 1px solid #e2e8f0;
}

.document-item:last-child {
    border-bottom: none;
}

.doc-note {
    color: #718096;
    font-size: 12px;
    margin-left: 10px;
    flex: 1;
}

/* 表单操作 */
.form-actions {
    text-align: center;
    margin-top: 40px;
}

.submit-btn {
    background: linear-gradient(to bottom, rgb(240, 68, 70), rgb(195, 40, 45));
    color: white;
    border: rgb(182, 48, 54) 1px solid;
    padding: 12px 40px;
    border-radius: 6px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
}

.submit-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(229, 62, 62, 0.3);
}

/* 材料指南 */
.material-guide {
    margin-top: 40px;
    padding: 20px;
    border-radius: 8px;
}

.material-guide h3 {
    font-size: 16px;
    font-weight: bold;
    margin-bottom: 15px;
    color: #2d3748;
}

.guide-content p,
.guide-content pre {
    margin: 2px 0;
    font-size: 16px;
    color: #4a5568;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    white-space: pre-line; /* 保留换行符，合并空格和制表符 */
    word-wrap: break-word; /* 允许长单词换行 */
}

/* ==================== 申请记录样式 ==================== */

.application-records {
    margin-top: 20px;
}

.record-item {
    display: flex;
    flex-direction: column;
    background: #fff;
    border-radius: 8px;
    margin-bottom: 20px;
    padding: 20px;
    gap: 20px;
}

.record-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.record-header {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 20px;
    text-decoration: none;
}

.record-header h2 {
    margin: 0;
    color: #000;
}

.record-id {
    font-weight: bold;
    color: #333;
}

.record-status {
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: bold;
}

.status {
    font-size: 12px;
    border-radius: 10px 0 10px 0;
    border: #000 1px solid;
    padding: 5px 10px;
}

.s0 {
    border-color: #777;
    background-color: #eee;
    color: #777;
}

.s1 {
    border-color: rgb(47, 139, 32);
    background-color: rgb(217, 234, 215);
    color: rgb(47, 139, 32);
}

.s2 {
    border-color: rgb(214, 47, 32);
    background-color: rgb(255, 217, 215);
    color: rgb(214, 47, 32);
}

.record-content {
    padding: 20px;
}

.record-field {
    display: flex;
    margin-bottom: 12px;
}

.record-field:last-child {
    margin-bottom: 0;
}

.record-field label {
    font-weight: bold;
    min-width: 100px;
    color: #555;
}

.record-field span {
    flex: 1;
    color: #777;
}

.remark-row {
    background-color: #f5f5f5;
    display: flex;
    flex-direction: row;
}

.remark-text {
    display: flex;
    align-items: center;
    flex: 1;
}

.remark-text p {
    margin: 0;
    font-size: 18px;
    padding: 14px;
    color: #777;
}

.remark-button {
    text-decoration: none;
    background-color: #c3282d;
}

.remark-button p {
    margin: 0;
    font-size: 18px;
    padding: 14px;
    color: white;
}

.record-button {

    background-color: #c3282d;
}

/* 新增按钮样式 */

.record-button {
    position: absolute;
    top: 36px;
    right: 15px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: #333;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    transition: all 0.3s ease;
    opacity: 0.8;
    cursor: pointer;
}

.record-item:hover .record-button {
    background-color: #e53935;
    opacity: 1;
    transform: scale(1.1);
}

/* 调整的相对定位，以便按钮正确定位 */
.record-item {
    position: relative;
}

/* ==================== 错误提示样式 ==================== */

.field-error-message {
    color: #fff;
    background-color: #dc3545;
    font-size: 0.875em;
    margin-top: 0.5rem;
    padding: 0.5rem 0.75rem;
    border-radius: 0.25rem;
    display: block;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    position: absolute;
    z-index: 10;
    animation: shake 0.5s ease-in-out;
    left: 135px;
    /* 与label宽度对齐，120px label宽度 + 15px间距 */
    top: 100%;
    width: calc(100% - 135px);
    /* 剩余宽度 */
    box-sizing: border-box;
}

.group-error-message {
    color: #fff;
    background-color: #dc3545;
    font-size: 0.875em;
    margin-top: 0.5rem;
    padding: 0.5rem 0.75rem;
    border-radius: 0.25rem;
    display: block;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    position: absolute;
    z-index: 10;
    animation: shake 0.5s ease-in-out;
    left: 0;
    top: 100%;
    width: 100%;
    box-sizing: border-box;
}

/* ==================== 特殊样式 ==================== */

select {
    min-width: 80px;
}

.red {
    color: #e53e3e;
    margin: 15px 0;
    font-size: 18px;
}

.blue {
    color: #3182ce;
    white-space: nowrap;
}

.label-text {
    color: #e53935;
    font-size: 16px;
}

/* ==================== 响应式媒体查询 ==================== */

@media (max-width: 1145px) {
    .form-row {
        flex-direction: column;
    }
}

@media (max-width: 992px) {
    .ss-onload-group p {
        font-size: 12px;
    }
    .info-cards{
        flex-direction: column;
    }
}

@media (max-width: 768px) {
    .ss-onload-group{
        flex-direction: column;
        gap: 10px;
    }
    .ss-onload-group .upload-btn{
        width: 70%;
    }
    .ss-onload-group p {
        margin: 0;
        text-align: center;
    }
    .tab-btn{
        font-size: 18px;
    }
    .profile-actions {
        flex-direction: column;
        margin: 0 auto
    }

    .profile-user {
        margin: 0 auto
    }

    .tab-section {
        padding: 20px;
    }

    .checkbox-group {
        gap: 20px;
    }

    .label-text {
        font-size: 14px;
        position: absolute;
        z-index: 10;
    }
}

@media (max-width: 576px) {
    .tab-btn{
        font-size: 16px;
    }
    .main-content {
        padding: 0;
    }

    .form-container {
        padding: 5px;
    }
    .profile-user,
    .profile-actions,
    .info-cards {
        flex-direction: column;
    }
    .profile-actions {
        margin: 0;
        margin-left: 1px;
    }
    .form-input {
        flex: unset;
    }

    .label-text {
        font-size: 12px;
    }
    .profile-user {
        gap: 0;
    }
}

@media (max-width: 480px) {
    .tab-btn{
        font-size: 14px;
    }
    .form-container {
        padding: 0;
    }
    .tab-xinhuo{
        gap:10px
    }
    .tab-xinhuo .nav-tab{
        padding: 10px;
        flex:unset;
    }
    .tab-content{
        padding: 0;
    }
    .ss-form-group:not(.type-group) {
        gap: 5px;
    }
    
    .ss-form-group label,
    .form-input,
    .ss-form-area textarea {
        margin-left: 0;
        text-align: left;
    }
}


/* ==================== 其他样式 ==================== */
.ss-onload-group .ss-form-group {
    min-width: unset;
}

