/* 基础样式 */
:root {
    --primary: #1e3a8a;
    --secondary: #3b82f6;
    --accent: #06b6d4;
    --light: #f8fafc;
    --dark: #1e293b;
    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;
    --success-color:green; 
    --yellow: #FCD116;
    --blue: #003893;
    --red: #CE1126;
    --yellow-light: #FDE68A;
    --blue-light: #4A7EFF;
    --red-light: #FF6B7A;
    --text-dark: #1E1E1E;
    --text-light: #FFFFFF;
    --bg-light: #F8FAFC;
    --shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    --radius: 20px;
    --transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    
    /* 从old.css添加的变量 */
    --primary-light: #3e92cc;
    --accent-dark: #b8941f;
    --neutral-light: #f8fafc;
    --neutral: #e2e8f0;
    --neutral-dark: #94a3b8;
    --text-primary: #1e293b;
    --text-secondary: #64748b;
    --card-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    --card-shadow-hover: 0 20px 40px rgba(0, 0, 0, 0.12);
}
.common_header {
    background: #32a0dc;
    height: 60px;
    position: relative;
    width: 100%;
    border: none;
}

.common_header_order {
    
}

.common_header .back {
    display: block;
    width: 100%;
    font-family: Arial, Arial;
    font-weight: 700;
    font-size: 20px;
    
    text-align: center;
    padding: 20px 0;
}

.common_header .back .btn {
    background: rgba(255, 255, 255, 0.00);
    text-align: center;
    position: absolute;
    top:5px;
    left:0px;
}

.common_header .back .service {
    position: absolute;
    top:15px;
    right: 15px;
    width: 36px;
    height: 36px;
    line-height: 36px;
    background: #2250A8;
    border-radius: 12px 12px 12px 12px;
    border: 1px solid #3060B9;
}

.common_header .back .service img {
    width: 19px;
     height: 19px;
}

 .toast-container {
  position: fixed;
  top: 20px;
  /*right: 20px;*/
  z-index: 1000;
  max-width: 400px;
  width: 100%;
 }
 
 .toast {
  background: white;
  border-radius: 8px;
  padding: 20px;
  margin-bottom: 15px;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  animation: slideIn 0.3s ease forwards;
  opacity: 0;
  transform: translateX(100%);
 }
 
 .toast::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  width: 4px;
 }
 
 .toast.info::before {
  background: #3498db;
 }
 
 .toast.success::before {
  background: #2ecc71;
 }
 
 .toast.warning::before {
  background: #f39c12;
 }
 
 .toast.error::before {
  background: #e74c3c;
 }
 
 .toast-content {
  flex: 1;
  text-align: left;
  padding-right: 10px;
 }
 
 .toast-title {
  font-weight: 600;
  margin-bottom: 5px;
  color: #2c3e50;
 }
 
 .toast-message {
  color: #546e7a;
  font-size: 14px;
  line-height: 1.4;
 }
 
 .toast-icon {
  margin-right: 12px;
  font-size: 20px;
 }
 
 .toast.info .toast-icon {
  color: #3498db;
 }
 
 .toast.success .toast-icon {
  color: #2ecc71;
 }
 
 .toast.warning .toast-icon {
  color: #f39c12;
 }
 
 .toast.error .toast-icon {
  color: #e74c3c;
 }
 
 .dia-progress-bar {
  position: absolute;
  bottom: 0;
  left: 0;
  height: 3px;
  width: 100%;
  background: rgba(0, 0, 0, 0.05);
 }
 
 .dia-progress-bar::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  height: 100%;
  width: 100%;
  animation: progress 3s linear forwards;
 }
 
 .toast.info .dia-progress-bar::after {
  background: #3498db;
 }
 
 .toast.success .dia-progress-bar::after {
  background: #2ecc71;
 }
 
 .toast.warning .dia-progress-bar::after {
  background: #f39c12;
 }
 
 .toast.error .dia-progress-bar::after {
  background: #e74c3c;
 }
 
 @keyframes slideIn {
  to {
      opacity: 1;
      transform: translateX(0);
  }
 }
 
 @keyframes slideOut {
  to {
      opacity: 0;
      transform: translateX(100%);
  }
 }
 
 @keyframes progress {
  to {
      width: 0;
  }
 }
 
 .fade-out {
  animation: slideOut 0.3s ease forwards;
 }
        
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: #f1f5f9;
    color: var(--dark);
    line-height: 1.6;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* 导航栏样式 - 移动端优化 */
