* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: #f5f7fa;
    color: #333;
    line-height: 1.6;
    transition: background-color 0.3s, color 0.3s;
}

body.dark {
    background-color: #1a1a2e;
    color: #e0e0e0;
}

.h {
    background: #0080ff;
    color: white;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.dark .h {
    background: #0060c0;
}

.b {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 20px;
}

.avatar-container {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.avatar-container:hover {
    transform: scale(1.05);
    border-color: rgba(255, 255, 255, 0.6);
}

.avatar {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.l {
    font-size: 28px;
    font-weight: 700;
    letter-spacing: 1px;
}

.c {
    display: flex;
    align-items: center;
    gap: 15px;
}

.d {
    position: relative;
}

#s {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

#s:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

.n {
    display: none;
    position: absolute;
    right: 0;
    top: 50px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
    min-width: 150px;
    overflow: hidden;
    z-index: 100;
}

.dark .n {
    background: #2d3047;
    color: #e0e0e0;
}

.n a {
    display: block;
    padding: 12px 20px;
    color: #333;
    text-decoration: none;
    transition: all 0.2s;
}

.dark .n a {
    color: #e0e0e0;
}

.n a:hover {
    background: #f0f0f0;
}

.dark .n a:hover {
    background: #3a3d5c;
}

#t {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

#t:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

.k {
    max-width: 1200px;
    margin: 30px auto;
    padding: 0 20px;
}

.p {
    font-size: 18px;
    margin-bottom: 20px;
    color: #666;
}

.dark .p {
    color: #aaa;
}

.v {
    max-width: 1200px;
    margin: 0 auto 40px;
    padding: 0 20px;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(500px, 1fr));
    gap: 30px;
}

@media (max-width: 1100px) {
    .v {
        grid-template-columns: 1fr;
    }
}

.w {
    background: white;
    border-radius: 15px;
    padding: 25px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s, box-shadow 0.3s;
}

.dark .w {
    background: #2d3047;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.w:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.15);
}

.w h2 {
    color: #0088ff;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #eaeaea;
    font-size: 24px;
}

.dark .w h2 {
    color: #0088ff;
    border-bottom: 2px solid #3a3d5c;
}

.x {
    margin-bottom: 25px;
}

.x h3 {
    color: #666;
    margin-bottom: 10px;
    font-size: 18px;
}

.dark .x h3 {
    color: #aaa;
}

.y {
    background: #f0f7ff;
    border-radius: 10px;
    padding: 20px;
    border-left: 4px solid #0088ff;
}

.dark .y {
    background: #2a3a5a;
    border-left: 4px solid #0088ff;
}

.z {
    font-size: 18px;
    color: #333;
    line-height: 1.8;
}

.dark .z {
    color: #e0e0e0;
}

.z span {
    font-weight: 600;
    color: #333;
}

.dark .z span {
    color: #e0e0e0;
}

.z p {
    margin-bottom: 15px;
}

.z p:last-child {
    margin-bottom: 0;
}

.portfolio-card {
    cursor: default;
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-top: 15px;
}

@media (max-width: 600px) {
    .portfolio-grid {
        grid-template-columns: 1fr;
    }
}

.portfolio-item {
    background: #f8fbff;
    border-radius: 10px;
    padding: 20px;
    text-align: center;
    transition: all 0.3s;
    cursor: pointer;
    border: 2px solid transparent;
}

.dark .portfolio-item {
    background: #2a3a5a;
}

.portfolio-item:hover {
    background: #e6f0ff;
    transform: translateY(-3px);
    border-color: #0088ff;
}

.dark .portfolio-item:hover {
    background: #3a4a6a;
    border-color: #4da6ff;
}

.portfolio-icon {
    width: 60px;
    height: 60px;
    background: #0088ff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
    color: white;
    font-size: 24px;
    transition: all 0.3s;
}

.portfolio-item:hover .portfolio-icon {
    background: #0066cc;
    transform: scale(1.1);
}

.portfolio-item h3 {
    margin-bottom: 10px;
    color: #333;
    font-size: 18px;
}

.dark .portfolio-item h3 {
    color: #e0e0e0;
}

.portfolio-item p {
    color: #666;
    font-size: 14px;
    margin-bottom: 0;
}

.dark .portfolio-item p {
    color: #aaa;
}

.portfolio-note {
    margin-top: 25px;
    padding: 15px;
    background: #fff8e6;
    border-radius: 8px;
    border-left: 4px solid #ffaa00;
    font-size: 14px;
    color: #8a6d3b;
}

.dark .portfolio-note {
    background: #3a3a2a;
    color: #e0d0a0;
    border-left: 4px solid #ffcc00;
}

.portfolio-note i {
    margin-right: 8px;
    color: #ffaa00;
}

.footer {
    max-width: 1200px;
    margin: 40px auto 20px;
    padding: 20px;
    text-align: center;
    color: #666;
    border-top: 1px solid #eaeaea;
}

.dark .footer {
    color: #aaa;
    border-top: 1px solid #3a3d5c;
}

.notice-content {
    font-size: 16px;
    line-height: 1.8;
}

.notice-content p {
    margin-bottom: 15px;
}

.notice-content #personal-statement {
    font-style: italic;
    color: #666;
    font-size: 18px;
}

.dark .notice-content #personal-statement {
    color: #aaa;
}

.notice-content #update-time {
    font-size: 14px;
    color: #888;
    margin-left: 20px;
}

.dark .notice-content #update-time {
    color: #999;
}

.skill-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 10px;
}

.skill-tag {
    background: #0088ff;
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 14px;
}

.dark .skill-tag {
    background: #0066cc;
}

.contact-link {
    color: #0088ff;
    text-decoration: none;
    transition: color 0.3s;
}

.contact-link:hover {
    color: #0060c0;
    text-decoration: underline;
}

.dark .contact-link {
    color: #4da6ff;
}

.dark .contact-link:hover {
    color: #0088ff;
}

@media (max-width: 768px) {
    .header-left {
        gap: 15px;
    }
    .avatar-container {
        width: 50px;
        height: 50px;
    }
    .l {
        font-size: 24px;
    }
}

#about-content {
    font-size: 18px;
    line-height: 1.8;
    color: #333;
}

.dark #about-content {
    color: #e0e0e0;
}

#about-content li {
    margin-bottom: 15px;
    list-style-type: none;
    position: relative;
    padding-left: 20px;
}

#about-content li:before {
    content: "•";
    color: #0088ff;
    font-weight: bold;
    display: inline-block;
    width: 1em;
    margin-left: -1em;
    position: absolute;
    left: 0;
}

ruby {
    ruby-align: center;
}

rt {
    font-size: 0.6em;
    opacity: 0.8;
}

.z a {
    color: #0088ff;
    text-decoration: none;
    transition: color 0.3s;
    font-weight: 600;
}

.z a:hover {
    color: #0066cc;
    text-decoration: underline;
}

.dark .z a {
    color: #4da6ff;
}

.dark .z a:hover {
    color: #0088ff;
}

@media (max-width: 768px) {
    #about-content li {
        padding-left: 15px;
        margin-bottom: 12px;
    }
    .portfolio-grid {
        grid-template-columns: 1fr;
    }
}