/* styles.css - 热土工作室社团官网样式表 */

/* 基础设置 */
:root {
    --primary-color: #ff7e36;
    --primary-dark: #e56a1f;
    --primary-light: #ffa366;
    --secondary-color: #ffb347;
    --accent-color: #ffcc80;
    --light-color: #fff9f0;
    --dark-color: #333333;
    --gray-color: #666666;
    --light-gray: #f5f5f5;
    --shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Roboto', 'Nunito', sans-serif;
    line-height: 1.6;
    color: var(--dark-color);
    background-color: var(--light-color);
    overflow-x: hidden;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 导航栏样式 */
.navbar {
    background-color: white;
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 15px 0;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-section {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo {
    height: 50px;
    width: auto;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.logo-text h1 {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-bottom: 2px;
}

.logo-text p {
    font-size: 0.85rem;
    color: var(--gray-color);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 25px;
}

.nav-link {
    text-decoration: none;
    color: var(--dark-color);
    font-weight: 500;
    padding: 8px 15px;
    border-radius: 20px;
    transition: var(--transition);
}

.nav-link:hover {
    background-color: var(--primary-light);
    color: white;
}

.nav-link.active {
    background-color: var(--primary-color);
    color: white;
}

.external-links {
    display: flex;
    gap: 10px;
}

.external-link {
    text-decoration: none;
    padding: 8px 15px;
    border-radius: 20px;
    font-weight: 500;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 5px;
}

.studio-link {
    background-color: var(--primary-color);
    color: white;
}

.studio-link:hover {
    background-color: var(--primary-dark);
}

.school-link {
    background-color: var(--secondary-color);
    color: white;
}

.school-link:hover {
    background-color: #e6a02e;
}

/* 主要内容区样式 */
main {
    padding: 30px 0 60px;
}

/* 欢迎横幅 */
.hero {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 50px;
    background: linear-gradient(135deg, var(--primary-light) 0%, var(--secondary-color) 100%);
    border-radius: 15px;
    padding: 40px;
    color: white;
    box-shadow: var(--shadow);
}

.hero-content {
    flex: 1;
    min-width: 300px;
    padding-right: 30px;
}

.hero h2 {
    font-size: 2.2rem;
    margin-bottom: 15px;
}

.hero p {
    font-size: 1.1rem;
    margin-bottom: 20px;
    opacity: 0.9;
}

.hero-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 20px;
}

.badge {
    background-color: rgba(255, 255, 255, 0.2);
    padding: 6px 15px;
    border-radius: 20px;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 5px;
    backdrop-filter: blur(5px);
}

.hero-image {
    flex: 1;
    min-width: 300px;
    display: flex;
    justify-content: center;
}

.image-placeholder {
    width: 250px;
    height: 250px;
    background-color: rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-size: 5rem;
    color: white;
    backdrop-filter: blur(5px);
}

.image-placeholder p {
    font-size: 1rem;
    margin-top: 15px;
    text-align: center;
    width: 80%;
}

/* 板块标题 */
.section-header {
    text-align: center;
    margin-bottom: 40px;
}

.section-header h2 {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.section-header p {
    color: var(--gray-color);
    font-size: 1.1rem;
}

/* 最新消息板块 */
.news-section {
    margin-bottom: 60px;
}

.news-container {
    background-color: white;
    border-radius: 15px;
    box-shadow: var(--shadow);
    overflow: hidden;
    margin-bottom: 25px;
}

.news-item {
    display: flex;
    padding: 25px;
    border-bottom: 1px solid var(--light-gray);
    transition: var(--transition);
}

.news-item:hover {
    background-color: #fffbf5;
}

.news-date {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 80px;
    margin-right: 25px;
    background-color: var(--light-gray);
    border-radius: 10px;
    padding: 15px 10px;
}

.date-day {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-color);
}

.date-month {
    font-size: 1rem;
    color: var(--gray-color);
    text-transform: uppercase;
}

.news-content {
    flex: 1;
}

.news-content h3 {
    font-size: 1.4rem;
    color: var(--dark-color);
    margin-bottom: 10px;
}

.news-content p {
    color: var(--gray-color);
    margin-bottom: 10px;
}

.news-meta {
    font-size: 0.9rem;
    color: var(--gray-color);
    display: flex;
    align-items: center;
    gap: 5px;
}

.news-status {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 100px;
}

.status-badge {
    padding: 6px 15px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
}

.status-badge.inactive {
    background-color: #ffebee;
    color: #c62828;
}

.news-placeholder {
    padding: 50px 20px;
    text-align: center;
    color: var(--gray-color);
}

.news-placeholder i {
    font-size: 3rem;
    margin-bottom: 15px;
    color: var(--accent-color);
}

.news-placeholder h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.news-actions {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.btn {
    padding: 12px 30px;
    border: none;
    border-radius: 30px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-primary {
    background-color: var(--primary-color);
    color: white;
}

.btn-primary:hover:not(:disabled) {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
}

.btn-primary:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.news-note {
    color: var(--gray-color);
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
}

/* 关于我们板块 */
.about-content {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    justify-content: center;
}

.about-card {
    flex: 1;
    min-width: 280px;
    background-color: white;
    border-radius: 15px;
    padding: 30px;
    box-shadow: var(--shadow);
    text-align: center;
    transition: var(--transition);
}

.about-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

.about-icon {
    width: 70px;
    height: 70px;
    background-color: var(--accent-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 1.8rem;
    color: var(--primary-dark);
}

.about-card h3 {
    font-size: 1.4rem;
    color: var(--primary-color);
    margin-bottom: 15px;
}

/* 页脚样式 */
footer {
    background-color: #2c2c2c;
    color: white;
    padding: 40px 0 20px;
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    margin-bottom: 30px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 30px;
}

.footer-logo-img {
    height: 50px;
    width: auto;
    border-radius: 8px;
}

.footer-logo h3 {
    font-size: 1.3rem;
    margin-bottom: 5px;
}

.footer-logo p {
    color: #aaa;
    font-size: 0.9rem;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
}

.footer-link-group {
    min-width: 180px;
}

.footer-link-group h4 {
    font-size: 1.1rem;
    margin-bottom: 15px;
    color: var(--primary-light);
}

.footer-link-group a {
    display: block;
    color: #bbb;
    text-decoration: none;
    margin-bottom: 10px;
    transition: var(--transition);
}

.footer-link-group a:hover {
    color: var(--primary-light);
    padding-left: 5px;
}

.footer-link-group p {
    color: #bbb;
    font-size: 0.9rem;
    margin-bottom: 5px;
}

.footer-bottom {
    border-top: 1px solid #444;
    padding-top: 20px;
    text-align: center;
    color: #aaa;
    font-size: 0.9rem;
}

.footer-bottom p {
    margin-bottom: 5px;
}

/* 响应式设计 */
@media (max-width: 992px) {
    .hero {
        flex-direction: column;
        text-align: center;
    }
    
    .hero-content {
        padding-right: 0;
        margin-bottom: 30px;
    }
    
    .hero-badges {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .navbar .container {
        flex-direction: column;
        gap: 15px;
    }
    
    .nav-links {
        width: 100%;
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .footer-content {
        flex-direction: column;
    }
    
    .footer-links {
        justify-content: space-between;
        width: 100%;
    }
    
    .news-item {
        flex-direction: column;
        text-align: center;
    }
    
    .news-date {
        margin-right: 0;
        margin-bottom: 15px;
        flex-direction: row;
        gap: 10px;
        width: 100%;
        justify-content: center;
    }
    
    .news-status {
        margin-top: 15px;
    }
}

@media (max-width: 576px) {
    .hero h2 {
        font-size: 1.8rem;
    }
    
    .section-header h2 {
        font-size: 1.6rem;
    }
    
    .external-links {
        flex-direction: column;
        width: 100%;
    }
    
    .footer-links {
        flex-direction: column;
        gap: 25px;
    }
}