/* 文案分享助手 - 样式文件 - 卡片式美观看板 */

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

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
    background: #fff8f0;
    color: #333;
    line-height: 1.6;
    min-height: 100vh;
}

.copy-share-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0;
}

/* 顶部导航栏 */
.copy-share-topbar {
    background: #fff;
    padding: 15px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #f0e6d2;
    position: sticky;
    top: 0;
    z-index: 100;
}

.copy-share-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 18px;
    font-weight: 600;
    color: #ff6b35;
}

.copy-share-logo-icon {
    background: #ff6b35;
    color: #fff;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}

.copy-share-user-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.copy-share-user-tag {
    padding: 6px 15px;
    background: #fff8f0;
    border: 1px solid #ffd9b3;
    border-radius: 20px;
    font-size: 13px;
    color: #ff6b35;
}

.copy-share-user-tag.vip {
    background: linear-gradient(135deg, #ffd700 0%, #ffaa00 100%);
    color: #fff;
    border: none;
}

.copy-share-login-btn {
    padding: 6px 15px;
    background: #ff6b35;
    color: #fff;
    border-radius: 20px;
    font-size: 13px;
    text-decoration: none;
    transition: all 0.3s;
}

.copy-share-login-btn:hover {
    background: #e55a2b;
}

.copy-share-user-center-btn {
    padding: 6px 15px;
    background: #fff8f0;
    color: #ff6b35;
    border: 1px solid #ff6b35;
    border-radius: 20px;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.3s;
}

.copy-share-user-center-btn:hover {
    background: #ff6b35;
    color: #fff;
}

/* 分类导航 - 支持左右滑动 */
.copy-share-nav-container {
    background: #fff;
    padding: 15px 0;
    border-bottom: 1px solid #f0e6d2;
    position: sticky;
    top: 62px;
    z-index: 99;
}

.copy-share-nav-scroll {
    overflow-x: auto;
    overflow-y: hidden;
    white-space: nowrap;
    padding: 0 15px;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.copy-share-nav-scroll::-webkit-scrollbar {
    display: none;
}

.copy-share-nav {
    display: inline-flex;
    gap: 12px;
}

.copy-share-nav a {
    padding: 10px 25px;
    background: #fff8f0;
    border: 1px solid #ffe4c4;
    border-radius: 25px;
    text-decoration: none;
    color: #666;
    transition: all 0.3s;
    font-size: 14px;
    display: inline-block;
    white-space: nowrap;
}

.copy-share-nav a:hover {
    background: #ffe4c4;
    color: #ff6b35;
}

.copy-share-nav a.active {
    background: linear-gradient(135deg, #ff8c42 0%, #ff6b35 100%);
    color: #fff;
    border-color: #ff6b35;
    box-shadow: 0 4px 15px rgba(255, 107, 53, 0.3);
}

/* 文案列表 */
.copy-share-list {
    padding: 25px 30px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* 文案卡片 */
.copy-share-card {
    background: #fff;
    border-radius: 16px;
    border: 1px solid #ffe4c4;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(255, 107, 53, 0.05);
    transition: all 0.3s;
}

.copy-share-card:hover {
    box-shadow: 0 8px 25px rgba(255, 107, 53, 0.12);
    transform: translateY(-2px);
}

.copy-share-card-inner {
    padding: 25px 30px;
}

.copy-share-title {
    font-size: 18px;
    margin-bottom: 15px;
    color: #ff6b35;
    font-weight: 700;
}

.copy-share-content {
    font-size: 15px;
    color: #555;
    margin-bottom: 18px;
    line-height: 1.8;
    white-space: normal;
    word-break: break-word;
}

/* 图片区域 */
.copy-share-images-label {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #999;
    font-size: 13px;
    margin-bottom: 10px;
}

.copy-share-images-label::before {
    content: "🖼️";
}

.copy-share-images {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-bottom: 20px;
}

.copy-share-image-item {
    position: relative;
    aspect-ratio: 1;
    overflow: hidden;
    border-radius: 12px;
    cursor: pointer;
    border: 1px solid #f0e6d2;
}

.copy-share-image-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.copy-share-image-item:hover img {
    transform: scale(1.08);
}

/* 单张图片 */
.copy-share-single-image {
    width: 200px;
    margin-bottom: 20px;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #f0e6d2;
    cursor: pointer;
}

.copy-share-single-image img {
    width: 100%;
    height: auto;
    display: block;
}

/* 操作按钮 - 并排显示 */
.copy-share-actions {
    display: flex;
    gap: 12px;
}

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

.copy-share-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.copy-btn {
    background: linear-gradient(135deg, #ff8c42 0%, #ff6b35 100%);
    color: #fff;
    box-shadow: 0 4px 15px rgba(255, 107, 53, 0.2);
}

.copy-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 107, 53, 0.35);
}

.download-btn {
    background: #fff;
    color: #ff6b35;
    border: 2px solid #ff6b35;
}

.download-btn:hover:not(:disabled) {
    background: #fff8f0;
}

/* 空状态 */
.copy-share-empty {
    text-align: center;
    padding: 80px 20px;
    color: #999;
    background: #fff;
    border-radius: 16px;
    border: 1px solid #ffe4c4;
}

/* 底部 */
.copy-share-footer {
    text-align: center;
    padding: 30px;
    color: #999;
    font-size: 13px;
}

/* 升级会员悬浮按钮 */
.copy-share-float-vip {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: linear-gradient(135deg, #ff8c42 0%, #ff6b35 100%);
    color: #fff;
    padding: 15px 25px;
    border-radius: 30px;
    cursor: pointer;
    font-size: 15px;
    font-weight: 600;
    box-shadow: 0 6px 20px rgba(255, 107, 53, 0.4);
    z-index: 99;
    transition: all 0.3s;
}

.copy-share-float-vip:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(255, 107, 53, 0.5);
}

/* 图片弹窗 */
.copy-share-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.9);
    z-index: 9999;
    justify-content: center;
    align-items: center;
}

.copy-share-modal.active {
    display: flex;
}

.copy-share-modal img {
    max-width: 90%;
    max-height: 90%;
    border-radius: 8px;
}

.copy-share-modal-close {
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 40px;
    color: #fff;
    cursor: pointer;
}

/* VIP弹窗 */
.vip-modal-content,
.user-center-content {
    background: white;
    padding: 40px;
    border-radius: 20px;
    max-width: 450px;
    text-align: center;
    position: relative;
}

.vip-icon,
.user-icon {
    font-size: 60px;
    margin-bottom: 20px;
}

.vip-modal-content h2,
.user-center-content h2 {
    color: #ff6b35;
    margin-bottom: 15px;
}

.vip-desc,
.user-desc {
    color: #666;
    margin-bottom: 25px;
    line-height: 1.8;
}

.vip-features,
.user-benefits {
    margin-bottom: 25px;
    text-align: left;
}

.vip-feature,
.user-benefit {
    padding: 12px 15px;
    background: #fff8f0;
    border-radius: 10px;
    margin-bottom: 8px;
    color: #555;
}

.vip-price {
    background: linear-gradient(135deg, #ff8c42 0%, #ff6b35 100%);
    padding: 20px;
    border-radius: 12px;
    color: white;
    margin-bottom: 25px;
}

.vip-price .price {
    font-size: 36px;
    font-weight: bold;
}

.vip-price .period {
    font-size: 16px;
}

.vip-button {
    background: linear-gradient(135deg, #ff8c42 0%, #ff6b35 100%);
    color: white;
    border: none;
    padding: 15px 50px;
    border-radius: 25px;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    width: 100%;
    transition: all 0.3s;
}

.vip-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 107, 53, 0.4);
}

/* 用户状态 */
.user-status {
    padding: 15px;
    background: #fff8f0;
    border-radius: 10px;
    margin-top: 20px;
}

.user-status.vip-status {
    background: linear-gradient(135deg, #ffd700 0%, #ffaa00 100%);
    color: #fff;
    font-weight: bold;
    font-size: 16px;
}

/* 响应式 */
@media (max-width: 768px) {
    .copy-share-topbar {
        padding: 12px 15px;
    }
    
    .copy-share-logo {
        font-size: 16px;
    }
    
    .copy-share-nav-container {
        top: 58px;
    }
    
    .copy-share-nav-container,
    .copy-share-list {
        padding: 15px;
    }
    
    .copy-share-card-inner {
        padding: 20px;
    }
    
    .copy-share-images {
        grid-template-columns: repeat(3, 1fr);
        gap: 8px;
    }
    
    /* 移动端按钮仍然并排显示 */
    .copy-share-actions {
        flex-direction: row;
        gap: 10px;
    }
    
    .copy-share-btn {
        flex: 1;
        padding: 12px 15px;
        font-size: 14px;
    }
    
    .copy-share-float-vip {
        bottom: 20px;
        right: 20px;
        padding: 12px 20px;
        font-size: 14px;
    }
    
    .copy-share-user-actions {
        gap: 8px;
    }
    
    .copy-share-user-tag,
    .copy-share-login-btn,
    .copy-share-user-center-btn {
        padding: 5px 10px;
        font-size: 12px;
    }
}

@media (max-width: 480px) {
    .copy-share-images {
        grid-template-columns: repeat(3, 1fr);
        gap: 6px;
    }
    
    .copy-share-nav a {
        padding: 8px 18px;
        font-size: 13px;
    }
}
