/* 设计师团队页面样式（主页主题） */
html, body.designer-page {
    height: 100%;
}
body.designer-page {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    padding-top: 64px !important;
    padding-bottom: 0 !important;
}
body.designer-page > header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.18) !important;
}
body.designer-page > .designers-hero,
body.designer-page > .designers-page-container {
    flex-shrink: 0;
}
body.designer-page > .designers-page-container {
    flex: 1 0 auto;
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    padding: 0 20px !important;
    box-sizing: border-box;
}

/* 网站底部 footer */
.site-footer {
    flex-shrink: 0;
    margin-top: 24px;
    background: #1a1a1a;
    border-top: 3px solid #2f8a64;
}
.footer-bottom {
    padding: 5px 16px;
    text-align: center;
    color: rgba(224, 224, 224, 0.65);
    font-size: 13px;
    line-height: 1.4;
}
.footer-bottom a {
    color: inherit;
    text-decoration: none;
}
.footer-bottom a:hover {
    text-decoration: underline;
}

.designers-section {
    padding: 0 0 0;
}

/* 顶部 hero 区：绿色色块 + 城市天际线剪影（拉通全屏，独立于 .container） */
.designers-hero {
    position: relative;
    width: 100%;
    margin-top: -40px;
    padding-top: 48px;
    background: #277a56;
    overflow: hidden;
    box-shadow: none;
}

/* 标题/副标题居中容器，受 .container 宽度限制 */
.designers-hero-inner {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    padding: 32px 20px 100px;
    text-align: center;
    box-sizing: border-box;
    animation: designHeroIn .7s ease both;
}
@keyframes designHeroIn {
    from { opacity: 0; transform: translateY(18px); }
    to   { opacity: 1; transform: none; }
}
.designers-title { animation: designTitleIn .7s ease .12s both; }
.designers-subtitle { animation: designSubIn .7s ease .28s both; }
@keyframes designTitleIn {
    from { opacity: 0; transform: translateY(14px); letter-spacing: 2px; }
    to   { opacity: 1; transform: none; }
}
@keyframes designSubIn {
    from { opacity: 0; transform: translateY(10px); }
    to   { opacity: 1; transform: none; }
}

/* 返回首页按钮 */
.back-home-btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    height: 30px;
    padding: 0 14px;
    color: #fff;
    font-size: 12px;
    text-decoration: none;
    background: rgba(255, 255, 255, 0.15);
    border: none;
    border-radius: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    -webkit-backdrop-filter: blur(4px);
    backdrop-filter: blur(4px);
}

.back-home-icon {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
}

.back-home-btn:hover {
    background: rgba(255, 255, 255, 0.25);
}

/* 搜索框容器（去底框，浮于 hero 上） */
.desers-overlap-card,
.designers-overlap-card {
    position: relative;
    margin: -86px auto 0;
    padding: 0;
    background: transparent;
    border-radius: 0;
    box-shadow: none;
    max-width: 420px;
}

/* 搜索框 */
.designers-search {
    display: flex;
    align-items: center;
    gap: 4px;
    background: #ffffff;
    border: 1px solid #e3ece7;
    border-radius: 12px;
    padding: 4px 4px 4px 12px;
    margin: 0 24px;
    animation: designSearchIn .7s ease .42s both;
}
@keyframes designSearchIn {
    from { opacity: 0; transform: translateY(10px); }
    to   { opacity: 1; transform: none; }
}

.designers-search-icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.designers-search-icon circle,
.designers-search-icon line {
    stroke: #216d4a;
}

