/* 基本样式重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Microsoft YaHei', '微软雅黑', Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f9f9f9;
}

a {
    text-decoration: none;
    color: #333;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.section-title {
    text-align: center;
    margin-bottom: 60px;
    font-size: 2.5rem;
    position: relative;
    color: #2c3e50;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(135deg, #3498db, #1abc9c);
    border-radius: 2px;
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 30px;
    font-weight: 600;
    text-transform: uppercase;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    font-size: 14px;
}

.btn.primary {
    background: linear-gradient(135deg, #3498db, #1abc9c);
    color: white;
    box-shadow: 0 4px 15px rgba(52, 152, 219, 0.3);
}

.btn.secondary {
    background: transparent;
    color: #2c3e50;
    border: 2px solid #3498db;
    padding: 10px 28px;
}

.btn.primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(52, 152, 219, 0.4);
}

.btn.secondary:hover {
    background: rgba(52, 152, 219, 0.1);
}

section {
    padding: 100px 0;
}

/* 头部样式 */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 20px 0;
    z-index: 1000;
    background-color: rgba(255, 255, 255, 0.95);
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo h1 {
    font-size: 1.8rem;
    font-weight: 700;
    color: #2c3e50;
}

nav ul {
    display: flex;
}

nav ul li {
    margin-left: 30px;
}

nav ul li a {
    position: relative;
    font-weight: 600;
    transition: all 0.3s ease;
}

nav ul li a:hover, nav ul li a.active {
    color: #3498db;
}

nav ul li a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(135deg, #3498db, #1abc9c);
    transition: all 0.3s ease;
}

nav ul li a:hover::after, nav ul li a.active::after {
    width: 100%;
}

.menu-toggle {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
}

/* 主页英雄区域 */
.hero {
    height: 100vh;
    background: linear-gradient(135deg, rgba(41, 128, 185, 0.7), rgba(26, 188, 156, 0.7)), url('../images/hero-bg.jpg');
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    color: white;
    text-align: center;
}

.hero-content {
    max-width: 700px;
    margin: 0 auto;
}

.hero-content h1 {
    font-size: 3.5rem;
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    opacity: 0.9;
}

.highlight {
    color: #fff;
    position: relative;
    display: inline-block;
}

.highlight::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 8px;
    background-color: rgba(255, 255, 255, 0.3);
    z-index: -1;
}

.cta-buttons {
    margin-top: 40px;
}

.cta-buttons .btn {
    margin: 0 10px;
}

/* 关于我部分 */
.about {
    background-color: white;
}

.about-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.about-image {
    flex: 0 0 40%;
    max-width: 40%;
    position: relative;
}

