
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f5f5f5;
}


.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}


header {
    background-color: #2c3e50;
    color: #fff;
    padding: 20px 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.8rem;
    font-weight: bold;
    text-decoration: none;
    color: #fff;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 20px;
}

nav a {
    color: #fff;
    text-decoration: none;
    padding: 8px 15px;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

nav a:hover {
    background-color: #34495e;
}


main {
    padding: 40px 0;
}


.hero {
    background-color: #3498db;
    color: #fff;
    padding: 60px 0;
    text-align: center;
    margin-bottom: 40px;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 20px;
}

.hero p {
    font-size: 1.2rem;
    max-width: 600px;
    margin: 0 auto;
}


.blog-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.blog-card {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
}

.blog-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.blog-card-content {
    padding: 20px;
}

.blog-card h3 {
    margin-bottom: 10px;
    color: #2c3e50;
}

.blog-card-meta {
    color: #7f8c8d;
    font-size: 0.9rem;
    margin-bottom: 15px;
}

.blog-card-excerpt {
    margin-bottom: 20px;
    color: #555;
}

.read-more {
    display: inline-block;
    background-color: #3498db;
    color: #fff;
    padding: 8px 15px;
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

.read-more:hover {
    background-color: #2980b9;
}


.blog-post {
    background-color: #fff;
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    max-width: 800px;
    margin: 0 auto;
}

.blog-post h1 {
    color: #2c3e50;
    margin-bottom: 20px;
}

.blog-post-meta {
    color: #7f8c8d;
    font-size: 0.9rem;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
}

.blog-post-content {
    margin-bottom: 40px;
}

.blog-post-content p {
    margin-bottom: 20px;
    text-align: justify;
}

.blog-post-content h2, .blog-post-content h3 {
    color: #2c3e50;
    margin: 30px 0 15px;
}

.blog-post-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 20px 0;
}


.about-section {
    background-color: #fff;
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    max-width: 800px;
    margin: 0 auto;
}

.about-section h1 {
    color: #2c3e50;
    margin-bottom: 30px;
}

.about-content {
    display: flex;
    gap: 40px;
    align-items: flex-start;
}

.about-avatar {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.about-text {
    flex: 1;
}

.about-text p {
    margin-bottom: 20px;
    text-align: justify;
}


.categories-section, .archive-section {
    background-color: #fff;
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    max-width: 800px;
    margin: 0 auto;
}

.categories-section h1, .archive-section h1 {
    color: #2c3e50;
    margin-bottom: 30px;
}

.category-list, .archive-list {
    list-style: none;
}

.category-list li, .archive-list li {
    padding: 15px 0;
    border-bottom: 1px solid #eee;
}

.category-list li:last-child, .archive-list li:last-child {
    border-bottom: none;
}

.category-list a, .archive-list a {
    color: #3498db;
    text-decoration: none;
    font-size: 1.1rem;
    transition: color 0.3s ease;
}

.category-list a:hover, .archive-list a:hover {
    color: #2980b9;
}

.category-count {
    background-color: #ecf0f1;
    color: #34495e;
    padding: 3px 8px;
    border-radius: 10px;
    font-size: 0.8rem;
    margin-left: 10px;
}


.contact-section {
    background-color: #fff;
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    max-width: 800px;
    margin: 0 auto;
}

.contact-section h1 {
    color: #2c3e50;
    margin-bottom: 30px;
}

.contact-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.contact-item {
    text-align: center;
    padding: 20px;
    background-color: #f8f9fa;
    border-radius: 8px;
}

.contact-item i {
    font-size: 2rem;
    color: #3498db;
    margin-bottom: 15px;
}

.contact-form {
    max-width: 600px;
    margin: 0 auto;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #555;
}

.form-group input, .form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
}

.form-group textarea {
    height: 150px;
    resize: vertical;
}

.submit-btn {
    background-color: #3498db;
    color: #fff;
    padding: 12px 25px;
    border: none;
    border-radius: 5px;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.submit-btn:hover {
    background-color: #2980b9;
}


.sidebar {
    background-color: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    margin-bottom: 30px;
}

.sidebar h3 {
    color: #2c3e50;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}

.sidebar ul {
    list-style: none;
}

.sidebar li {
    padding: 8px 0;
}

.sidebar a {
    color: #3498db;
    text-decoration: none;
    transition: color 0.3s ease;
}

.sidebar a:hover {
    color: #2980b9;
}


footer {
    background-color: #2c3e50;
    color: #fff;
    text-align: center;
    padding: 30px 0;
    margin-top: 40px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 20px;
}

.footer-links {
    display: flex;
    gap: 20px;
    list-style: none;
}

.footer-links a {
    color: #fff;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: #3498db;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-links a {
    color: #fff;
    font-size: 1.2rem;
    transition: color 0.3s ease;
}

.social-links a:hover {
    color: #3498db;
}

.icp-info a {
    color: #fff;
    text-decoration: none;
    transition: color 0.3s ease;
}

.icp-info a:hover {
    color: #3498db;
}

.container h2 {
    margin-bottom: 30px;
    color: #2c3e50;
}

.blog-card h3 a {
    color: inherit;
    text-decoration: none;
}

.contact-info ul {
    list-style-type: disc;
}

.hobbies-section {
    margin-top: 40px;
}

.hobbies-list {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-top: 20px;
}

.hobby-tag {
    background-color: #2ecc71;
    color: #fff;
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 0.9rem;
}

.hobby-tag:nth-child(2) {
    background-color: #e74c3c;
}

.hobby-tag:nth-child(3) {
    background-color: #9b59b6;
}

.hobby-tag:nth-child(4) {
    background-color: #1abc9c;
}

.hobby-tag:nth-child(5) {
    background-color: #7f8c8d;
}


@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        gap: 20px;
    }
    
    nav ul {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .blog-list {
        grid-template-columns: 1fr;
    }
    
    .about-content {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .blog-post, .about-section, .categories-section, .archive-section, .contact-section {
        padding: 20px;
    }
    
    .footer-content {
        flex-direction: column;
    }
}

.gallery-section {
    background-color: #fff;
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    max-width: 1200px;
    margin: 0 auto;
}

.gallery-section h1 {
    color: #2c3e50;
    margin-bottom: 30px;
    text-align: center;
}

.gallery-container {
    width: 100%;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(3, 1fr);
    gap: 15px;
    width: 100%;
}

.gallery-item {
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
}

.gallery-item img,
.local-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    aspect-ratio: 4/3;
    display: block;
    background-size: cover;
    background-position: center;
    position: relative;
}

.local-image {
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
    font-weight: bold;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.image-1 {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.image-2 {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.image-3 {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

.image-4 {
    background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
}

.image-5 {
    background: linear-gradient(135deg, #fa709a 0%, #fee140 100%);
}

.image-6 {
    background: linear-gradient(135deg, #30cfd0 0%, #330867 100%);
}

.image-7 {
    background: linear-gradient(135deg, #e0c3fc 0%, #8ec5fc 100%);
}

.image-8 {
    background: linear-gradient(135deg, #ffecd2 0%, #fcb69f 100%);
}

.image-9 {
    background: linear-gradient(135deg, #a8edea 0%, #fed6e3 100%);
}

.local-image::after {
    content: attr(class);
    position: absolute;
	bottom: 10px;
    right: 10px;
    background: rgba(0, 0, 0, 0.5);
    color: white;
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 0.8rem;
    font-weight: normal;
    text-shadow: none;
}

.image-1::after { content: "照片 1"; }
.image-2::after { content: "照片 2"; }
.image-3::after { content: "照片 3"; }
.image-4::after { content: "照片 4"; }
.image-5::after { content: "照片 5"; }
.image-6::after { content: "照片 6"; }
.image-7::after { content: "照片 7"; }
.image-8::after { content: "照片 8"; }
.image-9::after { content: "照片 9"; }

@media (max-width: 768px) {
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: repeat(5, 1fr);
    }
}

@media (max-width: 480px) {
    .hero {
        padding: 40px 0;
    }
    
    .hero h1 {
        font-size: 1.5rem;
    }
    
    main {
        padding: 20px 0;
    }
    
    .gallery-grid {
        grid-template-columns: 1fr;
        grid-template-rows: repeat(9, 1fr);
    }
}