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

body {
    font-family: 'Noto Sans SC', sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

/* 海报容器 */
.poster-container {
    position: relative;
    width: 100%;
    max-width: 600px;
    background: linear-gradient(135deg, #ff6b6b 0%, #feca57 100%);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

/* 背景装饰 */
.background-pattern {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        repeating-linear-gradient(45deg, transparent, transparent 35px, rgba(255,255,255,.1) 35px, rgba(255,255,255,.1) 70px),
        repeating-linear-gradient(-45deg, transparent, transparent 35px, rgba(255,255,255,.05) 35px, rgba(255,255,255,.05) 70px);
    opacity: 0.3;
}

.light-effect {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.2) 0%, transparent 70%);
    animation: rotate 20s linear infinite;
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* 海报主体 */
.poster {
    position: relative;
    padding: 40px 30px;
    background: linear-gradient(135deg, #fff 0%, #fff9e6 100%);
    margin: 10px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

/* 顶部装饰 */
.top-decoration {
    position: relative;
    height: 60px;
    margin-bottom: 30px;
}

.chinese-knot {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 40px;
    height: 60px;
    background: linear-gradient(135deg, #ff4757, #ff6348);
    border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
    box-shadow: 0 4px 15px rgba(255, 71, 87, 0.4);
}

.lantern {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 30px;
    height: 40px;
    background: linear-gradient(135deg, #ff4757, #ff6348);
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(255, 71, 87, 0.4);
}

.lantern.left {
    left: 20%;
}

.lantern.right {
    right: 20%;
}

/* 餐厅名称 */
.restaurant-header {
    text-align: center;
    margin-bottom: 40px;
}

.brand {
    margin-bottom: 15px;
}

.restaurant-name {
    font-family: 'Noto Serif SC', serif;
    font-size: 48px;
    font-weight: 900;
    color: #2c3e50;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
    margin-bottom: 5px;
    background: linear-gradient(135deg, #ff4757, #ff6348);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.restaurant-subtitle {
    font-family: 'Noto Serif SC', serif;
    font-size: 32px;
    font-weight: 700;
    color: #34495e;
    margin-bottom: 10px;
}

.english-name {
    font-size: 14px;
    color: #7f8c8d;
    font-style: italic;
    margin-bottom: 15px;
}

.slogan {
    font-size: 18px;
    color: #e74c3c;
    font-weight: 500;
    position: relative;
    display: inline-block;
    padding: 0 20px;
}

.slogan::before,
.slogan::after {
    content: '❋';
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    color: #f39c12;
}

.slogan::before {
    left: 0;
}

.slogan::after {
    right: 0;
}

/* 特色菜品 */
.signature-dishes {
    margin-bottom: 40px;
}

.section-title {
    text-align: center;
    font-size: 24px;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.title-icon {
    font-size: 20px;
}

.dishes-grid {
    display: grid;
    gap: 20px;
}

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

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

.dish-card.featured {
    border: 3px solid #ff4757;
    transform: scale(1.05);
}

.dish-image {
    position: relative;
    height: 180px;
    overflow: hidden;
}

.image-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 60px;
    color: white;
    font-weight: bold;
    position: relative;
}

.roast-goose {
    background: linear-gradient(135deg, #ff6b6b, #ff8787);
}

.bbq-pork {
    background: linear-gradient(135deg, #ff9ff3, #feca57);
}

.oyster-rice {
    background: linear-gradient(135deg, #54a0ff, #48dbfb);
}

.dish-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: linear-gradient(135deg, #ff4757, #ff6348);
    color: white;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    box-shadow: 0 2px 10px rgba(255, 71, 87, 0.4);
}

.dish-info {
    padding: 20px;
}

.dish-info h4 {
    font-size: 18px;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 8px;
}

.dish-info p {
    font-size: 14px;
    color: #7f8c8d;
    line-height: 1.5;
    margin-bottom: 12px;
}

.price {
    font-size: 20px;
    font-weight: 700;
    color: #e74c3c;
}

/* 优惠活动 */
.promotion {
    margin-bottom: 40px;
}

.promotion-banner {
    background: linear-gradient(135deg, #ff4757, #ff6348);
    border-radius: 15px;
    padding: 30px;
    color: white;
    position: relative;
    overflow: hidden;
}

.promotion-banner::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: repeating-linear-gradient(
        45deg,
        transparent,
        transparent 10px,
        rgba(255, 255, 255, 0.1) 10px,
        rgba(255, 255, 255, 0.1) 20px
    );
    animation: slide 20s linear infinite;
}

@keyframes slide {
    from { transform: translate(0, 0); }
    to { transform: translate(50px, 50px); }
}

.promotion-content {
    position: relative;
    z-index: 1;
}

.promotion-content h3 {
    font-size: 28px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

.promotion-items {
    display: grid;
    gap: 15px;
    margin-bottom: 20px;
}

.promo-item {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 16px;
    font-weight: 500;
}

.promo-icon {
    font-size: 20px;
    width: 30px;
    text-align: center;
}

.time-limit {
    text-align: center;
    font-size: 14px;
    opacity: 0.9;
    font-style: italic;
}

/* 餐厅信息 */
.restaurant-info {
    margin-bottom: 40px;
}

.info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 12px;
    background: white;
    padding: 15px;
    border-radius: 10px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

.info-icon {
    font-size: 24px;
    width: 40px;
    text-align: center;
}

.info-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.info-text strong {
    font-size: 14px;
    color: #2c3e50;
    font-weight: 700;
}

.info-text span {
    font-size: 12px;
    color: #7f8c8d;
}

/* 底部装饰 */
.poster-footer {
    text-align: center;
    position: relative;
}

.footer-decoration {
    position: relative;
    height: 40px;
    margin-bottom: 20px;
}

.cloud {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 60px;
    height: 20px;
    background: linear-gradient(135deg, #dfe6e9, #b2bec3);
    border-radius: 20px;
    opacity: 0.6;
}

.cloud.left {
    left: 20%;
}

.cloud.right {
    right: 20%;
}

.qr-code {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
}

.qr-placeholder {
    width: 80px;
    height: 80px;
    background: white;
    border: 2px solid #ddd;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.qr-pattern {
    width: 60px;
    height: 60px;
    background-image: 
        repeating-linear-gradient(0deg, #333 0px, #333 3px, transparent 3px, transparent 6px),
        repeating-linear-gradient(90deg, #333 0px, #333 3px, transparent 3px, transparent 6px);
    opacity: 0.3;
}

.qr-code span {
    font-size: 12px;
    color: #7f8c8d;
}

.footer-text {
    font-size: 14px;
    color: #7f8c8d;
    line-height: 1.5;
}

.footer-text p {
    margin-bottom: 5px;
}

/* 装饰元素 */
.decorative-elements {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    z-index: 10;
}

.steam {
    position: absolute;
    width: 30px;
    height: 30px;
    background: rgba(255, 255, 255, 0.6);
    border-radius: 50%;
    filter: blur(10px);
    animation: steam 3s ease-in-out infinite;
}

.steam1 {
    top: 20%;
    left: 10%;
    animation-delay: 0s;
}

.steam2 {
    top: 30%;
    right: 15%;
    animation-delay: 1s;
}

.steam3 {
    bottom: 30%;
    left: 20%;
    animation-delay: 2s;
}

@keyframes steam {
    0%, 100% {
        transform: translateY(0) scale(1);
        opacity: 0.6;
    }
    50% {
        transform: translateY(-20px) scale(1.2);
        opacity: 0.3;
    }
}

/* 打印控制 */
.print-controls {
    position: fixed;
    bottom: 20px;
    right: 20px;
    display: flex;
    gap: 10px;
    z-index: 1000;
}

.print-btn,
.download-btn {
    padding: 12px 20px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    border: none;
    border-radius: 25px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

/* 响应式设计 */
@media (max-width: 768px) {
    .poster-container {
        max-width: 100%;
        margin: 10px;
    }
    
    .poster {
        padding: 30px 20px;
        margin: 5px;
    }
    
    .restaurant-name {
        font-size: 36px;
    }
    
    .restaurant-subtitle {
        font-size: 24px;
    }
    
    .info-grid {
        grid-template-columns: 1fr;
    }
    
    .print-controls {
        bottom: 10px;
        right: 10px;
        flex-direction: column;
    }
    
    .print-btn,
    .download-btn {
        font-size: 12px;
        padding: 10px 15px;
    }
}

/* 打印样式 */
@media print {
    body {
        background: white;
        padding: 0;
    }
    
    .poster-container {
        box-shadow: none;
        max-width: 100%;
        background: white;
    }
    
    .poster {
        margin: 0;
        box-shadow: none;
        background: white;
    }
    
    .print-controls {
        display: none;
    }
    
    .background-pattern,
    .light-effect,
    .decorative-elements {
        display: none;
    }
    
    .dish-card {
        break-inside: avoid;
    }
}

/* 动画效果 */
.dish-card {
    animation: fadeInUp 0.6s ease-out;
}

.dish-card:nth-child(1) { animation-delay: 0.1s; }
.dish-card:nth-child(2) { animation-delay: 0.2s; }
.dish-card:nth-child(3) { animation-delay: 0.3s; }

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.info-item {
    animation: fadeIn 0.8s ease-out;
}

.info-item:nth-child(1) { animation-delay: 0.1s; }
.info-item:nth-child(2) { animation-delay: 0.2s; }
.info-item:nth-child(3) { animation-delay: 0.3s; }
.info-item:nth-child(4) { animation-delay: 0.4s; }

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