:root {
    --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: #0a2463;
    --primary-light: #3e92cc;
    --secondary: #2dc7ff;
    --accent: #d4af37;
    --accent-dark: #b8941f;
    --neutral-light: #f8fafc;
    --neutral: #e2e8f0;
    --neutral-dark: #94a3b8;
    --text-primary: #1e293b;
    --text-secondary: #64748b;
    --success: #10b981;
    --warning: #f59e0b;
    --error: #ef4444;
    --card-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    --card-shadow-hover: 0 20px 40px rgba(0, 0, 0, 0.12);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Montserrat', 'Segoe UI', sans-serif;
}

body {
    background: linear-gradient(135deg, var(--bg-light) 0%, #FFFFFF 100%);
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
    padding-bottom: 90px; /* 从old.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::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg, var(--yellow), var(--blue), var(--red));
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.2);
}

.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;
}

/* 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));
}

.balance-amount {
    font-size: 2.8rem;
    font-weight: 800;
    margin: 10px 0;
    color: var(--blue);
    position: relative;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.balance-label {
    font-size: 1rem;
    color: var(--text-dark);
    position: relative;
    font-weight: 600;
}

.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 {
    padding: 14px 28px;
    border-radius: 50px;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: none;
    font-size: 1rem;
    min-width: 140px;
}

.btn-primary {
    background: linear-gradient(135deg, var(--yellow), #FFD43B);
    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);
}

/*.btn:hover {*/
/*    transform: translateY(-5px) scale(1.05);*/
/*    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);*/
/*}*/

/* 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 {
    margin-bottom: 25px;
    padding-left: 20px;
    border-left: 5px solid var(--yellow);
}

.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: 15px;
    margin: 20px;
}

.product-detail {
    display: flex;
    flex-direction: column;
    padding: 10px;
    background: rgba(252, 209, 22, 0.1);
    border-radius: 10px;
}

.product-detail label {
    font-size: 0.8rem;
    color: var(--text-dark);
    margin-bottom: 5px;
    font-weight: 600;
}

.product-detail span {
    font-size: 1rem;
    font-weight: 700;
    color: var(--blue);
}

/* 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-group {
    margin-bottom: 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);
}

.login-btn:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(206, 17, 38, 0.5);
}

.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 */
.page {
    display: none;
    animation: slideIn 0.5s ease;
}

.page.active {
    display: block;
}

@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-bar {
    height: 10px;
    background-color: #E5E7EB;
    border-radius: 5px;
    overflow: hidden;
    margin: 15px 0;
}

.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);
    position: relative;
    text-align: center;
}

.close-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(0, 0, 0, 0.2);
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.3s ease;
}

.close-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: rotate(90deg);
}

.subtitle {
    font-size: 16px;
    margin-bottom: 10px;
    font-weight: 500;
}

.rewards {
    background: #d2d2d2;
    border-radius: 10px;
    margin-top: 10px;
    backdrop-filter: blur(5px);
}

.reward-item {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

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

.views {
    font-weight: 600;
}

.amount {
    font-weight: 700;
    color: var(--secondary);
}

.terms {
    text-align: left;
    padding: 15px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 8px;
    font-size: 14px;
}

.terms h3 {
    margin-bottom: 10px;
    font-size: 10px;
}

.terms ul {
    list-style-type: none;
    padding-left: 3px;
}

.terms li {
    margin-bottom: 4px;
    position: relative;
    padding-left: 20px;
}

.terms li:before {
    content: "•";
    position: absolute;
    left: 0;
    color: var(--secondary);
    font-size: 10px;
}

.claim-btn {
    background: linear-gradient(135deg, var(--primary-light), var(--secondary));
    color: #fff;
    border: none;
    padding: 12px 25px;
    border-radius: 30px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
}

.claim-btn:hover {
    background: #ffd700;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* Header & Navigation */
.flex_left {
    background:  rgb(255 255 255 / 50%);
    padding:15px;
    display: flex;
    justify-content: left;
}

.app-header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(15px);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 18px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--neutral);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

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

.logo-icon {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 20px;
}

.logo-text {
    font-family: 'DM Serif Display', serif;
    font-weight: 700;
    font-size: 24px;
    color: var(--primary);
}

.header-actions {
    display: flex;
    gap: 16px;
}

.header-icon {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: var(--neutral-light);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 18px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.header-icon:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-2px);
}

/* 顶部返回样式 */
.common_card {
    background: #fff;
    border-radius: 14px 14px 14px 14px;
    padding: 15px;
    margin-bottom: 20px;
}

.common_card .common_card_content {
    /*display: flex;*/
    /*margin: 10px 0px 10px 20px;*/
    border-radius: 16px 16px 16px 16px;
}

