:root {
    --coal-dark: #1b77b6;
    --coal-primary: #2c3e50;
    --coal-accent: #e74c3c;
    --coal-accent-hover: #c0392b;
    --coal-light: #ecf0f1;
    --coal-gray: #95a5a6;
    --coal-text: #2c3e50;
    --coal-bg: #f8f9fa;
    --coal-border: #e1e8ed;
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* v-cloak 解决方案 */
[v-cloak] {
    display: none;
}

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

body {
    font-family: 'Inter', sans-serif;
    color: var(--coal-text);
    background-color: #fff;
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
}

/* Header Styles */
.top-bar {
    background-color: var(--coal-dark);
    color: white;
    padding: 8px 0;
    font-size: 0.85rem;
}

.top-bar a {
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    transition: var(--transition);
}

.top-bar a:hover {
    color: white;
}

.main-header {
    background-color: white;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: var(--transition);
}

.main-header.scrolled {
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
}

.logo {
    font-family: 'Playfair Display', serif;
    font-weight: 800;
    font-size: 1.9rem;
    color: var(--coal-primary);
    text-decoration: none;
    letter-spacing: -0.5px;
}

.logo span {
    color: var(--coal-accent);
}

.nav-link {
    font-weight: 500;
    margin: 0 8px;
    position: relative;
    color: var(--coal-primary) !important;
    transition: var(--transition);
    /*padding: 10px 0 !important;*/
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 3px;
    background-color: var(--coal-accent);
    transition: var(--transition);
    transform: translateX(-50%);
    border-radius: 2px;
}

.nav-link:hover, .nav-link.active {
    color: var(--coal-accent) !important;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 3px;
    background-color: var(--coal-accent);
    transition: var(--transition);
    transform: translateX(-50%);
    border-radius: 2px;
}

.nav-link:hover::after, .nav-link.active::after {
    width: 70%;
}

.search-box {
    background: var(--coal-light);
    border-radius: 30px;
    padding: 6px 20px;
    display: flex;
    align-items: center;
    max-width: 300px;
    border: 1px solid var(--coal-border);
    transition: var(--transition);
}

.search-box:focus-within {
    border-color: var(--coal-accent);
    box-shadow: 0 0 0 3px rgba(231, 76, 60, 0.1);
}

/* Footer */
.footer {
    background-color: var(--coal-dark);
    color: white;
    padding-top: 80px;
}

.footer h5 {
    color: white;
    position: relative;
    padding-bottom: 18px;
    margin-bottom: 25px;
    font-size: 1.2rem;
}

.footer h5::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 45px;
    height: 3px;
    background: var(--coal-accent);
}

.footer-link {
    color: #bdc3c7;
    text-decoration: none;
    display: block;
    margin-bottom: 12px;
    transition: var(--transition);
    font-size: 0.95rem;
}

.footer-link:hover {
    color: white;
    padding-left: 5px;
}

.social-icon {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-right: 12px;
    transition: var(--transition);
    color: white;
    text-decoration: none;
    font-size: 1.1rem;
}

.social-icon:hover {
    background-color: var(--coal-accent);
    transform: translateY(-3px);
}

.contact-item {
    display: flex;
    margin-bottom: 18px;
    align-items: center;
}

.contact-icon {
    color: var(--coal-accent);
    font-size: 1.3rem;
    margin-right: 15px;
    min-width: 25px;
}

.copyright {
    background-color: rgba(0, 0, 0, 0.1);
    padding: 25px 0;
    margin-top: 60px;
}

/* 回到顶部和页面分享 */
.float-buttons {
    position: fixed;
    right: 30px;
    bottom: 30px;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.float-btn {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    text-align: center;
    line-height: 56px;
    font-size: 20px;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
}

.float-btn:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 25px rgba(0,0,0,0.3);
}

.share-btn {
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a24 100%);
}

.top-btn {
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a24 100%);
}

.share-modal {
    display: none;
    position: fixed;
    right: 100px;
    bottom: 100px;
    background: white;
    border-radius: 16px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
    padding: 25px;
    z-index: 1001;
    width: 280px;
    animation: slideIn 0.3s ease-out;
}

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

.share-options {
    display: flex;
    justify-content: space-around;
    margin-bottom: 20px;
    padding: 15px 0;
    border-bottom: 1px solid #eee;
}

.share-option {
    cursor: pointer;
    padding: 12px;
    border-radius: 12px;
    transition: all 0.3s ease;
    text-align: center;
    flex: 1;
    margin: 0 5px;
}

.share-option:hover {
    background-color: #f8f9fa;
    transform: translateY(-2px);
}

.share-option-icon {
    font-size: 28px;
    margin-bottom: 8px;
    display: block;
}

.share-option small {
    font-size: 12px;
    color: #666;
    display: block;
}

.share-url {
    display: flex;
    margin-top: 15px;
}

.share-url input {
    flex: 1;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 8px 0 0 8px;
    font-size: 12px;
    outline: none;
}

.share-url button {
    padding: 12px 15px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 0 8px 8px 0;
    cursor: pointer;
    font-size: 12px;
}

.close-share {
    position: absolute;
    top: 15px;
    right: 15px;
    cursor: pointer;
    font-size: 20px;
    color: #999;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.close-share:hover {
    color: #333;
    background-color: #f0f0f0;
}

.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.4);
    z-index: 1000;
    backdrop-filter: blur(2px);
}

.wechat-modal {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    border-radius: 16px;
    box-shadow: 0 25px 50px rgba(0,0,0,0.25);
    padding: 30px;
    z-index: 1002;
    text-align: center;
    width: 400px;
    animation: zoomIn 0.3s ease-out;
}

@keyframes zoomIn {
    from {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.8);
    }
    to {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
}

.wechat-qrcode {
    width: 200px;
    height: 200px;
    margin: 20px auto;
    background: #f8f9fa;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px dashed #ddd;
}

.wechat-tip {
    color: #666;
    font-size: 14px;
    line-height: 1.5;
    margin: 15px 0;
}

.wechat-tip strong {
    color: #ff6b6b;
}

.close-wechat {
    position: absolute;
    top: 15px;
    right: 15px;
    cursor: pointer;
    font-size: 20px;
    color: #999;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.close-wechat:hover {
    color: #333;
    background-color: #f0f0f0;
}

/* 微信分享提示 */
.wechat-share-tip {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.8);
    z-index: 2000;
    justify-content: center;
    align-items: flex-start;
    padding-top: 50px;
}

.wechat-share-tip-content {
    background: white;
    border-radius: 16px;
    padding: 30px;
    text-align: center;
    max-width: 300px;
    margin: 0 20px;
    position: relative;
}

.wechat-share-arrow {
    position: absolute;
    top: -20px;
    right: 30px;
    width: 0;
    height: 0;
    border-left: 20px solid transparent;
    border-right: 20px solid transparent;
    border-bottom: 20px solid white;
}

.wechat-share-icon {
    font-size: 60px;
    margin-bottom: 20px;
}

.wechat-share-text {
    font-size: 16px;
    color: #333;
    margin-bottom: 20px;
    line-height: 1.5;
}

.wechat-share-btn {
    background: #07c160;
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 25px;
    font-size: 16px;
    cursor: pointer;
}

@media (max-width: 768px) {
    .float-buttons {
        right: 20px;
        bottom: 20px;
    }

    .float-btn {
        width: 50px;
        height: 50px;
        line-height: 50px;
    }

    .share-modal {
        right: 20px;
        bottom: 90px;
        width: 250px;
        padding: 20px;
    }
}