/* styles.css */
body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    margin: 0;
    padding: 0;
    background-color: white;
    color: black;

}

header {
    background: #ffffff;

    color: white;
    padding: 10px 0;
    text-align: center;
}

header h1 {
    margin: 0;
}

nav ul {
    list-style: none;
    padding: 0;
}

nav ul li {
    display: inline;
    margin: 0 10px;
}

nav ul li a {
    color:black;
    text-decoration: none;
}

main {
    padding: 20px;
}

section {
    margin-bottom: 20px;
}

section h2 {
    color: black;
}

section img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 10px 0;
}

footer {
    background: #d8bc78;
    color: white;
    text-align: center;
    padding: 10px 0;
    position: fixed;
    width: 100%;
    bottom: 0;
}

button {
    background: #333;
    color: white;
    border: none;
    padding: 10px 20px;
    cursor: pointer;
}

button:hover {
    background: #555;
}

.container1 {
    display: flex;
    justify-content: space-around;
    padding: 20px;
}

.card {
    width: 30%;
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.card h2 {
    padding: 15px;
    margin: 0;
    font-size: 1.5em;
    color: #333;
}

.card p {
    padding: 0 15px 15px;
    margin: 0;
    color: #666;
}

.grid-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    padding: 20px;
}

.grid-item {
    background-color: #f4f4f4;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.grid-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.grid-item h2 {
    margin: 0 0 10px;
    font-size: 1.8em;
    color: #333;
}

.grid-item p {
    margin: 0;
    color: #666;
}

.card .full-text {
    display: none; /* 默认隐藏完整文本 */
}

.card .toggle-button {
    display: block;
    width: 100%;
    padding: 10px;
    background-color: #d8bc78;
    color: white;
    border: none;
    cursor: pointer;
    font-size: 1em;
    transition: background-color 0.3s ease;
}

/* 压力管理容器 */
.pressure-management {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

/* 每个压力管理项目的样式 */
.pressure-item {
    background-color: #ffffff;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.pressure-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.pressure-content h3 {
    font-size: 1.8em;
    color: #E6E6FA;
    margin-bottom: 15px;
    font-weight: 600;
    position: relative;
    padding-left: 10px;
}

.pressure-content h3::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 80%;
    background-color: #E6E6FA;
    border-radius: 2px;
}

.pressure-content p {
    font-size: 1.1em;
    color: #555;
    margin-bottom: 15px;
    line-height: 1.8;
}

.pressure-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin-bottom: 15px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.pressure-content ul {
    list-style-type: none;
    padding-left: 0;
    margin-bottom: 15px;
}

.pressure-content ul li {
    font-size: 1em;
    color: #555;
    margin-bottom: 10px;
    padding-left: 20px;
    position: relative;
}

.pressure-content ul li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: #96b65d;
    font-size: 1.2em;
    line-height: 1;
}

/* 按钮样式（可选） */
.button {
    display: inline-block;
    padding: 10px 20px;
    font-size: 1em;
    color: #fff;
    background-color: #3498db;
    border-radius: 5px;
    text-decoration: none;
    transition: background-color 0.3s ease;
}

.button:hover {
    background-color: #2980b9;
}

/* 响应式设计 */
@media (max-width: 768px) {
    h2 {
        font-size: 2em;
    }

    .pressure-item {
        padding: 15px;
    }

    .pressure-content h3 {
        font-size: 1.5em;
    }

    .pressure-content p {
        font-size: 1em;
    }
}