.crystal-bg-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: linear-gradient(135deg, 
        rgba(52, 152, 219, 0.08) 0%, 
        rgba(155, 89, 182, 0.08) 25%,
        rgba(255, 255, 255, 0.92) 50%,
        rgba(46, 204, 113, 0.06) 75%,
        rgba(231, 76, 60, 0.08) 100%);
    overflow: hidden;
}

.crystal-floating-shapes {
    position: absolute;
    width: 100%;
    height: 100%;
}

.crystal-shape {
    position: absolute;
    opacity: 0.08;
    animation: crystalFloat 15s ease-in-out infinite;
}

.crystal-circle {
    width: 90px;
    height: 90px;
    background: linear-gradient(135deg, #3498db, #9b59b6);
    border-radius: 50%;
    top: 15%;
    left: 8%;
}

.crystal-triangle {
    width: 0;
    height: 0;
    border-left: 45px solid transparent;
    border-right: 45px solid transparent;
    border-bottom: 80px solid #2ecc71;
    top: 65%;
    right: 12%;
    animation-delay: 3s;
}

.crystal-square {
    width: 70px;
    height: 70px;
    background: linear-gradient(45deg, #e74c3c, #f39c12);
    transform: rotate(45deg);
    top: 35%;
    left: 85%;
    animation-delay: 5s;
}

.crystal-hexagon {
    width: 70px;
    height: 40.41px;
    background: #9b59b6;
    position: relative;
    top: 85%;
    left: 25%;
    animation-delay: 7s;
}

.crystal-hexagon:before,
.crystal-hexagon:after {
    content: "";
    position: absolute;
    width: 0;
    border-left: 35px solid transparent;
    border-right: 35px solid transparent;
}

.crystal-hexagon:before {
    bottom: 100%;
    border-bottom: 20.21px solid #9b59b6;
}

.crystal-hexagon:after {
    top: 100%;
    border-top: 20.21px solid #9b59b6;
}

@keyframes crystalFloat {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    25% { transform: translateY(-25px) rotate(90deg); }
    50% { transform: translateY(-50px) rotate(180deg); }
    75% { transform: translateY(-25px) rotate(270deg); }
}

.crystal-main-content {
    padding: 20px 0;
    min-height: 100vh;
    position: relative;
}

.crystal-content-layout {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
    align-items: start;
}

.crystal-content-primary {
    background: rgba(255, 255, 255, 0.96);
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(52, 152, 219, 0.12);
    border: 1px solid rgba(52, 152, 219, 0.15);
    overflow: hidden;
}

.crystal-content-sidebar {
    display: flex;
    flex-direction: column;
    gap: 20px;
    position: sticky;
    top: 20px;
    align-self: start;
}

.crystal-page-content {
    padding: 0;
}

.crystal-article-wrapper {
    padding: 0;
}

.crystal-page-header {
    padding: 45px 35px;
    background: linear-gradient(135deg, 
        #3498db 0%, 
        #2ecc71 50%,
        #9b59b6 100%);
    color: #fff;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.crystal-header-decoration {
    position: absolute;
    top: -60%;
    right: -25%;
    width: 250px;
    height: 250px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.12) 0%, transparent 70%);
    border-radius: 50%;
    animation: crystalPulse 5s ease-in-out infinite;
}

@keyframes crystalPulse {
    0%, 100% { transform: scale(1) rotate(0deg); opacity: 0.4; }
    50% { transform: scale(1.3) rotate(180deg); opacity: 0.1; }
}

.crystal-header-content {
    position: relative;
    z-index: 2;
}

.crystal-page-title {
    font-size: 34px;
    font-weight: 700;
    margin: 0 0 18px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    text-shadow: 0 3px 6px rgba(0, 0, 0, 0.15);
}

.crystal-page-title i {
    font-size: 38px;
    color: rgba(255, 255, 255, 0.95);
}

.crystal-page-subtitle {
    font-size: 17px;
    margin: 0;
    opacity: 0.92;
    line-height: 1.7;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.crystal-tab-nav {
    background: rgba(255, 255, 255, 0.08) !important;
    border: none !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15) !important;
}

.crystal-tab-item {
    background: transparent !important;
    border: none !important;
    position: relative;
}

.crystal-tab-link {
    color: rgba(255, 255, 255, 0.85) !important;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 16px 28px;
    transition: all 0.3s ease;
    border-radius: 10px 10px 0 0;
}

.crystal-tab-item:hover .crystal-tab-link {
    color: #fff !important;
    background: rgba(255, 255, 255, 0.12);
}

.crystal-tab-item.layui-this .crystal-tab-link {
    color: #000 !important;
    background: rgba(255, 255, 255, 0.18);
    font-weight: 600;
}

.crystal-article-content {
    padding: 35px;
    background: rgba(255, 255, 255, 0.85);
}

.crystal-article-grid {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.crystal-article-item {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    margin-bottom: 0;
    border-radius: 12px;
    overflow: hidden;
}

.crystal-article-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(52, 152, 219, 0.15);
}

.crystal-article-card {
    background: #fff;
    border-radius: 12px;
    padding: 25px;
    border: none;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    border-left: 4px solid transparent;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    margin-bottom: 20px;
    position: relative;
}

.crystal-article-item:hover .crystal-article-card {
    background: #fff;
    border-left-color: #3498db;
    box-shadow: 0 8px 30px rgba(52, 152, 219, 0.12);
}

.crystal-article-item:last-child .crystal-article-card {
    margin-bottom: 0;
}

.crystal-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 15px;
}