.common_header {
    background: var(--yellow);
    height: 60px;
    position: relative;
    width: 100%;
    border: none;
}

.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:1px;
    left:-45px;
}

.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;
}

/* Bottom Navigation */
.nav-bottom {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    display: flex;
    justify-content: space-around;
    padding: 14px 10px;
    z-index: 1000;
    border-top: 1px solid var(--neutral);
    box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.05);
}

/* 产品详情 */
.product_details_card {
    position: relative;
    display: block;
    background: #fff;
    border-radius: 16px 16px 16px 16px;
    padding: 20px;
    margin: 15px;
}

.product_details_card .lianjie {
    width: 4px;height: 40px;
}

.product_details_card .lianjie_left {
    position: absolute;
    top: -30px;
    left: 30px;
}

.product_details_card .lianjie_right {
    position: absolute;
    top: -30px;
    right: 30px;
}

.common_card .lianjie {
    width: 4px;height: 40px;
}

.common_card .lianjie_left {
    position: absolute;
    top: -30px;
    left: 30px;
}

.common_card .lianjie_right {
    position: absolute;
    top: -30px;
    right: 30px;
}

.product_details_card .product_details_item {
    display: flex;
    justify-content: space-between;
    padding: 15px 0;
    border-bottom: 1px solid #F3F3F3;
}

.product_details_card .product_details_order {
    border-bottom: 1px solid #EAEAEA;
}

.product_details_card .buy_btn {
    background: #32a0dc;
    box-shadow: 0px 4px 10px 0px rgba(36,165,144,0.3);
    border-radius: 100px 100px 100px 100px;
    font-family: Arial, Arial;
    font-weight: 700;
    font-size: 18px;
    color: #FFFFFF;
}

.pro-detail-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.pro-detail-head {
    background: #657ae6;
    color: white;
    padding: 20px 0;
    text-align: center;
    border-radius: 10px 10px 0 0;
}

.product-title {
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 5px;
}

.product-subtitle {
    font-size: 16px;
    opacity: 0.9;
}

.main-content {
    /*display: flex;*/
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 20px;
}

.investment-card {
    flex: 1;
    background: white;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    padding: 25px;
    text-align: center;
}

.section-title {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 20px;
    color: var(--primary);
    border-bottom: 2px solid var(--neutral);
    padding-bottom: 10px;
}

.detail-item {
    margin-bottom: 15px;
    display: flex;
    justify-content: space-between;
    border-bottom: 1px dashed var(--neutral);
    padding-bottom: 10px;
}

.detail-label {
    font-weight: 500;
    color: var(--text-secondary);
}

.detail-value {
    font-weight: 600;
    color: var(--primary);
}

.highlight {
    color: var(--accent);
    font-weight: bold;
}

.investment-amount {
    font-size: 32px;
    font-weight: bold;
    color: var(--primary);
    margin: 20px 0;
}

.profit-display {
    background: var(--neutral-light);
    border-radius: 8px;
    padding: 15px;
    margin: 20px 0;
}

.profit-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
}

.btn-invest {
    background: var(--accent);
    color: white;
    border: none;
    padding: 15px 30px;
    font-size: 18px;
    font-weight: 600;
    border-radius: 50px;
    cursor: pointer;
    width: 100%;
    transition: all 0.3s ease;
}

.btn-invest:hover {
    background: #2ab68b;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.features {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-top: 30px;
}

.feature {
    flex: 1;
    min-width: 200px;
    background: var(--neutral-light);
    padding: 15px;
    border-radius: 8px;
    text-align: center;
}

.feature-icon {
    font-size: 24px;
    color: var(--primary);
    margin-bottom: 10px;
}

/* Balance Card */
.balance-card {
    background:#04192a;
    border-radius: 24px;
    padding: 24px;
    margin-top: 24px;
    box-shadow: var(--card-shadow);
    position: relative;
    overflow: hidden;
    color: white;
}

.balance-card::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 200%;
    background: linear-gradient(transparent, rgba(255, 255, 255, 0.1), transparent);
    transform: rotate(30deg);
    animation: shine 3s infinite;
}

@keyframes shine {
    0% { right: -50%; }
    100% { right: 150%; }
}

.balance-actions {
    display: flex;
    gap: 12px;
}

.balance-btn {
    flex: 1;
    padding: 12px 16px;
    border-radius: 14px;
    font-weight: 600;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.deposit-btn {
    background: white;
    color: var(--primary);
    border: none;
    box-shadow: 0 6px 16px rgba(255, 255, 255, 0.25);
}

.withdraw-btn {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

/* Section Headers */
.section-header {
    padding-left: 00px ;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 20px 0 0 24px;
}

.view-all {
    color: var(--primary-light);
    font-size: 14px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 4px;
}

/*弹窗相关*/

.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: var(--yellow);
    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;
}

/* Investment Cards */
.investment-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
}

