/* 基本样式 */
body {
    font-family: '微软雅黑', sans-serif;
    cursor: url('../cur_yo.cur'),  pointer;
    padding: 0;
    margin: 0;
    background-color: #ebf4ea;
}
/* 标题 */
h1 {
    font-size: 55px;
    color: #ff00ff;
    margin: 0.5em 0;
    text-align: center;
    font-weight: bold;
}
 
h2 {
    font-size: 24px;
    font-weight: bold;
    text-align: center;
    color: #fa00ff;
    margin-bottom: 20px;
}
 
h3 {
    font-size: 20px;
    text-align: center;
    color: #0000ff;
    margin: 0.5em 0;
}
 
h4 {
    font-size: 18px;
    text-align: center;
    color: #0000ff;
    margin: 0.5em 0;
}
 
p {
    margin: 0;
    padding: 0.5em 0;
}
 
/* 分隔线样式 */
.hr, .red-hr {
    border: none;
    height: 2px;
}
 
.hr {
    background-color: #0000ff;
}
 
.red-hr {
    background-color: #ff00ff;
}
 
/* Header Styles */
header {
    color: #ff00ff;
    font-weight: bold;
    padding: 5px 10px;
    margin-bottom: 2em;
}
 
.header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}
 
/* Logo */
.logo {
    display: flex;
    align-items: center;
}
 
.logo img {
    height: 40px;
    margin-right: 10px;
}
 
/* Navigation */
nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 15px;
    align-items: center;
}
 
nav ul li {
    display: inline;
    position: relative;
}
 
nav ul li:hover > ul {
    display: block;
}
 
nav ul li a {
    color: #0000ff;
    font-weight: bold;
    text-decoration: none;
    font-size: 18px;
    padding: 8px 15px;
    display: block;
    transition: all 0.9s ease-in-out;
    align-items: center;
}
 
.hidden-label {
    display: none;
}
 
/* ========= 仅覆盖下拉子菜单部分 ========= */
.item-children {
    /* 布局 */
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) scale(0.95);
    z-index: 9999;
    display: none;
    min-width: 320px;
    max-width: 420px;
    padding: 16px 12px;
    border-radius: 18px;

    /* 毛玻璃 + 渐变背景 */
    background: linear-gradient(135deg,
                rgba(255, 182, 219, 0.45),
                rgba(191, 155, 255, 0.45),
                rgba(175, 196, 255, 0.45));
    -webkit-backdrop-filter: blur(16px) saturate(180%);
    backdrop-filter: blur(16px) saturate(180%);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.22),
                0 2px 8px rgba(0, 0, 0, 0.1);

    /* 动画 */
    transition: all .35s cubic-bezier(.34,1.56,.64,1);
}

/* 悬停或 .show 时的展开动画 */
nav li:hover > .item-children,
.item-children.show {
    display: flex;
    transform: translateX(-50%) scale(1);
}

/* ========== 右侧溢出纠正 ========== */
nav li {
    position: relative;          /* 为后面的 JS 计算做锚点 */
}

.item-children {
    /* 原有酷炫样式保留 */
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) scale(0.95);
    transform-origin: top center;
    transition: all .35s cubic-bezier(.34,1.56,.64,1);
}

/* 当 li 位于页面右半边时，额外加一个类 .edge-right */
nav li.edge-right .item-children {
    left: auto;
    right: 0;                   /* 贴右 */
    transform: translateX(0) scale(0.95);
}

/* 展开动画 */
nav li:hover > .item-children,
.item-children.show {
    transform: translateX(-50%) scale(1);
}
nav li.edge-right:hover > .item-children,
nav li.edge-right .item-children.show {
    transform: translateX(0) scale(1);
}

/* 子项网格布局 */
.children-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    gap: 10px;
    width: 100%;
    margin: 0;
    padding: 0;
    list-style: none;
}

.children-list li {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    transition: transform .3s ease;
}

/* 子项按钮样式 */
.children-list li a {
    display: block;
    padding: 10px 14px;
    font-size: 15px;
    font-weight: 600;
    text-align: center;
    color: #fff;
    text-decoration: none;
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 12px;
    transition: all .35s ease;
}

/* 悬浮高亮 */
.children-list li a:hover {
    background: rgba(255, 255, 255, 0.35);
    transform: translateY(-3px) scale(1.03);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

/* 微光扫过效果 */
.children-list li a::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(60deg,
                transparent 20%,
                rgba(255, 255, 255, 0.3) 50%,
                transparent 80%);
    transform: rotate(45deg) translateY(-100%);
    transition: transform .6s;
}
.children-list li a:hover::before {
    transform: rotate(45deg) translateY(100%);
}
 
/* Search Form */
.search-form {
    display: flex;
    flex-grow: 1;
}
 
.search-text {
    width: 100%;
    border: 1px solid #ccc;
    border-radius: 5px;
    padding: 10px;
    font-size: 16px;
}
 
.search-btn {
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    padding: 10px 15px;
    margin-left: 5px;
    transition: background-color 0.3s;
}
 
.search-btn:hover {
    background-color: #0056b3;
}
 
