* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

main {
    flex: 1;
}

header {
    background-color: #fff;
    box-shadow: 0 2px 4px rgba(0,0,0,0.08);
    padding: 0;
    z-index: 100;
    width: 100%;
}

.logo-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    margin: 0;
    padding: 0.75rem 1rem;
    background-color: #ffffff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    position: relative;
    overflow: hidden;
    border-radius: 8px;
}




.logo {
    width: auto;
    height: 60px;
    margin: 0;
    transition: transform 0.3s ease;
}

.logo:hover {
    transform: scale(1.05);
}

.logo-container h1 {
    font-size: 1.8rem;
    color: #21A576;
    flex-grow: 1;
    font-weight: 700;
    text-shadow: 0 1px 2px rgba(0,0,0,0.1);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.user-section {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.login-btn {
    background-color: #21A576;
    color: #fff;
    border: none;
    padding: 0.6rem 1.2rem;
    border-radius: 4px;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.3s ease;
    min-height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.login-btn:hover {
    background-color: #1A8A60;
}

.user-info {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.75rem;
    white-space: nowrap;
}

.user-details {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.user-buttons {
    display: flex;
    gap: 0.75rem;
}

.user-buttons button {
    flex: 1;
    min-width: 100px;
}

.username-display {
    font-weight: bold;
    color: #2c3e50;
    font-size: 0.9rem;
    white-space: nowrap;
}

.bbc-coins {
    background-color: #21A576;
    color: #fff;
    padding: 0.25rem 0.5rem;
    border-radius: 12px;
    font-size: 0.9rem;
    font-weight: bold;
    white-space: nowrap;
}

.logout-btn,
.order-btn,
.recharge-btn,
.profile-btn {
    border: none;
    padding: 0.4rem 0.8rem;
    border-radius: 4px;
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    min-height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 80px;
}

.logout-btn {
    background-color: #e74c3c;
    color: #fff;
}

.logout-btn:hover {
    background-color: #c0392b;
}

.order-btn {
    background-color: #3498db;
    color: #fff;
}

.order-btn:hover {
    background-color: #2980b9;
}

.recharge-btn {
    background-color: #f39c12;
    color: #fff;
}

.recharge-btn:hover {
    background-color: #e67e22;
}

.profile-btn {
    background-color: #9b59b6;
    color: #fff;
}

.profile-btn:hover {
    background-color: #8e44ad;
}

/* 表单行样式 */
.form-row {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.form-row .form-group {
    flex: 1;
    margin-bottom: 0;
}

/* 移动端设备上的表单行适配 */
@media (max-width: 768px) {
    .form-row {
        flex-direction: column;
        gap: 1rem;
    }
    
    .form-row .form-group {
        margin-bottom: 0;
    }
    
    /* 头部区域适配 */
    .logo-container {
        padding: 0.75rem 1rem;
        flex-wrap: wrap;
        gap: 0.75rem;
    }
    
    .logo-container h1 {
        font-size: 1.2rem;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    
    .logo {
        height: 45px;
    }
    
    .user-section {
        gap: 0.5rem;
    }
    
    .user-info {
        flex-wrap: wrap;
        gap: 0.5rem;
    }
    
    .logout-btn,
    .order-btn,
    .recharge-btn,
    .profile-btn {
        font-size: 0.8rem;
        padding: 0.4rem 0.6rem;
        min-width: 70px;
    }
    
    .login-btn {
        padding: 0.5rem 1rem;
        font-size: 0.85rem;
    }
    
    .bbc-coins {
        padding: 0.2rem 0.4rem;
        font-size: 0.8rem;
    }
}

/* 模态框样式 */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.4);
}

.modal-content {
    background-color: #fff;
    margin: 10% auto;
    padding: 30px;
    border: 1px solid #ddd;
    width: 80%;
    max-width: 500px;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.15);
    animation: slideIn 0.4s ease-out;
}

/* PC端优化 */
@media (min-width: 768px) {
    .modal-content {
        max-width: 480px;
        margin: 8% auto;
        padding: 30px;
    }
}

/* 滑动效果动画 */
@keyframes slideIn {
    0% {
        transform: translateY(-30px);
        opacity: 0;
    }
    100% {
        transform: translateY(0);
        opacity: 1;
    }
}

/* 果冻效果动画 */
@keyframes jelly {
    0% {
        transform: scale(0.8) translateY(50px);
        opacity: 0;
    }
    30% {
        transform: scale(1.1) translateY(-10px);
        opacity: 1;
    }
    50% {
        transform: scale(0.95) translateY(5px);
    }
    70% {
        transform: scale(1.02) translateY(-2px);
    }
    100% {
        transform: scale(1) translateY(0);
        opacity: 1;
    }
}

.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.close:hover,
.close:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}

.modal-content h2 {
    margin-top: 0;
    color: #21A576;
    text-align: center;
    margin-bottom: 2rem;
    font-size: 1.8rem;
    font-weight: 700;
    letter-spacing: -0.5px;
}

/* PC端标题优化 */
@media (min-width: 768px) {
    .modal-content h2 {
        font-size: 1.5rem;
        margin-bottom: 1.5rem;
    }
}




main {
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 0;
}

.product-section {
    margin-bottom: 2rem;
    padding: 0 1rem;
}

.product-section h2 {
    font-size: 1.5rem;
    margin-top: 3rem;
    margin-bottom: 1.5rem;
    color: #2c3e50;
    text-align: center;
}

.products-grid {
    display: flex;
    gap: 1.5rem;
    overflow-x: auto;
    padding: 1rem 0;
    justify-content: center;
}

.product-card {
    flex: 0 0 300px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    padding: 1.5rem;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-top: 3px solid #21A576;
}

@media (max-width: 768px) {
    .products-grid {
        flex-direction: column;
        align-items: center;
    }
    
    .product-card {
        flex: 1 1 100%;
        max-width: 300px;
    }
}

.product-card {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    padding: 1.5rem;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-top: 3px solid #21A576;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.product-card h3 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    color: #2c3e50;
    font-weight: 600;
}

.price {
    font-size: 1.5rem;
    font-weight: bold;
    color: #21A576;
    margin-bottom: 1rem;
}

.description {
    color: #7f8c8d;
    margin-bottom: 1.5rem;
}

.buy-btn {
    background-color: #21A576;
    color: #fff;
    border: none;
    padding: 0.8rem 1.5rem;
    border-radius: 4px;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.3s ease;
    display: inline-block;
    text-decoration: none;
}

.buy-btn:hover {
    background-color: #1A8A60;
}

.buy-btn:active {
    transform: translateY(0);
}

.order-section {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.order-section h2 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: #2c3e50;
    text-align: center;
}

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

.form-group label {
    display: block;
    margin-bottom: 0.75rem;
    color: #333;
    font-weight: 600;
    font-size: 1rem;
}

.form-group input {
    width: 100%;
    padding: 1rem 1.25rem;
    border: 2px solid #e1e5e9;
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background-color: #f8f9fa;
}

.form-group input:focus {
    outline: none;
    border-color: #21A576;
    box-shadow: 0 0 0 3px rgba(33, 165, 118, 0.1);
    background-color: #fff;
}

/* PC端表单优化 */
@media (min-width: 768px) {
    .form-group {
        margin-bottom: 1.25rem;
    }
    
    .form-group input {
        padding: 1rem 1.25rem;
        font-size: 1rem;
        border-radius: 8px;
    }
}

.submit-btn {
    background-color: #21A576;
    color: #fff;
    border: none;
    padding: 1rem 1.5rem;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    margin-top: 1.5rem;
    box-shadow: 0 4px 12px rgba(33, 165, 118, 0.2);
}

.submit-btn:hover {
    background-color: #1a8f63;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(33, 165, 118, 0.3);
}

.submit-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(33, 165, 118, 0.2);
}

/* PC端按钮优化 */
@media (min-width: 768px) {
    .submit-btn {
        padding: 1rem 1.25rem;
        font-size: 1rem;
        border-radius: 8px;
        margin-top: 1.5rem;
    }
}

/* 验证码输入区域样式 */
.verification-code-input {
    display: block;
}

.verification-code-input input {
    width: 100%;
    margin-bottom: 12px;
}

.verification-code-input .submit-btn {
    width: 100%;
    margin-top: 0;
    padding: 0.875rem 1rem;
    font-size: 0.95rem;
    white-space: nowrap;
    text-overflow: ellipsis;
    overflow: hidden;
}

/* PC端验证码输入区域优化 */
@media (min-width: 768px) {
    .verification-code-input input {
        margin-bottom: 16px;
    }
    
    .verification-code-input .submit-btn {
        padding: 1rem 1.25rem;
        font-size: 1rem;
    }
}

/* 登录链接样式 */
.auth-link {
    text-align: center;
    margin: 20px 0;
    font-size: 0.95rem;
    color: #6c757d;
}

.auth-link a {
    color: #21A576;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.3s ease;
    margin-left: 4px;
}

.auth-link a:hover {
    color: #1a8f63;
    text-decoration: underline;
}

/* PC端登录链接优化 */
@media (min-width: 768px) {
    .auth-link {
        margin: 16px 0;
        font-size: 0.9rem;
    }
    
    .auth-link a {
        margin-left: 4px;
        font-size: 0.95rem;
    }
}

.success-section {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    padding: 1.5rem;
    text-align: center;
}

.success-section h2 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: #21A576;
}

