/* 全局变量 */
:root {
    --primary-light: #e3f2fd; /* 浅蓝 - 背景和高亮 */
    --primary-color: #3498db;
    --primary-dark: #2980b9;
    --secondary-color: #2ecc71;
    --secondary-dark: #27ae60;
    --accent-color: #e74c3c;
    --accent-dark: #c0392b;
    --text-color: #4a6583; /* 柔和的蓝灰色 */
    --text-light: #7f8c8d;
    --light-text: #ecf0f1;
    --bg-color: #f5f7fa;
    --card-bg: #ffffff;
    --border-color: #e0e6ed;
    --shadow-sm: 0 2px 5px rgba(0, 0, 0, 0.05);
    --shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.1);
    --border-radius-sm: 4px;
    --border-radius: 8px;
    --border-radius-lg: 12px;
    --transition: all 0.3s ease;
    --gradient-primary: linear-gradient(135deg, #3498db, #2980b9);
    --gradient-secondary: linear-gradient(135deg, #2ecc71, #27ae60);
    --white: #ffffff;
}

/* 基础样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Helvetica Neue', Arial, 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    font-size: 16px;
}

.app-container {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* 按钮样式 */
.btn {
    display: inline-block;
    padding: 10px 20px;
    border-radius: 30px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    outline: none;
    text-align: center;
}

.primary-btn {
    background-color: var(--primary-color);
    color: var(--white);
}

.primary-btn:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.secondary-btn {
    background-color: var(--secondary-color);
    color: var(--white);
}

.secondary-btn:hover {
    background-color: var(--secondary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

/* 主要内容区域 */
main {
    flex: 1;
    padding: 30px;
    max-width: 1200px;
    margin: 0 auto;
    width: 70%;
}

/* 头部导航样式 */
header {
    background-color: var(--white);
    box-shadow: var(--shadow);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 100;
    width: 100%;
}

header > div {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    width: 70%;
    padding: 0 15px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--primary-color);
}

.logo i {
    font-size: 1.8rem;
}

.logo h1 {
    font-size: 1.5rem;
    font-weight: 700;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 20px;
}

nav a {
    color: var(--text-color);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 5px;
}

nav a:hover {
    color: var(--primary-color);
}

nav i {
    font-size: 1.1rem;
}

/* 下拉菜单样式 */
.dropdown {
    position: relative;
}

.dropdown-toggle {
    display: flex;
    align-items: center;
    gap: 5px;
}

/* 桌面端下拉菜单箭头样式 */
@media (min-width: 769px) {
    .dropdown-arrow {
        font-size: 0.8rem;
        transition: var(--transition);
        transform: rotate(-90deg);
    }

    .dropdown:hover .dropdown-arrow {
        transform: rotate(0deg);
    }
}

.dropdown-menu {
    position: absolute;
    top: calc(100% + 22px);
    left: 0;
    background-color: var(--white);
    min-width: 180px;
    box-shadow: var(--shadow-lg);
    border-radius: var(--border-radius);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1000;
    list-style: none;
    padding: 8px 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 5px !important;
}

.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu li {
    margin: 0;
}

.dropdown-menu a {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    color: var(--text-color);
    text-decoration: none;
    transition: var(--transition);
    border-radius: 0;
    font-size: 14px;
    font-weight: 400;
}

.dropdown-menu a i,
.dropdown-menu a img {
    width: 14px;
    height: 14px;
    font-size: 14px;
}

.dropdown-menu a:hover {
    background-color: var(--primary-light);
    color: var(--primary-color);
}

.dropdown-menu img {
    width: 14px;
    height: 14px;
    filter: none;
}

.dropdown-menu a:hover img {
    filter: invert(0.3) sepia(1) saturate(3) hue-rotate(190deg);
}

/* 移动端菜单按钮 */
.menu-toggle {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--primary-color);
}

/* 页脚样式 */
footer {
    background-color: #2c3e50;
    color: var(--light-text);
    padding: 40px 0 20px;
    width: 100%;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    max-width: 1200px;
    margin: 0 auto;
    width: 70%;
    padding: 0 15px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
}

.footer-logo i {
    font-size: 1.5rem;
    color: var(--primary-color);
}

.footer-logo h3 {
    font-size: 1.3rem;
}

.footer-links, .footer-contact {
    margin-bottom: 20px;
}

.footer-links h4, .footer-contact h4 {
    color: var(--white);
    margin-bottom: 15px;
    font-size: 1.1rem;
}

.footer-links ul {
    list-style: none;
}

.footer-links li {
    margin-bottom: 8px;
}

.footer-links a {
    color: var(--light-text);
    text-decoration: none;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--primary-color);
}

