/* Global Styles */
:root {
    --primary-color: #4a6cf7;
    --secondary-color: #ff9d00;
    --dark-color: #171c24;
    --light-color: #f4f7fe;
    --text-color: #333;
    --light-text: #666;
    --border-color: #eaeaea;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    --hover-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
    --card-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
    --bg-secondary: #f8f9fa;
    --text-primary: #333;
    --text-secondary: #666;
    --accent-color: #4a6cf7;
}

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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: var(--text-color);
    line-height: 1.6;
    background-color: var(--light-color);
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

a:hover {
    color: var(--primary-color);
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* Header Styles */
header {
    background-color: #fff;
    box-shadow: var(--shadow);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

header h1 {
    color: var(--primary-color);
    font-size: 28px;
    margin-right: 20px;
}

header h1 span {
    font-size: 16px;
    color: var(--light-text);
    margin-left: 10px;
    font-weight: normal;
}

.search-box {
    display: flex;
    align-items: center;
    flex: 1;
    max-width: 500px;
    position: relative;
}

.search-box input {
    width: 100%;
    padding: 10px 15px;
    border: 1px solid var(--border-color);
    border-radius: 50px;
    font-size: 16px;
    outline: none;
}

.search-box button {
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    position: absolute;
    right: 5px;
    transition: background-color 0.3s;
}

.search-box button:hover {
    background-color: #3a57d9;
}

#search-count {
    position: absolute;
    top: 100%;
    left: 0;
    font-size: 14px;
    color: var(--light-text);
    margin-top: 5px;
    padding: 5px 0;
}

/* Language Toggle */
.language-toggle {
    display: flex;
    margin-left: 20px;
}

.language-toggle button {
    background: none;
    border: 1px solid var(--border-color);
    padding: 8px 12px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s;
}

.language-toggle button:first-child {
    border-top-left-radius: 5px;
    border-bottom-left-radius: 5px;
}

.language-toggle button:last-child {
    border-top-right-radius: 5px;
    border-bottom-right-radius: 5px;
}

.language-toggle button.active {
    background-color: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

/* Section Styles */
.section {
    margin-bottom: 40px;
    background-color: #fff;
    border-radius: 10px;
    box-shadow: var(--shadow);
    padding: 20px;
    transition: transform 0.3s, box-shadow 0.3s;
}

.section:hover {
    transform: translateY(-5px);
    box-shadow: var(--hover-shadow);
}

.section h2 {
    color: var(--primary-color);
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--border-color);
    display: flex;
    align-items: center;
}

.section h2 i {
    margin-right: 10px;
    color: var(--secondary-color);
}

.card-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.card {
    background-color: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s, box-shadow 0.3s;
    height: 100%;
    position: relative;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.card a {
    display: block;
    color: inherit;
    text-decoration: none;
    height: 100%;
    width: 100%;
}

.card h3 {
    padding: 15px;
    background-color: var(--primary-color);
    color: white;
    font-size: 16px;
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.card-content {
    padding: 15px;
    display: flex;
    align-items: center;
}

.card-image {
    width: 80px;
    height: 60px;
    margin-right: 15px;
    border-radius: 5px;
    overflow: hidden;
    flex-shrink: 0;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.card-timestamp {
    font-size: 12px;
    color: var(--light-text);
    margin-bottom: 5px;
}

.card p {
    margin: 0;
    font-size: 14px;
    color: var(--light-text);
    flex-grow: 1;
}

/* Footer Styles */
footer {
    background-color: var(--bg-secondary);
    color: var(--text-primary);
    padding: 40px 0 20px;
    margin-top: 50px;
    border-top: 1px solid var(--border-color);
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    margin-bottom: 30px;
}

.footer-col {
    flex: 1;
    min-width: 250px;
    margin-bottom: 20px;
    padding: 0 15px;
}

.footer-col h4 {
    margin-bottom: 15px;
    font-size: 18px;
    position: relative;
}

.footer-col h4:after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -5px;
    width: 50px;
    height: 2px;
    background-color: var(--accent-color);
}

.footer-col p {
    margin-bottom: 10px;
    font-size: 14px;
    line-height: 1.6;
}

.footer-col ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

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

.footer-col ul li a {
    color: var(--text-primary);
    text-decoration: none;
    transition: color 0.3s;
    font-size: 14px;
}

.footer-col ul li a:hover {
    color: var(--accent-color);
}

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

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
    transition: all 0.3s;
}

.social-links a:hover {
    background-color: var(--accent-color);
    color: white;
    transform: translateY(-3px);
}

.copyright {
    text-align: center;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 14px;
}

/* Language Translation Styles */
.zh, .en {
    display: inline-block;
    transition: var(--transition);
}

.en {
    display: none;
}

/* English mode */
body.en-mode .zh {
    display: none;
}

body.en-mode .en {
    display: inline-block;
}

/* Section Note Styles */
.section-note {
    margin-top: 20px;
    padding: 15px;
    background-color: #f9f9f9;
    border-left: 4px solid var(--secondary-color);
    font-size: 14px;
    color: var(--light-text);
    border-radius: 0 5px 5px 0;
}

.section-note p {
    margin-bottom: 0.8rem;
    font-size: 0.95rem;
    color: #555;
    line-height: 1.7;
}

.section-note p:last-child {
    margin-bottom: 0;
}

/* Responsive Styles */
@media (max-width: 768px) {
    header .container {
        flex-direction: column;
        align-items: stretch;
    }
    
    header h1 {
        margin-bottom: 15px;
        text-align: center;
    }
    
    .search-box {
        margin-bottom: 15px;
        max-width: 100%;
    }
    
    .language-toggle {
        margin-left: 0;
        justify-content: center;
    }
    
    .card-container {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        flex-direction: column;
    }
    
    .footer-col {
        margin-bottom: 30px;
    }
}

@media (max-width: 480px) {
    .card-content {
        flex-direction: column;
        text-align: center;
    }
    
    .card-image {
        margin-right: 0;
        margin-bottom: 10px;
    }
    
    #search-count {
        text-align: center;
        position: static;
        margin-top: 10px;
    }
}

/* 面包屑导航样式 */
.breadcrumb-container {
    background-color: var(--bg-secondary);
    padding: 8px 0;
    margin-bottom: 20px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.breadcrumb {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
}

.breadcrumb li {
    display: inline-flex;
    align-items: center;
    margin-right: 8px;
}

.breadcrumb li:not(:last-child):after {
    content: "/";
    margin-left: 8px;
    color: var(--text-secondary);
}

.breadcrumb a {
    color: var(--text-primary);
    text-decoration: none;
    transition: color 0.3s;
}

.breadcrumb a:hover {
    color: var(--accent-color);
}

.breadcrumb .active {
    color: var(--accent-color);
}

/* 微信弹窗样式 */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.5);
}

.modal-content {
    background-color: #fefefe;
    margin: 15% auto;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    position: relative;
    width: 300px;
    text-align: center;
}

.close-modal {
    position: absolute;
    top: 10px;
    right: 15px;
    color: #aaa;
    font-size: 24px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s;
}

.close-modal:hover {
    color: var(--primary-color);
}

.qrcode-container {
    margin: 20px 0;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.qrcode-container img {
    max-width: 200px;
    border: 1px solid #eee;
    margin-bottom: 10px;
}

.qrcode-container p {
    font-size: 14px;
    color: #666;
}

@media (max-width: 480px) {
    .modal-content {
        width: 90%;
        margin: 30% auto;
    }
} 