header {
    background-color: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
    text-decoration: none;
    display: flex;
    align-items: center;
}

.logo i {
    margin-right: 0.5rem;
    font-size: 1.8rem;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--dark);
    cursor: pointer;
}

.nav-links {
    display: flex;
    list-style: none;
}

.nav-links li {
    margin-left: 1.5rem;
}

.nav-links a {
    text-decoration: none;
    color: var(--dark);
    font-weight: 500;
    transition: color 0.3s;
    display: flex;
    align-items: center;
}

.nav-links a i {
    margin-right: 0.5rem;
    font-size: 1.1rem;
}

.nav-links a:hover {
    color: var(--primary);
}

.auth-buttons {
    display: flex;
    gap: 1rem;
}

.btn {
    padding: 0.5rem 1.5rem;
    border-radius: 4px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn i {
    margin-right: 0.5rem;
}

.btn-primary {
    background-color: var(--primary);
    color: white;
}

.btn-primary:hover {
    background-color: #1e40af;
}

.btn-outline {
    background-color: transparent;
    border: 1px solid var(--primary);
    color: var(--primary);
}

.btn-outline:hover {
    background-color: var(--primary);
    color: white;
}
/**/
.flex_left {
    background:  rgb(255 255 255 / 50%);
    padding:15px;
    display: flex;
    justify-content: left;
}
/*弹窗相关**/

.download_dialog {
    background-image: url("/public/site/img/download/dialog_bg.png");
    background-repeat: no-repeat;
    background-size: 300px 536px;
    width: 300px;
    height: 536px;
}

.dialog .dialog_contents {
    padding: 16px;
    background-color: #FFFFFf;
    border-radius: 16px 16px 16px 16px;
    z-index: 300;
}

.dialog .logo {
    width: auto;
    height: 60px;
    margin: auto;
    text-align: center;
}

.dialog .logo img {
    width: auto; height: 60px;
}

.dialog .title {
    font-family: Arial, Arial;
    font-weight: 400;
    font-size: 16px;
    color: #3D3D3D;
    line-height: 28px;
    margin-bottom: 20px;
}

.dialog .item {
    display: flex;
    justify-content: space-between;
    width: 100%;
    padding: 20px 0;
}

.dialog .item .label {
    font-family: Arial, Arial;
    font-weight: 400;
    font-size: 14px;
    color: #b66b58;
    line-height: 16px;
}

.dialog .item .value {
    font-family: Arial, Arial;
    font-weight: 700;
    font-size: 18px;
    color: #666666;
    line-height: 21px;
}

.dialog .explain {
    font-family: Arial, Arial;
    font-weight: 700;
    font-size: 18px;
    line-height: 21px;
    text-align: left;
    font-style: normal;
    text-transform: none;
    color: #155BCD;
    margin-bottom: 20px;
}

.dialog .text {
    font-family: Arial, Arial;
    font-weight: 400;
    font-size: 14px;
    color: #2A415C;
    line-height: 22px;
}

.dialog .btn_group {
    padding: 20px;
    display: flex;
    justify-content: space-between;
}

.dialog .cancel {
    width: 105px;
    height: 40px;
    background: #BBBBBB;
    border-radius: 100px 100px 100px 100px;
    text-align: center;
    line-height: 40px;
    font-family: Arial, Arial;
    font-weight: 700;
    font-size: 16px;
    color: #FFFFFF;
}

.dialog .confirm {
    width: 160px;
    height: 36px;
    
    background: #32a0dc;
    box-shadow: 0px 4px 10px 0px rgba(2,104,206,0.15);
    border-radius: 100px 100px 100px 100px;
    text-align: center;
    height: 40px;
    line-height: 40px;
    font-family: Arial, Arial;
    font-weight: 700;
    font-size: 16px;
    color: #F0F5FF;
}
/* 页面内容样式 */
.page {
    /*display: none;*/
    padding: 1.5rem 0;
    min-height: calc(100vh - 150px);
}

.page.active {
    display: block;
}

.page-title {
    color: var(--primary);
    font-size: 1.8rem;
    display: flex;
    align-items: center;
}

.page-title i {
    margin-right: 0.75rem;
}

/* 登录/注册表单样式 */
.auth-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 70vh;
}

