/* components.css */

.container {
    background-color: #ffffff;
    max-width: 640px;
    margin: 40px auto;
    padding: 60px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    text-align: center;
}

/* 使用 Flexbox 控制 .link-card 的对齐方式 */
main {
    display: flex;
    flex-direction: column;
    align-items: center; /* 水平居中 */
}

.link-card {
    display: block;
    background-color: #fdfdfd;
    color: var(--text-color);
    text-decoration: none;
    padding: 20px 30px;
    margin: 15px 0;
    border-radius: var(--border-radius);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    width: 80%; /* 默认占父容器的 80% 宽度 */
    max-width: 300px; /* 最大宽度为 300px */
    text-align: left;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.06);
    font-weight: bold;
    position: relative;
    overflow: hidden;
    border-left: 4px solid transparent;
}

.link-card:hover {
    background-color: #f5f5f5;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
    transform: translateY(-3px);
    border-left-color: var(--accent-color);
}

.link-icon {
    margin-right: 15px;
    font-size: 1.4em;
    color: var(--accent-color);
}

.modal {
    display: flex;
    justify-content: center;
    align-items: center;
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1000;
}

.modal-content {
    background-color: #ffffff;
    padding: 30px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    max-width: 400px;
    width: 90%;
    animation: fadeIn 0.3s ease-in;
}

.modal-content h3 {
    margin-top: 0;
    color: var(--primary-color);
}

.contact-info p {
    margin: 10px 0;
    font-size: 1em;
    color: #333;
}

.modal-content button {
    margin-top: 20px;
    padding: 10px 20px;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: var(--border-radius);
    cursor: pointer;
    font-weight: bold;
    transition: background 0.3s;
}

.modal-content button:hover {
    background-color: #b0205a;
}

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