* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Microsoft YaHei', sans-serif;
    line-height: 1.6;
    color: #2c3e50;
    background: #ffffff;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.navbar {
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    color: white;
    padding: 1rem 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: white;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 1.5rem;
}

.nav-links a {
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
    font-weight: 500;
    padding: 8px 12px;
    border-radius: 6px;
}

.nav-links a:hover {
    color: #a8d8ff;
    background: rgba(255,255,255,0.1);
}

.hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    margin-top: 60px;
    position: relative;
    overflow: hidden;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 320"><path fill="%23ffffff" fill-opacity="0.05" d="M0,96L48,112C96,128,192,160,288,160C384,160,480,128,576,122.7C672,117,768,139,864,154.7C960,171,1056,181,1152,165.3C1248,149,1344,107,1392,85.3L1440,64L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z"></path></svg>') no-repeat bottom;
    background-size: cover;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-content h1 {
    font-size: 4rem;
    margin-bottom: 1rem;
    animation: fadeInUp 1s ease-out;
    text-shadow: 2px 4px 8px rgba(0,0,0,0.2);
}

.hero-content p {
    font-size: 1.3rem;
    margin-bottom: 2rem;
    opacity: 0.95;
    line-height: 1.8;
    animation: fadeInUp 1s ease-out 0.2s backwards;
}

.hero-stats {
    display: flex;
    gap: 3rem;
    justify-content: center;
    margin-bottom: 2.5rem;
    animation: fadeInUp 1s ease-out 0.4s backwards;
}

.hero-stat {
    text-align: center;
}

.stat-num {
    display: block;
    font-size: 2.5rem;
    font-weight: bold;
    color: #fff;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.2);
}

.stat-text {
    font-size: 1rem;
    opacity: 0.9;
}

.hero button {
    background: white;
    color: #667eea;
    border: none;
    padding: 15px 40px;
    font-size: 1.1rem;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: bold;
    animation: fadeInUp 1s ease-out 0.6s backwards;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.hero button:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(255,255,255,0.3);
}

.section {
    padding: 80px 0;
}

.section.alt-bg {
    background: linear-gradient(to bottom, #f8f9fa 0%, #e9ecef 100%);
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    color: #1e3c72;
    margin-bottom: 20px;
    position: relative;
}

.section-subtitle {
    text-align: center;
    color: #7f8c8d;
    font-size: 1.1rem;
    margin-bottom: 50px;
    font-style: italic;
}

.section-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, #667eea, #764ba2);
    margin: 15px auto 0;
    border-radius: 2px;
}

.about-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    margin-bottom: 50px;
}

.about-card {
    background: white;
    padding: 35px 25px;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    border-top: 4px solid transparent;
}

.about-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.12);
    border-top-color: #667eea;
}