.auth-form {
    background-color: white;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 400px;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.form-group input {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #d1d5db;
    border-radius: 4px;
    font-size: 1rem;
}

.form-group input:focus {
    outline: none;
    border-color: var(--primary);
}

.form-footer {
    margin-top: 1.5rem;
    text-align: center;
}

.form-footer a {
    color: var(--primary);
    text-decoration: none;
}

/* 产品展示样式 */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
}

.product-card {
    margin: 20px 15px;
    background-color: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s;
}
.product-image {
    height: 60px;
    background-color: var(--secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    font-weight: 600;
    position: relative;
}

.product-image i {
    font-size: 3rem;
    opacity: 0.8;
}

.product-content {
    padding: 1.5rem;
}

.product-title {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    color: var(--primary);
    display: flex;
    align-items: center;
}

.product-title i {
    margin-right: 0.5rem;
}

.product-description {
    color: #64748b;
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.product-features {
    list-style: none;
    margin-bottom: 1.5rem;
}

.product-features li {
    padding: 0.25rem 0;
    position: relative;
    padding-left: 1.5rem;
    display: flex;
    align-items: center;
}

.product-features li i {
    position: absolute;
    left: 0;
    color: var(--success);
}

/* 邀请页面样式 */
.invite-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

.invite-code {
    background-color: white;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    margin: 1.5rem 0;
    width: 100%;
}

.code {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary);
    letter-spacing: 3px;
    margin: 1rem 0;
    padding: 1rem;
    background-color: #f1f5f9;
    border-radius: 8px;
}

.invite-stats {
    display: flex;
    justify-content: space-around;
    width: 100%;
    margin-top: 1.5rem;
    flex-wrap: wrap;
}

.stat-card {
    background-color: white;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    text-align: center;
    flex: 1;
    margin: 0.5rem;
    min-width: 150px;
}

.stat-value {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
}

.stat-value i {
    margin-right: 0.5rem;
}

.stat-label {
    color: #64748b;
    font-size: 0.9rem;
    margin-top: 0.5rem;
}

/* 个人信息页面样式 */
.profile-container {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 1.5rem;
}

.profile-sidebar {
    background-color: white;
    border-radius: 8px;
    padding: 1rem;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    height: fit-content;
}

.profile-avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background-color: var(--secondary);
    margin: 0 auto 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2rem;
    font-weight: 600;
}

.profile-name {
    text-align: center;
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.profile-email {
    text-align: center;
    color: #64748b;
    margin-bottom: 1.5rem;
}

.balance-card {
    padding: 1.5rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    text-align: center;
}

.balance-label {
    font-size: 0.9rem;
    opacity: 0.9;
    margin-bottom: 0.5rem;
}

.balance-amount {
    font-size: 2rem;
    font-weight: 700;
}

.profile-menu {
    list-style: none;
}

.profile-menu li {
    padding: 0.75rem 0;
    border-bottom: 1px solid #e2e8f0;
}

.profile-menu li:last-child {
    border-bottom: none;
}

.profile-menu a {
    text-decoration: none;
    color: var(--dark);
    display: flex;
    align-items: center;
}

.profile-menu a i {
    margin-right: 0.75rem;
    width: 20px;
    text-align: center;
}

.profile-menu a.active {
    color: var(--primary);
    font-weight: 500;
}

.profile-content {
    background-color: white;
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}


.profile-section-title {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    color: var(--primary);
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #e2e8f0;
    display: flex;
    align-items: center;
}

.profile-section-title i {
    margin-right: 0.75rem;
}

/* 页脚样式 */
footer {
    background-color: var(--dark);
    color: white;
    padding: 2rem 0;
    margin-top: 2rem;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
}

.footer-section {
    flex: 1;
    min-width: 200px;
    margin-bottom: 1.5rem;
}

.footer-section h3 {
    margin-bottom: 1rem;
    color: var(--accent);
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.5rem;
}

.footer-links a {
    color: #cbd5e1;
    text-decoration: none;
}

.footer-links a:hover {
    color: white;
}

.footer-bottom {
    text-align: center;
    padding-top: 1.5rem;
    border-top: 1px solid #334155;
    margin-top: 1.5rem;
    color: #94a3b8;
}

/* 移动端响应式 */
@media (max-width: 768px) {
    .navbar {
        padding: 1rem 0;
    }
    
    .mobile-menu-btn {
        display: block;
    }
    
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: white;
        flex-direction: column;
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
        padding: 1rem 0;
    }
    
    .nav-links.active {
        display: flex;
    }
    
    .nav-links li {
        margin: 0;
        width: 100%;
    }
    
    .nav-links a {
        padding: 1rem 1.5rem;
        width: 100%;
    }
    
    .auth-buttons {
        display: none;
    }
    
    .profile-container {
        grid-template-columns: 1fr;
    }
    
    .products-grid {
        grid-template-columns: 1fr;
    }
    
    .invite-stats {
        flex-direction: column;
    }
    
    .stat-card {
        margin: 0.5rem 0;
    }
    
    .page-title {
        font-size: 1.5rem;
    }
}