.footer-contact p {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
}

.footer-contact i {
    color: var(--primary-color);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
    text-align: center;
    max-width: 1200px;
    margin: 0 auto;
    width: 70%;
}


/* 响应式设计 */
@media (max-width: 1200px) {
    main {
        width: 85%;
    }
}

/* 响应式设计 */
@media (max-width: 768px) {

    main {
        width: 95%;
        padding: 20px;
    }
    
    
    header > div {
        width: 90%;
    }
    
    .menu-toggle {
        display: block;
    }
    
    nav {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        background-color: var(--white);
        transition: var(--transition);
        box-shadow: var(--shadow);
    }
    
    nav.active {
        left: 0;
    }
    
    nav ul {
        flex-direction: column;
        padding: 20px;
        gap: 15px;
    }
    
    nav a {
        padding: 10px;
        display: block;
        width: 100%;
    }
    
    /* 移动端下拉菜单样式 */
    .dropdown {
        position: static;
    }
    
    .dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        background-color: transparent;
        border-radius: 0;
        margin-top: 0;
        padding: 0;
        max-height: 0;
        overflow: hidden;
    }
    
    .dropdown.active .dropdown-menu {
        max-height: 300px;
        background-color: var(--primary-light) !important;
        border-radius: var(--border-radius);
        margin-top: 10px;
        padding: 8px 0;
    }
    
    .dropdown-menu a {
        padding: 10px 15px;
        font-size: 14px;
    }
    
    /* 移动端下拉菜单箭头样式 */
    .dropdown-arrow {
        margin-left: auto;
        font-size: 0.8rem;
        transform: rotate(-90deg);
        transition: transform 0.3s ease;
    }
    
    .dropdown.active .dropdown-arrow {
        transform: rotate(0deg);
    }

    .footer-content {
        flex-direction: column;
        width: 90%;
    }
    
    .footer-bottom {
        width: 90%;
    }
}




@media (max-width: 576px) {
    body {
        font-size: 14px;
    }
    
    main {
        width: 95%;
        padding: 15px;
    }
    
    .btn {
        padding: 8px 16px;
        font-size: 14px;
    }
    
    
    header {
        padding: 10px 0;
    }
    
    header > div {
        width: 95%;
        padding: 0 10px;
    }
    
    .logo h1 {
        font-size: 1.3rem;
    }
    
    .logo i {
        font-size: 1.5rem;
    }
    
    nav {
        top: 60px;
        height: calc(100vh - 60px);
    }
    
    nav ul {
        padding: 15px;
        gap: 12px;
    }
    
    nav a {
        padding: 8px;
        font-size: 14px;
    }
    
    footer {
        padding: 30px 0 20px;
    }
    
    .footer-content {
        width: 95%;
        padding: 0 10px;
    }
    
    .footer-bottom {
        width: 95%;
    }
    
    .footer-logo h3 {
        font-size: 1.1rem;
    }
    
    .footer-links h4, .footer-contact h4 {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    body {
        font-size: 13px;
    }
    
    main {
        padding: 10px;
    }
    

    .btn {
        padding: 6px 12px;
        font-size: 13px;
        border-radius: 20px;
    }
    
    header > div {
        padding: 0 5px;
    }
    
    .logo h1 {
        font-size: 1.2rem;
    }
    
    .footer-content {
        padding: 0 5px;
    }
    
    .footer-bottom {
        font-size: 12px;
    }
}