.about-card.highlight {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.card-icon {
    font-size: 3rem;
    margin-bottom: 15px;
}

.about-card h3 {
    color: #2c3e50;
    margin-bottom: 12px;
    font-size: 1.3rem;
}

.about-card.highlight h3 {
    color: white;
}

.about-card p {
    color: #555;
    line-height: 1.7;
    font-size: 0.95rem;
}

.about-card.highlight p,
.about-card.highlight li {
    color: rgba(255,255,255,0.95);
}

.motto {
    font-size: 1.3rem !important;
    font-style: italic;
    color: #667eea !important;
    font-weight: bold;
    margin-bottom: 10px !important;
}

.team-list {
    margin-top: 10px;
}

.team-member {
    padding: 8px 0;
    border-bottom: 1px solid #eee;
    color: #555;
}

.team-member:last-child {
    border-bottom: none;
}

.pride-list {
    list-style: none;
    margin-top: 10px;
}

.pride-list li {
    padding: 10px 0;
    font-size: 0.95rem;
}

.class-spirit {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    padding: 40px;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(240,147,251,0.3);
}

.class-spirit blockquote {
    font-size: 1.4rem;
    color: white;
    font-style: italic;
    line-height: 1.8;
    margin: 0;
}

.class-spirit cite {
    display: block;
    margin-top: 15px;
    font-size: 1rem;
    opacity: 0.9;
}

.announcement-list {
    max-width: 900px;
    margin: 0 auto;
}

.announcement-item {
    background: white;
    padding: 30px;
    margin-bottom: 25px;
    border-radius: 15px;
    box-shadow: 0 3px 15px rgba(0,0,0,0.06);
    transition: all 0.3s ease;
    border-left: 5px solid #667eea;
    position: relative;
}

.announcement-item:hover {
    transform: translateX(5px);
    box-shadow: 0 6px 25px rgba(0,0,0,0.1);
}

.announcement-item.featured {
    border-left-color: #e74c3c;
    background: linear-gradient(to right, #fff5f5, white);
}

.pin-marker {
    position: absolute;
    top: -10px;
    left: 20px;
    background: #e74c3c;
    color: white;
    padding: 5px 15px;
    border-radius: 15px;
    font-size: 0.85rem;
    font-weight: bold;
}

.announcement-meta {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 12px;
    font-size: 0.9rem;
    color: #7f8c8d;
}

.author {
    background: #e8f4fd;
    color: #3498db;
    padding: 3px 10px;
    border-radius: 12px;
    font-weight: 500;
}

.announcement-item h3 {
    color: #2c3e50;
    margin-bottom: 15px;
    font-size: 1.3rem;
}

.announcement-body {
    color: #555;
    line-height: 1.8;
    margin-bottom: 15px;
}

.announcement-body ol,
.announcement-body ul {
    margin-left: 20px;
    margin-top: 10px;
}

.announcement-body li {
    margin-bottom: 8px;
}

.announcement-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 12px;
    border-top: 1px solid #eee;
    font-size: 0.9rem;
    color: #7f8c8d;
}

.tag {
    background: #667eea;
    color: white;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 500;
}

.tag.urgent {
    background: #e74c3c;
}

.tag.activity {
    background: #27ae60;
}

.tag.study {
    background: #9b59b6;
}

.tag.info {
    background: #3498db;
}

.load-more-btn {
    display: block;
    margin: 30px auto 0;
    padding: 12px 35px;
    background: white;
    border: 2px solid #667eea;
    color: #667eea;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
}

.load-more-btn:hover {
    background: #667eea;
    color: white;
}

.gallery-filters {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 10px 25px;
    background: white;
    border: 2px solid #ddd;
    color: #555;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
}

.filter-btn:hover,
.filter-btn.active {
    background: #667eea;
    border-color: #667eea;
    color: white;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
}

.gallery-item {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    cursor: pointer;
}

.gallery-item:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 15px 40px rgba(0,0,0,0.15);
}

.photo-placeholder {
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.1rem;
    font-weight: 500;
    text-align: center;
    padding: 20px;
}

.photo-info {
    padding: 20px;
}

.photo-info h4 {
    color: #2c3e50;
    margin-bottom: 5px;
    font-size: 1.1rem;
}

.photo-info p {
    color: #7f8c8d;
    font-size: 0.9rem;
    margin-bottom: 8px;
}

.photo-date {
    color: #95a5a6;
    font-size: 0.85rem;
}