/* 底部导航栏 - 移动端专用 */
.bottom-nav {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: white;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
    z-index: 100;
}

.bottom-nav-items {
    display: flex;
    justify-content: space-around;
    list-style: none;
}

.bottom-nav-item {
    flex: 1;
    text-align: center;
    padding: 10px 20px;
}

.bottom-nav-item a {
    text-decoration: none;
    color: var(--dark);
    display: flex;
    flex-direction: column;
    align-items: center;
    font-size: 0.8rem;
}

.bottom-nav-item a i {
    font-size: 1.2rem;
    margin-bottom: 0.25rem;
}

.bottom-nav-item a.active {
    color: var(--primary);
}

@media (max-width: 768px) {
    .bottom-nav {
        display: block;
    }
    
    main {
        padding-bottom: 70px;
    }
}

/* ========== 从old.css添加的样式（仅保留new.css中没有的类） ========== */

.app-container {
    max-width: 430px;
    margin: 0 auto;
    background-color: var(--bg-light);
    min-height: 100vh;
    position: relative;
    overflow: hidden;
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.1);
}

.layui-btn{
    background:linear-gradient(135deg, var(--yellow), #FFD43B);
}

/* Header Styles */
.header {
    background: linear-gradient(135deg, var(--yellow) 0%, var(--blue) 50%, var(--red) 100%);
    padding: 30px 20px 25px;
    color: var(--text-light);
    position: relative;
    overflow: hidden;
    text-align: center;
    border-bottom-left-radius: 30px;
    border-bottom-right-radius: 30px;
}

.header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.1'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.3;
    z-index: 0;
}

.header-content {
    position: relative;
    z-index: 1;
}

