/* 基础样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Microsoft YaHei', 'Arial', sans-serif;
    background-color: #f4f6f9;
    margin: 0;
    color: #333;
}

/* 顶部导航栏 */
.top-nav {
    background: #2c3e50;
    color: white;
    padding: 0 20px;
    height: 60px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

.logo {
    font-size: 20px;
    font-weight: bold;
}

/* 签到按钮样式 */
.checkin-btn {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 8px 15px;
    background: #ff9800;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    text-decoration: none;
    margin-right: 15px;
    transition: all 0.3s;
    position: relative;
}

.checkin-btn:hover {
    background: #f57c00;
}

.checkin-btn.pulse {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(255, 152, 0, 0.7);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(255, 152, 0, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(255, 152, 0, 0);
    }
}

.checkin-btn.checked-in {
    background: #4CAF50;
}

.checkin-btn.checked-in:hover {
    background: #388E3C;
}

/* 下拉菜单 */
.dropdown {
    position: relative;
    display: inline-block;
    margin-right: 15px;
}

.dropdown-btn {
    background: transparent;
    color: white;
    border: none;
    padding: 8px 15px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 5px;
}

.dropdown-content {
    display: none;
    position: absolute;
    right: 0;
    background: white;
    min-width: 100px;
    box-shadow: 0 8px 16px rgba(0,0,0,0.2);
    z-index: 1;
    border-radius: 4px;
    overflow: hidden;
}

.dropdown:hover .dropdown-content {
    display: block;
}

.dropdown-content a {
    color: #333;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
    transition: all 0.3s;
}

.dropdown-content a:hover {
    background: #f1f1f1;
}

/* 验证状态样式 */
.verification-status {
    font-size: 0.8em;
    padding: 2px 5px;
    border-radius: 3px;
    margin-left: 5px;
}

.verification-status.verified {
    background-color: #4CAF50;
    color: white;
}

.verification-status.not-verified {
    background-color: #f44336;
    color: white;
}

/* 禁用状态的筛选框 */
.filter-box.disabled {
    pointer-events: none;
    opacity: 0.6;
}

/* 模态框样式 */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    z-index: 1000;
    justify-content: center;
    align-items: center;
}

.modal-content {
    background-color: white;
    padding: 20px;
    border-radius: 5px;
    width: 80%;
    max-width: 500px;
    position: relative;
}

.modal-close {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 24px;
    cursor: pointer;
}

.modal-buttons {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 20px;
}

