/* assets/sakura.css - 樱花主题样式表 v1.0 */
/* 柔和、浪漫的樱花粉色系，适用于个人网站或博客 */

/* ===== 重置与基础 ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background: linear-gradient(145deg, #fff9fb 0%, #ffeef4 100%);
    color: #5a3e4b;
    font-family: 'Segoe UI', 'Noto Sans JP', 'Helvetica Neue', 'Hiragino Kaku Gothic ProN', 'Yu Gothic', sans-serif;
    line-height: 1.7;
    padding: 2rem;
    min-height: 100vh;
}

/* ===== 樱花飘落动画 ===== */
@keyframes fall {
    0% {
        transform: translateY(-20vh) rotate(0deg);
        opacity: 1;
    }
    100% {
        transform: translateY(100vh) rotate(360deg);
        opacity: 0;
    }
}

.sakura-petal {
    position: fixed;
    top: -10%;
    left: var(--left);
    width: 12px;
    height: 12px;
    background: #ffb7c5;
    clip-path: path('M12,4 C12,2 10,0 8,0 C6,0 4,2 4,4 C4,6 6,8 8,8 C10,8 12,6 12,4 Z');
    opacity: 0.7;
    animation: fall var(--duration) linear infinite;
    animation-delay: var(--delay);
    z-index: 9999;
    pointer-events: none;
}

/* 随机生成花瓣时使用，实际可通过JS动态生成，此处预留样式 */

/* ===== 标题排版 ===== */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    letter-spacing: 0.02em;
    color: #b24a6e;
    margin-top: 1.5em;
    margin-bottom: 0.5em;
    border-left: 5px solid #f4a7b9;
    padding-left: 1rem;
}

h1 {
    font-size: 2.8rem;
    border-left-width: 8px;
    color: #c84e6e;
    text-shadow: 2px 2px 6px rgba(255, 180, 200, 0.3);
}

h2 {
    font-size: 2rem;
    border-left-width: 6px;
}

/* ===== 段落与列表 ===== */
p {
    margin-bottom: 1.2rem;
    font-weight: 450;
}

ul, ol {
    margin: 1rem 0 1.5rem 2rem;
}

li {
    margin: 0.4rem 0;
}

/* ===== 链接 ===== */
a {
    color: #db6e8a;
    text-decoration: none;
    border-bottom: 1px dashed #f3b3c2;
    transition: all 0.25s ease;
}

a:hover {
    color: #b13b5c;
    border-bottom: 1px solid #e67e9e;
    background-color: rgba(255, 210, 220, 0.3);
    border-radius: 4px;
}

/* ===== 按钮 ===== */
button, .btn {
    display: inline-block;
    background: #f7dfe6;
    border: none;
    padding: 0.65rem 1.6rem;
    margin: 0.5rem 0.3rem;
    font-size: 1rem;
    font-weight: 500;
    color: #ac4b6b;
    border-radius: 48px;
    cursor: pointer;
    box-shadow: 0 2px 5px rgba(190, 90, 110, 0.15);
    transition: all 0.2s ease;
    text-align: center;
    text-decoration: none;
}

button:hover, .btn:hover {
    background: #ffcdda;
    transform: translateY(-2px);
    box-shadow: 0 6px 14px rgba(200, 80, 110, 0.2);
    color: #962c4e;
}

button:active, .btn:active {
    transform: translateY(1px);
}

/* 主要风格按钮 */
.btn-primary {
    background: #e68eaa;
    color: white;
    box-shadow: 0 4px 10px rgba(230, 120, 150, 0.3);
}

.btn-primary:hover {
    background: #db6f92;
    color: white;
}

/* ===== 卡片组件 ===== */
.card {
    background: rgba(255, 250, 252, 0.85);
    backdrop-filter: blur(2px);
    border-radius: 32px;
    padding: 1.6rem;
    margin: 1.8rem 0;
    box-shadow: 0 8px 20px rgba(200, 120, 140, 0.12);
    border: 1px solid rgba(255, 210, 220, 0.6);
    transition: all 0.3s;
}

.card:hover {
    box-shadow: 0 15px 30px rgba(190, 100, 120, 0.18);
    border-color: #ffc0cf;
}

/* ===== 表单元素 ===== */
input, textarea, select {
    width: 100%;
    padding: 0.7rem 1rem;
    margin: 0.5rem 0 1rem;
    border: 1px solid #f5cfdb;
    border-radius: 28px;
    background: #fffafc;
    font-family: inherit;
    font-size: 1rem;
    transition: 0.2s;
}

input:focus, textarea:focus, select:focus {
    outline: none;
    border-color: #e6829e;
    box-shadow: 0 0 0 3px rgba(230, 130, 158, 0.2);
}

label {
    font-weight: 500;
    color: #b95678;
    margin-left: 0.5rem;
}

/* ===== 表格 ===== */
table {
    width: 100%;
    border-collapse: collapse;
    background: rgba(255, 245, 248, 0.7);
    border-radius: 24px;
    overflow: hidden;
    margin: 1.5rem 0;
}

th, td {
    padding: 12px 16px;
    text-align: left;
    border-bottom: 1px solid #ffe0e8;
}

th {
    background-color: #ffebf0;
    color: #ac4767;
    font-weight: 600;
}

tr:hover {
    background-color: #fff1f5;
}

/* ===== 引用与代码 ===== */
blockquote {
    margin: 1.5rem 0;
    padding: 0.8rem 1.5rem;
    background: #fff6f9;
    border-left: 6px solid #f2a0b5;
    border-radius: 20px;
    color: #62424f;
    font-style: italic;
}

code {
    background: #ffecf0;
    padding: 0.2rem 0.5rem;
    border-radius: 16px;
    font-family: 'Courier New', 'SF Mono', monospace;
    font-size: 0.9em;
    color: #bc6583;
}

pre {
    background: #fff1f4;
    padding: 1rem;
    border-radius: 24px;
    overflow-x: auto;
    border: 1px solid #ffe0e8;
}

pre code {
    background: none;
    padding: 0;
    color: #7c4a5e;
}

/* ===== 工具类 ===== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.text-center {
    text-align: center;
}

.mt-2 {
    margin-top: 2rem;
}

.mb-2 {
    margin-bottom: 2rem;
}

/* ===== 樱花装饰 ===== */
.sakura-border {
    background-image: radial-gradient(circle at 10% 30%, rgba(255, 190, 200, 0.3) 1.5px, transparent 1.5px);
    background-size: 24px 24px;
}

/* ===== 响应式 ===== */
@media (max-width: 768px) {
    body {
        padding: 1rem;
    }
    
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.6rem;
    }
    
    .card {
        padding: 1.2rem;
    }
}