* {
    padding:0;
    margin:0;
}
body {
    background-color: #f5f5f5;
    max-width: 1200px;
    margin: 0 auto;
}
header {
    background-color:#f5f5f5;
    height:80px;
    width:90%;
    display: flex; /* 使用 flexbox 布局 */
    align-items: center; /* 垂直居中对齐 */
    position: relative; /* 保持相对定位，方便在布局中调整 */
    padding: 10px; /* 可选，添加整体间距 */    
}
header img {
    display: block; /* 确保图片是块级元素 */
    width: 60px; /* 根据需要调整宽度 */
    height: auto; /* 保持纵横比 */
    margin-right: 5px; /* 设置图片与标题之间的间隔 */
}
header h1 {
    color: rgb(0, 0, 0);
    font-size: 30px; /* 根据需要调整字体大小 */
    line-height: 1.2; /* 调整行高以适应文字内容 */
}
/* 中间导航栏 */
.main-nav {
    flex: 1; /* 让中间导航占据剩余空间 */
    display: flex;
    justify-content: center; /* 将导航内容居中 */
    align-items: center; /* 垂直居中 */
}

.main-nav-list {
    display: flex; /* 横向排列导航项 */
    list-style: none; /* 去除默认列表样式 */
    margin: 0;
    padding: 0;
    gap: 40px; /* 设置导航项之间的间隔 */
}

/* 中间导航栏链接样式 */
.main-nav-list a {
    color: black;
    text-decoration: none;
    font-size: 25px;
    transition: all 0.3s ease;
    display: inline-block;
    padding: 8px 16px;         /* 添加内边距，让背景框更大 */
    border-radius: 8px;        /* 添加圆角 */
}

.main-nav-list a:hover {
    text-decoration: none;
    transform: translateY(-2px);
    color: #000000;
    
    font-weight: bold;         /* 字体加粗 */
    
}

.main-nav-list a:active {
    transform: translateY(0);
}

/* 右侧导航栏 */
.right-nav {
    display: flex;
    justify-content: flex-end; /* 将右侧导航内容靠右 */
    align-items: center; /* 垂直居中 */
}

.right-nav-list {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 5px;         /* 将间距从 20px 改为 5px */
}

.right-nav-list a {
    color: black;
    text-decoration: none;
    font-size: 20px;
    transition: all 0.3s ease;
    display: inline-block;
    padding: 8px 16px;         /* 增加水平内边距 */
    white-space: nowrap;       /* 防止文本折行 */
    border-radius: 8px;
}

.right-nav-list a:hover {
    text-decoration: none;
    transform: translateY(-2px);
    color: #000000;
    font-weight: bold;         /* 添加字体加粗效果 */
}

.right-nav-list a:active {
    transform: translateY(0);   /* 点击时的效果 */
}

header a {
    color: black;
    text-decoration: none;
    font-size: 25px;
}
header a:hover {
    text-decoration: underline;
}

/* 修改主要内容区域样式 */
.content {
    display: flex;
    justify-content: center;  /* 水平居中 */
    width: 100%;
    padding: 20px;
    display: block; /* 改为块级元素 */
    padding-top: 0px;  /* 减小顶部间距，从 80px 改为 20px */
}

/* 标题样式 */
.content h1 {
    text-align: center;
    font-weight: bold;
    font-size: 2.5em;
    margin: 20px 0;  /* 减小标题的上下间距，从 40px 改为 20px */
    color: #333;
}

/* 段落样式 */
.intro {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
}

.intro p {
    font-size: 25px;      /* 调整为更适合阅读的字号 */
    line-height: 1.8;     /* 增加行高提高可读性 */
    color: #444;          /* 柔和的文字颜色 */
    margin-bottom: 1.5em; /* 段落间距 */
    text-align: center;  /* 两端对齐 */
}
.start-button-container {
    text-align: center;
    margin: 30px 0;
}

.start-button {
    padding: 12px 30px;
    font-size: 18px;
    background-color: white;
    border: 2px solid #000;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    color: inherit;
    display: inline-block;
}