.success-card {
    background-color: #f9f9f9;
    border-radius: 8px;
    padding: 1.5rem;
    border-left: 4px solid #21A576;
}

.order-info {
    margin: 0.5rem 0;
    font-size: 1.1rem;
}

.verification-code {
    margin: 1.5rem 0;
    font-size: 1.2rem;
    font-weight: bold;
}

.verification-code span {
    background-color: #f0f0f0;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    color: #e74c3c;
}

.tips {
    color: #7f8c8d;
    margin-bottom: 1.5rem;
}

.back-btn {
    background-color: #95a5a6;
    color: #fff;
    border: none;
    padding: 0.8rem 1.5rem;
    border-radius: 4px;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.back-btn:hover {
    background-color: #7f8c8d;
}

footer {
    background-color: #21A576;
    color: #fff;
    text-align: center;
    padding: 1.5rem;
    margin-top: 2rem;
    position: relative;
    bottom: 0;
    width: 100%;
}

footer p {
    margin: 0;
    font-size: 1rem;
    font-weight: 500;
}

@media (max-width: 768px) {
    .logo-container h1 {
        font-size: 1.4rem;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    
    .logo {
        width: auto;
        height: 45px;
    }
    
    .products-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    /* 头部区域适配 */
    .logo-container {
        flex-wrap: wrap;
        gap: 0.3rem;
        align-items: center;
    }
    
    .user-section {
        width: 100%;
        justify-content: center;
        margin-top: 0.3rem;
    }
    
    .user-info {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 0.5rem;
        white-space: nowrap;
    }

    .user-details {
        display: flex;
        align-items: center;
        gap: 0.5rem;
    }

    .user-buttons {
        display: flex;
        gap: 0.5rem;
    }

    .user-buttons button {
        flex: 1;
        min-width: 80px;
    }
    
    /* 按钮适配 */
    .login-btn,
    .logout-btn,
    .buy-btn,
    .submit-btn,
    .back-btn {
        padding: 0.8rem 1.2rem;
        font-size: 0.9rem;
        min-height: 44px;
        min-width: 100px;
        border-radius: 6px;
        touch-action: manipulation;
        transition: all 0.2s ease;
    }
    
    /* 商品卡片适配 */
    .product-card {
        padding: 1.2rem;
        margin: 0 0.5rem;
        border-radius: 10px;
    }
    
    .product-card h3 {
        font-size: 1.2rem;
        margin-bottom: 0.8rem;
    }
    
    .price {
        font-size: 1.4rem;
        margin-bottom: 1rem;
    }
    
    .description {
        font-size: 0.95rem;
        line-height: 1.5;
        margin-bottom: 1.2rem;
    }
    
    /* 表单适配 */
    .form-group {
        margin-bottom: 1.2rem;
    }
    
    .form-group label {
        font-size: 0.95rem;
        margin-bottom: 0.5rem;
        display: block;
    }
    
    .form-group input {
        padding: 0.9rem;
        font-size: 1rem;
        border-radius: 6px;
        border: 1px solid #ddd;
        min-height: 48px;
        width: 100%;
        box-sizing: border-box;
    }
    
    /* 成功页面适配 */
    .success-card {
        padding: 1.5rem;
        margin: 0 0.5rem;
        border-radius: 10px;
    }
    
    /* 模态框适配 */
    .modal-content {
        margin: 25% auto;
        width: 92%;
        max-width: 350px;
        padding: 1.5rem;
        border-radius: 10px;
    }
    
    /* 标题字体大小适配 */
    .product-section h2,
    .order-section h2,
    .success-section h2 {
        font-size: 1.3rem;
        margin-bottom: 1.2rem;
        text-align: center;
    }
    
    /* 余额显示适配 */
    .bbc-coins {
        font-size: 0.85rem;
        padding: 0.3rem 0.6rem;
        border-radius: 15px;
    }
    
    /* 主内容区域适配 */
    main {
        padding: 0 0.5rem;
        margin: 1.5rem auto;
    }
    
    /* 页脚适配 */
    footer {
        padding: 1.2rem;
        font-size: 0.9rem;
    }
}

/* 针对更小屏幕的适配 */
@media (max-width: 480px) {
    .logo-container h1 {
        font-size: 1.2rem;
        text-align: center;
    }
    
    .logo {
        width: auto;
        height: 40px;
        margin-right: 0.3rem;
    }
    
    .user-info {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 0.3rem;
        width: 100%;
        justify-content: center;
    }
    
    .user-details {
        display: flex;
        align-items: center;
        gap: 0.3rem;
    }
    
    .user-buttons {
        display: flex;
        gap: 0.3rem;
        width: 100%;
        max-width: 300px;
    }
    
    .user-buttons button {
        flex: 1;
        min-width: 70px;
    }
    
    .user-info span {
        font-size: 0.8rem;
    }
    
    .recharge-btn {
        padding: 0.3rem 0.6rem;
        font-size: 0.8rem;
        min-height: 36px;
        margin: 0;
    }
    
    .order-btn {
        padding: 0.3rem 0.6rem;
        font-size: 0.8rem;
        min-height: 36px;
        margin: 0;
    }
    
    .logout-btn {
        padding: 0.3rem 0.6rem;
        font-size: 0.8rem;
        min-height: 36px;
        margin: 0;
    }
    
    .profile-btn {
        padding: 0.3rem 0.6rem;
        font-size: 0.8rem;
        min-height: 36px;
        margin: 0;
    }
    
    .product-card {
        padding: 1.5rem;
        margin: 0.5rem 0;
        width: 100%;
        max-width: 300px;
    }
    
    .product-card h3 {
        font-size: 1.2rem;
        margin-bottom: 0.8rem;
    }
    
    .price {
        font-size: 1.4rem;
        margin-bottom: 1rem;
    }
    
    .verification-code {
        font-size: 1rem;
        word-break: break-all;
    }
    
    .login-btn,
    .buy-btn,
    .submit-btn,
    .back-btn {
        padding: 0.9rem 1.2rem;
        font-size: 1rem;
        min-height: 48px;
        width: 100%;
        margin: 0.5rem 0;
    }
    
    .form-group input,
    .form-group select,
    .form-group textarea {
        padding: 0.9rem;
        font-size: 1rem;
        min-height: 48px;
        width: 100%;
        box-sizing: border-box;
    }
    
    .form-group textarea {
        min-height: 120px;
    }
    
    footer {
        padding: 1.2rem;
        font-size: 0.9rem;
        text-align: center;
    }
    
    /* 头部余额显示适配 */
    #userInfo {
        font-size: 0.9rem;
        width: 100%;
        display: flex;
        flex-direction: column;
        align-items: flex-end;
    }
    
    /* 模态框适配 */
    .modal-content {
        margin: 40% auto;
        padding: 1.5rem;
        width: 90%;
        max-width: 320px;
    }
    
    /* 商品描述适配 */
    .description {
        font-size: 0.95rem;
        line-height: 1.5;
        margin-bottom: 1.2rem;
    }
    
    /* 充值模态框适配 */
    #rechargeModal .modal-content {
        max-width: 320px;
    }
    
    #rechargeModal img {
        max-width: 250px;
        width: 100%;
    }
    
    #rechargeModal p {
        font-size: 0.95rem;
        line-height: 1.5;
    }
}

