/* style.css - 拾光隅美观风格 */
body {
    margin: 0;
    font-family: 'PingFang SC', 'Microsoft YaHei', Arial, sans-serif;
    background: #f6f7f9;
    color: #222;
}
.container {
    width: 90%;
    max-width: 1100px;
    margin: 0 auto;
}
header {
    background: #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    border-bottom: 1px solid #eaeaea;
}
.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 60px;
}
.logo {
    color: #2d8cf0;
    font-weight: bold;
    font-size: 2rem;
    letter-spacing: 2px;
}
nav ul {
    list-style: none;
    display: flex;
    gap: 30px;
    margin: 0;
    padding: 0;
}
nav a {
    color: #222;
    font-weight: 500;
    border-radius: 6px;
    padding: 4px 12px;
    transition: background 0.2s, color 0.2s;
}
nav a:hover {
    background: #2d8cf0;
    color: #fff;
}
.hero {
    background: linear-gradient(120deg, #e0eaff 0%, #f6f7f9 100%);
    color: #2d8cf0;
    padding: 80px 0 60px 0;
    border-radius: 0 0 32px 32px;
    box-shadow: 0 8px 32px 0 #e0eaff33;
    text-align: center;
    position: relative;
    overflow: hidden;
    min-height: 320px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}
.hero h1 {
    color: #2d8cf0;
    font-size: 3.6rem;
    margin-bottom: 18px;
    letter-spacing: 3px;
    font-weight: 800;
    text-shadow: 0 4px 24px #2d8cf033, 0 1px 0 #fff;
    transition: font-size 0.3s, text-shadow 0.3s;
}
.hero p {
    color: #555;
    font-size: 1.5rem;
    font-weight: 500;
    margin-bottom: 0;
    text-shadow: 0 2px 12px #e0eaff55;
    transition: font-size 0.3s, text-shadow 0.3s;
}
.hero .hero-graphic {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    z-index: 0;
    opacity: 0.18;
    pointer-events: none;
    width: 520px;
    max-width: 98vw;
    transition: opacity 0.4s, filter 0.4s;
}
.hero .hero-graphic2 {
    position: absolute;
    left: 10%;
    top: 18%;
    z-index: 0;
    opacity: 0.13;
    pointer-events: none;
    width: 120px;
    filter: blur(1px);
    animation: float1 5s ease-in-out infinite alternate;
}
.hero .hero-graphic3 {
    position: absolute;
    right: 8%;
    bottom: 10%;
    z-index: 0;
    opacity: 0.10;
    pointer-events: none;
    width: 90px;
    filter: blur(2px);
    animation: float2 7s ease-in-out infinite alternate;
}
@keyframes float1 {
    0% { transform: translateY(0) scale(1); }
    100% { transform: translateY(-18px) scale(1.08); }
}
@keyframes float2 {
    0% { transform: translateY(0) scale(1); }
    100% { transform: translateY(12px) scale(0.96); }
}
@media (max-width: 600px) {
    .hero { min-height: 180px; padding: 40px 0 30px 0; }
    .hero h1 { font-size: 2.1rem; }
    .hero p { font-size: 1.05rem; }
    .hero .hero-graphic { width: 180px; }
}
.hero-content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}
.shares {
    padding: 50px 0 30px 0;
}
.shares h2 {
    text-align: center;
    color: #2d8cf0;
    font-size: 1.7rem;
    margin-bottom: 24px;
}
.category-tabs {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 30px;
}
.tab {
    background: #fff;
    border: 1.5px solid #e0eaff;
    color: #2d8cf0;
    font-weight: 500;
    box-shadow: 0 2px 8px #e0eaff22;
    padding: 8px 24px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 1rem;
    transition: background 0.2s, color 0.2s;
}
.tab.active, .tab:hover {
    background: #2d8cf0;
    color: #fff;
    border-color: #2d8cf0;
}
.cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 32px;
    margin-bottom: 20px;
}
.card {
    background: #fff;
    border-radius: 18px;
    box-shadow: 0 6px 32px rgba(45,140,240,0.10);
    border: 1.5px solid #e0eaff;
    transition: transform 0.18s, box-shadow 0.18s;
    position: relative;
    overflow: hidden;
    padding: 28px 22px 20px 22px;
    min-height: 170px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    cursor: pointer;
    outline: none;
    opacity: 0;
    transform: translateY(40px) scale(0.98);
    transition: opacity 0.7s cubic-bezier(.23,1.01,.32,1), transform 0.7s cubic-bezier(.23,1.01,.32,1);
}
.card.visible {
    opacity: 1;
    transform: translateY(0) scale(1);
}
.card:focus {
    box-shadow: 0 0 0 3px #2d8cf055;
}
.card:hover {
    transform: translateY(-8px) scale(1.03);
    box-shadow: 0 12px 40px 0 #2d8cf044;
    border-color: #2d8cf0;
}
.card .category {
    background: #2d8cf0;
    color: #fff;
    font-weight: 500;
    border-radius: 12px;
    padding: 2px 14px;
    font-size: 0.95rem;
    position: absolute;
    top: 18px;
    right: 20px;
    box-shadow: 0 2px 8px #e0eaff33;
}
.card .title {
    color: #222;
    font-size: 1.18rem;
    font-weight: bold;
    margin-bottom: 10px;
    margin-top: 8px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.card .desc {
    color: #555;
    font-size: 1.05rem;
    margin-bottom: 12px;
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    line-clamp: 2;
    box-orient: vertical;
}
.card .date {
    color: #a0bfff;
    text-align: right;
    font-size: 0.95rem;
    margin-top: 8px;
}
.contact {
    background: #f6f7f9;
    border-radius: 32px;
    box-shadow: 0 4px 24px #e0eaff22;
    padding: 40px 0 30px 0;
    margin-top: 40px;
    opacity: 0;
    transform: translateY(60px) scale(0.98);
    transition: opacity 0.7s cubic-bezier(.23,1.01,.32,1), transform 0.7s cubic-bezier(.23,1.01,.32,1);
}
.contact.visible {
    opacity: 1;
    transform: translateY(0) scale(1);
}
.contact h2 {
    text-align: center;
    color: #2d8cf0;
    font-size: 1.7rem;
    margin-bottom: 24px;
}
#contactForm {
    display: flex;
    flex-direction: column;
    gap: 16px;
    max-width: 420px;
    margin: 0 auto 24px auto;
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 2px 12px #e0eaff33;
    padding: 28px 24px 18px 24px;
}
#contactForm input, #contactForm textarea {
    border: 1.5px solid #e0eaff;
    background: #f6f7f9;
    font-size: 1rem;
    border-radius: 8px;
    padding: 10px;
    transition: border 0.2s;
    color: #222;
}
#contactForm input:focus, #contactForm textarea:focus {
    border: 1.5px solid #2d8cf0;
    outline: none;
    background: #fff;
}
#contactForm button {
    background: #2d8cf0;
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 10px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s;
    box-shadow: 0 2px 8px #e0eaff22;
}
#contactForm button:hover {
    background: #145ca5;
}
#messageList {
    max-width: 420px;
    margin: 0 auto;
    font-size: 1rem;
    color: #444;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