.crystal-article-title {
    font-size: 19px;
    font-weight: 600;
    color: #2c3e50;
    text-decoration: none;
    line-height: 1.6;
    transition: all 0.3s ease;
    flex: 1;
    margin-right: 15px;
    display: block;
    position: relative;
}

.crystal-article-title:hover {
    color: #3498db;
}

.crystal-article-title::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #3498db, #2ecc71);
    transition: width 0.3s ease;
}

.crystal-article-title:hover::after {
    width: 100%;
}

.crystal-badge-group {
    display: flex;
    gap: 8px;
    flex-shrink: 0;
    align-items: flex-start;
}

.crystal-badge {
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    line-height: 1.2;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.crystal-badge-top {
    background: linear-gradient(135deg, #e74c3c, #c0392b);
}

.crystal-badge-new {
    background: linear-gradient(135deg, #2ecc71, #27ae60);
}

.crystal-badge-hot {
    background: linear-gradient(135deg, #f39c12, #e67e22);
}

.crystal-article-meta {
    display: flex;
    align-items: center;
    gap: 20px;
    color: #7f8c8d;
    font-size: 14px;
    flex-wrap: wrap;
}

.crystal-meta-item {
    display: flex;
    align-items: center;
    gap: 6px;
    transition: color 0.2s ease;
}

.crystal-meta-item:hover {
    color: #3498db;
}

.crystal-meta-item i {
    color: #3498db;
    font-size: 15px;
}

.crystal-empty-container {
    text-align: center;
    padding: 100px 20px;
    color: #95a5a6;
}

.crystal-empty-icon {
    margin-bottom: 25px;
}

.crystal-empty-icon i {
    font-size: 70px;
    opacity: 0.4;
    color: #3498db;
}

.crystal-empty-text {
    font-size: 18px;
    margin: 0;
    font-weight: 500;
}

.crystal-sidebar-card {
    background: rgba(255, 255, 255, 0.96);
    border-radius: 18px;
    box-shadow: 0 8px 32px rgba(52, 152, 219, 0.1);
    border: 1px solid rgba(52, 152, 219, 0.12);
    overflow: hidden;
    transition: all 0.3s ease;
}

.crystal-sidebar-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 45px rgba(52, 152, 219, 0.18);
}

.crystal-sidebar-card .crystal-card-header {
    padding: 22px 28px;
    background: linear-gradient(135deg, 
        #3498db 0%, 
        #2ecc71 100%);
    color: #fff;
}

.crystal-card-title {
    margin: 0;
    font-size: 17px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 12px;
}

.crystal-card-title i {
    font-size: 19px;
}

.crystal-card-content {
    padding: 28px;
    background: rgba(255, 255, 255, 0.8);
}

.crystal-profile-info {
    text-align: center;
    margin-bottom: 28px;
}

.crystal-avatar-wrapper {
    position: relative;
    display: inline-block;
    margin-bottom: 18px;
}

.crystal-avatar {
    position: relative;
    z-index: 2;
}

.crystal-avatar img {
    width: 85px;
    height: 85px;
    border-radius: 50%;
    border: 4px solid rgba(52, 152, 219, 0.2);
    transition: all 0.3s ease;
}

.crystal-avatar-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 110px;
    height: 110px;
    background: radial-gradient(circle, rgba(52, 152, 219, 0.25) 0%, transparent 70%);
    border-radius: 50%;
    animation: crystalGlow 4s ease-in-out infinite;
    z-index: 1;
}

@keyframes crystalGlow {
    0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 0.6; }
    50% { transform: translate(-50%, -50%) scale(1.15); opacity: 0.3; }
}

.crystal-avatar:hover img {
    transform: scale(1.08);
    border-color: rgba(52, 152, 219, 0.4);
}

.crystal-profile-name {
    font-size: 19px;
    font-weight: 600;
    color: #2c3e50;
    margin: 0 0 12px 0;
}

.crystal-bio {
    color: #7f8c8d;
    font-size: 15px;
    line-height: 1.7;
    margin: 0;
}

.crystal-profile-stats {
    display: flex;
    justify-content: space-around;
    border-top: 1px solid rgba(52, 152, 219, 0.15);
    padding-top: 22px;
    gap: 12px;
}

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

.crystal-stat-number {
    display: block;
    font-size: 26px;
    font-weight: 700;
    background: linear-gradient(135deg, #3498db, #2ecc71);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 6px;
}

.crystal-stat-label {
    font-size: 13px;
    color: #95a5a6;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    font-weight: 500;
}

.crystal-tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.crystal-tag-item {
    background: rgba(52, 152, 219, 0.08);
    color: #3498db;
    padding: 10px 16px;
    border-radius: 25px;
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.3s ease;
    border: 1px solid rgba(52, 152, 219, 0.15);
}

.crystal-tag-item:hover {
    background: linear-gradient(135deg, #3498db, #2ecc71);
    color: #fff;
    border-color: transparent;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(52, 152, 219, 0.25);
}

.crystal-site-list {
    max-height: 420px;
    overflow-y: auto;
    overflow-x: hidden;

}

.crystal-site-list::-webkit-scrollbar {
    width: 6px;
}

.crystal-site-list::-webkit-scrollbar-track {
    background: rgba(52, 152, 219, 0.05);
    border-radius: 3px;
}

.crystal-site-list::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #3498db, #2ecc71);
    border-radius: 3px;
}

.crystal-site-item {
    margin-bottom: 16px;
}

.crystal-site-link {
    text-decoration: none;
    color: inherit;
    display: block;
    transition: all 0.3s ease;
}

.crystal-site-info {
    padding: 16px;
    background: rgba(52, 152, 219, 0.04);
    border-radius: 12px;
    border-left: 3px solid #3498db;
    transition: all 0.3s ease;
}

.crystal-site-link:hover .crystal-site-info {
    background: rgba(52, 152, 219, 0.08);
    border-left-width: 5px;
    transform: translateX(6px);
}

.crystal-site-title {
    font-size: 16px;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 10px;
    line-height: 1.5;
}

.crystal-site-meta {
    display: flex;
    align-items: center;
    gap: 16px;
    color: #95a5a6;
    font-size: 13px;
}

.crystal-more-sites {
    text-align: center;
    margin-top: 22px;
    padding-top: 22px;
    border-top: 1px solid rgba(52, 152, 219, 0.15);
}

.crystal-more-link {
    color: #3498db;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 12px 22px;
    border-radius: 25px;
    background: rgba(52, 152, 219, 0.08);
    border: 1px solid rgba(52, 152, 219, 0.15);
}

.crystal-more-link:hover {
    background: linear-gradient(135deg, #3498db, #2ecc71);
    color: #fff;
    border-color: transparent;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(52, 152, 219, 0.25);
}

.crystal-empty-sites {
    text-align: center;
    padding: 45px 0;
    color: #95a5a6;
}

.crystal-empty-sites i {
    font-size: 45px;
    margin-bottom: 12px;
    opacity: 0.4;
    color: #3498db;
}

@media (max-width: 1024px) {
    .crystal-content-layout {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .crystal-content-sidebar {
        order: 2;
        position: static;
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
        gap: 20px;
    }
}

@media (max-width: 768px) {
    .crystal-main-content {
        padding: 10px 0;
    }

    .crystal-content-layout {
        gap: 15px;
        padding: 0 15px;
    }

    .crystal-page-header {
        padding: 30px 22px;
    }

    .crystal-page-title {
        font-size: 28px;
        flex-direction: column;
        gap: 10px;
    }

    .crystal-article-content {
        padding: 22px;
    }

    .crystal-article-card {
        padding: 18px;
        margin-bottom: 15px;
    }

    .crystal-card-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
        margin-bottom: 12px;
    }

    .crystal-article-title {
        margin-right: 0;
        margin-bottom: 10px;
        font-size: 17px;
    }

    .crystal-badge-group {
        align-self: flex-start;
    }

    .crystal-article-meta {
        gap: 14px;
        flex-wrap: wrap;
    }

    .crystal-card-content {
        padding: 22px;
    }

    .crystal-profile-stats {
        gap: 10px;
    }

    .crystal-stat-number {
        font-size: 22px;
    }

    .crystal-content-sidebar {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .crystal-content-layout {
        padding: 0 10px;
    }

    .crystal-page-header {
        padding: 25px 18px;
    }

    .crystal-page-title {
        font-size: 24px;
    }

    .crystal-article-content {
        padding: 18px;
    }

    .crystal-article-card {
        padding: 15px;
        margin-bottom: 12px;
    }

    .crystal-card-content {
        padding: 18px;
    }

    .crystal-avatar img {
        width: 65px;
        height: 65px;
    }

    .crystal-avatar-glow {
        width: 85px;
        height: 85px;
    }

    .crystal-stat-number {
        font-size: 20px;
    }

    .crystal-tag-item {
        font-size: 12px;
        padding: 8px 14px;
    }

    .crystal-site-info {
        padding: 14px;
    }

    .crystal-site-title {
        font-size: 15px;
    }

    .crystal-article-title {
        font-size: 16px;
    }

    .crystal-article-meta {
        font-size: 13px;
        gap: 12px;
    }
}

.crystal-article-title:focus,
.crystal-tag-item:focus,
.crystal-site-link:focus,
.crystal-more-link:focus {
    outline: 2px solid #3498db;
    outline-offset: 2px;
    border-radius: 4px;
}

.crystal-loading {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 50px;
    color: #3498db;
}

.crystal-loading::after {
    content: '';
    width: 24px;
    height: 24px;
    border: 3px solid rgba(52, 152, 219, 0.2);
    border-top: 3px solid #3498db;
    border-radius: 50%;
    animation: crystalSpin 1s linear infinite;
}

@keyframes crystalSpin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}
.layui-tab-title li {
    display: inline-block;
    vertical-align: middle;
    font-size: 14px;
    transition: all .2s;
    -webkit-transition: all .2s;
    position: relative;
    line-height: unset;
    min-width: 65px;
    padding: 0 15px;
    text-align: center;
    cursor: pointer;
}
.crystal-article-actions {
    margin-top: 15px;
    text-align: right;
}

.crystal-read-more-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: linear-gradient(135deg, #3498db, #2ecc71);
    color: #fff;
    text-decoration: none;
    border-radius: 25px;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    border: none;
    box-shadow: 0 4px 15px rgba(52, 152, 219, 0.2);
}

.crystal-read-more-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(52, 152, 219, 0.3);
    color: #fff;
    text-decoration: none;
}

.crystal-read-more-btn i {
    font-size: 16px;
    transition: transform 0.3s ease;
}

.crystal-read-more-btn:hover i {
    transform: translateX(3px);
}

@media (max-width: 768px) {
    .crystal-article-actions {
        text-align: center;
        margin-top: 12px;
    }

    .crystal-read-more-btn {
        padding: 8px 16px;
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .crystal-read-more-btn {
        padding: 7px 0px;
        font-size: 12px;
        width: 100%;
        justify-content: center;
    }
}