.designers-search-icon {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

.designers-search-input {
    flex: 1;
    min-width: 0;
    border: none;
    background: transparent;
    outline: none;
    font-size: 14px;
    color: #1f3d33;
    padding: 8px 4px;
}

.designers-search-input::placeholder {
    color: #9aa8a2;
}

.designers-clear-btn {
    flex-shrink: 0;
    margin-right: 4px;
    border: none;
    background: #eef4f1;
    color: #216d4a;
    width: 22px;
    height: 22px;
    line-height: 1;
    border-radius: 50%;
    font-size: 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    transition: background 0.2s;
}

.designers-clear-btn:hover {
    background: #dfeae5;
}

.designers-search-btn {
    flex-shrink: 0;
    border: none;
    background: #216d4a;
    color: #fff;
    font-size: 13px;
    font-weight: 500;
    padding: 8px 16px;
    border-radius: 9px;
    cursor: pointer;
    transition: background 0.2s;
}

.designers-search-btn:hover {
    background: #1a5740;
}

.designers-grid {
    margin-top: 60px;
}

.designers-hero-skyline {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 90px;
    overflow: hidden;
    pointer-events: none;
}
.designers-hero-skyline-track {
    display: flex;
    width: 200%;
    height: 100%;
    fill: rgba(255, 255, 255, 0.14);
    animation: designersSkylineScroll 40s linear infinite;
}
.designers-hero-skyline-track svg {
    width: 50%;
    height: 100%;
    flex-shrink: 0;
    display: block;
}
@keyframes designersSkylineScroll {
    from { transform: translateX(0); }
    to   { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
    .designers-hero-skyline-track { animation: none; }
}

.designers-title {
    position: relative;
    display: block;
    text-align: center;
    margin: 0;
    padding: 0;
    font-size: 28px;
    font-weight: bold;
    color: #ffffff;
    letter-spacing: 6px;
    user-select: none;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.designers-title::after {
    display: none;
}

.designers-subtitle {
    position: relative;
    text-align: center;
    color: rgba(255, 255, 255, 0.85);
    font-size: 14px;
    font-weight: 400;
    margin: 8px 0 0;
    letter-spacing: 1.5px;
}

.designers-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
}

@media (max-width: 1100px) {
    .designers-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.designer-card {
    position: relative;
    background: #fff;
    border: 1px solid #eef3f0;
    border-radius: 16px;
    padding: 20px 20px 18px;
    text-align: center;
    box-shadow: 0 4px 16px rgba(33, 109, 74, 0.06);
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    overflow: hidden;
    animation: designerCardIn .5s ease both;
}
/* 一排一排（按视觉列数）依次淡入上浮 */
.designer-card:nth-child(1)  { animation-delay: .52s; }
.designer-card:nth-child(2)  { animation-delay: .58s; }
.designer-card:nth-child(3)  { animation-delay: .64s; }
.designer-card:nth-child(4)  { animation-delay: .70s; }
.designer-card:nth-child(5)  { animation-delay: .76s; }
.designer-card:nth-child(6)  { animation-delay: .82s; }
.designer-card:nth-child(7)  { animation-delay: .88s; }
.designer-card:nth-child(8)  { animation-delay: .94s; }
.designer-card:nth-child(9)  { animation-delay: 1.00s; }
.designer-card:nth-child(10) { animation-delay: 1.06s; }
.designer-card:nth-child(n+11) { animation-delay: 1.10s; }
@keyframes designerCardIn {
    from { opacity: 0; transform: translateY(16px); }
    to   { opacity: 1; transform: none; }
}

.designer-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 64px;
    background: linear-gradient(135deg, #eaf7ef, #f6fbf8);
    z-index: 0;
}

.designer-card:hover {
    border-color: #c8ebd6;
    box-shadow: 0 16px 32px rgba(33, 109, 74, 0.16);
}

.designer-card > * {
    position: relative;
    z-index: 1;
}

.designer-photo-wrap {
    position: relative;
    width: 120px;
    margin: 0 auto 24px;
}

.designer-photo {
    position: relative;
    z-index: 1;
    width: 110px;
    height: 110px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid #fff;
    box-shadow: 0 6px 16px rgba(33, 109, 74, 0.2);
    background: linear-gradient(135deg, #216d4a, #2f8a64);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease;
}

.designer-card:hover .designer-photo {
    transform: scale(1.04);
}

.designer-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.designer-photo-placeholder {
    color: #fff;
    font-size: 42px;
    font-weight: 700;
}

.designer-name {
    position: absolute;
    left: 0;
    right: 0;
    bottom: -12px;
    margin: 0 auto;
    width: max-content;
    max-width: 100%;
    text-align: center;
    padding: 2px 14px;
    font-size: 13px;
    font-weight: bold;
    color: #216d4a;
    background: #eaf7ef;
    border: 1px solid #d3eedd;
    border-radius: 14px;
    white-space: nowrap;
    box-shadow: 0 3px 8px rgba(33, 109, 74, 0.12);
    z-index: 2;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.designer-jobtitle {
    position: absolute;
    left: 50%;
    bottom: -10px;
    transform: translateX(-50%);
    display: inline-block;
    padding: 3px 14px;
    font-size: 11px;
    font-weight: 500;
    color: #216d4a;
    background: #eaf7ef;
    border-radius: 12px;
    white-space: nowrap;
    box-shadow: 0 2px 6px rgba(33, 109, 74, 0.12);
    z-index: 2;
}

.designer-experience {
    position: relative;
    display: inline-block;
    margin: 0 auto 4px;
    padding: 4px 14px;
    font-size: 12px;
    font-weight: 500;
    color: #216d4a;
    background: #eaf7ef;
    border: 1px solid #d3eedd;
    border-radius: 20px;
    text-align: center;
}

.designer-bio {
    margin: 0;
    font-size: 13px;
    line-height: 1.7;
    color: #666;
    text-align: justify;
    max-height: 120px;
    overflow: hidden;
    word-break: break-word;
}
.designer-bio div { margin: 0 0 4px; }
.designer-bio div:last-child { margin-bottom: 0; }
.designer-bio b,
.designer-bio strong { font-weight: bold; color: #333; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
.designer-bio i,
.designer-bio em { font-style: italic; }
.designer-bio u { text-decoration: underline; }
.designer-bio ul,
.designer-bio ol { margin: 4px 0; padding-left: 20px; }
.designer-bio li { margin: 2px 0; }
.designer-bio p { margin: 0 0 4px; }

.designers-empty {
    text-align: center;
    color: #999;
    font-size: 15px;
    padding: 60px 0;
}

/* ===== 设计师详情弹窗 ===== */
.designer-detail-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    -webkit-backdrop-filter: blur(3px);
    backdrop-filter: blur(3px);
    z-index: 1001;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 60px 20px;
}

.designer-detail-modal {
    position: relative;
    width: 420px;
    max-width: 100%;
    max-height: 85vh;
    display: flex;
    flex-direction: column;
    background: linear-gradient(180deg, #f3fbf6 0%, #f3fbf6 140px, #fff 140px);
    border-radius: 16px;
    padding: 0;
    box-sizing: border-box;
    text-align: center;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.2);
    animation: designerDetailIn 0.22s ease;
}

.designer-detail-body {
    position: relative;
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    padding: 20px 28px 28px;
    box-sizing: border-box;
}

.designer-detail-body::-webkit-scrollbar {
    width: 6px;
}
.designer-detail-body::-webkit-scrollbar-thumb {
    background: #d8e4de;
    border-radius: 3px;
}

@keyframes designerDetailIn {
    from { opacity: 0; transform: translateY(-15px) scale(0.97); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

.designer-detail-close {
    position: absolute;
    top: 14px;
    right: 14px;
    z-index: 10;
    width: 34px;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    border-radius: 50%;
    background: #f0f3f1;
    color: #216d4a;
    cursor: pointer;
    padding: 0;
    font-size: 22px;
    line-height: 1;
    transition: background 0.25s ease, color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}
.designer-detail-close:hover {
    background: #e3e9e5;
    color: #185a3c;
    transform: rotate(90deg);
}
.designer-detail-close:active {
    transform: rotate(90deg) scale(0.88);
    background: #d6ddd9;
}

.designer-detail-share {
    position: absolute;
    top: 14px;
    right: 54px;
    z-index: 10;
    width: 34px;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    border-radius: 50%;
    background: #f0f3f1;
    color: #216d4a;
    cursor: pointer;
    padding: 0;
    transition: background 0.25s ease, color 0.25s ease, transform 0.25s ease;
}
.designer-detail-share svg {
    width: 18px;
    height: 18px;
    display: block;
}
.designer-detail-share:hover {
    background: #e3e9e5;
    color: #185a3c;
}
.designer-detail-share:active {
    transform: scale(0.88);
    background: #d6ddd9;
}

.designer-share-tip {
    position: fixed;
    left: 50%;
    top: 40px;
    transform: translateX(-50%);
    z-index: 9999;
    min-width: 200px;
    text-align: center;
    padding: 12px 32px;
    background: rgba(24, 90, 60, 0.94);
    color: #fff;
    font-size: 14px;
    border-radius: 22px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
    animation: designerShareTipIn 0.25s ease;
}
@keyframes designerShareTipIn {
    from { opacity: 0; transform: translateX(-50%) translateY(-10px); }
    to { opacity: 1; transform: translateX(-50%) translateY(0); }
}

.designer-detail-head {
    position: sticky;
    top: 0;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 20px;
    margin: -24px -28px 18px;
    padding: 0 28px 18px;
    background: #f3fbf6;
    border-bottom: 1px solid #e4f1ea;
    text-align: left;
}

.designer-detail-photo {
    width: 108px;
    height: 108px;
    border-radius: 50%;
    overflow: hidden;
    margin: 0;
    flex-shrink: 0;
    border: 4px solid #fff;
    box-shadow: 0 6px 18px rgba(33, 109, 74, 0.22);
    background: linear-gradient(135deg, #216d4a, #2f8a64);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease;
}
.designer-detail-modal:hover .designer-detail-photo {
    transform: scale(1.04);
}
.designer-detail-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.designer-detail-photo .designer-photo-placeholder {
    color: #fff;
    font-size: 46px;
    font-weight: 700;
}

.designer-detail-info {
    flex: 1;
    min-width: 0;
}

.designer-detail-name {
    margin: 0 0 3px;
    font-size: 22px;
    font-weight: bold;
    color: #185a3c;
    text-align: left;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.designer-detail-jobtitle {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin: 4px 0 4px;
    padding: 3px 12px 3px 10px;
    font-size: 13px;
    font-weight: 500;
    color: #c45a00;
    background: #fff5e8;
    border: 1px solid #ffd9a8;
    border-radius: 14px;
    box-shadow: 0 2px 6px rgba(196, 90, 0, 0.10);
}
.designer-detail-jobtitle svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    display: block;
}
.designer-detail-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 4px;
}
.designer-detail-tag {
    display: inline-block;
    padding: 2px 5px;
    font-size: 12px;
    color: #216d4a;
    background: #eaf7ef;
    border: 1px solid #d3eedd;
    border-radius: 12px;
}

.designer-detail-experience {
    margin: 0;
    font-size: 14px;
    font-weight: 500;
    color: #8a8a8a;
    text-align: left;
}

.designer-detail-bio {
    margin: 45px 0 0;
    padding: 0;
    font-size: 14px;
    line-height: 1.85;
    color: #555;
    text-align: left;
    word-break: break-word;
    background: transparent;
    border: none;
    border-radius: 0;
}
.designer-detail-bio div { margin: 0 0 8px; }
.designer-detail-bio div:first-child { margin-top: 0; }
.designer-detail-bio div:last-child { margin-bottom: 0; }
.designer-detail-bio b,
.designer-detail-bio strong {
    display: inline-block;
    font-weight: bold;
    color: #216d4a;
    margin-right: 2px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}
.designer-detail-bio i,
.designer-detail-bio em { font-style: italic; }
.designer-detail-bio u { text-decoration: underline; }
.designer-detail-bio ul,
.designer-detail-bio ol { margin: 4px 0 8px; padding-left: 20px; }
.designer-detail-bio li { margin: 2px 0; }
.designer-detail-bio p { margin: 0 0 8px; }

@media (max-width: 768px) {
    .designers-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 14px;
    }
    .designer-card {
        padding: 18px 12px 16px;
    }
    .designer-photo-wrap {
        width: 90px;
        margin-bottom: 26px;
    }
    .designer-photo {
        width: 84px;
        height: 84px;
    }
    .designer-photo-placeholder {
        font-size: 32px;
    }
    .designer-name {
        font-size: 16px;
    }
    .designer-bio {
        font-size: 12px;
        max-height: 96px;
    }
    .designer-detail-body {
        scrollbar-width: none;
        -ms-overflow-style: none;
    }
    .designer-detail-body::-webkit-scrollbar {
        width: 0;
        height: 0;
        display: none;
    }
}
