/* Global Styles */
:root {
    --primary-color: #0288d1;
    --secondary-color: #03a9f4;
    --accent-color: #00bcd4;
    --text-color: #e0e0e0;
    --dark-bg: #1a1a1a;
    --card-bg: rgba(32, 35, 42, 0.7);
    --card-hover-bg: rgba(38, 41, 48, 0.9);
    --border-radius: 12px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background: var(--dark-bg);
    min-height: 100vh;
}

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

/* Header Styles */
header {
    background: url('images/header-bg.jpg') center 40%/cover no-repeat;
    position: relative;
    color: white;
    padding: 60px 0;
    text-align: center;
    margin-bottom: 20px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    overflow: hidden;
    height: auto;
    display: block;
}

header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, 
        rgba(0, 0, 0, 0.4), 
        rgba(0, 0, 0, 0.6)
    );
    z-index: 1;
}

.header-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
    padding: 20px 30px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 15px;
    backdrop-filter: blur(2px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

header h1 {
    font-size: 2.8em;
    margin-bottom: 15px;
    text-shadow: 2px 2px 8px rgba(0,0,0,0.6);
    font-weight: 800;
    letter-spacing: 2px;
    color: #ffffff;
}

header p {
    font-size: 1.2em;
    text-shadow: 1px 1px 4px rgba(0,0,0,0.6);
    margin-bottom: 5px;
    color: #ffffff;
    font-weight: 500;
    opacity: 0.95;
}

/* Section Styles */
.resource-section {
    margin-bottom: 40px;
}

.resource-section h2 {
    color: var(--secondary-color);
    margin-bottom: 25px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(3, 169, 244, 0.2);
    display: flex;
    align-items: center;
    gap: 10px;
}

.resource-section h2 i {
    color: var(--accent-color);
}

/* Grid Container */
.grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 25px;
    padding: 10px;
}

/* Card Styles */
.card {
    background: var(--card-bg);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    transition: var(--transition);
    text-decoration: none;
    color: var(--text-color);
    position: relative;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    height: 100%;
    display: flex;
}

.card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 8px 25px rgba(0,0,0,0.3);
    background: var(--card-hover-bg);
    border-color: rgba(3, 169, 244, 0.3);
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, transparent, rgba(3, 169, 244, 0.1), transparent);
    transform: translateX(-100%);
    transition: 0.5s;
}

.card:hover::before {
    transform: translateX(100%);
}

.card-content {
    padding: 25px;
    position: relative;
    z-index: 1;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.card-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
}

.site-icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    object-fit: cover;
}

.card h3 {
    color: #fff;
    margin: 0;
    font-size: 1.4em;
}

.card p {
    color: #b0b0b0;
    margin-bottom: 15px;
    transition: var(--transition);
    flex: 1;
}

.card:hover p {
    color: #e0e0e0;
}

.card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 20px;
}

.category {
    background: rgba(3, 169, 244, 0.2);
    padding: 4px 12px;
    border-radius: 15px;
    font-size: 0.8em;
    color: var(--accent-color);
    border: 1px solid rgba(3, 169, 244, 0.3);
}

.card i {
    color: var(--accent-color);
    transition: var(--transition);
}

.card:hover i {
    transform: translateX(5px);
}

/* Additional Info */
.additional-info {
    max-width: 900px;
    margin: 40px auto;
    padding: 25px;
    background: rgba(32, 35, 42, 0.5);
    border-radius: var(--border-radius);
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.additional-info h3 {
    color: var(--secondary-color);
    margin-bottom: 15px;
    font-size: 1.4em;
}

.additional-info p {
    line-height: 1.7;
}

/* Footer */
footer {
    background: #000000;
    color: white;
    padding: 40px 0 20px;
    margin-top: 60px;
    box-shadow: 0 -4px 15px rgba(0,0,0,0.2);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto 30px;
    padding: 0 20px;
}

.footer-section h4 {
    margin-bottom: 20px;
    font-size: 1.2em;
    position: relative;
    padding-bottom: 10px;
}

.footer-section h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 2px;
    background: rgba(255, 255, 255, 0.3);
}

.footer-section p {
    line-height: 1.6;
    opacity: 0.9;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 10px;
}

.footer-section a {
    color: white;
    text-decoration: none;
    opacity: 0.9;
    transition: var(--transition);
}

.footer-section a:hover {
    opacity: 1;
    color: rgba(255, 255, 255, 1);
    text-decoration: underline;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-links a {
    font-size: 1.4em;
    display: inline-block;
    transition: var(--transition);
}

.social-links a:hover {
    transform: translateY(-3px);
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.9em;
    opacity: 0.8;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.card, .additional-info {
    animation: fadeIn 0.5s ease-out forwards;
}

/* 更新响应式设计，移除不需要的部分 */
@media (max-width: 768px) {
    header {
        padding: 40px 0;
    }

    header h1 {
        font-size: 2.2em;
    }

    .grid-container {
        grid-template-columns: 1fr;
    }

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-section h4::after {
        left: 50%;
        transform: translateX(-50%);
    }

    .social-links {
        justify-content: center;
    }
} 