/* 全局样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', sans-serif;
}

body {
    background-color: #f5f7fa;
    color: #333;
    line-height: 1.6;
    min-height: 100vh; /* 确保容器至少占满整个视口高度 */
    display: flex;
    flex-direction: column;

}

.logo {
   display: flex;
   align-items: center; /* 垂直居中 */
   gap: 8px; /* 可选：设置元素间距 */
}

.logo img {
    width: 35px;
}

.login-page-content {
  width: 100%;           /* 确保宽度不收缩 */
  max-width: 600px;      /* 保留原有最大宽度 */
}

a {
    text-decoration: none;
    color: inherit;
}

/* 头部样式 */
header {
    background: linear-gradient(135deg, #1e5799 0%, #207cca 100%);
    color: white;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

header h1 {
    font-size: 1.5rem;
    font-weight: 600;
}

header div {
    display: flex;
    gap: 1rem;
}



.user-dropdown {
    position: relative;
}

.dropdown-toggle,#buypackage,.login-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 20px;
    border-radius: 30px;
    color: white;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1.1rem;
}

.dropdown-toggle:hover,#buypackage:hover,.login-link:hover {
    background: rgba(255, 255, 255, 0.25);
}

.dropdown-menu {
    position: absolute;
    top: 120%;
    right: 0;
    width: 260px;
    background: white;
    border-radius: 15px;
    box-shadow: 0 10px 35px rgba(0, 0, 0, 0.2);
    padding: 15px 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-15px);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    z-index: 1000;
}

.dropdown-menu.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu::before {
    content: '';
    position: absolute;
    top: -10px;
    right: 25px;
    width: 20px;
    height: 20px;
    background: white;
    transform: rotate(45deg);
    z-index: -1;
}

.dropdown-menu li {
    list-style: none;
}

.dropdown-menu li a {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 14px 25px;
    color: #2c3e50;
    text-decoration: none;
    font-size: 1.05rem;
    transition: all 0.25s ease;
}

.dropdown-menu li a:hover {
    background: #f8f9fa;
    color: #3498db;
    padding-left: 30px;
}

.dropdown-menu li a i {
    width: 22px;
    text-align: center;
    color: #3498db;
    font-size: 1.1rem;
}

.divider {
    height: 1px;
    background: #eaeaea;
    margin: 10px 0;
}


/* 页脚 */
footer {
    background: linear-gradient(135deg, #207cca 0%, #1e5799 100%);
    color: white;
    text-align: center;
    padding: 1.5rem;
    margin-top: auto;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
    margin-top: 0.5rem;
}

.footer-links a {
    color: #8399b5;;
    transition: color 0.3s;
    font-size: 12px;
}

.footer-links a:hover {
    color: white;
}

.copyright {
    color: #a0aec0;
    font-size: 0.7rem;
    margin-top: 0.5rem;
}
    
/* 响应式设计 */
@media (max-width: 768px) {
    header {
        flex-direction: column;
        text-align: center;
        padding: 1rem;
    }
    
    header div {
        gap: 1rem;
    }

}

@media (max-width: 480px) {    
    .container h2 {
        font-size: 1.5rem;
    }
    
    .btn {
        padding: 0.6rem 1.2rem;
    }
}