.start-button:hover {
    background-color: #f5f5f5;
    transform: translateY(-2px);
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.start-button:active {
    transform: translateY(0);
}

/* 修改棋盘容器样式 */
.go-container {
    width: 100%;
    max-width: 1200px;      /* 限制最大宽度 */
    margin: 0 auto;         /* 水平居中 */
    min-height: 100vh;      /* 最小高度为视窗高度 */
    padding: 20px;
    display: flex;          /* 使用 flex 布局 */
    align-items: center;    /* 垂直居中内容 */
    box-sizing: border-box; /* 确保 padding 不会增加总高度 */
}

/* 标题居中 */
.go-container h1 {
    text-align: center;
    margin-bottom: 20px;
}

/* 修改游戏区域样式 */
.game-area {
    display: flex;
    gap: 20px;
    margin: 40px auto;
    justify-content: center;
    align-items: flex-start;
    width: 90%;              /* 设置为浏览器宽度的90% */
    max-width: 1200px;       /* 保留最大宽度限制 */
    padding: 30px;
    background: #eaeaea;
    border-radius: 12px;
    box-shadow: 
        0 4px 6px rgba(0, 0, 0, 0.1),
        0 1px 3px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
    box-sizing: border-box;  /* 确保padding不会影响总宽度 */
}

/* 添加媒体查询 */
@media screen and (max-width: 1024px) {
    .game-area {
        flex-direction: column;
        align-items: center;
        padding: 15px;
        width: 95%;
        margin: 20px auto;
    }

    .board-section {
        width: 95%;
        max-width: 600px;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .board {
        width: 100%;
        height: auto;
        aspect-ratio: 1;
    }

    #lines, #intersections {
        position: absolute;
        width: 90%;
        height: 90%;
        top: 5%;
        left: 5%;
    }

    .intersection {
        width: 3.33%;
        height: 3.33%;
        transform: translate(-50%, -50%);
    }

    .stone {
        width: 4.66%;
        height: 4.66%;
        transform: translate(-50%, -50%);
    }

    .star-point {
        width: 1.33%;
        height: 1.33%;
    }

    .node-window {
        width: 100%;
        max-width: none;
        height: 400px;        /* 固定高度 */
        min-height: 400px;    /* 确保最小高度 */
        margin-top: 20px;
        overflow: auto;
        flex: none;          /* 确保不会伸缩 */
    }

    #nodeTree {
        min-width: 1000px;
        transform-origin: 0 0;
    }

    .controls {
        width: 100%;          /* 占满容器宽度 */
        display: flex;
        flex-wrap: wrap;      /* 允许按钮换行 */
        gap: 8px;            /* 按钮之间的间距 */
        justify-content: center;
        padding: 10px 5px;
    }

    .controls button {
        flex: 0 1 auto;      /* 允许按钮自动缩放 */
        min-width: 80px;     /* 设置最小宽度 */
        font-size: 14px;     /* 稍微减小字体 */
    }

    /* 手数显示的样式 */
    #moveCount {
        flex: 1 0 100%;     /* 占据整行 */
        text-align: center;
        margin-top: 5px;
    }
}

@media screen and (max-width: 640px) {
    /* ... 其他样式 ... */
    
    .node-window {
        height: 300px;        /* 更小屏幕下的固定高度 */
        min-height: 300px;    /* 确保最小高度 */
        margin-top: 15px;
        overflow: auto;
        flex: none;          /* 确保不会伸缩 */
    }
}

/* 添加微妙的渐变背景效果 */
.game-area::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        135deg,
        rgba(255, 255, 255, 0.4) 0%,
        rgba(255, 255, 255, 0) 100%
    );
    pointer-events: none;
}

/* 修改棋盘区域样式 */
.board-section {
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;          /* 改为相对宽度 */
    max-width: 600px;     /* 保留最大宽度限制 */
}