/* 针对非常小的屏幕（如 iPhone 5/SE） */
@media (max-width: 320px) {
    /* 头部区域优化 */
    .logo-container {
        flex-direction: column;
        align-items: center;
        gap: 0.5rem;
        padding: 0.75rem;
        background-color: #ffffff;
        box-shadow: 0 2px 8px rgba(0,0,0,0.08);
        border-radius: 0 0 12px 12px;
    }
    
    .logo-container h1 {
        font-size: 1.1rem;
        text-align: center;
        margin: 0;
        color: #21A576;
        font-weight: 700;
        text-shadow: 0 1px 2px rgba(0,0,0,0.1);
    }
    
    .logo {
        width: auto;
        height: 40px;
        transition: transform 0.3s ease;
    }
    
    .logo:hover {
        transform: scale(1.05);
    }
    
    .user-section {
        width: 100%;
        justify-content: center;
        margin-top: 0.5rem;
        width: 100%;
    }
    
    .user-info {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 0.5rem;
        width: 100%;
        padding: 0.5rem;
        background-color: #f8f9fa;
        border-radius: 12px;
        box-shadow: 0 2px 8px rgba(0,0,0,0.08);
        border: 1px solid #e9ecef;
    }

    .user-details {
        display: flex;
        align-items: center;
        gap: 0.5rem;
    }

    .user-buttons {
        display: flex;
        gap: 0.5rem;
        width: 100%;
        max-width: 300px;
    }

    .user-buttons button {
        flex: 1;
        min-width: 80px;
    }
    
    .user-info span {
        font-size: 0.95rem;
        text-align: center;
        font-weight: 500;
        color: #2c3e50;
    }
    
    .bbc-coins {
        font-size: 0.95rem;
        padding: 0.4rem 1rem;
        border-radius: 20px;
        background-color: #21A576;
        color: white;
        font-weight: 600;
        box-shadow: 0 2px 4px rgba(39, 174, 96, 0.3);
        transition: all 0.3s ease;
    }
    
    .bbc-coins:hover {
        transform: scale(1.05);
        box-shadow: 0 4px 8px rgba(39, 174, 96, 0.4);
    }
    
    /* 按钮优化 */
    .recharge-btn,
    .order-btn,
    .logout-btn,
    .profile-btn {
        padding: 0.4rem 0.8rem;
        font-size: 0.8rem;
        min-height: 36px;
        width: auto;
        margin: 0;
        border-radius: 8px;
        font-weight: 600;
        box-shadow: 0 4px 12px rgba(0,0,0,0.1);
        transition: all 0.3s ease;
        border: none;
        text-align: center;
        text-transform: uppercase;
        letter-spacing: 0.5px;
    }
    
    .recharge-btn {
        background-color: #f39c12;
        color: white;
    }
    
    .recharge-btn:hover {
        background-color: #e67e22;
        transform: translateY(-2px);
        box-shadow: 0 6px 16px rgba(243, 156, 18, 0.4);
    }
    
    .order-btn {
        background-color: #3498db;
        color: white;
    }
    
    .order-btn:hover {
        background-color: #2980b9;
        transform: translateY(-2px);
        box-shadow: 0 6px 16px rgba(52, 152, 219, 0.4);
    }
    
    .logout-btn {
        background-color: #e74c3c;
        color: white;
    }
    
    .logout-btn:hover {
        background-color: #c0392b;
        transform: translateY(-2px);
        box-shadow: 0 6px 16px rgba(231, 76, 60, 0.4);
    }
    
    .profile-btn {
        background-color: #9b59b6;
        color: white;
    }
    
    .profile-btn:hover {
        background-color: #8e44ad;
        transform: translateY(-2px);
        box-shadow: 0 6px 16px rgba(155, 89, 182, 0.4);
    }
    
    .login-btn {
        padding: 0.8rem 1.5rem;
        font-size: 0.95rem;
        min-height: 48px;
        border-radius: 12px;
        font-weight: 600;
        background-color: #21A576;
        color: white;
        border: none;
        box-shadow: 0 4px 12px rgba(39, 174, 96, 0.3);
        transition: all 0.3s ease;
        text-transform: uppercase;
        letter-spacing: 0.5px;
    }
    
    .login-btn:hover {
        background-color: #1A8A60;
        transform: translateY(-2px);
        box-shadow: 0 6px 16px rgba(39, 174, 96, 0.4);
    }
    
    /* 商品卡片优化 */
    .product-card {
        padding: 1.75rem;
        margin: 0.75rem 0;
        width: 100%;
        max-width: 280px;
        border-radius: 16px;
        box-shadow: 0 6px 20px rgba(0,0,0,0.12);
        border: 1px solid #e9ecef;
        transition: all 0.3s ease;
        background-color: #ffffff;
    }
    
    .product-card:hover {
        transform: translateY(-4px);
        box-shadow: 0 10px 28px rgba(0,0,0,0.15);
    }
    
    .product-card h3 {
        font-size: 1.15rem;
        margin-bottom: 1rem;
        color: #21A576;
        font-weight: 700;
        text-align: center;
        line-height: 1.3;
    }
    
    .price {
        font-size: 1.4rem;
        margin-bottom: 1.25rem;
        color: #21A576;
        font-weight: 700;
        text-align: center;
        text-shadow: 0 1px 2px rgba(39, 174, 96, 0.3);
    }
    
    .description {
        font-size: 0.95rem;
        line-height: 1.6;
        margin-bottom: 1.5rem;
        color: #495057;
        text-align: center;
        padding: 0 0.5rem;
    }
    
    .buy-btn {
        padding: 0.9rem 1.5rem;
        font-size: 0.95rem;
        min-height: 52px;
        width: 100%;
        margin: 0.75rem 0 0;
        border-radius: 12px;
        font-weight: 600;
        background-color: #21A576;
        color: white;
        border: none;
        box-shadow: 0 4px 12px rgba(39, 174, 96, 0.3);
        transition: all 0.3s ease;
        text-transform: uppercase;
        letter-spacing: 0.5px;
    }
    
    .buy-btn:hover {
        background-color: #1A8A60;
        transform: translateY(-3px);
        box-shadow: 0 8px 20px rgba(39, 174, 96, 0.4);
    }
    
    .buy-btn:active {
        transform: translateY(0);
        box-shadow: 0 4px 12px rgba(39, 174, 96, 0.3);
    }
    
    /* 表单元素优化 */
    .form-group {
        margin-bottom: 1.5rem;
    }
    
    .form-group label {
        font-size: 0.95rem;
        margin-bottom: 0.75rem;
        font-weight: 600;
        color: #2c3e50;
        display: block;
        text-align: left;
    }
    
    .form-group input,
    .form-group select,
    .form-group textarea {
        padding: 1rem;
        font-size: 0.95rem;
        min-height: 52px;
        width: 100%;
        border-radius: 12px;
        border: 2px solid #e9ecef;
        transition: all 0.3s ease;
        background-color: #ffffff;
        box-shadow: inset 0 2px 4px rgba(0,0,0,0.05);
    }
    
    .form-group input:focus,
    .form-group select:focus,
    .form-group textarea:focus {
        outline: none;
        border-color: #21A576;
        box-shadow: 0 0 0 4px rgba(39, 174, 96, 0.15);
        transform: translateY(-1px);
    }
    
    .form-group textarea {
        min-height: 140px;
        resize: vertical;
        line-height: 1.5;
    }
    
    /* 提交按钮优化 */
    .submit-btn,
    .back-btn {
        padding: 0.9rem 1.5rem;
        font-size: 0.95rem;
        min-height: 52px;
        width: 100%;
        margin: 0.75rem 0;
        border-radius: 12px;
        font-weight: 600;
        transition: all 0.3s ease;
        border: none;
        text-transform: uppercase;
        letter-spacing: 0.5px;
        box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    }
    
    .submit-btn {
        background-color: #21A576;
        color: white;
        box-shadow: 0 4px 12px rgba(39, 174, 96, 0.3);
    }
    
    .submit-btn:hover {
        background-color: #1A8A60;
        transform: translateY(-3px);
        box-shadow: 0 8px 20px rgba(39, 174, 96, 0.4);
    }
    
    .back-btn {
        background-color: #95a5a6;
        color: white;
    }
    
    .back-btn:hover {
        background-color: #7f8c8d;
        transform: translateY(-2px);
        box-shadow: 0 6px 16px rgba(149, 165, 166, 0.4);
    }
    
    /* 模态框优化 */
    .modal-content {
        margin: 50% auto;
        padding: 2rem;
        width: 95%;
        max-width: 280px;
        border-radius: 16px;
        box-shadow: 0 12px 32px rgba(0,0,0,0.25);
        animation: slide-up 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
        background-color: #ffffff;
        border: 1px solid #e9ecef;
    }
    
    @keyframes slide-up {
        from {
            opacity: 0;
            transform: translateY(50px) scale(0.9);
        }
        to {
            opacity: 1;
            transform: translateY(0) scale(1);
        }
    }
    
    .modal-content h2 {
        font-size: 1.35rem;
        margin-bottom: 1.75rem;
        color: #21A576;
        font-weight: 700;
        text-align: center;
        line-height: 1.3;
    }
    
    /* 充值模态框优化 */
    #rechargeModal .modal-content {
        text-align: center;
        padding: 2rem 1.5rem;
    }
    
    #rechargeModal img {
        max-width: 240px;
        width: 100%;
        border-radius: 12px;
        box-shadow: 0 8px 24px rgba(0,0,0,0.15);
        transition: all 0.3s ease;
        border: 2px solid #e9ecef;
    }
    
    #rechargeModal img:hover {
        transform: scale(1.02);
        box-shadow: 0 12px 32px rgba(0,0,0,0.2);
    }
    
    #rechargeModal p {
        font-size: 1rem;
        line-height: 1.6;
        margin-top: 1.75rem;
        color: #495057;
        font-weight: 500;
        padding: 0 0.5rem;
    }
    
    /* 价格明细优化 */
    .price-summary {
        padding: 1.5rem;
        margin-bottom: 2rem;
        border-radius: 16px;
        background-color: #f8f9fa;
        border-left: 4px solid #21A576;
        box-shadow: 0 4px 12px rgba(0,0,0,0.08);
        border: 1px solid #e9ecef;
    }
    
    .price-summary h3 {
        font-size: 1.15rem;
        margin-bottom: 1.25rem;
        color: #2c3e50;
        font-weight: 700;
        text-align: center;
    }
    
    .price-item {
        margin-bottom: 1rem;
        font-size: 0.95rem;
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 0.5rem 0;
        border-bottom: 1px solid #e9ecef;
    }
    
    .price-item:last-child {
        border-bottom: none;
    }
    
    .price-item span:first-child {
        color: #6c757d;
        font-weight: 500;
    }
    
    .price-item span:last-child {
        color: #2c3e50;
        font-weight: 600;
    }
    
    .price-total {
        margin-top: 1.5rem;
        padding-top: 1.5rem;
        border-top: 2px solid #e9ecef;
        display: flex;
        justify-content: space-between;
        align-items: center;
    }
    
    .price-total span:first-child {
        font-size: 1.05rem;
        font-weight: 700;
        color: #2c3e50;
    }
    
    .price-total span:last-child {
        font-size: 1.2rem;
        font-weight: 700;
        color: #21A576;
        text-shadow: 0 1px 2px rgba(39, 174, 96, 0.3);
    }
    
    /* 页脚优化 */
    footer {
        padding: 1.75rem;
        font-size: 0.9rem;
        text-align: center;
        background-color: #21A576;
        color: white;
        margin-top: 2.5rem;
        border-radius: 12px 12px 0 0;
        box-shadow: 0 -4px 12px rgba(39, 174, 96, 0.2);
    }
    
    footer p {
        margin: 0;
        font-weight: 600;
        line-height: 1.5;
    }
    
    /* 通用间距优化 */
    main {
        padding: 0 0.75rem;
        margin: 1.75rem auto;
        min-height: calc(100vh - 200px);
    }
    
    /* 表单行优化 */
    .form-row {
        flex-direction: column;
        gap: 1.5rem;
    }
    
    /* 响应式导航 */
    .user-info {
        position: relative;
        width: 100%;
    }
    
    /* 加载动画优化 */
    .loading {
        display: inline-block;
        width: 24px;
        height: 24px;
        border: 3px solid rgba(39, 174, 96, 0.3);
        border-radius: 50%;
        border-top-color: #21A576;
        animation: spin 1s ease-in-out infinite;
        margin: 0 0.5rem;
    }
    
    @keyframes spin {
        to {
            transform: rotate(360deg);
        }
    }
    
    /* 自定义确认弹窗优化 */
    .confirm-modal-content {
        margin: 50% auto;
        padding: 2rem;
        width: 95%;
        max-width: 280px;
        border-radius: 16px;
        box-shadow: 0 12px 32px rgba(0,0,0,0.25);
        animation: slide-up 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
        background-color: #ffffff;
        border: 1px solid #e9ecef;
    }
    
    .confirm-modal h3 {
        font-size: 1.2rem;
        margin-bottom: 1.5rem;
        color: #21A576;
        font-weight: 700;
        text-align: center;
    }
    
    .confirm-modal p {
        font-size: 1rem;
        line-height: 1.6;
        margin-bottom: 2rem;
        color: #495057;
        font-weight: 500;
        text-align: center;
        padding: 0 0.5rem;
    }
    
    .confirm-modal-buttons {
        display: flex;
        gap: 1rem;
        justify-content: center;
        flex-direction: column;
    }
    
    .confirm-btn,
    .cancel-btn {
        padding: 0.8rem 1.5rem;
        border: none;
        border-radius: 12px;
        font-size: 0.95rem;
        cursor: pointer;
        transition: all 0.3s ease;
        font-weight: 600;
        min-height: 48px;
        text-transform: uppercase;
        letter-spacing: 0.5px;
        box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    }
    
    .confirm-btn {
        background-color: #e74c3c;
        color: white;
    }
    
    .confirm-btn:hover {
        background-color: #c0392b;
        transform: translateY(-2px);
        box-shadow: 0 6px 16px rgba(231, 76, 60, 0.4);
    }
    
    .cancel-btn {
        background-color: #95a5a6;
        color: white;
    }
    
    .cancel-btn:hover {
        background-color: #7f8c8d;
        transform: translateY(-2px);
        box-shadow: 0 6px 16px rgba(149, 165, 166, 0.4);
    }
    
    /* 滑动效果优化 */
    .products-grid {
        scrollbar-width: thin;
        scrollbar-color: #21A576 #f8f9fa;
    }
    
    .products-grid::-webkit-scrollbar {
        width: 6px;
        height: 6px;
    }
    
    .products-grid::-webkit-scrollbar-track {
        background: #f8f9fa;
        border-radius: 10px;
    }
    
    .products-grid::-webkit-scrollbar-thumb {
        background-color: #21A576;
        border-radius: 10px;
        border: 2px solid #f8f9fa;
    }
    
    .products-grid::-webkit-scrollbar-thumb:hover {
        background-color: #1A8A60;
    }
    
    /* 选择器优化 */
    select {
        appearance: none;
        background-image: url("data:image/svg+xml;charset=US-ASCII,%3Csvg xmlns='http://www.w3.org/2000/svg' width='292.4' height='292.4'%3E%3Cpath fill='%2327ae60' d='M287 69.4a17.6 17.6 0 0 0-13-5.4H18.4c-5 0-9.3 1.8-12.9 5.4A17.6 17.6 0 0 0 0 82.2c0 5 1.8 9.3 5.4 12.9l128 127.9c3.6 3.6 7.8 5.4 12.8 5.4s9.2-1.8 12.8-5.4L287 95c3.5-3.5 5.4-7.8 5.4-12.8 0-5-1.9-9.2-5.5-12.8z'/%3E%3C/svg%3E");
        background-repeat: no-repeat;
        background-position: right 1rem center;
        background-size: 1rem;
        padding-right: 3rem;
    }
    
    /* 禁用状态优化 */
    button:disabled {
        opacity: 0.6;
        cursor: not-allowed;
        transform: none !important;
        box-shadow: none !important;
    }
    
    /* 焦点状态优化 */
    *:focus {
        outline: 2px solid #21A576;
        outline-offset: 2px;
    }
}

    /* 入场动画 */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes bounceIn {
    0% {
        opacity: 0;
        transform: scale(0.3);
    }
    50% {
        opacity: 1;
        transform: scale(1.05);
    }
    70% {
        transform: scale(0.9);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

/* 应用入场动画 */
header {
    animation: fadeInDown 0.8s ease-out 0.1s both;
}

.logo {
    animation: bounceIn 1s ease-out 0.2s both;
}

.logo-container h1 {
    animation: fadeInLeft 0.8s ease-out 0.3s both;
}

.user-section {
    animation: fadeInRight 0.8s ease-out 0.4s both;
}

.product-section {
    animation: fadeInUp 0.8s ease-out 0.5s both;
}

.product-section h2 {
    animation: scaleIn 0.8s ease-out 0.6s both;
}

.product-card:nth-child(1) {
    animation: fadeInUp 0.8s ease-out 0.7s both;
}

.product-card:nth-child(2) {
    animation: fadeInUp 0.8s ease-out 0.8s both;
}

.product-card:nth-child(3) {
    animation: fadeInUp 0.8s ease-out 0.9s both;
}

footer {
    animation: fadeInUp 0.8s ease-out 1s both;
}

.floating-window {
    animation: bounceIn 1s ease-out 1.1s both;
}

/* 减少动画偏好 */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* 浮窗样式 */
.floating-window {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 999;
    cursor: pointer;
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.floating-window:hover {
    transform: scale(1.05);
}

.floating-window img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    object-fit: cover;
}

.floating-window .label {
    position: relative;
    margin-top: 8px;
    background-color: rgba(0,0,0,0.7);
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    white-space: nowrap;
}

/* 客服二维码弹窗样式 */
.service-modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.4);
}

