.share-page {
    padding: 34px 0;
    background: #f8fafc;
}

.share-container {
    width: 100%;
    max-width: 1500px;
    margin: 0 auto;
    padding: 0 28px;
}

.share-header {
    background: linear-gradient(135deg, #0a2472, #123aa8);
    color: #fff;
    border-radius: 20px;
    padding: 24px 28px;
    margin-bottom: 20px;
    box-shadow: 0 12px 28px rgba(10, 36, 114, .16);
}

.share-header h1 {
    font-size: 28px;
    font-weight: 900;
    margin: 0 0 7px;
    line-height: 1.25;
}

.share-header p {
    margin: 0;
    opacity: .92;
    font-size: 14px;
    line-height: 1.6;
}

.share-category-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 18px;
}

.share-category-item {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    border: 1px solid #dbe3ef;
    background: #fff;
    color: #24324b;
    padding: 8px 14px;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 800;
    text-decoration: none;
    transition: all .2s ease;
    box-shadow: 0 4px 12px rgba(15, 23, 42, .04);
}

.share-category-item:hover,
.share-category-item.active {
    background: #0a2472;
    color: #fff;
    border-color: #0a2472;
    text-decoration: none;
    transform: translateY(-1px);
}

.share-sections {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.share-category-section {
    background: #fff;
    border: 1px solid #e7edf5;
    border-radius: 20px;
    box-shadow: 0 10px 26px rgba(15, 23, 42, .055);
    overflow: hidden;
}

.share-category-section-head {
    padding: 16px 20px;
    background: linear-gradient(135deg, #ffffff, #f4f7ff);
    border-bottom: 1px solid #edf2f7;
}

.share-category-title {
    font-size: 23px;
    font-weight: 900;
    color: #0f172a;
    margin: 0;
    line-height: 1.25;
}

.share-category-description {
    color: #64748b;
    margin: 6px 0 0;
    line-height: 1.5;
    font-size: 13px;
}

.share-category-body {
    padding: 14px 16px 16px;
}

.share-category-block-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.share-material-card {
    width: 100%;
    background: #fff;
    border: 1px solid #e7edf5;
    border-radius: 16px;
    padding: 14px;
    box-shadow: 0 5px 15px rgba(15, 23, 42, .035);
    overflow: visible;
    min-width: 0;
    transition: all .18s ease;
}

.share-material-card:hover {
    border-color: #d7e1ef;
    box-shadow: 0 8px 18px rgba(15, 23, 42, .055);
}

.share-material-main {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 14px;
    align-items: center;
}

.share-material-body {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.share-material-card h3 {
    font-size: 18px;
    font-weight: 900;
    color: #0f172a;
    margin: 0;
    line-height: 1.3;
    word-break: break-word;
}

.share-material-subtitle {
    color: #64748b;
    font-size: 13px;
    margin: 0;
    line-height: 1.45;
}

.share-text-box {
    color: #334155;
    line-height: 1.55;
    white-space: pre-line;
    max-height: 110px;
    overflow-y: auto;
    font-size: 14px;
    padding: 8px 0 8px 10px;
    border-left: 3px solid #dbeafe;
}

.share-audio-frame {
    width: 100%;
    max-width: 560px;
    min-width: 260px;
}

.share-audio-frame audio {
    width: 100%;
    display: block;
    height: 38px;
}

.share-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    align-items: center;
    gap: 7px;
    min-width: 180px;
}

.share-action-btn {
    border: none;
    border-radius: 10px;
    padding: 8px 12px;
    font-weight: 900;
    cursor: pointer;
    transition: all .18s ease;
    font-size: 13px;
    line-height: 1.2;
    white-space: nowrap;
}

.share-action-btn:hover {
    transform: translateY(-1px);
}

.btn-copy-share {
    background: #e0f2fe;
    color: #075985;
}

.btn-native-share {
    background: #dcfce7;
    color: #166534;
}

.btn-download-share {
    background: #fff7ed;
    color: #9a3412;
}

.download-menu {
    position: relative;
    display: inline-block;
}

.download-list {
    display: none;
    position: absolute;
    right: 0;
    bottom: 36px;
    min-width: 185px;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    box-shadow: 0 12px 30px rgba(15, 23, 42, .14);
    padding: 7px;
    z-index: 50;
}

.download-menu.open .download-list {
    display: block;
}

.download-list a,
.download-list button {
    display: block;
    width: 100%;
    border: 0;
    background: transparent;
    color: #334155;
    padding: 8px 10px;
    text-align: left;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
}

.download-list a:hover,
.download-list button:hover {
    background: #f1f5f9;
}

.share-video-card .share-material-main {
    display: block;
}

.share-video-card .share-actions {
    justify-content: flex-end;
    margin-top: 10px;
    min-width: 0;
}

.share-video-wrap {
    display: grid;
    grid-template-columns: minmax(260px, 520px) minmax(0, 1fr);
    gap: 14px;
    align-items: start;
    margin-top: 4px;
}

.share-video-frame {
    width: 100%;
    max-width: 520px;
    background: #020617;
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid #dbe3ef;
}

.share-video-frame video {
    width: 100%;
    max-height: 330px;
    display: block;
    object-fit: contain;
    background: #020617;
}

.share-video-info {
    min-width: 0;
    color: #64748b;
    font-size: 13px;
    line-height: 1.55;
}

.share-video-label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #fff1f2;
    color: #be123c;
    border-radius: 999px;
    padding: 5px 10px;
    font-size: 12px;
    font-weight: 900;
    margin-bottom: 8px;
}

.share-empty {
    background: #fff;
    border-radius: 18px;
    padding: 26px;
    text-align: center;
    color: #64748b;
    border: 1px solid #e2e8f0;
    box-shadow: 0 10px 28px rgba(15, 23, 42, .05);
}

.df-share-card {
    text-align: left;
}

.df-share-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 14px;
}

