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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Microsoft YaHei', 微软雅黑, 'PingFang SC', 'Hiragino Sans GB', sans-serif;
    background: linear-gradient(135deg, #f5f7fa 0%, #e8edf2 100%);
    color: #333;
    line-height: 1.8;
    padding: 20px;
    min-height: 100vh;
}

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

header {
    text-align: center;
    padding: 30px 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 15px;
    margin-bottom: 30px;
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.3);
}

header h1 {
    font-size: 2.5em;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

.subtitle {
    font-size: 1.2em;
    opacity: 0.95;
    margin-bottom: 5px;
}

.motto {
    font-size: 0.9em;
    opacity: 0.85;
    font-style: italic;
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 25px;
    margin-bottom: 30px;
}

.card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.card-header {
    padding: 20px;
    color: white;
    font-weight: bold;
}

.card-header h2 {
    font-size: 1.3em;
    margin: 0;
}

.meme-card .card-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.drama-card .card-header {
    background: linear-gradient(135deg, #c0392b 0%, #8e44ad 100%);
}

.teaching-card .card-header {
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
}

.xian-card .card-header {
    background: linear-gradient(135deg, #f39c12 0%, #d68910 100%);
}

.expat-card .card-header {
    background: linear-gradient(135deg, #1abc9c 0%, #16a085 100%);
}

.art-card .card-header {
    background: linear-gradient(135deg, #e67e22 0%, #d35400 100%);
}

.work-card .card-header {
    background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
}

.mom-card .card-header {
    background: linear-gradient(135deg, #ff6b9d 0%, #c44569 100%);
}

.card-content {
    padding: 25px;
}

.chinese-text {
    font-size: 2em;
    font-weight: bold;
    color: #c0392b;
    margin-bottom: 15px;
    text-align: center;
    line-height: 1.4;
}

.usage {
    font-size: 1.1em;
    color: #555;
    margin-bottom: 15px;
    text-align: center;
    font-style: italic;
}

.meaning-box, .example-box, .question-box, .thought-box, .trigger-box,
.reaction-box, .craving-box, .observation-box, .reality-box, .content-box,
.mood-box, .chaos-box, .zen-box {
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 15px;
    line-height: 1.8;
}

.meaning-box {
    background: #e8f5e9;
    border-left: 4px solid #4caf50;
}

.example-box {
    background: #fff3cd;
    border-left: 4px solid #ffc107;
}

.question-box {
    background: #f8d7da;
    border-left: 4px solid #dc3545;
    font-size: 1.05em;
}

.thought-box {
    background: #d1ecf1;
    border-left: 4px solid #17a2b8;
    font-style: italic;
}

.scenario-label, .situation-label, .moment-label {
    display: inline-block;
    background: #6c757d;
    color: white;
    padding: 5px 12px;
    border-radius: 15px;
    font-size: 0.85em;
    margin-bottom: 15px;
}

.drama-comment {
    font-size: 1em;
    color: #6c757d;
    text-align: center;
    margin-top: 15px;
    font-style: italic;
}

.trigger-box {
    background: #fff3e0;
    border-left: 4px solid #ff9800;
}

.reaction-box {
    background: #fce4ec;
    border-left: 4px solid #e91e63;
    font-size: 1.05em;
}

.craving-box {
    background: #f3e5f5;
    border-left: 4px solid #9c27b0;
    font-size: 1.1em;
    font-weight: 500;
}

.observation-box {
    background: #e0f2f1;
    border-left: 4px solid #009688;
    font-size: 1.05em;
}

.reality-box {
    background: #e8f5e9;
    border-left: 4px solid #4caf50;
}

.content-box {
    background: #e3f2fd;
    border-left: 4px solid #2196f3;
    font-size: 1.1em;
    font-weight: 500;
}

.mood-box {
    background: #ffe0b2;
    border-left: 4px solid #ff9800;
    margin-bottom: 15px;
}

.chaos-box {
    background: #ffebee;
    border-left: 4px solid #f44336;
}

.zen-box {
    background: #e8f5e9;
    border-left: 4px solid #4caf50;
}

.card-content h3 {
    color: #333;
    margin-bottom: 15px;
    font-size: 1.3em;
}

.btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 12px 25px;
    font-size: 1em;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    font-weight: bold;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
    margin-top: 10px;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.6);
}

.btn:active {
    transform: translateY(0);
}

footer {
    text-align: center;
    padding: 30px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

footer p {
    margin-bottom: 10px;
    font-size: 1.1em;
}

.footer-note {
    font-style: italic;
    color: #7f8c8d;
    font-size: 0.9em;
}

@media (max-width: 768px) {
    .grid {
        grid-template-columns: 1fr;
    }

    header h1 {
        font-size: 2em;
    }

    .chinese-text {
        font-size: 1.5em;
    }
}

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

.card {
    animation: fadeIn 0.5s ease-out;
}

.card:nth-child(1) { animation-delay: 0.1s; }
.card:nth-child(2) { animation-delay: 0.2s; }
.card:nth-child(3) { animation-delay: 0.3s; }
.card:nth-child(4) { animation-delay: 0.4s; }
.card:nth-child(5) { animation-delay: 0.5s; }
.card:nth-child(6) { animation-delay: 0.6s; }
.card:nth-child(7) { animation-delay: 0.7s; }
.card:nth-child(8) { animation-delay: 0.8s; }

/* Better Chinese font rendering */
body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}
