* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

a {
    text-decoration: none;
    color: #333;
}

body {
    font-family: 'PingFang SC', Arial, sans-serif;
    line-height: 1.6;
    color: #333;
}

.clearfix::after {
    content: "";
    display: block;
    clear: both;
    height: 0;
    visibility: hidden;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.ellipsis {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.float-left {
    float: left;
}

.float-right {
    float: right;
}

/* Header Section */
.header {
    width: 100%;
    height: 350px;
     background-size: cover;
    position: relative;
}

.header-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
    z-index: 1;
}

.header-stats {
    position: relative;
    z-index: 2;
    padding-top: 200px;
    color: #fff;
}

.header-stats ul {
    list-style: none;
    display: flex;
    justify-content: space-between;
}

.header-stats .stat-item {
    width: 25%;
    text-align: center;
    margin-bottom: 10px;
}

.header-stats .stat-title {
    font-size: 18px;
    color: #e0e0e0;
    margin-bottom: 10px;
}

.header-stats .stat-value {
    font-size: 26px;
    font-weight: bold;
}

/* Profile Section */
.profile {
    background: #fff;
    padding: 60px 0 20px 0;
    position: relative;
}

.profile-pic {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    overflow: hidden;
    position: absolute;
    top: -60px;
    left: 50%;
    transform: translateX(-50%);
    border: 5px solid #fff;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 3;
}

.profile-pic img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.profile-name {
    text-align: center;
    font-size: 20px;
    font-weight: bold;
    margin-bottom: 20px;
}

.profile-contact {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.profile-contact .contact-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
}

.profile-contact .contact-icon {
    width: 22px;
    height: 22px;
    background: url(/assets/new/img/icon-ewm.png) no-repeat center;
    cursor: pointer;
    position: relative;
}

.profile-contact .contact-qr {
    display: none;
    position: absolute;
    width: 160px;
    height: 160px;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
    padding: 10px;
    z-index: 100;
    top: -90px;
    left: 30px;
}

.profile-contact .contact-qr img {
    width: 140px;
}

.profile-contact .contact-icon:hover .contact-qr {
    display: block;
}

.profile-tags {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.profile-tags .tag {
    padding: 5px 15px;
    border: 1px solid #999;
    border-radius: 20px;
    font-size: 12px;
    color: #999;
}

.profile-tabs {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
    margin: 0 auto;
}

.profile-tabs .tab-item {
    padding: 10px 15px;
    font-size: 16px;
    cursor: pointer;
    border-bottom: 2px solid transparent;
}

.profile-tabs .tab-item.active {
    border-bottom: 2px solid #333;
}
.profile-tabs .tab-item .bottom_line{
    width: 50%;border: 1px solid #333;margin: 0 auto;
    margin-top: 10px;

}


/* 自定义搜索框样式 */
.search-bar {
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    border-radius: 25px;
}

#search-input {
    width: 300px;
    padding: 10px 15px;
    border: none;
    border-radius: 10px 0 0 10px;
    outline: none;
    font-size: 16px;
    transition: all 0.3s ease;
}

#search-input:focus {
    box-shadow: inset 0 0 5px rgba(0, 123, 255, 0.5);
}

#search-button {
    /*padding:2px 20px 10px 20px;*/ 
    border: none;
    border-radius: 0 10px 10px 0;
    background-color: #3c3d3f;
    color: white;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

#search-button:hover {
    background-color: #e3e3e3;
    color:#333;
}

#search-button.layui-btn-disabled {
    background-color: #6c757d;
    cursor: not-allowed;
}

@media (max-width: 480px) {
    #search-input {
        width: 100%;
    }
}

/* Portfolio Section */
.portfolio {
    background: #f5f5f5;
    padding: 20px 0;
}

.portfolio-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.portfolio-item {
    width: calc(25% - 15px);
    background: #fff;
    border: 1px solid #eee;
    border-radius: 4px;
    overflow: hidden;
}

.portfolio-item .image {
    position: relative;
    padding-top: 60%;
    overflow: hidden;
}

.portfolio-item .image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.portfolio-item .image:hover img {
    transform: scale(1.1);
}

.portfolio-item h3 {
    font-size: 16px;
    margin: 10px;
    text-align: center;
}

.portfolio-item .meta {
    display: flex;
    justify-content: space-between;
   padding:5px 15px;
    font-size: 16px;
    color: #999;
}

.portfolio-item .meta .likes {
    cursor: pointer;
}

.portfolio-item .meta .likes.liked {
    color: #ff8d1c;
}

.portfolio-item .author {
    display: flex;
    align-items: center;
    padding: 5px 10px 10px 10px;
    gap: 10px;
    display: none;
}

.portfolio-item .author img {
    width: 32px;
    height: 32px;
    border-radius: 50%;
}

.portfolio-item .author .name {
    flex: 1;
    font-size: 14px;
}

.portfolio-item .author .contact-icon {
    width: 22px;
    height: 22px;
    background: url(/assets/new/img/icon-ewm.png) no-repeat center;
    cursor: pointer;
}

.pagination {
    text-align: center;
    margin: 20px 0;
    width: 100%;
}

.pagination ul {
    list-style: none;
    display: flex;
    gap: 5px;
    justify-content: center;
    flex-wrap: wrap;
}