.ranking-tabs {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.tab-btn {
    padding: 12px 28px;
    background: white;
    border: 2px solid #667eea;
    color: #667eea;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: bold;
    font-size: 1rem;
}

.tab-btn:hover,
.tab-btn.active {
    background: #667eea;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102,126,234,0.3);
}

.ranking-content {
    display: none;
}

.ranking-content.active {
    display: block;
    animation: fadeIn 0.5s ease-in;
}

.ranking-header {
    text-align: center;
    margin-bottom: 30px;
}

.ranking-header h3 {
    color: #2c3e50;
    font-size: 1.5rem;
    margin-bottom: 8px;
}

.exam-info {
    color: #7f8c8d;
    font-size: 0.95rem;
}

.top-three {
    display: grid;
    grid-template-columns: 1fr 1.2fr 1fr;
    gap: 20px;
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.rank-card {
    background: white;
    padding: 30px 20px;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    transition: transform 0.3s ease;
}

.rank-card:hover {
    transform: translateY(-5px);
}

.rank-card.gold {
    background: linear-gradient(135deg, #ffd700, #ffed4e);
    transform: scale(1.05);
}

.rank-card.silver {
    background: linear-gradient(135deg, #c0c0c0, #e8e8e8);
}

.rank-card.bronze {
    background: linear-gradient(135deg, #cd7f32, #daa06d);
}

.medal {
    font-size: 3rem;
    margin-bottom: 10px;
}

.student-name {
    font-size: 1.2rem;
    font-weight: bold;
    color: #2c3e50;
    margin-bottom: 8px;
}

.score {
    font-size: 1.8rem;
    font-weight: bold;
    color: #e74c3c;
    margin-bottom: 5px;
}

.subject {
    color: #7f8c8d;
    font-size: 0.9rem;
}

.ranking-table {
    width: 100%;
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    max-width: 900px;
    margin: 0 auto;
}

.ranking-table thead {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.ranking-table th,
.ranking-table td {
    padding: 16px;
    text-align: center;
}

.ranking-table th {
    font-weight: 600;
    font-size: 1rem;
}

.ranking-table tbody tr {
    border-bottom: 1px solid #f0f0f0;
    transition: background 0.3s ease;
}

.ranking-table tbody tr:hover {
    background: #f8f9ff;
}

.up {
    color: #27ae60;
    font-weight: bold;
}

.down {
    color: #e74c3c;
    font-weight: bold;
}

.same {
    color: #95a5a6;
}

.ranking-note {
    text-align: center;
    margin-top: 25px;
    padding: 20px;
    background: #fff3cd;
    border-radius: 10px;
    color: #856404;
}

.progress-stars,
.attendance-board,
.helpers-wall {
    max-width: 900px;
    margin: 0 auto;
}

.progress-stars h3,
.attendance-board h3,
.helpers-wall h3 {
    color: #2c3e50;
    font-size: 1.5rem;
    margin-bottom: 10px;
    text-align: center;
}

.board-desc,
.wall-desc {
    text-align: center;
    color: #7f8c8d;
    margin-bottom: 30px;
}

.stars-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.star-item {
    background: white;
    padding: 25px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 20px;
    box-shadow: 0 3px 15px rgba(0,0,0,0.06);
    transition: transform 0.3s ease;
}

.star-item:hover {
    transform: translateX(5px);
}

.star-rank {
    width: 45px;
    height: 45px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.star-info {
    flex: 1;
}

.star-name {
    font-size: 1.2rem;
    font-weight: bold;
    color: #2c3e50;
    margin-bottom: 5px;
}

.star-detail {
    color: #7f8c8d;
    font-size: 0.95rem;
}

.star-badge {
    background: #27ae60;
    color: white;
    padding: 8px 16px;
    border-radius: 15px;
    font-size: 0.9rem;
    font-weight: 500;
}

.perfect-attendance {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.attendance-student {
    background: white;
    padding: 25px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 3px 15px rgba(0,0,0,0.06);
    transition: transform 0.3s ease;
}

.attendance-student:hover {
    transform: translateY(-5px);
}

.avatar {
    font-size: 2.5rem;
    display: block;
    margin-bottom: 10px;
}

.name {
    font-size: 1.1rem;
    font-weight: bold;
    color: #2c3e50;
    display: block;
    margin-bottom: 5px;
}

.streak {
    color: #27ae60;
    font-weight: 600;
    font-size: 0.95rem;
}

.helper-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 20px;
}

.helper-card {
    background: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 3px 15px rgba(0,0,0,0.06);
    border-left: 4px solid #667eea;
    transition: transform 0.3s ease;
}

.helper-card:hover {
    transform: translateY(-5px);
}

.helper-role {
    font-size: 1.2rem;
    font-weight: bold;
    color: #2c3e50;
    margin-bottom: 10px;
}

.helper-names {
    color: #667eea;
    font-weight: 600;
    margin-bottom: 10px;
    font-size: 1rem;
}

.helper-desc {
    color: #7f8c8d;
    font-size: 0.95rem;
    line-height: 1.6;
}

.timeline {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
    padding: 20px 0;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    width: 3px;
    height: 100%;
    background: linear-gradient(to bottom, #667eea, #764ba2);
    transform: translateX(-50%);
}

.timeline-item {
    position: relative;
    width: 50%;
    padding: 20px 40px;
}

.timeline-item.left {
    left: 0;
    text-align: right;
}

.timeline-item.right {
    left: 50%;
    text-align: left;
}

.timeline-content {
    background: white;
    padding: 25px;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    position: relative;
    transition: transform 0.3s ease;
}

.timeline-content:hover {
    transform: scale(1.03);
}

.timeline-item.left .timeline-content::after {
    content: '';
    position: absolute;
    right: -10px;
    top: 20px;
    width: 0;
    height: 0;
    border: 10px solid transparent;
    border-left-color: white;
}

.timeline-item.right .timeline-content::after {
    content: '';
    position: absolute;
    left: -10px;
    top: 20px;
    width: 0;
    height: 0;
    border: 10px solid transparent;
    border-right-color: white;
}

.timeline-date {
    display: inline-block;
    background: #667eea;
    color: white;
    padding: 5px 15px;
    border-radius: 15px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 12px;
}

.timeline-content h3 {
    color: #2c3e50;
    font-size: 1.3rem;
    margin-bottom: 10px;
}

.timeline-content p {
    color: #555;
    line-height: 1.7;
    margin-bottom: 12px;
}

.timeline-tags {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.timeline-item.right .timeline-tags {
    justify-content: flex-start;
}

.timeline-tags .tag {
    background: #ecf0f1;
    color: #7f8c8d;
    font-size: 0.8rem;
}

.timeline-tags .tag.success {
    background: #d4edda;
    color: #155724;
}

.timeline-tags .tag.activity {
    background: #d1ecf1;
    color: #0c5460;
}

.timeline-tags .tag.warm {
    background: #fff3cd;
    color: #856404;
}

.timeline-tags .tag.art {
    background: #f8d7da;
    color: #721c24;
}

.timeline-tags .tag.start {
    background: #e2e3e5;
    color: #383d41;
}

.message-form {
    max-width: 700px;
    margin: 0 auto 40px;
    background: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
}

#messageInput {
    width: 100%;
    padding: 15px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    resize: vertical;
    font-family: inherit;
    font-size: 1rem;
    transition: border-color 0.3s ease;
    margin-bottom: 15px;
}

#messageInput:focus {
    outline: none;
    border-color: #667eea;
}

.form-actions {
    display: flex;
    gap: 15px;
    align-items: center;
}

#nicknameInput {
    flex: 1;
    padding: 12px 18px;
    border: 2px solid #e0e0e0;
    border-radius: 25px;
    font-size: 0.95rem;
    transition: border-color 0.3s ease;
}

#nicknameInput:focus {
    outline: none;
    border-color: #667eea;
}

.submit-btn {
    padding: 12px 30px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.3s ease;
    font-size: 1rem;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102,126,234,0.4);
}

.messages-container {
    max-width: 800px;
    margin: 0 auto;
}

.message-item {
    background: white;
    padding: 25px;
    margin-bottom: 20px;
    border-radius: 15px;
    box-shadow: 0 3px 15px rgba(0,0,0,0.06);
    display: flex;
    gap: 20px;
    transition: transform 0.3s ease;
}

.message-item:hover {
    transform: translateX(5px);
}

.message-item.highlighted {
    background: linear-gradient(to right, #fff9e6, white);
    border-left: 4px solid #ffc107;
}

.message-avatar {
    font-size: 2.5rem;
    flex-shrink: 0;
}

.message-content {
    flex: 1;
}

.message-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 10px;
    flex-wrap: wrap;
}

.message-author {
    color: #2c3e50;
    font-size: 1.1rem;
}

.message-time {
    color: #95a5a6;
    font-size: 0.9rem;
}

.teacher-badge {
    background: #e74c3c;
    color: white;
    padding: 3px 10px;
    border-radius: 10px;
    font-size: 0.8rem;
    font-weight: 500;
}

.message-text {
    color: #555;
    line-height: 1.7;
    margin-bottom: 12px;
    font-size: 1rem;
}

.message-actions {
    display: flex;
    gap: 15px;
}

.like-btn,
.reply-btn {
    background: none;
    border: 1px solid #e0e0e0;
    padding: 6px 15px;
    border-radius: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #7f8c8d;
    font-size: 0.9rem;
}

.like-btn:hover {
    background: #e8f4fd;
    border-color: #3498db;
    color: #3498db;
}

.reply-btn:hover {
    background: #f0f0f0;
    border-color: #95a5a6;
}

.thanks-sections {
    display: flex;
    flex-direction: column;
    gap: 50px;
}

.thanks-group h3 {
    color: #2c3e50;
    font-size: 1.8rem;
    margin-bottom: 25px;
    text-align: center;
}

.teacher-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
}

.teacher-card {
    background: white;
    padding: 30px;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    transition: transform 0.3s ease;
}

.teacher-card:hover {
    transform: translateY(-8px);
}

.teacher-avatar {
    font-size: 3.5rem;
    margin-bottom: 15px;
}

.teacher-card h4 {
    color: #2c3e50;
    font-size: 1.3rem;
    margin-bottom: 8px;
}

.subject {
    color: #667eea;
    font-weight: 600;
    margin-bottom: 12px;
}

.thanks-msg {
    color: #7f8c8d;
    line-height: 1.6;
    font-size: 0.95rem;
}

.parents-thanks {
    background: linear-gradient(135deg, #ffecd2 0%, #fcb69f 100%);
    padding: 40px;
    border-radius: 20px;
    text-align: center;
}

.parents-thanks blockquote {
    font-size: 1.3rem;
    color: #2c3e50;
    font-style: italic;
    line-height: 1.8;
    margin: 0;
}

.classmates-thanks {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.thank-you-note {
    background: white;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 3px 15px rgba(0,0,0,0.06);
    border-left: 4px solid #27ae60;
    transition: transform 0.3s ease;
}

.thank-you-note:hover {
    transform: translateX(5px);
}

.thank-you-note p {
    color: #555;
    line-height: 1.7;
}

.footer {
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    color: white;
    padding: 50px 0 30px;
}

.footer-content {
    text-align: center;
}

.footer-logo {
    font-size: 2rem;
    font-weight: bold;
    margin-bottom: 15px;
}

.footer-quote {
    font-size: 1.2rem;
    font-style: italic;
    margin-bottom: 25px;
    opacity: 0.9;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 25px;
    margin-bottom: 25px;
    flex-wrap: wrap;
}

.footer-links a {
    color: white;
    text-decoration: none;
    transition: color 0.3s ease;
    opacity: 0.9;
}

.footer-links a:hover {
    color: #a8d8ff;
    opacity: 1;
}

.copyright {
    opacity: 0.8;
    margin-bottom: 8px;
    font-size: 0.95rem;
}

.tech-info {
    opacity: 0.6;
    font-size: 0.85rem;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@media (max-width: 768px) {
    .nav-container {
        flex-direction: column;
        gap: 15px;
    }

    .nav-links {
        flex-wrap: wrap;
        justify-content: center;
        gap: 8px;
        font-size: 0.9rem;
    }

    .hero-content h1 {
        font-size: 2.5rem;
    }

    .hero-stats {
        flex-direction: column;
        gap: 1.5rem;
    }

    .about-grid {
        grid-template-columns: 1fr;
    }

    .top-three {
        grid-template-columns: 1fr;
    }

    .rank-card.gold {
        transform: none;
    }

    .timeline::before {
        left: 20px;
    }

    .timeline-item {
        width: 100%;
        left: 0 !important;
        padding-left: 60px;
        text-align: left !important;
    }

    .timeline-item.left .timeline-content::after,
    .timeline-item.right .timeline-content::after {
        left: -10px;
        right: auto;
        border-right-color: white;
        border-left-color: transparent;
    }

    .timeline-tags {
        justify-content: flex-start !important;
    }

    .ranking-table {
        font-size: 0.85rem;
    }

    .ranking-table th,
    .ranking-table td {
        padding: 10px 8px;
    }

    .message-item {
        flex-direction: column;
        text-align: center;
    }

    .section-title {
        font-size: 2rem;
    }
}