/*
Theme Name: PCAT - Pink Care Token
Theme URI: https://github.com/pcat-project/pcat-wordpress-theme
Author: PCAT Team
Author URI: https://pcat-project.org
Description: A WordPress theme for the Pink Care Token Project for Period Poverty. This theme displays donation information with a 4-hour caching mechanism to reduce database queries.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Tags: pink, charity, donation, women, responsive, custom-background, custom-header, custom-menu, editor-style, featured-images, flexible-header, left-sidebar, right-sidebar, sticky-post, threaded-comments, translation-ready
Text Domain: pcat

This theme, like WordPress, is licensed under the GPL.
Use it to make something cool, have fun, and share what you've learned with others.
*/

body {
    font-family: 'Arial', 'Microsoft YaHei', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #fff9fa;
}

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

/* 头部样式 */
header {
    background: linear-gradient(135deg, #ff9eb5, #ffb6c1);
    color: white;
    padding: 2rem 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

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

.header-text {
    flex: 1;
    min-width: 300px;
    text-align: left;
    padding-right: 2rem;
}

header h1 {
    font-size: 2.2rem;
    margin-bottom: 0.5rem;
}

header h2 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    font-weight: normal;
}

.subtitle {
    font-size: 1.1rem;
    opacity: 0.9;
}

.header-image {
    flex-shrink: 0;
    text-align: center;
}

.header-image img {
    width: 531px;
    height: 299px;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

/* 捐款数据显示区域 */
.donation-section {
    text-align: center;
    padding: 3rem 0;
    background: white;
    margin: 2rem 0;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
}

.donation-section h2 {
    color: #ff69b4;
    margin-bottom: 2rem;
    font-size: 1.8rem;
}

.stats-container {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 2rem;
    margin-bottom: 2rem;
}

.stat-card {
    background: #fff0f5;
    border: 1px solid #ffb6c1;
    border-radius: 10px;
    padding: 1.5rem;
    min-width: 200px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.stat-value {
    display: block;
    font-size: 2rem;
    font-weight: bold;
    color: #ff1493;
    margin-bottom: 0.5rem;
}

.stat-value .last-updated-date,
.stat-value .last-updated-time {
    font-size: 1.5rem;
    line-height: 1.2;
}

.stat-value .last-updated-time {
    font-size: 1.2rem;
    opacity: 0.8;
}

.stat-label {
    font-size: 1rem;
    color: #800080;
}

.progress-info p {
    font-size: 1.1rem;
    color: #ff69b4;
    font-weight: bold;
}

/* 标签页样式 */
.tabs-section {
    margin: 3rem 0;
}

.tab-navigation {
    display: flex;
    flex-wrap: wrap;
    border-bottom: 2px solid #ffb6c1;
    margin-bottom: 2rem;
}

.tab-button {
    background: none;
    border: none;
    padding: 1rem 2rem;
    font-size: 1.1rem;
    cursor: pointer;
    color: #800080;
    border-bottom: 3px solid transparent;
    transition: all 0.3s ease;
}

.tab-button:hover {
    background-color: #fff0f5;
}

.tab-button.active {
    border-bottom: 3px solid #ff69b4;
    color: #ff1493;
    font-weight: bold;
}

.tab-content {
    min-height: 300px;
}

.tab-pane {
    display: none;
    padding: 1rem 0;
    animation: fadeIn 0.5s ease;
}

.tab-pane.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.tab-pane h3 {
    color: #ff69b4;
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
}

.tab-pane p {
    margin-bottom: 1rem;
    font-size: 1.1rem;
    line-height: 1.8;
}

.tab-pane ul {
    margin-left: 2rem;
    margin-bottom: 1.5rem;
}

.tab-pane li {
    margin-bottom: 0.8rem;
    font-size: 1.1rem;
}

.binance-charity-link {
    background-color: #f0f8ff;
    padding: 1.5rem;
    border-radius: 8px;
    margin-top: 2rem;
    border-left: 4px solid #ff69b4;
}

.binance-charity-link a {
    color: #ff69b4;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1rem;
}

.binance-charity-link a:hover {
    text-decoration: underline;
}

.report-item {
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: #fff0f5;
    border-radius: 8px;
}

.report-item h4 {
    color: #ff69b4;
    margin-bottom: 0.5rem;
}

.partners-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.partner {
    background: white;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    border-top: 3px solid #ff69b4;
}

.partner h4 {
    color: #ff69b4;
    margin-bottom: 0.8rem;
}

/* 页脚样式 */
footer {
    background: #800080;
    color: white;
    text-align: center;
    padding: 2rem 0;
    margin-top: 3rem;
}

footer p {
    margin-bottom: 0.5rem;
}

/* 404页面样式 */
.error-404 {
    text-align: center;
    padding: 3rem 0;
}

.error-title {
    font-size: 6rem;
    color: #ff69b4;
    margin: 0;
    line-height: 1;
}

.error-404 h2 {
    font-size: 2rem;
    color: #800080;
    margin: 1rem 0;
}

.error-404 p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    color: #666;
}

.btn-home {
    display: inline-block;
    background: linear-gradient(135deg, #ff9eb5, #ffb6c1);
    color: white;
    padding: 12px 30px;
    text-decoration: none;
    border-radius: 30px;
    font-weight: bold;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.btn-home:hover {
    background: linear-gradient(135deg, #ff69b4, #ff9eb5);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.15);
}

/* 响应式设计 */
@media (max-width: 768px) {
    .stats-container {
        flex-direction: column;
        align-items: center;
    }
    
    .stat-card {
        width: 100%;
        max-width: 300px;
    }
    
    .tab-navigation {
        flex-direction: column;
    }
    
    .tab-button {
        text-align: center;
        border-bottom: 1px solid #ffb6c1;
        border-right: none;
    }
    
    header h1 {
        font-size: 1.8rem;
    }
    
    header h2 {
        font-size: 1.3rem;
    }
    
    .subtitle {
        font-size: 1rem;
    }
    
    .header-content {
        flex-direction: column;
    }
    
    .header-text {
        text-align: center;
        padding-right: 0;
        margin-bottom: 1.5rem;
    }
    
    .header-image {
        width: 100%;
    }
    
    .header-image img {
        max-width: 100%;
        height: auto;
        object-fit: contain;
    }
}