.pagination li {
    padding: 5px 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.pagination li.active {
    background: #333;
    color: #fff;
}

.pagination li.active a {
    color: #fff;
}

.pagination li.disabled {
    color: #999;
    cursor: not-allowed;
}

.pagination li.disabled a {
    color: #999;
    cursor: not-allowed;
    text-decoration: none;
}

/* Footer Section */
.footer {
    background: #1a1a1a;
    color: #fff;
    padding: 40px 0;
}

.footer-container {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: space-between;
}

.footer-about, .footer-links, .footer-social {
    flex: 1;
    padding: 0 15px;
    min-width: 250px;
}

.footer-title {
    font-size: 16px;
    font-weight: bold;
    margin-bottom: 20px;
}

.footer-text {
    font-size: 14px;
    color: #999;
}

.footer-links a {
    display: block;
    color: #999;
    text-decoration: none;
    margin-bottom: 10px;
}

.footer-links a:hover {
    color: #ff8d1c;
}

.footer-social .social-icons {
    display: flex;
    gap: 10px;
}

.footer-social .social-icon {
    width: 40px;
    height: 40px;

    position: relative;
}

.footer-social .social-icon:hover .qr-popup {
    display: block;
}

.footer-social .qr-popup {
    display: none;
    position: absolute;
    top: -160px;
    left: -100px;
    width: 300px;
    background: #fff;
    border-radius: 10px;
    padding: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
    z-index: 100;
    justify-content: space-between;
}

.footer-social .qr-popup img {
    width: 80px;
    margin: 0 10px;
}

.footer-social .qr-popup .qr-text {
    color: #000;
    font-size: 12px;
    text-align: center;
}

.footer-bottom {
    background: #262626;
    text-align: center;
    padding: 10px 0;
    font-size: 12px;
    color: #999;
}

.footer-bottom a {
    color: #999;
    text-decoration: none;
}

.footer-bottom a:hover {
    color: #ff8d1c;
}



.qrmask {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: none;
    z-index: 1000;
}
.qrcode-container {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    padding: 20px;
    border-radius: 10px;
    display: none;
    z-index: 1001;
    text-align: center;
}
.qrcode-container img {
    max-width: 200px;
    cursor: pointer;
}



/* Contact Form */
.contact-form {
    display: none;
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
    width: 100%;
    max-width: 400px;
}

.contact-form .form-item {
    margin-bottom: 15px;
}

.contact-form .form-item label {
    display: inline-block;
    width: 80px;
    font-size: 14px;
}

.contact-form .form-item input,
.contact-form .form-item textarea {
    width: 100%;
    max-width: 300px;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.contact-form .form-buttons {
    text-align: center;
}

.contact-form .form-button {
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    margin: 0 10px;
}

.contact-form .form-button.cancel {
    background: #666;
    color: #fff;
}

.contact-form .form-button.submit {
    background: #ff8d1c;
    color: #fff;
}

/* Responsive Design */
@media (max-width: 768px) {


    .header {
        width: 100%;
        height: 250px;
        background-size: cover;
        position: relative;
    }

    .header-stats {
        padding-top: 80px;
    }

    .header-stats .stat-item {
        width: 50%;
    }

    .profile {
        background: #fff;
        padding: 60px 0 0px 0;
        position: relative;
    }
    .profile-pic {
        width: 80px;
        height: 80px;
        top: -30px;
    }

    .profile-name {
        font-size: 18px;
    }

    .profile-contact {
        gap: 10px;
    }

    .contact-icon {
      display: none;
    }


    .profile-contact .contact-icon2 {
        width: 22px;
        height: 22px;
        background: url(/assets/new/img/icon-ewm.png) no-repeat center;
        cursor: pointer;
        position: relative;
    }


    .profile-tabs .tab-item {
        font-size: 14px;
        padding: 8px 10px;
    }

    .profile-tabs .tab-item a {
        text-decoration-line: none;
    }

    .portfolio-item {
        width: calc(50% - 10px);
    }




    .footer-container {
        flex-direction: column;
        display: none;
    }

     .footer-links, .footer-social {
        min-width: auto;
        display: flex;

    }
    .footer-about {
        min-width: auto;
        display: block;

    }

    .footer-social .social-icon {
        width: 40px;
        height: 40px;
        position: relative;
        left: 10px;
    }

    .footer-links a {
        display: block;
        color: #999;
        text-decoration: none;
        margin-bottom: 10px;
        padding: 0 5px;
    }

    .footer-social .qr-popup {
        left: -60px;
        width: 200px;
    }

    .footer-social .qr-popup img {
        width: 60px;
    }

    .contact-form {
        max-width: 100%;
    }

    .contact-form .form-item input,
    .contact-form .form-item textarea {
        max-width: 100%;
    }

    .profile-contact .contact-qr {
        left: 0;
        top: -100px;
        width: 120px;
        height: 120px;
    }

    .footer {
        background: #1a1a1a;
        color: #fff;
        padding: 0px 0;
    }

    .footer-bottom{
        display: none;
    }
}

@media (max-width: 480px) {
    .header-stats .stat-item {
        width: 100%;
    }

    .portfolio-item {
        width: calc(50% - 10px);
    }

    .pagination li {
        padding: 5px 8px;
        font-size: 12px;
    }

    .header-stats .stat-value {
        font-size: 18px;
        font-weight: bold;
    }
}