Changed around line 1
+ :root {
+ --primary-color: #e60012;
+ --secondary-color: #ffd700;
+ --text-color: #333;
+ --card-width: 300px;
+ --card-height: 400px;
+ }
+
+ * {
+ margin: 0;
+ padding: 0;
+ box-sizing: border-box;
+ }
+
+ body {
+ min-height: 100vh;
+ display: flex;
+ justify-content: center;
+ align-items: center;
+ background: linear-gradient(135deg, #ff9a9e 0%, #fad0c4 100%);
+ font-family: "Microsoft YaHei", sans-serif;
+ }
+
+ .card-container {
+ perspective: 1500px;
+ }
+
+ .card {
+ width: var(--card-width);
+ height: var(--card-height);
+ position: relative;
+ transform-style: preserve-3d;
+ transition: transform 1s ease;
+ }
+
+ .card.open {
+ transform: rotateY(-180deg);
+ }
+
+ .card-front, .card-inside {
+ position: absolute;
+ width: 100%;
+ height: 100%;
+ backface-visibility: hidden;
+ border-radius: 15px;
+ padding: 20px;
+ display: flex;
+ flex-direction: column;
+ align-items: center;
+ justify-content: center;
+ box-shadow: 0 10px 30px rgba(0,0,0,0.2);
+ }
+
+ .card-front {
+ background: linear-gradient(45deg, var(--primary-color), #ff6b6b);
+ color: white;
+ }
+
+ .card-inside {
+ background: white;
+ transform: rotateY(180deg);
+ }
+
+ h1 {
+ font-size: 4em;
+ margin-bottom: 20px;
+ text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
+ }
+
+ .greeting {
+ font-size: 2em;
+ margin-bottom: 30px;
+ }
+
+ .open-card {
+ padding: 10px 20px;
+ border: none;
+ background: var(--secondary-color);
+ color: var(--text-color);
+ border-radius: 25px;
+ cursor: pointer;
+ font-size: 1.1em;
+ transition: transform 0.3s ease;
+ }
+
+ .open-card:hover {
+ transform: scale(1.1);
+ }
+
+ .wishes {
+ list-style: none;
+ margin: 20px 0;
+ }
+
+ .wishes li {
+ margin: 10px 0;
+ font-size: 1.2em;
+ color: var(--text-color);
+ text-align: center;
+ opacity: 0;
+ transform: translateY(20px);
+ animation: fadeIn 0.5s ease forwards;
+ }
+
+ @keyframes fadeIn {
+ to {
+ opacity: 1;
+ transform: translateY(0);
+ }
+ }
+
+ .wishes li:nth-child(1) { animation-delay: 0.2s; }
+ .wishes li:nth-child(2) { animation-delay: 0.4s; }
+ .wishes li:nth-child(3) { animation-delay: 0.6s; }
+ .wishes li:nth-child(4) { animation-delay: 0.8s; }
+
+ .signature {
+ margin-top: 20px;
+ font-style: italic;
+ color: var(--primary-color);
+ }
+
+ .fireworks {
+ position: absolute;
+ top: 0;
+ left: 0;
+ width: 100%;
+ height: 100%;
+ pointer-events: none;
+ }
+
+ @media (max-width: 480px) {
+ :root {
+ --card-width: 280px;
+ --card-height: 380px;
+ }
+
+ h1 {
+ font-size: 3em;
+ }
+
+ .greeting {
+ font-size: 1.5em;
+ }
+ }