/* 棋盘样式 */
.board {
    position: relative;
    width: 100%;          /* 改为相对宽度 */
    max-width: 600px;     /* 最大宽度限制 */
    height: auto;         /* 高度自动 */
    aspect-ratio: 1;      /* 保持正方形 */
    background-color: #DEB887;
    border-radius: 4px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

#lines {
    position: absolute;
    top: 5%;
    left: 5%;
    width: 90%;
    height: 90%;
}

.horizontal-line {
    position: absolute;
    width: 100%;
    height: 2px;
    background-color: #000;
}

.vertical-line {
    position: absolute;
    width: 2px;
    height: 100%;
    background-color: #000;
}

.star-point {
    position: absolute;
    width: 8px;
    height: 8px;
    background-color: #000;
    border-radius: 50%;
    transform: translate(-50%, -50%);
}

#intersections {
    position: absolute;
    top: 5%;
    left: 5%;
    width: 90%;
    height: 90%;
}

.intersection {
    position: absolute;
    width: 3.33%; /* 20px / 600px */
    height: 3.33%;
    transform: translate(-50%, -50%);
    cursor: pointer;
    z-index: 1;
}

/* 控制按钮样式 */
.controls {
    margin-top: 20px;
    text-align: center;
}

.controls button {
    margin: 0 5px;
    padding: 8px 16px;
    border: none;
    border-radius: 4px;
    background-color: #3498db;
    color: white;
    cursor: pointer;
    position: relative;
}

.controls button::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    padding: 5px 10px;
    background-color: rgba(0, 0, 0, 0.8);
    color: white;
    font-size: 12px;
    border-radius: 4px;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s, visibility 0.2s;
    z-index: 1000;
}

.controls button:hover::after {
    opacity: 1;
    visibility: visible;
}

.controls button:hover {
    background-color: #2980b9;
}

/* 节点窗口基础样式 */
.node-window {
    width: 100%;             /* 改为固定宽度100% */
    height: 600px;           /* 默认高度 */
    min-height: 400px;
    background: #fff;
    border: 1px solid #ccc;
    border-radius: 8px;
    overflow: auto;
    display: flex;
    flex-direction: column;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    flex: none;             /* 移除弹性伸缩 */
}

/* 缩放控制按钮容器 */
.zoom-controls {
    display: flex;
    gap: 5px;
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
}

/* 缩放按钮样式 */
.zoom-button {
    width: 28px;
    height: 28px;
    padding: 0;
    border: none;                    /* 移除边框 */
    background: #3498db;            /* 使用原来的蓝色 */
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.2s ease;
    color: white;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);  /* 添加阴影效果 */
}

.zoom-button:hover {
    background: #2980b9;            /* 使用原来的悬停颜色 */
}

/* 工具提示样式 */
.zoom-button::after {
    content: attr(data-tooltip);
    position: absolute;
    top: 100%;           /* 位于按钮上方 */
    left: 50%;
    transform: translateX(-50%);
    padding: 5px 10px;
    background-color: rgba(0, 0, 0, 0.8);
    color: white;
    font-size: 12px;
    border-radius: 4px;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s, visibility 0.2s;
    z-index: 1000;
}

/* 悬停时显示工具提示 */
.zoom-button:hover::after {
    opacity: 1;
    visibility: visible;
}

.zoom-button {
    width: 24px;
    height: 24px;
    border-radius: 4px;
    background: #3498db;
    color: white;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    transition: background-color 0.2s;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.zoom-button:hover {
    background: #2980b9;
}

/* 节点树区域样式 */
#nodeTree {
    position: relative;
    min-height: 100%;
    min-width: 1000px;
    padding: 20px;
    cursor: grab;
    user-select: none;
    transform-origin: 0 0;
    transition: transform 0.3s ease;
}

#nodeTree.grabbing {
    cursor: grabbing;
}

/* 媒体查询 - 桌面端 */
@media screen and (min-width: 768px) {
    .node-window {
        height: 600px;
        width: 400px;
    }
}