.service-modal-content {
    background-color: #fff;
    margin: 15% auto;
    padding: 30px;
    border: 1px solid #ddd;
    width: 80%;
    max-width: 400px;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.15);
    text-align: center;
    animation: slideIn 0.4s ease-out;
}

.service-modal-content img {
    max-width: 250px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.service-modal-content p {
    font-size: 16px;
    color: #333;
    margin-bottom: 20px;
}

/* 密码强度相关样式 */
.password-requirements {
    margin-top: 0.5rem;
    font-size: 0.85rem;
    color: #6c757d;
    text-align: left;
}

.password-strength {
    margin-top: 0.75rem;
}

.strength-bar {
    width: 100%;
    height: 6px;
    background-color: #e9ecef;
    border-radius: 3px;
    overflow: hidden;
    margin-bottom: 0.5rem;
}

.strength-bar::after {
    content: '';
    display: block;
    height: 100%;
    width: 0%;
    transition: all 0.3s ease;
    border-radius: 3px;
}

.strength-bar.weak::after {
    width: 25%;
    background-color: #dc3545;
}

.strength-bar.medium::after {
    width: 50%;
    background-color: #ffc107;
}

.strength-bar.strong::after {
    width: 75%;
    background-color: #28a745;
}

.strength-bar.very-strong::after {
    width: 100%;
    background-color: #21A576;
}

.strength-text {
    font-size: 0.85rem;
    font-weight: 600;
    text-align: left;
}

.strength-text.weak {
    color: #dc3545;
}

.strength-text.medium {
    color: #ffc107;
}

.strength-text.strong {
    color: #28a745;
}

.strength-text.very-strong {
    color: #21A576;
}

/* 自定义消息弹窗样式 */
.message-modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.5);
}