#messageList .msg {
    background: #fff;
    border-radius: 8px;
    padding: 12px 16px;
    box-shadow: 0 2px 8px #e0eaff22;
    border: 1.5px solid #e0eaff;
    color: #2d8cf0;
    word-break: break-all;
    font-size: 1rem;
    line-height: 1.7;
}
#messageList .msg b {
    color: #145ca5;
    margin-right: 6px;
}
footer {
    background: #fff;
    color: #2d8cf0;
    border-top: 1px solid #e0eaff;
    font-size: 1rem;
    letter-spacing: 1px;
    text-align: center;
    padding: 18px 0 12px 0;
    margin-top: 30px;
}
.article-main {
    background: #fff;
    box-shadow: 0 6px 32px #e0eaff33;
    border-radius: 18px;
    border: 1px solid #e0eaff;
    padding: 38px 28px 32px 28px;
    max-width: 720px;
    min-height: 400px;
    animation: fadeInUp 0.7s cubic-bezier(.23,1.01,.32,1) 1;
}
.article-main h1 {
    color: #2d8cf0;
    font-size: 2rem;
    margin-bottom: 12px;
    text-align: center;
    letter-spacing: 1px;
}
.article-meta {
    color: #a0bfff;
    text-align: center;
    font-size: 1rem;
    margin-bottom: 28px;
}
.article-content {
    color: #222;
    font-size: 1.13rem;
    line-height: 2.1;
    margin-bottom: 32px;
    padding: 0 6px;
    letter-spacing: 0.2px;
}
.article-content p {
    margin-bottom: 18px;
    text-indent: 2em;
}
.back-link {
    display: inline-block;
    color: #fff;
    background: #2d8cf0;
    border-radius: 8px;
    padding: 7px 18px;
    text-decoration: none;
    font-size: 1rem;
    transition: background 0.2s, color 0.2s;
    margin-top: 10px;
}
.back-link:hover {
    background: #fff;
    color: #2d8cf0;
    border: 1.5px solid #2d8cf0;
}
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(40px); }
    to { opacity: 1; transform: translateY(0); }
}
@media (max-width: 800px) {
    .article-main { padding: 18px 6vw 18px 6vw; }
    .article-main h1 { font-size: 1.3rem; }
    .cards { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
    .nav-container { flex-direction: column; height: auto; }
    nav ul { flex-direction: column; gap: 10px; }
    .hero h1 { font-size: 2.1rem; }
    .hero p { font-size: 1.05rem; }
    .cards { grid-template-columns: 1fr; }
    #contactForm, #messageList { max-width: 98vw; padding: 12px 4vw; }
}
