/* ========================================
   Sidify AI Summary 【优化版｜绿色主题 + 修复a/b标签文字错位】
   ======================================== */
.tm-ai-summary {
    --tm-ai-green: #34a873;
    --tm-ai-green-light: #e6f8f0;
    --tm-ai-green-border: #d0efe0;
    --tm-ai-navy: #172b3d;
    --tm-ai-text: #333;
    position: relative;
    width: 100%;
    margin: 42px 0;
    padding: 2px;
    border-radius: 10px;
    overflow: hidden;
    isolation: isolate;
    box-sizing: border-box;
    background: var(--tm-ai-green-border);
}
.tm-ai-summary::before {
    content: "";
    position: absolute;
    width: 180%;
    height: 180%;
    left: -40%;
    top: -40%;
    z-index: -2;
    background: conic-gradient(
        from 0deg,
        transparent 0deg,
        transparent 35deg,
        rgba(52,168,115,.08) 45deg,
        rgba(52,168,115,.35) 55deg,
        rgba(52,168,115,.95) 68deg,
        rgba(112,230,176,1) 76deg,
        rgba(255,255,255,1) 82deg,
        rgba(112,230,176,.95) 88deg,
        rgba(52,168,115,.55) 96deg,
        rgba(52,168,115,.08) 110deg,
        transparent 145deg,
        transparent 215deg,
        rgba(52,168,115,.08) 225deg,
        rgba(52,168,115,.45) 238deg,
        rgba(112,230,176,.9) 248deg,
        rgba(255,255,255,.9) 254deg,
        rgba(52,168,115,.4) 264deg,
        transparent 280deg,
        transparent 360deg
    );
    animation: tm-ai-orbit 5s linear infinite;
}
.tm-ai-summary-glow {
    position: absolute;
    width: 70%;
    height: 220px;
    top: -120px;
    right: -10%;
    z-index: -1;
    background: radial-gradient(
        ellipse,
        rgba(78,212,158,.18) 0%,
        rgba(78,212,158,.08) 38%,
        transparent 72%
    );
    filter: blur(20px);
    pointer-events: none;
}
.tm-ai-summary-inner {
    position: relative;
    padding: 30px 34px 27px;
    border-radius: 9px;
    box-sizing: border-box;
    background:
        radial-gradient(
            circle at 100% 0%,
            rgba(52,168,115,.055),
            transparent 34%
        ),
        #fff;
}
/* Heading */
.tm-ai-summary-heading {
    display: flex;
    align-items: center;
    gap: 13px;
    margin-bottom: 23px;
    padding-bottom: 2px;
}
.tm-ai-summary-icon {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2px;
    width: 34px;
    height: 34px;
    overflow: hidden;
    flex-shrink: 0;
    border-radius: 9px;
    background: linear-gradient(
        145deg,
        #1e8c5c 0%,
        #34a873 55%,
        #58c999 100%
    );
    box-shadow:
        0 5px 14px rgba(52,168,115,.22),
        0 0 0 4px rgba(52,168,115,.06);
}
.tm-ai-summary-icon::before {
    content: "";
    position: absolute;
    width: 42px;
    height: 42px;
    background: radial-gradient(
        circle,
        rgba(255,255,255,.32),
        transparent 68%
    );
    animation: tm-ai-icon-pulse 2.4s ease-in-out infinite;
}
.tm-ai-summary-icon span {
    position: relative;
    display: block;
    width: 3px;
    border-radius: 3px;
    background: #fff;
}
.tm-ai-summary-icon span:nth-child(1) {
    height: 8px;
}
.tm-ai-summary-icon span:nth-child(2) {
    height: 14px;
}
.tm-ai-summary-icon span:nth-child(3) {
    height: 10px;
}
.tm-ai-summary-label {
    display: block;
    margin-bottom: 2px;
    color: var(--tm-ai-green);
    font-family: Arial, sans-serif;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 1.7px;
}
.tm-ai-summary-heading h3 {
    margin: 0;
    color: var(--tm-ai-navy);
    font-size: 21px;
    line-height: 1.35;
    font-weight: 700;
}
/* Body 【重点修复：去掉grid布局，解决<a> <b>标签错位】 */
.tm-ai-summary-body {
    color: var(--tm-ai-text);
    font-size: 15px;
    line-height: 1.9;
}
.tm-ai-summary-body p {
    margin: 0 0 16px;
}
.tm-ai-summary-body ul {
    display: flex;
    flex-direction: column;
    margin: 0;
    padding: 0;
    list-style: none;
}
.tm-ai-summary-body li {
    position: relative;
    margin: 0 0 11px;
    padding-left: 18px; /* 给圆点留出左侧空间 */
    line-height: 1.9;
}
.tm-ai-summary-body li:last-child {
    margin-bottom: 0;
}
.tm-ai-dot {
    position: absolute;
    left:2px;
    top: 10px;
    display: block;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--tm-ai-green);
    box-shadow: 0 0 0 3px rgba(52,168,115,.09);
}