/* 修改节点和连线样式 */
.tree-node {
    position: absolute;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-weight: bold;
    transform: translate(-50%, -50%);
    z-index: 2;
    transition: all 0.3s ease;
    
}

.tree-node.black {
    background: #000;
    color: #fff;
}

.tree-node.white {
    background: #fff;
    border: 2px solid #000;
    color: #000;
}

.tree-node.active {
    box-shadow: 0 0 0 3px #4CAF50;
}

/* 修改连线样式 */
.tree-connection {
    position: absolute;
    height: 2px;
    background: #000;
    transform-origin: 0 50%;
    pointer-events: none;
}

/* 优化滚动条样式 */
.node-window::-webkit-scrollbar {
    width: 10px;
    height: 10px;
    display: block;
}

.node-window::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 5px;
}

.node-window::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 5px;
}

.node-window::-webkit-scrollbar-thumb:hover {
    background: #555;
}

/* 确保滚动条交叉处的样式 */
.node-window::-webkit-scrollbar-corner {
    background: #f1f1f1;
}

/* 添加调整大小时的手样式 */
.node-window::-webkit-resizer {
    background-color: #ccc;
    border-radius: 4px;
}

/* 添加棋子样式 */
.stone {
    position: absolute;
    width: 4.66%;        /* 28px/600px ≈ 4.66% */
    height: 4.66%;       /* 保持正圆形 */
    border-radius: 50%;
    transform: translate(-50%, -50%);
    z-index: 2;
}

.stone.black {
    background: #000;
    box-shadow: 2px 2px 2px rgba(0, 0, 0, 0.2);
}

.stone.white {
    background: #fff;
    border: 1px solid #000;
    box-shadow: 2px 2px 2px rgba(0, 0, 0, 0.2);
}

/* SVG连线样式 */
#nodeTree svg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

/* 预览棋子样式 */
.stone.preview {
    opacity: 0.3;  /* 设置30%不透明度 */
    pointer-events: none;  /* 预览棋子不响应鼠标事件 */
}



.intro-for-use {
    text-align: center;
    margin: 60px auto;          /* 增加上下外边距 */
    padding: 40px 20px;         /* 增加内边距 */
    max-width: 800px;           /* 限制内容宽度 */
}

.intro-for-use h1 {
    font-size: 2.5em;
    margin-bottom: 40px;
    color: #333;
    text-align: center;     /* h1标题居中 */
}

/* h1下的段落居中 */
.intro-for-use h1 + p,
.intro-for-use h1 ~ p:not(h2 ~ p) {
    font-size: 1.2em;      /* 调整为更大的字号 */
    line-height: 1.8;     /* 增加行高提高可读性 */
    color: #444;          /* 柔和的文字颜色 */
    margin-bottom: 1.5em; /* 段落间距 */
    text-align: center;  /* 两端对齐 */
}

.intro-for-use h2 {
    font-size: 2em;
    margin: 60px 0 30px;
    color: #444;
    text-align: left;     /* h2标题居中 */
}

/* h2下的段落左对齐 */
.intro-for-use h2 ~ p {
    font-size: 1.2em;
    line-height: 1.8;
    margin-bottom: 25px;
    text-align: left;       /* h2下的段落左对齐 */
    color: #555;
}

.features {
    text-align: center;
    margin: 60px auto; 
    padding: 40px 20px;
    max-width: 800px;           
}

.features h1 {
    font-size: 2.5em; 
    margin-bottom: 40px; 
    color: #333;
    text-align: center;
}

.features ul {
    list-style-type: none; 
    padding: 0; 
    margin: 0; 
}

.features li {
    font-size: 1.2em;           /* 与第三页段落文字大小一致 */
    line-height: 1.8;          /* 增加行高 */
    margin-bottom: 1.5em;      /* 增加条目间距 */
    color: #444;
}

/* 美化勾选符号 */
.features li::before {
    content: "✓";
    color: #3498db;            /* 改为与控制按钮相同的蓝色 */
    margin-right: 10px;
    font-weight: bold;
}