.message-modal-content {
    background-color: #fefefe;
    margin: 15% auto;
    padding: 30px;
    border: 1px solid #888;
    width: 80%;
    max-width: 400px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    animation: slideIn 0.4s ease-out;
    text-align: center;
}

.message-modal h3 {
    margin-top: 0;
    color: #21A576;
    text-align: center;
    margin-bottom: 1.5rem;
}

.message-modal p {
    text-align: center;
    margin-bottom: 20px;
    color: #333;
    font-size: 1rem;
}

.message-modal-buttons {
    display: flex;
    gap: 10px;
    justify-content: center;
}

.message-btn {
    padding: 10px 24px;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    background-color: #21A576;
    color: white;
}

.message-btn:hover {
    background-color: #1A8A60;
}

/* 自定义确认弹窗样式 */
.confirm-modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.5);
}

.confirm-modal-content {
    background-color: #fefefe;
    margin: 15% auto;
    padding: 20px;
    border: 1px solid #888;
    width: 80%;
    max-width: 400px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    animation: jelly 0.5s ease-out;
}

.confirm-modal h3 {
    margin-top: 0;
    color: #21A576;
    text-align: center;
    margin-bottom: 1.5rem;
}

.confirm-modal p {
    text-align: center;
    margin-bottom: 20px;
    color: #333;
}

