* { margin: 0; padding: 0; box-sizing: border-box; }
#notice-content p, #notice-content span { display: inline; margin: 0; }
body { font-family: 'Microsoft YaHei', 'PingFang SC', -apple-system, sans-serif; background: #f5f5f5; color: #333; }
a { text-decoration: none; color: inherit; }

/* 顶部导航 */
.navbar { background: #fff; box-shadow: 0 2px 8px rgba(0,0,0,0.06); position: sticky; top: 0; z-index: 100; }
.navbar .container { max-width: 1200px; margin: 0 auto; padding: 0 20px; display: flex; align-items: center; justify-content: space-between; height: 64px; }
.navbar .logo { font-size: 20px; font-weight: bold; color: #e83e3e; }
.navbar .nav-links { display: flex; gap: 32px; }
.navbar .nav-links a { font-size: 15px; color: #555; padding: 8px 0; border-bottom: 2px solid transparent; transition: .2s; }
.navbar .nav-links a:hover, .navbar .nav-links a.active { color: #e83e3e; border-bottom-color: #e83e3e; }
.navbar .user-area { display: flex; align-items: center; gap: 16px; }
.navbar .user-area .btn { padding: 8px 20px; border-radius: 20px; font-size: 14px; cursor: pointer; border: none; transition: .2s; }
.navbar .user-area .btn-login { background: #e83e3e; color: #fff; }
.navbar .user-area .btn-login:hover { background: #d32f2f; }
.navbar .user-area .btn-register { background: #fff; color: #e83e3e; border: 1px solid #e83e3e; }
.navbar .user-area .user-info { display: flex; align-items: center; gap: 8px; font-size: 14px; }
.navbar .user-area .user-info img { width: 32px; height: 32px; border-radius: 50%; }

/* Banner */
.banner { background: linear-gradient(135deg, #ff6b6b 0%, #e83e3e 50%, #c62828 100%); color: #fff; padding: 60px 0; }
.banner .container { max-width: 1200px; margin: 0 auto; padding: 0 20px; display: flex; align-items: center; justify-content: space-between; }
.banner .text h1 { font-size: 36px; margin-bottom: 16px; }
.banner .text p { font-size: 16px; opacity: 0.9; line-height: 1.8; margin-bottom: 24px; }
.banner .text .btn-start { display: inline-block; background: #fff; color: #e83e3e; padding: 12px 36px; border-radius: 24px; font-size: 16px; font-weight: bold; cursor: pointer; transition: .2s; border: none; }
.banner .text .btn-start:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(0,0,0,0.15); }
.banner .illustration { display: flex; gap: 16px; }
.banner .step-card { background: #fff; border-radius: 14px; padding: 24px 18px; width: 160px; text-align: center; box-shadow: 0 4px 20px rgba(0,0,0,0.1); transition: transform .2s; }
.banner .step-card:hover { transform: translateY(-4px); }
.banner .step-card .num { font-size: 26px; font-weight: 800; color: #e83e3e; }
.banner .step-card .title { font-size: 15px; font-weight: 600; color: #333; margin-top: 8px; }
.banner .step-card .desc { font-size: 12px; color: #999; margin-top: 6px; line-height: 1.4; }

/* 内容区 */
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.section { padding: 50px 0; }
.section-title { text-align: center; font-size: 26px; margin-bottom: 12px; }
.section-desc { text-align: center; color: #888; font-size: 14px; margin-bottom: 40px; }

/* 产品网格 */
.product-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.product-card { background: #fff; border-radius: 10px; overflow: hidden; transition: .3s; cursor: pointer; }
.product-card:hover { transform: translateY(-4px); box-shadow: 0 12px 30px rgba(0,0,0,0.1); }
.product-card .img-wrap { position: relative; padding-top: 100%; background: #f9f9f9; }
.product-card .img-wrap img { position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: cover; }
.product-card .img-wrap .tag { position: absolute; top: 10px; right: 10px; background: #ff6b6b; color: #fff; padding: 4px 10px; border-radius: 12px; font-size: 12px; }
.product-card .card-body { padding: 16px; }
.product-card .card-body .name { font-size: 15px; color: #333; margin-bottom: 10px; line-height: 1.5; height: 45px; overflow: hidden; }
.product-card .card-body .price-row { display: flex; align-items: baseline; justify-content: space-between; }
.product-card .card-body .price { color: #e83e3e; font-size: 20px; font-weight: bold; }
.product-card .card-body .price .unit { font-size: 13px; }
.product-card .card-body .original { color: #bbb; font-size: 13px; text-decoration: line-through; }
.product-card .card-body .cashback-tag { margin-top: 10px; display: inline-block; background: #fff3f0; color: #e83e3e; border: 1px solid #ffd6cc; padding: 3px 10px; border-radius: 12px; font-size: 12px; }

/* 功能介绍 */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.feature-card { background: #fff; border-radius: 12px; padding: 28px 20px; text-align: center; transition: .3s; }
.feature-card:hover { box-shadow: 0 8px 24px rgba(0,0,0,0.08); transform: translateY(-2px); }
.feature-card .icon-box { width: 56px; height: 56px; border-radius: 50%; margin: 0 auto 14px; display: flex; align-items: center; justify-content: center; }
.feature-card h4 { font-size: 15px; margin-bottom: 8px; }
.feature-card p { font-size: 13px; color: #888; line-height: 1.6; }

/* 产品详情弹窗 */
.modal-mask { position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: rgba(0,0,0,0.5); z-index: 200; display: none; align-items: center; justify-content: center; }
.modal-mask.show { display: flex; }
.modal-content { background: #fff; border-radius: 12px; width: 720px; max-height: 80vh; overflow-y: auto; }
.modal-content .modal-header { display: flex; justify-content: space-between; align-items: center; padding: 20px 24px; border-bottom: 1px solid #eee; }
.modal-content .modal-header h3 { font-size: 18px; }
.modal-content .modal-header .close-btn { width: 32px; height: 32px; border-radius: 50%; border: none; background: #f5f5f5; font-size: 18px; cursor: pointer; display: flex; align-items: center; justify-content: center; }
.modal-content .modal-body { padding: 24px; }
.modal-content .product-detail-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.modal-content .product-detail-layout .left img { width: 100%; border-radius: 8px; }
.modal-content .product-detail-layout .right .name { font-size: 18px; font-weight: bold; margin-bottom: 12px; }
.modal-content .product-detail-layout .right .price { color: #e83e3e; font-size: 26px; font-weight: bold; margin-bottom: 8px; }
.modal-content .product-detail-layout .right .original { color: #999; text-decoration: line-through; font-size: 14px; }
.modal-content .product-detail-layout .right .cashback-box { background: #fff8f5; border: 1px solid #ffe0d0; border-radius: 8px; padding: 14px; margin: 16px 0; }
.modal-content .product-detail-layout .right .cashback-box .label { font-size: 13px; color: #e83e3e; font-weight: bold; margin-bottom: 6px; }
.modal-content .product-detail-layout .right .cashback-box .desc { font-size: 12px; color: #666; line-height: 1.6; }
.modal-content .product-detail-layout .right .actions { display: flex; gap: 12px; margin-top: 20px; }
.modal-content .product-detail-layout .right .actions .btn { flex: 1; padding: 12px; border: none; border-radius: 8px; font-size: 15px; cursor: pointer; transition: .2s; }
.modal-content .product-detail-layout .right .actions .btn-buy { background: #e83e3e; color: #fff; }
.modal-content .product-detail-layout .right .actions .btn-buy:hover { background: #d32f2f; }
.modal-content .product-detail-layout .right .actions .btn-share { background: #ff976a; color: #fff; }
.modal-content .product-detail-layout .right .actions .btn-share:hover { background: #f57c00; }
.modal-content .detail-desc { margin-top: 20px; padding-top: 20px; border-top: 1px solid #eee; font-size: 14px; color: #666; line-height: 1.8; }

/* 用户中心侧边栏 */
.user-center { display: grid; grid-template-columns: 240px 1fr; gap: 20px; padding: 30px 0; }
.user-sidebar { background: #fff; border-radius: 12px; padding: 20px; height: fit-content; }
.user-sidebar .avatar-area { text-align: center; padding: 20px 0; border-bottom: 1px solid #f0f0f0; margin-bottom: 16px; }
.user-sidebar .avatar-area img { width: 64px; height: 64px; border-radius: 50%; margin-bottom: 10px; }
.user-sidebar .avatar-area .name { font-size: 16px; font-weight: bold; }
.user-sidebar .menu-list { list-style: none; }
.user-sidebar .menu-list li { padding: 12px 16px; border-radius: 8px; font-size: 14px; cursor: pointer; margin-bottom: 4px; transition: .2s; }
.user-sidebar .menu-list li:hover, .user-sidebar .menu-list li.active { background: #fff3f0; color: #e83e3e; }
.user-main { background: #fff; border-radius: 12px; padding: 24px; min-height: 400px; }
.user-main h3 { font-size: 18px; margin-bottom: 20px; padding-bottom: 12px; border-bottom: 1px solid #f0f0f0; }

/* 统计卡片 */
.stat-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 24px; }
.stat-box { background: #f9f9f9; border-radius: 8px; padding: 18px; text-align: center; }
.stat-box .num { font-size: 24px; font-weight: bold; color: #e83e3e; }
.stat-box .label { font-size: 12px; color: #888; margin-top: 6px; }

/* 表格 */
.data-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.data-table th { background: #f9f9f9; padding: 12px; text-align: left; font-weight: 600; color: #666; }
.data-table td { padding: 12px; border-bottom: 1px solid #f0f0f0; }
.data-table tr:hover td { background: #fafafa; }
.status-tag { padding: 3px 10px; border-radius: 10px; font-size: 12px; }
.status-tag.success { background: #e8f8ef; color: #27ae60; }
.status-tag.warning { background: #fff8e6; color: #f39c12; }
.status-tag.info { background: #eef6ff; color: #2d8cf0; }

/* 登录弹窗 */
.login-modal .modal-content { width: 400px; }
.login-modal .form-group { margin-bottom: 18px; }
.login-modal .form-group label { display: block; font-size: 14px; color: #555; margin-bottom: 6px; }
.login-modal .form-group input { width: 100%; padding: 11px 14px; border: 1px solid #ddd; border-radius: 8px; font-size: 14px; transition: .2s; }
.login-modal .form-group input:focus { border-color: #e83e3e; outline: none; box-shadow: 0 0 0 3px rgba(232,62,62,0.1); }
.login-modal .btn-submit { width: 100%; padding: 12px; background: #e83e3e; color: #fff; border: none; border-radius: 8px; font-size: 15px; cursor: pointer; transition: .2s; }
.login-modal .btn-submit:hover { background: #d32f2f; }
.login-modal .switch-link { text-align: center; margin-top: 14px; font-size: 13px; color: #888; }
.login-modal .switch-link a { color: #e83e3e; cursor: pointer; }

/* 推广码区域 */
.referral-box { background: linear-gradient(135deg, #fff3f0, #ffe8e0); border-radius: 12px; padding: 24px; display: flex; align-items: center; justify-content: space-between; margin-bottom: 24px; }
.referral-box .code { font-size: 28px; font-weight: bold; color: #e83e3e; letter-spacing: 2px; }
.referral-box .btn-copy { padding: 10px 24px; background: #e83e3e; color: #fff; border: none; border-radius: 8px; font-size: 14px; cursor: pointer; }

/* 页脚 */
.footer { background: #2c2c2c; color: #aaa; padding: 40px 0 20px; margin-top: 60px; }
.footer .container { display: flex; justify-content: space-between; }
.footer .col h5 { color: #fff; margin-bottom: 12px; font-size: 15px; }
.footer .col p { font-size: 13px; line-height: 2; }
.footer .copyright { text-align: center; margin-top: 30px; padding-top: 20px; border-top: 1px solid #444; font-size: 12px; }

/* 隐藏/显示 */
.hidden { display: none !important; }