.header h1 {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 5px;
    letter-spacing: -0.5px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.header p {
    font-size: 1rem;
    opacity: 0.9;
    font-weight: 500;
}

.user-avatar {
    position: absolute;
    top: 25px;
    right: 20px;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: var(--transition);
    backdrop-filter: blur(5px);
}

.user-avatar:hover {
    background: rgba(255, 255, 255, 0.5);
    transform: scale(1.1) rotate(5deg);
}

/* Navigation */
.nav-tabs {
    display: flex;
    justify-content: space-around;
    background-color: var(--bg-light);
    padding: 20px 0 15px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 10;
}

.nav-tab {
    display: flex;
    flex-direction: column;
    align-items: center;
    color: var(--blue);
    font-size: 0.8rem;
    transition: var(--transition);
    cursor: pointer;
    padding: 8px 12px;
    border-radius: 15px;
    position: relative;
    font-weight: 600;
}

.nav-tab.active {
    color: var(--red);
    background: rgba(252, 209, 22, 0.2);
    transform: translateY(-5px);
}

.nav-tab.active::after {
    content: '';
    position: absolute;
    bottom: -16px;
    width: 6px;
    height: 6px;
    background: var(--red);
    border-radius: 50%;
}

.nav-tab i {
    font-size: 1.4rem;
    margin-bottom: 5px;
}

.nav-tab:hover {
    color: var(--red);
    transform: translateY(-3px);
}

/* Card Styles */
.card {
    background-color: white;
    border-radius: var(--radius);
    padding: 25px;
    margin: 20px 15px;
    box-shadow: var(--shadow);
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.card-title {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--blue);
    display: flex;
    align-items: center;
}

.card-title i {
    margin-right: 10px;
    color: var(--red);
    background: rgba(206, 17, 38, 0.1);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}
/*任务块**/
.tasks-grid {
    display: grid;
    gap: 20px;
}
.task-card {
     background-color: white;
     border-radius: var(--border-radius);
     box-shadow: var(--box-shadow);
     padding: 20px;
     transition: transform 0.3s ease, box-shadow 0.3s ease;
     display: flex;
     flex-direction: column;
}
.task-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.task-title {
    font-size: 1.2rem;
    font-weight: 600;
}

.task-status {
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
}

.status-pending {
    background-color: rgba(243, 156, 18, 0.1);
    color: var(--warning-color);
}

.status-completed {
    background-color: rgba(46, 204, 113, 0.1);
    color: var(--success-color);
}

.task-description {
    margin-bottom: 20px;
    color: #666;
    line-height: 1.5;
    flex-grow: 1;
}

.progress-container {
    margin-bottom: 20px;
}

.progress-info {
    display: flex;
    justify-content: space-between;
    margin-bottom: 5px;
    font-size: 0.9rem;
}
.progress-fill {
    height: 100%;
    border-radius: 5px;
    transition: width 0.5s ease;
}

.progress-primary {
    background-color: var(--primary-color);
}

.progress-success {
    background-color: var(--success-color);
}

.task-reward {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.reward-icon {
    width: 24px;
    height: 24px;
    margin-right: 10px;
    color: var(--warning-color);
}

.reward-text {
    font-size: 0.9rem;
    font-weight: 500;
}

.task-actions {
    display: flex;
    justify-content: space-between;
}
.task-btn{
    border-radius:5px;
    width: 65%;
    padding: 10px 15px;
    border: none;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}
.invite_btn{
    text-align: center;
    background-color: var(--blue);
    color: white;
}
.receive_btn{
    text-align: center;
    background-color: var(--success-color);
    color: white;
}
.finish{
    text-align: center;
}
/* Balance Section */
.balance-section {
    text-align: center;
    padding: 30px 20px;
    background: white;
    margin: 0 15px 20px;
    border-radius: var(--radius);
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow);
    border: 2px solid transparent;
    background-clip: padding-box;
}

.balance-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: -1;
    margin: -2px;
    border-radius: inherit;
    background: linear-gradient(135deg, var(--yellow), var(--blue), var(--red));
}

.withdrawable-amount {
    font-size: 1.2rem;
    color: var(--red);
    margin: 10px 0;
    position: relative;
    font-weight: 700;
}

.action-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 25px;
    position: relative;
}

