/* 基础样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Microsoft YaHei', Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 头部样式 */
header {
    background: linear-gradient(135deg, var(--theme-color), #2c3e50);
    color: white;
    padding: 1rem 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

header h1 {
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
}

nav a {
    color: white;
    text-decoration: none;
    margin-right: 1.5rem;
    padding: 0.3rem 0.5rem;
    border-radius: 3px;
    transition: background-color 0.3s;
}

nav a:hover, nav a.active {
    background-color: rgba(255,255,255,0.2);
}

/* 主要内容区 */
.hero {
    background: white;
    padding: 3rem 2rem;
    margin: 2rem 0;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    text-align: center;
}

.hero h2 {
    color: var(--theme-color);
    margin-bottom: 1rem;
    font-size: 2.2rem;
}

.hero p {
    font-size: 1.2rem;
    color: #666;
}

/* 内容布局 */
.content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 2rem;
    margin: 2rem 0;
}

.main-content {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
}

.sidebar {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

/* 按钮样式 */
.btn {
    display: inline-block;
    padding: 0.8rem 1.5rem;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    text-align: center;
}

.btn-primary {
    background-color: var(--theme-color);
    color: white;
}

.btn-primary:hover {
    background-color: #2980b9;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.btn-secondary {
    background-color: #95a5a6;
    color: white;
}

.btn-secondary:hover {
    background-color: #7f8c8d;
}

/* 广告位样式 */
.ad-section {
    background: #f8f9fa;
    padding: 1.5rem;
    border: 2px dashed #ddd;
    border-radius: 8px;
    text-align: center;
    color: #666;
    position: relative;
    overflow: hidden;
    min-height: 100px; /* 确保有足够空间 */
}

/* 右下角广告标签 */
.ad-section::after {
    content: "广告";
    position: absolute;
    bottom: 8px;
    right: 10px;
    font-size: 12px;
    color: #bbb;
    opacity: 0.6;
    font-family: Arial, sans-serif;
}

.ad {
    font-size: 0.9rem;
    position: relative;
    z-index: 1;
}

/* 链接区域样式 */
.links-section {
    background: white;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
}

.links-section h4 {
    color: var(--theme-color);
    margin-bottom: 1rem;
    border-bottom: 2px solid var(--theme-color);
    padding-bottom: 0.5rem;
}

.links-list {
    list-style: none;
}

.links-list li {
    margin-bottom: 0.5rem;
    padding: 0.5rem 0;
    border-bottom: 1px solid #eee;
}

.links-list a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s;
    display: block;
}

.links-list a:hover {
    color: var(--theme-color);
    padding-left: 5px;
}

/* CTA区域 */
.cta-section {
    background: linear-gradient(135deg, var(--theme-color), #34495e);
    color: white;
    padding: 2rem;
    border-radius: 8px;
    margin: 2rem 0;
    text-align: center;
}

.cta-section h4 {
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

/* 错误页面样式 */
.error-page {
    max-width: 600px;
    margin: 4rem auto;
    text-align: center;
    background: white;
    padding: 3rem;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.error-page h1 {
    font-size: 6rem;
    color: var(--theme-color);
    margin-bottom: 1rem;
}

.error-page h2 {
    color: #333;
    margin-bottom: 1.5rem;
}

.action-buttons {
    margin: 2rem 0;
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* 页脚样式 */
footer {
    background: #2c3e50;
    color: white;
    text-align: center;
    padding: 2rem 0;
    margin-top: 3rem;
}

footer a {
    color: var(--theme-color);
    text-decoration: none;
}

footer a:hover {
    text-decoration: underline;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .content {
        grid-template-columns: 1fr;
    }
    
    .container {
        padding: 0 15px;
    }
    
    .hero {
        padding: 2rem 1rem;
    }
    
    .hero h2 {
        font-size: 1.8rem;
    }
    
    .action-buttons {
        flex-direction: column;
    }
    
    .btn {
        width: 100%;
    }
}

/* 顶部菜单按钮样式 */
.top-menu {
    display: flex;
    gap: 0.5rem;
    margin-top: 1rem;
}

.menu-btn {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 0.5rem 1rem;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.menu-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.menu-btn.active {
    background: rgba(255, 255, 255, 0.3);
    border-color: white;
    font-weight: bold;
}

/* 页面内容切换 */
.page-content {
    display: none;
}

.page-content.active {
    display: block;
}

/* 特性项目样式 */
.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.feature-item {
    background: white;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
    border-left: 4px solid var(--theme-color);
}

.feature-item h4 {
    color: var(--theme-color);
    margin-bottom: 0.5rem;
}

/* 联系信息样式 */
.contact-info {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
    margin-bottom: 2rem;
    line-height: 2;
}

/* 联系表单样式 */
.contact-form {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: bold;
    color: #333;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--theme-color);
    box-shadow: 0 0 0 2px rgba(52, 152, 219, 0.2);
}

/* 信息卡片样式 */
.info-card {
    background: white;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
    text-align: center;
}

.info-card h4 {
    color: var(--theme-color);
    margin-bottom: 1rem;
}

.info-card .btn {
    margin: 0.3rem;
    width: calc(100% - 0.6rem);
}

/* 响应式调整 */
@media (max-width: 768px) {
    .top-menu {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .menu-btn {
        flex: 1;
        min-width: 80px;
        text-align: center;
    }
    
    .features {
        grid-template-columns: 1fr;
    }
}
/* 头部顶部区域 */
.header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.header-top h1 {
    margin-bottom: 0;
    font-size: 1.5rem;
}

/* 语言切换器 */
.language-switcher {
    display: flex;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 5px;
    padding: 2px;
}

.lang-btn {
    background: transparent;
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 3px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.lang-btn.active {
    background: rgba(255, 255, 255, 0.3);
    font-weight: bold;
}

.lang-btn:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* 特性网格布局 */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.feature-card {
    background: white;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
    text-align: center;
    border-top: 4px solid var(--theme-color);
}

.feature-card h3 {
    color: var(--theme-color);
    margin-bottom: 0.5rem;
}

/* 优势区域 */
.advantages {
    margin: 3rem 0;
}

.advantage-item {
    background: white;
    padding: 2rem;
    margin-bottom: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
    border-left: 4px solid var(--theme-color);
}

.advantage-item h4 {
    color: var(--theme-color);
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

/* 技能网格 */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.skill-category {
    background: white;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
    text-align: center;
}

.skill-category h4 {
    color: var(--theme-color);
    margin-bottom: 0.5rem;
}

.skill-category p {
    color: #666;
    font-family: monospace;
}

/* 教育经历 */
.education-section {
    margin: 2rem 0;
}

.education-item {
    background: white;
    padding: 1.5rem;
    margin-bottom: 1rem;
    border-radius: 8px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
    border-left: 4px solid var(--theme-color);
}

.education-item h4 {
    color: var(--theme-color);
    margin-bottom: 0.5rem;
}

/* 服务网格 */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.service-card {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    text-align: center;
    transition: transform 0.3s ease;
}

.service-card:hover {
    transform: translateY(-5px);
}

.service-card h3 {
    color: var(--theme-color);
    margin-bottom: 1rem;
}

/* 联系信息样式 */
.contact-content {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
    margin-bottom: 2rem;
    line-height: 2;
    white-space: pre-line;
}

.contact-content br {
    margin-bottom: 1rem;
    display: block;
}

/* 页脚样式 */
.footer-content {
    text-align: center;
    line-height: 1.6;
}

.footer-content p {
    margin-bottom: 0.5rem;
}

/* 语言文本控制 */
.zh, .en {
    display: none;
}

.zh.zh, .en.en {
    display: block;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .header-top {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
    
    .header-top h1 {
        font-size: 1.3rem;
    }
    
    .features-grid,
    .skills-grid,
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .advantage-item,
    .education-item,
    .service-card {
        padding: 1.5rem 1rem;
    }
    
    .top-menu {
        justify-content: center;
    }
}
/* 邮件发送结果样式 */
.email-result {
    padding: 1rem;
    margin-bottom: 1.5rem;
    border-radius: 5px;
    font-weight: bold;
}

.email-result.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.email-result.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* 表单加载状态 */
.form-loading {
    opacity: 0.7;
    pointer-events: none;
}

.form-loading .btn::after {
    content: '...';
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0%, 100% { content: '.'; }
    33% { content: '..'; }
    66% { content: '...'; }
}
/* 顶部菜单按钮样式 */
.top-menu {
    display: flex;
    gap: 0.5rem;
    margin-top: 1rem;
}

.menu-btn {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 0.5rem 1rem;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.menu-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.menu-btn.active {
    background: rgba(255, 255, 255, 0.3);
    border-color: white;
    font-weight: bold;
}

/* 页面内容切换 */
.page-content {
    display: none;
}

.page-content.active {
    display: block;
}

/* 特性项目样式 */
.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.feature-item {
    background: white;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
    border-left: 4px solid var(--theme-color);
}

.feature-item h4 {
    color: var(--theme-color);
    margin-bottom: 0.5rem;
}

/* 联系信息样式 */
.contact-info {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
    margin-bottom: 2rem;
    line-height: 2;
}

/* 联系表单样式 */
.contact-form {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: bold;
    color: #333;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--theme-color);
    box-shadow: 0 0 0 2px rgba(52, 152, 219, 0.2);
}

/* 信息卡片样式 */
.info-card {
    background: white;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
    text-align: left;
}

.info-card h4 {
    color: var(--theme-color);
    margin-bottom: 1rem;
}

.info-card .btn {
    margin: 0.3rem;
    width: calc(100% - 0.6rem);
}

/* 响应式调整 */
@media (max-width: 768px) {
    .top-menu {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .menu-btn {
        flex: 1;
        min-width: 80px;
        text-align: center;
    }
    
    .features {
        grid-template-columns: 1fr;
    }
}
/* 整个链接样式 */
.ad-link {
    text-decoration: none;
    color: #333; /* 默认文字颜色 */
    font-size: 14px;
    line-height: 1.6;
    display: inline-block;
}
.highlight-blue {
    color: #1e88e5; /* 深蓝色 */
    font-weight: 700; /* 更粗 */
    font-size: 18px;
    display: block;
    margin-top: 8px;
    text-shadow: 0 1px 2px rgba(0, 123, 255, 0.2); /* 轻微阴影 */
    transition: color 0.3s ease; /* 鼠标悬停效果 */
}

/* 鼠标悬停效果 */
.highlight-blue:hover {
    color: #0d47a1; /* 悬停时更深的蓝色 */
}