/* Carousel */
.carousel {
    position: relative;
    width: 100%;
    margin: 0;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}
 
.carousel-inner {
    display: flex;
    transition: transform 1s ease-in-out;
}
 
.carousel-item {
    min-width: 100%;
    box-sizing: border-box;
    position: relative;
}
 
.carousel img {
    width: 100%;
    height: 700px;
    display: block;
    object-fit: cover;
    border-radius: 10px;
}
 
.carousel-item:not(:first-child) {
    display: none;
}
 
.carousel-item img {
    transition: opacity 1s ease-in-out;
}
 
.carousel-button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    padding: 10px;
    cursor: pointer;
    z-index: 10;
}
 
.carousel-button.prev  {
    left: 10px;
}
 
.carousel-button.next  {
    right: 10px;
}
 
.carousel-indicators {
    position: absolute;
    bottom: 10px;
    width: 100%;
    display: flex;
    justify-content: center;
    z-index: 10;
}
 
.carousel-indicator {
    width: 10px;
    height: 10px;
    background-color: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    margin: 0 5px;
    cursor: pointer;
    transition: background-color 0.3s;
}
 
.carousel-indicator.active  {
    background-color: white;
}
 
/* Buttons & Form Elements */
button, .btn-copy {
    padding: 8px 12px;
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s;
}
 
button:hover, .btn-copy:hover {
    background-color: #0056b3;
}
 
select {
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 4px;
}
 
.search input[type="text"] {
    padding: 5px 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    margin-right: 10px;
}
 
.search button {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 5px 20px;
    background-color: #555;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
}
 
.search button .icon-search {
    margin-right: 8px;
}
 
/* Layout */
.container {
    display: flex;
}
 
.left-column, .right-column {
    flex: 1;
    padding: 10px;
}
 
.custom-iframe {
    width: 100%;
    height: 550px;
}
 
/* Custom Buttons */
.button-container {
    margin-top: 20px;
}
 
.custom-button {
    display: inline-block;
    padding: 12px 24px;
    font-size: 16px;
    color: #fff;
    background-color: #aa00ff;
    border: none;
    border-radius: 8px;
    text-decoration: none;
    transition: background-color 0.3s, transform 0.3s;
    cursor: pointer;
}
 
.custom-button:hover {
    background-color: #0056b3;
    transform: translateY(-2px);
}
 
.custom-button:active {
    background-color: #004494;
    transform: translateY(1px);
}
 
.custom-button:focus {
    outline: none;
    box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.5);
}
 
.button-container video {
    display: block;
    margin: 0 auto;
}
 
.btn-copy {
    background-color: #000000;
    padding: 4px 10px;
    margin-left: 10px;
}
 
/* Links */
.appointment-link {
    display: block;
    text-decoration: none;
    color: #0066cc;
    font-size: 16px;
    line-height: 24px;
    padding: 10px 15px;
    border: 1px solid #ccc;
    border-radius: 5px;
    margin-bottom: 10px;
    transition: background-color 0.3s, color 0.3s;
}
 
.appointment-link:hover {
    background-color: #0066cc;
    color: #fff;
}
 
.appointment-link:active {
    background-color: #004499;
    color: #fff;
}
 
/* Footer */
.foot-wrap {
    background-color: #333;
    color: #fff;
    padding: 20px 0;
    font-family: Arial, sans-serif;
}
 
.footer-nav {
    text-align: center;
    margin-bottom: 20px;
}
 
.footer-nav a {
    color: #aaa;
    margin: 0 10px;
    text-decoration: none;
    font-size: 14px;
}
 
.width1180 {
    width: 1180px;
    margin: 0 auto;
}
 
.footer {
    display: flex;
    justify-content: space-between;
    padding: 0 20px;
}
 
.footer-list {
    width: 30%;
}
 
.footer-list h3 {
    font-size: 18px;
    margin-bottom: 10px;
    color: #fff;
    border-bottom: 2px solid #555;
    padding-bottom: 5px;
}
 
.footer-list p {
    margin: 5px 0;
    line-height: 1.6;
}
 
.footer-list a {
    color: #aaa;
    text-decoration: none;
}
 
.footer-list a:hover {
    text-decoration: underline;
    color: #fff;
}
 
.footer-bottom {
    text-align: center;
    padding-top: 10px;
    border-top: 1px solid #555;
    margin-top: 20px;
    font-size: 14px;
}
 
.footer-bottom p {
    margin: 0;
    color: #aaa;
}
 
/* Responsive */
@media (max-width: 768px) {
    .footer {
        flex-direction: column;
        align-items: center;
    }
 
    .footer-list {
        width: 100%;
        margin-bottom: 20px;
    }
 
    .footer-nav {
        margin-bottom: 10px;
    }
 
    .footer-list h3 {
        font-size: 16px;
        margin-bottom: 8px;
        border-bottom: 1px solid #555;
        padding-bottom: 3px;
    }
 
    .footer-nav a {
        margin: 0 5px;
    }
 
    .footer-bottom {
        margin-top: 10px;
    }
}