.btn-primary-a {
    background: linear-gradient(135deg, var(--secondary), #3e92cc);
    color: var(--text-dark);
    box-shadow: 0 4px 15px rgba(252, 209, 22, 0.4);
}

.btn-primary-b {
    background: linear-gradient(135deg, var(--red), #FF6B7A);
    color: var(--text-dark);
    box-shadow: 0 4px 15px rgba(252, 209, 22, 0.4);
}

.btn-secondary {
    background: linear-gradient(135deg, var(--blue), var(--blue-light));
    color: white;
    box-shadow: 0 4px 15px rgba(0, 56, 147, 0.4);
}

/* Features Section */
.features {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin: 20px 15px;
}

.feature-item {
    background: white;
    border-radius: 15px;
    padding: 20px 10px;
    text-align: center;
    transition: var(--transition);
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    border: 2px solid transparent;
}

.feature-item:nth-child(1) {
    border-color: var(--yellow);
}

.feature-item:nth-child(2) {
    border-color: var(--blue);
}

.feature-item:nth-child(3) {
    border-color: var(--red);
}

.feature-item:hover {
    transform: translateY(-8px) rotate(2deg);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.feature-item i {
    font-size: 1.8rem;
    margin-bottom: 10px;
    background: linear-gradient(135deg, var(--yellow), var(--blue), var(--red));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.feature-item span {
    font-size: 0.85rem;
    color: var(--text-dark);
    font-weight: 600;
}

/* Community Event */
.event-card {
    position: relative;
    overflow: hidden;
}

.event-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    background: linear-gradient(135deg, var(--red), var(--red-light));
    color: white;
    padding: 8px 15px;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 700;
    box-shadow: 0 4px 10px rgba(206, 17, 38, 0.3);
}

.event-details {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 15px;
}

.event-detail {
    display: flex;
    align-items: center;
    gap: 12px;
}

.event-detail i {
    color: var(--blue);
    width: 24px;
    height: 24px;
    background: rgba(0, 56, 147, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Products Section */
.product-card-a {
    margin-bottom: 25px;
    padding-left: 20px;
    border-left: 5px solid var(--primary-light);
}

.product-card-b {
    margin-bottom: 25px;
    padding-left: 20px;
    border-left: 5px solid var(--red-light);
}

.product-badge {
    display: inline-block;
    background: linear-gradient(135deg, var(--blue), var(--blue-light));
    color: white;
    padding: 6px 12px;
    border-radius: 50px;
    font-size: 0.8rem;
    margin-bottom: 10px;
    font-weight: 700;
}

.product-price {
    font-size: 2rem;
    font-weight: 800;
    color: var(--blue);
    margin: 10px 0;
}
/*产品详情**/
/* 产品详情区域 */
        .product-details {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 30px;
            margin-bottom: 40px;
        }
        
        .detail-card {
            background: white;
            border-radius: 12px;
            box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
            padding: 25px;
        }
        
        .detail-title {
            font-size: 1.3rem;
            font-weight: 600;
            margin-bottom: 20px;
            color: #1e293b;
            display: flex;
            align-items: center;
        }
        
        .detail-title i {
            margin-right: 10px;
            color: #2563eb;
        }
        
        .risk-level {
            display: flex;
            align-items: center;
            margin-bottom: 20px;
        }
        
        .risk-badge {
            background: #dcfce7;
            color: #16a34a;
            padding: 6px 12px;
            border-radius: 20px;
            font-size: 0.85rem;
            font-weight: 500;
            margin-right: 15px;
        }
        
        .risk-description {
            color: #475569;
            font-size: 0.95rem;
        }
        
        .detail-list {
            list-style: none;
        }
        
        .detail-list li {
            padding: 12px 0;
            border-bottom: 1px solid #f1f5f9;
            display: flex;
            justify-content: space-between;
        }
        
        .detail-list li:last-child {
            border-bottom: none;
        }
        
        .detail-label {
            color: #64748b;
        }
        
        .detail-value {
            font-weight: 500;
            color: #1e293b;
        }
        

/* Transactions */
.transaction-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.transaction-item {
    display: flex;
    align-items: center;
    padding: 15px;
    background: white;
    border-radius: 15px;
    transition: var(--transition);
    border: 2px solid transparent;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.transaction-item:hover {
    border-color: var(--yellow);
    transform: translateX(10px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.transaction-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--yellow), var(--red));
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    color: white;
    font-size: 1.3rem;
    box-shadow: 0 4px 10px rgba(252, 209, 22, 0.4);
}

.transaction-details {
    flex: 1;
}

.transaction-title {
    font-weight: 700;
    margin-bottom: 5px;
    color: var(--blue);
}

.transaction-meta {
    font-size: 0.8rem;
    color: var(--text-dark);
    opacity: 0.7;
}

.transaction-amount {
    font-weight: 800;
    color: var(--red);
    font-size: 1.2rem;
}

/* Login Form */
.login-container {
    padding: 30px 20px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-label {
    display: block;
    margin-bottom: 10px;
    color: var(--blue);
    font-size: 1rem;
    font-weight: 600;
}

.form-input {
    width: 100%;
    padding: 15px 20px;
    background-color: rgba(0, 0, 0, 0.03);
    border: 2px solid rgba(0, 0, 0, 0.1);
    border-radius: 15px;
    color: var(--text-dark);
    font-size: 1rem;
    transition: var(--transition);
    font-weight: 500;
}

.form-input:focus {
    outline: none;
    border-color: var(--yellow);
    background-color: white;
    box-shadow: 0 0 0 3px rgba(252, 209, 22, 0.3);
}

.login-btn {
    width: 100%;
    padding: 18px;
    background: linear-gradient(135deg, var(--red), var(--red-light));
    color: white;
    border: none;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1.1rem;
    cursor: pointer;
    transition: var(--transition);
    margin-top: 10px;
    box-shadow: 0 4px 15px rgba(206, 17, 38, 0.4);
}
.register-link {
    text-align: center;
    margin-top: 20px;
}

.register-link a {
    color: var(--blue);
    text-decoration: none;
    font-weight: 700;
    border-bottom: 2px solid var(--yellow);
    padding-bottom: 2px;
}

/* Footer */
.footer {
    text-align: center;
    padding: 25px;
    color: var(--text-dark);
    font-size: 0.9rem;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    margin-top: 30px;
    background: white;
}

/* Page Transitions */
@keyframes slideIn {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Floating Elements */
.floating-element {
    position: absolute;
    width: 100px;
    height: 100px;
    background: radial-gradient(circle, rgba(252, 209, 22, 0.2) 0%, transparent 70%);
    border-radius: 50%;
    animation: float 8s ease-in-out infinite;
    z-index: 0;
}

@keyframes float {
    0% { transform: translate(0, 0) rotate(0deg) scale(1); }
    33% { transform: translate(30px, -30px) rotate(120deg) scale(1.1); }
    66% { transform: translate(-20px, 20px) rotate(240deg) scale(0.9); }
    100% { transform: translate(0, 0) rotate(360deg) scale(1); }
}

/* Progress Bar */
.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--yellow), var(--blue), var(--red));
    border-radius: 5px;
    transition: width 1s ease;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

/* ========== 从old.css添加的样式 ========== */

/* 首页弹窗 */
.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.popup {
    background: #fff;
    color: #333;
    border-radius: 15px;
    width: 90%;
    max-width: 500px;
    padding: 25px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    text-align: center;
    position: relative;
    animation: popup-appear 0.5s ease-out;
}

@keyframes popup-appear {
    from {
        opacity: 0;
        transform: scale(0.8) translateY(20px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.popup h2 {
    color: #e74c3c;
    margin-bottom: 15px;
    font-size: 1.5rem;
}

.popup p {
    margin-bottom: 20px;
    line-height: 1.5;
    color: #555;
}

.popup-btn {
    background: linear-gradient(135deg, #3498db, #2980b9);
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 50px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: bold;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(52, 152, 219, 0.3);
    margin: 5px;
}

.popup-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(52, 152, 219, 0.4);
}

.popup-btn.secondary {
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    box-shadow: 0 4px 15px rgba(231, 76, 60, 0.3);
}

.popup-btn.secondary:hover {
    box-shadow: 0 6px 20px rgba(231, 76, 60, 0.4);
}

/* 邀请码样式 */
.invite-code-container {
    background: linear-gradient(135deg, #f9f9f9, #eef2f7);
    border-radius: 10px;
    padding: 20px;
    margin: 20px 0;
    border: 2px dashed #3498db;
}


.invite-stats {
    display: flex;
    justify-content: space-around;
    margin: 20px 0;
    flex-wrap: wrap;
}

.stat-item {
    text-align: center;
    padding: 15px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    margin: 10px;
    flex: 1;
    min-width: 120px;
}

.stat-value {
    font-size: 1.8rem;
    font-weight: bold;
    color: #3498db;
    margin-bottom: 5px;
}

.stat-label {
    font-size: 0.9rem;
    color: #7f8c8d;
}

/* 底部导航样式 */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: white;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
    display: flex;
    justify-content: space-around;
    padding: 10px 0;
    z-index: 100;
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: #7f8c8d;
    font-size: 0.8rem;
    transition: all 0.3s ease;
    padding: 5px 10px;
    border-radius: 10px;
}

.nav-item i {
    font-size: 1.3rem;
    margin-bottom: 3px;
}

.nav-item.active {
    color: #3498db;
    background: rgba(52, 152, 219, 0.1);
}

.nav-item:hover {
    color: #3498db;
    transform: translateY(-3px);
}

/* 响应式调整 */
@media (max-width: 480px) {
    .popup {
        width: 95%;
        padding: 20px;
    }
    
    .invite-code {
        font-size: 1.2rem;
    }
    
    .stat-item {
        min-width: 100px;
    }
    
    .features {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* 动画效果 */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.fade-in {
    animation: fadeIn 0.5s ease-in;
}

/* 从old.css添加的额外样式 */
.hero-section {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: white;
    padding: 60px 20px;
    text-align: center;
    border-radius: 0 0 30px 30px;
    margin-bottom: 30px;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url("data:image/svg+xml,%3Csvg width='40' height='40' viewBox='0 0 40 40' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23ffffff' fill-opacity='0.1'%3E%3Cpath d='M0 0h40v40H0V0zm20 20h20v20H20V20zM0 20h20v20H0V20z'/%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.3;
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero-title {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 15px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-subtitle {
    font-size: 1.2rem;
    margin-bottom: 25px;
    opacity: 0.9;
}

.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    margin: 40px 0;
}

.feature-card {
    background: white;
    border-radius: 15px;
    padding: 30px;
    text-align: center;
    box-shadow: var(--card-shadow);
    transition: var(--transition);
    border: 1px solid var(--neutral);
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--card-shadow-hover);
}

.feature-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2rem;
}

.feature-title {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--text-primary);
}

.feature-description {
    color: var(--text-secondary);
    line-height: 1.6;
}

.stats-section {
    background: linear-gradient(135deg, var(--neutral-light) 0%, white 100%);
    padding: 60px 20px;
    border-radius: 30px;
    margin: 40px 0;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 25px;
}

.stat-card {
    background: white;
    border-radius: 15px;
    padding: 30px;
    text-align: center;
    box-shadow: var(--card-shadow);
    transition: var(--transition);
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--card-shadow-hover);
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 10px;
}

.stat-text {
    color: var(--text-secondary);
    font-weight: 600;
}

.cta-section {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: white;
    padding: 60px 20px;
    text-align: center;
    border-radius: 30px;
    margin: 40px 0;
}

.cta-title {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 20px;
}

.cta-description {
    font-size: 1.1rem;
    margin-bottom: 30px;
    opacity: 0.9;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

/* 工具类 */
.text-center {
    text-align: center;
}

.mb-1 { margin-bottom: 1rem; }
.mb-2 { margin-bottom: 2rem; }
.mb-3 { margin-bottom: 3rem; }
.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.mt-3 { margin-top: 3rem; }

.p-1 { padding: 1rem; }
.p-2 { padding: 2rem; }
.p-3 { padding: 3rem; }

/* 响应式工具 */
.d-none { display: none; }
.d-block { display: block; }
.d-flex { display: flex; }

@media (max-width: 768px) {
    .d-md-none { display: none; }
    .d-md-block { display: block; }
    .d-md-flex { display: flex; }
}

/* 从old.css添加的额外组件样式 */
.alert {
    padding: 15px 20px;
    border-radius: 10px;
    margin: 15px 0;
    font-weight: 500;
}

.alert-success {
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.3);
    color: #065f46;
}

.alert-warning {
    background: rgba(245, 158, 11, 0.1);
    border: 1px solid rgba(245, 158, 11, 0.3);
    color: #92400e;
}

.alert-danger {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #991b1b;
}

.badge {
    display: inline-block;
    padding: 5px 12px;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
}

.badge-primary {
    background: var(--primary);
    color: white;
}

.badge-secondary {
    background: var(--secondary);
    color: white;
}

.badge-success {
    background: var(--success);
    color: white;
}

.progress {
    height: 10px;
    background: var(--neutral);
    border-radius: 5px;
    overflow: hidden;
    margin: 15px 0;
}

.progress-bar {
    height: 20px;
    background: var(--success);;
    border-radius: 5px;
    transition: width 0.5s ease;
}

/* 加载动画 */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* 确保所有页面都有平滑的过渡效果 */
* {
    transition: color 0.3s ease, background-color 0.3s ease, border-color 0.3s ease;
}

/* 打印样式 */
@media print {
    .no-print {
        display: none !important;
    }
    
    body {
        background: white !important;
        color: black !important;
    }
    
    .card {
        box-shadow: none !important;
        border: 1px solid #ddd !important;
    }
}