.confirm-modal-buttons {
    display: flex;
    gap: 10px;
    justify-content: center;
}

.confirm-btn,
.cancel-btn {
    padding: 8px 20px;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.confirm-btn {
    background-color: #e74c3c;
    color: white;
}

.confirm-btn:hover {
    background-color: #c0392b;
}

.cancel-btn {
    background-color: #95a5a6;
    color: white;
}

.cancel-btn:hover {
    background-color: #7f8c8d;
}

/* 验证码输入框样式 */
.form-group .verify-code-container {
    display: flex;
    gap: 10px;
    align-items: center;
}

.form-group .verify-code-container input {
    flex: 1;
}

.form-group .verify-code-container button {
    flex: 0 0 130px;
    padding: 1rem;
    font-size: 0.9rem;
    min-height: 56px;
}

/* 表单底部链接样式 */
.form-footer {
    text-align: center;
    margin: 1.5rem 0;
    font-size: 0.95rem;
    color: #666;
}

.form-link {
    color: #21A576;
    cursor: pointer;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    padding: 0.3rem 0.6rem;
    border-radius: 6px;
    margin-left: 5px;
}

.form-link:hover {
    color: #1A8A60;
    background-color: rgba(33, 165, 118, 0.1);
    transform: translateY(-1px);
}