.investment-card {
    margin: 20px;
    background: white;
    border-radius: 24px;
    padding: 24px;
    box-shadow: var(--card-shadow);
    transition: all 0.4s ease;
    border: 1px solid var(--neutral);
    position: relative;
    overflow: hidden;
}

.investment-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 6px;
    background: linear-gradient(90deg, var(--primary-light), var(--secondary));
}

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

.investment-badge {
    position: absolute;
    top: 18px;
    right: 18px;
    background: var(--neutral-light);
    color: white;
    font-size: 12px;
    font-weight: 600;
    /*padding: 6px 14px;*/
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(212, 175, 55, 0.3);
}

.investment-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 20px;
}

.investment-icon {
    width: 54px;
    height: 54px;
    border-radius: 16px;
    background: linear-gradient(135deg, var(--primary-light), var(--secondary));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: white;
    box-shadow: 0 6px 18px rgba(62, 146, 204, 0.3);
}

.investment-title-container {
    flex: 1;
}

.investment-title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 4px;
    color: var(--primary);
    font-family: 'DM Serif Display', serif;
}

.investment-subtitle {
    font-size: 14px;
    color: var(--text-secondary);
}

.investment-price {
    font-size: 26px;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--accent-dark);
    display: flex;
    align-items: center;
    gap: 8px;
}

.investment-details {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin-bottom: 24px;
}

.investment-detail {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.detail-label {
    font-size: 12px;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 6px;
}

.detail-label i {
    font-size: 14px;
    color: var(--primary-light);
}

.detail-value {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
}

.invest-btn {
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: white;
    border: none;
    padding: 16px 24px;
    border-radius: 16px;
    font-weight: 600;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 8px 20px rgba(10, 36, 99, 0.25);
}

.invest-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 25px rgba(10, 36, 99, 0.35);
}

/* Community Stats */
.community-stats-index {
    display: flex;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin:0px 24px 0 24px;
}

.stat-card-index {
    width: 50%;
    background: white;
    border-radius: 20px;
    padding: 20px;
    text-align: center;
    box-shadow: var(--card-shadow);
    border: 1px solid var(--neutral);
    transition: all 0.3s ease;
}

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

.community-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin:0px 24px 0 24px;
}

.stat-card {
    background: white;
    border-radius: 20px;
    padding: 20px;
    text-align: center;
    box-shadow: var(--card-shadow);
    border: 1px solid var(--neutral);
    transition: all 0.3s ease;
}

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

.stat-icon {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--primary-light), var(--secondary));
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 12px;
    color: white;
    font-size: 20px;
}

.stat-value {
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 4px;
    color: var(--primary);
}

.stat-label {
    font-size: 13px;
    color: var(--text-secondary);
}

/* Tasks */
.tasks-container {
    padding: 0 8px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.task-card {
    background: #fff;
    border-radius: 16px;
    padding: 1.5rem;
    border: 1px solid var(--glass-border);
    transition: all 0.3s;
}

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

.task-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.task-icon {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    background: var(--gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.task-progress {
    height: 8px;
    background: #ccc;
    border-radius: 4px;
    overflow: hidden;
    margin: 1rem 0;
}

.progress-bar {
    height: 100%;
    background: var(--gradient);
    border-radius: 4px;
    width: 0;
    transition: width 1s ease-in-out;
}
.task-list {
    margin: 24px;
}

.task-item {
    background: white;
    border-radius: 20px;
    padding: 20px;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 18px;
    box-shadow: var(--card-shadow);
    border: 1px solid var(--neutral);
    transition: all 0.3s ease;
}

.task-item:hover {
    transform: translateY(-3px);
    box-shadow: var(--card-shadow-hover);
}

.task-icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    color: white;
    flex-shrink: 0;
}

.task-content {
    flex: 1;
}

.task-title {
    font-weight: 600;
    margin-bottom: 6px;
    font-size: 16px;
    color: var(--text-primary);
}

.task-desc {
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 10px;
}

.task-reward {
    color: var(--accent);
    font-weight: 600;
    font-size: 15px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.task-btn {
    width: 100%;
    text-align: center;
    background: var(--accent);
    color: white;
    border: none;
    padding: 10px 18px;
    border-radius: 14px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(10, 36, 99, 0.25);
}

.task-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(10, 36, 99, 0.35);
}

/* 个人中心 */
.password_item{
    display: block;
    height: 50px;
    background: var(--accent);
    border-radius: 6px 6px 6px 6px;
    padding: 5px;
    margin-bottom:10px;
    line-height: 35px;
    font-family: Arial, Arial;
    font-weight: 700;
    font-size: 16px;
    color: #444444;
}
.profile-card {
    display: flex;
    flex-wrap: wrap;
    background: white;
    border-radius: 24px;
    padding: 28px;
    margin: 10px;
    text-align: center;
    box-shadow: var(--card-shadow);
    border: 1px solid var(--neutral);
    position: relative;
}

.profile-header {
    position: relative;
    margin-top: 24px;
}

.profile-avatar {
    width: 96px;
    height: 96px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    margin: 0 auto 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
    color: white;
    border: 4px solid white;
    box-shadow: 0 8px 24px rgba(10, 36, 99, 0.2);
}

.profile-verified {
    position: absolute;
    bottom: 85px;
    right: calc(50% - 60px);
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: var(--success);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 14px;
    border: 2px solid white;
}

.profile-name {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 6px;
    color: var(--primary);
    font-family: 'DM Serif Display', serif;
}

.profile-join-date {
    color: var(--text-dark);
    text-align: left;
    padding: 0px 0px 0px 35px;
    font-size: 15px;
}

.profile-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-top: 28px;
}

.profile-stat {
    background: var(--neutral-light);
    padding: 18px;
    border-radius: 18px;
    text-align: center;
}

.profile-stat-value {
    font-size: 22px;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 6px;
}

.profile-stat-label {
    font-size: 13px;
    color: var(--text-secondary);
}
/* Animations */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.animate {
    animation: fadeIn 0.5s ease forwards;
}

.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.2s; }
.delay-3 { animation-delay: 0.3s; }
.delay-4 { animation-delay: 0.4s; }