.about-image img {
    border-radius: 5px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.about-text {
    flex: 0 0 55%;
    max-width: 55%;
}

.about-text p {
    margin-bottom: 20px;
    font-size: 1.05rem;
    color: #555;
}

.personal-info {
    display: flex;
    flex-wrap: wrap;
    margin: 30px 0;
}

.info-item {
    flex: 0 0 50%;
    max-width: 50%;
    margin-bottom: 15px;
}

.info-label {
    font-weight: 600;
    margin-right: 10px;
    color: #2c3e50;
}

/* 技能部分 */
.skills {
    background-color: #f9f9f9;
}

.skills-content {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
}

.skill-category {
    flex: 0 0 48%;
    max-width: 48%;
    margin-bottom: 40px;
}

.skill-category h3 {
    margin-bottom: 25px;
    color: #2c3e50;
    position: relative;
    padding-left: 15px;
}

.skill-category h3::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 6px;
    height: 20px;
    background: linear-gradient(135deg, #3498db, #1abc9c);
    border-radius: 3px;
}

.skill-item {
    margin-bottom: 20px;
    display: flex;
    align-items: center;
}

.skill-name {
    min-width: 100px;
    font-weight: 600;
    color: #333;
}

.skill-bar {
    flex: 1;
    background-color: #e1e1e1;
    height: 10px;
    border-radius: 5px;
    margin: 0 15px;
    overflow: hidden;
}

.skill-level {
    height: 100%;
    background: linear-gradient(135deg, #3498db, #1abc9c);
    border-radius: 5px;
}

.skill-percent {
    min-width: 40px;
    font-size: 0.9rem;
    color: #777;
}

/* 作品集部分 */
.portfolio {
    background-color: white;
}

.portfolio-filters {
    display: flex;
    justify-content: center;
    margin-bottom: 40px;
}

.filter-btn {
    background: none;
    border: none;
    padding: 8px 20px;
    margin: 0 5px;
    font-size: 15px;
    cursor: pointer;
    border-radius: 20px;
    transition: all 0.3s ease;
    color: #555;
}

.filter-btn.active, .filter-btn:hover {
    background: linear-gradient(135deg, #3498db, #1abc9c);
    color: white;
    box-shadow: 0 4px 10px rgba(52, 152, 219, 0.3);
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
}

.portfolio-item {
    border-radius: 5px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    position: relative;
}

.portfolio-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.portfolio-img {
    position: relative;
    overflow: hidden;
}

.portfolio-img img {
    transition: all 0.5s ease;
    height: 220px;
    width: 100%;
    object-fit: cover;
}

.portfolio-item:hover .portfolio-img img {
    transform: scale(1.1);
}

.portfolio-info {
    padding: 20px;
    background-color: white;
    transition: all 0.3s ease;
}

.portfolio-info h3 {
    font-size: 18px;
    margin-bottom: 8px;
    color: #2c3e50;
}

.portfolio-info p {
    color: #7f8c8d;
    font-size: 14px;
}

.portfolio-link {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 40px;
    height: 40px;
    background: white;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #3498db;
    font-size: 16px;
    transform: translateY(20px);
    opacity: 0;
    transition: all 0.3s ease;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.portfolio-item:hover .portfolio-link {
    transform: translateY(0);
    opacity: 1;
}

/* 联系部分 */
.contact {
    background-color: #f9f9f9;
}

.contact-content {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
}

.contact-info {
    flex: 0 0 40%;
    max-width: 40%;
}

.contact-item {
    display: flex;
    margin-bottom: 30px;
}

.contact-icon {
    margin-right: 20px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, #3498db, #1abc9c);
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    font-size: 20px;
    box-shadow: 0 5px 15px rgba(52, 152, 219, 0.3);
}

.contact-text h3 {
    margin-bottom: 5px;
    color: #2c3e50;
}

.contact-text p {
    color: #7f8c8d;
}

.social-links {
    margin-top: 40px;
    display: flex;
}

.social-link {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: white;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-right: 15px;
    color: #3498db;
    font-size: 18px;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
}

.social-link:hover {
    background: linear-gradient(135deg, #3498db, #1abc9c);
    color: white;
    transform: translateY(-5px);
}

.contact-form {
    flex: 0 0 55%;
    max-width: 55%;
    background-color: white;
    padding: 40px;
    border-radius: 5px;
    box-shadow: 0 5px 30px rgba(0, 0, 0, 0.08);
}

.form-group {
    margin-bottom: 20px;
}

.form-group input, .form-group textarea {
    width: 100%;
    padding: 15px;
    border: 1px solid #e1e1e1;
    border-radius: 5px;
    font-size: 15px;
    transition: all 0.3s ease;
}

.form-group textarea {
    height: 150px;
    resize: none;
}

.form-group input:focus, .form-group textarea:focus {
    border-color: #3498db;
    box-shadow: 0 0 5px rgba(52, 152, 219, 0.3);
    outline: none;
}

/* 网站内容概述部分 */
.site-overview {
    background-color: white;
    padding: 80px 0;
}

.overview-content {
    max-width: 900px;
    margin: 0 auto;
}

.overview-text p {
    margin-bottom: 25px;
    font-size: 1.1rem;
    color: #555;
    text-align: center;
}

.overview-text ul {
    list-style: disc;
    padding-left: 40px;
    margin-bottom: 30px;
}

.overview-text ul li {
    margin-bottom: 12px;
    font-size: 1.05rem;
    color: #555;
    line-height: 1.7;
}

/* 免责声明部分 - 新设计 */
.disclaimer-section {
    background-color: #f8f9fa;
    padding: 50px 0;
    border-top: 1px solid #e9ecef;
    border-bottom: 1px solid #e9ecef;
}

.disclaimer-content {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.disclaimer-content h2 {
    color: #2c3e50;
    margin-bottom: 25px;
    font-size: 1.8rem;
    position: relative;
    display: inline-block;
}

.disclaimer-content h2:after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 100%;
    height: 3px;
    background: #e74c3c;
}

.disclaimer-box {
    background-color: #fff;
    border: 2px solid #e74c3c;
    border-radius: 8px;
    padding: 25px;
    margin-top: 20px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

.disclaimer-box p {
    color: #333;
    font-size: 1.1rem;
    line-height: 1.7;
    margin: 0;
    text-align: left;
    font-weight: 500;
}

/* 原免责声明样式 - 保留用于兼容性 */
.disclaimer {
    background-color: #f8f9fa;
    padding: 30px;
    border-radius: 10px;
    border-left: 5px solid #3498db;
    margin-top: 40px;
}

.disclaimer h3 {
    color: #2c3e50;
    margin-bottom: 15px;
    font-size: 1.3rem;
}

.disclaimer p {
    color: #555;
    font-size: 1rem;
    line-height: 1.7;
    text-align: left;
    margin-bottom: 0;
}

/* 页脚部分 */
footer {
    background-color: #2c3e50;
    color: white;
    padding: 30px 0;
    text-align: center;
}

.footer-content p {
    opacity: 0.8;
}

/* 响应式设计 */
@media (max-width: 992px) {
    .about-image, .about-text, .contact-info, .contact-form {
        flex: 0 0 100%;
        max-width: 100%;
    }
    
    .about-image {
        margin-bottom: 40px;
    }
    
    .contact-info {
        margin-bottom: 50px;
    }
    
    .skill-category {
        flex: 0 0 100%;
        max-width: 100%;
    }
}

@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }
    
    nav ul {
        position: fixed;
        top: 80px;
        left: 0;
        width: 100%;
        height: calc(100vh - 80px);
        background-color: white;
        flex-direction: column;
        align-items: center;
        justify-content: flex-start;
        padding-top: 50px;
        transform: translateX(-100%);
        transition: all 0.3s ease;
        box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
    }
    
    nav ul.open {
        transform: translateX(0);
    }
    
    nav ul li {
        margin: 15px 0;
    }
    
    .hero-content h1 {
        font-size: 2.5rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
}

@media (max-width: 576px) {
    .portfolio-grid {
        grid-template-columns: 1fr;
    }
    
    .cta-buttons .btn {
        display: block;
        margin: 10px auto;
        width: 80%;
    }
    
    .info-item {
        flex: 0 0 100%;
        max-width: 100%;
    }
    
    .hero-content h1 {
        font-size: 2rem;
    }
}
