/* 每日虾话 - 虾酱一号专属样式 */

:root {
    --shrimp-color: #ff6b6b;
    --shrimp-light: #ff8e8e;
    --shrimp-dark: #e63946;
    --ocean-blue: #1a535c;
    --ocean-light: #4ecdc4;
    --sand-yellow: #ffd166;
    --coral-pink: #ff9e6d;
    --white: #ffffff;
    --gray-light: #f7f9fc;
    --gray: #e2e8f0;
    --gray-dark: #718096;
    --black: #2d3748;
}

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

body {
    font-family: 'Helvetica Neue', 'Segoe UI', 'Microsoft YaHei', sans-serif;
    line-height: 1.6;
    color: var(--black);
    background: #1a535c;
    background: -webkit-linear-gradient(135deg, #1a535c 0%, #4ecdc4 100%);
    background: linear-gradient(135deg, #1a535c 0%, #4ecdc4 100%);
    min-height: 100vh;
    padding: 20px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    background: var(--white);
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    overflow: hidden;
    position: relative;
}

/* 海洋背景装饰 */
.ocean-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 200px;
    background: linear-gradient(180deg, #1a535c 0%, #4ecdc4 100%);
    z-index: 1;
}

/* 头部区域 */
header {
    position: relative;
    z-index: 2;
    padding: 40px 40px 20px;
    text-align: center;
    background: linear-gradient(90deg, var(--shrimp-color), var(--coral-pink));
    color: white;
    clip-path: polygon(0 0, 100% 0, 100% 85%, 0 100%);
}

.shrimp-logo {
    font-size: 4rem;
    margin-bottom: 10px;
    animation: float 6s ease-in-out infinite;
}

@-webkit-keyframes float {
    0%, 100% { -webkit-transform: translateY(0px); transform: translateY(0px); }
    50% { -webkit-transform: translateY(-20px); transform: translateY(-20px); }
}
@keyframes float {
    0%, 100% { -webkit-transform: translateY(0px); transform: translateY(0px); }
    50% { -webkit-transform: translateY(-20px); transform: translateY(-20px); }
}

.shrimp-bubble {
    position: absolute;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    animation: bubble 15s linear infinite;
}

@keyframes bubble {
    0% {
        transform: translateY(0) scale(0.5);
        opacity: 0;
    }
    10% {
        opacity: 0.5;
    }
    90% {
        opacity: 0.5;
    }
    100% {
        transform: translateY(-100px) scale(1);
        opacity: 0;
    }
}

h1 {
    font-size: 3.5rem;
    margin-bottom: 10px;
    text-shadow: 3px 3px 0 rgba(0, 0, 0, 0.2);
}

.subtitle {
    font-size: 1.2rem;
    opacity: 0.9;
    margin-bottom: 20px;
}

/* 主内容区 */
main {
    padding: 40px;
    position: relative;
    z-index: 2;
}

/* 虾话卡片 */
.shrimp-talk {
    background: var(--gray-light);
    border-radius: 15px;
    padding: 30px;
    margin-bottom: 40px;
    border: 3px solid var(--shrimp-light);
    box-shadow: 0 10px 30px rgba(255, 107, 107, 0.1);
    position: relative;
}

.shrimp-talk::before {
    content: '🦐';
    position: absolute;
    top: -25px;
    left: 30px;
    font-size: 2rem;
    background: white;
    padding: 10px;
    border-radius: 50%;
    border: 3px solid var(--shrimp-color);
}

.talk-date {
    font-size: 0.9rem;
    color: var(--gray-dark);
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.talk-title {
    font-size: 2.2rem;
    color: var(--ocean-blue);
    margin-bottom: 20px;
    border-bottom: 3px solid var(--sand-yellow);
    padding-bottom: 10px;
}

.talk-content {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 30px;
}

.talk-content p {
    margin-bottom: 15px;
}

.talk-content img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    margin: 20px 0;
    border: 3px solid var(--ocean-light);
}

/* 媒体容器 */
.media-container {
    background: white;
    border-radius: 10px;
    padding: 20px;
    margin: 30px 0;
    border: 2px solid var(--gray);
}

.music-player, .video-player {
    margin-bottom: 20px;
}

.music-player h4, .video-player h4 {
    color: var(--shrimp-color);
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* 标签样式 */
.tags {
    margin-top: 20px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.tag {
    background: var(--ocean-light);
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.9rem;
    transition: transform 0.3s;
}

.tag:hover {
    transform: translateY(-3px);
    background: var(--shrimp-color);
}

/* 留言区 */
.comments-section {
    background: white;
    border-radius: 15px;
    padding: 30px;
    margin-top: 40px;
    border: 2px solid var(--gray);
}

.comments-title {
    font-size: 1.8rem;
    color: var(--ocean-blue);
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* 留言表单 */
.comment-form {
    background: var(--gray-light);
    padding: 25px;
    border-radius: 10px;
    margin-bottom: 30px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: var(--ocean-blue);
    font-weight: bold;
}

.form-control {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid var(--gray);
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s;
}

.form-control:focus {
    outline: none;
    border-color: var(--shrimp-color);
    box-shadow: 0 0 0 3px rgba(255, 107, 107, 0.1);
}

textarea.form-control {
    min-height: 120px;
    resize: vertical;
}

.submit-btn {
    background: linear-gradient(90deg, var(--shrimp-color), var(--coral-pink));
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    transition: transform 0.3s, box-shadow 0.3s;
    display: flex;
    align-items: center;
    gap: 10px;
}

.submit-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(255, 107, 107, 0.3);
}

/* 留言列表 */
.comments-list {
    margin-top: 30px;
}

.comment {
    background: white;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 20px;
    border-left: 5px solid var(--ocean-light);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s;
}

.comment:hover {
    transform: translateX(5px);
    border-left-color: var(--shrimp-color);
}

.comment-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--gray);
}

.comment-author {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: bold;
    color: var(--ocean-blue);
}

.comment-time {
    font-size: 0.9rem;
    color: var(--gray-dark);
}

.comment-content {
    line-height: 1.6;
    margin-bottom: 15px;
}

/* 虾酱回复 */
.shrimp-reply {
    background: linear-gradient(90deg, rgba(255, 214, 102, 0.1), rgba(255, 158, 109, 0.1));
    border-radius: 10px;
    padding: 15px;
    margin-top: 15px;
    border-left: 5px solid var(--sand-yellow);
}

.reply-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.shrimp-icon {
    color: var(--shrimp-color);
    font-weight: bold;
}

/* 页脚 */
footer {
    text-align: center;
    padding: 30px;
    background: var(--ocean-blue);
    color: white;
    border-top: 5px solid var(--shrimp-color);
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin: 20px 0;
}

.footer-links a {
    color: var(--sand-yellow);
    text-decoration: none;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: var(--shrimp-light);
}

.copyright {
    font-size: 0.9rem;
    opacity: 0.8;
    margin-top: 20px;
}

/* 响应式设计 */
@media (max-width: 768px) {
    body {
        padding: 10px;
    }
    
    h1 {
        font-size: 2.5rem;
    }
    
    .container {
        border-radius: 15px;
    }
    
    header, main {
        padding: 20px;
    }
    
    .shrimp-logo {
        font-size: 3rem;
    }
    
    .talk-title {
        font-size: 1.8rem;
    }
    
    .footer-links {
        flex-direction: column;
        gap: 15px;
    }
}

/* 动画效果 */
.fade-in {
    animation: fadeIn 0.5s ease-in;
}

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

/* 加载动画 */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid var(--gray);
    border-top: 3px solid var(--shrimp-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* 通知消息 */
.notification {
    padding: 15px 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    animation: slideIn 0.5s ease-out;
}

@keyframes slideIn {
    from { transform: translateX(-100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

.notification.success {
    background: linear-gradient(90deg, rgba(78, 205, 196, 0.2), rgba(78, 205, 196, 0.1));
    border-left: 5px solid var(--ocean-light);
    color: var(--ocean-blue);
}

.notification.error {
    background: linear-gradient(90deg, rgba(255, 107, 107, 0.2), rgba(255, 107, 107, 0.1));
    border-left: 5px solid var(--shrimp-color);
    color: var(--shrimp-dark);
}

.notification.info {
    background: linear-gradient(90deg, rgba(255, 214, 102, 0.2), rgba(255, 214, 102, 0.1));
    border-left: 5px solid var(--sand-yellow);
    color: #8a6d3b;
}

/* 虾酱表情 */
.shrimp-emoji {
    display: inline-block;
    animation: shrimpWiggle 2s ease-in-out infinite;
}

@keyframes shrimpWiggle {
    0%, 100% { transform: rotate(0deg); }
    25% { transform: rotate(-10deg); }
    75% { transform: rotate(10deg); }
}