/* Page-specific styles */
#home-page .investment-card:nth-child(1)::before {
    background: linear-gradient(90deg, var(--primary-light), var(--secondary));
}

#home-page .investment-card:nth-child(2)::before {
    background: linear-gradient(90deg, var(--accent), var(--accent-dark));
}

#invest-page .investment-card:nth-child(1) .investment-icon {
    background: linear-gradient(135deg, var(--primary-light), var(--secondary));
}

#invest-page .investment-card:nth-child(2) .investment-icon {
    background: linear-gradient(135deg, var(--accent), var(--accent-dark));
}

#invest-page .investment-card:nth-child(3) .investment-icon {
    background: linear-gradient(135deg, var(--success), #059669);
}

#club-page .stat-card:nth-child(odd) .stat-icon {
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
}

#club-page .stat-card:nth-child(even) .stat-icon {
    background: linear-gradient(135deg, var(--accent), var(--accent-dark));
}

#tasks-page .task-item:nth-child(1) .task-icon {
    background: linear-gradient(135deg, var(--primary-light), var(--secondary));
}

#tasks-page .task-item:nth-child(2) .task-icon {
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
}

#tasks-page .task-item:nth-child(3) .task-icon {
    background: linear-gradient(135deg, var(--accent), var(--accent-dark));
}

#profile-page .profile-card {
    background: linear-gradient(135deg, white, var(--neutral-light));
}

/* New Dynamic Elements */
.floating {
    animation: floating 3s ease-in-out infinite;
}

@keyframes floating {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
    100% { transform: translateY(0px); }
}

.pulse {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

.progress-bar {
    height: 6px;
    background: rgba(10, 36, 99, 0.1);
    border-radius: 3px;
    overflow: hidden;
    margin: 12px 0;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-light), var(--secondary));
    border-radius: 3px;
    width: 0%;
    transition: width 1.5s ease;
}

.live-data {
    position: relative;
    overflow: hidden;
}

/*.live-data::after {*/
/*    content: '';*/
/*    position: absolute;*/
/*    top: 0;*/
/*    right: 0;*/
/*    width: 8px;*/
/*    height: 8px;*/
/*    background: var(--success);*/
/*    border-radius: 50%;*/
/*    animation: pulse 2s infinite;*/
/*}*/

.rotating-icon {
    animation: rotate 10s linear infinite;
}

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

.glow {
    box-shadow: 0 0 20px rgba(62, 146, 204, 0.3);
    animation: glow 2s ease-in-out infinite alternate;
}

@keyframes glow {
    from { box-shadow: 0 0 20px rgba(62, 146, 204, 0.3); }
    to { box-shadow: 0 0 30px rgba(62, 146, 204, 0.5); }
}

.micro-interaction {
    transition: all 0.3s ease;
}

.micro-interaction:hover {
    transform: translateY(-2px);
}

.notification-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    width: 8px;
    height: 8px;
    background: var(--error);
    border-radius: 50%;
}