/* Buttons */
.btn {
    display: inline-block;
    padding: 10px 24px;
    border-radius: 4px;
    font-weight: 500;
    cursor: pointer;
    border: none;
    transition: var(--transition);
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--white);
}

.btn-primary:hover {
    background-color: #004494;
}

.btn-outline {
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
    background: transparent;
}

.btn-outline:hover {
    background-color: var(--primary-color);
    color: var(--white);
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: var(--white);
    box-shadow: var(--shadow);
    z-index: 1000;
    height: 80px;
    display: flex;
    align-items: center;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.logo {
    display: flex;
    align-items: center;
}

.logo img {
    height: 48px;
    width: auto;
}

.nav-menu {
    display: flex;
    gap: 30px;
}

.nav-link {
    color: var(--text-color);
    font-weight: 500;
    position: relative;
    padding-bottom: 5px;
    white-space: nowrap;
}

.nav-link:hover, .nav-link.active {
    color: var(--primary-color);
}

.nav-link.active::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--primary-color);
}

.nav-link.has-submenu {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.dropdown-icon {
    font-size: 12px;
    margin-top: 2px;
    transition: transform 0.3s ease;
}

.nav-item.dropdown:hover .dropdown-icon,
.nav-item.dropdown.open .dropdown-icon {
    transform: rotate(180deg);
}

.nav-item {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background-color: var(--white);
    box-shadow: var(--shadow);
    padding: 12px 0;
    min-width: 180px;
    display: none;
    flex-direction: column;
    border-radius: 4px;
}

.dropdown-link {
    display: block;
    padding: 8px 20px;
    font-size: 14px;
    color: var(--text-color);
    white-space: nowrap;
}

.dropdown-link:hover {
    background-color: var(--light-gray);
    color: var(--primary-color);
}

.dropdown-link.active {
    background-color: var(--light-gray);
    color: var(--primary-color);
}

.nav-item.dropdown:hover .dropdown-menu,
.nav-item.dropdown.open .dropdown-menu {
    display: flex;
}

/* 顶部导航栏联系电话（与首页"联系钟经理"模块一致） */
.nav-contact {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 4px 12px;
    border-radius: 6px;
    background-color: #ff7820;
    white-space: nowrap;
}

.nav-contact:hover {
    background-color: #e96a12;
}

.nav-contact > i {
    color: var(--white);
    font-size: 22px;
}

.nav-contact-label {
    display: block;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.2;
}

.nav-contact-number {
    display: block;
    font-size: 18px;
    font-weight: 700;
    color: var(--white);
    line-height: 1.25;
    letter-spacing: 0.5px;
}

/* Cards */
.card {
    background: var(--white);
    border-radius: 8px;
    box-shadow: var(--shadow);
    overflow: hidden;
    transition: var(--transition);
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0,0,0,0.1);
}

/* Slider */
.slider-container {
    position: relative;
    width: 100%;
    height: 400px;
    overflow: hidden;
}

.slider-wrapper {
    display: flex;
    height: 100%;
    transition: transform 0.5s ease-in-out;
}

.slide {
    min-width: 100%;
    height: 100%;
    position: relative;
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.slide-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: var(--white);
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

.slider-controls {
    position: absolute;
    top: 50%;
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 0 20px;
    transform: translateY(-50%);
}

.prev, .next {
    background: rgba(0,0,0,0.5);
    color: white;
    padding: 10px 15px;
    cursor: pointer;
    border-radius: 50%;
}

/* Footer */
.footer {
    background-color: var(--dark-gray);
    color: var(--white);
    padding: 60px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-col h3 {
    margin-bottom: 20px;
    font-size: 18px;
}

.footer-col ul li {
    margin-bottom: 10px;
}

.footer-col a {
    color: #adb5bd;
}

.footer-col a:hover {
    color: var(--white);
}

.copyright {
    text-align: center;
    border-top: 1px solid #495057;
    padding-top: 20px;
    color: #adb5bd;
}

/* Back to Top Button */
#back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 45px;
    height: 45px;
    background-color: var(--primary-color);
    color: var(--white);
    border-radius: 50%;
    display: none;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
    z-index: 9999;
    transition: background-color 0.3s, transform 0.3s;
    font-size: 18px;
}

#back-to-top:hover {
    background-color: #004494;
    transform: translateY(-3px);
}