.faq {
    text-align: center;
    margin: 60px auto; 
    padding: 40px 20px;
    max-width: 800px;
}

.faq h1 {
    margin-bottom: 40px;
    color: #333;
}

.question {
    text-align: left;          /* 问题部分左对齐 */
    margin-bottom: 30px;
    padding: 20px;
    background-color: #e0e0e0; /* 问题背景色 */
    border-radius: 6px;        /* 问题卡片圆角 */
    transition: transform 0.2s; /* 添加悬停动画 */
}

.question:hover {
    transform: translateY(-2px); /* 悬停时轻微上浮 */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.question h2 {
    color: #2c3e50;
    margin-bottom: 15px;
    font-size: 1.2em;
}

.question p {
    color: #666;
    line-height: 1.6;
    margin: 0;
}

footer {
    text-align: center;
    margin: 20px 0;
}

.node-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    position: relative;
}

/* 添加平滑滚动效果 */
html {
    scroll-behavior: smooth;
    scroll-padding-top: 70px; /* 增加滚动边距，为导航栏留出空间 */
}

/* 使用说明区域样式 */
.intro-for-use {
    margin-top: 5px;  /* 确保顶部间距一致 */
}

.intro-for-use p img {
    width: 150px;          /* 设置图片宽度 */
    height: auto;          /* 保持图片比例 */
    margin: 10px;          /* 图片间距 */
    border: 1px solid #ddd; /* 添加边框 */
    border-radius: 4px;     /* 圆角边框 */
    vertical-align: middle; /* 垂直对齐 */
}

button {
    padding: 8px 16px;
    border: none;
    border-radius: 4px;
    background-color: #4CAF50;
    color: white;
    cursor: pointer;
}



.language-selector {
    position: relative;
    display: flex;
    align-items: center;
}

#languageButton {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    border-radius: 20px; /* Pill shape */
    transition: all 0.3s ease;
    border: 1px solid transparent; /* Prevent layout shift on border change */
}

#languageButton:hover {
    background-color: rgba(0, 0, 0, 0.05);
    text-decoration: none;
}

/* Icons in the button */
.lang-icon, .arrow-icon {
    width: 20px;
    height: 20px;
    fill: currentColor;
    transition: transform 0.3s ease;
}

.arrow-icon {
    width: 12px;
    height: 12px;
}

.language-dropdown {
    display: none;
    position: absolute;
    top: calc(100% + 10px); /* Add some gap */
    right: 0;
    background-color: white;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    border-radius: 12px;
    padding: 8px;
    min-width: 140px;
    z-index: 1000;
    transform-origin: top right;
    animation: dropdownFadeIn 0.2s ease-out;
    border: 1px solid rgba(0,0,0,0.05);
}

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

.language-dropdown.show {
    display: block;
}

.language-dropdown a {
    display: flex;
    align-items: center;
    justify-content: space-between; /* For checkmark */
    padding: 10px 16px;
    text-decoration: none;
    color: #333;
    transition: all 0.2s;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 500;
}

.language-dropdown a:hover {
    background-color: #f5f7fa;
    color: #3498db;
    transform: translateX(2px);
}

.language-dropdown a.active {
    background-color: #e6f7ff;
    color: #1890ff;
    font-weight: bold;
}

/* Remove hover-to-show to prefer click interaction */
.language-selector:hover .language-dropdown {
    display: none; /* Disable CSS hover */
}

.language-dropdown.show {
    display: block !important; /* Ensure JS class works */
}

/* Rotate arrow when open */
.language-selector.open .arrow-icon {
    transform: rotate(180deg);
}

/* 在移动设备上隐藏主导航栏 */
@media screen and (max-width: 960px) {
    .main-nav {
        display: none;
    }
    
    header {
        justify-content: space-between;  /* 调整header布局 */
    }
}

