/* 一般样式 */

body {
  margin: 0;
}

html {
  font-family: 'Helvetica neue', Arial, 'sans serif', sans-serif;
  font-size: 10px;
  background-color: #ccc;
}

/* 卡片设置 */

.card {
  width: 35em;
  height: 28em;
  margin: 5em auto;
  background-color: red;
  border: 0.2em solid black;
  border-radius: 1.5em;
}

.card h2, .card p {
  margin: 0;
}

/* 页眉和页脚 */

.card header, .card footer {
  padding: 1em;
}

.card header {
  height: 3em;
  background-image: linear-gradient(to bottom,rgba(0,0,0,0.1), rgba(0,0,0,0));
  border-radius: 1.5em 1.5em 0 0;
}

.card footer {
  height: 9em;
  background-image: linear-gradient(to bottom,rgba(0,0,0,0), rgba(0,0,0,0.1));
  border-radius: 0 0 1.5em 1.5em;
}

.card header h2 {
  font-size: 2em;
  line-height: 1.5;
}

.card footer p {
  font-size: 1.5em;
  line-height: 2;
}

/* 卡片（文章）主体 */

.card article {
  height: 12em;
  background-color: rgba(0,0,0,0.25);
}

.card article img {
  max-height: 100%;
  float: right;
}

.card article p {
  padding: 1em;
  color: rgba(255,255,255,0.8);
}
