#main {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

#classify {
    display: flex;
    justify-content: space-around;
    padding: 10px;
    gap: 10px;
}

#classify a {
    text-decoration: none;
    color: #834B41;
    padding: 5px 10px;
    flex: 1;
    text-align: center;
    background-color: #E8C7A4;
    height: 85px;
    display: flex;
    align-items: center;
    justify-content: center;
}

#main-enter-detail a:hover,
#classify a:hover,
#classify a:focus,
#classify a.selected {
    background-color: #DD9A4B;
    color: white;
}

#doctor-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.doctor-card {
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    perspective: 1000px; /* 添加透视效果 */
    position: relative; /* 确保可以包含绝对定位子元素 */
    min-height: 300px; /* 设置卡片最小高度 */
}

.doctor-card-inner {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    transition: transform 0.6s;
    transform-style: preserve-3d;
    transform-origin: center center; /* 让卡片围绕中心翻转 */
}

.doctor-card:hover .doctor-card-inner {
    transform: rotateY(180deg);
}

.doctor-card-front,
.doctor-card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
}

.doctor-card-back {
    background-color: #fff;
    color: #333;
    transform: rotateY(180deg);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 20px;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.doctor-card-back a {
    color: #834B41;
    text-decoration: none;
    padding: 5px 10px;
    border: 1px solid #834B41;
    border-radius: 4px;
    transition: background-color 0.3s, color 0.3s;
    margin: 5px;
}

.doctor-card-back a:hover {
    background-color: #834B41;
    color: white;
}

.doctor-card img {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    margin-bottom: 10px;
}

.doctor-card h1 {
    font-size: 18px;
    color: #333;
    margin: 10px 0;
}

.doctor-card h2 {
    font-size: 16px;
    color: #666;
    margin: 5px 0;
}

.doctor-card h3 {
    font-size: 14px;
    color: #999;
    margin: 5px 0;
}

.doctor-card span {
    display: flex;
    justify-content: space-around;
    margin-top: 10px;
}

.doctor-card a:not(:first-child) {
    color: #834B41;
    text-decoration: none;
    padding: 5px 10px;
    border: 1px solid #834B41;
    border-radius: 4px;
    transition: background-color 0.3s, color 0.3s;
}

.doctor-card a:hover {
    background-color: #834B41;
    color: white;
}

#spceific-classify {
    display: grid;
    grid-template-columns: auto 1fr;
    align-items: start;
    gap: 10px;
}

#spceific-classify>div:first-child {
    grid-column: 1;
    font-weight: bold;
}

#spceific-classify>div:last-child {
    grid-column: 2;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

#spceific-classify a {
    text-decoration: none;
    color: black;
    padding: 5px 10px;
}

#spceific-classify a:hover,
#spceific-classify a.selected {
    background-color: #DD9A4A;
    color: white;
}

#search-doctor {
    display: flex;
    align-items: center;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
}

#search-doctor img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    margin-right: 10px;
}

#search-doctor input[type="text"] {
    width: 300px;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    margin-right: 10px;
}

#search-doctor input[type="submit"] {
    padding: 10px 20px;
    background-color: #834B41;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

#search-doctor input[type="submit"]:hover {
    background-color: #DD9A4B;
}

#search-doctor span {
    margin-left: auto;
    font-size: 14px;
    color: #666;
}

#search-doctor span a {
    color: #834B41;
    text-decoration: none;
}

#search-doctor span a:hover {
    text-decoration: underline;
}