/* 在移动设备上隐藏主导航栏和标题 */
@media screen and (max-width: 768px) {
    .main-nav {
        display: none; /* 隐藏主导航栏 */
    }
    
    header h1 {
        display: none; /* 隐藏标题 */
    }
}

/* 节点树头部样式 */
.node-header {
    display: flex;
    justify-content: space-between;  /* 在两端分布元素 */
    align-items: center;             /* 垂直居中 */
    padding: 10px 15px;             /* 增加内边距 */
    border-bottom: 1px solid #ccc;
    background: #f5f5f5;            /* 添加背景色 */
    position: sticky;               /* 固定在顶部 */
    top: 0;
    z-index: 10;                    /* 确保在其他元素上方 */
}

.node-header h3 {
    margin: 0;                      /* 移除标题默认边距 */
    font-size: 16px;
    color: #333;
}

/* 缩放控制按钮容器 */
.zoom-controls {
    display: flex;
    gap: 5px;                       /* 按钮之间的间距 */
    position: absolute;             /* 绝对定位 */
    right: 15px;                   /* 距离右边的距离 */
    top: 50%;                      /* 垂直居中 */
    transform: translateY(-50%);    /* 精确垂直居中 */
}

/* 缩放按钮样式 */
.zoom-button {
    width: 28px;
    height: 28px;
    padding: 0;
    border: none;                    /* 移除边框 */
    background: #3498db;            /* 使用原来的蓝色 */
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.2s ease;
    color: white;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);  /* 添加阴影效果 */
}

.zoom-button:hover {
    background: #2980b9;            /* 使用原来的悬停颜色 */
}


/* �������� */
.footer-top {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
    margin-bottom: 15px;
}

.feedback-btn {
    background: #000;
    color: #fff;
    border: 1px solid #000;
    border-radius: 999px;
    padding: 8px 16px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.feedback-btn:hover {
    background: #fff;
    color: #000;
}

.feedback-modal {
    position: fixed;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 2000;
}

.feedback-modal.show {
    display: flex;
}

.feedback-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(2px);
}

.feedback-card {
    position: relative;
    background: #fff;
    width: min(92vw, 520px);
    padding: 24px;
    border-radius: 16px;
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.12);
    z-index: 1;
    animation: feedbackPop 0.2s ease-out;
}

@keyframes feedbackPop {
    from {
        opacity: 0;
        transform: translateY(12px) scale(0.98);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.feedback-close {
    position: absolute;
    top: 12px;
    right: 12px;
    background: transparent;
    border: none;
    font-size: 20px;
    cursor: pointer;
    color: #444;
    line-height: 1;
}

.feedback-card h3 {
    margin: 0 0 6px;
}

.feedback-subtitle {
    margin: 0 0 12px;
    color: #555;
    font-size: 14px;
}

.feedback-card label {
    display: block;
    font-weight: 600;
    margin: 10px 0 6px;
}

.feedback-card input,
.feedback-card textarea {
    width: 100%;
    border: 1px solid #d0d5dd;
    border-radius: 10px;
    padding: 10px 12px;
    font-size: 15px;
    background: #f9fafb;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.feedback-card input:focus,
.feedback-card textarea:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.2);
    background: #fff;
}

.feedback-card textarea {
    resize: vertical;
    min-height: 96px;
}

.feedback-submit {
    width: 100%;
    margin-top: 16px;
    padding: 12px;
    border: none;
    border-radius: 10px;
    background: #3498db;
    color: #fff;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.1s ease;
}

.feedback-submit:hover {
    background: #2980b9;
    transform: translateY(-1px);
}

.feedback-submit:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.feedback-status {
    min-height: 18px;
    margin-top: 8px;
    font-size: 14px;
    color: #555;
}

.feedback-status.success {
    color: #0f9d58;
}

.feedback-status.error {
    color: #d93025;
}

.modal-open {
    overflow: hidden;
}

@media screen and (max-width: 600px) {
    .feedback-card {
        padding: 20px;
        width: 92vw;
    }

    .feedback-btn {
        width: 100%;
        text-align: center;
    }
}