/* Footer */
.tm-ai-summary-footer {
    margin-top: 10px;
}
.tm-ai-summary-divider {
    width: 100%;
    height: 1px;
    margin-bottom: 17px;
    background: #e5f2ec;
}
.tm-ai-ask-title {
    display: flex;
    align-items: center;
    margin: 0 0 13px;
    color: #233b4d;
    font-size: 14px;
    line-height: 1.5;
    font-weight: 600;
}
.tm-ai-ask-line {
    display: inline-block;
    width: 3px;
    height: 14px;
    margin-right: 9px;
    border-radius: 3px;
    background: var(--tm-ai-green);
}
/* AI Buttons */
.tm-ai-platforms {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
}
.tm-ai-platform {
    position: relative;
    display: inline-flex;
    align-items: center;
    height: 40px;
    padding: 0 12px 0 8px;
    border: 1px solid #d8ebe2;
    border-radius: 8px;
    background: #fff;
    color: #253746;
    font-family: inherit;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    box-sizing: border-box;
    text-decoration: none !important;
    transition:
        border-color .25s ease,
        background .25s ease,
        box-shadow .25s ease,
        transform .25s ease;
}
.tm-ai-platform-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    margin-right: 7px;
    border-radius: 6px;
    background: #f0f9f5;
    color: #2d5744;
    font-family: Arial, sans-serif;
    font-size: 12px;
    font-weight: 700;
    flex-shrink: 0;
    transition:
        background .25s ease,
        color .25s ease;
}
.tm-icon-chatgpt {
    font-size: 14px;
}
.tm-icon-gemini {
    background: #f0f9f5;
    color: var(--tm-ai-green);
}
.tm-ai-arrow {
    margin-left: 9px;
    color: #9aadb9;
    font-size: 13px;
    line-height: 1;
    transition:
        transform .25s ease,
        color .25s ease;
}
.tm-ai-platform:hover {
    border-color: #64c49b;
    background: linear-gradient(
        135deg,
        #fff 0%,
        #f0fbf6 100%
    );
    box-shadow:
        0 6px 18px rgba(52,168,115,.14),
        0 0 0 2px rgba(52,168,115,.04);
    transform: translateY(-2px);
}
.tm-ai-platform:hover .tm-ai-platform-icon {
    background: var(--tm-ai-green);
    color: #fff;
}
.tm-ai-platform:hover .tm-ai-arrow {
    color: var(--tm-ai-green);
    transform: translate(2px,-2px);
}
.tm-ai-platform:active {
    transform: translateY(0);
}
/* TuneMobie Download 绿色变体 */
.tm-ai-download {
    color: #147049;
    background: linear-gradient(
        135deg,
        #f3fcf8 0%,
        #eafaf3 100%
    );
    border-color: #a2ddc1;
    box-shadow: inset 0 0 0 1px rgba(255,255,255,.7);
}
.tm-ai-download-icon {
    background: #e2f7ee;
    color: var(--tm-ai-green);
}
.tm-ai-download-icon img {
    display: block;
    width: 15px;
    height: 15px;
    object-fit: contain;
}
.tm-ai-download .tm-ai-arrow {
    color: var(--tm-ai-green);
}
.tm-ai-download:hover {
    color: #147049;
    border-color: var(--tm-ai-green);
    background: linear-gradient(
        135deg,
        #fff 0%,
        #e4f8ef 100%
    );
    box-shadow:
        0 6px 18px rgba(52,168,115,.16),
        0 0 0 2px rgba(52,168,115,.05);
    text-decoration: none !important;
    transform: translateY(-2px);
}
.tm-ai-download:hover .tm-ai-download-icon {
    background: #d1f2e4;
}
.tm-ai-download:hover .tm-ai-arrow {
    color: var(--tm-ai-green);
    transform: translate(2px,-2px);
}
/* Animation */
@keyframes tm-ai-orbit {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}
@keyframes tm-ai-icon-pulse {
    0%,
    100% {
        transform: scale(.8);
        opacity: .35;
    }
    50% {
        transform: scale(1.15);
        opacity: .8;
    }
}
/* Mobile */
@media (max-width: 767px) {
    .tm-ai-summary {
        margin: 30px 0;
    }
    .tm-ai-summary-inner {
        padding: 23px 20px 21px;
    }
    .tm-ai-summary-heading {
        gap: 10px;
        margin-bottom: 18px;
    }
    .tm-ai-summary-icon {
        width: 29px;
        height: 29px;
        border-radius: 7px;
    }
    .tm-ai-summary-heading h3 {
        font-size: 18px;
    }
    .tm-ai-summary-label {
        font-size: 8px;
        letter-spacing: 1.4px;
    }
    .tm-ai-summary-body {
        font-size: 14px;
        line-height: 1.85;
    }
    .tm-ai-summary-body li {
        padding-left:18px;
        margin-bottom: 9px;
    }
    .tm-ai-platforms {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
    }
    .tm-ai-platform {
        width: 100%;
        justify-content: flex-start;
    }
}
@media (max-width: 767px) {
    .tm-ai-download {
        width: 100%;
        box-sizing: border-box;
        min-width: 0;
        height: auto;
        min-height: 42px;
        padding: 8px 10px;
        white-space: normal;
        line-height: 1.4;
    }
    .tm-ai-download-icon {
        flex-shrink: 0;
    }
    .tm-ai-download-icon img {
        width: 15px;
        height: 15px;
        object-fit: contain;
    }
}
/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    .tm-ai-summary::before,
    .tm-ai-summary-icon::before {
        animation: none;
    }
    .tm-ai-platform {
        transition: none;
    }
}
.tm-ai-summary-more {
    display: none;
}
.tm-ai-summary.is-open .tm-ai-summary-more {
    display: block;
}
.tm-ai-summary-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    width: 100%;
    background: transparent;
    color: var(--tm-ai-green);
    font-size: 13px;
    font-weight: 600;
    line-height: 1.5;
    cursor: pointer;
    transition: opacity .2s ease;
    outline: none;
    border: none;
    box-shadow: none;	
}
				
.tm-ai-summary-toggle:hover {
    opacity: .7;
}
.tm-ai-summary-toggle-arrow {
    display: inline-block;
    width: 0;
    height: 0;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-top: 6px solid currentColor;
    transition: transform .25s ease;
}
.tm-ai-summary.is-open .tm-ai-summary-toggle-arrow {
    transform: rotate(180deg);
}
@media (prefers-reduced-motion: reduce) {
    .tm-ai-summary::before {
        animation: none;
    }
    .tm-ai-platform,
    .tm-ai-summary-toggle-arrow {
        transition: none;
    }
}