.modal-btn {
    padding: 8px 16px;
    background-color: #4CAF50;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

.modal-btn.secondary {
    background-color: #f0f0f0;
    color: #333;
}

.modal-btn:hover {
    opacity: 0.9;
}

/* 登录按钮 */
.login-btn {
    padding: 8px 15px;
    background: #3498db;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 5px;
}

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

/* 主内容区 */
.main-content {
    margin-top: 60px;
    padding: 20px;
    min-height: calc(100vh - 60px);
    background-color: #fff;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0;
}

/* 推广页面样式 */
.referral-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card {
    background: #f9f9f9;
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.stat-card h3 {
    font-size: 16px;
    margin-bottom: 10px;
    color: #555;
}

.stat-value {
    font-size: 24px;
    font-weight: bold;
    color: #2c3e50;
}

.referral-code {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 15px 0;
}

.referral-code span {
    font-family: monospace;
    font-size: 18px;
    font-weight: bold;
    color: #3498db;
    margin-right: 10px;
}

.copy-btn {
    background: #3498db;
    color: white;
    border: none;
    padding: 5px 10px;
    border-radius: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 5px;
}

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

.referral-rules {
    background: #f9f9f9;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 30px;
}

.referral-rules h2 {
    margin-bottom: 15px;
    color: #2c3e50;
}

.referral-rules ul {
    list-style-type: disc;
    padding-left: 20px;
}

.referral-rules li {
    margin-bottom: 8px;
    line-height: 1.5;
}

.referral-history {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    padding: 20px;
}

.referral-history h2 {
    margin-bottom: 15px;
    color: #2c3e50;
}

.referral-history table {
    width: 100%;
    border-collapse: collapse;
}

.referral-history th, .referral-history td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.referral-history th {
    background: #f5f5f5;
    font-weight: 500;
}

.referral-history tr:hover {
    background: #f9f9f9;
}

/* 卡片式商品布局 */
.products-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
    margin-top: 20px;
}

.product-card {
    border: 1px solid #e1e1e1;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    background: white;
}

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

.product-image-container {
    position: relative;
    width: 100%;
    height: 200px;
    overflow: hidden;
}

.product-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.product-card:hover .product-image {
    transform: scale(1.05);
}

.product-info {
    padding: 15px;
}

.product-name {
    position: relative;
}
.product-name::after {
    content: attr(data-fullname);
}

.product-price {
    color: #e53935;
    font-weight: bold;
    font-size: 16px;
    margin-bottom: 5px;
}

.product-sales {
    color: #666;
    font-size: 12px;
    margin-bottom: 5px;
}

.product-commission {
    display: flex;
    justify-content: space-between;
    margin-bottom: 5px;
}

.earn-amount {
    color: #388e3c;
    font-weight: bold;
}

.commission-rate {
    color: #1976d2;
    font-size: 12px;
}

.compare-rate {
    color: #666;
    font-size: 11px;
    margin-top: 3px;
}

.free-sample-badge {
    background-color: #ff9800;
    color: white;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 10px;
    display: inline-block;
    margin-bottom: 5px;
}

.category-badge {
    background-color: #e8f5e9;
    color: #388e3c;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 10px;
    display: inline-block;
    margin-bottom: 5px;
}

/* 搜索和筛选区域 */
.search-container {
    margin-bottom: 20px;
}

.search-box {
    display: flex;
    gap: 10px;
    margin-bottom: 10px;
}

.search-box input {
    padding: 8px;
    width: 300px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.search-box button {
    padding: 8px 16px;
    background: #4CAF50;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

.search-box button:hover {
    background: #388E3C;
}

.filter-box {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 15px;
    padding: 15px;
    background: #f9f9f9;
    border-radius: 5px;
}

.filter-group {
    display: flex;
    align-items: center;
    gap: 8px;
}

.filter-group label {
    white-space: nowrap;
}

.filter-group input {
    padding: 6px;
    width: 80px;
    text-align: center;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.filter-group select {
    padding: 6px;
    min-width: 120px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

/* 按钮样式 */
.reset-btn {
    padding: 6px 12px;
    background: #f44336;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

.reset-btn:hover {
    background: #d32f2f;
}

.apply-btn {
    padding: 6px 12px;
    background: #4CAF50;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

.apply-btn:hover {
    background: #388E3C;
}

/* 分页样式 */
.pagination {
    margin-top: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.pagination-info {
    color: #666;
}

.pagination-links {
    display: flex;
    gap: 5px;
}

.pagination a, .pagination span {
    padding: 8px 12px;
    border: 1px solid #ddd;
    text-decoration: none;
    color: #333;
    border-radius: 4px;
}

.pagination a.active {
    background-color: #4CAF50;
    color: white;
}

.pagination a:hover:not(.active) {
    background-color: #f1f1f1;
}

/* 用户下拉菜单 */
.user-dropdown {
    position: relative;
    display: inline-block;
}

.user-dropdown-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    background: transparent;
    color: white;
    border: none;
    cursor: pointer;
    padding: 8px 12px;
    border-radius: 4px;
}

.user-dropdown-btn:hover {
    background: rgba(255,255,255,0.1);
}

.user-dropdown-content {
    display: none;
    position: absolute;
    right: 0;
    background: white;
    min-width: 160px;
    box-shadow: 0 8px 16px rgba(0,0,0,0.2);
    z-index: 1;
    border-radius: 4px;
    overflow: hidden;
}

.user-dropdown:hover .user-dropdown-content {
    display: block;
}

.user-dropdown-content a {
    color: #333;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
    transition: all 0.3s;
}

.user-dropdown-content a:hover {
    background: #f1f1f1;
}

.user-dropdown-content .divider {
    border-top: 1px solid #eee;
    margin: 0;
}

/* 无图片占位符 */
.no-image {
    width: 100%;
    height: 100%;
    background: #f5f5f5;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
}

/* 禁用状态 */
.disabled {
    opacity: 0.5;
    pointer-events: none;
}

/* 新增样式 */
.product-meta {
    display: flex;
    justify-content: space-between;
    margin-top: 8px;
    font-size: 12px;
    color: #666;
}

.product-stock {
    color: #388e3c;
    font-weight: bold;
}

.product-sales-count {
    color: #e53935;
}

/* 密码强度指示器 */
.password-strength {
    height: 5px;
    margin-top: 5px;
    background: #eee;
    border-radius: 3px;
    overflow: hidden;
}

.password-strength-bar {
    height: 100%;
    width: 0;
    transition: width 0.3s;
}

.password-strength-weak {
    background-color: #ff4757;
}

.password-strength-medium {
    background-color: #ffa502;
}

.password-strength-strong {
    background-color: #2ed573;
}

/* 注册表单额外字段 */
.form-group-row {
    display: flex;
    gap: 15px;
}

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

/* 登录尝试限制提示 */
.login-attempts {
    color: #ff4757;
    font-size: 12px;
    margin-top: 5px;
}

/* 推广链接按钮样式 */
.copy-affiliate-link {
    display: block;
    width: 100%;
    padding: 8px;
    margin-top: 10px;
    background: #3498db;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: background 0.3s;
    text-align: center;
}

.copy-affiliate-link:hover {
    background: #2980b9;
}

.copy-affiliate-link i {
    margin-right: 5px;
}

.copy-affiliate-link.disabled {
    background: #95a5a6;
    cursor: not-allowed;
}

/* 复制成功提示 */
.copy-tooltip {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0,0,0,0.7);
    color: white;
    padding: 10px 20px;
    border-radius: 4px;
    z-index: 1000;
    display: none;
}

/* 积分不足时的按钮样式 */
.copy-affiliate-link.low-points {
    background-color: #e74c3c;
}

.copy-affiliate-link.low-points:hover {
    background-color: #c0392b;
}

/* 复制按钮处理中状态 */
.copy-affiliate-link.processing {
    opacity: 0.7;
    cursor: not-allowed;
}
.copy-affiliate-link:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.affiliate-tooltip {
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: #333;
    color: white;
    padding: 8px 12px;
    border-radius: 4px;
    font-size: 12px;
    white-space: nowrap;
    z-index: 100;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
    text-align: left;
    min-width: 150px;
}

.affiliate-tooltip::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    margin-left: -5px;
    border-width: 5px;
    border-style: solid;
    border-color: #333 transparent transparent transparent;
}

.copy-affiliate-link {
    position: relative;
}

/* 推荐页面样式 */
.referral-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 20px;
}

.referral-card {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 25px;
    margin-bottom: 30px;
}

.referral-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.referral-title {
    font-size: 24px;
    font-weight: 600;
    color: #333;
    margin: 0;
}

.referral-bonus {
    background-color: #f0f7ff;
    color: #1a73e8;
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
}

.code-section, .link-section {
    margin-bottom: 25px;
}

.section-title {
    font-size: 16px;
    font-weight: 500;
    color: #555;
    margin-bottom: 10px;
}

.code-container, .link-container {
    display: flex;
    align-items: center;
    background-color: #f5f5f5;
    border-radius: 6px;
    padding: 12px 15px;
}

.code-value, .link-value {
    flex-grow: 1;
    font-family: monospace;
    font-size: 16px;
    color: #333;
    word-break: break-all;
}

.copy-btn {
    background-color: #1a73e8;
    color: white;
    border: none;
    border-radius: 4px;
    padding: 8px 15px;
    cursor: pointer;
    font-size: 14px;
    margin-left: 10px;
    transition: background-color 0.2s;
    display: flex;
    align-items: center;
}

.copy-btn:hover {
    background-color: #0d5bba;
}

.copy-btn i {
    margin-right: 5px;
}

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

.stat-card {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    padding: 20px;
    text-align: center;
}

.stat-value {
    font-size: 28px;
    font-weight: 600;
    color: #1a73e8;
    margin: 10px 0;
}

.stat-label {
    font-size: 14px;
    color: #666;
}

.rules-container {
    background-color: #f9f9f9;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 30px;
}

.rules-title {
    font-size: 18px;
    font-weight: 500;
    color: #333;
    margin-bottom: 15px;
}

.rules-list {
    list-style-type: none;
    padding: 0;
    margin: 0;
}

.rules-list li {
    padding: 8px 0;
    position: relative;
    padding-left: 25px;
}

.rules-list li:before {
    content: "•";
    color: #1a73e8;
    font-size: 20px;
    position: absolute;
    left: 5px;
    top: 3px;
}

.history-title {
    font-size: 18px;
    font-weight: 500;
    color: #333;
    margin-bottom: 15px;
}

.history-table {
    width: 100%;
    border-collapse: collapse;
}

.history-table th, .history-table td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.history-table th {
    background-color: #f5f5f5;
    font-weight: 500;
    color: #555;
}

.status-badge {
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
}

.status-approved {
    background-color: #e6f4ea;
    color: #34a853;
}

.status-pending {
    background-color: #fef7e0;
    color: #f9ab00;
}

.status-rejected {
    background-color: #fce8e6;
    color: #d93025;
}

.no-history {
    text-align: center;
    padding: 30px;
    color: #666;
    font-size: 16px;
}

/* 添加按钮样式 */
.copy-affiliate-link.free {
    background-color: #4CAF50;
    margin-bottom: 5px;
}

.copy-affiliate-link.premium {
    background-color: #ff9800;
}

.copy-affiliate-link.disabled {
    background-color: #cccccc;
    cursor: not-allowed;
}

.product-commission-buttons {
    display: flex;
    flex-direction: column;
    gap: 5px;
    margin-top: 10px;
}

/* 响应式设计 */
@media (max-width: 1200px) {
    .products-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 992px) {
    .products-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .referral-stats {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .product-image-container {
        height: 160px;
    }
    
    .referral-stats {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .products-grid {
        grid-template-columns: 1fr;
    }
    
    .product-image-container {
        height: 200px;
    }
    
    .referral-history table {
        display: block;
        overflow-x: auto;
    }
}
.copy-affiliate-link {
    position: relative;
}

.commission-tooltip {
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: #333;
    color: white;
    padding: 8px 12px;
    border-radius: 4px;
    font-size: 14px;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
    z-index: 100;
    margin-bottom: 10px;
}

.commission-tooltip:after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border-width: 5px;
    border-style: solid;
    border-color: #333 transparent transparent transparent;
}

.copy-affiliate-link:hover .commission-tooltip {
    opacity: 1;
    visibility: visible;
}
/* 活动时间提示样式 */
.active-period {
    margin-top: 8px;
    font-size: 12px;
}

.active-period .badge {
    padding: 3px 6px;
    border-radius: 3px;
    font-weight: normal;
}

.badge-warning {
    background-color: #ffc107;
    color: #212529;
}

.badge-danger {
    background-color: #dc3545;
    color: white;
}

/* 确保没有链接的商品不显示 */
.product-card.no-links {
    display: none;
}
.product-comments-section {
    margin-top: 15px;
    padding: 15px;
    background: #f9f9f9;
    border-radius: 5px;
    border-top: 1px solid #eee;
}

.comments-container {
    max-height: 200px;
    overflow-y: auto;
    margin-bottom: 15px;
}

.comment-item {
    padding: 10px;
    margin-bottom: 10px;
    background: white;
    border-radius: 5px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.comment-author {
    font-weight: bold;
    margin-bottom: 5px;
}

.comment-date {
    font-size: 0.8em;
    color: #777;
}

.comment-text {
    margin-top: 5px;
}

.comment-form textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    resize: vertical;
    min-height: 80px;
    margin-bottom: 10px;
}

.toggle-comments-btn {
    background: none;
    border: none;
    color: #666;
    cursor: pointer;
    margin-top: 10px;
    padding: 5px 10px;
    border-radius: 4px;
}

.toggle-comments-btn:hover {
    background: #f0f0f0;
}
/* 收藏按钮样式 */
.favorite-button {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 2;
    cursor: pointer;
    background: rgba(255, 255, 255, 0.8);
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

.favorite-button:hover {
    background: rgba(255, 255, 255, 0.9);
    transform: scale(1.1);
}

.favorite-button i {
    font-size: 16px;
    color: #666;
}

.favorite-button .fas.favorited {
    color: #ff4757;
}

/* 空收藏提示 */
.empty-favorites {
    text-align: center;
    padding: 50px 0;
    color: #999;
}

.empty-favorites i {
    font-size: 50px;
    margin-bottom: 20px;
}

.empty-favorites p {
    font-size: 18px;
}
/* 收藏页面专用样式 */
.favorites-container {
    max-width: 1200px;
    margin: 20px auto;
    padding: 20px;
}

.favorites-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    border-bottom: 1px solid #eee;
    padding-bottom: 15px;
}

.favorites-header h1 {
    color: #ff4757;
    margin: 0;
}

.favorites-count {
    background: #ff4757;
    color: white;
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 14px;
}

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

.favorite-item {
    border: 1px solid #eee;
    border-radius: 8px;
    padding: 15px;
    transition: all 0.3s;
    background: white;
}

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

.favorite-item-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    font-size: 12px;
    color: #666;
}

.remove-favorite {
    background: none;
    border: none;
    color: #999;
    cursor: pointer;
    padding: 0 5px;
}

.remove-favorite:hover {
    color: #ff4757;
}

.favorite-product {
    display: flex;
    margin-bottom: 15px;
}

.favorite-product .product-image {
    width: 100px;
    height: 100px;
    flex-shrink: 0;
    margin-right: 15px;
    border: 1px solid #eee;
    border-radius: 4px;
    overflow: hidden;
}

.favorite-product .product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.favorite-product .product-info {
    flex-grow: 1;
}

.favorite-product h3 {
    margin: 0 0 5px 0;
    font-size: 16px;
}

.favorite-product .price {
    color: #ff4757;
    font-weight: bold;
    margin-bottom: 3px;
}

.favorite-product .sales,
.favorite-product .commission {
    font-size: 13px;
    color: #666;
    margin-bottom: 3px;
}

.favorite-actions {
    display: flex;
    justify-content: space-between;
    border-top: 1px solid #eee;
    padding-top: 10px;
}

.favorite-actions .view-btn,
.favorite-actions .copy-link-btn {
    padding: 5px 10px;
    font-size: 13px;
    border-radius: 4px;
}

.favorite-actions .view-btn {
    background: #f0f0f0;
    color: #333;
    text-decoration: none;
}

.favorite-actions .copy-link-btn {
    background: #4CAF50;
    color: white;
    border: none;
    cursor: pointer;
}

/* 空收藏提示样式 */
.empty-favorites {
    text-align: center;
    padding: 50px 20px;
    background: #f9f9f9;
    border-radius: 8px;
    margin-top: 30px;
}

.empty-favorites i {
    font-size: 50px;
    color: #ccc;
    margin-bottom: 20px;
}

.empty-favorites h3 {
    color: #666;
    margin-bottom: 10px;
}

.empty-favorites p {
    color: #999;
    margin-bottom: 20px;
}

.browse-btn {
    display: inline-block;
    padding: 10px 20px;
    background: #ff4757;
    color: white;
    text-decoration: none;
    border-radius: 4px;
    transition: all 0.3s;
}

.browse-btn:hover {
    background: #ff6b81;
}
 .product-stats {
        margin-top: 10px;
        padding-top: 10px;
        border-top: 1px solid #eee;
        font-size: 0.9rem;
        color: #666;
    }
    
    .stat-item {
        display: inline-block;
        margin-right: 15px;
    }
    
    .country-stats {
        margin-top: 8px;
    }
    
    .country-badge {
        display: inline-block;
        background: #f5f5f5;
        padding: 2px 8px;
        border-radius: 12px;
        margin-right: 5px;
        margin-bottom: 5px;
        font-size: 0.8rem;
    }
    
    .country-flag {
        width: 16px;
        height: 12px;
        margin-right: 4px;
        vertical-align: middle;
        border: 1px solid #ddd;
    }
/* 新版签到模态框样式 */
.checkin-modal {
    max-width: 400px;
    padding: 20px;
    background: linear-gradient(135deg, #f5f7fa 0%, #e4e8eb 100%);
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

.checkin-subtitle {
    color: #666;
    margin-bottom: 15px;
    text-align: center;
    font-size: 14px;
}

/* 紧凑型日历 */
.checkin-calendar {
    margin-bottom: 15px;
    background: white;
    padding: 10px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.calendar-header {
    text-align: center;
    font-weight: 600;
    margin-bottom: 8px;
    font-size: 16px;
    color: #2c3e50;
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 4px;
}

.calendar-day {
    aspect-ratio: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    background: #f8f9fa;
    font-size: 12px;
    position: relative;
    transition: all 0.2s;
}

.calendar-day:hover {
    transform: scale(1.05);
}

.calendar-day.empty {
    background: transparent;
    visibility: hidden;
}

.calendar-day.checked {
    background: #e3f2fd;
    color: #1976d2;
}

.calendar-day.today {
    border: 2px solid #2196f3;
}

.check-icon {
    font-size: 10px;
    margin-top: 1px;
    color: #4caf50;
}

.points-earned {
    font-size: 9px;
    color: #388e3c;
    position: absolute;
    bottom: 2px;
}

/* 紧凑统计区域 */
.checkin-stats {
    display: flex;
    justify-content: space-around;
    margin: 15px 0;
    padding: 12px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.stat-item {
    text-align: center;
    flex: 1;
}

.stat-label {
    font-size: 12px;
    color: #666;
    display: block;
    margin-bottom: 3px;
}

.stat-value {
    font-size: 18px;
    font-weight: 600;
    color: #2c3e50;
}

/* 美化详情区域 */
.checkin-details {
    margin-bottom: 15px;
    padding: 12px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.checkin-details h4 {
    margin-bottom: 8px;
    color: #333;
    font-size: 14px;
    display: flex;
    align-items: center;
}

.checkin-details h4:before {
    content: "📌";
    margin-right: 8px;
}

.checkin-details ul {
    padding-left: 20px;
    color: #666;
    font-size: 13px;
    margin: 0;
}

.checkin-details li {
    margin-bottom: 6px;
    line-height: 1.4;
}

/* 精致签到按钮 */
.checkin-button {
    width: 100%;
    padding: 10px;
    font-size: 14px;
    margin-bottom: 12px;
    background: linear-gradient(135deg, #4CAF50 0%, #388E3C 100%);
    border: none;
    color: white;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 3px 6px rgba(56,142,60,0.2);
}

.checkin-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 10px rgba(56,142,60,0.3);
}

.checkin-button:disabled {
    background: #95a5a6;
    transform: none;
    box-shadow: none;
    cursor: not-allowed;
}

/* 紧凑历史记录 */
.checkin-history {
    border-top: 1px solid #eee;
    padding-top: 12px;
}

.checkin-history h4 {
    margin-bottom: 8px;
    color: #333;
    font-size: 14px;
    display: flex;
    align-items: center;
}

.checkin-history h4:before {
    content: "🕒";
    margin-right: 8px;
}

.history-item {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid #f0f0f0;
    font-size: 12px;
}

.history-date {
    color: #666;
}

.history-points {
    color: #388e3c;
    font-weight: 600;
}

.history-days {
    color: #2196f3;
}

.no-history {
    text-align: center;
    color: #999;
    padding: 10px 0;
    font-size: 12px;
}
/* 签到成功消息 - 精致版 */
.checkin-success-message {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: white;
    color: #333;
    padding: 15px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    z-index: 1000;
    animation: slideIn 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border-left: 4px solid #4CAF50;
    max-width: 280px;
}

.checkin-success-content {
    display: flex;
    align-items: center;
    gap: 12px;
}

.checkin-success-icon {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    background: #e8f5e9;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.checkin-success-text h3 {
    margin: 0 0 4px 0;
    font-size: 15px;
    color: #2c3e50;
}

.checkin-success-text p {
    margin: 0;
    font-size: 14px;
    color: #388e3c;
    font-weight: 500;
}

.sparkles {
    animation: sparkle 1s ease-in-out infinite;
    display: inline-block;
}

@keyframes sparkle {
    0% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.2); opacity: 0.7; }
    100% { transform: scale(1); opacity: 1; }
}

@keyframes slideIn {
    from { transform: translateY(20px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.fade-out {
    animation: fadeOut 0.5s ease-out forwards;
}

@keyframes fadeOut {
    from { transform: translateY(0); opacity: 1; }
    to { transform: translateY(20px); opacity: 0; }
}