.df-share-head-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.df-share-badge {
    width: 44px;
    height: 44px;
    border-radius: 14px;
    background: #0a2472;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}

.df-share-head-title {
    font-weight: 900;
    color: #0f172a;
    font-size: 18px;
}

.df-share-head-sub {
    color: #64748b;
    font-size: 13px;
}

.df-share-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 9px;
    margin-bottom: 14px;
}

.df-share-btn {
    border: 1px solid #e2e8f0;
    background: #fff;
    color: #0f172a;
    border-radius: 14px;
    height: 48px;
    cursor: pointer;
    transition: all .2s ease;
    font-size: 18px;
}

.df-share-btn:hover {
    background: #f8fafc;
    transform: translateY(-1px);
}

.df-share-row {
    display: flex;
    gap: 8px;
    align-items: stretch;
}

.df-share-row textarea {
    width: 100%;
    min-height: 100px;
    resize: vertical;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 10px 12px;
    color: #334155;
    font-size: 13px;
    outline: none;
    line-height: 1.5;
}

.df-share-copy {
    min-width: 48px;
    border: none;
    background: #0a2472;
    color: #fff;
    border-radius: 12px;
    cursor: pointer;
}

.df-share-status {
    min-height: 20px;
    margin-top: 8px;
    font-size: 13px;
    font-weight: 700;
    color: #166534;
}

@media (max-width: 991px) {
    .share-container {
        padding: 0 18px;
    }

    .share-material-main {
        grid-template-columns: 1fr;
    }

    .share-actions {
        justify-content: flex-start;
        min-width: 0;
    }

    .share-audio-frame {
        max-width: 100%;
    }

    .share-video-wrap {
        grid-template-columns: 1fr;
    }

    .share-video-frame {
        max-width: 100%;
    }
}

@media (max-width: 767px) {
    .share-page {
        padding: 26px 0;
    }

    .share-container {
        padding: 0 12px;
    }

    .share-header {
        padding: 20px;
        border-radius: 18px;
    }

    .share-header h1 {
        font-size: 23px;
    }

    .share-category-list {
        overflow-x: auto;
        flex-wrap: nowrap;
        padding-bottom: 4px;
        margin-bottom: 14px;
    }

    .share-category-item {
        white-space: nowrap;
        padding: 8px 13px;
    }

    .share-category-section-head {
        padding: 14px 15px;
    }

    .share-category-title {
        font-size: 20px;
    }

    .share-category-body {
        padding: 10px;
    }

    .share-material-card {
        padding: 12px;
        border-radius: 14px;
    }

    .share-material-card h3 {
        font-size: 16px;
    }

    .share-audio-frame {
        min-width: 0;
    }

    .share-audio-frame audio {
        height: 38px;
    }

    .share-video-frame video {
        max-height: 280px;
    }
}

@media (max-width: 576px) {
    .df-share-grid {
        grid-template-columns: repeat(4, 1fr);
    }

    .share-video-frame video {
        max-height: 240px;
    }
}
